diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-09-25 05:19:31 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-09-25 05:19:31 +0800 |
commit | 9d34b1e9d9927dd6a02addde0602939e595d8f49 (patch) | |
tree | 5a38ab75fcfa289fa7be39a96bc66ff774739d55 /mail/spamdyke | |
parent | 9923562225a816dac118d0d2ce22bdb4a81edb56 (diff) | |
download | freebsd-ports-gnome-9d34b1e9d9927dd6a02addde0602939e595d8f49.tar.gz freebsd-ports-gnome-9d34b1e9d9927dd6a02addde0602939e595d8f49.tar.zst freebsd-ports-gnome-9d34b1e9d9927dd6a02addde0602939e595d8f49.zip |
- Switch to options helpers
- Switch to @sample
Approved by: portmgr blanket
Diffstat (limited to 'mail/spamdyke')
-rw-r--r-- | mail/spamdyke/Makefile | 18 | ||||
-rw-r--r-- | mail/spamdyke/pkg-plist | 4 |
2 files changed, 8 insertions, 14 deletions
diff --git a/mail/spamdyke/Makefile b/mail/spamdyke/Makefile index e19f6ca0f2b1..b8fe7f354a4f 100644 --- a/mail/spamdyke/Makefile +++ b/mail/spamdyke/Makefile @@ -3,6 +3,7 @@ PORTNAME= spamdyke PORTVERSION= 5.0.1 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= http://www.spamdyke.org/releases/ @@ -33,26 +34,21 @@ TLS_USE= OPENSSL=yes DEBUG_CONFIGURE_ENABLE= debug-output DEBUG_EXCESSIVE_CONFIGURE_ENABLE= excessive-output -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MDOCS} PORTDOCS= Changelog.txt FAQ.html GNUGPL.txt INSTALL.txt \ README.html README_ip_file_format.html \ README_rdns_directory_format.html README_rdns_file_format.html \ UPGRADING.txt UPGRADING_version_3_to_version_4.txt -.endif - -post-install: -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${STAGEDIR}${DOCSDIR} - cd ${WRKDIR}/${DISTNAME}/documentation && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} -.endif - ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/documentation/spamdyke.conf.example ${STAGEDIR}${PREFIX}/etc post-patch: @${REINPLACE_CMD} -e 's#^CFLAGS :=.*#CFLAGS = ${CFLAGS}#' ${WRKSRC}/Makefile.in do-install: ${INSTALL_PROGRAM} ${WRKSRC}/spamdyke ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/documentation/spamdyke.conf.example \ + ${STAGEDIR}${PREFIX}/etc/spamdyke.conf.sample + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKDIR}/${DISTNAME}/documentation && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/mail/spamdyke/pkg-plist b/mail/spamdyke/pkg-plist index 40b8ef4ad20e..7d7738b903d6 100644 --- a/mail/spamdyke/pkg-plist +++ b/mail/spamdyke/pkg-plist @@ -1,4 +1,2 @@ bin/spamdyke -@unexec if cmp -s %D/etc/spamdyke.conf.example %D/etc/spamdyke.conf; then rm -f %D/etc/spamdyke.conf; fi -etc/spamdyke.conf.example -@exec if [ ! -f %D/etc/spamdyke.conf ] ; then cp -p %D/%F %B/spamdyke.conf; fi +@sample etc/spamdyke.conf.sample |