aboutsummaryrefslogtreecommitdiff
path: root/sysutils/pfstat
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2015-05-11 11:22:48 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2015-05-11 11:22:48 +0000
commitd2d68f251c205dce4afc63c81dce23b79038c0fc (patch)
tree8083f02b4d9e70b8005c74c9c432afe027bdbf2a /sysutils/pfstat
parent0a7199974435194a4054084b2aa549ba8b1fc31b (diff)
downloadports-d2d68f251c205dce4afc63c81dce23b79038c0fc.tar.gz
ports-d2d68f251c205dce4afc63c81dce23b79038c0fc.zip
Notes
Diffstat (limited to 'sysutils/pfstat')
-rw-r--r--sysutils/pfstat/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysutils/pfstat/Makefile b/sysutils/pfstat/Makefile
index cfe233a97acc..21300d9bc2c8 100644
--- a/sysutils/pfstat/Makefile
+++ b/sysutils/pfstat/Makefile
@@ -23,11 +23,16 @@ PLIST_FILES= bin/pfstat \
man/man8/pfstat.8.gz \
man/man8/pfstatd.8.gz
+.include <bsd.port.pre.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's|-lgd|-l$${LD_GD}|; s| -lttf||' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|" \
${WRKSRC}/pfstat.[c8]
+.if ${OSVERSION} >= 1100070
+ @${REINPLACE_CMD} 's|altq/|net/&|' ${WRKSRC}/pf.c
+.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pfstat ${STAGEDIR}/${PREFIX}/bin
@@ -35,4 +40,4 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/pfstat.8 ${STAGEDIR}/${PREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/pfstatd/pfstatd.8 ${STAGEDIR}/${PREFIX}/man/man8
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>