diff options
author | Hanno Boeck <hanno@gentoo.org> | 2011-01-23 21:39:36 +0000 |
---|---|---|
committer | Hanno Boeck <hanno@gentoo.org> | 2011-01-23 21:39:36 +0000 |
commit | b9b8817c05710f382edbee990fb6dc4f43a80e12 (patch) | |
tree | 1eda150d8b5f0c4d6533ab49cb7d2e14c688d2c3 /mail-mta/courier | |
parent | Marked ~ppc wrt #310417 (diff) | |
download | historical-b9b8817c05710f382edbee990fb6dc4f43a80e12.tar.gz historical-b9b8817c05710f382edbee990fb6dc4f43a80e12.tar.bz2 historical-b9b8817c05710f382edbee990fb6dc4f43a80e12.zip |
remove some old courier ebuilds
Package-Manager: portage-2.1.9.35/cvs/Linux x86_64
Diffstat (limited to 'mail-mta/courier')
-rw-r--r-- | mail-mta/courier/ChangeLog | 9 | ||||
-rw-r--r-- | mail-mta/courier/Manifest | 23 | ||||
-rw-r--r-- | mail-mta/courier/courier-0.60.0.ebuild | 316 | ||||
-rw-r--r-- | mail-mta/courier/courier-0.61.1.ebuild | 314 | ||||
-rw-r--r-- | mail-mta/courier/courier-0.61.2.ebuild | 311 | ||||
-rw-r--r-- | mail-mta/courier/courier-0.63.0.ebuild | 298 | ||||
-rw-r--r-- | mail-mta/courier/courier-0.64.0.ebuild | 298 | ||||
-rw-r--r-- | mail-mta/courier/courier-0.65.0.ebuild | 298 | ||||
-rw-r--r-- | mail-mta/courier/files/courier-init | 184 |
9 files changed, 12 insertions, 2039 deletions
diff --git a/mail-mta/courier/ChangeLog b/mail-mta/courier/ChangeLog index e9fec8a6de83..95bdbf327a09 100644 --- a/mail-mta/courier/ChangeLog +++ b/mail-mta/courier/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for mail-mta/courier -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/ChangeLog,v 1.133 2010/12/08 17:06:09 hanno Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/ChangeLog,v 1.134 2011/01/23 21:39:36 hanno Exp $ + + 23 Jan 2011; Hanno Boeck <hanno@gentoo.org> -courier-0.60.0.ebuild, + -courier-0.61.1.ebuild, -courier-0.61.2.ebuild, -courier-0.63.0.ebuild, + -courier-0.64.0.ebuild, -courier-0.65.0.ebuild, -files/courier-init: + Clean out some old versions. *courier-0.65.2 (08 Dec 2010) diff --git a/mail-mta/courier/Manifest b/mail-mta/courier/Manifest index af1d3140570f..c2f46b9fdee5 100644 --- a/mail-mta/courier/Manifest +++ b/mail-mta/courier/Manifest @@ -4,7 +4,6 @@ Hash: SHA1 AUX apache-sqwebmail.inc 347 RMD160 9d046149af6138320448fe7bb762b142e0eb9b94 SHA1 4996c33b74a3c9b70886f27948334e3880df8073 SHA256 3a6616dacfd49ab0c89c62d9df5662fc3c2d9e598786d781240bf5e8900afc65 AUX bofh 23 RMD160 995b6b103c29f390c2f0230af95d4c0823423dcb SHA1 f6399bc612af33ca79921961b223cbdf394d9549 SHA256 7e42d61373770a2b14a6fdd8b5f71c598ce4767726f8f7106de00b7c34a59e8c AUX courier-0.59.0-asneeded.patch 534 RMD160 fe2f28235842220d999dc77ed22857dd99c648a2 SHA1 5ae8a8cefbbd91f2146988c9095ac0e3668c1135 SHA256 802ae0431c9d2b55cdda4602522058874765170d12f4e2fcdd064971f8d31991 -AUX courier-init 5182 RMD160 7c5d80d7fdd4e09418461a746f6642f2a276b88b SHA1 beef0a5742fe31388947e945b4646c1dbe5627f1 SHA256 4b1a030bbba852c9c2c8d50e58c43c8e97b5a1ac29a04974a1f097362929e126 AUX courier-init-r1 5252 RMD160 2c770526b4fd2e342c904289573c4f8cb19ca6df SHA1 ac67cd4a9664b1010322b5260f84d017ee06736b SHA256 e74fc291b49dace3ffb3af1844b976255c0c7a34aa0e2d87b5c05f672db9058a AUX courier-init-r2 4877 RMD160 bc1bf99be4e032a0e52bba71801c89f9a6cd4383 SHA1 a9e8329fb0582fc0cf0341de4e054096587f2790 SHA256 d6a53142751f71f3a6287806259a640fdc1c8807003510d775b0239e8410d02a AUX dot_courier 26 RMD160 cf20012379abbb63f78e1eb0f9cbaefff6d1048d SHA1 8e5e09e167035d100859b42311b6dda2842f4d67 SHA256 8c585031b4356ca1f887e0823fd9b365fff57a5f9cc32541eccfc1542d5d3763 @@ -14,31 +13,19 @@ AUX norewrite.patch 489 RMD160 1d0bacf702126cc4f8b9d7b07bbc6a9357b7b6e9 SHA1 007 AUX password.dist 247 RMD160 eab211be0b1e3dbd6206f79e993b1d314a24efa3 SHA1 2cdd5bcf561f7267be6f18b731813962030af166 SHA256 46f20a84922d108d39a7c26ad3ba8915326549f46cea811e2384f55a589d38e2 AUX set-mime 741 RMD160 8ed45fb4a0aee168a70cdcab6d17cf1606f85cad SHA1 b8834602c7304d42f3179a8dde43dcc57d0f4972 SHA256 bf15af7c181d517a924cb82854cbce46278e6e28ffb338e2159ba89c386dc74f DIST courier-0.59.0.tar.bz2 7121762 RMD160 580e57fd9d39b62772e07dcdec653379cd21caaf SHA1 6870d2b12f1c93d5ede12f2a5c9c1107a7fb647c SHA256 e488cc920ed970c6d38496dba21359b50c6032ff4f2f91432b5d23db261578ec -DIST courier-0.60.0.tar.bz2 7067430 RMD160 f35a9329e87a948ca9abf6bd7fcc42e4bfe3adac SHA1 13be35f2631830ea2bf66831ea492d83b8247464 SHA256 c13da0a0b76c4a59aa219d037129b8305293d1091143027f2dfd631b9e470e64 -DIST courier-0.61.1.tar.bz2 7229642 RMD160 10e2eae71732a8d09ff9550ba035e66669248b7a SHA1 bfc8dd1a1af7f91b24fe715cea93428d4a874efa SHA256 979ff8342f53478c8f14cb79290d1a795433375c8ad18fc5aa950595a9973c90 -DIST courier-0.61.2.tar.bz2 7268675 RMD160 a738e534df69fee51aec50a53ce6e5d799f0eecd SHA1 aff9b418c84912832a81295ff4592a76fbe36853 SHA256 c240f2cfb96c0c94811152ea1495f41f72507bdef4e69806771f7203db0d1202 DIST courier-0.62.2.tar.bz2 7132042 RMD160 787b0240a0683350d0d1d7fc5220505d82579af7 SHA1 f7c49a86dc6560e4ab33870c9ac4983aac03949b SHA256 7b129ee12bb0f942354fb09527f706821556a0aa824798cafd004b8f60da2964 -DIST courier-0.63.0.tar.bz2 7133009 RMD160 bb47bf049c831756b5352ad1df5f7f4a67a8d52b SHA1 79d8b3b2e4cdcc07cc54308bac689255816ef9e6 SHA256 3a52363605f75f4156105aefa6bd375626f742033fbf09b5592179f274322044 -DIST courier-0.64.0.tar.bz2 7136191 RMD160 b38563ec054110068d1b2f6399bdb6539ec272a0 SHA1 921d69f2235be7fd548b9082abdaf0cc18e84223 SHA256 9e72165a6c369d135a128af7e69afa3cfa7be608f8f75049b517a077524aa9cc DIST courier-0.64.1.tar.bz2 7131375 RMD160 f7a0733ab2c4f8e0743bbe8b0fb4c44a5d75ceec SHA1 c8b81a2deb87ce07c74033fae807a498e4958e52 SHA256 b1cc5d95b256b7467743bcd78536c952febe3bfd7926fcc51742bf105deaadee -DIST courier-0.65.0.tar.bz2 7099997 RMD160 e5fc4742da27b3b97bd2592ad3ecc96618abada3 SHA1 4e5b7e64a35fe886a59621bc87e7f111428f19bc SHA256 ad0327eecbd231379a59e728cd27fd45db0e96faabca8920896ed77327d77604 DIST courier-0.65.2.tar.bz2 7152680 RMD160 6a81f74c85f9e78e6514f840598dde634fe070ce SHA1 784893216ea6c43c91606fa550cfdff13060855d SHA256 496361b8734381ba6128c7b0d5fe4c64ce7d807c01a74aae2cb5be8bb29e5ab2 EBUILD courier-0.59.0.ebuild 10179 RMD160 3def3737d7413cefbe88afe27da30ad6b33dcb83 SHA1 2ecd8f0e11e39940e8a37645844109d82dd901de SHA256 1111b6a3af173424aa5d0dfbe5dda0b30dd9931331b432ab21e2e7cb46422f16 -EBUILD courier-0.60.0.ebuild 10055 RMD160 5143f42b0af09701c7cce17866eba91fdd6f2bc9 SHA1 4665f7f8c37ba3c9b07016d8dc2acc0a1bdc34e0 SHA256 ea00c4eb9936a6813d3aeaf63118cbe58b1c2762987a87cdaffbfbea1cedfbe8 -EBUILD courier-0.61.1.ebuild 9855 RMD160 ef205ddddb0dacb4cfd88c5e808a424cf63d5dff SHA1 6a906bc83c85dc102c6717a5dfa75923928fc9d6 SHA256 b583b1d643c1ac3a8ecd41621e78071588d0b12f0be90ca86398e0d985dbde07 -EBUILD courier-0.61.2.ebuild 9834 RMD160 7fb6fc321c83175045e2ef16331ba129e9c20815 SHA1 fe440f2b0bc60b93ea511778ddafa0707c9be5ba SHA256 d07494ed3c49a2470ed9647d34d8d37c180b7e034ce1139bc0de5ebe1602241d EBUILD courier-0.62.2.ebuild 9281 RMD160 b7d702f685039f31bf6ccda4e1af34bb65ae2a3d SHA1 f1aa6acef932172e554317bef24b6b2d8c761ace SHA256 d2df747ac27822f83ecbb02943c0ad4ec29a5405ffbff53d4271c7ded89a5fbe -EBUILD courier-0.63.0.ebuild 9287 RMD160 82efd8a8f196eff50fc7396eb2e1b545a176d6d9 SHA1 6f1c2eb574e6a1ffa69f4ad00afb3c5733f5b4fa SHA256 1add8fd5f0f0808ce52d43ab9dc28aab0e794f078cfc05bacb77df0df5b942bd -EBUILD courier-0.64.0.ebuild 9287 RMD160 73c5857869513ca3116976b09c8bf8c1f45602ae SHA1 0fa47f881ce8bb18757a8ef7b832d83320f1f6d1 SHA256 17faaef9c1e66313ad9bcb2e22bb306f3894ff6cc313e1cfd28df672d0259fb9 EBUILD courier-0.64.1.ebuild 9284 RMD160 4d2f3a46e166409333597bb954a658ff3e03aa15 SHA1 c0206dbf94df8b047ea11a5715b3eaffbc6f246a SHA256 c2e9f28298b04dda5b0bd70a2211596fa610c7a564fde35b4ee095fd5bd05495 -EBUILD courier-0.65.0.ebuild 9287 RMD160 aaf464b3fbe7b5a21bf0667026048effac904632 SHA1 9e7949c159d601e8fd6bd2ce5cd3a8391b9a6743 SHA256 05977ee3e1b14f05f85d5682532b695c697fd718af96ea305a9a58a8670d6d56 EBUILD courier-0.65.2.ebuild 9284 RMD160 271dec936a7ece958ae163bf6815ac8b1f134426 SHA1 5510b8a68838afd47ee2f55d7e572d160dfe9041 SHA256 89978f51d16f830eb51fd54b41a3e82b69fda723bfcf2cc01ca8e91de89c366b -MISC ChangeLog 32701 RMD160 6ad81d2e0594119509aa3cfe85f719fa19b5f1a7 SHA1 83c60daa57abd1e11ac2598b511a081e9333c2c8 SHA256 6d3fe335b222adbec9eda84200a3520a0cbab7f40c97aca0b24db65df60d7a34 +MISC ChangeLog 32948 RMD160 976b5761fed5cea1215c089bbf435dbf10e25eb0 SHA1 62c206077d32e5713421b9a3eefd36e734295abb SHA256 927111b424e6600f2b565efe9cd5e48bb94365714e021a51acae9fa426e056e6 MISC metadata.xml 687 RMD160 753323e40a9add2b07fd1f138c672ce283d2f255 SHA1 2e8255902a9e0394bd27e13e488e84ba70f05845 SHA256 ea417e66d396e793212529ed20f5570b0c97eb666a5ba52bb3202bbfbc022be1 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.16 (GNU/Linux) +Version: GnuPG v2.0.17 (GNU/Linux) -iEYEARECAAYFAkz/uwcACgkQr2QksT29OyDFkACggO0o+xZHF141/uZJxKw8L9kS -SVwAnjTikuIXXGz8qLBhN8SPI3iC8vhD -=LE5i +iEYEARECAAYFAk08oB0ACgkQr2QksT29OyCjxgCfXmxIYWr+8v7T11wwTi5Rzqv0 +C9wAnixOd1bzWKNwuuEoK4BCN4DGrg/f +=rDt2 -----END PGP SIGNATURE----- diff --git a/mail-mta/courier/courier-0.60.0.ebuild b/mail-mta/courier/courier-0.60.0.ebuild deleted file mode 100644 index b20999ee46d3..000000000000 --- a/mail-mta/courier/courier-0.60.0.ebuild +++ /dev/null @@ -1,316 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/courier-0.60.0.ebuild,v 1.6 2010/12/05 20:54:48 mattst88 Exp $ - -inherit eutils flag-o-matic - -DESCRIPTION="An MTA designed specifically for maildirs" -[ -z "${PV/?.??/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" -[ -z "${PV/?.??.?/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" -[ -z "${SRC_URI}" ] && SRC_URI="http://www.courier-mta.org/beta/courier/${P%%_pre}.tar.bz2" -HOMEPAGE="http://www.courier-mta.org/" -S="${WORKDIR}/${P%%_pre}" - -SLOT="0" -LICENSE="GPL-2" -# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86" -IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper \ - fam web webmail" - -PROVIDE="virtual/mta - virtual/mda - virtual/imapd" - -DEPEND=" - >=net-libs/courier-authlib-0.61.0 - >=dev-libs/openssl-0.9.6 - >=sys-libs/gdbm-1.8.0 - dev-libs/libpcre - app-misc/mime-types - fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 ) - pam? ( virtual/pam ) - mysql? ( virtual/mysql ) - ldap? ( >=net-nds/openldap-1.2.11 ) - postgres? ( dev-db/postgresql-base ) - spell? ( virtual/aspell-dict ) - fam? ( virtual/fam ) - !mailwrapper? ( !virtual/mta ) - !virtual/imapd - !mail-filter/maildrop" - -RDEPEND="${DEPEND} - dev-lang/perl - sys-process/procps" - -PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) - pam? ( net-mail/mailbase ) - crypt? ( >=app-crypt/gnupg-1.0.4 )" - -filter-flags '-fomit-frame-pointer' - -src_unpack() { - use fam || ( - ewarn "File Alteration Monitor (FAM) is disabled" - ewarn "courier-imap will fall back to 60 second polls." - ewarn 'add "fam" to your USE flags to build as usual' - ebeep 4 - epause 4 ) - unpack ${A} - cd "${S}" - use norewrite && epatch "${FILESDIR}/norewrite.patch" - -} - -src_compile() { - local myconf - myconf="`use_with ipv6` \ - `use_with ldap ldapaliasd` `use_enable ldap maildropldap`" - - use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf" - use spell || myconf="${myconf} --without-ispell" - - myconf="${myconf} --enable-mimetypes=/etc/mime.types" - - myconf="${myconf} $(use_with fam)" - - einfo "Configuring courier: $(echo ${myconf} | xargs echo)" - - econf \ - --prefix=/usr \ - --disable-root-check \ - --mandir=/usr/share/man \ - --sysconfdir=/etc/courier \ - --libexecdir=/usr/$(get_libdir)/courier \ - --datadir=/usr/share/courier \ - --sharedstatedir=/var/lib/courier/com \ - --localstatedir=/var/lib/courier \ - --with-piddir=/var/run/courier \ - --with-authdaemonvar=/var/lib/courier/authdaemon \ - --with-mailuser=mail \ - --with-mailgroup=mail \ - --with-paranoid-smtpext \ - --with-db=gdbm \ - --disable-autorenamesent \ - --cache-file="${S}/configuring.cache" \ - --host="${CHOST}" ${myconf} debug=true || die "./configure" - sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile - emake || die "Compile problem" -} - -etc_courier() { - # Import existing /etc/courier/file if it exists. - # Add option only if it was not already set or even commented out - file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`" - [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \ - cp "/etc/courier/${file}" "${D}/etc/courier/${file}" - grep -q "${word}" "${D}/etc/courier/${file}" || \ - echo "${2}" >> "${D}/etc/courier/${file}" -} - -etc_courier_chg() { - file="${1}" ; key="${2}" ; value="${3}" ; section="${4}" - [ -z "${section}" ] && section="${2}" - grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}" - sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file} -} - -src_install() { - local f - diropts -o mail -g mail - keepdir /var/run/courier - keepdir /var/lib/courier/tmp - keepdir /var/lib/courier/msgs - make install DESTDIR="${D}" || die "install" - make install-configure || die "install-configure" - - # Get rid of files we dont want - if ! use webmail ; then - cd "${D}" - cat "${FILESDIR}/webmail_files" | xargs rm -rf - fi - - if ! use web ; then - cd "${D}" - cat "${FILESDIR}/webadmin_files" | xargs rm -rf - fi - - for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do - keepdir "$dir2keep" || die "failed running keepdir: $dir2keep" - done - - newinitd "${FILESDIR}/courier-init-r2" "courier" - use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier" - - cd "${D}/etc/courier" - if use webmail ; then - insinto /etc/courier - newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc - fi - - for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done - if use ldap ; then - [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) - else - rm -f ldapaliasrc - fi - - ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ - > "${D}/etc/courier/sizelimit" - etc_courier maildroprc "" - etc_courier esmtproutes "" - etc_courier backuprelay "" - etc_courier locallowercase "" - etc_courier bofh "opt BOFHBADMIME=accept" - etc_courier bofh "opt BOFHSPFTRUSTME=1" - etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" - etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" - etc_courier bofh "opt BOFHSPFFROM=all" - etc_courier bofh "opt BOFHSPFMAILFROM=all" - etc_courier bofh "#opt BOFHSPFHARDERROR=fail" - etc_courier esmtpd "BOFHBADMIME=accept" - etc_courier esmtpd-ssl "BOFHBADMIME=accept" - etc_courier esmtpd-msa "BOFHBADMIME=accept" - - use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE" - use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256" - - # Fix for a sandbox violation on subsequential merges - # - ticho@gentoo.org, 2005-07-10 - rm "${D}"/usr/sbin/{pop3d,imapd}{,-ssl} - dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d - dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl - dosym /usr/share/courier/imapd /usr/sbin/courier-imapd - dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl - - cd "${S}" - cp imap/README README.imap - use nls && cp unicode/README README.unicode - dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt - dodoc tcpd/README.couriertls - mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${P}/html" - - if use webmail ; then - insinto /usr/$(get_libdir)/courier/courier - insopts -m 755 -o mail -g mail - doins "${S}/courier/webmaild" - fi - - if use web ; then - insinto /etc/courier/webadmin - insopts -m 400 -o mail -g mail - doins "${FILESDIR}/password.dist" - fi - - # avoid name collisions in /usr/sbin, make webadmin match - cd "${D}/usr/sbin" - for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done - if use web ; then - sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ - -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ - "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \ - || ewarn "failed to fix webadmin" - sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ - -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ - "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \ - || ewarn "failed to fix webadmin" - fi - - # users should be able to send mail. Could be restricted with suictl. - chmod u+s "${D}/usr/bin/sendmail" - - if use mailwrapper ; then - mv "${D}/usr/bin/sendmail" "${D}/usr/bin/sendmail.courier" - mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.courier" - mv "${D}/usr/bin/mailq" "${D}/usr/bin/mailq.courier" - - mv "${D}/usr/share/man/man1/sendmail.1" \ - "${D}/usr/share/man/man1/sendmail-courier.1" - mv "${D}/usr/share/man/man1/mailq.1" \ - "${D}/usr/share/man/man1/mailq-courier.1" - mv "${D}/usr/share/man/man1/rmail.1" \ - "${D}/usr/share/man/man1/rmail-courier.1" - - insopts -m 444 -o mail -g mail - insinto /etc/mail - doins "${FILESDIR}/mailer.conf" - else - dosym /usr/bin/sendmail /usr/sbin/sendmail - fi -} - -src_test() { - addpredict / - echo ">>> Test phase [check]: ${CATEGORY}/${PF}" - if hasq userpriv "${FEATURES}" ; then - if ! emake -j1 check; then - hasq test "${FEATURES}" && die "Make check failed. See above for details." - hasq test "${FEATURES}" || eerror "Make check failed. See above for details." - fi - else - hasq test "${FEATURES}" && eerror "Make check needs FEATURES="userpriv" to work." - fi - SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}" -} - -pkg_postinst() { - use fam && elog "fam daemon is needed for courier-imapd" \ - || ewarn "courier was built without fam support" -} - -pkg_config() { - mailhost="$(hostname)" - export mailhost - - domainname="$(domainname)" - if [ "x$domainname" = "x(none)" ] ; then - domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")" - fi - export domainname - - if [ "${ROOT}" = "/" ] ; then - file="${ROOT}/etc/courier/locals" - if [ ! -f "${file}" ] ; then - echo "localhost" > "${file}"; - echo "${domainname}" >> "${file}"; - fi - file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}" - if [ ! -f "${file}" ] ; then - echo "${domainname}" > "${file}" - /usr/sbin/makeacceptmailfor - fi - - file="${ROOT}/etc/courier/smtpaccess/${domainname}" - if [ ! -f "${file}" ] - then - netstat -nr | grep "^[1-9]" | while read network gateway netmask rest - do - i=1 - net="" - TIFS="${IFS}" - IFS="." - for o in "${netmask}" - do - if [ "${o}" == "255" ] - then - [ "_${net}" == "_" ] || net="${net}." - t="$(echo "${network}" | cut -d " " -f ${i})" - net="${net}${t}" - fi - i="$((${i} + 1))" - done - IFS="${TIFS}" - echo "doing configuration - relay control for the network ${net} !" - echo "${net} allow,RELAYCLIENT" >> ${file} - done - /usr/sbin/makesmtpaccess - fi - fi - - echo "creating cert for esmtpd-ssl:" - /usr/sbin/mkesmtpdcert - echo "creating cert for imapd-ssl:" - /usr/sbin/mkpop3dcert - echo "creating cert for pop3d-ssl:" - /usr/sbin/mkimapdcert -} diff --git a/mail-mta/courier/courier-0.61.1.ebuild b/mail-mta/courier/courier-0.61.1.ebuild deleted file mode 100644 index a689641e59c9..000000000000 --- a/mail-mta/courier/courier-0.61.1.ebuild +++ /dev/null @@ -1,314 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/courier-0.61.1.ebuild,v 1.5 2010/12/05 20:54:48 mattst88 Exp $ - -inherit eutils flag-o-matic - -DESCRIPTION="An MTA designed specifically for maildirs" -SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" -HOMEPAGE="http://www.courier-mta.org/" -S="${WORKDIR}/${P}" - -SLOT="0" -LICENSE="GPL-2" -# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86" -IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper \ - fam web webmail" - -PROVIDE="virtual/mta - virtual/mda - virtual/imapd" - -DEPEND=" - >=net-libs/courier-authlib-0.61.0 - >=dev-libs/openssl-0.9.6 - >=sys-libs/gdbm-1.8.0 - dev-libs/libpcre - app-misc/mime-types - fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 ) - pam? ( virtual/pam ) - mysql? ( virtual/mysql ) - ldap? ( >=net-nds/openldap-1.2.11 ) - postgres? ( dev-db/postgresql-base ) - spell? ( virtual/aspell-dict ) - fam? ( virtual/fam ) - !mailwrapper? ( !virtual/mta ) - !virtual/imapd - !mail-filter/maildrop" - -RDEPEND="${DEPEND} - dev-lang/perl - sys-process/procps" - -PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) - pam? ( net-mail/mailbase ) - crypt? ( >=app-crypt/gnupg-1.0.4 )" - -filter-flags '-fomit-frame-pointer' - -src_unpack() { - use fam || ( - ewarn "File Alteration Monitor (FAM) is disabled" - ewarn "courier-imap will fall back to 60 second polls." - ewarn 'add "fam" to your USE flags to build as usual' - ebeep 4 - epause 4 ) - unpack ${A} - cd "${S}" - use norewrite && epatch "${FILESDIR}/norewrite.patch" - -} - -src_compile() { - local myconf - myconf="`use_with ipv6` \ - `use_with ldap ldapaliasd` `use_enable ldap maildropldap`" - - use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf" - use spell || myconf="${myconf} --without-ispell" - - myconf="${myconf} --enable-mimetypes=/etc/mime.types" - - myconf="${myconf} $(use_with fam)" - - einfo "Configuring courier: $(echo ${myconf} | xargs echo)" - - econf \ - --prefix=/usr \ - --disable-root-check \ - --mandir=/usr/share/man \ - --sysconfdir=/etc/courier \ - --libexecdir=/usr/$(get_libdir)/courier \ - --datadir=/usr/share/courier \ - --sharedstatedir=/var/lib/courier/com \ - --localstatedir=/var/lib/courier \ - --with-piddir=/var/run/courier \ - --with-authdaemonvar=/var/lib/courier/authdaemon \ - --with-mailuser=mail \ - --with-mailgroup=mail \ - --with-paranoid-smtpext \ - --with-db=gdbm \ - --disable-autorenamesent \ - --cache-file="${S}/configuring.cache" \ - --host="${CHOST}" ${myconf} debug=true || die "./configure" - sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile - emake || die "Compile problem" -} - -etc_courier() { - # Import existing /etc/courier/file if it exists. - # Add option only if it was not already set or even commented out - file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`" - [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \ - cp "/etc/courier/${file}" "${D}/etc/courier/${file}" - grep -q "${word}" "${D}/etc/courier/${file}" || \ - echo "${2}" >> "${D}/etc/courier/${file}" -} - -etc_courier_chg() { - file="${1}" ; key="${2}" ; value="${3}" ; section="${4}" - [ -z "${section}" ] && section="${2}" - grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}" - sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file} -} - -src_install() { - local f - diropts -o mail -g mail - keepdir /var/run/courier - keepdir /var/lib/courier/tmp - keepdir /var/lib/courier/msgs - make install DESTDIR="${D}" || die "install" - make install-configure || die "install-configure" - - # Get rid of files we dont want - if ! use webmail ; then - cd "${D}" - cat "${FILESDIR}/webmail_files" | xargs rm -rf - fi - - if ! use web ; then - cd "${D}" - cat "${FILESDIR}/webadmin_files" | xargs rm -rf - fi - - for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do - keepdir "$dir2keep" || die "failed running keepdir: $dir2keep" - done - - newinitd "${FILESDIR}/courier-init-r2" "courier" - use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier" - - cd "${D}/etc/courier" - if use webmail ; then - insinto /etc/courier - newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc - fi - - for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done - if use ldap ; then - [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) - else - rm -f ldapaliasrc - fi - - ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ - > "${D}/etc/courier/sizelimit" - etc_courier maildroprc "" - etc_courier esmtproutes "" - etc_courier backuprelay "" - etc_courier locallowercase "" - etc_courier bofh "opt BOFHBADMIME=accept" - etc_courier bofh "opt BOFHSPFTRUSTME=1" - etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" - etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" - etc_courier bofh "opt BOFHSPFFROM=all" - etc_courier bofh "opt BOFHSPFMAILFROM=all" - etc_courier bofh "#opt BOFHSPFHARDERROR=fail" - etc_courier esmtpd "BOFHBADMIME=accept" - etc_courier esmtpd-ssl "BOFHBADMIME=accept" - etc_courier esmtpd-msa "BOFHBADMIME=accept" - - use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE" - use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256" - - # Fix for a sandbox violation on subsequential merges - # - ticho@gentoo.org, 2005-07-10 - rm "${D}"/usr/sbin/{pop3d,imapd}{,-ssl} - dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d - dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl - dosym /usr/share/courier/imapd /usr/sbin/courier-imapd - dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl - - cd "${S}" - cp imap/README README.imap - use nls && cp unicode/README README.unicode - dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt - dodoc tcpd/README.couriertls - mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${P}/html" - - if use webmail ; then - insinto /usr/$(get_libdir)/courier/courier - insopts -m 755 -o mail -g mail - doins "${S}/courier/webmaild" - fi - - if use web ; then - insinto /etc/courier/webadmin - insopts -m 400 -o mail -g mail - doins "${FILESDIR}/password.dist" - fi - - # avoid name collisions in /usr/sbin, make webadmin match - cd "${D}/usr/sbin" - for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done - if use web ; then - sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ - -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ - "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \ - || ewarn "failed to fix webadmin" - sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ - -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ - "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \ - || ewarn "failed to fix webadmin" - fi - - # users should be able to send mail. Could be restricted with suictl. - chmod u+s "${D}/usr/bin/sendmail" - - if use mailwrapper ; then - mv "${D}/usr/bin/sendmail" "${D}/usr/bin/sendmail.courier" - mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.courier" - mv "${D}/usr/bin/mailq" "${D}/usr/bin/mailq.courier" - - mv "${D}/usr/share/man/man1/sendmail.1" \ - "${D}/usr/share/man/man1/sendmail-courier.1" - mv "${D}/usr/share/man/man1/mailq.1" \ - "${D}/usr/share/man/man1/mailq-courier.1" - mv "${D}/usr/share/man/man1/rmail.1" \ - "${D}/usr/share/man/man1/rmail-courier.1" - - insopts -m 444 -o mail -g mail - insinto /etc/mail - doins "${FILESDIR}/mailer.conf" - else - dosym /usr/bin/sendmail /usr/sbin/sendmail - fi -} - -src_test() { - addpredict / - echo ">>> Test phase [check]: ${CATEGORY}/${PF}" - if hasq userpriv "${FEATURES}" ; then - if ! emake -j1 check; then - hasq test "${FEATURES}" && die "Make check failed. See above for details." - hasq test "${FEATURES}" || eerror "Make check failed. See above for details." - fi - else - hasq test "${FEATURES}" && eerror "Make check needs FEATURES="userpriv" to work." - fi - SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}" -} - -pkg_postinst() { - use fam && elog "fam daemon is needed for courier-imapd" \ - || ewarn "courier was built without fam support" -} - -pkg_config() { - mailhost="$(hostname)" - export mailhost - - domainname="$(domainname)" - if [ "x$domainname" = "x(none)" ] ; then - domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")" - fi - export domainname - - if [ "${ROOT}" = "/" ] ; then - file="${ROOT}/etc/courier/locals" - if [ ! -f "${file}" ] ; then - echo "localhost" > "${file}"; - echo "${domainname}" >> "${file}"; - fi - file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}" - if [ ! -f "${file}" ] ; then - echo "${domainname}" > "${file}" - /usr/sbin/makeacceptmailfor - fi - - file="${ROOT}/etc/courier/smtpaccess/${domainname}" - if [ ! -f "${file}" ] - then - netstat -nr | grep "^[1-9]" | while read network gateway netmask rest - do - i=1 - net="" - TIFS="${IFS}" - IFS="." - for o in "${netmask}" - do - if [ "${o}" == "255" ] - then - [ "_${net}" == "_" ] || net="${net}." - t="$(echo "${network}" | cut -d " " -f ${i})" - net="${net}${t}" - fi - i="$((${i} + 1))" - done - IFS="${TIFS}" - echo "doing configuration - relay control for the network ${net} !" - echo "${net} allow,RELAYCLIENT" >> ${file} - done - /usr/sbin/makesmtpaccess - fi - fi - - echo "creating cert for esmtpd-ssl:" - /usr/sbin/mkesmtpdcert - echo "creating cert for imapd-ssl:" - /usr/sbin/mkpop3dcert - echo "creating cert for pop3d-ssl:" - /usr/sbin/mkimapdcert -} diff --git a/mail-mta/courier/courier-0.61.2.ebuild b/mail-mta/courier/courier-0.61.2.ebuild deleted file mode 100644 index dc97266ad0a6..000000000000 --- a/mail-mta/courier/courier-0.61.2.ebuild +++ /dev/null @@ -1,311 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/courier-0.61.2.ebuild,v 1.6 2010/12/05 20:54:48 mattst88 Exp $ - -inherit eutils flag-o-matic - -DESCRIPTION="An MTA designed specifically for maildirs" -SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" -HOMEPAGE="http://www.courier-mta.org/" -SLOT="0" -LICENSE="GPL-2" -# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86" -IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper \ - fam web webmail" - -PROVIDE="virtual/mta - virtual/mda - virtual/imapd" - -DEPEND=" - >=net-libs/courier-authlib-0.61.0 - >=dev-libs/openssl-0.9.6 - >=sys-libs/gdbm-1.8.0 - dev-libs/libpcre - app-misc/mime-types - fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 ) - pam? ( virtual/pam ) - mysql? ( virtual/mysql ) - ldap? ( >=net-nds/openldap-1.2.11 ) - postgres? ( dev-db/postgresql-base ) - spell? ( virtual/aspell-dict ) - fam? ( virtual/fam ) - !mailwrapper? ( !virtual/mta ) - !virtual/imapd - !mail-filter/maildrop" - -RDEPEND="${DEPEND} - dev-lang/perl - sys-process/procps" - -PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) - pam? ( net-mail/mailbase ) - crypt? ( >=app-crypt/gnupg-1.0.4 )" - -src_unpack() { - use fam || ( - ewarn "File Alteration Monitor (FAM) is disabled" - ewarn "courier-imap will fall back to 60 second polls." - ewarn 'add "fam" to your USE flags to build as usual' - ebeep 4 - epause 4 ) - unpack ${A} - cd "${S}" - use norewrite && epatch "${FILESDIR}/norewrite.patch" -} - -src_compile() { - filter-flags '-fomit-frame-pointer' - - local myconf - myconf="`use_with ipv6` \ - `use_with ldap ldapaliasd` `use_enable ldap maildropldap`" - - use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf" - use spell || myconf="${myconf} --without-ispell" - - myconf="${myconf} --enable-mimetypes=/etc/mime.types" - - myconf="${myconf} $(use_with fam)" - - einfo "Configuring courier: $(echo ${myconf} | xargs echo)" - - econf \ - --prefix=/usr \ - --disable-root-check \ - --mandir=/usr/share/man \ - --sysconfdir=/etc/courier \ - --libexecdir=/usr/$(get_libdir)/courier \ - --datadir=/usr/share/courier \ - --sharedstatedir=/var/lib/courier/com \ - --localstatedir=/var/lib/courier \ - --with-piddir=/var/run/courier \ - --with-authdaemonvar=/var/lib/courier/authdaemon \ - --with-mailuser=mail \ - --with-mailgroup=mail \ - --with-paranoid-smtpext \ - --with-db=gdbm \ - --disable-autorenamesent \ - --cache-file="${S}/configuring.cache" \ - --host="${CHOST}" ${myconf} debug=true || die "./configure" - sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile - emake || die "Compile problem" -} - -etc_courier() { - # Import existing /etc/courier/file if it exists. - # Add option only if it was not already set or even commented out - file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`" - [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \ - cp "/etc/courier/${file}" "${D}/etc/courier/${file}" - grep -q "${word}" "${D}/etc/courier/${file}" || \ - echo "${2}" >> "${D}/etc/courier/${file}" -} - -etc_courier_chg() { - file="${1}" ; key="${2}" ; value="${3}" ; section="${4}" - [ -z "${section}" ] && section="${2}" - grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}" - sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file} -} - -src_install() { - local f - diropts -o mail -g mail - keepdir /var/run/courier - keepdir /var/lib/courier/tmp - keepdir /var/lib/courier/msgs - make install DESTDIR="${D}" || die "install" - make install-configure || die "install-configure" - - # Get rid of files we dont want - if ! use webmail ; then - cd "${D}" - cat "${FILESDIR}/webmail_files" | xargs rm -rf - fi - - if ! use web ; then - cd "${D}" - cat "${FILESDIR}/webadmin_files" | xargs rm -rf - fi - - for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do - keepdir "$dir2keep" || die "failed running keepdir: $dir2keep" - done - - newinitd "${FILESDIR}/courier-init-r2" "courier" - use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier" - - cd "${D}/etc/courier" - if use webmail ; then - insinto /etc/courier - newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc - fi - - for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done - if use ldap ; then - [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) - else - rm -f ldapaliasrc - fi - - ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ - > "${D}/etc/courier/sizelimit" - etc_courier maildroprc "" - etc_courier esmtproutes "" - etc_courier backuprelay "" - etc_courier locallowercase "" - etc_courier bofh "opt BOFHBADMIME=accept" - etc_courier bofh "opt BOFHSPFTRUSTME=1" - etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" - etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" - etc_courier bofh "opt BOFHSPFFROM=all" - etc_courier bofh "opt BOFHSPFMAILFROM=all" - etc_courier bofh "#opt BOFHSPFHARDERROR=fail" - etc_courier esmtpd "BOFHBADMIME=accept" - etc_courier esmtpd-ssl "BOFHBADMIME=accept" - etc_courier esmtpd-msa "BOFHBADMIME=accept" - - use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE" - use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256" - - # Fix for a sandbox violation on subsequential merges - # - ticho@gentoo.org, 2005-07-10 - rm "${D}"/usr/sbin/{pop3d,imapd}{,-ssl} - dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d - dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl - dosym /usr/share/courier/imapd /usr/sbin/courier-imapd - dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl - - cd "${S}" - cp imap/README README.imap - use nls && cp unicode/README README.unicode - dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt - dodoc tcpd/README.couriertls - mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${P}/html" - - if use webmail ; then - insinto /usr/$(get_libdir)/courier/courier - insopts -m 755 -o mail -g mail - doins "${S}/courier/webmaild" - fi - - if use web ; then - insinto /etc/courier/webadmin - insopts -m 400 -o mail -g mail - doins "${FILESDIR}/password.dist" - fi - - # avoid name collisions in /usr/sbin, make webadmin match - cd "${D}/usr/sbin" - for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done - if use web ; then - sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ - -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ - "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \ - || ewarn "failed to fix webadmin" - sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ - -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ - "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \ - || ewarn "failed to fix webadmin" - fi - - # users should be able to send mail. Could be restricted with suictl. - chmod u+s "${D}/usr/bin/sendmail" - - if use mailwrapper ; then - mv "${D}/usr/bin/sendmail" "${D}/usr/bin/sendmail.courier" - mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.courier" - mv "${D}/usr/bin/mailq" "${D}/usr/bin/mailq.courier" - - mv "${D}/usr/share/man/man1/sendmail.1" \ - "${D}/usr/share/man/man1/sendmail-courier.1" - mv "${D}/usr/share/man/man1/mailq.1" \ - "${D}/usr/share/man/man1/mailq-courier.1" - mv "${D}/usr/share/man/man1/rmail.1" \ - "${D}/usr/share/man/man1/rmail-courier.1" - - insopts -m 444 -o mail -g mail - insinto /etc/mail - doins "${FILESDIR}/mailer.conf" - else - dosym /usr/bin/sendmail /usr/sbin/sendmail - fi -} - -src_test() { - addpredict / - echo ">>> Test phase [check]: ${CATEGORY}/${PF}" - if hasq userpriv "${FEATURES}" ; then - if ! emake -j1 check; then - hasq test "${FEATURES}" && die "Make check failed. See above for details." - hasq test "${FEATURES}" || eerror "Make check failed. See above for details." - fi - else - hasq test "${FEATURES}" && eerror "Make check needs FEATURES="userpriv" to work." - fi - SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}" -} - -pkg_postinst() { - use fam && elog "fam daemon is needed for courier-imapd" \ - || ewarn "courier was built without fam support" -} - -pkg_config() { - mailhost="$(hostname)" - export mailhost - - domainname="$(domainname)" - if [ "x$domainname" = "x(none)" ] ; then - domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")" - fi - export domainname - - if [ "${ROOT}" = "/" ] ; then - file="${ROOT}/etc/courier/locals" - if [ ! -f "${file}" ] ; then - echo "localhost" > "${file}"; - echo "${domainname}" >> "${file}"; - fi - file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}" - if [ ! -f "${file}" ] ; then - echo "${domainname}" > "${file}" - /usr/sbin/makeacceptmailfor - fi - - file="${ROOT}/etc/courier/smtpaccess/${domainname}" - if [ ! -f "${file}" ] - then - netstat -nr | grep "^[1-9]" | while read network gateway netmask rest - do - i=1 - net="" - TIFS="${IFS}" - IFS="." - for o in "${netmask}" - do - if [ "${o}" == "255" ] - then - [ "_${net}" == "_" ] || net="${net}." - t="$(echo "${network}" | cut -d " " -f ${i})" - net="${net}${t}" - fi - i="$((${i} + 1))" - done - IFS="${TIFS}" - echo "doing configuration - relay control for the network ${net} !" - echo "${net} allow,RELAYCLIENT" >> ${file} - done - /usr/sbin/makesmtpaccess - fi - fi - - echo "creating cert for esmtpd-ssl:" - /usr/sbin/mkesmtpdcert - echo "creating cert for imapd-ssl:" - /usr/sbin/mkpop3dcert - echo "creating cert for pop3d-ssl:" - /usr/sbin/mkimapdcert -} diff --git a/mail-mta/courier/courier-0.63.0.ebuild b/mail-mta/courier/courier-0.63.0.ebuild deleted file mode 100644 index a379615ef348..000000000000 --- a/mail-mta/courier/courier-0.63.0.ebuild +++ /dev/null @@ -1,298 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/courier-0.63.0.ebuild,v 1.4 2010/12/05 20:54:48 mattst88 Exp $ - -inherit eutils flag-o-matic - -DESCRIPTION="An MTA designed specifically for maildirs" -SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" -HOMEPAGE="http://www.courier-mta.org/" -SLOT="0" -LICENSE="GPL-2" -# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86" -IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper \ - fam web webmail" - -PROVIDE="virtual/mta - virtual/mda - virtual/imapd" - -DEPEND=" - >=net-libs/courier-authlib-0.61.0 - >=dev-libs/openssl-0.9.6 - >=sys-libs/gdbm-1.8.0 - dev-libs/libpcre - app-misc/mime-types - fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 ) - pam? ( virtual/pam ) - mysql? ( virtual/mysql ) - ldap? ( >=net-nds/openldap-1.2.11 ) - postgres? ( dev-db/postgresql-base ) - spell? ( virtual/aspell-dict ) - fam? ( virtual/fam ) - !mailwrapper? ( !virtual/mta ) - !virtual/imapd - !mail-filter/maildrop" - -RDEPEND="${DEPEND} - dev-lang/perl - sys-process/procps" - -PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) - pam? ( net-mail/mailbase ) - crypt? ( >=app-crypt/gnupg-1.0.4 )" - -src_unpack() { - unpack ${A} - cd "${S}" - use norewrite && epatch "${FILESDIR}/norewrite.patch" -} - -src_compile() { - filter-flags '-fomit-frame-pointer' - - local myconf - myconf="" - - use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf" - - econf ${myconf} \ - $(use_with fam) \ - $(use_with ipv6) \ - $(use_with spell ispell) \ - $(use_with ldap ldapaliasd) \ - $(use_enable ldap maildroldap) \ - --enable-mimetypes=/etc/mime.types \ - --prefix=/usr \ - --disable-root-check \ - --mandir=/usr/share/man \ - --sysconfdir=/etc/courier \ - --libexecdir=/usr/$(get_libdir)/courier \ - --datadir=/usr/share/courier \ - --sharedstatedir=/var/lib/courier/com \ - --localstatedir=/var/lib/courier \ - --with-piddir=/var/run/courier \ - --with-authdaemonvar=/var/lib/courier/authdaemon \ - --with-mailuser=mail \ - --with-mailgroup=mail \ - --with-paranoid-smtpext \ - --with-db=gdbm \ - --disable-autorenamesent \ - --cache-file="${S}/configuring.cache" \ - --host="${CHOST}" debug=true || die "./configure" - sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile - emake || die "Compile problem" -} - -etc_courier() { - # Import existing /etc/courier/file if it exists. - # Add option only if it was not already set or even commented out - file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`" - [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \ - cp "/etc/courier/${file}" "${D}/etc/courier/${file}" - grep -q "${word}" "${D}/etc/courier/${file}" || \ - echo "${2}" >> "${D}/etc/courier/${file}" -} - -etc_courier_chg() { - file="${1}" ; key="${2}" ; value="${3}" ; section="${4}" - [ -z "${section}" ] && section="${2}" - grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}" - sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file} -} - -src_install() { - local f - diropts -o mail -g mail - keepdir /var/run/courier - keepdir /var/lib/courier/tmp - keepdir /var/lib/courier/msgs - make install DESTDIR="${D}" || die "install" - make install-configure || die "install-configure" - - # Get rid of files we dont want - if ! use webmail ; then - cd "${D}" - cat "${FILESDIR}/webmail_files" | xargs rm -rf - fi - - if ! use web ; then - cd "${D}" - cat "${FILESDIR}/webadmin_files" | xargs rm -rf - fi - - for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do - keepdir "$dir2keep" || die "failed running keepdir: $dir2keep" - done - - newinitd "${FILESDIR}/courier-init-r2" "courier" - use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier" - - cd "${D}/etc/courier" - if use webmail ; then - insinto /etc/courier - newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc - fi - - for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done - if use ldap ; then - [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) - else - rm -f ldapaliasrc - fi - - ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ - > "${D}/etc/courier/sizelimit" - etc_courier maildroprc "" - etc_courier esmtproutes "" - etc_courier backuprelay "" - etc_courier locallowercase "" - etc_courier bofh "opt BOFHBADMIME=accept" - etc_courier bofh "opt BOFHSPFTRUSTME=1" - etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" - etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" - etc_courier bofh "opt BOFHSPFFROM=all" - etc_courier bofh "opt BOFHSPFMAILFROM=all" - etc_courier bofh "#opt BOFHSPFHARDERROR=fail" - etc_courier esmtpd "BOFHBADMIME=accept" - etc_courier esmtpd-ssl "BOFHBADMIME=accept" - etc_courier esmtpd-msa "BOFHBADMIME=accept" - - use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE" - use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256" - - # Fix for a sandbox violation on subsequential merges - # - ticho@gentoo.org, 2005-07-10 - rm "${D}"/usr/sbin/{pop3d,imapd}{,-ssl} - dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d - dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl - dosym /usr/share/courier/imapd /usr/sbin/courier-imapd - dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl - - cd "${S}" - cp imap/README README.imap - use nls && cp unicode/README README.unicode - dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt - dodoc tcpd/README.couriertls - mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${P}/html" - - if use webmail ; then - insinto /usr/$(get_libdir)/courier/courier - insopts -m 755 -o mail -g mail - doins "${S}/courier/webmaild" - fi - - if use web ; then - insinto /etc/courier/webadmin - insopts -m 400 -o mail -g mail - doins "${FILESDIR}/password.dist" - fi - - # avoid name collisions in /usr/sbin, make webadmin match - cd "${D}/usr/sbin" - for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done - if use web ; then - sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ - -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ - "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \ - || ewarn "failed to fix webadmin" - sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ - -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ - "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \ - || ewarn "failed to fix webadmin" - fi - - # users should be able to send mail. Could be restricted with suictl. - chmod u+s "${D}/usr/bin/sendmail" - - if use mailwrapper ; then - mv "${D}/usr/bin/sendmail" "${D}/usr/bin/sendmail.courier" - mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.courier" - mv "${D}/usr/bin/mailq" "${D}/usr/bin/mailq.courier" - - mv "${D}/usr/share/man/man1/sendmail.1" \ - "${D}/usr/share/man/man1/sendmail-courier.1" - mv "${D}/usr/share/man/man1/mailq.1" \ - "${D}/usr/share/man/man1/mailq-courier.1" - mv "${D}/usr/share/man/man1/rmail.1" \ - "${D}/usr/share/man/man1/rmail-courier.1" - - insopts -m 444 -o mail -g mail - insinto /etc/mail - doins "${FILESDIR}/mailer.conf" - else - dosym /usr/bin/sendmail /usr/sbin/sendmail - fi -} - -src_test() { - if [ `whoami` != 'root' ]; then - emake -j1 check || die "Make check failed." - else - einfo "make check skipped, can't run as root." - einfo "You can enable it with FEATURES=\"userpriv\"" - fi -} - -pkg_postinst() { - use fam && elog "fam daemon is needed for courier-imapd" \ - || ewarn "courier was built without fam support" -} - -pkg_config() { - mailhost="$(hostname)" - export mailhost - - domainname="$(domainname)" - if [ "x$domainname" = "x(none)" ] ; then - domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")" - fi - export domainname - - if [ "${ROOT}" = "/" ] ; then - file="${ROOT}/etc/courier/locals" - if [ ! -f "${file}" ] ; then - echo "localhost" > "${file}"; - echo "${domainname}" >> "${file}"; - fi - file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}" - if [ ! -f "${file}" ] ; then - echo "${domainname}" > "${file}" - /usr/sbin/makeacceptmailfor - fi - - file="${ROOT}/etc/courier/smtpaccess/${domainname}" - if [ ! -f "${file}" ] - then - netstat -nr | grep "^[1-9]" | while read network gateway netmask rest - do - i=1 - net="" - TIFS="${IFS}" - IFS="." - for o in "${netmask}" - do - if [ "${o}" == "255" ] - then - [ "_${net}" == "_" ] || net="${net}." - t="$(echo "${network}" | cut -d " " -f ${i})" - net="${net}${t}" - fi - i="$((${i} + 1))" - done - IFS="${TIFS}" - echo "doing configuration - relay control for the network ${net} !" - echo "${net} allow,RELAYCLIENT" >> ${file} - done - /usr/sbin/makesmtpaccess - fi - fi - - echo "creating cert for esmtpd-ssl:" - /usr/sbin/mkesmtpdcert - echo "creating cert for imapd-ssl:" - /usr/sbin/mkpop3dcert - echo "creating cert for pop3d-ssl:" - /usr/sbin/mkimapdcert -} diff --git a/mail-mta/courier/courier-0.64.0.ebuild b/mail-mta/courier/courier-0.64.0.ebuild deleted file mode 100644 index c8d6457af1ca..000000000000 --- a/mail-mta/courier/courier-0.64.0.ebuild +++ /dev/null @@ -1,298 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/courier-0.64.0.ebuild,v 1.3 2010/12/05 20:54:48 mattst88 Exp $ - -inherit eutils flag-o-matic - -DESCRIPTION="An MTA designed specifically for maildirs" -SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" -HOMEPAGE="http://www.courier-mta.org/" -SLOT="0" -LICENSE="GPL-2" -# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86" -IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper \ - fam web webmail" - -PROVIDE="virtual/mta - virtual/mda - virtual/imapd" - -DEPEND=" - >=net-libs/courier-authlib-0.61.0 - >=dev-libs/openssl-0.9.6 - >=sys-libs/gdbm-1.8.0 - dev-libs/libpcre - app-misc/mime-types - fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 ) - pam? ( virtual/pam ) - mysql? ( virtual/mysql ) - ldap? ( >=net-nds/openldap-1.2.11 ) - postgres? ( dev-db/postgresql-base ) - spell? ( virtual/aspell-dict ) - fam? ( virtual/fam ) - !mailwrapper? ( !virtual/mta ) - !virtual/imapd - !mail-filter/maildrop" - -RDEPEND="${DEPEND} - dev-lang/perl - sys-process/procps" - -PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) - pam? ( net-mail/mailbase ) - crypt? ( >=app-crypt/gnupg-1.0.4 )" - -src_unpack() { - unpack ${A} - cd "${S}" - use norewrite && epatch "${FILESDIR}/norewrite.patch" -} - -src_compile() { - filter-flags '-fomit-frame-pointer' - - local myconf - myconf="" - - use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf" - - econf ${myconf} \ - $(use_with fam) \ - $(use_with ipv6) \ - $(use_with spell ispell) \ - $(use_with ldap ldapaliasd) \ - $(use_enable ldap maildroldap) \ - --enable-mimetypes=/etc/mime.types \ - --prefix=/usr \ - --disable-root-check \ - --mandir=/usr/share/man \ - --sysconfdir=/etc/courier \ - --libexecdir=/usr/$(get_libdir)/courier \ - --datadir=/usr/share/courier \ - --sharedstatedir=/var/lib/courier/com \ - --localstatedir=/var/lib/courier \ - --with-piddir=/var/run/courier \ - --with-authdaemonvar=/var/lib/courier/authdaemon \ - --with-mailuser=mail \ - --with-mailgroup=mail \ - --with-paranoid-smtpext \ - --with-db=gdbm \ - --disable-autorenamesent \ - --cache-file="${S}/configuring.cache" \ - --host="${CHOST}" debug=true || die "./configure" - sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile - emake || die "Compile problem" -} - -etc_courier() { - # Import existing /etc/courier/file if it exists. - # Add option only if it was not already set or even commented out - file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`" - [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \ - cp "/etc/courier/${file}" "${D}/etc/courier/${file}" - grep -q "${word}" "${D}/etc/courier/${file}" || \ - echo "${2}" >> "${D}/etc/courier/${file}" -} - -etc_courier_chg() { - file="${1}" ; key="${2}" ; value="${3}" ; section="${4}" - [ -z "${section}" ] && section="${2}" - grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}" - sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file} -} - -src_install() { - local f - diropts -o mail -g mail - keepdir /var/run/courier - keepdir /var/lib/courier/tmp - keepdir /var/lib/courier/msgs - make install DESTDIR="${D}" || die "install" - make install-configure || die "install-configure" - - # Get rid of files we dont want - if ! use webmail ; then - cd "${D}" - cat "${FILESDIR}/webmail_files" | xargs rm -rf - fi - - if ! use web ; then - cd "${D}" - cat "${FILESDIR}/webadmin_files" | xargs rm -rf - fi - - for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do - keepdir "$dir2keep" || die "failed running keepdir: $dir2keep" - done - - newinitd "${FILESDIR}/courier-init-r2" "courier" - use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier" - - cd "${D}/etc/courier" - if use webmail ; then - insinto /etc/courier - newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc - fi - - for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done - if use ldap ; then - [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) - else - rm -f ldapaliasrc - fi - - ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ - > "${D}/etc/courier/sizelimit" - etc_courier maildroprc "" - etc_courier esmtproutes "" - etc_courier backuprelay "" - etc_courier locallowercase "" - etc_courier bofh "opt BOFHBADMIME=accept" - etc_courier bofh "opt BOFHSPFTRUSTME=1" - etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" - etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" - etc_courier bofh "opt BOFHSPFFROM=all" - etc_courier bofh "opt BOFHSPFMAILFROM=all" - etc_courier bofh "#opt BOFHSPFHARDERROR=fail" - etc_courier esmtpd "BOFHBADMIME=accept" - etc_courier esmtpd-ssl "BOFHBADMIME=accept" - etc_courier esmtpd-msa "BOFHBADMIME=accept" - - use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE" - use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256" - - # Fix for a sandbox violation on subsequential merges - # - ticho@gentoo.org, 2005-07-10 - rm "${D}"/usr/sbin/{pop3d,imapd}{,-ssl} - dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d - dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl - dosym /usr/share/courier/imapd /usr/sbin/courier-imapd - dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl - - cd "${S}" - cp imap/README README.imap - use nls && cp unicode/README README.unicode - dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt - dodoc tcpd/README.couriertls - mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${P}/html" - - if use webmail ; then - insinto /usr/$(get_libdir)/courier/courier - insopts -m 755 -o mail -g mail - doins "${S}/courier/webmaild" - fi - - if use web ; then - insinto /etc/courier/webadmin - insopts -m 400 -o mail -g mail - doins "${FILESDIR}/password.dist" - fi - - # avoid name collisions in /usr/sbin, make webadmin match - cd "${D}/usr/sbin" - for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done - if use web ; then - sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ - -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ - "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \ - || ewarn "failed to fix webadmin" - sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ - -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ - "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \ - || ewarn "failed to fix webadmin" - fi - - # users should be able to send mail. Could be restricted with suictl. - chmod u+s "${D}/usr/bin/sendmail" - - if use mailwrapper ; then - mv "${D}/usr/bin/sendmail" "${D}/usr/bin/sendmail.courier" - mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.courier" - mv "${D}/usr/bin/mailq" "${D}/usr/bin/mailq.courier" - - mv "${D}/usr/share/man/man1/sendmail.1" \ - "${D}/usr/share/man/man1/sendmail-courier.1" - mv "${D}/usr/share/man/man1/mailq.1" \ - "${D}/usr/share/man/man1/mailq-courier.1" - mv "${D}/usr/share/man/man1/rmail.1" \ - "${D}/usr/share/man/man1/rmail-courier.1" - - insopts -m 444 -o mail -g mail - insinto /etc/mail - doins "${FILESDIR}/mailer.conf" - else - dosym /usr/bin/sendmail /usr/sbin/sendmail - fi -} - -src_test() { - if [ `whoami` != 'root' ]; then - emake -j1 check || die "Make check failed." - else - einfo "make check skipped, can't run as root." - einfo "You can enable it with FEATURES=\"userpriv\"" - fi -} - -pkg_postinst() { - use fam && elog "fam daemon is needed for courier-imapd" \ - || ewarn "courier was built without fam support" -} - -pkg_config() { - mailhost="$(hostname)" - export mailhost - - domainname="$(domainname)" - if [ "x$domainname" = "x(none)" ] ; then - domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")" - fi - export domainname - - if [ "${ROOT}" = "/" ] ; then - file="${ROOT}/etc/courier/locals" - if [ ! -f "${file}" ] ; then - echo "localhost" > "${file}"; - echo "${domainname}" >> "${file}"; - fi - file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}" - if [ ! -f "${file}" ] ; then - echo "${domainname}" > "${file}" - /usr/sbin/makeacceptmailfor - fi - - file="${ROOT}/etc/courier/smtpaccess/${domainname}" - if [ ! -f "${file}" ] - then - netstat -nr | grep "^[1-9]" | while read network gateway netmask rest - do - i=1 - net="" - TIFS="${IFS}" - IFS="." - for o in "${netmask}" - do - if [ "${o}" == "255" ] - then - [ "_${net}" == "_" ] || net="${net}." - t="$(echo "${network}" | cut -d " " -f ${i})" - net="${net}${t}" - fi - i="$((${i} + 1))" - done - IFS="${TIFS}" - echo "doing configuration - relay control for the network ${net} !" - echo "${net} allow,RELAYCLIENT" >> ${file} - done - /usr/sbin/makesmtpaccess - fi - fi - - echo "creating cert for esmtpd-ssl:" - /usr/sbin/mkesmtpdcert - echo "creating cert for imapd-ssl:" - /usr/sbin/mkpop3dcert - echo "creating cert for pop3d-ssl:" - /usr/sbin/mkimapdcert -} diff --git a/mail-mta/courier/courier-0.65.0.ebuild b/mail-mta/courier/courier-0.65.0.ebuild deleted file mode 100644 index 9fb46d41b89f..000000000000 --- a/mail-mta/courier/courier-0.65.0.ebuild +++ /dev/null @@ -1,298 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/courier-0.65.0.ebuild,v 1.2 2010/12/05 20:54:48 mattst88 Exp $ - -inherit eutils flag-o-matic - -DESCRIPTION="An MTA designed specifically for maildirs" -SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" -HOMEPAGE="http://www.courier-mta.org/" -SLOT="0" -LICENSE="GPL-2" -# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86" -IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper \ - fam web webmail" - -PROVIDE="virtual/mta - virtual/mda - virtual/imapd" - -DEPEND=" - >=net-libs/courier-authlib-0.61.0 - >=dev-libs/openssl-0.9.6 - >=sys-libs/gdbm-1.8.0 - dev-libs/libpcre - app-misc/mime-types - fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 ) - pam? ( virtual/pam ) - mysql? ( virtual/mysql ) - ldap? ( >=net-nds/openldap-1.2.11 ) - postgres? ( dev-db/postgresql-base ) - spell? ( virtual/aspell-dict ) - fam? ( virtual/fam ) - !mailwrapper? ( !virtual/mta ) - !virtual/imapd - !mail-filter/maildrop" - -RDEPEND="${DEPEND} - dev-lang/perl - sys-process/procps" - -PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) - pam? ( net-mail/mailbase ) - crypt? ( >=app-crypt/gnupg-1.0.4 )" - -src_unpack() { - unpack ${A} - cd "${S}" - use norewrite && epatch "${FILESDIR}/norewrite.patch" -} - -src_compile() { - filter-flags '-fomit-frame-pointer' - - local myconf - myconf="" - - use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf" - - econf ${myconf} \ - $(use_with fam) \ - $(use_with ipv6) \ - $(use_with spell ispell) \ - $(use_with ldap ldapaliasd) \ - $(use_enable ldap maildroldap) \ - --enable-mimetypes=/etc/mime.types \ - --prefix=/usr \ - --disable-root-check \ - --mandir=/usr/share/man \ - --sysconfdir=/etc/courier \ - --libexecdir=/usr/$(get_libdir)/courier \ - --datadir=/usr/share/courier \ - --sharedstatedir=/var/lib/courier/com \ - --localstatedir=/var/lib/courier \ - --with-piddir=/var/run/courier \ - --with-authdaemonvar=/var/lib/courier/authdaemon \ - --with-mailuser=mail \ - --with-mailgroup=mail \ - --with-paranoid-smtpext \ - --with-db=gdbm \ - --disable-autorenamesent \ - --cache-file="${S}/configuring.cache" \ - --host="${CHOST}" debug=true || die "./configure" - sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile - emake || die "Compile problem" -} - -etc_courier() { - # Import existing /etc/courier/file if it exists. - # Add option only if it was not already set or even commented out - file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`" - [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \ - cp "/etc/courier/${file}" "${D}/etc/courier/${file}" - grep -q "${word}" "${D}/etc/courier/${file}" || \ - echo "${2}" >> "${D}/etc/courier/${file}" -} - -etc_courier_chg() { - file="${1}" ; key="${2}" ; value="${3}" ; section="${4}" - [ -z "${section}" ] && section="${2}" - grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}" - sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file} -} - -src_install() { - local f - diropts -o mail -g mail - keepdir /var/run/courier - keepdir /var/lib/courier/tmp - keepdir /var/lib/courier/msgs - make install DESTDIR="${D}" || die "install" - make install-configure || die "install-configure" - - # Get rid of files we dont want - if ! use webmail ; then - cd "${D}" - cat "${FILESDIR}/webmail_files" | xargs rm -rf - fi - - if ! use web ; then - cd "${D}" - cat "${FILESDIR}/webadmin_files" | xargs rm -rf - fi - - for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do - keepdir "$dir2keep" || die "failed running keepdir: $dir2keep" - done - - newinitd "${FILESDIR}/courier-init-r2" "courier" - use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier" - - cd "${D}/etc/courier" - if use webmail ; then - insinto /etc/courier - newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc - fi - - for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done - if use ldap ; then - [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) - else - rm -f ldapaliasrc - fi - - ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ - > "${D}/etc/courier/sizelimit" - etc_courier maildroprc "" - etc_courier esmtproutes "" - etc_courier backuprelay "" - etc_courier locallowercase "" - etc_courier bofh "opt BOFHBADMIME=accept" - etc_courier bofh "opt BOFHSPFTRUSTME=1" - etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" - etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" - etc_courier bofh "opt BOFHSPFFROM=all" - etc_courier bofh "opt BOFHSPFMAILFROM=all" - etc_courier bofh "#opt BOFHSPFHARDERROR=fail" - etc_courier esmtpd "BOFHBADMIME=accept" - etc_courier esmtpd-ssl "BOFHBADMIME=accept" - etc_courier esmtpd-msa "BOFHBADMIME=accept" - - use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE" - use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256" - - # Fix for a sandbox violation on subsequential merges - # - ticho@gentoo.org, 2005-07-10 - rm "${D}"/usr/sbin/{pop3d,imapd}{,-ssl} - dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d - dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl - dosym /usr/share/courier/imapd /usr/sbin/courier-imapd - dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl - - cd "${S}" - cp imap/README README.imap - use nls && cp unicode/README README.unicode - dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt - dodoc tcpd/README.couriertls - mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${P}/html" - - if use webmail ; then - insinto /usr/$(get_libdir)/courier/courier - insopts -m 755 -o mail -g mail - doins "${S}/courier/webmaild" - fi - - if use web ; then - insinto /etc/courier/webadmin - insopts -m 400 -o mail -g mail - doins "${FILESDIR}/password.dist" - fi - - # avoid name collisions in /usr/sbin, make webadmin match - cd "${D}/usr/sbin" - for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done - if use web ; then - sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ - -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ - "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \ - || ewarn "failed to fix webadmin" - sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ - -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ - "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \ - || ewarn "failed to fix webadmin" - fi - - # users should be able to send mail. Could be restricted with suictl. - chmod u+s "${D}/usr/bin/sendmail" - - if use mailwrapper ; then - mv "${D}/usr/bin/sendmail" "${D}/usr/bin/sendmail.courier" - mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.courier" - mv "${D}/usr/bin/mailq" "${D}/usr/bin/mailq.courier" - - mv "${D}/usr/share/man/man1/sendmail.1" \ - "${D}/usr/share/man/man1/sendmail-courier.1" - mv "${D}/usr/share/man/man1/mailq.1" \ - "${D}/usr/share/man/man1/mailq-courier.1" - mv "${D}/usr/share/man/man1/rmail.1" \ - "${D}/usr/share/man/man1/rmail-courier.1" - - insopts -m 444 -o mail -g mail - insinto /etc/mail - doins "${FILESDIR}/mailer.conf" - else - dosym /usr/bin/sendmail /usr/sbin/sendmail - fi -} - -src_test() { - if [ `whoami` != 'root' ]; then - emake -j1 check || die "Make check failed." - else - einfo "make check skipped, can't run as root." - einfo "You can enable it with FEATURES=\"userpriv\"" - fi -} - -pkg_postinst() { - use fam && elog "fam daemon is needed for courier-imapd" \ - || ewarn "courier was built without fam support" -} - -pkg_config() { - mailhost="$(hostname)" - export mailhost - - domainname="$(domainname)" - if [ "x$domainname" = "x(none)" ] ; then - domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")" - fi - export domainname - - if [ "${ROOT}" = "/" ] ; then - file="${ROOT}/etc/courier/locals" - if [ ! -f "${file}" ] ; then - echo "localhost" > "${file}"; - echo "${domainname}" >> "${file}"; - fi - file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}" - if [ ! -f "${file}" ] ; then - echo "${domainname}" > "${file}" - /usr/sbin/makeacceptmailfor - fi - - file="${ROOT}/etc/courier/smtpaccess/${domainname}" - if [ ! -f "${file}" ] - then - netstat -nr | grep "^[1-9]" | while read network gateway netmask rest - do - i=1 - net="" - TIFS="${IFS}" - IFS="." - for o in "${netmask}" - do - if [ "${o}" == "255" ] - then - [ "_${net}" == "_" ] || net="${net}." - t="$(echo "${network}" | cut -d " " -f ${i})" - net="${net}${t}" - fi - i="$((${i} + 1))" - done - IFS="${TIFS}" - echo "doing configuration - relay control for the network ${net} !" - echo "${net} allow,RELAYCLIENT" >> ${file} - done - /usr/sbin/makesmtpaccess - fi - fi - - echo "creating cert for esmtpd-ssl:" - /usr/sbin/mkesmtpdcert - echo "creating cert for imapd-ssl:" - /usr/sbin/mkpop3dcert - echo "creating cert for pop3d-ssl:" - /usr/sbin/mkimapdcert -} diff --git a/mail-mta/courier/files/courier-init b/mail-mta/courier/files/courier-init deleted file mode 100644 index a95aea88ee86..000000000000 --- a/mail-mta/courier/files/courier-init +++ /dev/null @@ -1,184 +0,0 @@ -#!/sbin/runscript -# Portions Copyright 2003 Gentoo Linux -# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/files/courier-init,v 1.6 2005/05/10 10:54:03 swegener Exp $ -# -# script originally from Courier distfile original name = courier.sysvinit -# adapted for Gentoo by Brian Jackson -# -# TODO -# should we update all the .dat/.pem files when the source/config files are -# newer than the .dat/.pem files? - -prefix="/usr" -exec_prefix="/usr/bin" -sysconfdir="/etc/courier" -sbindir="/usr/sbin" -libexecdir="/usr/lib/courier" -datadir="/usr/share/courier" - -depend() { - need net - [ -d /etc/courier/authlib ] && need courier-authlib - grep -q "^IMAPDSTART=.*[Yy].*" /etc/courier/imapd && need famd -} - -checkconfig() { - - [ -f ${sysconfdir}/pop3d-ssl ] && . ${sysconfdir}/pop3d-ssl - - # If we do not have a certificate, make one up. - [ ! -f "${datadir}/pop3d.pem" ] && \ - ebegin " generating-POP3-SSL-certificate..." && "${sbindir}/mkpop3dcert" - - [ -f ${sysconfdir}/imapd-ssl ] && . ${sysconfdir}/imapd-ssl - - # If we do not have a certificate, make one up. - [ ! -f ${datadir}/imapd.pem ] && \ - ebegin " generating-IMAP-SSL-certificate..." && "${sbindir}/mkimapdcert" - - [ -f ${sysconfdir}/esmtpd-ssl ] && . ${sysconfdir}/esmtpd-ssl - - # If we do not have a certificate, make one up. - [ ! -f ${datadir}/esmtpd.pem ] && \ - ebegin " generating-ESMTP-SSL-certificate..." && "${sbindir}/mkesmtpdcert" - - # First time after install create aliases.dat and smtpaccess.dat - - [ -f ${sysconfdir}/aliases.dat ] || ${sbindir}/makealiases - - [ -f ${sysconfdir}/${ACCESSFILE}.dat ] || ${sbindir}/makesmtpaccess - - [ -f ${sysconfdir}/${ACCESSFILE}.dat ] || ${sbindir}/makesmtpaccess-msa -} - -start() { - # Start daemons. - ebegin "Starting Courier mail server:" - - checkconfig || return 1 - - ebegin " Starting courierfilterd" - ${sbindir}/courierfilter start - - [ ! -d /etc/courier/authlib ] && [ -x ${libexecdir}/authlib/authdaemond ] && \ - ${libexecdir}/authlib/authdaemond start && ebegin " Starting authdaemond" - - [ -x ${libexecdir}/courier/webmaild ] && \ - ${libexecdir}/courier/webmaild start && ebegin " Starting webmaild" - [ ! -x ${libexecdir}/courier/webmaild ] && [ -x ${libexecdir}/courier/sqwebmaild ] && \ - ${libexecdir}/courier/sqwebmaild start && ebegin " Starting sqwebmaild" - - [ -x ${sbindir}/courierldapaliasd ] && \ - ${sbindir}/courierldapaliasd start && ebegin " Starting courierldapaliasd" - - ebegin " Starting courierd" - ${sbindir}/courier start - - # start esmtpd if so written - [ -f ${sysconfdir}/esmtpd ] && source ${sysconfdir}/esmtpd - case x$ESMTPDSTART in - x[yY]*) - ebegin " Starting esmtpd" - ${sbindir}/esmtpd start - ;; - esac - - # start esmtpd-msa if so written - [ -f ${sysconfdir}/esmtpd-msa ] && source ${sysconfdir}/esmtpd-msa - case x$ESMTPDSTART in - x[yY]*) - ebegin " Starting esmtpd-msa" - ${sbindir}/esmtpd-msa start - ;; - esac - - # start esmtpd-ssl if so written - [ -f ${sysconfdir}/esmtpd-ssl ] && source ${sysconfdir}/esmtpd-ssl - case x$ESMTPDSSLSTART in - x[yY]*) - ebegin " Starting esmtpd-ssl" - ${sbindir}/esmtpd-ssl start - ;; - esac - - # start pop3d if so written - [ -f ${sysconfdir}/pop3d ] && source ${sysconfdir}/pop3d - case x$POP3DSTART in - x[yY]*) - ebegin " courier-pop3d" - ${sbindir}/courier-pop3d start - ;; - esac - - # start pop3d-ssl if so written - [ -f ${sysconfdir}/pop3d-ssl ] && source ${sysconfdir}/pop3d-ssl - case x$POP3DSSLSTART in - x[yY]*) - ebegin " courier-pop3d-ssl" - ${sbindir}/courier-pop3d-ssl start - ;; - esac - - [ -f ${sysconfdir}/imapd ] && source ${sysconfdir}/imapd - case x$IMAPDSTART in - x[yY]*) - ebegin " courier-imapd" - ${sbindir}/courier-imapd start - ;; - esac - - [ -f ${sysconfdir}/imapd-ssl ] && source ${sysconfdir}/imapd-ssl - case x$IMAPDSSLSTART in - x[yY]*) - ebegin " courier-imapd-ssl" - ${sbindir}/courier-imapd-ssl start - ;; - esac - - eend $? -} - -stop() { - ebegin "Stopping Courier mail server:" - - ebegin " Stopping courier-esmtpd" - ${sbindir}/esmtpd stop - - ebegin " Stopping courier-esmtpd-msa" - ${sbindir}/esmtpd-msa stop - - ebegin " Stopping courier-esmtpd-ssl" - ${sbindir}/esmtpd-ssl stop - - [ -x ${sbindir}/courier-pop3d ] && \ - ebegin " Stopping courier-pop3d" && ${sbindir}/courier-pop3d stop - - [ -x ${sbindir}/courier-pop3d-ssl ] && \ - ebegin " Stopping courier-pop3d-ssl" && ${sbindir}/courier-pop3d-ssl stop - - [ -x ${sbindir}/courier-imapd ] && \ - ebegin " Stopping courier-imapd" && ${sbindir}/courier-imapd stop - - - [ -x ${sbindir}/courier-imapd-ssl ] && \ - ebegin " Stopping courier-imapd-ssl" && ${sbindir}/courier-imapd-ssl stop - - ebegin " Stopping courierd" - ${sbindir}/courier stop - - [ -x ${sbindir}/courierldapaliasd ] && \ - ( ${sbindir}/courierldapaliasd stop ; ebegin " Stopping courierldapaliasd" ) - - [ -x ${libexecdir}/courier/webmaild ] && \ - ( ${libexecdir}/courier/webmaild stop ; ebegin " Stopping webmaild" ) - [ ! -x ${libexecdir}/courier/webmaild ] && [ -x ${libexecdir}/courier/sqwebmaild ] && \ - ( ${libexecdir}/courier/sqwebmaild stop ; ebegin " Stopping sqwebmaild" ) - - [ ! -d /etc/courier/authlib ] && [ -x ${libexecdir}/authlib/authdaemond ] && \ - ( ${libexecdir}/authlib/authdaemond stop ; ebegin " Stopping authdaemond" ) - - ${sbindir}/courierfilter stop - ebegin " Stopping courierfilterd" - - eend $? -} |