summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Scherbaum <dertobi123@gentoo.org>2008-07-13 16:08:50 +0000
committerTobias Scherbaum <dertobi123@gentoo.org>2008-07-13 16:08:50 +0000
commit95e8bb0462a4efa4c24c0f6e4bddc029d859ccec (patch)
tree7e4c236a28dc58aabd3e562149d31cc67e667515 /mail-filter
parentamd64 stable, bug #231691 (diff)
downloadhistorical-95e8bb0462a4efa4c24c0f6e4bddc029d859ccec.tar.gz
historical-95e8bb0462a4efa4c24c0f6e4bddc029d859ccec.tar.bz2
historical-95e8bb0462a4efa4c24c0f6e4bddc029d859ccec.zip
Version bump, #230652
Package-Manager: portage-2.2_rc1/cvs/Linux 2.6.25-gentoo-r6 x86_64
Diffstat (limited to 'mail-filter')
-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.1.ebuild186
3 files changed, 196 insertions, 2 deletions
diff --git a/mail-filter/amavisd-new/ChangeLog b/mail-filter/amavisd-new/ChangeLog
index 1205022b9557..fe114285e5eb 100644
--- a/mail-filter/amavisd-new/ChangeLog
+++ b/mail-filter/amavisd-new/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for mail-filter/amavisd-new
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavisd-new/ChangeLog,v 1.123 2008/06/17 16:04:48 dertobi123 Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavisd-new/ChangeLog,v 1.124 2008/07/13 16:08:50 dertobi123 Exp $
+
+*amavisd-new-2.6.1 (13 Jul 2008)
+
+ 13 Jul 2008; Tobias Scherbaum <dertobi123@gentoo.org>
+ +amavisd-new-2.6.1.ebuild:
+ Version bump, #230652
17 Jun 2008; Tobias Scherbaum <dertobi123@gentoo.org>
-files/amavisd-new-2.4.1-amavisd.conf-gentoo.patch,
diff --git a/mail-filter/amavisd-new/Manifest b/mail-filter/amavisd-new/Manifest
index d6064b6f10b3..b5c590b2ed34 100644
--- a/mail-filter/amavisd-new/Manifest
+++ b/mail-filter/amavisd-new/Manifest
@@ -3,7 +3,9 @@ AUX amavisd-new-dkimconf.patch 735 RMD160 721bc3fdaf15c2838092825e0b88c781841184
AUX amavisd.rc6 333 RMD160 f325f40cdedd1cfff72e16c574ef499d4790d1bf SHA1 e026253a61cafdd57728afa6a865268b60e57272 SHA256 9a93b96b95314d46e3d68d9e50b667758689c214c4398436e1959b42eeddb5f2
DIST amavisd-new-2.5.2.tar.gz 788546 RMD160 b7bc998ac34428b62cf74e1c114b295a9f322652 SHA1 2465131448ce10dac8511450695ff63bc565e6db SHA256 5f590850c505017c2633f47ced483aae23ec857e2a782f763eb16f9f9f3fceef
DIST amavisd-new-2.6.0.tar.gz 906076 RMD160 bf93a22864d1df8978583fd1a06ef414e682291d SHA1 efffd55c12d23af803a83e981b0fd2f179190a85 SHA256 e979be2db9d28c2c44293245394c5001cd9a94bbdd0ca3f3b45eac5e7a91521a
+DIST amavisd-new-2.6.1.tar.gz 911740 RMD160 c9e248540bfaf9cc6ab967776bd98e164b636db8 SHA1 51e3e3d9c2aaa33f6a41a84092c82adb94e2a806 SHA256 4c98786e4b694459f6bac42413cd34b7d0165763b908b3234d5407126fb3b13d
EBUILD amavisd-new-2.5.2.ebuild 5126 RMD160 e3d935b198af93d6f7b5f3beaf2ddb259d07554b SHA1 2bdb6d2a2d12c0030294a3a1e334079cea1ed8fd SHA256 f6cb2b5670831bdb1d93cd4ce6766bf9bf7469edac0bee5ee2b6597855ded5f8
EBUILD amavisd-new-2.6.0.ebuild 5166 RMD160 46711839a06d63b1022b37a1cc302b10a37a1913 SHA1 0ec30b81cd9eb191a467468e8d3a0961d97cdcfa SHA256 1199897c59dcb5f52908d73e7f705f07b2bd70795880af169e374535b57b7803
-MISC ChangeLog 26388 RMD160 a48061ce46319d2e09632d0afeb340bb2d0f879c SHA1 659b94af7a4e64e9e7424249cab824286f8bf8fa SHA256 97e5276b3c5579e2e9832590af370d935ad1da59a62492e412c392ba4c4f44a3
+EBUILD amavisd-new-2.6.1.ebuild 5166 RMD160 dd35bfc1a4f7d320412176dcf1ac5df525d344c4 SHA1 0f33b39ba25acb985d57b5e9af08511b963147fc SHA256 9582af698501f759af1b08000a95829c235b9e15faca7f12b33d454359cf2711
+MISC ChangeLog 26532 RMD160 43358507fa80124381dd76b61be5885b573c4058 SHA1 1fd910072e8a7201fba5016486baec0632062c55 SHA256 c6289cb6c24f55a305c8cc71560a6d32c86aa2215fef02f4b7ee057442ef3bf5
MISC metadata.xml 184 RMD160 c37bff1fc1cd7139c91dae9b0fa5082e1d81f153 SHA1 cc0a188d9ad2411e78747326c62dd046bd5413c8 SHA256 d51011aa837db802ef539a1321a4af0a4a00879d475b92fd58f3c01df7320b58
diff --git a/mail-filter/amavisd-new/amavisd-new-2.6.1.ebuild b/mail-filter/amavisd-new/amavisd-new-2.6.1.ebuild
new file mode 100644
index 000000000000..d3eb7dec6321
--- /dev/null
+++ b/mail-filter/amavisd-new/amavisd-new-2.6.1.ebuild
@@ -0,0 +1,186 @@
+# Copyright 1999-2008 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.1.ebuild,v 1.1 2008/07/13 16:08:50 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 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="courier dkim ldap milter mysql postgres qmail"
+
+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
+ >=dev-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
+ virtual/mta
+ ldap? ( >=dev-perl/perl-ldap-0.33 )
+ mysql? ( dev-perl/DBD-mysql )
+ postgres? ( dev-perl/DBD-Pg )
+ dkim? ( >=dev-perl/Mail-DKIM-0.31 )"
+
+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.4.4-amavisd.conf-gentoo.patch"
+
+ if ! use dkim ; then
+ epatch "${FILESDIR}/${PN}-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 has_version mail-filter/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
+}
+
+pkg_postinst() {
+ if ! has_version mail-filter/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}
+}