diff options
author | sahil <sahil@FreeBSD.org> | 2012-06-11 02:58:16 +0800 |
---|---|---|
committer | sahil <sahil@FreeBSD.org> | 2012-06-11 02:58:16 +0800 |
commit | e110a8aa3688e389a301d5630684594eb376fb10 (patch) | |
tree | d68fc2e3318a83d4ba32e0308d6d7d68184e5f01 /mail/postfix-postfwd/Makefile | |
parent | 811c4be9f0b92363ffcd033d9165287cd6bc9b63 (diff) | |
download | freebsd-ports-gnome-e110a8aa3688e389a301d5630684594eb376fb10.tar.gz freebsd-ports-gnome-e110a8aa3688e389a301d5630684594eb376fb10.tar.zst freebsd-ports-gnome-e110a8aa3688e389a301d5630684594eb376fb10.zip |
- Add OPTION to install postfwd v2 rather than v1 and
convert to new options framework.
- Revise the rc.d script[1] with style and functionality
improvements, one of which works around an upstream
issue that obstructed operation of 'status' and other
functions. Because this affects the default package,
bump PORTREVISION.
Reviewed by: dougb [1]
Diffstat (limited to 'mail/postfix-postfwd/Makefile')
-rw-r--r-- | mail/postfix-postfwd/Makefile | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/mail/postfix-postfwd/Makefile b/mail/postfix-postfwd/Makefile index ff2d8d6e2b07..8dd844074a2f 100644 --- a/mail/postfix-postfwd/Makefile +++ b/mail/postfix-postfwd/Makefile @@ -7,6 +7,7 @@ PORTNAME= postfwd PORTVERSION= 1.32 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= http://www.${PORTNAME}.org/old/ PKGNAMEPREFIX= postfix- @@ -21,37 +22,42 @@ RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS \ ${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable \ ${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes -PORTDOCS= arch.html ${PORTNAME}.CHANGELOG ${PORTNAME}.html \ - ${PORTNAME}.txt quick.html versions.html - +PORTDOCS= * PORTEXAMPLES= request.sample postfwd.plugins.sample -PLIST_FILES= bin/${PORTNAME} etc/${PORTNAME}.conf.sample +PLIST_FILES= bin/${PORTNAME} etc/${PORTNAME}.conf.sample SUB_FILES= pkg-message USE_RC_SUBR= ${PORTNAME} USE_PERL5_RUN= yes NO_BUILD= yes -MAN8= ${PORTNAME}.8 +MAN8= ${PORTNAME}.8 ${PORTNAME}2.8 -.include <bsd.port.pre.mk> +OPTIONS_DEFINE= EXAMPLES DOCS POSTFWD2 +POSTFWD2_DESC= Install postfwd v2 rather than v1 + +.include <bsd.port.options.mk> do-install: +.if ${PORT_OPTIONS:MPOSTFWD2} + @${INSTALL_SCRIPT} ${WRKSRC}/sbin/${PORTNAME}2 ${PREFIX}/bin/${PORTNAME} +.else @${INSTALL_SCRIPT} ${WRKSRC}/sbin/${PORTNAME} ${PREFIX}/bin/ +.endif @${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}.cf.sample ${PREFIX}/etc/${PORTNAME}.conf.sample - @${INSTALL_MAN} ${WRKSRC}/man/man8/${MAN8} ${MANPREFIX}/man/man8/ + @${INSTALL_MAN} ${WRKSRC}/man/man8/* ${MANPREFIX}/man/man8/ post-install: -.if !defined(NOPORTDOCS) +.if !empty(PORT_OPTIONS:MDOCS) @${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m 555 -d ${DOCSDIR} @cd ${WRKSRC}/doc/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif -.if !defined(NOPORTEXAMPLES) +.if !empty(PORT_OPTIONS:MEXAMPLES) @${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m 555 -d ${EXAMPLESDIR} @${INSTALL_DATA} ${WRKSRC}/tools/request.sample ${EXAMPLESDIR} @${INSTALL_DATA} ${WRKSRC}/plugins/postfwd.plugins.sample ${EXAMPLESDIR} .endif @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> |