Date: Sun, 10 Jan 2016 22:11:55 +0000 (UTC) From: Thierry Thomas <thierry@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r405754 - head/mail/spambnc Message-ID: <201601102211.u0AMBt2o082769@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: thierry Date: Sun Jan 10 22:11:55 2016 New Revision: 405754 URL: https://svnweb.freebsd.org/changeset/ports/405754 Log: Use PORTDATA and convert to options helpers. PR: ports/205884 Submitted by: pawel Modified: head/mail/spambnc/Makefile Modified: head/mail/spambnc/Makefile ============================================================================== --- head/mail/spambnc/Makefile Sun Jan 10 21:51:11 2016 (r405753) +++ head/mail/spambnc/Makefile Sun Jan 10 22:11:55 2016 (r405754) @@ -25,15 +25,13 @@ PLIST= ${WRKDIR}/.pkg-plist PKGMESSAGE= ${WRKDIR}/pkg-message SUB_FILES= pkg-message -OPTIONS_DEFINE= DOCS +PORTDATA= * +PORTDOCS= documentation.html upgrading.html loglevels.txt -.include <bsd.port.options.mk> +OPTIONS_DEFINE= DOCS -.if ${PORT_OPTIONS:MDOCS} -MASTER_SITES+= http://www.spambouncer.org/configure/:upg -DISTFILES+= upgrading.shtml:upg -PORTDOCS= documentation.html upgrading.html loglevels.txt -.endif +DOCS_MASTER_SITES= http://www.spambouncer.org/configure/:upg +DOCS_DISTFILES= upgrading.shtml:upg pre-extract: ${MKDIR} ${EXTRACT_DIR} @@ -42,23 +40,17 @@ post-extract: ${MV} ${EXTRACT_DIR} ${WRKDIR} ${RM} -rf ${WRKDIRPREFIX}${.CURDIR}/worktmp -pre-install: - (cd ${WRKSRC} && ${FIND} -s . -type f | ${GREP} -v "^\.\/\." | \ - ${GREP} -v docs | ${SED} -e 's,.,%%DATADIR%%,1' > ${PLIST}) - (cd ${WRKSRC} && ${FIND} -s . -type d | ${GREP} -v docs | ${SORT} -r | \ - ${SED} -e 's,.,@dirrm %%DATADIR%%,' >> ${PLIST}) - do-install: ${MKDIR} ${STAGEDIR}${DATADIR} (cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}) ${RM} -rf ${STAGEDIR}${DATADIR}/docs -.if ${PORT_OPTIONS:MDOCS} + +do-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/quickstart.shtml \ ${STAGEDIR}${DOCSDIR}/documentation.html ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/upgrading.shtml \ ${STAGEDIR}${DOCSDIR}/upgrading.html ${INSTALL_DATA} ${WRKSRC}/docs/loglevels.txt ${STAGEDIR}${DOCSDIR} -.endif .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601102211.u0AMBt2o082769>