diff options
author | Tuan Van <langthang@gentoo.org> | 2006-01-30 18:49:46 +0000 |
---|---|---|
committer | Tuan Van <langthang@gentoo.org> | 2006-01-30 18:49:46 +0000 |
commit | 977d2fc014dc68670f1e1058a9465ea8b74fdfd5 (patch) | |
tree | 5857e6ca2bbea8161a2f9e1a378508f3ac502b1d /net-mail/cyrus-imapd | |
parent | Stable on sparc (diff) | |
download | gentoo-2-977d2fc014dc68670f1e1058a9465ea8b74fdfd5.tar.gz gentoo-2-977d2fc014dc68670f1e1058a9465ea8b74fdfd5.tar.bz2 gentoo-2-977d2fc014dc68670f1e1058a9465ea8b74fdfd5.zip |
remove old ebuilds.
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'net-mail/cyrus-imapd')
-rw-r--r-- | net-mail/cyrus-imapd/ChangeLog | 8 | ||||
-rw-r--r-- | net-mail/cyrus-imapd/cyrus-imapd-2.2.10-r1.ebuild | 308 | ||||
-rw-r--r-- | net-mail/cyrus-imapd/cyrus-imapd-2.2.10.ebuild | 295 | ||||
-rw-r--r-- | net-mail/cyrus-imapd/cyrus-imapd-2.2.12-r1.ebuild | 314 | ||||
-rw-r--r-- | net-mail/cyrus-imapd/cyrus-imapd-2.2.12-r2.ebuild | 306 | ||||
-rw-r--r-- | net-mail/cyrus-imapd/cyrus-imapd-2.2.12-r3.ebuild | 310 | ||||
-rw-r--r-- | net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.2.10 | 1 | ||||
-rw-r--r-- | net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.2.10-r1 | 1 | ||||
-rw-r--r-- | net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.2.12-r1 | 1 | ||||
-rw-r--r-- | net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.2.12-r2 | 1 | ||||
-rw-r--r-- | net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.2.12-r3 | 1 |
11 files changed, 7 insertions, 1539 deletions
diff --git a/net-mail/cyrus-imapd/ChangeLog b/net-mail/cyrus-imapd/ChangeLog index 9ab777f9a9ae..0604348d3be1 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-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/ChangeLog,v 1.78 2006/01/30 18:22:03 langthang Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/ChangeLog,v 1.79 2006/01/30 18:49:46 langthang Exp $ + + 30 Jan 2006; Tuấn Văn <langthang@gentoo.org> + -cyrus-imapd-2.2.10.ebuild, -cyrus-imapd-2.2.10-r1.ebuild, + -cyrus-imapd-2.2.12-r1.ebuild, -cyrus-imapd-2.2.12-r2.ebuild, + -cyrus-imapd-2.2.12-r3.ebuild: + remove old ebuilds. *cyrus-imapd-2.2.12-r4 (30 Jan 2006) diff --git a/net-mail/cyrus-imapd/cyrus-imapd-2.2.10-r1.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-2.2.10-r1.ebuild deleted file mode 100644 index 927a667bb6c2..000000000000 --- a/net-mail/cyrus-imapd/cyrus-imapd-2.2.10-r1.ebuild +++ /dev/null @@ -1,308 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/cyrus-imapd-2.2.10-r1.ebuild,v 1.3 2005/07/13 14:18:33 swegener Exp $ - -inherit eutils ssl-cert gnuconfig fixheadtails - -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 ~sparc ~amd64 ~ppc ~hppa" -IUSE="afs drac idled kerberos pam snmp ssl tcpd" - -PROVIDE="virtual/imapd" -RDEPEND=">=sys-libs/db-3.2 - >=dev-libs/cyrus-sasl-2.1.13 - afs? ( >=net-fs/openafs-1.2.2 ) - pam? ( - >=sys-libs/pam-0.75 - >=net-mail/mailbase-0.00-r8 - ) - kerberos? ( virtual/krb5 ) - snmp? ( net-analyzer/net-snmp ) - ssl? ( >=dev-libs/openssl-0.9.6 ) - tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) - drac? ( >=mail-client/drac-1.12-r1 )" - -DEPEND="$RDEPEND - sys-devel/libtool - >=sys-devel/autoconf-2.58 - sys-devel/automake - >=sys-apps/sed-4" - -# "borrow" this from eldad in bug 60495 util portage can handle dep USE flags. -check_useflag() { - local my_pkg=$(best_version ${1}) - local my_flag=${2} - - if [[ $(grep -wo ${my_flag} /var/db/pkg/${my_pkg}/USE) ]]; then - return 0 - fi - - return 1 -} - -tcpd_flag_check() { - local tcpd_flag - local cyrus_imapd_has_tcpd_flag - local my_pkg=${1} - einfo "${my_pkg} found" - check_useflag ${my_pkg} tcpd - tcpd_flag="$?" - - if [ "${tcpd_flag}" == "0" ]; then - einfo "\"${my_pkg}\" has been emerged with \"tcpd\" USE flag" - else - einfo "\"${my_pkg}\" has been emerged without \"tcpd\" USE flag" - fi - - if use tcpd; then - cyrus_imapd_has_tcpd_flag="0" - else - cyrus_imapd_has_tcpd_flag="1" - fi - - if [ "${tcpd_flag}" != "${cyrus_imapd_has_tcpd_flag}" ]; then - eerror "both \"net-mail/cyrus-imapd\" and \"${my_pkg}\" have to be emerged" - eerror "with or without \"tcpd\" USE flag if you want to emerge" - eerror "this package with \"snmp\" USE flag. Bug #68254" - die "see above error message." - fi -} - -net-snmp_check() { - - if has_version net-analyzer/net-snmp; then - tcpd_flag_check net-analyzer/net-snmp - # check for minimal USE flag. - local has_minimal - check_useflag net-analyzer/net-snmp minimal - has_minimal="$?" - if [ "${has_minimal}" == "0" ]; then - eerror "If you want to emerge this package with \"snmp\" USE flag" - eerror "reemerge \"net-snmp\" without \"minimal\" USE flag" - die "see error message above" - fi - - # check for tcpd USE flag in sync for both packages. - - if [ "${net_snmp_has_tcpd_flag}" != "${cyrus_imapd_has_tcpd_flag}" ]; then - eerror "both \"cyrus-imapd\" and \"net-snmp\" have to be emerged" - eerror "with or without \"tcpd\" USE flag if you want to emerge" - eerror "this package with \"snmp\" USE flag. Bug #68254" - die "see above error message." - fi - - # an atemptto solve bug #67411. Is there a better solution? - # check for net-snmp-config exit and executable. - if [ -x "$(type -p net-snmp-config)" ]; then - einfo "$(type -p net-snmp-config) is found and executable." - NSC_AGENTLIBS="$(net-snmp-config --agent-libs)" - einfo "NSC_AGENTLIBS=\""${NSC_AGENTLIBS}"\"" - if [ -z "$NSC_AGENTLIBS" ]; then - eerror "NSC_AGENTLIBS is null" - einfo "please report this to bugs.gentoo.org" - fi - for i in ${NSC_AGENTLIBS}; do - # check for the DynaLoader path. - if [ "$(expr "$i" : '.*\(DynaLoader\)')" == "DynaLoader" ] ; then - DYNALOADER_PATH="$i" - einfo "DYNALOADER_PATH=\""${DYNALOADER_PATH}"\"" - if [[ ! -f "${DYNALOADER_PATH}" ]]; then - eerror "\""${DYNALOADER_PATH}"\" is not found." - einfo "Have you upgraded \"perl\" after" - einfo "you emerged \"net-snmp\". Please re-emerge" - einfo "\"net-snmp\" then try again. Bug #67411." - die "\""${DYNALOADER_PATH}"\" is not found." - fi - fi - done - else - eerror "\"net-snmp-config\" not found or not executable!" - die "You have \"net-snmp\" installed but \"net-snmp-config\" is not found or not executable. Please re-emerge \"net-snmp\" and try again!" - fi - fi -} - -pkg_setup() { - if use snmp; then - net-snmp_check - fi -} - - -src_unpack() { - unpack ${A} && cd "${S}" - - ht_fix_file ${S}/imap/xversion.sh - - # Add drac database support. - if use drac ; then - # better check for drac. Bug #79442. - epatch "${FILESDIR}/${P}-drac.patch" || die "epatch failed" - epatch "${S}/contrib/drac_auth.patch" || die "epatch failed" - fi - - # Add libwrap defines as we don't have a dynamicly linked library. - if use tcpd ; then - epatch "${FILESDIR}/${P}-libwrap.patch" || die "epatch failed" - fi - - # DB4 detection and versioned symbols. - # The new cyrus-imapd has a new DB detection. - # Hopefully we don't need this patch anymore. - # epatch "${FILESDIR}/${P}-db4.patch" || die "epatch failed" - - # Fix master(8)->cyrusmaster(8) manpage. - for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do - sed -e 's:master\.8:cyrusmaster.8:g' \ - -e 's:master(8):cyrusmaster(8):g' \ - -i "${i}" || die "sed failed" || die "sed failed" - done - mv man/master.8 man/cyrusmaster.8 || die "mv failed" - sed -e "s:MASTER:CYRUSMASTER:g" \ - -e "s:Master:Cyrusmaster:g" \ - -e "s:master:cyrusmaster:g" \ - -i man/cyrusmaster.8 || die "sed failed" - - # Recreate configure. - export WANT_AUTOCONF="2.5" - gnuconfig_update - rm -rf configure config.h.in autom4te.cache || die - ebegin "Recreating configure" - sh SMakefile &>/dev/null || die "SMakefile failed" - eend $? - - # When linking with rpm, you need to link with more libraries. - sed -e "s:lrpm:lrpm -lrpmio -lrpmdb:" -i configure || die "sed failed" -} - -src_compile() { - local myconf - myconf="${myconf} $(use_with afs)" - myconf="${myconf} $(use_with drac)" - myconf="${myconf} $(use_with ssl openssl)" - myconf="${myconf} $(use_with snmp ucdsnmp)" - myconf="${myconf} $(use_with tcpd libwrap)" - myconf="${myconf} $(use_enable kerberos gssapi)" - - if use idled; then - myconf="${myconf} --with-idle=idled" - else - myconf="${myconf} --with-idle=poll" - fi - - econf \ - --enable-murder \ - --enable-listext \ - --enable-netscapehack \ - --with-extraident=Gentoo \ - --with-service-path=/usr/lib/cyrus \ - --with-cyrus-user=cyrus \ - --with-cyrus-group=mail \ - --with-com_err=yes \ - --with-auth=unix \ - --without-perl \ - --disable-cyradm \ - ${myconf} || die "econf failed" - - # needed for parallel make. Bug #72352. - cd ${S}/imap - emake xversion.h || die "emake xversion.h failed" - - cd ${S} - emake || die "compile problem" -} - -src_install() { - dodir /usr/bin /usr/lib - for subdir in master imap imtest timsieved notifyd sieve; do - make -C "${subdir}" DESTDIR="${D}" install || die "make install failed" - done - - # Link master to cyrusmaster (postfix has a master too) - dosym /usr/lib/cyrus/master /usr/lib/cyrus/cyrusmaster - - doman man/*.[0-8] - 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}" - find "${D}/usr/share/doc" -name CVS -print0 | xargs -0 rm -rf - - insinto /etc - doins "${FILESDIR}/cyrus.conf" "${FILESDIR}/imapd.conf" - - newinitd "${FILESDIR}/cyrus.rc6" cyrus - newconfd "${FILESDIR}/cyrus.confd" cyrus - - if use pam ; then - insinto /etc/pam.d - # This is now provided by mailbase-0.00-r8. See #79240 - # newins "${FILESDIR}/imap.pam" imap - # newins "${FILESDIR}/imap.pam" pop3 - newins "${FILESDIR}/imap.pam" sieve - fi - - if use ssl ; then - SSL_ORGANIZATION="${SSL_ORGANIZATION:-Cyrus IMAP Server}" - insinto /etc/ssl/cyrus - docert server - fowners cyrus:mail /etc/ssl/cyrus/server.{key,pem} - fi - - for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do - keepdir "/var/${subdir}" - fowners cyrus:mail "/var/${subdir}" - fperms 0750 "/var/${subdir}" - done - for subdir in imap/{user,quota,sieve} spool/imap ; do - for i in a b c d e f g h i j k l m n o p q r s t v u w x y z ; do - keepdir "/var/${subdir}/${i}" - fowners cyrus:mail "/var/${subdir}/${i}" - fperms 0750 "/var/${subdir}/${i}" - done - done -} - -pkg_postinst() { - ewarn "*****NOTE*****" - ewarn "If you're upgrading from versions prior to 2.2.2_BETA" - ewarn "be sure to read the following thoroughly:" - ewarn "http://asg.web.cmu.edu/cyrus/download/imapd/install-upgrade.html" - ewarn "*****NOTE*****" - echo - - 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 - ebegin "Making /var/imap/user/* and /var/imap/quota/* synchronous." - chattr +S /var/imap/{user,quota}{,/*} - eend $? - fi - - if df -T /var/spool/imap | grep -q ' ext[23] ' ; then - ebegin "Making /var/spool/imap/* synchronous." - chattr +S /var/spool/imap{,/*} - eend $? - fi - - ewarn "If the queue directory of the mail daemon resides on an ext2" - ewarn "or ext3 filesystem you need to set it manually to update" - ewarn "synchronously. E.g. 'chattr +S /var/spool/mqueue'." - echo - - einfo "For correct logging add the following to /etc/syslog.conf:" - einfo " local6.* /var/log/imapd.log" - einfo " auth.debug /var/log/auth.log" - echo - - ewarn "You have to add user cyrus to the sasldb2. Do this with:" - ewarn " saslpasswd2 cyrus" -} diff --git a/net-mail/cyrus-imapd/cyrus-imapd-2.2.10.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-2.2.10.ebuild deleted file mode 100644 index a8b5f62da954..000000000000 --- a/net-mail/cyrus-imapd/cyrus-imapd-2.2.10.ebuild +++ /dev/null @@ -1,295 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/cyrus-imapd-2.2.10.ebuild,v 1.8 2005/07/13 14:18:33 swegener Exp $ - -inherit eutils ssl-cert gnuconfig fixheadtails - -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 sparc ~amd64 ~ppc hppa" -IUSE="afs drac idled kerberos pam snmp ssl tcpd" - -PROVIDE="virtual/imapd" -RDEPEND=">=sys-libs/db-3.2 - >=dev-libs/cyrus-sasl-2.1.13 - afs? ( >=net-fs/openafs-1.2.2 ) - pam? ( >=sys-libs/pam-0.75 ) - kerberos? ( virtual/krb5 ) - snmp? ( net-analyzer/net-snmp ) - ssl? ( >=dev-libs/openssl-0.9.6 ) - tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) - drac? ( >=mail-client/drac-1.12-r1 )" - -DEPEND="$RDEPEND - sys-devel/libtool - >=sys-devel/autoconf-2.58 - sys-devel/automake - >=sys-apps/sed-4" - -# "borrow" this from eldad in bug 60495 util portage can handle dep USE flags. -check_useflag() { - local my_pkg=$(best_version ${1}) - local my_flag=${2} - - if [[ $(grep -wo ${my_flag} /var/db/pkg/${my_pkg}/USE) ]]; then - return 0 - fi - - return 1 -} - -tcpd_flag_check() { - local tcpd_flag - local cyrus_imapd_has_tcpd_flag - local my_pkg=${1} - einfo "${my_pkg} found" - check_useflag ${my_pkg} tcpd - tcpd_flag="$?" - - if [ "${tcpd_flag}" == "0" ]; then - einfo "\"${my_pkg}\" has been emerged with \"tcpd\" USE flag" - else - einfo "\"${my_pkg}\" has been emerged without \"tcpd\" USE flag" - fi - - if use tcpd; then - cyrus_imapd_has_tcpd_flag="0" - else - cyrus_imapd_has_tcpd_flag="1" - fi - - if [ "${tcpd_flag}" != "${cyrus_imapd_has_tcpd_flag}" ]; then - eerror "both \"net-mail/cyrus-imapd\" and \"${my_pkg}\" have to be emerged" - eerror "with or without \"tcpd\" USE flag if you want to emerge" - eerror "this package with \"snmp\" USE flag. Bug #68254" - die "see above error message." - fi -} - -net-snmp_check() { - - if has_version net-analyzer/net-snmp; then - tcpd_flag_check net-analyzer/net-snmp - # check for minimal USE flag. - local has_minimal - check_useflag net-analyzer/net-snmp minimal - has_minimal="$?" - if [ "${has_minimal}" == "0" ]; then - eerror "If you want to emerge this package with \"snmp\" USE flag" - eerror "reemerge \"net-snmp\" without \"minimal\" USE flag" - die "see error message above" - fi - - # check for tcpd USE flag in sync for both packages. - - if [ "${net_snmp_has_tcpd_flag}" != "${cyrus_imapd_has_tcpd_flag}" ]; then - eerror "both \"cyrus-imapd\" and \"net-snmp\" have to be emerged" - eerror "with or without \"tcpd\" USE flag if you want to emerge" - eerror "this package with \"snmp\" USE flag. Bug #68254" - die "see above error message." - fi - - # an atemptto solve bug #67411. Is there a better solution? - # check for net-snmp-config exit and executable. - if [ -x "$(type -p net-snmp-config)" ]; then - einfo "$(type -p net-snmp-config) is found and executable." - NSC_AGENTLIBS="$(net-snmp-config --agent-libs)" - einfo "NSC_AGENTLIBS=\""${NSC_AGENTLIBS}"\"" - if [ -z "$NSC_AGENTLIBS" ]; then - eerror "NSC_AGENTLIBS is null" - einfo "please report this to bugs.gentoo.org" - fi - for i in ${NSC_AGENTLIBS}; do - # check for the DynaLoader path. - if [ "$(expr "$i" : '.*\(DynaLoader\)')" == "DynaLoader" ] ; then - DYNALOADER_PATH="$i" - einfo "DYNALOADER_PATH=\""${DYNALOADER_PATH}"\"" - if [[ ! -f "${DYNALOADER_PATH}" ]]; then - eerror "\""${DYNALOADER_PATH}"\" is not found." - einfo "Have you upgraded \"perl\" after" - einfo "you emerged \"net-snmp\". Please re-emerge" - einfo "\"net-snmp\" then try again. Bug #67411." - die "\""${DYNALOADER_PATH}"\" is not found." - fi - fi - done - else - eerror "\"net-snmp-config\" not found or not executable!" - die "You have \"net-snmp\" installed but \"net-snmp-config\" is not found or not executable. Please re-emerge \"net-snmp\" and try again!" - fi - fi -} - -pkg_setup() { - if use snmp; then - net-snmp_check - fi -} - - -src_unpack() { - unpack ${A} && cd "${S}" - - ht_fix_file ${S}/imap/xversion.sh - - # Add drac database support. - if use drac ; then - epatch "${S}/contrib/drac_auth.patch" || die "epatch failed" - fi - - # Add libwrap defines as we don't have a dynamicly linked library. - if use tcpd ; then - epatch "${FILESDIR}/${P}-libwrap.patch" || die "epatch failed" - fi - - # DB4 detection and versioned symbols. - # The new cyrus-imapd has a new DB detection. - # Hopefully we don't need this patch anymore. - # epatch "${FILESDIR}/${P}-db4.patch" || die "epatch failed" - - # Fix master(8)->cyrusmaster(8) manpage. - for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do - sed -e 's:master\.8:cyrusmaster.8:g' \ - -e 's:master(8):cyrusmaster(8):g' \ - -i "${i}" || die "sed failed" || die "sed failed" - done - mv man/master.8 man/cyrusmaster.8 || die "mv failed" - sed -e "s:MASTER:CYRUSMASTER:g" \ - -e "s:Master:Cyrusmaster:g" \ - -e "s:master:cyrusmaster:g" \ - -i man/cyrusmaster.8 || die "sed failed" - - # Recreate configure. - export WANT_AUTOCONF="2.5" - gnuconfig_update - rm -rf configure config.h.in autom4te.cache || die - ebegin "Recreating configure" - sh SMakefile &>/dev/null || die "SMakefile failed" - eend $? - - # When linking with rpm, you need to link with more libraries. - sed -e "s:lrpm:lrpm -lrpmio -lrpmdb:" -i configure || die "sed failed" -} - -src_compile() { - local myconf - myconf="${myconf} $(use_with afs)" - myconf="${myconf} $(use_with drac)" - myconf="${myconf} $(use_with ssl openssl)" - myconf="${myconf} $(use_with snmp ucdsnmp)" - myconf="${myconf} $(use_with tcpd libwrap)" - myconf="${myconf} $(use_enable kerberos gssapi)" - - if use idled; then - myconf="${myconf} --with-idle=idled" - else - myconf="${myconf} --with-idle=poll" - fi - - econf \ - --enable-murder \ - --enable-listext \ - --enable-netscapehack \ - --with-extraident=Gentoo \ - --with-service-path=/usr/lib/cyrus \ - --with-cyrus-user=cyrus \ - --with-cyrus-group=mail \ - --with-com_err=yes \ - --with-auth=unix \ - --without-perl \ - --disable-cyradm \ - ${myconf} || die "econf failed" - - emake || die "compile problem" -} - -src_install() { - dodir /usr/bin /usr/lib - for subdir in master imap imtest timsieved notifyd sieve; do - make -C "${subdir}" DESTDIR="${D}" install || die "make install failed" - done - - # Link master to cyrusmaster (postfix has a master too) - dosym /usr/lib/cyrus/master /usr/lib/cyrus/cyrusmaster - - doman man/*.[0-8] - 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}" - find "${D}/usr/share/doc" -name CVS -print0 | xargs -0 rm -rf - - insinto /etc - doins "${FILESDIR}/cyrus.conf" "${FILESDIR}/imapd.conf" - - newinitd "${FILESDIR}/cyrus.rc6" cyrus - newconfd "${FILESDIR}/cyrus.confd" cyrus - - if use pam ; then - insinto /etc/pam.d - newins "${FILESDIR}/imap.pam" imap - fi - - if use ssl ; then - SSL_ORGANIZATION="${SSL_ORGANIZATION:-Cyrus IMAP Server}" - insinto /etc/ssl/cyrus - docert server - fowners cyrus:mail /etc/ssl/cyrus/server.{key,pem} - fi - - for subdir in imap/{,db,log,msg,proc,socket} spool/imap/{,stage.} ; do - keepdir "/var/${subdir}" - fowners cyrus:mail "/var/${subdir}" - fperms 0750 "/var/${subdir}" - done - for subdir in imap/{user,quota,sieve} spool/imap ; do - for i in a b c d e f g h i j k l m n o p q r s t v u w x y z ; do - keepdir "/var/${subdir}/${i}" - fowners cyrus:mail "/var/${subdir}/${i}" - fperms 0750 "/var/${subdir}/${i}" - done - done -} - -pkg_postinst() { - ewarn "*****NOTE*****" - ewarn "If you're upgrading from versions prior to 2.2.2_BETA" - ewarn "be sure to read the following thoroughly:" - ewarn "http://asg.web.cmu.edu/cyrus/download/imapd/install-upgrade.html" - ewarn "*****NOTE*****" - echo - - 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 - ebegin "Making /var/imap/user/* and /var/imap/quota/* synchronous." - chattr +S /var/imap/{user,quota}{,/*} - eend $? - fi - - if df -T /var/spool/imap | grep -q ' ext[23] ' ; then - ebegin "Making /var/spool/imap/* synchronous." - chattr +S /var/spool/imap{,/*} - eend $? - fi - - ewarn "If the queue directory of the mail daemon resides on an ext2" - ewarn "or ext3 filesystem you need to set it manually to update" - ewarn "synchronously. E.g. 'chattr +S /var/spool/mqueue'." - echo - - einfo "For correct logging add the following to /etc/syslog.conf:" - einfo " local6.* /var/log/imapd.log" - einfo " auth.debug /var/log/auth.log" - echo - - ewarn "You have to add user cyrus to the sasldb2. Do this with:" - ewarn " saslpasswd2 cyrus" -} diff --git a/net-mail/cyrus-imapd/cyrus-imapd-2.2.12-r1.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-2.2.12-r1.ebuild deleted file mode 100644 index ac197fd0177a..000000000000 --- a/net-mail/cyrus-imapd/cyrus-imapd-2.2.12-r1.ebuild +++ /dev/null @@ -1,314 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/cyrus-imapd-2.2.12-r1.ebuild,v 1.5 2005/07/13 16:31:56 swegener Exp $ - -inherit eutils ssl-cert gnuconfig fixheadtails - -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 ~sparc ~amd64 ~ppc ~hppa ~ppc64" -IUSE="afs drac idled kerberos pam snmp ssl tcpd unsupported_8bit" - -PROVIDE="virtual/imapd" -RDEPEND=">=sys-libs/db-3.2 - >=dev-libs/cyrus-sasl-2.1.13 - afs? ( >=net-fs/openafs-1.2.2 ) - pam? ( - >=sys-libs/pam-0.75 - >=net-mail/mailbase-0.00-r8 - ) - kerberos? ( virtual/krb5 ) - snmp? ( net-analyzer/net-snmp ) - ssl? ( >=dev-libs/openssl-0.9.6 ) - tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) - drac? ( >=mail-client/drac-1.12-r1 )" - -DEPEND="$RDEPEND - sys-devel/libtool - >=sys-devel/autoconf-2.58 - sys-devel/automake - >=sys-apps/sed-4" - -# "borrow" this from eldad in bug 60495 util portage can handle dep USE flags. -check_useflag() { - local my_pkg=$(best_version ${1}) - local my_flag=${2} - - if [[ $(grep -wo ${my_flag} /var/db/pkg/${my_pkg}/USE) ]]; then - return 0 - fi - - return 1 -} - -tcpd_flag_check() { - local tcpd_flag - local cyrus_imapd_has_tcpd_flag - local my_pkg=${1} - einfo "${my_pkg} found" - check_useflag ${my_pkg} tcpd - tcpd_flag="$?" - - if [ "${tcpd_flag}" == "0" ]; then - einfo "\"${my_pkg}\" has been emerged with \"tcpd\" USE flag" - else - einfo "\"${my_pkg}\" has been emerged without \"tcpd\" USE flag" - fi - - if use tcpd; then - cyrus_imapd_has_tcpd_flag="0" - else - cyrus_imapd_has_tcpd_flag="1" - fi - - if [ "${tcpd_flag}" != "${cyrus_imapd_has_tcpd_flag}" ]; then - eerror "both \"net-mail/cyrus-imapd\" and \"${my_pkg}\" have to be emerged" - eerror "with or without \"tcpd\" USE flag if you want to emerge" - eerror "this package with \"snmp\" USE flag. Bug #68254" - die "see above error message." - fi -} - -net-snmp_check() { - if has_version net-analyzer/ucd-snmp; then - tcpd_flag_check net-analyzer/ucd-snmp - fi - - if has_version net-analyzer/net-snmp; then - tcpd_flag_check net-analyzer/net-snmp - # check for minimal USE flag. - local has_minimal - check_useflag net-analyzer/net-snmp minimal - has_minimal="$?" - if [ "${has_minimal}" == "0" ]; then - eerror "If you want to emerge this package with \"snmp\" USE flag" - eerror "reemerge \"net-snmp\" without \"minimal\" USE flag" - die "see error message above" - fi - - # check for tcpd USE flag in sync for both packages. - - if [ "${net_snmp_has_tcpd_flag}" != "${cyrus_imapd_has_tcpd_flag}" ]; then - eerror "both \"cyrus-imapd\" and \"net-snmp\" have to be emerged" - eerror "with or without \"tcpd\" USE flag if you want to emerge" - eerror "this package with \"snmp\" USE flag. Bug #68254" - die "see above error message." - fi - - # an atemptto solve bug #67411. Is there a better solution? - # check for net-snmp-config exit and executable. - if [ -x "$(type -p net-snmp-config)" ]; then - einfo "$(type -p net-snmp-config) is found and executable." - NSC_AGENTLIBS="$(net-snmp-config --agent-libs)" - einfo "NSC_AGENTLIBS=\""${NSC_AGENTLIBS}"\"" - if [ -z "$NSC_AGENTLIBS" ]; then - eerror "NSC_AGENTLIBS is null" - einfo "please report this to bugs.gentoo.org" - fi - for i in ${NSC_AGENTLIBS}; do - # check for the DynaLoader path. - if [ "$(expr "$i" : '.*\(DynaLoader\)')" == "DynaLoader" ] ; then - DYNALOADER_PATH="$i" - einfo "DYNALOADER_PATH=\""${DYNALOADER_PATH}"\"" - if [[ ! -f "${DYNALOADER_PATH}" ]]; then - eerror "\""${DYNALOADER_PATH}"\" is not found." - einfo "Have you upgraded \"perl\" after" - einfo "you emerged \"net-snmp\". Please re-emerge" - einfo "\"net-snmp\" then try again. Bug #67411." - die "\""${DYNALOADER_PATH}"\" is not found." - fi - fi - done - else - eerror "\"net-snmp-config\" not found or not executable!" - die "You have \"net-snmp\" installed but \"net-snmp-config\" is not found or not executable. Please re-emerge \"net-snmp\" and try again!" - fi - fi -} - -pkg_setup() { - if use snmp; then - net-snmp_check - fi -} - - -src_unpack() { - unpack ${A} && cd "${S}" - - ht_fix_file ${S}/imap/xversion.sh - - # Add unsupported patch wrt #18706 and #80630 - use unsupported_8bit && epatch "${FILESDIR}/${PN}-unsupported-8bit.patch" - - # Add drac database support. - if use drac ; then - # better check for drac. Bug #79442. - epatch "${FILESDIR}/${P}-drac.patch" || die "epatch failed" - epatch "${S}/contrib/drac_auth.patch" || die "epatch failed" - fi - - # Add libwrap defines as we don't have a dynamicly linked library. - if use tcpd ; then - epatch "${FILESDIR}/${P}-libwrap.patch" || die "epatch failed" - fi - - # DB4 detection and versioned symbols. - # The new cyrus-imapd has a new DB detection. - # Hopefully we don't need this patch anymore. - # epatch "${FILESDIR}/${P}-db4.patch" || die "epatch failed" - - # Fix master(8)->cyrusmaster(8) manpage. - for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do - sed -e 's:master\.8:cyrusmaster.8:g' \ - -e 's:master(8):cyrusmaster(8):g' \ - -i "${i}" || die "sed failed" || die "sed failed" - done - mv man/master.8 man/cyrusmaster.8 || die "mv failed" - sed -e "s:MASTER:CYRUSMASTER:g" \ - -e "s:Master:Cyrusmaster:g" \ - -e "s:master:cyrusmaster:g" \ - -i man/cyrusmaster.8 || die "sed failed" - - # Recreate configure. - export WANT_AUTOCONF="2.5" - gnuconfig_update - rm -rf configure config.h.in autom4te.cache || die - ebegin "Recreating configure" - sh SMakefile &>/dev/null || die "SMakefile failed" - eend $? - - # When linking with rpm, you need to link with more libraries. - sed -e "s:lrpm:lrpm -lrpmio -lrpmdb:" -i configure || die "sed failed" -} - -src_compile() { - local myconf - myconf="${myconf} $(use_with afs)" - myconf="${myconf} $(use_with drac)" - myconf="${myconf} $(use_with ssl openssl)" - myconf="${myconf} $(use_with snmp ucdsnmp)" - myconf="${myconf} $(use_with tcpd libwrap)" - myconf="${myconf} $(use_enable kerberos gssapi)" - - if use idled; then - myconf="${myconf} --with-idle=idled" - else - myconf="${myconf} --with-idle=poll" - fi - - econf \ - --enable-murder \ - --enable-listext \ - --enable-netscapehack \ - --with-extraident=Gentoo \ - --with-service-path=/usr/lib/cyrus \ - --with-cyrus-user=cyrus \ - --with-cyrus-group=mail \ - --with-com_err=yes \ - --with-auth=unix \ - --without-perl \ - --disable-cyradm \ - ${myconf} || die "econf failed" - - # needed for parallel make. Bug #72352. - cd ${S}/imap - emake xversion.h || die "emake xversion.h failed" - - cd ${S} - emake || die "compile problem" -} - -src_install() { - dodir /usr/bin /usr/lib - for subdir in master imap imtest timsieved notifyd sieve; do - make -C "${subdir}" DESTDIR="${D}" install || die "make install failed" - done - - # Link master to cyrusmaster (postfix has a master too) - dosym /usr/lib/cyrus/master /usr/lib/cyrus/cyrusmaster - - doman man/*.[0-8] - 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}" - find "${D}/usr/share/doc" -name CVS -print0 | xargs -0 rm -rf - - insinto /etc - doins "${FILESDIR}/cyrus.conf" "${FILESDIR}/imapd.conf" - - newinitd "${FILESDIR}/cyrus.rc6" cyrus - newconfd "${FILESDIR}/cyrus.confd" cyrus - - if use pam ; then - insinto /etc/pam.d - # This is now provided by mailbase-0.00-r8. See #79240 - # newins "${FILESDIR}/imap.pam" imap - # newins "${FILESDIR}/imap.pam" pop3 - newins "${FILESDIR}/imap.pam" sieve - fi - - if use ssl ; then - SSL_ORGANIZATION="${SSL_ORGANIZATION:-Cyrus IMAP Server}" - insinto /etc/ssl/cyrus - docert server - fowners cyrus:mail /etc/ssl/cyrus/server.{key,pem} - fi - - for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do - keepdir "/var/${subdir}" - fowners cyrus:mail "/var/${subdir}" - fperms 0750 "/var/${subdir}" - done - for subdir in imap/{user,quota,sieve} spool/imap ; do - for i in a b c d e f g h i j k l m n o p q r s t v u w x y z ; do - keepdir "/var/${subdir}/${i}" - fowners cyrus:mail "/var/${subdir}/${i}" - fperms 0750 "/var/${subdir}/${i}" - done - done -} - -pkg_postinst() { - ewarn "*****NOTE*****" - ewarn "If you're upgrading from versions prior to 2.2.2_BETA" - ewarn "be sure to read the following thoroughly:" - ewarn "http://asg.web.cmu.edu/cyrus/download/imapd/install-upgrade.html" - ewarn "*****NOTE*****" - echo - - 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 - ebegin "Making /var/imap/user/* and /var/imap/quota/* synchronous." - chattr +S /var/imap/{user,quota}{,/*} - eend $? - fi - - if df -T /var/spool/imap | grep -q ' ext[23] ' ; then - ebegin "Making /var/spool/imap/* synchronous." - chattr +S /var/spool/imap{,/*} - eend $? - fi - - ewarn "If the queue directory of the mail daemon resides on an ext2" - ewarn "or ext3 filesystem you need to set it manually to update" - ewarn "synchronously. E.g. 'chattr +S /var/spool/mqueue'." - echo - - einfo "For correct logging add the following to /etc/syslog.conf:" - einfo " local6.* /var/log/imapd.log" - einfo " auth.debug /var/log/auth.log" - echo - - ewarn "You have to add user cyrus to the sasldb2. Do this with:" - ewarn " saslpasswd2 cyrus" -} diff --git a/net-mail/cyrus-imapd/cyrus-imapd-2.2.12-r2.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-2.2.12-r2.ebuild deleted file mode 100644 index 888f095a3838..000000000000 --- a/net-mail/cyrus-imapd/cyrus-imapd-2.2.12-r2.ebuild +++ /dev/null @@ -1,306 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/cyrus-imapd-2.2.12-r2.ebuild,v 1.3 2005/07/13 16:31:56 swegener Exp $ - -inherit eutils ssl-cert gnuconfig fixheadtails - -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 ~sparc ~amd64 ~ppc ~hppa ~ppc64" -IUSE="afs drac idled kerberos pam snmp ssl tcpd unsupported_8bit" - -PROVIDE="virtual/imapd" -RDEPEND=">=sys-libs/db-3.2 - >=dev-libs/cyrus-sasl-2.1.13 - afs? ( >=net-fs/openafs-1.2.2 ) - pam? ( - virtual/pam - >=net-mail/mailbase-1 - ) - kerberos? ( virtual/krb5 ) - snmp? ( net-analyzer/net-snmp ) - ssl? ( >=dev-libs/openssl-0.9.6 ) - tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) - drac? ( >=mail-client/drac-1.12-r1 )" - -DEPEND="$RDEPEND - sys-devel/libtool - >=sys-devel/autoconf-2.58 - sys-devel/automake" - -# "borrow" this from eldad in bug 60495 util portage can handle dep USE flags. -check_useflag() { - local my_pkg=$(best_version ${1}) - local my_flag=${2} - - if [[ $(grep -wo ${my_flag} /var/db/pkg/${my_pkg}/USE) ]]; then - return 0 - fi - - return 1 -} - -tcpd_flag_check() { - local tcpd_flag - local cyrus_imapd_has_tcpd_flag - local my_pkg=${1} - einfo "${my_pkg} found" - check_useflag ${my_pkg} tcpd - tcpd_flag="$?" - - if [ "${tcpd_flag}" == "0" ]; then - einfo "\"${my_pkg}\" has been emerged with \"tcpd\" USE flag" - else - einfo "\"${my_pkg}\" has been emerged without \"tcpd\" USE flag" - fi - - if use tcpd; then - cyrus_imapd_has_tcpd_flag="0" - else - cyrus_imapd_has_tcpd_flag="1" - fi - - if [ "${tcpd_flag}" != "${cyrus_imapd_has_tcpd_flag}" ]; then - eerror "both \"net-mail/cyrus-imapd\" and \"${my_pkg}\" have to be emerged" - eerror "with or without \"tcpd\" USE flag if you want to emerge" - eerror "this package with \"snmp\" USE flag. Bug #68254" - die "see above error message." - fi -} - -net-snmp_check() { - if has_version net-analyzer/ucd-snmp; then - tcpd_flag_check net-analyzer/ucd-snmp - fi - - if has_version net-analyzer/net-snmp; then - tcpd_flag_check net-analyzer/net-snmp - # check for minimal USE flag. - local has_minimal - check_useflag net-analyzer/net-snmp minimal - has_minimal="$?" - if [ "${has_minimal}" == "0" ]; then - eerror "If you want to emerge this package with \"snmp\" USE flag" - eerror "reemerge \"net-snmp\" without \"minimal\" USE flag" - die "see error message above" - fi - - # check for tcpd USE flag in sync for both packages. - - if [ "${net_snmp_has_tcpd_flag}" != "${cyrus_imapd_has_tcpd_flag}" ]; then - eerror "both \"cyrus-imapd\" and \"net-snmp\" have to be emerged" - eerror "with or without \"tcpd\" USE flag if you want to emerge" - eerror "this package with \"snmp\" USE flag. Bug #68254" - die "see above error message." - fi - - # an atemptto solve bug #67411. Is there a better solution? - # check for net-snmp-config exit and executable. - if [ -x "$(type -p net-snmp-config)" ]; then - einfo "$(type -p net-snmp-config) is found and executable." - NSC_AGENTLIBS="$(net-snmp-config --agent-libs)" - einfo "NSC_AGENTLIBS=\""${NSC_AGENTLIBS}"\"" - if [ -z "$NSC_AGENTLIBS" ]; then - eerror "NSC_AGENTLIBS is null" - einfo "please report this to bugs.gentoo.org" - fi - for i in ${NSC_AGENTLIBS}; do - # check for the DynaLoader path. - if [ "$(expr "$i" : '.*\(DynaLoader\)')" == "DynaLoader" ] ; then - DYNALOADER_PATH="$i" - einfo "DYNALOADER_PATH=\""${DYNALOADER_PATH}"\"" - if [[ ! -f "${DYNALOADER_PATH}" ]]; then - eerror "\""${DYNALOADER_PATH}"\" is not found." - einfo "Have you upgraded \"perl\" after" - einfo "you emerged \"net-snmp\". Please re-emerge" - einfo "\"net-snmp\" then try again. Bug #67411." - die "\""${DYNALOADER_PATH}"\" is not found." - fi - fi - done - else - eerror "\"net-snmp-config\" not found or not executable!" - die "You have \"net-snmp\" installed but \"net-snmp-config\" is not found or not executable. Please re-emerge \"net-snmp\" and try again!" - fi - fi -} - -pkg_setup() { - if use snmp; then - net-snmp_check - fi -} - - -src_unpack() { - unpack ${A} && cd "${S}" - - ht_fix_file ${S}/imap/xversion.sh - - # Add unsupported patch wrt #18706 and #80630 - use unsupported_8bit && epatch "${FILESDIR}/${PN}-unsupported-8bit.patch" - - # Add drac database support. - if use drac ; then - # better check for drac. Bug #79442. - epatch "${FILESDIR}/${P}-drac.patch" || die "epatch failed" - epatch "${S}/contrib/drac_auth.patch" || die "epatch failed" - fi - - # Add libwrap defines as we don't have a dynamicly linked library. - if use tcpd ; then - epatch "${FILESDIR}/${P}-libwrap.patch" || die "epatch failed" - fi - - # DB4 detection and versioned symbols. - # The new cyrus-imapd has a new DB detection. - # Hopefully we don't need this patch anymore. - # epatch "${FILESDIR}/${P}-db4.patch" || die "epatch failed" - - # Fix master(8)->cyrusmaster(8) manpage. - for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do - sed -i -e 's:master\.8:cyrusmaster.8:g' \ - -e 's:master(8):cyrusmaster(8):g' \ - "${i}" || die "sed failed" || die "sed failed" - done - mv man/master.8 man/cyrusmaster.8 || die "mv failed" - sed -i -e "s:MASTER:CYRUSMASTER:g" \ - -e "s:Master:Cyrusmaster:g" \ - -e "s:master:cyrusmaster:g" \ - man/cyrusmaster.8 || die "sed failed" - - # Recreate configure. - export WANT_AUTOCONF="2.5" - gnuconfig_update - rm -rf configure config.h.in autom4te.cache || die - ebegin "Recreating configure" - sh SMakefile &>/dev/null || die "SMakefile failed" - eend $? - - # When linking with rpm, you need to link with more libraries. - sed -i -e "s:lrpm:lrpm -lrpmio -lrpmdb:" configure || die "sed failed" -} - -src_compile() { - local myconf - myconf="${myconf} $(use_with afs)" - myconf="${myconf} $(use_with drac)" - myconf="${myconf} $(use_with ssl openssl)" - myconf="${myconf} $(use_with snmp ucdsnmp)" - myconf="${myconf} $(use_with tcpd libwrap)" - myconf="${myconf} $(use_enable kerberos gssapi)" - - if use idled; then - myconf="${myconf} --with-idle=idled" - else - myconf="${myconf} --with-idle=poll" - fi - - econf \ - --enable-murder \ - --enable-listext \ - --enable-netscapehack \ - --with-extraident=Gentoo \ - --with-service-path=/usr/lib/cyrus \ - --with-cyrus-user=cyrus \ - --with-cyrus-group=mail \ - --with-com_err=yes \ - --with-auth=unix \ - --without-perl \ - --disable-cyradm \ - ${myconf} || die "econf failed" - - # needed for parallel make. Bug #72352. - cd ${S}/imap - emake xversion.h || die "emake xversion.h failed" - - cd ${S} - emake || die "compile problem" -} - -src_install() { - dodir /usr/bin /usr/lib - for subdir in master imap imtest timsieved notifyd sieve; do - make -C "${subdir}" DESTDIR="${D}" install || die "make install failed" - done - - # Link master to cyrusmaster (postfix has a master too) - dosym /usr/lib/cyrus/master /usr/lib/cyrus/cyrusmaster - - doman man/*.[0-8] - 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}" - find "${D}/usr/share/doc" -name CVS -print0 | xargs -0 rm -rf - - insinto /etc - doins "${FILESDIR}/cyrus.conf" "${FILESDIR}/imapd.conf" - - newinitd "${FILESDIR}/cyrus.rc6" cyrus - newconfd "${FILESDIR}/cyrus.confd" cyrus - newpamd "${FILESDIR}/cyrus.pam-include" sieve - - if use ssl ; then - SSL_ORGANIZATION="${SSL_ORGANIZATION:-Cyrus IMAP Server}" - insinto /etc/ssl/cyrus - docert server - fowners cyrus:mail /etc/ssl/cyrus/server.{key,pem} - fi - - for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do - keepdir "/var/${subdir}" - fowners cyrus:mail "/var/${subdir}" - fperms 0750 "/var/${subdir}" - done - for subdir in imap/{user,quota,sieve} spool/imap ; do - for i in a b c d e f g h i j k l m n o p q r s t v u w x y z ; do - keepdir "/var/${subdir}/${i}" - fowners cyrus:mail "/var/${subdir}/${i}" - fperms 0750 "/var/${subdir}/${i}" - done - done -} - -pkg_postinst() { - ewarn "*****NOTE*****" - ewarn "If you're upgrading from versions prior to 2.2.2_BETA" - ewarn "be sure to read the following thoroughly:" - ewarn "http://asg.web.cmu.edu/cyrus/download/imapd/install-upgrade.html" - ewarn "*****NOTE*****" - echo - - 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 - ebegin "Making /var/imap/user/* and /var/imap/quota/* synchronous." - chattr +S /var/imap/{user,quota}{,/*} - eend $? - fi - - if df -T /var/spool/imap | grep -q ' ext[23] ' ; then - ebegin "Making /var/spool/imap/* synchronous." - chattr +S /var/spool/imap{,/*} - eend $? - fi - - ewarn "If the queue directory of the mail daemon resides on an ext2" - ewarn "or ext3 filesystem you need to set it manually to update" - ewarn "synchronously. E.g. 'chattr +S /var/spool/mqueue'." - echo - - einfo "For correct logging add the following to /etc/syslog.conf:" - einfo " local6.* /var/log/imapd.log" - einfo " auth.debug /var/log/auth.log" - echo - - ewarn "You have to add user cyrus to the sasldb2. Do this with:" - ewarn " saslpasswd2 cyrus" -} diff --git a/net-mail/cyrus-imapd/cyrus-imapd-2.2.12-r3.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-2.2.12-r3.ebuild deleted file mode 100644 index 13682adc1e89..000000000000 --- a/net-mail/cyrus-imapd/cyrus-imapd-2.2.12-r3.ebuild +++ /dev/null @@ -1,310 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/cyrus-imapd-2.2.12-r3.ebuild,v 1.1 2005/07/20 16:51:52 strerror Exp $ - -inherit eutils ssl-cert gnuconfig fixheadtails - -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 ~sparc ~amd64 ~ppc ~hppa ~ppc64" -IUSE="afs drac idled kerberos pam snmp ssl tcpd unsupported_8bit" - -PROVIDE="virtual/imapd" -RDEPEND=">=sys-libs/db-3.2 - >=dev-libs/cyrus-sasl-2.1.13 - afs? ( >=net-fs/openafs-1.2.2 ) - pam? ( - virtual/pam - >=net-mail/mailbase-1 - ) - kerberos? ( virtual/krb5 ) - snmp? ( net-analyzer/net-snmp ) - ssl? ( >=dev-libs/openssl-0.9.6 ) - tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) - drac? ( >=mail-client/drac-1.12-r1 )" - -DEPEND="$RDEPEND - sys-devel/libtool - >=sys-devel/autoconf-2.58 - sys-devel/automake" - -# "borrow" this from eldad in bug 60495 util portage can handle dep USE flags. -check_useflag() { - local my_pkg=$(best_version ${1}) - local my_flag=${2} - - if [[ $(grep -wo ${my_flag} /var/db/pkg/${my_pkg}/USE) ]]; then - return 0 - fi - - return 1 -} - -tcpd_flag_check() { - local tcpd_flag - local cyrus_imapd_has_tcpd_flag - local my_pkg=${1} - einfo "${my_pkg} found" - check_useflag ${my_pkg} tcpd - tcpd_flag="$?" - - if [ "${tcpd_flag}" == "0" ]; then - einfo "\"${my_pkg}\" has been emerged with \"tcpd\" USE flag" - else - einfo "\"${my_pkg}\" has been emerged without \"tcpd\" USE flag" - fi - - if use tcpd; then - cyrus_imapd_has_tcpd_flag="0" - else - cyrus_imapd_has_tcpd_flag="1" - fi - - if [ "${tcpd_flag}" != "${cyrus_imapd_has_tcpd_flag}" ]; then - eerror "both \"net-mail/cyrus-imapd\" and \"${my_pkg}\" have to be emerged" - eerror "with or without \"tcpd\" USE flag if you want to emerge" - eerror "this package with \"snmp\" USE flag. Bug #68254" - die "see above error message." - fi -} - -net-snmp_check() { - if has_version net-analyzer/ucd-snmp; then - tcpd_flag_check net-analyzer/ucd-snmp - fi - - if has_version net-analyzer/net-snmp; then - tcpd_flag_check net-analyzer/net-snmp - # check for minimal USE flag. - local has_minimal - check_useflag net-analyzer/net-snmp minimal - has_minimal="$?" - if [ "${has_minimal}" == "0" ]; then - eerror "If you want to emerge this package with \"snmp\" USE flag" - eerror "reemerge \"net-snmp\" without \"minimal\" USE flag" - die "see error message above" - fi - - # check for tcpd USE flag in sync for both packages. - - if [ "${net_snmp_has_tcpd_flag}" != "${cyrus_imapd_has_tcpd_flag}" ]; then - eerror "both \"cyrus-imapd\" and \"net-snmp\" have to be emerged" - eerror "with or without \"tcpd\" USE flag if you want to emerge" - eerror "this package with \"snmp\" USE flag. Bug #68254" - die "see above error message." - fi - - # an atemptto solve bug #67411. Is there a better solution? - # check for net-snmp-config exit and executable. - if [ -x "$(type -p net-snmp-config)" ]; then - einfo "$(type -p net-snmp-config) is found and executable." - NSC_AGENTLIBS="$(net-snmp-config --agent-libs)" - einfo "NSC_AGENTLIBS=\""${NSC_AGENTLIBS}"\"" - if [ -z "$NSC_AGENTLIBS" ]; then - eerror "NSC_AGENTLIBS is null" - einfo "please report this to bugs.gentoo.org" - fi - for i in ${NSC_AGENTLIBS}; do - # check for the DynaLoader path. - if [ "$(expr "$i" : '.*\(DynaLoader\)')" == "DynaLoader" ] ; then - DYNALOADER_PATH="$i" - einfo "DYNALOADER_PATH=\""${DYNALOADER_PATH}"\"" - if [[ ! -f "${DYNALOADER_PATH}" ]]; then - eerror "\""${DYNALOADER_PATH}"\" is not found." - einfo "Have you upgraded \"perl\" after" - einfo "you emerged \"net-snmp\". Please re-emerge" - einfo "\"net-snmp\" then try again. Bug #67411." - die "\""${DYNALOADER_PATH}"\" is not found." - fi - fi - done - else - eerror "\"net-snmp-config\" not found or not executable!" - die "You have \"net-snmp\" installed but \"net-snmp-config\" is not found or not executable. Please re-emerge \"net-snmp\" and try again!" - fi - fi -} - -pkg_setup() { - if use snmp; then - net-snmp_check - fi - - enewuser cyrus -1 -1 /usr/cyrus mail -} - - -src_unpack() { - unpack ${A} && cd "${S}" - - ht_fix_file ${S}/imap/xversion.sh - - # Add unsupported patch wrt #18706 and #80630 - use unsupported_8bit && epatch "${FILESDIR}/${PN}-unsupported-8bit.patch" - - # Add drac database support. - if use drac ; then - # better check for drac. Bug #79442. - epatch "${FILESDIR}/${P}-drac.patch" || die "epatch failed" - epatch "${S}/contrib/drac_auth.patch" || die "epatch failed" - fi - - # Add libwrap defines as we don't have a dynamicly linked library. - if use tcpd ; then - epatch "${FILESDIR}/${P}-libwrap.patch" || die "epatch failed" - fi - - # DB4 detection and versioned symbols. - # The new cyrus-imapd has a new DB detection. - # Hopefully we don't need this patch anymore. - # epatch "${FILESDIR}/${P}-db4.patch" || die "epatch failed" - - # Fix master(8)->cyrusmaster(8) manpage. - for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do - sed -i -e 's:master\.8:cyrusmaster.8:g' \ - -e 's:master(8):cyrusmaster(8):g' \ - "${i}" || die "sed failed" || die "sed failed" - done - mv man/master.8 man/cyrusmaster.8 || die "mv failed" - sed -i -e "s:MASTER:CYRUSMASTER:g" \ - -e "s:Master:Cyrusmaster:g" \ - -e "s:master:cyrusmaster:g" \ - man/cyrusmaster.8 || die "sed failed" - - # Recreate configure. - export WANT_AUTOCONF="2.5" - gnuconfig_update - rm -rf configure config.h.in autom4te.cache || die - ebegin "Recreating configure" - sh SMakefile &>/dev/null || die "SMakefile failed" - eend $? - - # When linking with rpm, you need to link with more libraries. - sed -i -e "s:lrpm:lrpm -lrpmio -lrpmdb:" configure || die "sed failed" -} - -src_compile() { - local myconf - myconf="${myconf} $(use_with afs)" - myconf="${myconf} $(use_with drac)" - myconf="${myconf} $(use_with ssl openssl)" - myconf="${myconf} $(use_with snmp ucdsnmp)" - myconf="${myconf} $(use_with tcpd libwrap)" - myconf="${myconf} $(use_enable kerberos gssapi)" - - if use idled; then - myconf="${myconf} --with-idle=idled" - else - myconf="${myconf} --with-idle=poll" - fi - - econf \ - --enable-murder \ - --enable-listext \ - --enable-netscapehack \ - --with-extraident=Gentoo \ - --with-service-path=/usr/lib/cyrus \ - --with-cyrus-user=cyrus \ - --with-cyrus-group=mail \ - --with-com_err=yes \ - --with-auth=unix \ - --without-perl \ - --disable-cyradm \ - ${myconf} || die "econf failed" - - # needed for parallel make. Bug #72352. - cd ${S}/imap - emake xversion.h || die "emake xversion.h failed" - - cd ${S} - emake || die "compile problem" -} - -src_install() { - dodir /usr/bin /usr/lib - for subdir in master imap imtest timsieved notifyd sieve; do - make -C "${subdir}" DESTDIR="${D}" install || die "make install failed" - done - - # Link master to cyrusmaster (postfix has a master too) - dosym /usr/lib/cyrus/master /usr/lib/cyrus/cyrusmaster - - doman man/*.[0-8] - 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}" - find "${D}/usr/share/doc" -name CVS -print0 | xargs -0 rm -rf - - insinto /etc - doins "${FILESDIR}/cyrus.conf" "${FILESDIR}/imapd.conf" - - newinitd "${FILESDIR}/cyrus.rc6" cyrus - newconfd "${FILESDIR}/cyrus.confd" cyrus - newpamd "${FILESDIR}/cyrus.pam-include" sieve - - if use ssl ; then - SSL_ORGANIZATION="${SSL_ORGANIZATION:-Cyrus IMAP Server}" - insinto /etc/ssl/cyrus - docert server - fowners cyrus:mail /etc/ssl/cyrus/server.{key,pem} - fi - - for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do - keepdir "/var/${subdir}" - fowners cyrus:mail "/var/${subdir}" - fperms 0750 "/var/${subdir}" - done - for subdir in imap/{user,quota,sieve} spool/imap ; do - for i in a b c d e f g h i j k l m n o p q r s t v u w x y z ; do - keepdir "/var/${subdir}/${i}" - fowners cyrus:mail "/var/${subdir}/${i}" - fperms 0750 "/var/${subdir}/${i}" - done - done -} - -pkg_postinst() { - ewarn "*****NOTE*****" - ewarn "If you're upgrading from versions prior to 2.2.2_BETA" - ewarn "be sure to read the following thoroughly:" - ewarn "http://asg.web.cmu.edu/cyrus/download/imapd/install-upgrade.html" - ewarn "*****NOTE*****" - echo - - 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 - - enewuser cyrus -1 -1 /usr/cyrus mail - - if df -T /var/imap | grep -q ' ext[23] ' ; then - ebegin "Making /var/imap/user/* and /var/imap/quota/* synchronous." - chattr +S /var/imap/{user,quota}{,/*} - eend $? - fi - - if df -T /var/spool/imap | grep -q ' ext[23] ' ; then - ebegin "Making /var/spool/imap/* synchronous." - chattr +S /var/spool/imap{,/*} - eend $? - fi - - ewarn "If the queue directory of the mail daemon resides on an ext2" - ewarn "or ext3 filesystem you need to set it manually to update" - ewarn "synchronously. E.g. 'chattr +S /var/spool/mqueue'." - echo - - einfo "For correct logging add the following to /etc/syslog.conf:" - einfo " local6.* /var/log/imapd.log" - einfo " auth.debug /var/log/auth.log" - echo - - ewarn "You have to add user cyrus to the sasldb2. Do this with:" - ewarn " saslpasswd2 cyrus" -} diff --git a/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.2.10 b/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.2.10 deleted file mode 100644 index 0afa5f0cc941..000000000000 --- a/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.2.10 +++ /dev/null @@ -1 +0,0 @@ -MD5 f3159efa2ffb9856ab79c35c7b002184 cyrus-imapd-2.2.10.tar.gz 1946803 diff --git a/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.2.10-r1 b/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.2.10-r1 deleted file mode 100644 index 0afa5f0cc941..000000000000 --- a/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.2.10-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 f3159efa2ffb9856ab79c35c7b002184 cyrus-imapd-2.2.10.tar.gz 1946803 diff --git a/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.2.12-r1 b/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.2.12-r1 deleted file mode 100644 index 9ba8fcd5d938..000000000000 --- a/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.2.12-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 70b3bba526a8d36d3bb23a87d37e9188 cyrus-imapd-2.2.12.tar.gz 1961161 diff --git a/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.2.12-r2 b/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.2.12-r2 deleted file mode 100644 index 9ba8fcd5d938..000000000000 --- a/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.2.12-r2 +++ /dev/null @@ -1 +0,0 @@ -MD5 70b3bba526a8d36d3bb23a87d37e9188 cyrus-imapd-2.2.12.tar.gz 1961161 diff --git a/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.2.12-r3 b/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.2.12-r3 deleted file mode 100644 index 9ba8fcd5d938..000000000000 --- a/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.2.12-r3 +++ /dev/null @@ -1 +0,0 @@ -MD5 70b3bba526a8d36d3bb23a87d37e9188 cyrus-imapd-2.2.12.tar.gz 1961161 |