diff options
author | schmonz <schmonz@pkgsrc.org> | 2017-01-14 23:00:31 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2017-01-14 23:00:31 +0000 |
commit | 7a8aa4043949b17831eef5718acce318e9b89fc9 (patch) | |
tree | 12b458b02991312b177b7d035c34d78f72d63b77 /mail/qmail-run | |
parent | aa5481894dd31c8f8b72c91ea97596469e9c77af (diff) | |
download | pkgsrc-7a8aa4043949b17831eef5718acce318e9b89fc9.tar.gz |
Conditionalize spamdyke and stunnel dependencies on "sasl" and "tls"
options, respectively. Bump version.
Diffstat (limited to 'mail/qmail-run')
-rw-r--r-- | mail/qmail-run/Makefile | 8 | ||||
-rw-r--r-- | mail/qmail-run/options.mk | 14 |
2 files changed, 18 insertions, 4 deletions
diff --git a/mail/qmail-run/Makefile b/mail/qmail-run/Makefile index de5b72c6541..33d47014bbd 100644 --- a/mail/qmail-run/Makefile +++ b/mail/qmail-run/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.30 2017/01/09 05:03:51 schmonz Exp $ +# $NetBSD: Makefile,v 1.31 2017/01/14 23:00:31 schmonz Exp $ # -DISTNAME= qmail-run-20170109 +DISTNAME= qmail-run-20170114 CATEGORIES= mail MASTER_SITES= # empty DISTFILES= # empty @@ -13,8 +13,6 @@ LICENSE= 2-clause-bsd DEPENDS+= mess822-[0-9]*:../../mail/mess822 DEPENDS_QMAIL= qmail>=1.03nb8:../../mail/qmail DEPENDS+= ${DEPENDS_QMAIL} -DEPENDS+= spamdyke-[0-9]*:../../mail/spamdyke -DEPENDS+= stunnel-[0-9]*:../../security/stunnel CONFLICTS+= qmail-qfilter-1.5nb1 @@ -59,6 +57,8 @@ SUBST_SED.paths+= -e 's,@PKGNAME@,${PKGNAME},g' SUBST_SED.paths+= -e 's,@TRUE@,${TRUE},g' SUBST_STAGE.paths= post-patch +.include "options.mk" + post-extract: for f in README.pkgsrc mailer.conf spamdyke-ofmipd.conf stunnel.conf; do \ ${CP} ${FILESDIR}/$$f ${WRKDIR}/$$f; \ diff --git a/mail/qmail-run/options.mk b/mail/qmail-run/options.mk new file mode 100644 index 00000000000..2a14cf024d5 --- /dev/null +++ b/mail/qmail-run/options.mk @@ -0,0 +1,14 @@ +# $NetBSD: options.mk,v 1.1 2017/01/14 23:00:31 schmonz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.qmail-run +PKG_SUPPORTED_OPTIONS+= sasl tls + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Msasl) +DEPENDS+= spamdyke-[0-9]*:../../mail/spamdyke +.endif + +.if !empty(PKG_OPTIONS:Mtls) +DEPENDS+= stunnel-[0-9]*:../../security/stunnel +.endif |