svn commit: r405754 - head/mail/spambnc

Thierry Thomas thierry at FreeBSD.org
Sun Jan 10 22:11:56 UTC 2016


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,., at 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>


More information about the svn-ports-head mailing list