svn commit: r330165 - head/net/findmtu
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sat Oct 12 18:11:47 UTC 2013
Author: sunpoet
Date: Sat Oct 12 18:11:47 2013
New Revision: 330165
URL: http://svnweb.freebsd.org/changeset/ports/330165
Log:
- Support STAGEDIR
- Respect CC
- While I'm here:
- Remove leading indefinite article from COMMENT
- Convert to new options framework
PR: ports/182811
Submitted by: Kurt Jaeger <fbsd-ports at opsec.eu>
Approved by: Janos Mohacsi <jmohacsi at bsd.hu> (maintainer)
Modified:
head/net/findmtu/Makefile
Modified: head/net/findmtu/Makefile
==============================================================================
--- head/net/findmtu/Makefile Sat Oct 12 18:09:09 2013 (r330164)
+++ head/net/findmtu/Makefile Sat Oct 12 18:11:47 2013 (r330165)
@@ -7,21 +7,27 @@ CATEGORIES= net ipv6
MASTER_SITES= http://www.dia.uniroma3.it/~compunet/tunneldiscovery/findmtu/
MAINTAINER= jmohacsi at 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>
More information about the svn-ports-all
mailing list