Argh, missed the fact that adam imported the sieve plugin as a separate dovecot2-pigonhole package. Back out the changes related to this.diff -r1.3 -r1.4 pkgsrc/mail/dovecot2/Makefile
(ghen)
@@ -1,22 +1,18 @@ | @@ -1,22 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.3 2010/11/09 15:35:47 ghen Exp $ | 1 | # $NetBSD: Makefile,v 1.4 2010/11/09 15:51:48 ghen Exp $ | |
2 | 2 | |||
3 | DOVECOT_VERSION= 2.0 | 3 | DISTNAME= dovecot-2.0.7 | |
4 | DOVECOT_SUBVERSION= .7 | |||
5 | SIEVE_VERSION= 0.2.1 | |||
6 | DISTNAME= dovecot-${DOVECOT_VERSION}${DOVECOT_SUBVERSION} | |||
7 | CATEGORIES= mail | 4 | CATEGORIES= mail | |
8 | MASTER_SITES= http://www.dovecot.org/releases/${DOVECOT_VERSION}/ | 5 | MASTER_SITES= http://www.dovecot.org/releases/2.0/ | |
9 | DOVECOT_SIEVE_SITES= http://www.rename-it.nl/dovecot/${DOVECOT_VERSION}/ | |||
10 | 6 | |||
11 | MAINTAINER= ghen@NetBSD.org | 7 | MAINTAINER= ghen@NetBSD.org | |
12 | HOMEPAGE= http://www.dovecot.org/ | 8 | HOMEPAGE= http://www.dovecot.org/ | |
13 | COMMENT= Secure IMAP and POP3 server | 9 | COMMENT= Secure IMAP and POP3 server | |
14 | LICENSE= mit AND gnu-lgpl-v2.1 AND modified-bsd | 10 | LICENSE= mit AND gnu-lgpl-v2.1 AND modified-bsd | |
15 | 11 | |||
16 | PKG_INSTALLATION_TYPES= overwrite pkgviews | 12 | PKG_INSTALLATION_TYPES= overwrite pkgviews | |
17 | PKG_DESTDIR_SUPPORT= user-destdir | 13 | PKG_DESTDIR_SUPPORT= user-destdir | |
18 | 14 | |||
19 | USE_TOOLS+= pkg-config rpcgen | 15 | USE_TOOLS+= pkg-config rpcgen | |
20 | USE_LIBTOOL= yes | 16 | USE_LIBTOOL= yes | |
21 | GNU_CONFIGURE= yes | 17 | GNU_CONFIGURE= yes | |
22 | CONFIGURE_ARGS+= --localstatedir=${VARBASE} | 18 | CONFIGURE_ARGS+= --localstatedir=${VARBASE} | |
@@ -36,56 +32,38 @@ PKG_USERS= ${DOVECOT_USER}:${DOVECOT_GR | @@ -36,56 +32,38 @@ PKG_USERS= ${DOVECOT_USER}:${DOVECOT_GR | |||
36 | ${DOVENULL_USER}:${DOVENULL_GROUP} | 32 | ${DOVENULL_USER}:${DOVENULL_GROUP} | |
37 | PKG_GROUPS_VARS= DOVECOT_GROUP DOVENULL_GROUP | 33 | PKG_GROUPS_VARS= DOVECOT_GROUP DOVENULL_GROUP | |
38 | PKG_USERS_VARS= DOVECOT_USER DOVENULL_USER | 34 | PKG_USERS_VARS= DOVECOT_USER DOVENULL_USER | |
39 | 35 | |||
40 | PKG_GECOS.${DOVECOT_USER}= Dovecot IMAP/POP3 user | 36 | PKG_GECOS.${DOVECOT_USER}= Dovecot IMAP/POP3 user | |
41 | PKG_GECOS.${DOVENULL_USER}= Dovecot login user | 37 | PKG_GECOS.${DOVENULL_USER}= Dovecot login user | |
42 | 38 | |||
43 | SUBST_CLASSES+= ssldir | 39 | SUBST_CLASSES+= ssldir | |
44 | SUBST_MESSAGE.ssldir= Fixing SSLDIR | 40 | SUBST_MESSAGE.ssldir= Fixing SSLDIR | |
45 | SUBST_FILES.ssldir= doc/example-config/conf.d/10-ssl.conf | 41 | SUBST_FILES.ssldir= doc/example-config/conf.d/10-ssl.conf | |
46 | SUBST_STAGE.ssldir= pre-configure | 42 | SUBST_STAGE.ssldir= pre-configure | |
47 | SUBST_SED.ssldir= -e 's,/etc/ssl,${SSLDIR},' | 43 | SUBST_SED.ssldir= -e 's,/etc/ssl,${SSLDIR},' | |
48 | 44 | |||
49 | SUBST_CLASSES+= egdir | |||
50 | SUBST_MESSAGE.egdir= Fixing EGDIR | |||
51 | # sieve adds another file here (in options.mk) | |||
52 | SUBST_FILES.egdir= doc/example-config/Makefile.in | |||
53 | SUBST_FILES.egdir+= doc/example-config/conf.d/Makefile.in | |||
54 | SUBST_FILES.egdir+= src/config/Makefile.in | |||
55 | SUBST_STAGE.egdir= pre-configure | |||
56 | SUBST_SED.egdir= -e 's,^exampledir = .*/example-config,exampledir = ${PREFIX}/share/examples/dovecot,' | |||
57 | ||||
58 | EGDIR= ${PREFIX}/share/examples/dovecot | 45 | EGDIR= ${PREFIX}/share/examples/dovecot | |
59 | 46 | |||
60 | CNFS_cmd= ${SED} -ne "s,^share/examples/dovecot/,,p" PLIST | 47 | CNFS_cmd= ${SED} -ne "s,^share/examples/dovecot/,,p" PLIST | |
61 | CNFS= ${CNFS_cmd:sh} | 48 | CNFS= ${CNFS_cmd:sh} | |
62 | CONF_FILES= ${EGDIR}/dovecot.conf ${PKG_SYSCONFDIR}/dovecot/dovecot-example.conf | 49 | CONF_FILES= ${EGDIR}/dovecot.conf ${PKG_SYSCONFDIR}/dovecot/dovecot-example.conf | |
63 | .for file in ${CNFS} | 50 | .for file in ${CNFS} | |
64 | CONF_FILES+= ${EGDIR}/${file:Q} ${PKG_SYSCONFDIR}/dovecot/${file:Q} | 51 | CONF_FILES+= ${EGDIR}/${file:Q} ${PKG_SYSCONFDIR}/dovecot/${file:Q} | |
65 | .endfor | 52 | .endfor | |
66 | 53 | |||
67 | INSTALLATION_DIRS= libexec/dovecot sbin share/doc/dovecot | 54 | INSTALLATION_DIRS= libexec/dovecot sbin share/doc/dovecot | |
68 | INSTALLATION_DIRS+= share/examples/dovecot share/examples/dovecot/conf.d | 55 | INSTALLATION_DIRS+= share/examples/dovecot share/examples/dovecot/conf.d | |
69 | OWN_DIRS= ${PKG_SYSCONFDIR}/dovecot/ | 56 | OWN_DIRS= ${PKG_SYSCONFDIR}/dovecot/ | |
70 | OWN_DIRS+= ${PKG_SYSCONFDIR}/dovecot/conf.d | 57 | OWN_DIRS+= ${PKG_SYSCONFDIR}/dovecot/conf.d | |
71 | 58 | |||
72 | BUILD_DEFS+= VARBASE | 59 | BUILD_DEFS+= VARBASE | |
73 | 60 | |||
74 | .include "options.mk" | |||
75 | ||||
76 | post-build: | |||
77 | .if !empty(PKG_OPTIONS:Mdovecot-sieve) | |||
78 | # We need dovecot built in order to be able to configure sieve. | |||
79 | cd ${WRKSRC.sieve} \ | |||
80 | && env ${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} ${CONFIGURE_ARGS.sieve} | |||
81 | cd ${WRKSRC.sieve} \ | |||
82 | && env ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} -f ${MAKE_FILE} ${BUILD_TARGET} | |||
83 | .endif | |||
84 | ||||
85 | post-install: | 61 | post-install: | |
86 | ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-openssl.cnf ${DESTDIR}${EGDIR} | 62 | ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-openssl.cnf ${DESTDIR}${EGDIR} | |
87 | ${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh ${DESTDIR}${EGDIR} | 63 | ${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh ${DESTDIR}${EGDIR} | |
88 | 64 | |||
65 | .include "options.mk" | |||
66 | ||||
89 | .include "../../archivers/bzip2/buildlink3.mk" | 67 | .include "../../archivers/bzip2/buildlink3.mk" | |
90 | .include "../../devel/zlib/buildlink3.mk" | 68 | .include "../../devel/zlib/buildlink3.mk" | |
91 | .include "../../mk/bsd.pkg.mk" | 69 | .include "../../mk/bsd.pkg.mk" |
@@ -1,17 +1,18 @@ | @@ -1,17 +1,18 @@ | |||
1 | $NetBSD: distinfo,v 1.3 2010/11/09 15:35:47 ghen Exp $ | 1 | $NetBSD: distinfo,v 1.4 2010/11/09 15:51:48 ghen Exp $ | |
2 | 2 | |||
3 | SHA1 (dovecot-2.0-pigeonhole-0.2.1.tar.gz) = ef06d157302576a9276c8f1181a3c5de018e2f36 | 3 | SHA1 (dovecot-2.0-pigeonhole-0.2.1.tar.gz) = ef06d157302576a9276c8f1181a3c5de018e2f36 | |
4 | RMD160 (dovecot-2.0-pigeonhole-0.2.1.tar.gz) = a3cd58c13c3de33e6941c94633c580af4406ad85 | 4 | RMD160 (dovecot-2.0-pigeonhole-0.2.1.tar.gz) = a3cd58c13c3de33e6941c94633c580af4406ad85 | |
5 | Size (dovecot-2.0-pigeonhole-0.2.1.tar.gz) = 1195090 bytes | 5 | Size (dovecot-2.0-pigeonhole-0.2.1.tar.gz) = 1195090 bytes | |
6 | SHA1 (dovecot-2.0.7.tar.gz) = 3aab6cee878bd02e364aebcb70741bf1e4affc0d | 6 | SHA1 (dovecot-2.0.7.tar.gz) = 3aab6cee878bd02e364aebcb70741bf1e4affc0d | |
7 | RMD160 (dovecot-2.0.7.tar.gz) = b284c99630935e87b124f48f132970a14737c985 | 7 | RMD160 (dovecot-2.0.7.tar.gz) = b284c99630935e87b124f48f132970a14737c985 | |
8 | Size (dovecot-2.0.7.tar.gz) = 3174912 bytes | 8 | Size (dovecot-2.0.7.tar.gz) = 3174912 bytes | |
9 | SHA1 (patch-aa) = 3f85e3858f451413e07e73916e654cfe81188551 | 9 | SHA1 (patch-aa) = b7e2923ead1ad1eacd3b8b1a37111325794135d2 | |
10 | SHA1 (patch-ab) = 43361741cf68d1ad5d6e1073cfb9746acf497868 | 10 | SHA1 (patch-ab) = 43361741cf68d1ad5d6e1073cfb9746acf497868 | |
11 | SHA1 (patch-ac) = dc5db4870b14bf2424f0c957f5cf7f1a289fefe6 | 11 | SHA1 (patch-ac) = dc5db4870b14bf2424f0c957f5cf7f1a289fefe6 | |
12 | SHA1 (patch-ad) = 5a11ece1ea86ec775d73bd2d305fb927f8669ba5 | 12 | SHA1 (patch-ad) = 5a11ece1ea86ec775d73bd2d305fb927f8669ba5 | |
13 | SHA1 (patch-ae) = 51d8cb998cc2ded8bfc767710e465b752c50e656 | 13 | SHA1 (patch-ae) = 51d8cb998cc2ded8bfc767710e465b752c50e656 | |
14 | SHA1 (patch-af) = 691cb36fcd5d71e1dea1812da5ed3e93a9ca029a | |||
14 | SHA1 (patch-ag) = 1f78984359bb6fcf939c540b54d1dc56317931b4 | 15 | SHA1 (patch-ag) = 1f78984359bb6fcf939c540b54d1dc56317931b4 | |
15 | SHA1 (patch-ah) = 2c2ed68bbc475398a0247e08673be5a5db08d3c4 | 16 | SHA1 (patch-ah) = 2c2ed68bbc475398a0247e08673be5a5db08d3c4 | |
16 | SHA1 (patch-ai) = 7ceb18222b47b496099f6634ca4cb4c3edcbf943 | 17 | SHA1 (patch-ai) = 7ceb18222b47b496099f6634ca4cb4c3edcbf943 | |
17 | SHA1 (patch-aj) = 9e7970d29d11c097b9588ad16611f6d0e48235c2 | 18 | SHA1 (patch-aj) = 9e7970d29d11c097b9588ad16611f6d0e48235c2 |
@@ -1,18 +1,17 @@ | @@ -1,18 +1,17 @@ | |||
1 | # $NetBSD: options.mk,v 1.2 2010/11/09 15:23:11 ghen Exp $ | 1 | # $NetBSD: options.mk,v 1.3 2010/11/09 15:51:48 ghen Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.dovecot | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.dovecot | |
4 | PKG_SUPPORTED_OPTIONS= dovecot-sieve gssapi | 4 | PKG_SUPPORTED_OPTIONS= gssapi kqueue ldap mysql pam pgsql sqlite | |
5 | PKG_SUPPORTED_OPTIONS+= kqueue ldap mysql pam pgsql sqlite | |||
6 | PKG_OPTIONS_OPTIONAL_GROUPS= ssl | 5 | PKG_OPTIONS_OPTIONAL_GROUPS= ssl | |
7 | PKG_OPTIONS_GROUP.ssl= gnutls ssl | 6 | PKG_OPTIONS_GROUP.ssl= gnutls ssl | |
8 | PKG_SUGGESTED_OPTIONS= ssl | 7 | PKG_SUGGESTED_OPTIONS= ssl | |
9 | 8 | |||
10 | .if defined(PKG_HAVE_KQUEUE) | 9 | .if defined(PKG_HAVE_KQUEUE) | |
11 | PKG_SUGGESTED_OPTIONS+= kqueue | 10 | PKG_SUGGESTED_OPTIONS+= kqueue | |
12 | .endif | 11 | .endif | |
13 | 12 | |||
14 | .include "../../mk/bsd.options.mk" | 13 | .include "../../mk/bsd.options.mk" | |
15 | 14 | |||
16 | ### | 15 | ### | |
17 | ### Build with OpenSSL or GNU TLS as the underlying crypto library | 16 | ### Build with OpenSSL or GNU TLS as the underlying crypto library | |
18 | ### | 17 | ### | |
@@ -81,39 +80,13 @@ CONFIGURE_ARGS+= --with-notify=kqueue | @@ -81,39 +80,13 @@ CONFIGURE_ARGS+= --with-notify=kqueue | |||
81 | .else | 80 | .else | |
82 | # use the defaults | 81 | # use the defaults | |
83 | .endif | 82 | .endif | |
84 | 83 | |||
85 | ### | 84 | ### | |
86 | ### GSSAPI support | 85 | ### GSSAPI support | |
87 | ### | 86 | ### | |
88 | .if !empty(PKG_OPTIONS:Mgssapi) | 87 | .if !empty(PKG_OPTIONS:Mgssapi) | |
89 | CONFIGURE_ARGS+= --with-gssapi | 88 | CONFIGURE_ARGS+= --with-gssapi | |
90 | . include "../../mk/krb5.buildlink3.mk" | 89 | . include "../../mk/krb5.buildlink3.mk" | |
91 | .else | 90 | .else | |
92 | CONFIGURE_ARGS+= --without-gssapi | 91 | CONFIGURE_ARGS+= --without-gssapi | |
93 | .endif | 92 | .endif | |
94 | ||||
95 | ### | |||
96 | ### Pigeonhole Sieve plugin | |||
97 | ### | |||
98 | .if !empty(PKG_OPTIONS:Mdovecot-sieve) || make(distinfo) || make(makesum) | |||
99 | # We can't simply use CONFIGURE_DIRS+= and BUILD_DIRS+= | |||
100 | # because dovecot must be built before sieve can be configured/built. | |||
101 | # So use post-build in Makefile. Sigh. | |||
102 | # | |||
103 | # Default so we can use += below | |||
104 | DISTFILES= ${DEFAULT_DISTFILES} | |||
105 | PLIST_SRC= ${PLIST_SRC_DFLT:Q} | |||
106 | INSTALL_DIRS= ${WRKSRC} | |||
107 | ||||
108 | DISTFILES+= dovecot-${DOVECOT_VERSION}-pigeonhole-${SIEVE_VERSION}.tar.gz | |||
109 | SITES.dovecot-${DOVECOT_VERSION}-pigeonhole-${SIEVE_VERSION}.tar.gz=\ | |||
110 | ${DOVECOT_SIEVE_SITES} | |||
111 | WRKSRC.sieve= ${WRKDIR}/dovecot-${DOVECOT_VERSION}-pigeonhole-${SIEVE_VERSION} | |||
112 | CONFIGURE_ARGS.sieve= --with-dovecot=${WRKSRC} | |||
113 | CONFIGURE_ARGS.sieve+= --docdir=${PREFIX}/share/doc | |||
114 | INSTALL_DIRS+= ${WRKSRC.sieve} | |||
115 | SUBST_FILES.egdir+= ${WRKSRC.sieve}/doc/example-config/conf.d/Makefile.in | |||
116 | PLIST_SRC+= ${PKGDIR}/PLIST.sieve | |||
117 | CONF_FILES+= ${EGDIR}/conf.d/20-managesieve.conf ${PKG_SYSCONFDIR}/dovecot/conf.d/20-managesieve.conf | |||
118 | CONF_FILES+= ${EGDIR}/conf.d/90-sieve.conf ${PKG_SYSCONFDIR}/dovecot/conf.d/90-sieve.conf | |||
119 | .endif # dovecot-sieve |
@@ -1,14 +1,23 @@ | @@ -1,14 +1,23 @@ | |||
1 | $NetBSD: patch-aa,v 1.2 2010/11/09 15:23:11 ghen Exp $ | 1 | $NetBSD: patch-aa,v 1.3 2010/11/09 15:51:48 ghen Exp $ | |
2 | 2 | |||
3 | --- doc/example-config/Makefile.in.orig 2010-10-21 17:37:01.000000000 +0000 | 3 | --- doc/example-config/Makefile.in.orig 2010-10-21 17:37:01.000000000 +0000 | |
4 | +++ doc/example-config/Makefile.in | 4 | +++ doc/example-config/Makefile.in | |
5 | @@ -280,7 +280,7 @@ top_srcdir = @top_srcdir@ | |||
6 | SUBDIRS = conf.d | |||
7 | pkgsysconfdir = $(sysconfdir)/dovecot | |||
8 | nodist_pkgsysconf_DATA = README | |||
9 | -exampledir = $(docdir)/example-config | |||
10 | +exampledir = $(datadir)/examples/dovecot | |||
11 | example_DATA = \ | |||
12 | dovecot.conf \ | |||
13 | dovecot-db.conf.ext \ | |||
5 | @@ -623,8 +623,7 @@ info: info-recursive | 14 | @@ -623,8 +623,7 @@ info: info-recursive | |
6 | 15 | |||
7 | info-am: | 16 | info-am: | |
8 | 17 | |||
9 | -install-data-am: install-data-local install-exampleDATA \ | 18 | -install-data-am: install-data-local install-exampleDATA \ | |
10 | - install-nodist_pkgsysconfDATA | 19 | - install-nodist_pkgsysconfDATA | |
11 | +install-data-am: install-data-local install-exampleDATA | 20 | +install-data-am: install-data-local install-exampleDATA | |
12 | 21 | |||
13 | install-dvi: install-dvi-recursive | 22 | install-dvi: install-dvi-recursive | |
14 | 23 |
$NetBSD: patch-af,v 1.3 2010/11/09 15:51:48 ghen Exp $
--- doc/example-config/conf.d/Makefile.in.orig 2010-11-04 14:32:20.000000000 +0000
+++ doc/example-config/conf.d/Makefile.in
@@ -237,7 +237,7 @@ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
pkgsysconfdir = $(sysconfdir)/dovecot
-exampledir = $(docdir)/example-config/conf.d
+exampledir = $(datadir)/examples/dovecot/conf.d
example_DATA = \
auth-checkpassword.conf.ext \
auth-deny.conf.ext \