From ca117d27ee55b5f016f4ed6afc30b821746505b8 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Mon, 10 Apr 2017 11:15:25 +0000 Subject: [PATCH] - Optionize docs - Switch to options helpers --- news/nntpcache/Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/news/nntpcache/Makefile b/news/nntpcache/Makefile index 5c93ff712122..a1c50d1888ac 100644 --- a/news/nntpcache/Makefile +++ b/news/nntpcache/Makefile @@ -28,7 +28,7 @@ SHEBANG_FILES= contrib/perlnewshound/newshound.pl 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.freebsd.org/~leeym/:SPAMPHOBIA 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