From 73ce4000cc5b17205e554cfc9f8681543f5d24ed Mon Sep 17 00:00:00 2001 From: jase Date: Sat, 7 Jul 2012 16:28:11 +0000 Subject: - 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 (maintainer) Approved by: culot (mentor) --- mail/dovecot2-pigeonhole/Makefile | 16 ++++++++++------ mail/dovecot2-pigeonhole/pkg-plist | 1 + 2 files changed, 11 insertions(+), 6 deletions(-) (limited to 'mail') 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 + +.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%% -- cgit