aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorstefan <stefan@FreeBSD.org>2006-07-25 00:29:10 +0800
committerstefan <stefan@FreeBSD.org>2006-07-25 00:29:10 +0800
commitba16cad41b48318c2da1aa87b16635c4190eb613 (patch)
treeeec973b2513d1dc612d8ac1c732a5b58d7dced0d /mail
parentb1a72bb591050efb30f692983ab090c98e3786b0 (diff)
downloadfreebsd-ports-gnome-ba16cad41b48318c2da1aa87b16635c4190eb613.tar.gz
freebsd-ports-gnome-ba16cad41b48318c2da1aa87b16635c4190eb613.tar.zst
freebsd-ports-gnome-ba16cad41b48318c2da1aa87b16635c4190eb613.zip
Update to dovecot-1.0.rc2, see
http://www.dovecot.org/list/dovecot-news/2006-July/000010.html. PR: 100037 Submitted by: maintainer Approved by: arved
Diffstat (limited to 'mail')
-rw-r--r--mail/dovecot-devel/Makefile15
-rw-r--r--mail/dovecot-devel/distinfo6
-rw-r--r--mail/dovecot-devel/files/patch-dovecot-example.conf8
-rw-r--r--mail/dovecot-devel/files/patch-src_lib_module-dir.c27
-rw-r--r--mail/dovecot-devel/files/patch-src_master_main.c13
-rw-r--r--mail/dovecot-devel/files/pkg-message.in18
-rw-r--r--mail/dovecot-devel/pkg-install2
-rw-r--r--mail/dovecot-devel/pkg-message16
-rw-r--r--mail/dovecot-devel/pkg-plist2
-rw-r--r--mail/dovecot/Makefile15
-rw-r--r--mail/dovecot/distinfo6
-rw-r--r--mail/dovecot/files/patch-dovecot-example.conf8
-rw-r--r--mail/dovecot/files/patch-src_lib_module-dir.c27
-rw-r--r--mail/dovecot/files/patch-src_master_main.c13
-rw-r--r--mail/dovecot/files/pkg-message.in18
-rw-r--r--mail/dovecot/pkg-install2
-rw-r--r--mail/dovecot/pkg-message16
-rw-r--r--mail/dovecot/pkg-plist2
18 files changed, 72 insertions, 142 deletions
diff --git a/mail/dovecot-devel/Makefile b/mail/dovecot-devel/Makefile
index 13277fd5936e..6d7747f4f456 100644
--- a/mail/dovecot-devel/Makefile
+++ b/mail/dovecot-devel/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= dovecot
-DISTVERSION= 1.0.beta9
+DISTVERSION= 1.0.rc2
CATEGORIES= mail ipv6
MASTER_SITES= http://www.dovecot.org/releases/
@@ -23,8 +23,6 @@ CONFIGURE_ARGS= --without-shadow --localstatedir=/var
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-SUB_FILES= pkg-message
-
.if !defined(NOPORTDOCS)
PORTDOCS= USE-WIKI-INSTEAD \
auth-protocol.txt auth.txt configuration.txt design.txt \
@@ -41,13 +39,14 @@ OPTIONS= KQUEUE "kqueue(2) support" on \
LDAP "OpenLDAP support" off \
PGSQL "PostgreSQL support" off \
MYSQL "MySQL support" off \
- SQLITE "SQLite support" off
+ SQLITE "SQLite support" off \
+ IPV6 "IPv6 support" on
.include <bsd.port.pre.mk>
## kqueue(2) support
#
-.if defined(WITH_KQUEUE)
+.if !defined(WITHOUT_KQUEUE)
CONFIGURE_ARGS+= --with-ioloop=kqueue --with-notify=kqueue
.endif
@@ -104,6 +103,12 @@ USE_SQLITE= 3
CONFIGURE_ARGS+= --with-sqlite
.endif
+## IPv6 support
+#
+.if defined(WITHOUT_IPV6) || $(OSVERSION) <= 400014
+CONFIGURE_ARGS+= --disable-ipv6
+.endif
+
post-build:
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
${WRKSRC}/dovecot-example.conf
diff --git a/mail/dovecot-devel/distinfo b/mail/dovecot-devel/distinfo
index 251726845c4a..cbf13d38ba21 100644
--- a/mail/dovecot-devel/distinfo
+++ b/mail/dovecot-devel/distinfo
@@ -1,3 +1,3 @@
-MD5 (dovecot-1.0.beta9.tar.gz) = 5c19a21afb8a02c95f3f62fa37d8e1ed
-SHA256 (dovecot-1.0.beta9.tar.gz) = 1bc44e2ab23ac8863aea42ce4ea5045d5f6ee2375804e432d8e7f918c14379b8
-SIZE (dovecot-1.0.beta9.tar.gz) = 1245601
+MD5 (dovecot-1.0.rc2.tar.gz) = e27a248b2ee224e4618aa2f020150041
+SHA256 (dovecot-1.0.rc2.tar.gz) = 594b38c099a4576e22d8a33673fd1461332c09a1e2c715792f6c2ff656b1bf6e
+SIZE (dovecot-1.0.rc2.tar.gz) = 1257435
diff --git a/mail/dovecot-devel/files/patch-dovecot-example.conf b/mail/dovecot-devel/files/patch-dovecot-example.conf
index ef3ca464d221..591d5617c709 100644
--- a/mail/dovecot-devel/files/patch-dovecot-example.conf
+++ b/mail/dovecot-devel/files/patch-dovecot-example.conf
@@ -1,5 +1,5 @@
---- dovecot-example.conf.orig Sun Jun 18 20:56:27 2006
-+++ dovecot-example.conf Sun Jun 18 21:15:43 2006
+--- dovecot-example.conf.orig Tue Jul 4 23:44:02 2006
++++ dovecot-example.conf Tue Jul 4 23:47:52 2006
@@ -9,7 +9,7 @@
# Default values are shown after each value, it's not required to uncomment
# any of the lines. Exception to this are paths, they're just examples
@@ -140,8 +140,8 @@
# Support for dynamically loadable plugins. mail_plugins is a space separated
# list of plugins to load.
#mail_plugins =
-- #mail_plugin_dir = /usr/lib/dovecot/imap
-+ #mail_plugin_dir = %%PREFIX%%/lib/dovecot/imap
+- #mail_plugin_dir = /usr/lib/dovecot/lda
++ #mail_plugin_dir = %%PREFIX%%/lib/dovecot/lda
# Binary to use for sending mails.
#sendmail_path = /usr/lib/sendmail
diff --git a/mail/dovecot-devel/files/patch-src_lib_module-dir.c b/mail/dovecot-devel/files/patch-src_lib_module-dir.c
deleted file mode 100644
index 4badfa261402..000000000000
--- a/mail/dovecot-devel/files/patch-src_lib_module-dir.c
+++ /dev/null
@@ -1,27 +0,0 @@
---- src/lib/module-dir.c.orig 5 May 2006 14:21:22 -0000 1.19
-+++ src/lib/module-dir.c 16 Jun 2006 10:15:56 -0000 1.20
-@@ -24,14 +24,18 @@
- const char *error;
- void *ret;
-
-+ /* clear out old errors */
-+ (void)dlerror();
-+
- /* get our init func */
- ret = dlsym(module->handle, symbol);
--
-- error = dlerror();
-- if (error != NULL) {
-- i_error("module %s: dlsym(%s) failed: %s",
-- module->path, symbol, error);
-- ret = NULL;
-+ if (ret == NULL) {
-+ error = dlerror();
-+ if (error != NULL) {
-+ i_error("module %s: dlsym(%s) failed: %s",
-+ module->path, symbol, error);
-+ ret = NULL;
-+ }
- }
-
- return ret;
diff --git a/mail/dovecot-devel/files/patch-src_master_main.c b/mail/dovecot-devel/files/patch-src_master_main.c
deleted file mode 100644
index 4c556da4f1d4..000000000000
--- a/mail/dovecot-devel/files/patch-src_master_main.c
+++ /dev/null
@@ -1,13 +0,0 @@
---- src/master/main.c 11 Jun 2006 17:44:25 -0000 1.80.2.2
-+++ src/master/main.c 16 Jun 2006 10:11:07 -0000 1.80.2.3
-@@ -355,7 +355,9 @@
- resolve_ip(set->listen, &set->listen_ip, &set->listen_port);
- resolve_ip(set->ssl_listen, &set->ssl_listen_ip, &set->ssl_listen_port);
-
-- if (set->ssl_listen_ip.family == 0 && set->ssl_listen == NULL)
-+ /* if ssl_listen wasn't explicitly set in the config file,
-+ use the non-ssl IP settings for the ssl listener, too. */
-+ if (set->ssl_listen_ip.family == 0 && *set->ssl_listen == '\0')
- set->ssl_listen_ip = set->listen_ip;
-
- /* register wanted protocols */
diff --git a/mail/dovecot-devel/files/pkg-message.in b/mail/dovecot-devel/files/pkg-message.in
deleted file mode 100644
index 7169bd0bfa6f..000000000000
--- a/mail/dovecot-devel/files/pkg-message.in
+++ /dev/null
@@ -1,18 +0,0 @@
----------------------------------------------------------------------
-
- You can get default configured IMAP and POP3 services running by
- copying the sample configuration file to the given location and then
- enabling dovecot in /etc/rc.conf.
- In this simple configuration Dovecot will authenticate users against
- the systems passwd file and use the default /var/mail/$USER mbox
- files.
-
- cd %%PREFIX%%/etc; cp dovecot-example.conf dovecot.conf
-
- echo dovecot_enable="YES" >> /etc/rc.conf
-
- Further information on configuration can be found in:
-
- %%DOCSDIR%%
-
----------------------------------------------------------------------
diff --git a/mail/dovecot-devel/pkg-install b/mail/dovecot-devel/pkg-install
index 648a4ecf06f4..bbb0c9d31956 100644
--- a/mail/dovecot-devel/pkg-install
+++ b/mail/dovecot-devel/pkg-install
@@ -83,7 +83,7 @@ POST-INSTALL)
fi
done
chown -R root:wheel ${base}
- chmod -R 0700 ${base}
+ chmod -R 0755 ${base}
chown -R root:dovecot ${base}/login
chmod -R 0750 ${base}/login
;;
diff --git a/mail/dovecot-devel/pkg-message b/mail/dovecot-devel/pkg-message
new file mode 100644
index 000000000000..45915a2f29ff
--- /dev/null
+++ b/mail/dovecot-devel/pkg-message
@@ -0,0 +1,16 @@
+---------------------------------------------------------------------
+
+ You can get basic IMAP and POP3 services running by enabling
+ dovecot in /etc/rc.conf.
+
+ In this basic configuration Dovecot will authenticate users against
+ the system's passwd file and use the default /var/mail/$USER mbox
+ files.
+
+ echo dovecot_enable="YES" >> /etc/rc.conf
+
+ Further information on configuration can be found at:
+
+ http://wiki.dovecot.org/
+
+---------------------------------------------------------------------
diff --git a/mail/dovecot-devel/pkg-plist b/mail/dovecot-devel/pkg-plist
index c683693a159d..873eeafc9e20 100644
--- a/mail/dovecot-devel/pkg-plist
+++ b/mail/dovecot-devel/pkg-plist
@@ -1,5 +1,7 @@
@comment $FreeBSD$
+@unexec if cmp -s %D/etc/dovecot-example.conf %D/etc/dovecot.conf; then rm -f %D/etc/dovecot.conf; fi
etc/dovecot-example.conf
+@exec if [ ! -f %D/etc/dovecot.conf ] ; then cp -p %D/%F %B/dovecot.conf; fi
lib/dovecot/imap/lib01_acl_plugin.so
lib/dovecot/imap/lib01_convert_plugin.so
lib/dovecot/imap/lib01_quota_plugin.so
diff --git a/mail/dovecot/Makefile b/mail/dovecot/Makefile
index 13277fd5936e..6d7747f4f456 100644
--- a/mail/dovecot/Makefile
+++ b/mail/dovecot/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= dovecot
-DISTVERSION= 1.0.beta9
+DISTVERSION= 1.0.rc2
CATEGORIES= mail ipv6
MASTER_SITES= http://www.dovecot.org/releases/
@@ -23,8 +23,6 @@ CONFIGURE_ARGS= --without-shadow --localstatedir=/var
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-SUB_FILES= pkg-message
-
.if !defined(NOPORTDOCS)
PORTDOCS= USE-WIKI-INSTEAD \
auth-protocol.txt auth.txt configuration.txt design.txt \
@@ -41,13 +39,14 @@ OPTIONS= KQUEUE "kqueue(2) support" on \
LDAP "OpenLDAP support" off \
PGSQL "PostgreSQL support" off \
MYSQL "MySQL support" off \
- SQLITE "SQLite support" off
+ SQLITE "SQLite support" off \
+ IPV6 "IPv6 support" on
.include <bsd.port.pre.mk>
## kqueue(2) support
#
-.if defined(WITH_KQUEUE)
+.if !defined(WITHOUT_KQUEUE)
CONFIGURE_ARGS+= --with-ioloop=kqueue --with-notify=kqueue
.endif
@@ -104,6 +103,12 @@ USE_SQLITE= 3
CONFIGURE_ARGS+= --with-sqlite
.endif
+## IPv6 support
+#
+.if defined(WITHOUT_IPV6) || $(OSVERSION) <= 400014
+CONFIGURE_ARGS+= --disable-ipv6
+.endif
+
post-build:
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
${WRKSRC}/dovecot-example.conf
diff --git a/mail/dovecot/distinfo b/mail/dovecot/distinfo
index 251726845c4a..cbf13d38ba21 100644
--- a/mail/dovecot/distinfo
+++ b/mail/dovecot/distinfo
@@ -1,3 +1,3 @@
-MD5 (dovecot-1.0.beta9.tar.gz) = 5c19a21afb8a02c95f3f62fa37d8e1ed
-SHA256 (dovecot-1.0.beta9.tar.gz) = 1bc44e2ab23ac8863aea42ce4ea5045d5f6ee2375804e432d8e7f918c14379b8
-SIZE (dovecot-1.0.beta9.tar.gz) = 1245601
+MD5 (dovecot-1.0.rc2.tar.gz) = e27a248b2ee224e4618aa2f020150041
+SHA256 (dovecot-1.0.rc2.tar.gz) = 594b38c099a4576e22d8a33673fd1461332c09a1e2c715792f6c2ff656b1bf6e
+SIZE (dovecot-1.0.rc2.tar.gz) = 1257435
diff --git a/mail/dovecot/files/patch-dovecot-example.conf b/mail/dovecot/files/patch-dovecot-example.conf
index ef3ca464d221..591d5617c709 100644
--- a/mail/dovecot/files/patch-dovecot-example.conf
+++ b/mail/dovecot/files/patch-dovecot-example.conf
@@ -1,5 +1,5 @@
---- dovecot-example.conf.orig Sun Jun 18 20:56:27 2006
-+++ dovecot-example.conf Sun Jun 18 21:15:43 2006
+--- dovecot-example.conf.orig Tue Jul 4 23:44:02 2006
++++ dovecot-example.conf Tue Jul 4 23:47:52 2006
@@ -9,7 +9,7 @@
# Default values are shown after each value, it's not required to uncomment
# any of the lines. Exception to this are paths, they're just examples
@@ -140,8 +140,8 @@
# Support for dynamically loadable plugins. mail_plugins is a space separated
# list of plugins to load.
#mail_plugins =
-- #mail_plugin_dir = /usr/lib/dovecot/imap
-+ #mail_plugin_dir = %%PREFIX%%/lib/dovecot/imap
+- #mail_plugin_dir = /usr/lib/dovecot/lda
++ #mail_plugin_dir = %%PREFIX%%/lib/dovecot/lda
# Binary to use for sending mails.
#sendmail_path = /usr/lib/sendmail
diff --git a/mail/dovecot/files/patch-src_lib_module-dir.c b/mail/dovecot/files/patch-src_lib_module-dir.c
deleted file mode 100644
index 4badfa261402..000000000000
--- a/mail/dovecot/files/patch-src_lib_module-dir.c
+++ /dev/null
@@ -1,27 +0,0 @@
---- src/lib/module-dir.c.orig 5 May 2006 14:21:22 -0000 1.19
-+++ src/lib/module-dir.c 16 Jun 2006 10:15:56 -0000 1.20
-@@ -24,14 +24,18 @@
- const char *error;
- void *ret;
-
-+ /* clear out old errors */
-+ (void)dlerror();
-+
- /* get our init func */
- ret = dlsym(module->handle, symbol);
--
-- error = dlerror();
-- if (error != NULL) {
-- i_error("module %s: dlsym(%s) failed: %s",
-- module->path, symbol, error);
-- ret = NULL;
-+ if (ret == NULL) {
-+ error = dlerror();
-+ if (error != NULL) {
-+ i_error("module %s: dlsym(%s) failed: %s",
-+ module->path, symbol, error);
-+ ret = NULL;
-+ }
- }
-
- return ret;
diff --git a/mail/dovecot/files/patch-src_master_main.c b/mail/dovecot/files/patch-src_master_main.c
deleted file mode 100644
index 4c556da4f1d4..000000000000
--- a/mail/dovecot/files/patch-src_master_main.c
+++ /dev/null
@@ -1,13 +0,0 @@
---- src/master/main.c 11 Jun 2006 17:44:25 -0000 1.80.2.2
-+++ src/master/main.c 16 Jun 2006 10:11:07 -0000 1.80.2.3
-@@ -355,7 +355,9 @@
- resolve_ip(set->listen, &set->listen_ip, &set->listen_port);
- resolve_ip(set->ssl_listen, &set->ssl_listen_ip, &set->ssl_listen_port);
-
-- if (set->ssl_listen_ip.family == 0 && set->ssl_listen == NULL)
-+ /* if ssl_listen wasn't explicitly set in the config file,
-+ use the non-ssl IP settings for the ssl listener, too. */
-+ if (set->ssl_listen_ip.family == 0 && *set->ssl_listen == '\0')
- set->ssl_listen_ip = set->listen_ip;
-
- /* register wanted protocols */
diff --git a/mail/dovecot/files/pkg-message.in b/mail/dovecot/files/pkg-message.in
deleted file mode 100644
index 7169bd0bfa6f..000000000000
--- a/mail/dovecot/files/pkg-message.in
+++ /dev/null
@@ -1,18 +0,0 @@
----------------------------------------------------------------------
-
- You can get default configured IMAP and POP3 services running by
- copying the sample configuration file to the given location and then
- enabling dovecot in /etc/rc.conf.
- In this simple configuration Dovecot will authenticate users against
- the systems passwd file and use the default /var/mail/$USER mbox
- files.
-
- cd %%PREFIX%%/etc; cp dovecot-example.conf dovecot.conf
-
- echo dovecot_enable="YES" >> /etc/rc.conf
-
- Further information on configuration can be found in:
-
- %%DOCSDIR%%
-
----------------------------------------------------------------------
diff --git a/mail/dovecot/pkg-install b/mail/dovecot/pkg-install
index 648a4ecf06f4..bbb0c9d31956 100644
--- a/mail/dovecot/pkg-install
+++ b/mail/dovecot/pkg-install
@@ -83,7 +83,7 @@ POST-INSTALL)
fi
done
chown -R root:wheel ${base}
- chmod -R 0700 ${base}
+ chmod -R 0755 ${base}
chown -R root:dovecot ${base}/login
chmod -R 0750 ${base}/login
;;
diff --git a/mail/dovecot/pkg-message b/mail/dovecot/pkg-message
new file mode 100644
index 000000000000..45915a2f29ff
--- /dev/null
+++ b/mail/dovecot/pkg-message
@@ -0,0 +1,16 @@
+---------------------------------------------------------------------
+
+ You can get basic IMAP and POP3 services running by enabling
+ dovecot in /etc/rc.conf.
+
+ In this basic configuration Dovecot will authenticate users against
+ the system's passwd file and use the default /var/mail/$USER mbox
+ files.
+
+ echo dovecot_enable="YES" >> /etc/rc.conf
+
+ Further information on configuration can be found at:
+
+ http://wiki.dovecot.org/
+
+---------------------------------------------------------------------
diff --git a/mail/dovecot/pkg-plist b/mail/dovecot/pkg-plist
index c683693a159d..873eeafc9e20 100644
--- a/mail/dovecot/pkg-plist
+++ b/mail/dovecot/pkg-plist
@@ -1,5 +1,7 @@
@comment $FreeBSD$
+@unexec if cmp -s %D/etc/dovecot-example.conf %D/etc/dovecot.conf; then rm -f %D/etc/dovecot.conf; fi
etc/dovecot-example.conf
+@exec if [ ! -f %D/etc/dovecot.conf ] ; then cp -p %D/%F %B/dovecot.conf; fi
lib/dovecot/imap/lib01_acl_plugin.so
lib/dovecot/imap/lib01_convert_plugin.so
lib/dovecot/imap/lib01_quota_plugin.so