diff options
author | Scott W Taylor <swtaylor@gentoo.org> | 2005-02-01 04:43:50 +0000 |
---|---|---|
committer | Scott W Taylor <swtaylor@gentoo.org> | 2005-02-01 04:43:50 +0000 |
commit | 70640abf168267f7befa8071e7c4cabb329b8e35 (patch) | |
tree | a8990215c959f8ecfe6f18354d38c6532573975d /mail-mta | |
parent | Typo fix (diff) | |
download | historical-70640abf168267f7befa8071e7c4cabb329b8e35.tar.gz historical-70640abf168267f7befa8071e7c4cabb329b8e35.tar.bz2 historical-70640abf168267f7befa8071e7c4cabb329b8e35.zip |
fam and .keep 70503+69630
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'mail-mta')
-rw-r--r-- | mail-mta/courier/ChangeLog | 12 | ||||
-rw-r--r-- | mail-mta/courier/Manifest | 8 | ||||
-rw-r--r-- | mail-mta/courier/courier-0.48.1.ebuild | 29 | ||||
-rw-r--r-- | mail-mta/courier/courier-0.48.2.20050130.ebuild | 62 | ||||
-rw-r--r-- | mail-mta/courier/files/courier-init | 17 |
5 files changed, 67 insertions, 61 deletions
diff --git a/mail-mta/courier/ChangeLog b/mail-mta/courier/ChangeLog index 9e1a9fd27a2c..06d2c4016f10 100644 --- a/mail-mta/courier/ChangeLog +++ b/mail-mta/courier/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for mail-mta/courier # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/ChangeLog,v 1.46 2005/01/31 01:54:20 swtaylor Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/ChangeLog,v 1.47 2005/02/01 04:43:50 swtaylor Exp $ + + 31 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> files/courier-init, + courier-0.48.1.ebuild, courier-0.48.2.20050130.ebuild: + apply keepdir change to 0.48.1 as well + + 31 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> files/courier-init, + courier-0.48.2.20050130.ebuild: + fewer keepdirs for 70503 + init.d need famd for 69630 + allow removal of fam for 69630.7 30 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> courier-0.48.1.ebuild: stabilize 0.48.1 - most notable change is authentication moved to new diff --git a/mail-mta/courier/Manifest b/mail-mta/courier/Manifest index 94c279f3c08c..2d3e2094f5bf 100644 --- a/mail-mta/courier/Manifest +++ b/mail-mta/courier/Manifest @@ -1,8 +1,8 @@ MD5 241c59b1f8572ca70f8c8e4cc921dcac courier-0.48.2.ebuild 8858 -MD5 3f665b9c9c560e02a1a4a3be7c4d2087 courier-0.48.1.ebuild 8851 -MD5 94c52c816678824f1fe2be0839b1e5be ChangeLog 17622 +MD5 63736390b9e03fada2a5cc984c64abdf courier-0.48.1.ebuild 8511 +MD5 14d546c869762087d8cab7e43ee202e8 ChangeLog 17991 MD5 b287829e2f9edbcf1ff7bb349055e77e metadata.xml 392 -MD5 797bf4e8a787216626bc617713aa348e courier-0.48.2.20050130.ebuild 9331 +MD5 22f82ce37da37081443095aebd2bb621 courier-0.48.2.20050130.ebuild 9734 MD5 8dc1f764de5f1ce1e3a21faac1d1b41f courier-0.47-r1.ebuild 10994 MD5 52f032e570c6f5f9f69b4e4bdfa562a1 files/password.dist 247 MD5 a546a21f960e4f921e71f614f719a2ce files/bofh 23 @@ -12,7 +12,7 @@ MD5 d8967dea60963b1c0abaccbb2c57ea64 files/apache-sqwebmail.inc 347 MD5 d41d8cd98f00b204e9800998ecf8427e files/locallowercase 0 MD5 6f47a6ec3b49ab38118513207c008eac files/digest-courier-0.48.1 68 MD5 9ef0f345ddfd8e819cabc4327f509a66 files/digest-courier-0.48.2 68 -MD5 7bd4625b319ee834c65e73ec927cd2ff files/courier-init 5414 +MD5 60af69963b0764d6358700c5b6399170 files/courier-init 5084 MD5 e3a4ab031bd750b7ce2c7b85fee83d8e files/set-mime 741 MD5 8396693e821bf04e8382d047cc740b5e files/digest-courier-0.47-r1 66 MD5 4eb96413bfbc91629bdf43526716cd1e files/dot_courier 26 diff --git a/mail-mta/courier/courier-0.48.1.ebuild b/mail-mta/courier/courier-0.48.1.ebuild index 6a6121be4ac2..cabd99c88115 100644 --- a/mail-mta/courier/courier-0.48.1.ebuild +++ b/mail-mta/courier/courier-0.48.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/courier-0.48.1.ebuild,v 1.3 2005/01/31 01:54:20 swtaylor Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/courier-0.48.1.ebuild,v 1.4 2005/02/01 04:43:50 swtaylor Exp $ inherit eutils @@ -65,7 +65,7 @@ src_compile() { myconf="${myconf} --enable-mimetypes=/etc/mime.types" einfo "Configuring courier: `echo ${myconf} | xargs echo`" - ./configure \ + econf \ --prefix=/usr \ --disable-root-check \ --mandir=/usr/share/man \ @@ -117,28 +117,21 @@ set_maildir() { src_install() { local f dodir /etc/pam.d - dodir /var/lib/courier - dodir /var/run/courier - make install DESTDIR=${D} || die "install" - make install-configure || die "install-configure" - diropts -o mail -g mail - for dir2keep in `(cd ${D} && find . -type d)` ; do - keepdir $dir2keep || die "failed running keepdir: $dir2keep" - done einfo "Setting up maildirs in the account skeleton ..." diropts -m 755 -o root -g root - keepdir /etc/skel - ${D}/usr/bin/maildirmake ${D}/etc/skel/.maildir + dodir /etc/skel + ${S}/maildir/maildirmake ${D}/etc/skel/.maildir keepdir /etc/skel/.maildir - keepdir /var/spool/mail - ${D}/usr/bin/maildirmake ${D}/var/spool/mail/.maildir - keepdir /var/spool/mail/.maildir + + diropts -o mail -g mail + dodir /var/lib/courier + dodir /var/run/courier + make install DESTDIR=${D} || die "install" + make install-configure || die "install-configure" exeinto /etc/init.d newexe ${FILESDIR}/courier-init courier - `grep DAEMONLIST /etc/init.d/courier >&/dev/null` && \ - newexe ${FILESDIR}/courier courier-old cd ${D}/etc/courier insinto /etc/courier @@ -182,7 +175,7 @@ src_install() { >> ${D}/usr/share/doc/${P}/README.htmldocs insinto /usr/$(get_libdir)/courier/courier - insopts -m 755 -o mail -g mail + insopts -m 755 -o mail -g mail doins ${S}/courier/webmaild insinto /etc/courier/webadmin insopts -m 400 -o mail -g mail diff --git a/mail-mta/courier/courier-0.48.2.20050130.ebuild b/mail-mta/courier/courier-0.48.2.20050130.ebuild index 946f2d56fe8e..3b0d53601d67 100644 --- a/mail-mta/courier/courier-0.48.2.20050130.ebuild +++ b/mail-mta/courier/courier-0.48.2.20050130.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/courier-0.48.2.20050130.ebuild,v 1.2 2005/01/31 00:35:56 swtaylor Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/courier-0.48.2.20050130.ebuild,v 1.3 2005/02/01 04:43:50 swtaylor Exp $ -inherit eutils +inherit eutils gnuconfig DESCRIPTION="An MTA designed specifically for maildirs" [ -z "${PV/?.??/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" @@ -15,7 +15,7 @@ SLOT="0" LICENSE="GPL-2" # not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 KEYWORDS="~x86 ~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc" -IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite uclibc mailwrapper" +IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite uclibc mailwrapper fam" PROVIDE="virtual/mta virtual/mda @@ -32,11 +32,11 @@ DEPEND="virtual/libc ldap? ( >=net-nds/openldap-1.2.11 ) postgres? ( >=dev-db/postgresql-7.1.3 ) spell? ( virtual/aspell-dict ) + fam? ( virtual/fam ) !mailwrapper? ( !virtual/mta ) !virtual/imapd" RDEPEND="${DEPEND} - virtual/fam dev-lang/perl sys-apps/procps" @@ -44,6 +44,12 @@ PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) crypt? ( >=app-crypt/gnupg-1.0.4 )" src_unpack() { + use fam || ( + ewarn "File Alteration Monitor (FAM) is disabled" + einfo "courier-imap will fall back to 60 second polls." + einfo 'add "fam" to your USE flags to build as usual' + ebeep 4 + epause 4 ) unpack ${A} cd ${S} use norewrite && epatch ${FILESDIR}/norewrite.patch @@ -64,8 +70,21 @@ src_compile() { [ -e /etc/mime.types ] && \ myconf="${myconf} --enable-mimetypes=/etc/mime.types" + use fam || ( + epatch ${FILESDIR}/fam-disable-check.patch + export WANT_AUTOCONF="2.5" + gnuconfig_update + cd ${S}/maildir + libtoolize --copy --force + ebegin "Recreating maildir without fam" + autoconf || die "recreate maildir failed" + eend $? + myconf="${myconf} --without-fam" + ) + einfo "Configuring courier: `echo ${myconf} | xargs echo`" - ./configure \ + + econf \ --prefix=/usr \ --disable-root-check \ --mandir=/usr/share/man \ @@ -118,28 +137,22 @@ set_maildir() { src_install() { local f dodir /etc/pam.d - dodir /var/lib/courier - dodir /var/run/courier - make install DESTDIR=${D} || die "install" - make install-configure || die "install-configure" - diropts -o mail -g mail - for dir2keep in `(cd ${D} && find . -type d)` ; do - keepdir $dir2keep || die "failed running keepdir: $dir2keep" - done einfo "Setting up maildirs in the account skeleton ..." diropts -m 755 -o root -g root - keepdir /etc/skel - ${D}/usr/bin/maildirmake ${D}/etc/skel/.maildir + dodir /etc/skel + ${S}/maildir/maildirmake ${D}/etc/skel/.maildir keepdir /etc/skel/.maildir - keepdir /var/spool/mail - ${D}/usr/bin/maildirmake ${D}/var/spool/mail/.maildir - keepdir /var/spool/mail/.maildir + + diropts -o mail -g mail + dodir /var/lib/courier + dodir /var/run/courier + make install DESTDIR=${D} || die "install" + make install-configure || die "install-configure" exeinto /etc/init.d newexe ${FILESDIR}/courier-init courier - `grep DAEMONLIST /etc/init.d/courier >&/dev/null` && \ - newexe ${FILESDIR}/courier courier-old + use fam || sed -i -e's|^.*need famd$||g' ${D}/etc/init.d/courier cd ${D}/etc/courier insinto /etc/courier @@ -147,7 +160,7 @@ src_install() { mv imapd.authpam imap.authpam ; mv pop3d.authpam pop3.authpam for f in *.authpam ; do mv "${f}" "${D}/etc/pam.d/${f%%.authpam}" ; done for f in *.dist ; do cp ${f} ${f%%.dist} ; done - [ -e ldapaliasrc ] && chown mail:root ldapaliasrc + [ -e ldapaliasrc ] && ( chown root:root ldapaliasrc ; chmod 400 ldapaliasrc ) set_maildir courierd imapd imapd-ssl pop3d pop3d-ssl sqwebmaild *.dist ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ @@ -189,7 +202,7 @@ src_install() { >> ${D}/usr/share/doc/${P}/README.htmldocs insinto /usr/$(get_libdir)/courier/courier - insopts -m 755 -o mail -g mail + insopts -m 755 -o mail -g mail doins ${S}/courier/webmaild insinto /etc/courier/webadmin insopts -m 400 -o mail -g mail @@ -217,6 +230,11 @@ src_install() { fi } +pkg_postinst() { + use fam && einfo "fam daemon is needed for courier-imapd" \ + || ewarn "courier was built without fam support" +} + pkg_config() { mailhost=`hostname` export mailhost diff --git a/mail-mta/courier/files/courier-init b/mail-mta/courier/files/courier-init index 66e3e4e93752..ac3539233237 100644 --- a/mail-mta/courier/files/courier-init +++ b/mail-mta/courier/files/courier-init @@ -19,6 +19,7 @@ datadir="/usr/share/courier" depend() { need net [ -d /etc/courier/authlib ] && need courier-authlib + grep -q "^IMAPDSTART=.*[Yy].*" /etc/courier/imapd && need famd } checkconfig() { @@ -48,14 +49,6 @@ checkconfig() { [ -f ${sysconfdir}/${ACCESSFILE}.dat ] || ${sbindir}/makesmtpaccess [ -f ${sysconfdir}/${ACCESSFILE}.dat ] || ${sbindir}/makesmtpaccess-msa - - # we need this for now to check for the old init scripts - if [ -f /etc/init.d/courier-authdaemond ] ; then - einfo "As of courier-0.42.2-r2, there is only one init script used" - einfo "you can remove /etc/init.d/courier-*. /etc/init.d/courier is" - einfo "the only one you need." - fi - } start() { @@ -189,11 +182,3 @@ stop() { eend $? } - - - -# restart() { -# ebegin "Restarting courier filterd" -# /usr/sbin/courierfilter restart -# eend $? -# } |