aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net-mgmt/pftabled/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/net-mgmt/pftabled/Makefile b/net-mgmt/pftabled/Makefile
index 71da44ce492c..0d8f9c54222e 100644
--- a/net-mgmt/pftabled/Makefile
+++ b/net-mgmt/pftabled/Makefile
@@ -7,6 +7,7 @@
PORTNAME= pftabled
PORTVERSION= 1.07
+PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= http://www.wolfermann.org/
@@ -21,7 +22,20 @@ PLIST_FILES= bin/pftabled-client sbin/pftabled
GNU_CONFIGURE= yes
USE_GMAKE= yes
+OPTIONS= PERLC "A Sample Perl Client" On
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_PERLC)
+RUN_DEPEND= p5-Digest-MD5>=0:${PORTSDIR}/security/p5-Digest-MD5
+PLIST_FILES+= bin/pftabled-client.pl
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/pftabled-client.pl ${PREFIX}/bin
+
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|cat1/pftabled.0|man1/pftabled.0|' ${WRKSRC}/Makefile.in
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>