aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/bpft
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2009-05-06 18:45:34 +0000
committerRenato Botelho <garga@FreeBSD.org>2009-05-06 18:45:34 +0000
commit3930091f767b16edae84cebed0711c76776905d4 (patch)
tree0b270041aa32d1b49ddc5e2df857036fd159efd5 /net-mgmt/bpft
parent104b44ddc30bb8c2e3a8e58fee39ddc311bc0c2a (diff)
downloadports-3930091f767b16edae84cebed0711c76776905d4.tar.gz
ports-3930091f767b16edae84cebed0711c76776905d4.zip
Notes
Diffstat (limited to 'net-mgmt/bpft')
-rw-r--r--net-mgmt/bpft/Makefile8
-rw-r--r--net-mgmt/bpft/pkg-plist3
2 files changed, 6 insertions, 5 deletions
diff --git a/net-mgmt/bpft/Makefile b/net-mgmt/bpft/Makefile
index 1a5e0a941877..80c47ed9f208 100644
--- a/net-mgmt/bpft/Makefile
+++ b/net-mgmt/bpft/Makefile
@@ -21,17 +21,21 @@ CONFLICTS= trafd-3.0.*
WRKSRC= ${WRKDIR}/bpft
MAN1= traflog.1 trafstat.1
MAN8= trafstatd.8 trafd.8
+PORTDOCS= README WhatsNew
MANCOMPRESSED= yes
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/include/pathnames.h
@${REINPLACE_CMD} -e 's|/usr/local/|${PREFIX}/|g' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's|<net/slip.h>|"../linux-include/net/slip.h"|' \
+ ${WRKSRC}/lib/interfaces.c
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/WhatsNew ${DOCSDIR}
+. for file in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+. endfor
.endif
.include <bsd.port.mk>
diff --git a/net-mgmt/bpft/pkg-plist b/net-mgmt/bpft/pkg-plist
index 66e9b0b1d808..8c70e4012dc1 100644
--- a/net-mgmt/bpft/pkg-plist
+++ b/net-mgmt/bpft/pkg-plist
@@ -8,8 +8,5 @@ bin/trafstat
bin/trafstop
etc/rc.d/trafd.sh
etc/traflog.format
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/WhatsNew
@dirrmtry var/bpft
@dirrmtry var
-%%PORTDOCS%%@dirrm %%DOCSDIR%%