svn commit: r358599 - in head/net-mgmt/pftabled: . files
Vanilla I. Shu
vanilla at FreeBSD.org
Fri Jun 20 16:22:58 UTC 2014
Author: vanilla
Date: Fri Jun 20 16:22:57 2014
New Revision: 358599
URL: http://svnweb.freebsd.org/changeset/ports/358599
QAT: https://qat.redports.org/buildarchive/r358599/
Log:
1: Stagify.
2: s/pftabled.0/pftabled.1/, bump version.
Approved by: portmgr@
Added:
head/net-mgmt/pftabled/files/patch-Makefile.in (contents, props changed)
Modified:
head/net-mgmt/pftabled/Makefile
Modified: head/net-mgmt/pftabled/Makefile
==============================================================================
--- head/net-mgmt/pftabled/Makefile Fri Jun 20 16:13:03 2014 (r358598)
+++ head/net-mgmt/pftabled/Makefile Fri Jun 20 16:22:57 2014 (r358599)
@@ -3,6 +3,7 @@
PORTNAME= pftabled
PORTVERSION= 1.09
+PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= http://www.wolfermann.org/
@@ -10,19 +11,18 @@ MAINTAINER= chifeng at gmail.com
COMMENT= The pftabled is a tool to manage your pf tables remotely
USE_RC_SUBR= pftabled
-MAN1= pftabled.0
-PLIST_FILES= bin/pftabled-client sbin/pftabled
+PLIST_FILES= bin/pftabled-client man/man1/pftabled.1.gz sbin/pftabled
GNU_CONFIGURE= yes
-USES= gmake
+USES= gmake shebangfix
+SHEBANG_FILES= pftabled-client.pl
OPTIONS_DEFINE= PERLC PYTHONC
OPTIONS_DEFAULT= PERLC PYTHONC
PERLC_DESC= A Sample Perl Client
PYTHONC_DESC= A Sample Python Client
-NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MPERLC}
@@ -33,15 +33,12 @@ PLIST_FILES+= bin/pftabled-client.pl
PLIST_FILES+= bin/pftabled-client.py
.endif
-post-patch:
- @${REINPLACE_CMD} -e 's|cat1/pftabled.0|man1/pftabled.0|' ${WRKSRC}/Makefile.in
-
post-install:
.if ${PORT_OPTIONS:MPERLC}
- ${INSTALL_SCRIPT} ${WRKSRC}/pftabled-client.pl ${PREFIX}/bin/
+ ${INSTALL_SCRIPT} ${WRKSRC}/pftabled-client.pl ${STAGEDIR}${PREFIX}/bin/
.endif
.if ${PORT_OPTIONS:MPYTHONC}
- ${INSTALL_SCRIPT} ${WRKSRC}/pftabled-client.py ${PREFIX}/bin/
+ ${INSTALL_SCRIPT} ${WRKSRC}/pftabled-client.py ${STAGEDIR}${PREFIX}/bin/
.endif
.include <bsd.port.post.mk>
Added: head/net-mgmt/pftabled/files/patch-Makefile.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-mgmt/pftabled/files/patch-Makefile.in Fri Jun 20 16:22:57 2014 (r358599)
@@ -0,0 +1,17 @@
+--- Makefile.in.orig 2014-06-21 00:18:35.407089008 +0800
++++ Makefile.in 2014-06-21 00:19:16.975090050 +0800
+@@ -36,11 +36,11 @@ pftabled-client: ${CLIENTOBJS}
+ install: @INSTALLTARGET@
+
+ server-install: pftabled pftabled.cat1
+- ${INSTALL} -s -m 555 pftabled ${sbindir}
+- ${INSTALL} -m 444 pftabled.cat1 ${mandir}/cat1/pftabled.0
++ ${INSTALL} -s -m 555 pftabled $(DESTDIR)${sbindir}
++ ${INSTALL} -m 444 pftabled.cat1 $(DESTDIR)${mandir}/man1/pftabled.1
+
+ client-install: pftabled-client
+- ${INSTALL} -s -m 555 pftabled-client ${bindir}
++ ${INSTALL} -s -m 555 pftabled-client $(DESTDIR)${bindir}
+
+ clean:
+ -rm -f pftabled pftabled-client *.o *.cat1
More information about the svn-ports-all
mailing list