diff options
Diffstat (limited to 'net/findmtu')
-rw-r--r-- | net/findmtu/Makefile | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/net/findmtu/Makefile b/net/findmtu/Makefile index 4b9872658e81..ab5600da8962 100644 --- a/net/findmtu/Makefile +++ b/net/findmtu/Makefile @@ -7,21 +7,27 @@ CATEGORIES= net ipv6 MASTER_SITES= http://www.dia.uniroma3.it/~compunet/tunneldiscovery/findmtu/ MAINTAINER= jmohacsi@bsd.hu -COMMENT= A tool for performing IPv6 path MTU discovery on *NIX +COMMENT= Tool for performing IPv6 path MTU discovery on *NIX + +OPTIONS_DEFINE= DOCS SUB_FILES= findmtu -NO_STAGE= yes +.include <bsd.port.options.mk> + +post-patch: + @${REINPLACE_CMD} -e 's|gcc|${CC}|' ${WRKSRC}/Makefile.rawsocket + do-configure: ${LN} -s ${WRKSRC}/Makefile.rawsocket ${WRKSRC}/Makefile do-install: - ${INSTALL_SCRIPT} ${WRKDIR}/findmtu ${PREFIX}/bin/findmtu - ${INSTALL_PROGRAM} ${WRKSRC}/findmtu ${PREFIX}/bin/findmtu.real -.ifndef(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README.freebsd ${DOCSDIR} + ${INSTALL_SCRIPT} ${WRKDIR}/findmtu ${STAGEDIR}${PREFIX}/bin/findmtu + ${INSTALL_PROGRAM} ${WRKSRC}/findmtu ${STAGEDIR}${PREFIX}/bin/findmtu.real +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.freebsd ${STAGEDIR}${DOCSDIR} .endif .include <bsd.port.mk> |