aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorjase <jase@FreeBSD.org>2012-07-08 00:28:11 +0800
committerjase <jase@FreeBSD.org>2012-07-08 00:28:11 +0800
commit73ce4000cc5b17205e554cfc9f8681543f5d24ed (patch)
treeab4c60e153e16033289d2939c1612c8031481698 /mail
parent8868370ffdba66f069cc8d1329da2b1557929c2e (diff)
downloadfreebsd-ports-gnome-73ce4000cc5b17205e554cfc9f8681543f5d24ed.tar.gz
freebsd-ports-gnome-73ce4000cc5b17205e554cfc9f8681543f5d24ed.tar.zst
freebsd-ports-gnome-73ce4000cc5b17205e554cfc9f8681543f5d24ed.zip
- Bump PORTREVISION after update to mail/dovecot2 [1]
- Convert to optionsNG and add DOCS,EXAMPLES options - Pet portlint(1): dirrm DOCSDIR PR: ports/169622 [1] Submitted by: Attila Nagy <bra@fsn.hu> (maintainer) Approved by: culot (mentor)
Diffstat (limited to 'mail')
-rw-r--r--mail/dovecot2-pigeonhole/Makefile16
-rw-r--r--mail/dovecot2-pigeonhole/pkg-plist1
2 files changed, 11 insertions, 6 deletions
diff --git a/mail/dovecot2-pigeonhole/Makefile b/mail/dovecot2-pigeonhole/Makefile
index 81588e06fc72..b6631b7a50e4 100644
--- a/mail/dovecot2-pigeonhole/Makefile
+++ b/mail/dovecot2-pigeonhole/Makefile
@@ -7,7 +7,7 @@
PORTNAME= dovecot-pigeonhole
PORTVERSION= 0.3.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= http://www.rename-it.nl/dovecot/${DOVECOTVERSION}/
DISTNAME= ${PORTNAME:C/-/-${DOVECOTVERSION}-/}-${PORTVERSION}
@@ -35,14 +35,18 @@ MAN7= pigeonhole.7
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:S/-/\//}
-.if !defined(NOPORTDOCS)
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
EXTENSIONDOCS= editheader.txt include.txt spamtest-virustest.txt \
vacation.txt vnd.dovecot.duplicate.txt
PORTDOCS= AUTHORS COPYING COPYING.LGPL INSTALL NEWS README TODO \
script-location-dict.txt ${EXTENSIONDOCS}
.endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME:S/-/\//}
PORTEXAMPLES= *.sieve
.endif
@@ -52,7 +56,7 @@ post-patch:
s!^(install-data-am:) install-sieve_docDATA!\1!; \
s!^(uninstall-am:) uninstall-sieve_docDATA!\1!;' \
${WRKSRC}/doc/Makefile.in
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
.for f in ${EXTENSIONDOCS}
@${LN} -f ${WRKSRC}/doc/extensions/${f} ${WRKSRC}/
.endfor
@@ -60,14 +64,14 @@ post-patch:
.endif
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${INSTALL} ${_SHROWNGRP} -m ${BINMODE} -d ${DOCSDIR}
.for f in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}"
.endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
@${INSTALL} ${_SHROWNGRP} -m ${BINMODE} -d ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/examples/*.sieve ${EXAMPLESDIR}
@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}"
diff --git a/mail/dovecot2-pigeonhole/pkg-plist b/mail/dovecot2-pigeonhole/pkg-plist
index 63855c0d0815..e5d54ab6a10e 100644
--- a/mail/dovecot2-pigeonhole/pkg-plist
+++ b/mail/dovecot2-pigeonhole/pkg-plist
@@ -74,3 +74,4 @@ share/doc/dovecot/example-config/conf.d/90-sieve.conf
@dirrmtry lib/dovecot
@dirrm include/dovecot/sieve
@dirrmtry include/dovecot
+%%PORTDOCS%%@dirrm %%DOCSDIR%%