summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schlich <wschlich@gentoo.org>2005-09-13 16:51:17 +0000
committerWolfram Schlich <wschlich@gentoo.org>2005-09-13 16:51:17 +0000
commited5b6262808f4436839808d1a7dab12b4c3db749 (patch)
treeb29a20ca8d31edf75d317414ed2c302bb3eb843f /net-mail
parentMark 4.2.7 stable on alpha (diff)
downloadgentoo-2-ed5b6262808f4436839808d1a7dab12b4c3db749.tar.gz
gentoo-2-ed5b6262808f4436839808d1a7dab12b4c3db749.tar.bz2
gentoo-2-ed5b6262808f4436839808d1a7dab12b4c3db749.zip
version bump
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/dovecot/ChangeLog8
-rw-r--r--net-mail/dovecot/Manifest22
-rw-r--r--net-mail/dovecot/dovecot-1.0_alpha2.ebuild158
-rw-r--r--net-mail/dovecot/files/digest-dovecot-1.0_alpha21
4 files changed, 173 insertions, 16 deletions
diff --git a/net-mail/dovecot/ChangeLog b/net-mail/dovecot/ChangeLog
index 2c57b2ee5679..b6a2801ba3c1 100644
--- a/net-mail/dovecot/ChangeLog
+++ b/net-mail/dovecot/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-mail/dovecot
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v 1.28 2005/08/23 13:41:49 ticho Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v 1.29 2005/09/13 16:51:17 wschlich Exp $
+
+*dovecot-1.0_alpha2 (13 Sep 2005)
+
+ 13 Sep 2005; Wolfram Schlich <wschlich@gentoo.org>
+ +dovecot-1.0_alpha2.ebuild:
+ version bump
23 Aug 2005; Andrej Kacian <ticho@gentoo.org> dovecot-0.99.11-r1.ebuild,
dovecot-0.99.13.ebuild, dovecot-0.99.14.ebuild, dovecot-0.99.14-r1.ebuild:
diff --git a/net-mail/dovecot/Manifest b/net-mail/dovecot/Manifest
index 0933f09635b8..361c37277183 100644
--- a/net-mail/dovecot/Manifest
+++ b/net-mail/dovecot/Manifest
@@ -1,22 +1,14 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
+MD5 2dbb8948bcdb9bf2868cf48ea1999261 ChangeLog 5716
MD5 f1a232989766277e9cbeea9d06ee295d dovecot-0.99.11-r1.ebuild 4758
-MD5 e8a87e45204be10f963e561e52b711f7 dovecot-0.99.14.ebuild 4756
+MD5 6aff5aa92785e8c05383a2b4c174b645 dovecot-0.99.13.ebuild 4755
MD5 99447b7e91993e85c28780291d5656e6 dovecot-0.99.14-r1.ebuild 5068
-MD5 33711ef88464196655b73e262b24219e ChangeLog 5582
+MD5 e8a87e45204be10f963e561e52b711f7 dovecot-0.99.14.ebuild 4756
MD5 61e0d05b1306513aede2838fa81b05b5 metadata.xml 225
-MD5 6aff5aa92785e8c05383a2b4c174b645 dovecot-0.99.13.ebuild 4755
-MD5 07b795b2b49257dee3743d5698d0d919 files/dovecot.init 517
+MD5 14e7897b587d57c05238f46d16aa9e61 dovecot-1.0_alpha2.ebuild 5314
+MD5 3d6d703cf014f2defc8fed34b50849a9 files/digest-dovecot-0.99.11-r1 67
MD5 d7a52bb7835818feb1f4acd85eba3d57 files/digest-dovecot-0.99.13 67
MD5 2a50200054849ca5e0173cb709ef649d files/digest-dovecot-0.99.14 67
-MD5 3d6d703cf014f2defc8fed34b50849a9 files/digest-dovecot-0.99.11-r1 67
MD5 2a50200054849ca5e0173cb709ef649d files/digest-dovecot-0.99.14-r1 67
+MD5 07b795b2b49257dee3743d5698d0d919 files/dovecot.init 517
MD5 1c0a9ca75cadf12377e70c2ef725ba0e files/dovecot.pam 220
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2 (GNU/Linux)
-
-iD8DBQFDCye3QlM6RnzZP+IRAk66AKCc1SsxdfH26FYkmK+xHjedE2BqlQCfVFgS
-X8+5R9UY/I7koEKoigOYWxg=
-=O1Sv
------END PGP SIGNATURE-----
+MD5 0e0a4098190f115ce3517dd26dc78bc8 files/digest-dovecot-1.0_alpha2 71
diff --git a/net-mail/dovecot/dovecot-1.0_alpha2.ebuild b/net-mail/dovecot/dovecot-1.0_alpha2.ebuild
new file mode 100644
index 000000000000..38b8901b3820
--- /dev/null
+++ b/net-mail/dovecot/dovecot-1.0_alpha2.ebuild
@@ -0,0 +1,158 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/dovecot-1.0_alpha2.ebuild,v 1.1 2005/09/13 16:51:17 wschlich Exp $
+
+IUSE="debug ipv6 ldap mbox pam postgres sasl ssl gnutls vpopmail nopop3d mysql"
+inherit eutils
+
+DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
+HOMEPAGE="http://dovecot.org/"
+MY_P="${P/_/.}"
+S="${WORKDIR}/${MY_P}"
+SRC_URI="http://dovecot.org/releases/${MY_P}.tar.gz"
+
+SLOT="0"
+LICENSE="LGPL-2.1"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+#PROVIDE="virtual/imapd"
+
+# Note: current dovecot will break on gnutls
+# http://www.dovecot.org/list/dovecot/2004-November/005169.html
+DEPEND=">=sys-libs/db-3.2
+ >=sys-apps/sed-4
+ ldap? ( >=net-nds/openldap-1.2 )
+ pam? ( sys-libs/pam )
+ sasl? ( >=dev-libs/cyrus-sasl-2.1 )
+ ssl? ( >=dev-libs/openssl-0.9.6g )
+ postgres? ( dev-db/postgresql )
+ mysql? ( dev-db/mysql )
+ vpopmail? ( net-mail/vpopmail )"
+ #gnutls? ( <=net-libs/gnutls-1.0.4 )
+
+RDEPEND="${DEPEND}
+ >=net-mail/mailbase-0.00-r8"
+
+pkg_setup() {
+ # Add user and group for login process (same as for fedora/redhat)
+ enewgroup dovecot 97
+ enewuser dovecot 97 -1 /dev/null dovecot
+}
+
+src_compile() {
+ local myconf=''
+ useq debug && myconf="${myconf} --enable-debug"
+ useq ldap && myconf="${myconf} --with-ldap"
+ useq ipv6 || myconf="${myconf} --disable-ipv6"
+ useq nopop3d && myconf="${myconf} --without-pop3d"
+ useq pam || myconf="${myconf} --without-pam"
+ useq postgres && myconf="${myconf} --with-pgsql"
+ useq mysql && myconf="${myconf} --with-mysql"
+ useq sasl && myconf="${myconf} --with-cyrus-sasl2"
+ # gnutls support no longer working
+ # (http://www.dovecot.org/list/dovecot/2004-November/005169.html)
+ useq ssl && myconf="${myconf} --with-ssl=openssl"
+ if useq gnutls; then
+ eerror
+ eerror 'GNUTLS support no longer available, see'
+ eerror 'http://www.dovecot.org/list/dovecot/2004-November/005169.html'
+ eerror
+ eerror 'Please set USE="-gnutls ssl" if you want SSL support.'
+ eerror
+ die
+ fi
+ # prefer gnutls to ssl if both gnutls and ssl are defined
+ #use gnutls && myconf="${myconf} --with-ssl=gnutls"
+ #use ssl && ! use gnutls && myconf="${myconf} --with-ssl=openssl"
+ #! use gnutls && ! use ssl && myconf="${myconf} --without-ssl"
+ useq vpopmail || myconf="${myconf} --without-vpopmail"
+
+ econf ${myconf} || die "configure failed"
+ emake || die "make failed"
+}
+
+src_install () {
+ einstall || die "make install failed"
+
+ # Create the dovecot.conf file from the dovecot-example.conf file that
+ # the dovecot folks nicely left for us....
+ mv ${D}/etc/dovecot-example.conf ${D}/etc/dovecot.conf
+
+ # ...changing the default mail spool locations to the Gentoo defaults.
+ if useq mbox; then
+ if useq maildir; then
+ ewarn "Both mbox and maildir USE flags set, using mbox"
+ fi
+ # /var/spool/mail/$USER mail spool
+ # The location of the INDEX may be overridden by the user if desired.
+ if [ -z ${DOVECOT_INDEX_PATH} ]; then
+ DOVECOT_INDEX_PATH='/var/dovecot/%u'
+ dodir /var/dovecot
+ fi
+ sed -i -e \
+ "s|#default_mail_env =|default_mail_env = mbox:/var/spool/mail/%u:INDEX=${DOVECOT_INDEX_PATH}|" \
+ ${D}/etc/dovecot.conf
+ # enable dovecot to create dotlocks in /var/spool/mail
+ sed -i -e \
+ 's|#mail_extra_groups =|mail_extra_groups = mail|' \
+ ${D}/etc/dovecot.conf
+ elif useq maildir; then
+ # $HOME/.maildir mail spool.
+ sed -i -e \
+ 's|#default_mail_env =|default_mail_env = maildir:%h/.maildir|' \
+ ${D}/etc/dovecot.conf
+ else
+ einfo "Both mbox and maildir USE flags unset, not modifying"
+ einfo "default_mail_env in /etc/dovecot.conf"
+ fi
+
+ # PAM
+ # We're using pam files (imap and pop3) provided by mailbase-0.00-r8
+ if useq pam; then
+ sed -i -e '/passdb pam {/,+10s:#args = .*:args = \*:' ${D}/etc/dovecot.conf
+ fi
+
+ # Documentation
+ rm -rf ${D}/usr/share/doc/dovecot
+ dodoc AUTHORS COPYING* NEWS README TODO dovecot-example.conf
+ dodoc doc/*.txt doc/*.conf doc/*.cnf
+
+ # per default dovecot wants it ssl cert called dovecot.pem
+ # fix this in mkcert.sh, which we use to generate the ssl certs
+ sed -i -e 's/imapd.pem/dovecot.pem/g' doc/mkcert.sh
+ dodoc doc/mkcert.sh
+
+ # rc script
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/dovecot.init dovecot
+
+ # Create SSL certificates
+ if useq ssl || useq gnutls; then
+ dodir /etc/ssl/certs
+ dodir /etc/ssl/private
+ # Let's not make a new certificate if we already have one
+ [ -e /etc/ssl/certs/dovecot.pem -a -e /etc/ssl/private/dovecot.pem ] \
+ || SSLDIR=${D}/etc/ssl sh doc/mkcert.sh
+ fi
+
+ dodir /var/run/dovecot
+ fowners root:root /var/run/dovecot
+ fperms 0700 /var/run/dovecot
+ keepdir /var/run/dovecot/login
+ fowners root:dovecot /var/run/dovecot/login
+ fperms 0750 /var/run/dovecot/login
+ fperms 0600 /etc/dovecot.conf
+}
+
+pkg_postinst() {
+ if useq pam; then
+ ewarn "If you are upgrading from Dovecot prior to 0.99.14-r1. be aware that the PAM"
+ ewarn "profile usage was changed. Dovecot's services now use distinctive profiles,"
+ ewarn "i.e. IMAP uses profile 'imap', POP3S uses profile 'pop3s', etc..."
+ echo
+ einfo "The above applies for default configuration (\"auth_passdb = pam *\")."
+ einfo "These PAM profiles are provided by net-mail/mailbase ebuild."
+ echo
+ fi
+ einfo "Please review /etc/dovecot.conf, particularly auth_userdb and auth_passdb."
+}
diff --git a/net-mail/dovecot/files/digest-dovecot-1.0_alpha2 b/net-mail/dovecot/files/digest-dovecot-1.0_alpha2
new file mode 100644
index 000000000000..063a5629ae65
--- /dev/null
+++ b/net-mail/dovecot/files/digest-dovecot-1.0_alpha2
@@ -0,0 +1 @@
+MD5 ea33ac1bf13a8252d880082ef6811081 dovecot-1.0.alpha2.tar.gz 1190702