svn commit: r351047 - head/security/portsentry

Emanuel Haupt ehaupt at FreeBSD.org
Fri Apr 11 21:38:14 UTC 2014


Author: ehaupt
Date: Fri Apr 11 21:38:14 2014
New Revision: 351047
URL: http://svnweb.freebsd.org/changeset/ports/351047
QAT: https://qat.redports.org/buildarchive/r351047/

Log:
  - Support staging
  - Define DOCS option

Modified:
  head/security/portsentry/Makefile

Modified: head/security/portsentry/Makefile
==============================================================================
--- head/security/portsentry/Makefile	Fri Apr 11 21:36:04 2014	(r351046)
+++ head/security/portsentry/Makefile	Fri Apr 11 21:38:14 2014	(r351047)
@@ -15,21 +15,22 @@ CFLAGS+=	-DPREFIX=\"${PREFIX}\"
 MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}"
 WRKSRC=		${WRKDIR}/portsentry_beta
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS
+
 post-patch:
 	@${REINPLACE_CMD} -e 's,/usr/local/psionic/portsentry,${PREFIX}/etc,g' \
 		${WRKSRC}/portsentry.conf ${WRKSRC}/portsentry_config.h
 
 do-install:
-	${INSTALL_DATA} ${WRKSRC}/portsentry.conf ${PREFIX}/etc/portsentry.conf.default
-	${INSTALL_DATA} ${WRKSRC}/portsentry.ignore ${PREFIX}/etc/portsentry.ignore.default
-	${INSTALL_PROGRAM} ${WRKSRC}/portsentry ${PREFIX}/bin
-	${INSTALL_SCRIPT} ${WRKDIR}/portsentry.sh ${PREFIX}/etc/rc.d/
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.install ${WRKSRC}/README.methods ${WRKSRC}/README.stealth \
-	  ${DOCSDIR}
-.endif
-	@${CAT} ${PKGMESSAGE}
+	${INSTALL_DATA} ${WRKSRC}/portsentry.conf \
+		${STAGEDIR}${PREFIX}/etc/portsentry.conf.default
+	${INSTALL_DATA} ${WRKSRC}/portsentry.ignore \
+		${STAGEDIR}${PREFIX}/etc/portsentry.ignore.default
+	${INSTALL_PROGRAM} ${WRKSRC}/portsentry \
+		${STAGEDIR}${PREFIX}/bin
+	${INSTALL_SCRIPT} ${WRKDIR}/portsentry.sh ${STAGEDIR}${PREFIX}/etc/rc.d/
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README.install ${WRKSRC}/README.methods \
+		${WRKSRC}/README.stealth ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list