From a941169f87749d511c7c7e83e037039f561e2c84 Mon Sep 17 00:00:00 2001 From: Pawel Pekala Date: Thu, 10 Jul 2014 22:14:30 +0000 Subject: - Add staging support, allow it as regular user - Convert to new options framework - Turn 2 simple patches to REINPLACE_CMD - Respect CC, CFLAGS during build --- security/ipfw2dshield/Makefile | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'security/ipfw2dshield/Makefile') diff --git a/security/ipfw2dshield/Makefile b/security/ipfw2dshield/Makefile index 77fea8579c76..3a26597b33cc 100644 --- a/security/ipfw2dshield/Makefile +++ b/security/ipfw2dshield/Makefile @@ -6,21 +6,22 @@ PORTVERSION= 0.5 CATEGORIES= security MASTER_SITES= http://www.dynamical-systems.org/ipfw/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= DShield client for ipfw logs PORTDOCS= CHANGES README.html README.txt -NO_STAGE= yes +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/ipfw2dshield + @${REINPLACE_CMD} -E -e '/^(CC|CFLAGS|prefix)/ s|=|?=|' \ + -e 's|bindir)|DESTDIR)$$(&|' \ + ${WRKSRC}/ipaddr/Makefile \ + ${WRKSRC}/strpdate/Makefile post-install: -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} -.for i in ${PORTDOCS} - ${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR} -.endfor -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include -- cgit v1.2.3