diff options
author | Nick Hadaway <raker@gentoo.org> | 2003-06-10 07:54:29 +0000 |
---|---|---|
committer | Nick Hadaway <raker@gentoo.org> | 2003-06-10 07:54:29 +0000 |
commit | 5f6b26fe5b1438f7931edddba5f37f63d168f13b (patch) | |
tree | 291fc3b6860c8bbff8e05d4eeab73a7ae26a10ca /net-mail/cyrus-imapd | |
parent | PROVIDE="virtual/mta" (diff) | |
download | gentoo-2-5f6b26fe5b1438f7931edddba5f37f63d168f13b.tar.gz gentoo-2-5f6b26fe5b1438f7931edddba5f37f63d168f13b.tar.bz2 gentoo-2-5f6b26fe5b1438f7931edddba5f37f63d168f13b.zip |
Version bump.
Diffstat (limited to 'net-mail/cyrus-imapd')
-rw-r--r-- | net-mail/cyrus-imapd/ChangeLog | 8 | ||||
-rw-r--r-- | net-mail/cyrus-imapd/Manifest | 2 | ||||
-rw-r--r-- | net-mail/cyrus-imapd/cyrus-imapd-2.1.13.ebuild | 214 | ||||
-rw-r--r-- | net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.1.13 | 1 |
4 files changed, 224 insertions, 1 deletions
diff --git a/net-mail/cyrus-imapd/ChangeLog b/net-mail/cyrus-imapd/ChangeLog index 8bb6f05fe0e9..81aa90e4190b 100644 --- a/net-mail/cyrus-imapd/ChangeLog +++ b/net-mail/cyrus-imapd/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-mail/cyrus-imapd # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/ChangeLog,v 1.25 2003/06/02 13:16:24 robh Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/ChangeLog,v 1.26 2003/06/10 07:54:29 raker Exp $ + +*cyrus-imapd-2.1.13 (09 Jun 2003) + + 09 Jun 2003; Nick Hadaway <raker@gentoo.org> cyrus-imapd-2.1.13.ebuild, + files/digest-cyrus-imapd-2.1.13: + Version bump. 02 Jun 2003; robh <robh@gentoo.org> cyrus-imapd-2.1.12.ebuild: added IUSE line diff --git a/net-mail/cyrus-imapd/Manifest b/net-mail/cyrus-imapd/Manifest index f67cd50a3915..1fd9a8039673 100644 --- a/net-mail/cyrus-imapd/Manifest +++ b/net-mail/cyrus-imapd/Manifest @@ -1,3 +1,4 @@ +MD5 16a605e724fb725768998287ceaa1a12 cyrus-imapd-2.1.13.ebuild 6877 MD5 f87cd5a05541e3c4f357bf6108a695da cyrus-imapd-2.1.12.ebuild 6877 MD5 e2494a6bb94bf802cd1b0d0a8dc4ef0e cyrus-imapd-2.1.11-r1.ebuild 6299 MD5 fcf0c83e1ff8057767f3f34667a2eceb ChangeLog 4932 @@ -12,6 +13,7 @@ MD5 24cfd296507c04e376368f15665041d1 files/cyrus-imapd-2.1.12-libwrap.patch 494 MD5 cbd00df5ef9288b1c830d95fa5e5831f files/gentestcrt.sh 8799 MD5 959399de17330ea5f52ef56cb6c5ffcd files/master.8.diff 1280 MD5 a73606d0350e6883a11a4c525af59551 files/digest-cyrus-imapd-2.1.12 71 +MD5 d63d317f0f8fa042638be86b663fffc0 files/digest-cyrus-imapd-2.1.13 71 MD5 f4074e463596703804133990ab7b00fd files/pam.d-imap 209 MD5 df60f59cb6da75d7ca5e71a0d1ad52e7 files/imapd_2.conf 765 MD5 0e719522fa5fdeeb6299875a7ab67f36 files/cyrus.conf 1340 diff --git a/net-mail/cyrus-imapd/cyrus-imapd-2.1.13.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-2.1.13.ebuild new file mode 100644 index 000000000000..185e9bf8344c --- /dev/null +++ b/net-mail/cyrus-imapd/cyrus-imapd-2.1.13.ebuild @@ -0,0 +1,214 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/cyrus-imapd-2.1.13.ebuild,v 1.1 2003/06/10 07:54:29 raker Exp $ + +inherit eutils + +DESCRIPTION="The Cyrus IMAP Server" +HOMEPAGE="http://asg.web.cmu.edu/cyrus/imapd/" +SRC_URI="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/${P}.tar.gz" +IUSE="afs snmp ssl kerberos" +LICENSE="as-is" +SLOT="0" +KEYWORDS="~x86 -ppc -sparc " +PROVIDE="virtual/imapd" +DEPEND="virtual/glibc + afs? ( >=net-fs/openafs-1.2.2 ) + snmp? ( >=net-analyzer/ucd-snmp-4.2.3 ) + ssl? ( >=dev-libs/openssl-0.9.6 ) + kerberos? ( virtual/krb5 ) + >=sys-libs/db-3.2 + >=sys-libs/pam-0.75 + >=dev-libs/cyrus-sasl-2.1.13 + >=sys-apps/tcp-wrappers-7.6 + net-mail/mailbase" + +pkg_setup() { + if ! grep -q ^cyrus: /etc/passwd ; then + useradd -c cyrus -d /usr/cyrus -g mail -s /bin/false -u 96 cyrus \ + || die "problem adding user cyrus" + fi +} + +src_unpack() { + unpack ${A} + cd ${S} + # remove spurious -I/usr/includes + epatch ${FILESDIR}/cyrus-imapd-2.1.12-includepath.patch + # add libwrap defines as we don't have a dynamicly linked library. + epatch ${FILESDIR}/cyrus-imapd-2.1.12-libwrap.patch + # when linking with rpm, you need to link with more libraries. + cp configure configure.orig + sed -e "s:lrpm:lrpm -lrpmio -lrpmdb:" \ + < configure.orig > configure +} + +src_compile() { + local myconf + + use afs && myconf="--with-afs" \ + || myconf="--without-afs" + + use snmp && myconf="${myconf} --with-ucdsnmp=/usr" \ + myconf="${myconf} --without-ucdsnmp" + + use ssl && myconf="${myconf} --with-openssl=/usr" \ + || myconf="${myconf} --without-openssl" + + #use kerberos && myconf="${myconf} --with-krb=/usr/athena --with-auth=krb --enable-gssapi" \ + # || myconf="${myconf} --without-krb --with-auth=unix --disable-gssapi" + # As cyrus-sasl-2.1.12 doesn't appear to compile in krb4 support + # (neither did previous versions) only support krb5 + use kerberos && myconf="${myconf} --with-auth=krb --enable-gssapi" \ + || myconf="${myconf} --without-krb --with-auth=unix --disable-gssapi" + + econf \ + --enable-listext \ + --with-cyrus-group=mail \ + --enable-netscapehack \ + --with-com_err=yes \ + --without-perl \ + --disable-cyradm \ + --with-libwrap=/usr \ + ${myconf} + + # make depends break with -f... in CFLAGS + make depend CFLAGS="" || die "make depend problem" + + make || die "compile problem" +} + +src_install() { + make DESTDIR=${D} install || die + + # Remove the developer stuff (-> dev-libs/cyrus-imap-devel) + rm -rf ${D}usr/include ${D}usr/lib + + # Rename the master from cyrus to cyrusmaster (postfix has a master too) + mv ${D}usr/cyrus/bin/master ${D}usr/cyrus/bin/cyrusmaster + + # Fix manpage stuff + rm -rf ${D}usr/man + + # master is renamed to cyrusmaster because postfix has a master too + mv man/master.8 man/cyrusmaster.8 + patch man/cyrusmaster.8 ${FILESDIR}/master.8.diff || die "error patching master.8" + + doman man/*.? + + # remove man-pages from packet net-mail/cyrus-imapd-admin + rm ${D}usr/share/man/man1/installsieve.1.gz ${D}usr/share/man/man1/sieveshell.1.gz + + dodir /etc + cp ${FILESDIR}/imapd_2.conf ${D}etc/imapd.conf + cp ${FILESDIR}/cyrus_2.conf ${D}etc/cyrus.conf + dodir /etc/pam.d + cp ${FILESDIR}/pam.d-imap ${D}etc/pam.d/imap + + dodir /var + mkdir -m 0750 ${D}var/imap + chown -R cyrus.mail ${D}var/imap + keepdir /var/imap + mkdir -m 0755 ${D}var/imap/db + chown -R cyrus.mail ${D}var/imap/db + keepdir /var/imap/db + mkdir -m 0755 ${D}var/imap/log + chown -R cyrus.mail ${D}var/imap/log + keepdir /var/imap/log + mkdir -m 0755 ${D}var/imap/msg + chown -R cyrus.mail ${D}var/imap/msg + keepdir /var/imap/msg + mkdir -m 0755 ${D}var/imap/user + chown -R cyrus.mail ${D}var/imap/user + keepdir /var/imap/user + for i in a b c d e f g h i j k l m n o p q r s t u v w x y z ; do mkdir -m 0755 ${D}var/imap/user/$i ; \ + chown -R cyrus.mail ${D}var/imap/user/$i + keepdir /var/imap/user/$i + done + mkdir -m 0755 ${D}var/imap/proc + chown -R cyrus.mail ${D}var/imap/proc + keepdir /var/imap/proc + mkdir -m 0755 ${D}var/imap/quota + for i in a b c d e f g h i j k l m n o p q r s t u v w x y z ; do mkdir -m 0755 ${D}var/imap/quota/$i ; \ + chown -R cyrus.mail ${D}var/imap/quota/$i + keepdir /var/imap/quota/$i + done + mkdir -m 0755 ${D}var/imap/sieve + chown -R cyrus.mail ${D}var/imap/sieve + for i in a b c d e f g h i j k l m n o p q r s t u v w x y z ; do mkdir -m 0755 ${D}var/imap/sieve/$i ; \ + chown -R cyrus.mail ${D}var/imap/sieve/$i + keepdir /var/imap/sieve/$i + done + mkdir -m 0755 ${D}var/imap/socket + chown -R cyrus.mail ${D}var/imap/socket + keepdir /var/imap/socket + mkdir ${D}var/spool + mkdir -m 0750 ${D}var/spool/imap + chown -R cyrus.mail ${D}var/spool/imap + keepdir /var/spool/imap + mkdir -m 0755 ${D}var/spool/imap/stage. + chown -R cyrus.mail ${D}var/spool/imap/stage. + keepdir /var/spool/imap/stage. + # For hashimapspool + for i in a b c d e f g h i j k l m n o p q r s t u v w x y z ; do mkdir -m 0755 ${D}var/spool/imap/$i ; \ + chown -R cyrus.mail ${D}var/spool/imap/$i + keepdir /var/spool/imap/$i + done + + dodoc COPYRIGHT README* + dohtml doc/*.html doc/murder.png + cp doc/cyrusv2.mc ${D}usr/share/doc/${PF}/html + cp -r contrib tools ${D}usr/share/doc/${PF} + + # Remove the CVS directories + find 2>/dev/null ${D}usr/share/doc/ -type d -name CVS -exec rm -rf '{}' \; + + exeinto /etc/init.d ; newexe ${FILESDIR}/cyrus.rc6_2 cyrus + + if [ "'use ssl'" ]; then + # from mod_ssl + echo "Generating self-signed test certificate" + echo "(Ignore any message from the yes command below)" + mkdir certs + cd certs + yes "" | ${FILESDIR}/gentestcrt.sh >/dev/null 2>&1 + mkdir ${D}etc/cyrusimapd + cp server.crt server.key ${D}etc/cyrusimapd + chown cyrus.root ${D}etc/cyrusimapd/server.crt ${D}etc/cyrusimapd/server.key + chmod 0400 ${D}etc/cyrusimapd/server.crt ${D}etc/cyrusimapd/server.key + fi +} + +pkg_postinst() { + ewarn "If you change the fs-type of /var/imap or" + ewarn "/var/spool/imap you should read step 9 of" + ewarn "/usr/share/doc/${P}/html/install-configure.html." + echo "" + + if df -T /var/imap | grep -q ' ext[23] ' ; then + ewarn "Setting /var/imap/user/* and /var/imap/quota/* to synchronous" + ewarn "updates." + chattr +S /var/imap/user /var/imap/user/* /var/imap/quota /var/imap/quota/* + echo "" + fi + + if df -T /var/spool/imap | grep -q ' ext[23] ' ; then + ewarn "Setting /var/spool/imap/* to synchronous updates." + chattr +S /var/spool/imap /var/spool/imap/* + echo "" + fi + + ewarn "If the queue directory of the mail daemon resides on an ext2" + ewarn "or ext3 partition you need to set it manually to update" + ewarn "synchronously. E.g. 'chattr +S /var/spool/mqueue'." + echo "" + + einfo "For correct logging with syslog add" + einfo "\tlocal6.* /var/log/imapd.log" + einfo "\tauth.debug /var/log/auth.log" + einfo "to /etc/syslog.conf." + echo "" + + ewarn "You have to add user cyrus to the sasldb2. Do this with:" + ewarn "\tsaslpasswd2 cyrus" +} diff --git a/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.1.13 b/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.1.13 new file mode 100644 index 000000000000..72211d940688 --- /dev/null +++ b/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.1.13 @@ -0,0 +1 @@ +MD5 ac3a4773c2f0fb2d0f9c5ec8669b7e65 cyrus-imapd-2.1.13.tar.gz 1664658 |