1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Fix build on -CURRENT

- Use PORTDOCS facility
This commit is contained in:
Renato Botelho 2009-05-06 18:45:34 +00:00
parent 104b44ddc3
commit 3930091f76
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=233318
2 changed files with 6 additions and 5 deletions

View File

@ -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>

View File

@ -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%%