diff options
author | Andrej Kacian <ticho@gentoo.org> | 2005-05-10 14:56:31 +0000 |
---|---|---|
committer | Andrej Kacian <ticho@gentoo.org> | 2005-05-10 14:56:31 +0000 |
commit | 09dd0034ef7035bb839ebb10fec00c17ff99b9ba (patch) | |
tree | a68f62fba22d252bb7e49fea2d50335c0113134f /mail-filter/amavisd-new | |
parent | we don't support Qt 2 anymore, #79720 (diff) | |
download | gentoo-2-09dd0034ef7035bb839ebb10fec00c17ff99b9ba.tar.gz gentoo-2-09dd0034ef7035bb839ebb10fec00c17ff99b9ba.tar.bz2 gentoo-2-09dd0034ef7035bb839ebb10fec00c17ff99b9ba.zip |
Version bump.
(Portage version: 2.0.51.21-r1)
Diffstat (limited to 'mail-filter/amavisd-new')
-rw-r--r-- | mail-filter/amavisd-new/ChangeLog | 9 | ||||
-rw-r--r-- | mail-filter/amavisd-new/Manifest | 12 | ||||
-rw-r--r-- | mail-filter/amavisd-new/amavisd-new-2.3.1.ebuild | 170 | ||||
-rw-r--r-- | mail-filter/amavisd-new/files/digest-amavisd-new-2.3.1 | 1 |
4 files changed, 181 insertions, 11 deletions
diff --git a/mail-filter/amavisd-new/ChangeLog b/mail-filter/amavisd-new/ChangeLog index eb00ea993ff8..3a1af0968d4e 100644 --- a/mail-filter/amavisd-new/ChangeLog +++ b/mail-filter/amavisd-new/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for mail-filter/amavisd-new # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavisd-new/ChangeLog,v 1.30 2005/05/08 18:37:55 ticho Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavisd-new/ChangeLog,v 1.31 2005/05/10 14:56:31 ticho Exp $ + +*amavisd-new-2.3.1 (10 May 2005) + + 10 May 2005; Andrej Kacian <ticho@gentoo.org> +amavisd-new-2.3.1.ebuild: + Version bump, reported by Sune Kloppenborg Jeppesen <jaervosz@gentoo.org>. + Also removed dependency on dev-perl/Digest-MD5, since Digest::MD5 is now + part of perl distribution. 08 May 2005; Andrej Kacian <ticho@gentoo.org> amavisd-new-2.3.0.ebuild: Fixed qmail-lp-fix patch name for 2.3.0. Thanks go to Francesco Riosa diff --git a/mail-filter/amavisd-new/Manifest b/mail-filter/amavisd-new/Manifest index 22b48fed935c..ce47525db7f0 100644 --- a/mail-filter/amavisd-new/Manifest +++ b/mail-filter/amavisd-new/Manifest @@ -1,6 +1,4 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - +MD5 99f5015ea71e2a16932860b35ccbe598 amavisd-new-2.3.1.ebuild 4805 MD5 1a4094b9cdba0a76b97e7efe8b193ca2 amavisd-new-2.2.1-r2.ebuild 5080 MD5 5c214c88c92ca3d187dac35c86e9a3b6 amavisd-new-2.3.0.ebuild 4928 MD5 0d78e40f5c429dce29343001eca9444a amavisd-new-2.2.1-r1.ebuild 4813 @@ -12,13 +10,7 @@ MD5 ccd66b725ef1b2e2ed20d4a1057b03b8 files/amavisd-new-2.2.1-amavisd.conf-gentoo MD5 ee33de51df853bd8426a4304f264245f files/amavisd-new-2.2.1-qmail-lf-workaround.patch 688 MD5 1ec247b48d1de4fdbc2a57fc9b338681 files/digest-amavisd-new-2.2.1 69 MD5 20d1361125dc21db61b44dec3a13dea2 files/digest-amavisd-new-2.3.0 69 +MD5 d7ee87336e865f363c430fc60f105d44 files/digest-amavisd-new-2.3.1 69 MD5 1ec247b48d1de4fdbc2a57fc9b338681 files/digest-amavisd-new-2.2.1-r1 69 MD5 1ec247b48d1de4fdbc2a57fc9b338681 files/digest-amavisd-new-2.2.1-r2 69 MD5 13504b8528cc13c668935ff82a0680f1 files/amavisd-new-2.3.0-amavisd.conf-gentoo.patch 6687 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.1 (GNU/Linux) - -iD8DBQFCflybQlM6RnzZP+IRAjBhAJ9a/Ywm4Xwd1cWijkKGOe4wmFUPagCgl/4i -o+sguPNA+gnMYugfvjx/xUs= -=9MhT ------END PGP SIGNATURE----- diff --git a/mail-filter/amavisd-new/amavisd-new-2.3.1.ebuild b/mail-filter/amavisd-new/amavisd-new-2.3.1.ebuild new file mode 100644 index 000000000000..320b2a2e74b5 --- /dev/null +++ b/mail-filter/amavisd-new/amavisd-new-2.3.1.ebuild @@ -0,0 +1,170 @@ +# Copyright 1999-2005 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.3.1.ebuild,v 1.1 2005/05/10 14:56:31 ticho 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="~x86 ~ppc ~amd64 ~sparc ~alpha ~ppc64" +IUSE="ldap mysql postgres milter" + +DEPEND=">=sys-apps/sed-4 + >=dev-lang/perl-5.8.2" + +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/zoo + dev-perl/Archive-Tar + >=dev-perl/Archive-Zip-1.14 + dev-perl/Compress-Zlib + dev-perl/Convert-TNEF + >=dev-perl/Convert-UUlib-1.051 + dev-perl/MIME-Base64 + >=dev-perl/MIME-tools-5.415 + >=dev-perl/MailTools-1.58 + dev-perl/net-server + >=dev-perl/libnet-1.16 + dev-perl/IO-stringy + >=dev-perl/Time-HiRes-1.49 + dev-perl/Unix-Syslog + >=sys-libs/db-3.1 + dev-perl/BerkeleyDB + virtual/mta + virtual/antivirus + ldap? ( dev-perl/perl-ldap ) + mysql? ( dev-perl/DBD-mysql ) + postgres? ( dev-perl/DBD-Pg ) + milter? ( >=mail-mta/sendmail-8.12 )" + +AMAVIS_ROOT=/var/amavis + +src_unpack() { + unpack ${A} + cd ${S} + if $(has_version mail-mta/courier) ; then + einfo "Patching with courier support." + epatch "amavisd-new-courier.patch" || die "patch failed" + fi + + if $(has_version mail-mta/qmail) || $(has_version mail-mta/qmail-ldap) ; then + einfo "Patching with qmail qmqp support." + epatch "amavisd-new-qmqpqq.patch" || die "patch failed" + + einfo "Patching with qmail lf bug workaround." + epatch "${FILESDIR}/${PN}-2.2.1-qmail-lf-workaround.patch" || die "patch failed" + fi + + epatch "${FILESDIR}/${PN}-2.3.0-amavisd.conf-gentoo.patch" || die "patch failed" +} + +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 + + insinto /etc + insopts -m0640 + newins amavisd.conf-sample amavisd.conf + fowners root:amavis /etc/amavisd.conf + dosed "s:^#\\?\\\$MYHOME[^;]*;:\$MYHOME = '$AMAVIS_ROOT';:" \ + /etc/amavisd.conf + if [ "$(domainname)" = "(none)" ] ; then + dosed "s:^#\\?\\\$mydomain[^;]*;:\$mydomain = '$(hostname)';:" \ + /etc/amavisd.conf + else + dosed "s:^#\\?\\\$mydomain[^;]*;:\$mydomain = '$(domainname)';:" \ + /etc/amavisd.conf + fi + if ! $(has_version mail-filter/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 + + 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 + + if $(has_version net-nds/openldap ) ; then + einfo "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 + + newdoc test-messages/README README.samples + dodoc AAAREADME.first INSTALL LICENSE MANIFEST RELEASE_NOTES \ + README_FILES/* test-messages/sample-* amavisd.conf-default amavisd-agent + + if use milter ; then + cd "${S}/helper-progs" + einstall + fi +} + +pkg_postinst() { + enewgroup amavis + enewuser amavis -1 /bin/false ${AMAVIS_ROOT} amavis + + for i in whitelist blacklist spam_lovers; do + if [ ! -f ${AMAVIS_ROOT}/${i} ]; then + touch ${AMAVIS_ROOT}/${i} + fi + done + + if $(has_version mail-filter/razor) ; then + einfo "Setting up initial razor config files..." + + razor-admin -create -home=${ROOT}${AMAVIS_ROOT}/.razor + sed -i -e "s:debuglevel\([ ]*\)= .:debuglevel\1= 0:g" \ + ${ROOT}${AMAVIS_ROOT}/.razor/razor-agent.conf + fi + + chown -R amavis:amavis ${AMAVIS_ROOT} + find ${AMAVIS_ROOT} -name "*" -type d -exec chmod 0750 \{\} \; + find ${AMAVIS_ROOT} -name "*" -type f -exec chmod 0640 \{\} \; + + if ! $(has_version mail-filter/spamassassin) ; then + echo + einfo "Amavisd-new no longer requires SpamAssassin, but no anti-spam checking" + einfo "will be performed without it. Since you do not have SpamAssassin installed," + einfo "all spam checks have been disabled. To enable them, install SpamAssassin" + einfo "and comment out the line containing: " + einfo "@bypass_virus_checks_maps = (1); in /etc/amavisd.conf." + fi + echo + ewarn "Adjusting permissions for /etc/amavisd.conf (0 for world, owner root:amavis)" + chmod o-rwx /etc/amavisd.conf + chown root:amavis /etc/amavisd.conf +} diff --git a/mail-filter/amavisd-new/files/digest-amavisd-new-2.3.1 b/mail-filter/amavisd-new/files/digest-amavisd-new-2.3.1 new file mode 100644 index 000000000000..78eefbe3f954 --- /dev/null +++ b/mail-filter/amavisd-new/files/digest-amavisd-new-2.3.1 @@ -0,0 +1 @@ +MD5 5260e01b6ec94b66dc9160ce7bbb8ebc amavisd-new-2.3.1.tar.gz 780829 |