Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Apr 2017 11:15:25 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r438143 - head/news/nntpcache
Message-ID:  <201704101115.v3ABFPXg089804@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Apr 10 11:15:25 2017
New Revision: 438143
URL: https://svnweb.freebsd.org/changeset/ports/438143

Log:
  - Optionize docs
  - Switch to options helpers

Modified:
  head/news/nntpcache/Makefile

Modified: head/news/nntpcache/Makefile
==============================================================================
--- head/news/nntpcache/Makefile	Mon Apr 10 10:55:27 2017	(r438142)
+++ head/news/nntpcache/Makefile	Mon Apr 10 11:15:25 2017	(r438143)
@@ -28,7 +28,7 @@ SHEBANG_FILES=	contrib/perlnewshound/new
 AUTHINFO_EXT=	authinfo_pam.ext
 USE_RC_SUBR=	nntpcached
 
-OPTIONS_DEFINE=	LDAP RADIUS SPAMPHOBIA
+OPTIONS_DEFINE=	LDAP RADIUS SPAMPHOBIA DOCS
 SPAMPHOBIA_DESC=	Spamphobia NoCeM support
 
 RADIUS_CONFIGURE_WITH=	authinfo-radius
@@ -51,11 +51,10 @@ SPAMPHOBIA_PATCH_SITES=	http://people.fr
 SPAMPHOBIA_PATCHFILES=	${DISTNAME}-spamphobia-${REVISEDATE}.diff.gz:SPAMPHOBIA
 
 post-configure:
-	${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} -C ${WRKSRC}/src ${AUTHINFO_EXT}
+	${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} -C ${WRKSRC}/src ${AUTHINFO_EXT}
 
-post-install:
-	@ ${MKDIR} ${STAGEDIR}${DOCSDIR}
-	(cd ${WRKSRC} && ${FIND} ${PORTDOCS} \
-	  | ${CPIO_CMD} ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR})
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	@cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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