Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jul 2014 22:17:12 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r360671 - in head/security: autossh clamtk fwbuilder lasso mindterm-binary mussh opensaml2 outguess p5-Filter-CBC pam_pwdfile py-gnutls skipfish sqlninja webscarab
Message-ID:  <201407042217.s64MHCOc013999@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adamw
Date: Fri Jul  4 22:17:11 2014
New Revision: 360671
URL: http://svnweb.freebsd.org/changeset/ports/360671
QAT: https://qat.redports.org/buildarchive/r360671/

Log:
  Remove NOPORTDOCS and NOPORTEXAMPLES.

Modified:
  head/security/autossh/Makefile
  head/security/clamtk/Makefile
  head/security/fwbuilder/Makefile
  head/security/lasso/Makefile
  head/security/mindterm-binary/Makefile
  head/security/mussh/Makefile
  head/security/opensaml2/Makefile
  head/security/outguess/Makefile
  head/security/p5-Filter-CBC/Makefile
  head/security/pam_pwdfile/Makefile
  head/security/py-gnutls/Makefile
  head/security/skipfish/Makefile
  head/security/sqlninja/Makefile
  head/security/webscarab/Makefile

Modified: head/security/autossh/Makefile
==============================================================================
--- head/security/autossh/Makefile	Fri Jul  4 22:08:14 2014	(r360670)
+++ head/security/autossh/Makefile	Fri Jul  4 22:17:11 2014	(r360671)
@@ -14,11 +14,15 @@ GNU_CONFIGURE=	yes
 
 PORTDOCS=	CHANGES README
 
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
+
 post-patch:
 	@${REINPLACE_CMD} -e 's,cp autossh.1 ,$$\{BSD_INSTALL_MAN\} autossh.1 ,g' ${WRKSRC}/${MAKEFILE}.in
 	@${REINPLACE_CMD} -e 's,cp autossh ,$$\{BSD_INSTALL_PROGRAM\} autossh ,g' ${WRKSRC}/${MAKEFILE}.in
 	@${REINPLACE_CMD} -e 's,cp ,$$\{BSD_INSTALL_DATA\} ,g' ${WRKSRC}/${MAKEFILE}.in
-.if defined(NOPORTDOCS)
+.if empty(PORT_OPTIONS:MDOCS)
 	@${REINPLACE_CMD} -Ee '/doc/d' ${WRKSRC}/${MAKEFILE}.in
 .endif
 

Modified: head/security/clamtk/Makefile
==============================================================================
--- head/security/clamtk/Makefile	Fri Jul  4 22:08:14 2014	(r360670)
+++ head/security/clamtk/Makefile	Fri Jul  4 22:17:11 2014	(r360671)
@@ -30,6 +30,8 @@ MAN1=		${PORTNAME}.1
 
 LINGUAS=	`${LS} ${WRKSRC}/po/*.mo | ${XARGS} ${BASENAME} -s .mo`
 
+OPTIONS_DEFINE=	DOCS
+
 post-extract:
 	@${GUNZIP_CMD} ${WRKSRC}/${PORTNAME}.1.gz
 
@@ -53,11 +55,9 @@ do-install:
 		${INSTALL_DATA} ${WRKSRC}/po/$${l}.mo \
 		${STAGEDIR}${PREFIX}/share/locale/$${l}/LC_MESSAGES/${PORTNAME}.mo; \
 	done
-.if !defined(NOPORTDOCS)
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for file in CHANGES DISCLAIMER README
 	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>

Modified: head/security/fwbuilder/Makefile
==============================================================================
--- head/security/fwbuilder/Makefile	Fri Jul  4 22:08:14 2014	(r360670)
+++ head/security/fwbuilder/Makefile	Fri Jul  4 22:17:11 2014	(r360671)
@@ -20,6 +20,8 @@ DISTVERSIONSUFFIX=	.${BUILD}
 MAINTAINER=	cy@FreeBSD.org
 COMMENT=	Firewall Builder GUI and policy compilers
 
+#OPTIONS_DEFINE=	DOCS
+
 .if defined(PKGNAMESUFFIX) && ${PKGNAMESUFFIX} == -devel
 CONFLICTS=	fwbuilder-[234].* fwbuilder-devel-[234].* \
 		libfwbuilder-[234].* libfwbuilder-devel-[234].*
@@ -60,9 +62,7 @@ MAKE_ENV=	INSTALL_ROOT=${STAGEDIR}
 USE_LDCONFIG=	yes
 PLIST_SUB+=	PORTVERSION="${PORTVERSION}"
 
-.if !defined(NOPORTDOCS)
 PORTDOCS=	*
-.endif
 
 .include <bsd.port.pre.mk>
 
@@ -81,7 +81,7 @@ post-install:
 	@${ECHO} please make sure to backup your fwbuilder database files
 	@${ECHO} prior to invoking fwbuilder for the first time.
 
-.if defined(NOPORTDOCS)
-BROKEN=		NOPORTDOCS is incomplete in this port
+.if empty(PORT_OPTIONS:MDOCS)
+BROKEN=		DOCS must be enabled in this port
 .endif
 .include <bsd.port.post.mk>

Modified: head/security/lasso/Makefile
==============================================================================
--- head/security/lasso/Makefile	Fri Jul  4 22:08:14 2014	(r360670)
+++ head/security/lasso/Makefile	Fri Jul  4 22:17:11 2014	(r360671)
@@ -23,7 +23,7 @@ USE_LDCONFIG=	yes
 USE_OPENSSL=	yes
 USE_PYTHON_BUILD=	yes
 
-OPTIONS_DEFINE=	PERL PHP PYTHON
+OPTIONS_DEFINE=	PERL PHP PYTHON DOCS
 
 .include <bsd.port.options.mk>
 
@@ -60,8 +60,5 @@ PLIST_SUB+=	WITH_PYTHON="@comment "
 
 post-install:
 	${RM} -f ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH}/perllocal.pod
-.ifdef(NOPORTDOCS)
-	${RM} -rf ${STAGEDIR}${DOCSDIR}
-.endif
 
 .include <bsd.port.mk>

Modified: head/security/mindterm-binary/Makefile
==============================================================================
--- head/security/mindterm-binary/Makefile	Fri Jul  4 22:08:14 2014	(r360670)
+++ head/security/mindterm-binary/Makefile	Fri Jul  4 22:17:11 2014	(r360671)
@@ -19,18 +19,18 @@ NO_WRKSUBDIR=	yes
 NO_BUILD=	yes
 NO_CDROM=	Do not sell for profit
 
+OPTIONS_DEFINE=	DOCS
+
 post-extract:
-	@${CP} ${DISTDIR}/mindterm-ssh.html ${WRKSRC}
-	@${MV} ${WRKSRC}/mindtermfull.jar ${WRKSRC}/mindterm.jar
+	${CP} ${DISTDIR}/mindterm-ssh.html ${WRKSRC}
+	${MV} ${WRKSRC}/mindtermfull.jar ${WRKSRC}/mindterm.jar
 
 do-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/share/java/mindterm
-	@${INSTALL_DATA} ${WRKSRC}/mindterm.jar ${STAGEDIR}${PREFIX}/share/java/mindterm/
-.if !defined(NOPORTDOCS)
+	${INSTALL_DATA} ${WRKSRC}/mindterm.jar ${STAGEDIR}${PREFIX}/share/java/mindterm/
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for DOC in CHANGES FAQ FEATURES PLATFORMS TODO mindterm-ssh.html
-	@${INSTALL_DATA} ${WRKSRC}/${DOC} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${DOC} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>

Modified: head/security/mussh/Makefile
==============================================================================
--- head/security/mussh/Makefile	Fri Jul  4 22:08:14 2014	(r360670)
+++ head/security/mussh/Makefile	Fri Jul  4 22:17:11 2014	(r360671)
@@ -17,19 +17,19 @@ PORTDOCS=	BUGS CHANGES EXAMPLES README
 PLIST_FILES=	bin/mussh
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
+OPTIONS_DEFINE=	DOCS
+
 post-patch:
-	@${REINPLACE_CMD} -e "s,^#!/bin/bash,#!/usr/bin/env bash,g" \
+	${REINPLACE_CMD} -e "s,^#!/bin/bash,#!/usr/bin/env bash,g" \
 			  -e "s,seq 1 ,jot 1 ,g" \
 		${WRKSRC}/${PORTNAME}
 
 do-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/bin
 	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
-.if !defined(NOPORTDOCS)
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for f in ${PORTDOCS}
 	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>

Modified: head/security/opensaml2/Makefile
==============================================================================
--- head/security/opensaml2/Makefile	Fri Jul  4 22:08:14 2014	(r360670)
+++ head/security/opensaml2/Makefile	Fri Jul  4 22:17:11 2014	(r360671)
@@ -24,13 +24,17 @@ CONFIGURE_ARGS+=--with-log4shib=${LOCALB
 USES=		gmake pkgconfig
 USE_LDCONFIG=	yes
 
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
+
 post-patch:
 	@${REINPLACE_CMD} -e 's,^pkgdocdir.*=.*,pkgdocdir = ${DOCSDIR},' \
 		${WRKSRC}/doc/Makefile.in
 	@${REINPLACE_CMD} -e 's|echo aout|echo elf|g' \
 	    ${WRKSRC}/configure
 
-.if defined(NOPORTDOCS)
+.if empty(PORT_OPTIONS:MDOCS)
 	@${REINPLACE_CMD} -e '/^SUBDIRS/s,doc ,,' ${WRKSRC}/Makefile.in
 .endif
 

Modified: head/security/outguess/Makefile
==============================================================================
--- head/security/outguess/Makefile	Fri Jul  4 22:08:14 2014	(r360670)
+++ head/security/outguess/Makefile	Fri Jul  4 22:17:11 2014	(r360671)
@@ -20,15 +20,15 @@ GNU_CONFIGURE=	yes
 WRKSRC=		${WRKDIR}/outguess
 PORTDOCS=	ChangeLog README STIRMARK-README TODO
 
+OPTIONS_DEFINE=	DOCS
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/outguess ${STAGEDIR}${PREFIX}/bin
 	${LN} -sf outguess ${STAGEDIR}${PREFIX}/bin/extract
 	${INSTALL_MAN} ${WRKSRC}/outguess.1 ${STAGEDIR}${PREFIX}/man/man1
-.if !defined(NOPORTDOCS)
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for i in ${PORTDOCS}
 	${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>

Modified: head/security/p5-Filter-CBC/Makefile
==============================================================================
--- head/security/p5-Filter-CBC/Makefile	Fri Jul  4 22:08:14 2014	(r360670)
+++ head/security/p5-Filter-CBC/Makefile	Fri Jul  4 22:17:11 2014	(r360671)
@@ -19,11 +19,11 @@ PLIST_SUB=	EXAMPLESDIR="share/examples/$
 USES=		perl5
 USE_PERL5=	configure
 
+OPTIONS_DEFINE=	EXAMPLES
+
 post-install:
-.ifndef(NOPORTEXAMPLES)
 	@${ECHO_MSG} "===>   Installing examples for ${PKGNAME}"
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
-.endif
 
 .include <bsd.port.mk>

Modified: head/security/pam_pwdfile/Makefile
==============================================================================
--- head/security/pam_pwdfile/Makefile	Fri Jul  4 22:08:14 2014	(r360670)
+++ head/security/pam_pwdfile/Makefile	Fri Jul  4 22:17:11 2014	(r360671)
@@ -16,16 +16,16 @@ PLIST_FILES=	lib/pam_pwdfile.so
 PORTDOCS=	README INSTALL changelog
 CFLAGS+=	-I${WRKSRC}
 
+OPTIONS_DEFINE=	DOCS
+
 post-patch:
 	${REINPLACE_CMD} -e 's|#include <features.h>||g' ${WRKSRC}/pam_pwdfile.c
 	${CP} ${FILESDIR}/_pam_macros.h ${WRKSRC}
 
 post-install:
-.if !defined(NOPORTDOCS)
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for docs in ${PORTDOCS}
 	@${INSTALL_DATA} ${WRKSRC}/${docs} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>

Modified: head/security/py-gnutls/Makefile
==============================================================================
--- head/security/py-gnutls/Makefile	Fri Jul  4 22:08:14 2014	(r360670)
+++ head/security/py-gnutls/Makefile	Fri Jul  4 22:17:11 2014	(r360671)
@@ -19,15 +19,15 @@ PYDISTUTILS_PKGNAME=	python_gnutls
 
 EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}
 
+OPTIONS_DEFINE=	EXAMPLES
+
 post-patch:
 	${REINPLACE_CMD} -e "s|include_dirs=.*|include_dirs=\['${LOCALBASE}/include'\],|" ${WRKSRC}/setup.py
 	${REINPLACE_CMD} -e "s|library_dirs=.*|library_dirs=\['${LOCALBASE}/lib'\],|" ${WRKSRC}/setup.py
 	${REINPLACE_CMD} -e "s|\.26||g" ${WRKSRC}/gnutls/library/functions.py
 
-.if !defined(NOPORTEXAMPLES)
 post-install:
 	@${MKDIR} ${STAGEDIR}/${EXAMPLESDIR}
 	${CP} -R ${WRKSRC}/examples/ ${STAGEDIR}/${EXAMPLESDIR}
-.endif
 
 .include <bsd.port.mk>

Modified: head/security/skipfish/Makefile
==============================================================================
--- head/security/skipfish/Makefile	Fri Jul  4 22:08:14 2014	(r360670)
+++ head/security/skipfish/Makefile	Fri Jul  4 22:17:11 2014	(r360671)
@@ -20,11 +20,9 @@ LIB_DEPENDS=	idn:${PORTSDIR}/dns/libidn 
 USES=		gmake
 SUB_FILES=	pkg-message
 
-.if !defined(NOPORTDOCS)
-PORTDOCS=	README COPYING ChangeLog
-.endif
+OPTIONS_DEFINE=	DOCS
 
-.include <bsd.port.pre.mk>
+PORTDOCS=	README COPYING ChangeLog
 
 post-patch:
 	@${REINPLACE_CMD} -e 's:"skipfish.wl":"${DATADIR}/dictionaries/complete.wl":' \
@@ -36,11 +34,9 @@ do-install:
 	${INSTALL_MAN} ${WRKSRC}/doc/skipfish.1 ${STAGEDIR}${PREFIX}/man/man1
 	(cd ${WRKSRC}/assets/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/assets/)
 	(cd ${WRKSRC}/dictionaries/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/dictionaries/)
-.if !defined(NOPORTDOCS)
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 .	for doc in ${PORTDOCS}
 		${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
 .	endfor
-.endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/security/sqlninja/Makefile
==============================================================================
--- head/security/sqlninja/Makefile	Fri Jul  4 22:08:14 2014	(r360670)
+++ head/security/sqlninja/Makefile	Fri Jul  4 22:17:11 2014	(r360671)
@@ -21,6 +21,8 @@ RUN_DEPENDS=	p5-IO-Socket-SSL>=0:${PORTS
 USES=		perl5
 NO_BUILD=	yes
 
+OPTIONS_DEFINE=	DOCS
+
 do-install:
 	${MKDIR} ${STAGEDIR}${ETCDIR}
 	${MKDIR} ${STAGEDIR}${ETCDIR}/scripts
@@ -34,11 +36,9 @@ do-install:
 .	for i in churrasco.exe dnstun.exe nc.exe
 		${INSTALL_SCRIPT} ${WRKSRC}/apps/${i} ${STAGEDIR}${ETCDIR}/apps
 .	endfor
-.if !defined(NOPORTDOCS)
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 .	for i in sqlninja-howto.html sqlninja.conf.example
 		${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
 .	endfor
-.endif
 
 .include <bsd.port.mk>

Modified: head/security/webscarab/Makefile
==============================================================================
--- head/security/webscarab/Makefile	Fri Jul  4 22:08:14 2014	(r360670)
+++ head/security/webscarab/Makefile	Fri Jul  4 22:17:11 2014	(r360671)
@@ -20,6 +20,8 @@ DATADIR=	${JAVASHAREDIR}/${PORTNAME}
 
 PORTDOCS=	README LICENSE ChangeLog
 
+OPTIONS_DEFINE=	DOCS
+
 .include <bsd.port.pre.mk>
 
 post-extract:
@@ -37,11 +39,9 @@ do-install:
 	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.jar ${STAGEDIR}${DATADIR}
 	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}_lite
-.if !defined(NOPORTDOCS)
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .       for i in ${PORTDOCS}
 		${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
 .       endfor
-.endif
 
 .include <bsd.port.post.mk>



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