pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/qmail-run Conditionalize spamdyke and stunnel dep...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7da5de4710dc
branches:  trunk
changeset: 357135:7da5de4710dc
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Sat Jan 14 23:00:31 2017 +0000

description:
Conditionalize spamdyke and stunnel dependencies on "sasl" and "tls"
options, respectively. Bump version.

diffstat:

 mail/qmail-run/Makefile   |   8 ++++----
 mail/qmail-run/options.mk |  14 ++++++++++++++
 2 files changed, 18 insertions(+), 4 deletions(-)

diffs (49 lines):

diff -r 93dad59ca3da -r 7da5de4710dc mail/qmail-run/Makefile
--- a/mail/qmail-run/Makefile   Sat Jan 14 20:49:19 2017 +0000
+++ b/mail/qmail-run/Makefile   Sat Jan 14 23:00:31 2017 +0000
@@ -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 @@
 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,@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 -r 93dad59ca3da -r 7da5de4710dc mail/qmail-run/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/qmail-run/options.mk Sat Jan 14 23:00:31 2017 +0000
@@ -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



Home | Main Index | Thread Index | Old Index