1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Support staging

This commit is contained in:
Emanuel Haupt 2014-02-21 15:53:07 +00:00
parent b21998e431
commit eb463bb485
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345508

View File

@ -12,26 +12,17 @@ COMMENT= Display bandwidth usage on an interface by host
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-resolver=netdb_1thread
MAN8= iftop.8
.if !defined(NOPORTDOCS)
PORTDOCS= README
.endif
PLIST_FILES= bin/iftop
PLIST_FILES= bin/iftop man/man8/iftop.8.gz
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
${WRKSRC}/configure
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MAN8PREFIX}/man/man8
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MANPREFIX}/man/man8
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>