Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Mar 2014 14:49:05 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r348560 - head/dns/rbllookup-ng
Message-ID:  <201403181449.s2IEn5Fm090908@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Tue Mar 18 14:49:04 2014
New Revision: 348560
URL: http://svnweb.freebsd.org/changeset/ports/348560
QAT: https://qat.redports.org/buildarchive/r348560/

Log:
  - Support staging
  - Use shebangfix
  - Define DOCS option

Modified:
  head/dns/rbllookup-ng/Makefile

Modified: head/dns/rbllookup-ng/Makefile
==============================================================================
--- head/dns/rbllookup-ng/Makefile	Tue Mar 18 14:45:51 2014	(r348559)
+++ head/dns/rbllookup-ng/Makefile	Tue Mar 18 14:49:04 2014	(r348560)
@@ -14,24 +14,24 @@ BUILD_DEPENDS=	p5-Net-DNS>=0:${PORTSDIR}
 		p5-Term-ANSIColor>=0:${PORTSDIR}/devel/p5-Term-ANSIColor
 
 NO_BUILD=	yes
-USES=		perl5
+USES=		perl5 shebangfix
 
 PLIST_FILES=	bin/rbllookup bin/getmoensted etc/rbllookup.conf-sample
 PORTDOCS=	CHANGELOG INSTALL NOTES README TODO gpg.asc
+SHEBANG_FILES=	rbllookup.pl
 
 CONFLICTS=	rbllookup-0.*
 
-NO_STAGE=	yes
-post-patch:
-	${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/rbllookup.pl
+OPTIONS_DEFINE=	DOCS
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/rbllookup.pl ${PREFIX}/bin/rbllookup
-	${INSTALL_SCRIPT} ${WRKSRC}/getmoensted.pl ${PREFIX}/bin/getmoensted
-	${INSTALL_DATA} ${WRKSRC}/rbllookup.conf ${PREFIX}/etc/rbllookup.conf-sample
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
-.endif
+	${INSTALL_SCRIPT} ${WRKSRC}/rbllookup.pl \
+		${STAGEDIR}${PREFIX}/bin/rbllookup
+	${INSTALL_SCRIPT} ${WRKSRC}/getmoensted.pl \
+		${STAGEDIR}${PREFIX}/bin/getmoensted
+	${INSTALL_DATA} ${WRKSRC}/rbllookup.conf \
+		${STAGEDIR}${PREFIX}/etc/rbllookup.conf-sample
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403181449.s2IEn5Fm090908>