aboutsummaryrefslogtreecommitdiffstats
path: root/mail/spambnc
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2016-01-11 06:11:55 +0800
committerthierry <thierry@FreeBSD.org>2016-01-11 06:11:55 +0800
commit2d4b52ea174d5803c9f2fc96bfec6ea9ac4b09dd (patch)
tree3fc0db9722a6d8cda350b7dcc22b7ec386b7961a /mail/spambnc
parent4b35a0420ecd427fd77c69070a960e77801312ac (diff)
downloadfreebsd-ports-gnome-2d4b52ea174d5803c9f2fc96bfec6ea9ac4b09dd.tar.gz
freebsd-ports-gnome-2d4b52ea174d5803c9f2fc96bfec6ea9ac4b09dd.tar.zst
freebsd-ports-gnome-2d4b52ea174d5803c9f2fc96bfec6ea9ac4b09dd.zip
Use PORTDATA and convert to options helpers.
PR: ports/205884 Submitted by: pawel
Diffstat (limited to 'mail/spambnc')
-rw-r--r--mail/spambnc/Makefile22
1 files changed, 7 insertions, 15 deletions
diff --git a/mail/spambnc/Makefile b/mail/spambnc/Makefile
index 8abfa29406d5..0c6da9cd1029 100644
--- a/mail/spambnc/Makefile
+++ b/mail/spambnc/Makefile
@@ -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>