Portage is a package management system used by Gentoo Linux
# ChangeLog for mail-mta/courier
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/ChangeLog,v 1.113 2008/08/23 01:50:34 cardoe Exp $
23 Aug 2008; Doug Goldstein
add GLEP 56 USE flag desc from use.local.desc
*courier-0.60.0 (21 Jul 2008)
21 Jul 2008; Hanno Boeck
Version bump, as-needed-Patch removed, has been applied upstream.
16 Jul 2008; Luca Longinotti
courier-0.55.1-r1.ebuild, courier-0.59.0.ebuild:
Dep on PostgreSQL libs only.
14 Jun 2008; nixnut
Stable on ppc wrt bug 223767
07 Jun 2008; Raúl Porcel
alpha/ia64 stable wrt #223767
07 Jun 2008; Friedrich Oslage
stable on sparc, bug #223767
04 Jun 2008; Dawid Węgliński
Stable on x86/amd64 (bug #223767)
02 Jun 2008; Jeroen Roovers
Stable for HPPA (bug #223767).
21 May 2008; Tiziano Müller
courier-0.53.2-r1.ebuild, courier-0.55.1-r1.ebuild, courier-0.59.0.ebuild:
Changed dependency for postgresql from dev-db/postgresql to
virtual/postgresql-server
21 May 2008; Tiziano Müller
courier-0.53.2-r1.ebuild, courier-0.55.1-r1.ebuild, courier-0.59.0.ebuild:
Changed dependency for postgresql from dev-db/postgresql to
virtual/postgresql-server
14 May 2008; Hanno Boeck
Remove uclibc-sed (this is already in upstream). remove global eautoreconf
call (we don't need it and it causes trouble).
05 May 2008; Hanno Boeck
+files/courier-0.59.0-asneeded.patch, metadata.xml, courier-0.59.0.ebuild:
Fix for --as-needed, thanks to flameeyes.
22 Apr 2008; Diego Pettenò
Don't call _elibtoolize manually! Use eautoreconf instead.
21 Apr 2008; Christian Heim
Fixing up the metadata.xml. If there's no maintainer and no herd, also add
the maintainer-needed assignee.
*courier-0.59.0 (21 Apr 2008)
21 Apr 2008; Hanno Boeck
+files/remove-sysconftool.patch, +courier-0.59.0.ebuild:
Version bump, proxy-maintained user ebuild by Bernd Wurst.
20 Apr 2008; Hanno Boeck
Fix quoting.
03 Feb 2008; Benedikt Böhm
courier-0.53.2-r1.ebuild, courier-0.55.1.ebuild, courier-0.55.1-r1.ebuild:
get rid of completely broken mime type handling wrt #208033
15 Aug 2007; Tobias Scherbaum
courier-0.53.2-r1.ebuild:
ppc stable, bug #184221
11 Aug 2007; Steve Dibb
amd64 stable, bug 184221
29 Jul 2007; Christian Heim
courier-0.53.2-r1.ebuild, courier-0.55.1.ebuild, courier-0.55.1-r1.ebuild:
Fixing the DEPEND/RDEPEND for the move of net-www/apache to
www-servers/apache (#78622).
10 Jul 2007; Jeroen Roovers
Stable for HPPA (bug #184221).
05 Jul 2007; Gustavo Zacarias
courier-0.53.2-r1.ebuild:
Stable on sparc wrt #184221
05 Jul 2007; Raúl Porcel
alpha/ia64/x86 stable wrt #184221
*courier-0.55.1-r1 (04 Jul 2007)
*courier-0.53.2-r1 (04 Jul 2007)
04 Jul 2007; Diego Pettenò
+files/pam-include.patch, +courier-0.53.2-r1.ebuild,
+courier-0.55.1-r1.ebuild:
Add patch from Ed Catmur to work with PAM 0.99 (and in general without
pam_stack). Thanks Ed. See bug #177748.
*courier-0.55.1 (30 May 2007)
30 May 2007; Caleb Tennis
Version bump. It emerges, but I'm still testing everything out
28 Apr 2007; Sven Wegener
Fix *initd, *confd and *envd calls (#17388, #174266)
02 Apr 2007; Petteri Räty
-courier-0.48.1-r1.ebuild, -courier-0.48.2.20050224.ebuild,
-courier-0.49.0.ebuild, -courier-0.49.0.20050405.ebuild,
-courier-0.50.0.ebuild, -courier-0.50.1.ebuild, -courier-0.50.1-r1.ebuild,
-courier-0.52.2.ebuild, courier-0.53.2.ebuild:
Remove old versions. Most of these are vulnerable to security issues.
18 Mar 2007; Marius Mauch
courier-0.48.1-r1.ebuild, courier-0.48.2.20050224.ebuild,
courier-0.49.0.ebuild, courier-0.49.0.20050405.ebuild,
courier-0.50.0.ebuild, courier-0.50.1.ebuild, courier-0.50.1-r1.ebuild,
courier-0.52.2.ebuild, courier-0.53.2.ebuild:
Replacing einfo with elog
05 Jan 2007; Diego Pettenò
courier-0.48.2.20050224.ebuild, courier-0.49.0.ebuild,
courier-0.49.0.20050405.ebuild, courier-0.50.0.ebuild,
courier-0.50.1.ebuild, courier-0.50.1-r1.ebuild, courier-0.52.2.ebuild:
Remove gnuconfig_update usage, leave it to econf.
04 Jan 2007; Diego Pettenò
Fix broken autotools handling and remove gnuconfig inheritance.
23 Nov 2006; Francesco Riosa
courier-0.48.1-r1.ebuild, courier-0.48.2.20050224.ebuild,
courier-0.49.0.ebuild, courier-0.49.0.20050405.ebuild,
courier-0.50.0.ebuild, courier-0.50.1.ebuild, courier-0.50.1-r1.ebuild,
courier-0.52.2.ebuild, courier-0.53.2.ebuild:
dev-db/mysql => virtual/mysql
15 Oct 2006; Bryan Østergaard
Stable on ia64, bug 135005.
14 Oct 2006; Bryan Østergaard
Remove swtaylor from metadata.xml due to retiring.
31 Jul 2006; Simon Stelling
stable on amd64 wrt bug 135005
22 Jul 2006; Thomas Cort
Stable on alpha wrt security Bug #135005.
22 Jul 2006; Rene Nussbaumer
Stable on hppa. See bug #135005.
20 Jul 2006; Joshua Jackson
marking the right version stable for x86 this time
18 Jul 2006; Michael Hanselmann
Stable on ppc, too.
18 Jul 2006; Michael Hanselmann
Stable on ppc.
18 Jul 2006; Tuấn Văn
remove conditional patch. should be always or `use_with fam` won't work.
18 Jul 2006; Tuấn Văn
+files/fam-disable-check.patch, courier-0.53.2.ebuild:
add fam-disable-check patch. Bug #140883.
mv epatch to src_unpack and use eautoreconf instead.
16 Jul 2006; Jason Wever
Stable on SPARC wrt security bug #135005.
14 Jul 2006; Luca Longinotti
courier-0.53.2.ebuild:
Fix bug in src_test and correct mailer.conf, thanks to Jason Wever on bug
#135005.
12 Jul 2006; Joshua Jackson
Stable x86; security bug #135005
*courier-0.53.2 (11 Jul 2006)
11 Jul 2006; Luca Longinotti
+courier-0.53.2.ebuild:
Version bump. Fixes security bug #135005 and bugs #130957, #133401, #107557
and #134027. Thanks to Marcin Semeniuk for his help.
27 Apr 2006; Marien Zwart
files/digest-courier-0.48.1, files/digest-courier-0.48.1-r1,
files/digest-courier-0.48.2.20050224, files/digest-courier-0.49.0,
files/digest-courier-0.49.0.20050405, files/digest-courier-0.50.0,
files/digest-courier-0.50.1, files/digest-courier-0.50.1-r1, Manifest:
Fixing SHA256 digest, pass four
02 Mar 2006; Brian Jackson
added libpcre as a dep, bug 123900, thanks to Marco Iseli ismaATsfsservices.biz
19 Feb 2006; Brian Jackson
version bump
*courier-0.52.2 (19 Feb 2006)
25 Dec 2005; Diego Pettenò
courier-0.50.1-r1.ebuild:
Use root:0, not root:root.
*courier-0.50.1-r1 (29 Jul 2005)
29 Jul 2005; Brian Jackson
revbump with some changes. it's -*, and I'd like to get some testing
11 Jul 2005; Bryan Østergaard
courier-0.48.1-r1.ebuild:
Stable on alpha + ia64, bug 97915.
11 Jul 2005; Tobias Scherbaum
courier-0.48.1-r1.ebuild:
ppc stable, #97915
11 Jul 2005; Simon Stelling
stable on amd64 wrt bug 97915
11 Jul 2005; Rene Nussbaumer
courier-0.48.1-r1.ebuild:
Stable on hppa. bug #97915
11 Jul 2005; Jason Wever
Stable on SPARC wrt security bug #97915.
10 Jul 2005; Andrej Kacian
Stable on x86.
*courier-0.48.1-r1 (10 Jul 2005)
10 Jul 2005; Andrej Kacian
+files/courier-0.48.1-spf-error-handling.patch, +courier-0.48.1-r1.ebuild:
Bumped 0.48.1 because of security bug #97915 with a patch to fix it. Also
fixed sandbox access violation on subsequent merge.
10 Jul 2005; Andrej Kacian
+courier-0.50.1.ebuild:
Version bump, wrt security bug #97915. Also changed the ebuild to be more
mailwrapper-compatible.
*courier-0.50.1 (04 Jul 2005)
04 Jul 2005; Andrej Kacian
+courier-0.50.1.ebuild:
Version bump, due to security bug #97915. Also improved mailwrapper
compatibility.
*courier-0.50.0 (02 Jul 2005)
02 Jul 2005; Scott W Taylor
bump
29 May 2005;
courier-0.48.2.20050224.ebuild, courier-0.49.0.20050405.ebuild,
courier-0.49.0.ebuild:
- update courier to use libc expanded variable elibc_uclibc vs uclibc so
USE=-* works
*courier-0.49.0.20050405 (06 Apr 2005)
06 Apr 2005; Scott W Taylor
+courier-0.49.0.20050405.ebuild:
bump
21 Mar 2005; Scott W Taylor
-courier-0.48.2.ebuild, -courier-0.48.2.20050215.ebuild,
courier-0.48.2.20050224.ebuild, courier-0.49.0.ebuild:
tidy up due to collision with mailbase. strip bad cflags
*courier-0.49.0 (04 Mar 2005)
04 Mar 2005; Scott W Taylor
courier-0.48.2.20050215.ebuild, courier-0.48.2.20050224.ebuild,
courier-0.48.2.ebuild, +courier-0.49.0.ebuild:
bump to 0.49.0 keepdir had been executed on too many directories, collided
with baselayout. readded more sane keepdir calls, fixes bug 82286
03 Mar 2005; Ciaran McCreesh
courier-0.48.1.ebuild, courier-0.48.2.20050130.ebuild,
courier-0.48.2.20050203.ebuild, courier-0.48.2.20050215.ebuild,
courier-0.48.2.20050224.ebuild, courier-0.48.2.ebuild:
Move sys-apps/procps -> sys-process/procps
*courier-0.48.2.20050224 (25 Feb 2005)
25 Feb 2005; Scott W Taylor
+courier-0.48.2.20050224.ebuild:
bump. adds sha256
*courier-0.48.2.20050215 (15 Feb 2005)
15 Feb 2005; Scott W Taylor
+courier-0.48.2.20050215.ebuild:
bump, looks like minor stuff from upstream, consistency updates and
backscatter on uucp/fax
*courier-0.48.2.20050203 (05 Feb 2005)
05 Feb 2005; Scott W Taylor
+courier-0.48.2.20050203.ebuild:
version bump. mostly backscatter updates
31 Jan 2005; Scott W Taylor
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
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
stabilize 0.48.1 - most notable change is authentication moved to new
courier-authlib package
30 Jan 2005; Scott W Taylor
courier-0.48.2.20050130.ebuild:
version bump, add smtp auth methods as well.
*courier-0.48.2.20050130 (30 Jan 2005)
*courier-0.48.2 (30 Jan 2005)
30 Jan 2005; Scott W Taylor
-courier-0.46.20040902.ebuild, -courier-0.47.20041129.ebuild,
courier-0.48.1.ebuild, +courier-0.48.2.20050130.ebuild,
+courier-0.48.2.ebuild, -courier-0.48.ebuild:
$(get_libdir) added for arch compatibility. cleaning house too.
*courier-0.48.1 (05 Jan 2005)
05 Jan 2005; Scott W Taylor
bump
*courier-0.48 (01 Jan 2005)
01 Jan 2005; Scott W Taylor
-courier-0.48_pre.ebuild:
courier 0.48 released
15 Dec 2004; Scott W Taylor
courier-0.47.20041129.ebuild, courier-0.48_pre.ebuild:
move gnupg to fix circular dependancy
10 Dec 2004; Scott W Taylor
-courier-0.46.20040825.ebuild, -courier-0.46.ebuild, -courier-0.47.ebuild:
housecleaning
09 Dec 2004; Scott W Taylor
don't mirror release candidate
*courier-0.48_pre (09 Dec 2004)
09 Dec 2004; Scott W Taylor
+courier-0.48_pre.ebuild:
bump
07 Dec 2004; Scott W Taylor
courier-0.47.20041129.ebuild:
remove virtual/mda block
06 Dec 2004; Scott W Taylor
courier-0.47.20041129.ebuild:
add mime.types dep
05 Dec 2004; Scott W Taylor
courier-0.47.20041129.ebuild:
keep .maildir even if empty
*courier-0.47-r1 (05 Dec 2004)
05 Dec 2004; Scott W Taylor
courier-0.47.20041129.ebuild:
build courier before mailwrapper, bug 73486
05 Dec 2004; Scott W Taylor
courier-0.47.20041129.ebuild:
sed magic to fix #73468
01 Dec 2004; Scott W Taylor
-courier-0.46.20040816.ebuild, -courier-0.47.20041113.ebuild,
-courier-0.47.20041120.ebuild, courier-0.47.20041129.ebuild,
courier-0.47.ebuild:
bump and cleanup
*courier-0.47.20041129 (01 Dec 2004)
01 Dec 2004; Scott W Taylor
+courier-0.47.20041129.ebuild:
bump
29 Nov 2004; Andrej Kacian
courier-0.46.20040816.ebuild, courier-0.46.20040825.ebuild,
courier-0.46.20040902.ebuild, courier-0.46.ebuild,
courier-0.47.20041113.ebuild, courier-0.47.20041120.ebuild,
courier-0.47.ebuild:
Changed app-admin/fam -> virtual/fam, as per bug #67170.
26 Nov 2004; Scott W Taylor
will need courier-authlib in near future. init script updated to reflect this.
*courier-0.47.20041120 (21 Nov 2004)
21 Nov 2004; Scott W Taylor
+courier-0.47.20041120.ebuild:
version bump. work in progress
19 Nov 2004; Scott W Taylor
courier-0.47.20041113.ebuild:
net-libs/courier-authlib
17 Nov 2004; Scott W Taylor
courier-0.47.20041113.ebuild:
getting closer
17 Nov 2004; Scott W Taylor
courier-0.47.20041113.ebuild:
work in progress. don't use.
16 Nov 2004; Scott W Taylor
courier-0.47.20041113.ebuild:
add maildropldap
*courier-0.47.20041113 (16 Nov 2004)
16 Nov 2004; Scott W Taylor
+courier-0.47.20041113.ebuild:
now requires courier-authlib. work in progress.
02 Nov 2004; Bret Curtis,,,
workes well on mips, but marked ~mips for now.
02 Oct 2004;
fix bug #57310, thanks to Ben Kennedy
20 Sep 2004;
added a small fix for building with uclibc, and removed expect as a dep
*courier-0.47 (19 Sep 2004)
19 Sep 2004; Scott W Taylor
new version. src_uri is now a conditional instead of swapping commented lines
for maintainer ease
19 Sep 2004; Scott W Taylor
-courier-0.45.5.20040606.ebuild, -courier-0.45.5.ebuild,
-courier-0.45.6.20040618.ebuild, courier-0.46.20040902.ebuild,
courier-0.46.ebuild:
cleanup, promote stable
06 Sep 2004; Ciaran McCreesh
courier-0.45.5.20040606.ebuild, courier-0.45.5.ebuild,
courier-0.45.6.20040618.ebuild, courier-0.45.6.ebuild,
courier-0.46.20040816.ebuild, courier-0.46.20040825.ebuild,
courier-0.46.20040902.ebuild, courier-0.46.ebuild:
Switch to use epause and ebeep, bug #62950. Fix header lines.
06 Sep 2004; Danny van Dyk
courier-0.46.20040902.ebuild:
Marked ~amd64.
*courier-0.46.20040902 (03 Sep 2004)
03 Sep 2004; Scott W Taylor
+courier-0.46.20040902.ebuild:
hot off the press with spf update
*courier-0.46.20040825 (26 Aug 2004)
26 Aug 2004; Scott W Taylor
+courier-0.46.20040825.ebuild:
bump. more SPF support
*courier-0.46.20040816 (16 Aug 2004)
16 Aug 2004; Scott W Taylor
+courier-0.46.20040816.ebuild:
version bump. spf beginning to be handled internally. "man 8 courier" for
details.54557 really fixed.
*courier-0.46 (01 Aug 2004)
01 Aug 2004; Scott W Taylor
courier-0.45.6.20040618.ebuild, courier-0.45.6.ebuild, +courier-0.46.ebuild:
mark 0.45.6.* stable
*courier-0.46 (01 Aug 2004)
01 Aug 2004; Scott W Taylor
courier 0.46 released today
29 Jul 2004; Gustavo Zacarias
courier-0.45.6.20040618.ebuild:
Stable on sparc wrt #58020
01 Jul 2004; Jeremy Huddleston
courier-0.45.4.ebuild, courier-0.45.5.20040606.ebuild,
courier-0.45.5.ebuild, courier-0.45.6.20040618.ebuild,
courier-0.45.6.ebuild:
virtual/glibc -> virtual/libc
22 Jun 2004; Scott W Taylor
courier-0.45.5.ebuild:
mark 0.45.5 stable
20 Jun 2004; Scott W Taylor
courier-0.45.6.20040618.ebuild, courier-0.45.6.ebuild:
cosmetic changes
20 Jun 2004; Scott W Taylor
courier-0.45.6.20040618.ebuild:
upstream added more config statements referencing Maildir. this fixes 54557
*courier-0.45.6.20040618 (18 Jun 2004)
18 Jun 2004; Scott W Taylor
+courier-0.45.6.20040618.ebuild:
bump
*courier-0.45.6 (12 Jun 2004)
12 Jun 2004; Scott W Taylor
-courier-0.45.2.ebuild, courier-0.45.4.ebuild, +courier-0.45.6.ebuild:
new 45.6, stable 45.4, drop 45.1 and 45.2
*courier-0.45.5.20040606 (08 Jun 2004)
08 Jun 2004; Scott W Taylor
+courier-0.45.5.20040606.ebuild:
Spiffy new courier. Tidy up ebuild as well.
*courier-0.45.4 (29 May 2004)
29 May 2004; Robin H. Johnson
courier-0.45.2.ebuild, courier-0.45.3.ebuild, courier-0.45.4.ebuild,
courier-0.45.5.ebuild, metadata.xml, files/apache-sqwebmail.inc, files/bofh,
files/courier-init, files/dot_courier, files/locallowercase,
files/norewrite.patch, files/password.dist, files/set-mime:
Moved from net-mail/courier to mail-mta/courier.
*courier-0.45.5 (22 May 2004)
22 May 2004; Scott W Taylor
bump 0.45.5
22 May 2004; Scott W Taylor
spelling fix and init script update for sqwebmail which gets renamed in 0.45.5
28 Apr 2004; Scott W Taylor
courier-0.45.3.ebuild:
get ppc mask caught up
28 Apr 2004; Scott W Taylor
courier-0.45.3.ebuild, courier-0.45.4.ebuild:
Bug 49198 - moved ${D} adjustments out of pkg_preinst
27 Apr 2004; Aron Griffis
courier-0.45.4.ebuild:
Add inherit eutils
21 Apr 2004; Scott W Taylor
courier-0.45.3.ebuild, courier-0.45.4.ebuild:
mark 0.45.2 stable and fix bug 41819
09 Apr 2004; Scott W Taylor
Added ~sparc on 0.45.4 too
06 Apr 2004; Jason Wever
Added ~sparc keyword wrt bug #46319.
*courier-0.45.4 (06 Apr 2004)
06 Apr 2004; Scott W Taylor
version bump
*courier-0.45.3 (01 Apr 2004)
01 Apr 2004; Scott W Taylor
files/courier-init, files/norewrite.patch:
Version bump and fixes for bugs 44241 and 44245.
30 Mar 2004; Lars Weiler
Masked ~ppc on user report
*courier-0.45.2 (16 Mar 2004)
16 Mar 2004; Brian Jackson
files/courier-init:
version bump
*courier-0.45.1 (09 Mar 2004)
09 Mar 2004; Brian Jackson
courier-0.44.2.20040201.ebuild, courier-0.44.2.ebuild,
courier-0.45.0.ebuild, courier-0.45.1.ebuild, files/courier,
files/courier-authdaemond, files/courier-esmtpd, files/courier-esmtpd-msa,
files/courier-esmtpd-ssl, files/courier-filterd, files/courier-imapd,
files/courier-imapd-ssl, files/courier-ldapaliasd, files/courier-mta,
files/courier-pop3d, files/courier-pop3d-ssl, files/gentoo.diff.bz2:
version bump, fixes 2 minor bugs only
*courier-0.45.0 (07 Mar 2004)
07 Mar 2004; Brian Jackson
files/courier-init:
version bump, fix for bug 42164, and an issue reported by
hachre@dynaloop.net
15 Feb 2004; Brian Jackson
a few cleanups, and fix bug 32878
*courier-0.44.2.20040201 (08 Feb 2004)
08 Feb 2004; Brian Jackson
courier-0.44.2.20040201.ebuild, courier-0.44.2.ebuild:
version bump to fix a problem with 2.6 kernels, changed a few keywords
14 Jan 2004; Aron Griffis
add ~alpha (bug 21240)
09 Dec 2003; Heinrich Wendel
courier-0.44.2.ebuild:
changed app-text/ghostscript to virtual/ghostscript
08 Dec 2003; Brian Jackson
courier-0.43.2.ebuild, courier-0.44.0.ebuild, courier-0.44.2.ebuild,
files/courier-0.42.2-gentoo.diff.bz2:
cleaning out old ebuilds/etc, and cleaning up touch .keep's
08 Dec 2003; Brian Jackson
fixed the other chown in courier-0.42.2
07 Dec 2003; foser
Fix fam-oss > fam, due to move
07 Dec 2003; Brian Jackson
add note about recent sed magic
30 Nov 2003; Brian Jackson
bump 0.44.0 to x86
*courier-0.44.2 (30 Nov 2003)
30 Nov 2003; Brian Jackson
files/courier-init:
version bump
*courier-0.44.0 (07 Nov 2003)
07 Nov 2003; Brian Jackson
courier-0.42.2.ebuild, courier-0.43.1.ebuild, courier-0.43.2.ebuild,
courier-0.44.0.ebuild, files/gentoo.diff.bz2:
version bump
cleaned up the ebuild a little
some docs weren't getting installed
fix bug 32269
applying the sqwebmail patch again
29 Oct 2003; Brian Jackson
files/courier-init:
added esmtpd-ssl to init script, closes bug 32267
*courier-0.43.2 (28 Sep 2003)
28 Sep 2003;
version bump
*courier-0.43.1 (19 Aug 2003)
19 Aug 2003;
courier-0.43.1 is out, just copied the 42.2-r3 ebuild, and updated the
postinst msgs a bit
02 Aug 2003;
courier-0.42.2-r2.ebuild, courier-0.42.2-r3.ebuild:
-r3 -> x86, removed older broken ebuilds (-r1, -r2)
*courier-0.42.2-r3 (01 Aug 2003)
01 Aug 2003; Paul de Vrieze
Removed the optional dependency on berkeley db, as it will not work with db4
and a patch to make it work with db3 is nontrivial
28 Jul 2003;
temporarily removed expect dep pending clarification of tcltk situation
24 Jul 2003;
fixed courier init script
24 Jul 2003;
added !virtual/imapd to RDEPEND closes bug 25027
22 Jul 2003;
a few more cleanups to 0.42.2-r2
*courier-0.42.2-r2 (22 Jul 2003)
22 Jul 2003;
fixed bug 25028, and switched to single init script
03 Jul 2003; ,,,
added metadata.xml
01 Jul 2003; ,,,
courier-0.42.2.ebuild:
added --disable-autorenamesent to configure options
*courier-0.42.2-r1 (14 Jun 2003)
01 Jul 2003; Brian Jackson
Whatever the patch that we were using was for seems to be fixed upstream.
I masked this while I have some other people try to test it out.
*courier-0.42.2 (14 Jun 2003)
23 Jun 2003; Nick Hadaway
Added crypt use variable. Added fax local use variable.
14 Jun 2003; Nick Hadaway
files/digest-courier-0.42.2, files/courier-0.42.2-gentoo.diff.bz2:
New version. Updated dependancies. Added a fix for permissions
of /var/run/courier. Changed unicode option code snippet.
15 May 2003; Martin Holzer
courier-0.41.0.ebuild:
Adding !virtual/mta to RDEPEND. CLoses #21072.
*courier-0.41.0 (30 Jan 2003)
22 Apr 2003; Graham Forest
courier-0.41.0.ebuild:
app-text/aspell -> virtual/aspell-dict
30 Jan 2003; Alexandru Hartmann
courier-0.41.0.ebuild, files/courier:
new release. supports make install-configure in post_install(). init scripts changes.
typo fixes.
31 Dec 2002; Nick Hadaway
files/digest-courier-0.40.2, files/courier-0.40.2-gentoo.diff.bz2 :
Version bump. New unicode functionality. Added support for the spell
use variable.
06 Dec 2002; Rodney Rees
*courier-0.40.2 (31 Dec 2002)
15 Jan 2003; Nick Hadaway
Marked stable to coincide with courier-imap-1.6.2 being stable.
31 Dec 2002; Nick Hadaway
files/digest-courier-0.40.2, files/courier-0.40.2-gentoo.diff.bz2 :
Version bump. New unicode functionality. Added support for the spell
use variable.
06 Dec 2002; Rodney Rees
*courier-0.40.1 (19 Nov 2002)
21 Dec 2002; Nick Hadaway
Filter -fomit-frame-pointer and -funroll-loops as these flags seem
to cause problems with maildrop and maildirmake.
21 Nov 2002; Nick Hadaway
files/password.dist :
Added a password.dist file so people get instructions on how to
setup a password for the webadmin.
19 Nov 2002; Daniel Ahlberg
Security update.
*courier-0.40.0.20021026 (29 Oct 2002)
06 Nov 2002; Nick Hadaway
Added ebuild to portage. Marked unstable.
29 Oct 2002; Andreas Erhart
courier-0.40.0.20021026.ebuild, files/digest-courier-0.40.0.20021026
sqwebmail finally works !
new version
*courier-0.40.0 (28 Oct 2002)
28 Oct 2002; Alexandru Hartmann
courier-0.40.0.ebuild, files/digest-courier-0.40.0
sometimes /var/lib/courier/msgs and msgq just disappear after an upgrade.
this is now fixed.
*courier-0.40.0 (26 Oct 2002)
26 Oct 2002; Andreas Erhart
courier-0.40.0.ebuild, files/digest-courier-0.40.0
new version
*courier-0.39.3 (12 Aug 2002)
12 Aug 2002; Andreas Erhart
courier-0.39.3.ebuild, files/digest-courier-0.39.3
new version
*courier-0.39.2 (03 Aug 2002)
06 Aug 2002; Nick Hadaway
courier-0.39.2.ebuild, files/digest-courier-0.39.2 :
Added --without-authvchkpw to the configure options as some
systems will fail to finish configure if vpopmail is not installed.
Version bump.
03 Aug 2002; Andreas Erhart
new version, thanks to Sam Varshavchik
removed 10MB message sizelimit
*courier-0.39.1 (04 Jul 2002)
04 Jul 2002; Grant Goodyear
New version, thanks to Alex Hartmann
-----BEGIN PGP SIGNED MESSAGE-----
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 dot_courier 26 RMD160 cf20012379abbb63f78e1eb0f9cbaefff6d1048d SHA1 8e5e09e167035d100859b42311b6dda2842f4d67 SHA256 8c585031b4356ca1f887e0823fd9b365fff57a5f9cc32541eccfc1542d5d3763
AUX locallowercase 0 RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 SHA1 da39a3ee5e6b4b0d3255bfef95601890afd80709 SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
AUX mailer.conf 197 RMD160 4229dfa9cf33b275571538211dad33da5ae84048 SHA1 caf095797e8c526dc5fec59d9d89d51f318cd28a SHA256 5a946a7c4ed42bbddf2c471e2e00898150e4bff33f4af70620cf814ab2f12b47
AUX norewrite.patch 489 RMD160 1d0bacf702126cc4f8b9d7b07bbc6a9357b7b6e9 SHA1 007059af9ab5d89b36004e590b6a21911515f69b SHA256 526f3742fb43af93811e6e4b3210fda1c611b50ce5abdf3a57a25dfe4f5c38e4
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
EBUILD courier-0.59.0.ebuild 10180 RMD160 0bcd931b501817ffdacfcf2684763ade3c264376 SHA1 b73c6503fe10122d24ea45082a39efd0b156ac51 SHA256 6d78cd3a0037475b12a8c7247ad2c443887de326f2ef18804bc7ee65bcb9c837
EBUILD courier-0.60.0.ebuild 10112 RMD160 46e93f8bca7a8eee888048d9edadbbbfe057625e SHA1 07b25c963b7094e3ad804b705bb038293a0fe844 SHA256 04e3d55de3c0fcb9abd0e4ee66852f39cffc3eaf8101ff0efe063d3c009ef818
MISC ChangeLog 29654 RMD160 71350b454fd5eb00e37a2c30dffc1432c5800bde SHA1 850a2da115a54831e008ad54d46cca8684832302 SHA256 d6831c5017ae9f9b65bbc95b146eb2c1749d51bf61edee63df4b60cfe669c177
MISC metadata.xml 687 RMD160 753323e40a9add2b07fd1f138c672ce283d2f255 SHA1 2e8255902a9e0394bd27e13e488e84ba70f05845 SHA256 ea417e66d396e793212529ed20f5570b0c97eb666a5ba52bb3202bbfbc022be1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
iEYEARECAAYFAkivbO8ACgkQoeSe8B0zEfy9oACfflr8Jpu47TNRU11GCJ1n/Y/8
ly4AnjBnRbfJ+72cn64xEuo031fT4d/N
=vFz/
-----END PGP SIGNATURE-----
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/courier-0.59.0.ebuild,v 1.12 2008/07/16 16:32:11 chtekk Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
inherit eutils flag-o-matic autotools
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 ~mips 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.59
>=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 virtual/ghostscript >=net-dialup/mgetty-1.1.28 )
pam? ( virtual/pam )
mysql? ( virtual/mysql )
ldap? ( >=net-nds/openldap-1.2.11 )
postgres? ( virtual/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"
epatch "${FILESDIR}/${P}-asneeded.patch"
cd "${S}/gdbmobj/"
eautoreconf
}
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-r1" "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 /
vecho ">>> 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
}
# Copyright 1999-2008 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.1 2008/07/21 00:39:43 hanno Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
inherit eutils flag-o-matic autotools
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 ~mips
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 virtual/ghostscript >=net-dialup/mgetty-1.1.28 )
pam? ( virtual/pam )
mysql? ( virtual/mysql )
ldap? ( >=net-nds/openldap-1.2.11 )
postgres? ( virtual/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-r1" "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 /
vecho ">>> 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
}
Complete email package consisting of pop, imap, smtp, and fax
server and secure version of the above also.