Get rid of the "gnutls" and "ssl" options and replace with a "courier-gnutls" option/toggle that allows using GNU TLS instead of defaulting to OpenSSL. Bump the PKGREVISION of couriertcpd, courier-imap, and courier-mta to 1.diff -r1.67 -r1.68 pkgsrc/mail/courier-imap/Makefile
(jlam)
@@ -1,16 +1,17 @@ | @@ -1,16 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.67 2008/02/19 18:45:14 jlam Exp $ | 1 | # $NetBSD: Makefile,v 1.68 2008/02/21 15:50:29 jlam Exp $ | |
2 | 2 | |||
3 | DISTNAME= courier-imap-4.3.0 | 3 | DISTNAME= courier-imap-4.3.0 | |
4 | PKGREVISION= 1 | |||
4 | CATEGORIES= mail | 5 | CATEGORIES= mail | |
5 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/} | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/} | |
6 | EXTRACT_SUFX= .tar.bz2 | 7 | EXTRACT_SUFX= .tar.bz2 | |
7 | 8 | |||
8 | MAINTAINER= jlam@pkgsrc.org | 9 | MAINTAINER= jlam@pkgsrc.org | |
9 | COMMENT= IMAP server for access to maildir-style mailboxes | 10 | COMMENT= IMAP server for access to maildir-style mailboxes | |
10 | HOMEPAGE= http://www.courier-mta.org/imap/ | 11 | HOMEPAGE= http://www.courier-mta.org/imap/ | |
11 | 12 | |||
12 | DEPENDS+= courier-maildir>=0.58.0:../../mail/courier-maildir | 13 | DEPENDS+= courier-maildir>=0.58.0:../../mail/courier-maildir | |
13 | DEPENDS+= couriertcpd>=0.58.0:../../net/couriertcpd | 14 | DEPENDS+= couriertcpd>=0.58.0:../../net/couriertcpd | |
14 | 15 | |||
15 | PKG_DESTDIR_SUPPORT= user-destdir | 16 | PKG_DESTDIR_SUPPORT= user-destdir | |
16 | 17 |
@@ -1,37 +1,34 @@ | @@ -1,37 +1,34 @@ | |||
1 | # $NetBSD: options.mk,v 1.1 2008/02/19 18:45:14 jlam Exp $ | 1 | # $NetBSD: options.mk,v 1.2 2008/02/21 15:50:29 jlam Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.courier-imap | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.courier-imap | |
4 | PKG_SUPPORTED_OPTIONS= fam | 4 | PKG_SUPPORTED_OPTIONS= courier-gnutls fam | |
5 | PKG_OPTIONS_OPTIONAL_GROUPS= tls | 5 | PKG_SUGGESTED_OPTIONS= # empty | |
6 | PKG_OPTIONS_GROUP.tls= gnutls ssl | |||
7 | PKG_SUGGESTED_OPTIONS= ssl | |||
8 | 6 | |||
9 | .include "../../mk/bsd.options.mk" | 7 | .include "../../mk/bsd.options.mk" | |
10 | 8 | |||
11 | ### | 9 | ### | |
12 | ### File Alteration Monitor support. This allows multiple imapd or pop3d | 10 | ### Support using the GNU TLS tools for creating certificates; otherwise | |
13 | ### processes to be notified of changes to the underlying maildirs instead | 11 | ### default to using OpenSSL. | |
14 | ### of needing to poll the maildirs. | |||
15 | ### | 12 | ### | |
16 | .if !empty(PKG_OPTIONS:Mfam) | |||
17 | . include "../../mk/fam.buildlink3.mk" | |||
18 | .endif | |||
19 | ||||
20 | ### | |||
21 | ### Default to using the OpenSSL or GNUTLS tools for creating certificates. | |||
22 | ### | |||
23 | .if !empty(PKG_OPTIONS:Mgnutls) || !empty(PKG_OPTIONS:Mssl) | |||
24 | SUBST_CLASSES+= tls | 13 | SUBST_CLASSES+= tls | |
25 | SUBST_FILES.tls= imap/mkimapdcert.in imap/mkpop3dcert.in | 14 | SUBST_FILES.tls= imap/mkimapdcert.in imap/mkpop3dcert.in | |
26 | SUBST_STAGE.tls= pre-configure | 15 | SUBST_STAGE.tls= pre-configure | |
27 | COURIER_CERTTOOL= ${PREFIX}/bin/certtool | 16 | COURIER_CERTTOOL= ${PREFIX}/bin/certtool | |
28 | COURIER_OPENSSL= ${PREFIX}/bin/openssl | 17 | COURIER_OPENSSL= ${PREFIX}/bin/openssl | |
29 | .endif | 18 | ||
30 | .if !empty(PKG_OPTIONS:Mgnutls) | 19 | .if !empty(PKG_OPTIONS:Mcourier-gnutls) | |
31 | SUBST_SED.tls= -e "s|@ssllib@|gnutls|g" | 20 | SUBST_SED.tls= -e "s|@ssllib@|gnutls|g" | |
32 | .endif | 21 | .else | |
33 | .if !empty(PKG_OPTIONS:Mssl) | |||
34 | USE_TOOLS+= openssl:run | 22 | USE_TOOLS+= openssl:run | |
35 | COURIER_OPENSSL= ${TOOLS_OPENSSL} | 23 | COURIER_OPENSSL= ${TOOLS_OPENSSL} | |
36 | SUBST_SED.tls= -e "s|@ssllib@|openssl|g" | 24 | SUBST_SED.tls= -e "s|@ssllib@|openssl|g" | |
37 | .endif | 25 | .endif | |
26 | ||||
27 | ### | |||
28 | ### File Alteration Monitor support. This allows multiple imapd or pop3d | |||
29 | ### processes to be notified of changes to the underlying maildirs instead | |||
30 | ### of needing to poll the maildirs. | |||
31 | ### | |||
32 | .if !empty(PKG_OPTIONS:Mfam) | |||
33 | . include "../../mk/fam.buildlink3.mk" | |||
34 | .endif |
@@ -1,17 +1,18 @@ | @@ -1,17 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.24 2008/02/19 18:45:23 jlam Exp $ | 1 | # $NetBSD: Makefile,v 1.25 2008/02/21 15:50:29 jlam Exp $ | |
2 | 2 | |||
3 | DISTNAME= courier-${COURIER_VERSION} | 3 | DISTNAME= courier-${COURIER_VERSION} | |
4 | PKGNAME= ${DISTNAME:S/-/-mta-/} | 4 | PKGNAME= ${DISTNAME:S/-/-mta-/} | |
5 | PKGREVISION= 1 | |||
5 | CATEGORIES= mail | 6 | CATEGORIES= mail | |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/} | 7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/} | |
7 | EXTRACT_SUFX= .tar.bz2 | 8 | EXTRACT_SUFX= .tar.bz2 | |
8 | 9 | |||
9 | CONFLICTS+= postfix-[0-9]* qmail-[0-9]* sendmail-[0-9]* | 10 | CONFLICTS+= postfix-[0-9]* qmail-[0-9]* sendmail-[0-9]* | |
10 | 11 | |||
11 | MAINTAINER= jlam@pkgsrc.org | 12 | MAINTAINER= jlam@pkgsrc.org | |
12 | COMMENT= Courier mail transport agent | 13 | COMMENT= Courier mail transport agent | |
13 | HOMEPAGE= http://www.courier-mta.org/ | 14 | HOMEPAGE= http://www.courier-mta.org/ | |
14 | 15 | |||
15 | DEPENDS+= courier-maildir>=${COURIER_VERSION}:../../mail/courier-maildir | 16 | DEPENDS+= courier-maildir>=${COURIER_VERSION}:../../mail/courier-maildir | |
16 | DEPENDS+= couriertcpd>=${COURIER_VERSION}:../../net/couriertcpd | 17 | DEPENDS+= couriertcpd>=${COURIER_VERSION}:../../net/couriertcpd | |
17 | DEPENDS+= maildrop>=2.0.4nb3:../../mail/maildrop | 18 | DEPENDS+= maildrop>=2.0.4nb3:../../mail/maildrop |
@@ -1,24 +1,21 @@ | @@ -1,24 +1,21 @@ | |||
1 | # $NetBSD: options.mk,v 1.9 2008/02/19 18:45:23 jlam Exp $ | 1 | # $NetBSD: options.mk,v 1.10 2008/02/21 15:50:29 jlam Exp $ | |
2 | 2 | |||
3 | # Global and legacy options | 3 | # Global and legacy options | |
4 | 4 | |||
5 | PKG_OPTIONS_VAR= PKG_OPTIONS.courier-mta | 5 | PKG_OPTIONS_VAR= PKG_OPTIONS.courier-mta | |
6 | PKG_SUPPORTED_OPTIONS= courier-dsn courier-esmtp courier-local \ | 6 | PKG_SUPPORTED_OPTIONS= courier-dsn courier-esmtp courier-gnutls \ | |
7 | courier-uucp inet6 ldap | 7 | courier-local courier-uucp inet6 ldap | |
8 | PKG_OPTIONS_OPTIONAL_GROUPS= tls | 8 | PKG_SUGGESTED_OPTIONS= courier-dsn courier-esmtp courier-local inet6 | |
9 | PKG_OPTIONS_GROUP.tls= gnutls ssl | |||
10 | PKG_SUGGESTED_OPTIONS= courier-dsn courier-esmtp courier-local \ | |||
11 | inet6 ssl | |||
12 | 9 | |||
13 | .include "../../mk/bsd.options.mk" | 10 | .include "../../mk/bsd.options.mk" | |
14 | 11 | |||
15 | ###################################################################### | 12 | ###################################################################### | |
16 | ### | 13 | ### | |
17 | ### delivery sender notification mail transport | 14 | ### delivery sender notification mail transport | |
18 | ### | 15 | ### | |
19 | .if !empty(PKG_OPTIONS:Mcourier-dsn) | 16 | .if !empty(PKG_OPTIONS:Mcourier-dsn) | |
20 | COURIER_TRANSPORTS+= dsn | 17 | COURIER_TRANSPORTS+= dsn | |
21 | PLIST_SRC+= ${PKGDIR}/PLIST.dsn | 18 | PLIST_SRC+= ${PKGDIR}/PLIST.dsn | |
22 | 19 | |||
23 | . for _file_ in dsndelayed.txt dsndelivered.txt dsnfailed.txt \ | 20 | . for _file_ in dsndelayed.txt dsndelivered.txt dsnfailed.txt \ | |
24 | dsnfooter.txt dsnheader.txt dsnrelayed.txt \ | 21 | dsnfooter.txt dsnheader.txt dsnrelayed.txt \ | |
@@ -136,30 +133,29 @@ PLIST_SRC+= ${PKGDIR}/PLIST.ldap | @@ -136,30 +133,29 @@ PLIST_SRC+= ${PKGDIR}/PLIST.ldap | |||
136 | FILES_SUBST+= COURIERLDAPALIASD=courierldapaliasd | 133 | FILES_SUBST+= COURIERLDAPALIASD=courierldapaliasd | |
137 | 134 | |||
138 | RCD_SCRIPTS+= courierldapaliasd | 135 | RCD_SCRIPTS+= courierldapaliasd | |
139 | CONF_FILES_PERMS+= ${EGDIR}/ldapaliasrc.dist \ | 136 | CONF_FILES_PERMS+= ${EGDIR}/ldapaliasrc.dist \ | |
140 | ${PKG_SYSCONFDIR}/ldapaliasrc \ | 137 | ${PKG_SYSCONFDIR}/ldapaliasrc \ | |
141 | ${COURIER_USER} ${COURIER_GROUP} 0640 | 138 | ${COURIER_USER} ${COURIER_GROUP} 0640 | |
142 | .else | 139 | .else | |
143 | FILES_SUBST+= COURIERLDAPALIASD= | 140 | FILES_SUBST+= COURIERLDAPALIASD= | |
144 | CONFIGURE_ARGS+= --without-ldapaliasd | 141 | CONFIGURE_ARGS+= --without-ldapaliasd | |
145 | .endif | 142 | .endif | |
146 | 143 | |||
147 | ###################################################################### | 144 | ###################################################################### | |
148 | ### | 145 | ### | |
149 | ### Default to using the OpenSSL or GNUTLS tools for creating certificates. | 146 | ### Support using the GNU TLS tools for creating certificates; otherwise, | |
147 | ### default to using OpenSSL. | |||
150 | ### | 148 | ### | |
151 | .if !empty(PKG_OPTIONS:Mgnutls) || !empty(PKG_OPTIONS:Mssl) | |||
152 | SUBST_CLASSES+= tls | 149 | SUBST_CLASSES+= tls | |
153 | SUBST_FILES.tls= courier/module.esmtp/mkesmtpdcert.in | 150 | SUBST_FILES.tls= courier/module.esmtp/mkesmtpdcert.in | |
154 | SUBST_STAGE.tls= pre-configure | 151 | SUBST_STAGE.tls= pre-configure | |
155 | COURIER_CERTTOOL= ${PREFIX}/bin/certtool | 152 | COURIER_CERTTOOL= ${PREFIX}/bin/certtool | |
156 | COURIER_OPENSSL= ${PREFIX}/bin/openssl | 153 | COURIER_OPENSSL= ${PREFIX}/bin/openssl | |
157 | .endif | 154 | ||
158 | .if !empty(PKG_OPTIONS:Mgnutls) | 155 | .if !empty(PKG_OPTIONS:Mcourier-gnutls) | |
159 | SUBST_SED.tls= -e "s|@ssllib@|gnutls|g" | 156 | SUBST_SED.tls= -e "s|@ssllib@|gnutls|g" | |
160 | .endif | 157 | .else | |
161 | .if !empty(PKG_OPTIONS:Mssl) | |||
162 | USE_TOOLS+= openssl:run | 158 | USE_TOOLS+= openssl:run | |
163 | COURIER_OPENSSL= ${TOOLS_OPENSSL} | 159 | COURIER_OPENSSL= ${TOOLS_OPENSSL} | |
164 | SUBST_SED.tls= -e "s|@ssllib@|openssl|g" | 160 | SUBST_SED.tls= -e "s|@ssllib@|openssl|g" | |
165 | .endif | 161 | .endif |
@@ -1,17 +1,18 @@ | @@ -1,17 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.14 2008/02/19 18:45:41 jlam Exp $ | 1 | # $NetBSD: Makefile,v 1.15 2008/02/21 15:50:29 jlam Exp $ | |
2 | 2 | |||
3 | DISTNAME= courier-${COURIER_VERSION} | 3 | DISTNAME= courier-${COURIER_VERSION} | |
4 | PKGNAME= ${DISTNAME:S/-/tcpd-/} | 4 | PKGNAME= ${DISTNAME:S/-/tcpd-/} | |
5 | PKGREVISION= 1 | |||
5 | CATEGORIES= net | 6 | CATEGORIES= net | |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/} | 7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/} | |
7 | EXTRACT_SUFX= .tar.bz2 | 8 | EXTRACT_SUFX= .tar.bz2 | |
8 | 9 | |||
9 | MAINTAINER= jlam@pkgsrc.org | 10 | MAINTAINER= jlam@pkgsrc.org | |
10 | COMMENT= Courier TCP socket and TLS servers | 11 | COMMENT= Courier TCP socket and TLS servers | |
11 | HOMEPAGE= http://www.courier-mta.org/ | 12 | HOMEPAGE= http://www.courier-mta.org/ | |
12 | 13 | |||
13 | CONFLICTS= courier-imap<4.1.1 | 14 | CONFLICTS= courier-imap<4.1.1 | |
14 | 15 | |||
15 | PKG_DESTDIR_SUPPORT= user-destdir | 16 | PKG_DESTDIR_SUPPORT= user-destdir | |
16 | 17 | |||
17 | USE_TOOLS+= gmake | 18 | USE_TOOLS+= gmake | |
@@ -37,28 +38,26 @@ WRKSRC_FILES+= Makefile.in courier.spec | @@ -37,28 +38,26 @@ WRKSRC_FILES+= Makefile.in courier.spec | |||
37 | # These are subdirectories containing libraries used by couriertcpd. | 38 | # These are subdirectories containing libraries used by couriertcpd. | |
38 | WRKSRC_SUBDIRS= bdbobj numlib soxwrap md5 random128 rfc1035 \ | 39 | WRKSRC_SUBDIRS= bdbobj numlib soxwrap md5 random128 rfc1035 \ | |
39 | liblock waitlib tcpd | 40 | liblock waitlib tcpd | |
40 | 41 | |||
41 | EXTRACT_ELEMENTS= ${WRKSRC_FILES:S/^/${DISTNAME}\//} | 42 | EXTRACT_ELEMENTS= ${WRKSRC_FILES:S/^/${DISTNAME}\//} | |
42 | EXTRACT_ELEMENTS+= ${WRKSRC_SUBDIRS:S/^/${DISTNAME}\//} | 43 | EXTRACT_ELEMENTS+= ${WRKSRC_SUBDIRS:S/^/${DISTNAME}\//} | |
43 | 44 | |||
44 | BUILD_DIRS= ${WRKSRC_SUBDIRS:S/^/${WRKSRC}\//} | 45 | BUILD_DIRS= ${WRKSRC_SUBDIRS:S/^/${WRKSRC}\//} | |
45 | INSTALLATION_DIRS= bin sbin ${PKGMANDIR}/man1 ${DOCDIR} | 46 | INSTALLATION_DIRS= bin sbin ${PKGMANDIR}/man1 ${DOCDIR} | |
46 | 47 | |||
47 | REQD_DIRS= ${DOCDIR} | 48 | REQD_DIRS= ${DOCDIR} | |
48 | MAKE_DIRS+= ${COURIER_STATEDIR} | 49 | MAKE_DIRS+= ${COURIER_STATEDIR} | |
49 | 50 | |||
50 | .include "../../security/openssl/buildlink3.mk" | |||
51 | ||||
52 | do-install: | 51 | do-install: | |
53 | ${INSTALL_PROGRAM} ${WRKSRC}/tcpd/couriertcpd \ | 52 | ${INSTALL_PROGRAM} ${WRKSRC}/tcpd/couriertcpd \ | |
54 | ${DESTDIR}${PREFIX}/sbin/couriertcpd | 53 | ${DESTDIR}${PREFIX}/sbin/couriertcpd | |
55 | ${INSTALL_MAN} ${WRKSRC}/tcpd/couriertcpd.1 \ | 54 | ${INSTALL_MAN} ${WRKSRC}/tcpd/couriertcpd.1 \ | |
56 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/couriertcpd.1 | 55 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/couriertcpd.1 | |
57 | ${INSTALL_DATA} ${WRKSRC}/tcpd/couriertcpd.html \ | 56 | ${INSTALL_DATA} ${WRKSRC}/tcpd/couriertcpd.html \ | |
58 | ${DESTDIR}${DOCDIR}/couriertcpd.html | 57 | ${DESTDIR}${DOCDIR}/couriertcpd.html | |
59 | 58 | |||
60 | ${INSTALL_PROGRAM} ${WRKSRC}/tcpd/couriertls \ | 59 | ${INSTALL_PROGRAM} ${WRKSRC}/tcpd/couriertls \ | |
61 | ${DESTDIR}${PREFIX}/bin/couriertls | 60 | ${DESTDIR}${PREFIX}/bin/couriertls | |
62 | ${INSTALL_MAN} ${WRKSRC}/tcpd/couriertls.1 \ | 61 | ${INSTALL_MAN} ${WRKSRC}/tcpd/couriertls.1 \ | |
63 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/couriertls.1 | 62 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/couriertls.1 | |
64 | ${INSTALL_DATA} ${WRKSRC}/tcpd/couriertls.html \ | 63 | ${INSTALL_DATA} ${WRKSRC}/tcpd/couriertls.html \ |
@@ -1,28 +1,27 @@ | @@ -1,28 +1,27 @@ | |||
1 | # $NetBSD: options.mk,v 1.1 2008/02/19 18:45:41 jlam Exp $ | 1 | # $NetBSD: options.mk,v 1.2 2008/02/21 15:50:29 jlam Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.couriertcpd | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.couriertcpd | |
4 | PKG_SUPPORTED_OPTIONS= inet6 | 4 | PKG_SUPPORTED_OPTIONS= courier-gnutls inet6 | |
5 | PKG_OPTIONS_REQUIRED_GROUPS= tls | 5 | PKG_SUGGESTED_OPTIONS= inet6 | |
6 | PKG_OPTIONS_GROUP.tls= gnutls ssl | |||
7 | PKG_SUGGESTED_OPTIONS= inet6 ssl | |||
8 | 6 | |||
9 | .include "../../mk/bsd.options.mk" | 7 | .include "../../mk/bsd.options.mk" | |
10 | 8 | |||
11 | ### | 9 | ### | |
12 | ### Build with OpenSSL or GNU TLS as the underlying crypto library. | 10 | ### Support using GNU TLS as the underlying crypto library; otherwise, | |
11 | ### default to using OpenSSL. | |||
13 | ### | 12 | ### | |
14 | .if !empty(PKG_OPTIONS:Mssl) | 13 | .if !empty(PKG_OPTIONS:Mcourier-gnutls) | |
15 | . include "../../security/openssl/buildlink3.mk" | |||
16 | .elif !empty(PKG_OPTIONS:Mgnutls) | |||
17 | . include "../../security/gnutls/buildlink3.mk" | 14 | . include "../../security/gnutls/buildlink3.mk" | |
18 | CONFIGURE_ARGS+= --with-gnutls | 15 | CONFIGURE_ARGS+= --with-gnutls | |
16 | .else | |||
17 | . include "../../security/openssl/buildlink3.mk" | |||
19 | .endif | 18 | .endif | |
20 | 19 | |||
21 | ### | 20 | ### | |
22 | ### IPv6 support. | 21 | ### IPv6 support. | |
23 | ### | 22 | ### | |
24 | .if !empty(PKG_OPTIONS:Minet6) | 23 | .if !empty(PKG_OPTIONS:Minet6) | |
25 | CONFIGURE_ARGS+= --with-ipv6 | 24 | CONFIGURE_ARGS+= --with-ipv6 | |
26 | .else | 25 | .else | |
27 | CONFIGURE_ARGS+= --without-ipv6 | 26 | CONFIGURE_ARGS+= --without-ipv6 | |
28 | .endif | 27 | .endif |