summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorsalo <salo>2003-05-14 04:17:31 +0000
committersalo <salo>2003-05-14 04:17:31 +0000
commitdf4aa35929e41021908649201e57cdee004240dc (patch)
tree79b7ea1b0667d4009fa7a9a8e0c84e3f02c3a6a3 /mail
parent72619f1a4078bbab9a110309421b9ba506db9c85 (diff)
downloadpkgsrc-df4aa35929e41021908649201e57cdee004240dc.tar.gz
Import of dovecot-0.99.9.1: Secure IMAP and POP3 server.
Dovecot is a secure and compact IMAP/POP3 server which is in the early stages of developement. It supports Maildirs and mbox formats and much of the IMAP v4 protocol including SSL/TLS. IPv6 support is also included. Package provided by Juan RP via pkgsrc-wip with modifications by me.
Diffstat (limited to 'mail')
-rw-r--r--mail/dovecot/DESCR3
-rw-r--r--mail/dovecot/Makefile81
-rw-r--r--mail/dovecot/PLIST23
-rw-r--r--mail/dovecot/distinfo10
-rwxr-xr-xmail/dovecot/files/dovecot.sh17
-rw-r--r--mail/dovecot/patches/patch-aa13
-rw-r--r--mail/dovecot/patches/patch-ab83
7 files changed, 230 insertions, 0 deletions
diff --git a/mail/dovecot/DESCR b/mail/dovecot/DESCR
new file mode 100644
index 00000000000..97208f93fc9
--- /dev/null
+++ b/mail/dovecot/DESCR
@@ -0,0 +1,3 @@
+Dovecot is a secure and compact IMAP/POP3 server which is in the early stages
+of developement. It supports Maildirs and mbox formats and much of the IMAP
+v4 protocol including SSL/TLS. IPv6 support is also included.
diff --git a/mail/dovecot/Makefile b/mail/dovecot/Makefile
new file mode 100644
index 00000000000..ea838e722f7
--- /dev/null
+++ b/mail/dovecot/Makefile
@@ -0,0 +1,81 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/05/14 04:17:31 salo Exp $
+#
+
+DISTNAME= dovecot-0.99.9.1
+CATEGORIES= mail
+MASTER_SITES= http://dovecot.procontrol.fi/
+
+PATCH_SITES= ${MASTER_SITES}
+PATCHFILES= freebsd.patch fetch.patch
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://dovecot.procontrol.fi/
+COMMENT= Secure IMAP and POP3 server
+
+USE_BUILDLINK2= YES
+USE_LIBTOOL= YES
+USE_PKGINSTALL= YES
+GNU_CONFIGURE= YES
+
+LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
+
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= --localstatedir=/var
+CONFIGURE_ARGS+= --with-ssldir=/etc/openssl
+
+DOVECOT_USE_GNUTLS?= NO
+
+.if !empty(DOVECOT_USE_GNUTLS:M[Yy][Ee][Ss])
+CONFIGURE_ARGS+= --enable-ssl=gnutls
+.include "../../security/gnutls/buildlink2.mk"
+.else
+CONFIGURE_ARGS+= --enable-ssl=openssl
+.include "../../security/openssl/buildlink2.mk"
+.endif
+
+DOVECOT_USE_LDAP?= NO
+
+.if !empty(DOVECOT_USE_LDAP:M[Yy][Ee][Ss])
+CONFIGURE_ARGS+= --with-ldap
+.include "../../databases/openldap/buildlink2.mk"
+.endif
+
+DOVECOT_USE_PGSQL?= NO
+
+.if !empty(DOVECOT_USE_PGSQL:M[Yy][Ee][Ss])
+CONFIGURE_ARGS+= --with-pgsql
+CPPFLAGS= -I${BUILDLINK_DIR}/include/pgsql
+.include "../../databases/postgresql-lib/buildlink2.mk"
+.endif
+
+.if defined(USE_INET6) && !empty(USE_INET6:M[Yy][Ee][Ss])
+BUILD_DEFS+= USE_INET6
+CONFIGURE_ARGS+= --enable-ipv6
+.endif
+
+RCD_SCRIPTS= dovecot
+
+DOVECOT_USER?= dovecot
+DOVECOT_GROUP?= dovecot
+PKG_GROUPS= ${DOVECOT_GROUP}
+PKG_USERS= ${DOVECOT_USER}:${DOVECOT_GROUP}::Dovecot\\ IMAP/POP3\\ user
+
+EGDIR= ${PREFIX}/share/examples/dovecot
+CONF_FILES= ${EGDIR}/dovecot.conf.default ${PKG_SYSCONFDIR}/dovecot.conf
+
+post-configure:
+ @cd ${WRKSRC} && \
+ ( \
+ ${MV} dovecot-example.conf dovecot-example.conf.orig; \
+ ${SED} ${FILES_SUBST_SED} dovecot-example.conf.orig > \
+ dovecot-example.conf; \
+ )
+
+post-install:
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/dovecot-example.conf \
+ ${EGDIR}/dovecot.conf.default
+ ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-* ${EGDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh ${EGDIR}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/dovecot/PLIST b/mail/dovecot/PLIST
new file mode 100644
index 00000000000..07f1095bb0c
--- /dev/null
+++ b/mail/dovecot/PLIST
@@ -0,0 +1,23 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/05/14 04:17:31 salo Exp $
+etc/rc.d/dovecot
+libexec/dovecot/dovecot-auth
+libexec/dovecot/imap-login
+libexec/dovecot/imap
+libexec/dovecot/pop3-login
+libexec/dovecot/pop3
+sbin/dovecot
+share/doc/dovecot/auth.txt
+share/doc/dovecot/configuration.txt
+share/doc/dovecot/design.txt
+share/doc/dovecot/index.txt
+share/doc/dovecot/mail-storages.txt
+share/doc/dovecot/multiaccess.txt
+share/doc/dovecot/nfs.txt
+share/examples/dovecot/dovecot.conf.default
+share/examples/dovecot/dovecot-ldap.conf
+share/examples/dovecot/dovecot-openssl.cnf
+share/examples/dovecot/dovecot-pgsql.conf
+share/examples/dovecot/mkcert.sh
+@dirrm share/examples/dovecot
+@dirrm share/doc/dovecot
+@dirrm libexec/dovecot
diff --git a/mail/dovecot/distinfo b/mail/dovecot/distinfo
new file mode 100644
index 00000000000..139506feeab
--- /dev/null
+++ b/mail/dovecot/distinfo
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/05/14 04:17:31 salo Exp $
+
+SHA1 (dovecot-0.99.9.1.tar.gz) = 77626a0c04e1740f1e3de1789f397592771db686
+Size (dovecot-0.99.9.1.tar.gz) = 700693 bytes
+SHA1 (freebsd.patch) = 373c2be76e9b28c5f56b1fc588caf00d6e792693
+Size (freebsd.patch) = 831 bytes
+SHA1 (fetch.patch) = 9b565b9d5a0f9c53f6550553e0d09b220b5cfd99
+Size (fetch.patch) = 608 bytes
+SHA1 (patch-aa) = e5d7a474d8774d3d652e1b51e5e01685068c2af8
+SHA1 (patch-ab) = 26a487ef2d1987c9f74def95542030900646f7d5
diff --git a/mail/dovecot/files/dovecot.sh b/mail/dovecot/files/dovecot.sh
new file mode 100755
index 00000000000..058dff9ce00
--- /dev/null
+++ b/mail/dovecot/files/dovecot.sh
@@ -0,0 +1,17 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: dovecot.sh,v 1.1.1.1 2003/05/14 04:17:31 salo Exp $
+#
+
+# PROVIDE: dovecot
+# REQUIRE: DAEMON LOGIN
+
+. /etc/rc.subr
+
+name="dovecot"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+required_files="@PKG_SYSCONFDIR@/$name.conf"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/mail/dovecot/patches/patch-aa b/mail/dovecot/patches/patch-aa
new file mode 100644
index 00000000000..c9b5c80531f
--- /dev/null
+++ b/mail/dovecot/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/05/14 04:17:31 salo Exp $
+
+--- Makefile.in.orig 2003-05-06 18:33:40.000000000 +0200
++++ Makefile.in 2003-05-06 18:44:13.000000000 +0200
+@@ -90,7 +90,7 @@
+ SUBDIRS = src doc
+
+ confdir = $(sysconfdir)
+-conf_DATA = dovecot-example.conf
++conf_DATA =
+
+ EXTRA_DIST = config.rpath dovecot.spec.in COPYING.LGPL $(conf_DATA)
+
diff --git a/mail/dovecot/patches/patch-ab b/mail/dovecot/patches/patch-ab
new file mode 100644
index 00000000000..2d18b9f21a4
--- /dev/null
+++ b/mail/dovecot/patches/patch-ab
@@ -0,0 +1,83 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/05/14 04:17:31 salo Exp $
+
+--- dovecot-example.conf.orig 2003-04-04 14:17:25.000000000 +0200
++++ dovecot-example.conf 2003-05-13 06:00:16.000000000 +0200
+@@ -1,17 +1,15 @@
+ ## Dovecot 1.0 configuration file
+
+ # 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
+-# with real defaults being based on configure options. The paths listed here
+-# are for configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
+-# --with-ssldir=/etc/ssl
++# any of the lines. Exception to this are paths, they're just examples with
++# real defaults being based on configure options.
+
+ # Base directory where to store runtime data.
+ #base_dir = /var/run/dovecot/
+
+ # Protocols we want to be serving:
+ # imap imaps pop3 pop3s
+-#protocols = imap imaps
++protocols = imap pop3
+
+ # IP or host address where to listen in for connections. It's not currently
+ # possible to specify multiple addresses. "*" listens in all IPv4 interfaces.
+@@ -27,7 +25,7 @@
+ #pop3s_listen =
+
+ # Disable SSL/TLS support.
+-#ssl_disable = no
++ssl_disable = yes
+
+ # PEM encoded X.509 SSL/TLS certificate and private key. They're opened before
+ # dropping root privileges, so keep the key file unreadable by anyone but
+@@ -81,7 +79,7 @@
+ login = imap
+
+ # Executable location.
+-#login_executable = /usr/libexec/dovecot/imap-login
++#login_executable = @PREFIX@/libexec/dovecot/imap-login
+
+ # User to use for the login process. The user must belong to a group where
+ # only it has access, it's used to control access for authentication process
+@@ -126,7 +124,7 @@
+ login = pop3
+
+ # Exception to above rule being the executable location.
+-#login_executable = /usr/libexec/dovecot/pop3-login
++#login_executable = @PREFIX@/libexec/dovecot/pop3-login
+
+ ##
+ ## Mail processes
+@@ -310,7 +308,7 @@
+ ##
+
+ # Executable location
+-#imap_executable = /usr/libexec/dovecot/imap
++#imap_executable = @PREFIX@/libexec/dovecot/imap
+
+ # Set max. process size in megabytes. Most of the memory goes to mmap()ing
+ # files, so it shouldn't harm much even if this limit is set pretty high.
+@@ -321,7 +319,7 @@
+ ##
+
+ # Executable location
+-#pop3_executable = /usr/libexec/dovecot/pop3
++#pop3_executable = @PREFIX@/libexec/dovecot/pop3
+
+ # Set max. process size in megabytes. Most of the memory goes to mmap()ing
+ # files, so it shouldn't harm much even if this limit is set pretty high.
+@@ -374,10 +372,10 @@
+ # vpopmail: vpopmail authentication
+ # ldap <config path>: LDAP, see doc/dovecot-ldap.conf
+ # pgsql <config path>: a PostgreSQL database, see doc/dovecot-pgsql.conf
+-auth_passdb = pam
++auth_passdb = passwd
+
+ # Executable location
+-#auth_executable = /usr/libexec/dovecot/dovecot-auth
++#auth_executable = @PREFIX@/libexec/dovecot/dovecot-auth
+
+ # Set max. process size in megabytes.
+ #auth_process_size = 256