summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Hadaway <raker@gentoo.org>2002-12-08 00:35:01 +0000
committerNick Hadaway <raker@gentoo.org>2002-12-08 00:35:01 +0000
commit0e41d1cdcd1f9c1d079cdcb09c66621eb1278b3a (patch)
treeb193e85f7e53c9e3f90c196f02fa14485492628d /net-mail/cyrus-imapd
parentmozilla 1.2 fixes (diff)
downloadgentoo-2-0e41d1cdcd1f9c1d079cdcb09c66621eb1278b3a.tar.gz
gentoo-2-0e41d1cdcd1f9c1d079cdcb09c66621eb1278b3a.tar.bz2
gentoo-2-0e41d1cdcd1f9c1d079cdcb09c66621eb1278b3a.zip
version bump. ucd-snmp fixes. compile-time warning fixes.
Diffstat (limited to 'net-mail/cyrus-imapd')
-rw-r--r--net-mail/cyrus-imapd/ChangeLog10
-rw-r--r--net-mail/cyrus-imapd/cyrus-imapd-2.1.11.ebuild191
-rw-r--r--net-mail/cyrus-imapd/files/configure.diff180
-rw-r--r--net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.1.111
4 files changed, 381 insertions, 1 deletions
diff --git a/net-mail/cyrus-imapd/ChangeLog b/net-mail/cyrus-imapd/ChangeLog
index ce06cbcb842e..7c9f900a9ed3 100644
--- a/net-mail/cyrus-imapd/ChangeLog
+++ b/net-mail/cyrus-imapd/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-mail/cyrus-imapd
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/ChangeLog,v 1.16 2002/12/04 01:22:06 raker Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/ChangeLog,v 1.17 2002/12/08 00:35:01 raker Exp $
+
+*cyrus-imapd-2.1.11 (07 Dec 2002)
+
+ 07 Dec 2002; Nick Hadaway <raker@gentoo.org> cyrus-imapd-2.1.11.ebuild,
+ files/digest-cyrus-imapd-2.1.11, files/configure.diff :
+ New version with previously added secutity fixes. Also added
+ a ucd-snmp fix which needs testing. Removed -I/usr/include warnings
+ during compile-time. Currently marked unstable.
*cyrus-imapd-2.1.10 (03 Dec 2002)
diff --git a/net-mail/cyrus-imapd/cyrus-imapd-2.1.11.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-2.1.11.ebuild
new file mode 100644
index 000000000000..c861e43e18a4
--- /dev/null
+++ b/net-mail/cyrus-imapd/cyrus-imapd-2.1.11.ebuild
@@ -0,0 +1,191 @@
+# Copyright 1999-2002 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.11.ebuild,v 1.1 2002/12/08 00:35:01 raker Exp $
+
+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"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~x86 -ppc -sparc -sparc64"
+
+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? ( >=app-crypt/krb5-1.2.5 )
+ >=sys-libs/db-3.2
+ >=sys-libs/pam-0.75
+ >=dev-libs/cyrus-sasl-2.1.2
+ >=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}
+ patch -p1 < ${FILESDIR}/configure.diff || die "patch failed"
+
+}
+
+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 --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
+ mkdir -m 0755 ${D}var/imap/db
+ chown -R cyrus.mail ${D}var/imap/db
+ mkdir -m 0755 ${D}var/imap/log
+ chown -R cyrus.mail ${D}var/imap/log
+ mkdir -m 0755 ${D}var/imap/msg
+ chown -R cyrus.mail ${D}var/imap/msg
+ mkdir -m 0755 ${D}var/imap/user
+ chown -R cyrus.mail ${D}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
+ done
+ mkdir -m 0755 ${D}var/imap/proc
+ chown -R cyrus.mail ${D}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
+ 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 ; done
+ mkdir -m 0755 ${D}var/imap/socket
+ chown -R cyrus.mail ${D}var/imap/socket
+
+ mkdir ${D}var/spool
+ mkdir -m 0750 ${D}var/spool/imap
+ chown -R cyrus.mail ${D}var/spool/imap
+ mkdir -m 0755 ${D}var/spool/imap/stage.
+ chown -R cyrus.mail ${D}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 ; 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/configure.diff b/net-mail/cyrus-imapd/files/configure.diff
new file mode 100644
index 000000000000..e7cb5757c64a
--- /dev/null
+++ b/net-mail/cyrus-imapd/files/configure.diff
@@ -0,0 +1,180 @@
+diff -urN cyrus-imapd-2.1.11/configure cyrus-imapd-2.1.11-modified/configure
+--- cyrus-imapd-2.1.11/configure 2002-12-04 10:18:28.000000000 -0600
++++ cyrus-imapd-2.1.11-modified/configure 2002-12-04 16:49:23.000000000 -0600
+@@ -1493,10 +1493,10 @@
+ CFLAGS="-Wall ${CFLAGS}"
+ GCC_VERSION=`$CC -v 2>&1 | sed -n -e '/version/s/.*version \([0-9]\)\..*/\1/p'`
+ if test "$GCC_VERSION" != "3"; then
+- CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
++ CPPFLAGS="${CPPFLAGS}"
+ fi
+ else
+- CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
++ CPPFLAGS="${CPPFLAGS}"
+ fi
+
+ # this is CMU ADD LIBPATH
+@@ -1962,7 +1962,7 @@
+ if test -d $withval/include/db3; then
+ CPPFLAGS="-I$withval/include/db3 $CPPFLAGS"
+ else
+- CPPFLAGS="-I$withval/include $CPPFLAGS"
++ CPPFLAGS="$CPPFLAGS"
+ fi
+ else
+ # otherwise, check for ../include/db3
+@@ -3571,7 +3571,7 @@
+ if test "${with_afs+set}" = set; then
+ withval="$with_afs"
+ with_afs="${withval}"
+- CFLAGS="${CFLAGS} -I${withval}/include"
++ CFLAGS="${CFLAGS}"
+ else
+ with_afs="/usr/local"
+ fi
+@@ -3783,14 +3783,14 @@
+ { echo "configure: error: --enable-statickrb specified but --with-krb did not specify a valid directory" 1>&2; exit 1; }
+ fi
+
+- echo $ac_n "checking for des_ecb_encrypt in -ldes""... $ac_c" 1>&6
+-echo "configure:3788: checking for des_ecb_encrypt in -ldes" >&5
++ echo $ac_n "checking for des_ecb_encrypt in -ldes425""... $ac_c" 1>&6
++echo "configure:3788: checking for des_ecb_encrypt in -ldes425" >&5
+ ac_lib_var=`echo des'_'des_ecb_encrypt | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ ac_save_LIBS="$LIBS"
+-LIBS="-ldes $LIBS"
++LIBS="-ldes425 $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 3796 "configure"
+ #include "confdefs.h"
+@@ -3821,7 +3821,7 @@
+ if test "$with_statickrb" = "yes"; then
+ KRB_LIBS="$with_krb/lib/libdes.a"
+ else
+- KRB_LIBS="-ldes"
++ KRB_LIBS="-ldes425"
+ fi
+ else
+ echo "$ac_t""no" 1>&6
+@@ -4091,8 +4091,8 @@
+
+
+ ;;
+- *) OPENSSL_INC="-I${with_openssl}/include"
+- OPENSSL_LIB="-L${with_openssl}/lib"
++ *) OPENSSL_INC=""
++ OPENSSL_LIB=""
+ CPPFLAGS="${CPPFLAGS} ${OPENSSL_INC}"
+ LDFLAGS="${LDFLAGS} ${OPENSSL_LIB}"
+ LIBS="${LIBS} -lssl -lcrypto";;
+@@ -4187,7 +4187,7 @@
+ *) if test -d ${with_zephyr}/include/zephyr; then
+ ZEPHYR_CPPFLAGS="-I${with_zephyr}/include/zephyr"
+ else
+- ZEPHYR_CPPFLAGS="-I${with_zephyr}/include"
++ ZEPHYR_CPPFLAGS=""
+ fi
+ ZEPHYR_LIBS="-lzephyr";;
+ esac
+@@ -4428,10 +4428,10 @@
+ *) # use whatever they told us, or whatever we found
+ COMPILE_ET="${with_com_err}/bin/compile_et"
+ COM_ERR_LIBS="${with_com_err}/lib/libcom_err.a"
+- COM_ERR_CPPFLAGS="-I${with_com_err}/include"
++ COM_ERR_CPPFLAGS=""
+ # Ever get the feeling people hide this stuff on purpose?
+ if test -d "${with_com_err}/include/et" ; then
+- COM_ERR_CPPFLAGS="-I${with_com_err}/include"
++ COM_ERR_CPPFLAGS=""
+ fi
+ COMPILE_ET="${with_com_err}/bin/compile_et"
+ esac
+@@ -5035,7 +5035,7 @@
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ ac_save_LIBS="$LIBS"
+-LIBS="-lgssapi $GSSAPIBASE_LIBS -lgssapi -lkrb5 -ldes -lasn1 -lroken ${LIB_CRYPT} -lcom_err $LIBS"
++LIBS="-lgssapi $GSSAPIBASE_LIBS -lgssapi -lkrb5 -ldes425 -lasn1 -lroken ${LIB_CRYPT} -lcom_err $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 5041 "configure"
+ #include "confdefs.h"
+@@ -5073,7 +5073,7 @@
+ GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
+ GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a"
+ elif test "$gss_impl" = "heimdal"; then
+- GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -ldes -lasn1 -lroken ${LIB_CRYPT} -lcom_err"
++ GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -ldes425 -lasn1 -lroken ${LIB_CRYPT} -lcom_err"
+ GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_STATIC_LIBS $gssapi_dir/libgssapi.a $gssapi_dir/libkrb5.a $gssapi_dir/libdes.a $gssapi_dir/libasn1.a $gssapi_dir/libroken.a $gssapi_dir/libcom_err.a ${LIB_CRYPT}"
+ else
+ gssapi="no"
+@@ -5235,7 +5235,7 @@
+ ac_cv_sasl_where_lib=${with_sasl}/lib
+ ac_cv_sasl_where_inc=${with_sasl}/include
+
+- DYNSASLFLAGS="-I$ac_cv_sasl_where_inc"
++ DYNSASLFLAGS=""
+ if test "$ac_cv_sasl_where_lib" != ""; then
+
+ # this is CMU ADD LIBPATH TO
+@@ -5247,7 +5247,7 @@
+
+ fi
+ LIB_DYN_SASL="$LIB_DYN_SASL -lsasl2"
+- CPPFLAGS="${cmu_saved_CPPFLAGS} -I${ac_cv_sasl_where_inc}"
++ CPPFLAGS="${cmu_saved_CPPFLAGS}"
+ LDFLAGS="${cmu_saved_LDFLAGS} -L${ac_cv_sasl_where_lib}"
+ fi
+
+@@ -5909,7 +5909,7 @@
+
+ if test "$with_libwrap" != no; then
+ if test -d "$with_libwrap"; then
+- CPPFLAGS="$CPPFLAGS -I${with_libwrap}/include"
++ CPPFLAGS="$CPPFLAGS"
+ LDFLAGS="$LDFLAGS -L${with_libwrap}/lib"
+ fi
+ cmu_save_LIBS="$LIBS"
+@@ -6055,7 +6055,7 @@
+
+ if test "$with_ucdsnmp" != no; then
+ if test -d "$with_ucdsnmp"; then
+- CPPFLAGS="$CPPFLAGS -I${with_ucdsnmp}/include"
++ CPPFLAGS="$CPPFLAGS"
+ LDFLAGS="$LDFLAGS -L${with_ucdsnmp}/lib"
+ fi
+ cmu_save_LIBS="$LIBS"
+@@ -6153,7 +6153,7 @@
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ ac_save_LIBS="$LIBS"
+-LIBS="-lrpm -lpopt $LIBS"
++LIBS="-lrpm -lpopt -lrpmdb -lrpmio $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 6159 "configure"
+ #include "confdefs.h"
+@@ -6181,7 +6181,7 @@
+ fi
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+- LIB_UCDSNMP="${LIB_UCDSNMP} -lrpm -lpopt"
++ LIB_UCDSNMP="${LIB_UCDSNMP} -lrpm -lrpmdb -lrpmio -lpopt"
+ else
+ echo "$ac_t""no" 1>&6
+ fi
+diff -urN cyrus-imapd-2.1.11/master/master.c cyrus-imapd-2.1.11-modified/master/master.c
+--- cyrus-imapd-2.1.11/master/master.c 2002-11-01 10:44:33.000000000 -0600
++++ cyrus-imapd-2.1.11-modified/master/master.c 2002-12-07 18:21:41.000000000 -0600
+@@ -103,6 +103,10 @@
+ static int verbose = 0;
+ static int listen_queue_backlog = 32;
+
++int allow_severity = LOG_DEBUG;
++int deny_severity = LOG_ERR;
++int hosts_ctl;
++
+ struct service *Services = NULL;
+ int allocservices = 0;
+ int nservices = 0;
diff --git a/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.1.11 b/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.1.11
new file mode 100644
index 000000000000..b65aec333d9e
--- /dev/null
+++ b/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.1.11
@@ -0,0 +1 @@
+MD5 5742500ce1f6c655d1a49273d8b46261 cyrus-imapd-2.1.11.tar.gz 1646196