aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/pftabled
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2009-03-02 10:47:39 +0800
committerlwhsu <lwhsu@FreeBSD.org>2009-03-02 10:47:39 +0800
commit63dd799db7d722b34414c7aee518aad2745b344f (patch)
tree0dbd6ebc5ad93d3dc3a89d8b938fe7b52deca084 /net-mgmt/pftabled
parente3e40ec4bb3623f9369941f7118e9dc918d9a046 (diff)
downloadfreebsd-ports-gnome-63dd799db7d722b34414c7aee518aad2745b344f.tar.gz
freebsd-ports-gnome-63dd799db7d722b34414c7aee518aad2745b344f.tar.zst
freebsd-ports-gnome-63dd799db7d722b34414c7aee518aad2745b344f.zip
- Install a perl sample client and an option associated with it
- Bump PORTREVISION PR: ports/132218 Submitted by: Hsin-Han You <hhyou AT cs.nctu.edu.tw> Approved by: chifeng <chifeng AT gmail.com> (maintainer)
Diffstat (limited to 'net-mgmt/pftabled')
-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>