summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Scherbaum <dertobi123@gentoo.org>2009-07-10 22:20:33 +0000
committerTobias Scherbaum <dertobi123@gentoo.org>2009-07-10 22:20:33 +0000
commit99bef045b08c7d5c7858f34b15bec624916c354f (patch)
tree399cd4f929d629b7d8c818209d25ea45401247d6
parentVersion bump, #276936 (diff)
downloadhistorical-99bef045b08c7d5c7858f34b15bec624916c354f.tar.gz
historical-99bef045b08c7d5c7858f34b15bec624916c354f.tar.bz2
historical-99bef045b08c7d5c7858f34b15bec624916c354f.zip
Version bump, #276364
Package-Manager: portage-2.2_rc33/cvs/Linux i686
-rw-r--r--mail-filter/amavisd-new/ChangeLog8
-rw-r--r--mail-filter/amavisd-new/Manifest4
-rw-r--r--mail-filter/amavisd-new/amavisd-new-2.6.4.ebuild196
3 files changed, 206 insertions, 2 deletions
diff --git a/mail-filter/amavisd-new/ChangeLog b/mail-filter/amavisd-new/ChangeLog
index 98871b78b523..9806049b10ab 100644
--- a/mail-filter/amavisd-new/ChangeLog
+++ b/mail-filter/amavisd-new/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for mail-filter/amavisd-new
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavisd-new/ChangeLog,v 1.141 2009/05/31 19:16:32 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavisd-new/ChangeLog,v 1.142 2009/07/10 22:20:33 dertobi123 Exp $
+
+*amavisd-new-2.6.4 (10 Jul 2009)
+
+ 10 Jul 2009; Tobias Scherbaum <dertobi123@gentoo.org>
+ +amavisd-new-2.6.4.ebuild:
+ Version bump, #276364
31 May 2009; Brent Baude <ranger@gentoo.org> amavisd-new-2.6.3-r1.ebuild:
Marking amavisd-new-2.6.3-r1 ~ppc64 for bug 268645
diff --git a/mail-filter/amavisd-new/Manifest b/mail-filter/amavisd-new/Manifest
index 00d2b9050909..0972479226bd 100644
--- a/mail-filter/amavisd-new/Manifest
+++ b/mail-filter/amavisd-new/Manifest
@@ -5,7 +5,9 @@ AUX amavisd-new-dkimconf.patch 735 RMD160 721bc3fdaf15c2838092825e0b88c781841184
AUX amavisd.rc6 371 RMD160 d32a99dd9a229a133741501ec443509e22c6867a SHA1 f353cd12004bff30ac2361df2a2784f697b0cb8d SHA256 f2010650d3ef408359f41e3a84173c2b27300e9d6d2e4f7558ef39858e01da9d
DIST amavisd-new-2.6.1.tar.gz 911740 RMD160 c9e248540bfaf9cc6ab967776bd98e164b636db8 SHA1 51e3e3d9c2aaa33f6a41a84092c82adb94e2a806 SHA256 4c98786e4b694459f6bac42413cd34b7d0165763b908b3234d5407126fb3b13d
DIST amavisd-new-2.6.3.tar.gz 918888 RMD160 911e356dbc2a900734c5c87bdd231846abe4f9e8 SHA1 12a120b4fc614a0b3269cb0ec0ee185cb3e7c13f SHA256 47e774579fdab1e1c10ef2295d49cb511b13e05431a7955c73f07e98025d788e
+DIST amavisd-new-2.6.4.tar.gz 947596 RMD160 010dd9bf49a3c7553996c49553fd0fa84ca7bdab SHA1 993b7ca839ce038fd13f65351950f0ef03d99ff9 SHA256 40fe1b655deb934c7a655a6b5b430df268ec9ac80754b120795bc45d4ae769ef
EBUILD amavisd-new-2.6.1-r1.ebuild 5432 RMD160 77ed20df18eefb893912d58b551286c25d5893fd SHA1 8336dab1bc31328c4da5ffc58f96a2f3405bd649 SHA256 f2b06ef3105e1d65614cfdd41153f7cfd431fb3d57c83d539fd9a414c13c995b
EBUILD amavisd-new-2.6.3-r1.ebuild 5444 RMD160 af1ae10691766c0aa032c1c9f647c62eab320722 SHA1 b0863396c807bf3b66dddd58774609680e806617 SHA256 ec0747e50ca85e8b80dc9f988a1ddcd206a7150aaff9328b52fe7b6621e204cd
-MISC ChangeLog 29080 RMD160 add33d99ce7ef2776f8c11c3b94231baa7b9925c SHA1 682a572bb161510a7d1065e95254769746c48a25 SHA256 792c96d98902082ccb93b32d798c29ea288a15592b48e669e5d6d79af716f62e
+EBUILD amavisd-new-2.6.4.ebuild 5459 RMD160 7a068c9462bd3f0fc7b28f79a380ab7c61be6feb SHA1 d181e3586bb295daee0535e066c06171a22eb6da SHA256 4317b5b5287903700d6637ba8b214a351e2cc8e18c772f696d0c03182d94138e
+MISC ChangeLog 29228 RMD160 6f02235d7b5c1e03c7f61744680daeaeb0c26aa1 SHA1 7dd6dfd594c751794c14c3e8116a6fc976b123e6 SHA256 b0716d1174e0cad13005c00e16b5b3ca7c43a13a1fcf83d7c126330b2bfced1e
MISC metadata.xml 624 RMD160 1b4f583fff7c7aabde0e8696eaac0e297604a208 SHA1 628528ee48c3c366c8c2b5536991735c6d0e0e12 SHA256 4bda1a166dafc8df735495e0d66e1d8fded9fddc9d0366c423614593a9be84dc
diff --git a/mail-filter/amavisd-new/amavisd-new-2.6.4.ebuild b/mail-filter/amavisd-new/amavisd-new-2.6.4.ebuild
new file mode 100644
index 000000000000..3822c8a84ec2
--- /dev/null
+++ b/mail-filter/amavisd-new/amavisd-new-2.6.4.ebuild
@@ -0,0 +1,196 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavisd-new/amavisd-new-2.6.4.ebuild,v 1.1 2009/07/10 22:20:33 dertobi123 Exp $
+
+inherit eutils
+
+DESCRIPTION="High-performance interface between the MTA and content checkers."
+HOMEPAGE="http://www.ijs.si/software/amavisd/"
+SRC_URI="http://www.ijs.si/software/amavisd/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="courier dkim ldap milter mysql postgres qmail razor spamassassin"
+
+DEPEND=">=sys-apps/sed-4
+ >=dev-lang/perl-5.8.2
+ milter? ( || ( mail-filter/libmilter >=mail-mta/sendmail-8.12 ) )"
+
+RDEPEND="${DEPEND}
+ >=sys-apps/coreutils-5.0-r3
+ app-arch/gzip
+ app-arch/bzip2
+ app-arch/arc
+ app-arch/cabextract
+ app-arch/freeze
+ app-arch/lha
+ app-arch/unarj
+ || ( app-arch/unrar app-arch/rar )
+ app-arch/zoo
+ >=dev-perl/Archive-Zip-1.14
+ >=virtual/perl-Compress-Zlib-1.35
+ dev-perl/Convert-TNEF
+ >=dev-perl/Convert-UUlib-1.08
+ virtual/perl-MIME-Base64
+ >=dev-perl/MIME-tools-5.415
+ >=dev-perl/MailTools-1.58
+ >=dev-perl/net-server-0.91
+ virtual/perl-Digest-MD5
+ dev-perl/IO-stringy
+ >=virtual/perl-Time-HiRes-1.49
+ dev-perl/Unix-Syslog
+ >=sys-libs/db-3.2
+ dev-perl/BerkeleyDB
+ dev-perl/Convert-BinHex
+ >=dev-perl/Mail-DKIM-0.31
+ virtual/mta
+ ldap? ( >=dev-perl/perl-ldap-0.33 )
+ mysql? ( dev-perl/DBD-mysql )
+ postgres? ( dev-perl/DBD-Pg )
+ razor? ( mail-filter/razor )
+ spamassassin? ( mail-filter/spamassassin )"
+
+AMAVIS_ROOT="/var/amavis"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ if use courier ; then
+ epatch amavisd-new-courier.patch
+ fi
+
+ if use qmail ; then
+ epatch amavisd-new-qmqpqq.patch
+ fi
+
+ epatch "${FILESDIR}/${PN}-2.6.3-amavisd.conf-gentoo.patch"
+
+ if ! use dkim ; then
+ epatch "${FILESDIR}/${PN}-2.6.3-dkimconf.patch"
+ fi
+}
+
+src_compile() {
+ if use milter ; then
+ cd "${S}/helper-progs"
+
+ econf --with-runtime-dir=${AMAVIS_ROOT} \
+ --with-sockname=${AMAVIS_ROOT}/amavisd.sock \
+ --with-user=amavis || die "helper-progs econf failed"
+ emake || die "helper-progs compile problem"
+
+ cd "${S}"
+ fi
+}
+
+src_install() {
+ dosbin amavisd amavisd-agent amavisd-nanny amavisd-release
+ dobin p0f-analyzer.pl
+
+ insinto /etc
+ insopts -m0640
+ newins amavisd.conf-sample amavisd.conf
+
+ dosed "s:^#\\?\\\$MYHOME[^;]*;:\$MYHOME = '$AMAVIS_ROOT';:" \
+ /etc/amavisd.conf
+
+ newinitd "${FILESDIR}/amavisd.rc6" amavisd
+ dosed "s:/var/run/amavis/:$AMAVIS_ROOT/:g" /etc/init.d/amavisd
+
+ keepdir ${AMAVIS_ROOT}
+ keepdir ${AMAVIS_ROOT}/db
+ keepdir ${AMAVIS_ROOT}/quarantine
+ keepdir ${AMAVIS_ROOT}/tmp
+
+ newdoc test-messages/README README.samples
+ dodoc AAAREADME.first INSTALL MANIFEST RELEASE_NOTES README_FILES/README.* \
+ test-messages/sample* amavisd.conf-default amavisd-agent \
+ amavisd-custom.conf
+
+ dodir /usr/share/doc/${PF}/html
+ insinto /usr/share/doc/${PF}/html
+ doins README_FILES/*.{html,css}
+ dodir /usr/share/doc/${PF}/html/images
+ insinto /usr/share/doc/${PF}/html/images
+ doins README_FILES/images/*
+
+ if use milter ; then
+ cd "${S}/helper-progs"
+ einstall
+ cd "${S}"
+ fi
+
+ for i in whitelist blacklist spam_lovers; do
+ if [ -f ${AMAVIS_ROOT}/${i} ]; then
+ cp "${AMAVIS_ROOT}/${i}" "${D}/${AMAVIS_ROOT}"
+ else
+ touch "${D}"/${AMAVIS_ROOT}/${i}
+ fi
+ done
+
+ if use ldap ; then
+ elog "Adding ${P} schema to openldap schema dir."
+ dodir /etc/openldap/schema
+ insinto /etc/openldap/schema
+ insopts -o root -g root -m 644
+ newins LDAP.schema ${PN}.schema || die
+ newins LDAP.schema ${PN}.schema.default || die
+ fi
+
+ find "${D}"/${AMAVIS_ROOT} -name "*" -type d -exec chmod 0750 \{\} \;
+ find "${D}"/${AMAVIS_ROOT} -name "*" -type f -exec chmod 0640 \{\} \;
+}
+
+pkg_preinst() {
+ enewgroup amavis
+ enewuser amavis -1 -1 ${AMAVIS_ROOT} amavis
+
+ if [ -z "$(dnsdomainname)" ] ; then
+ dosed "s:^#\\?\\\$mydomain[^;]*;:\$mydomain = '$(hostname)';:" \
+ /etc/amavisd.conf
+ else
+ dosed "s:^#\\?\\\$mydomain[^;]*;:\$mydomain = '$(dnsdomainname)';:" \
+ /etc/amavisd.conf
+ fi
+
+ if use razor ; then
+ if [ ! -d ${AMAVIS_ROOT}/.razor ] ; then
+ elog "Setting up initial razor config files..."
+
+ razor-admin -create -home="${D}"/${AMAVIS_ROOT}/.razor
+ sed -i -e "s:debuglevel\([ ]*\)= .:debuglevel\1= 0:g" \
+ "${D}"/${AMAVIS_ROOT}/.razor/razor-agent.conf
+ fi
+ fi
+
+ if ! use spamassassin ; then
+ einfo "Disabling anti-spam code in amavisd.conf..."
+
+ dosed "s:^#[\t ]*@bypass_spam_checks_maps[\t ]*=[\t ]*(1);:\@bypass_spam_checks_maps = (1);:" \
+ /etc/amavisd.conf
+ fi
+}
+
+pkg_postinst() {
+ if ! use spamassassin ; then
+ echo
+ elog "Amavisd-new no longer requires SpamAssassin, but no anti-spam checking"
+ elog "will be performed without it. Since you do not have SpamAssassin installed,"
+ elog "all spam checks have been disabled. To enable them, install SpamAssassin"
+ elog "and comment out the line containing: "
+ elog "@bypass_spam_checks_maps = (1); in /etc/amavisd.conf."
+ fi
+ echo
+ ewarn "As of amavisd-new-2.4.5 p0f-analyzer.pl only binds to the loopback interface"
+ ewarn "by default instead of to all interfaces. You will need to change $bind_addr"
+ ewarn "in p0f-analyzer.pl to '0.0.0.0' if p0f-analyzer.pl is running on a different"
+ ewarn "host from amavisd or from other querying clients."
+ echo
+ ewarn "Adjusting permissions for /etc/amavisd.conf (0 for world, owner root:amavis)"
+ echo
+ chmod o-rwx /etc/amavisd.conf
+ chown root:amavis /etc/amavisd.conf
+ chown -R amavis:amavis ${AMAVIS_ROOT}
+}