diff options
author | Lim Swee Tat <st_lim@gentoo.org> | 2004-08-16 04:53:41 +0000 |
---|---|---|
committer | Lim Swee Tat <st_lim@gentoo.org> | 2004-08-16 04:53:41 +0000 |
commit | e1c61fff59393c0a33f369241f2396b27a9710d2 (patch) | |
tree | 1599ef24c0528d833af26f3e90614f45a67d8aa6 /mail-filter | |
parent | cleanup (diff) | |
download | historical-e1c61fff59393c0a33f369241f2396b27a9710d2.tar.gz historical-e1c61fff59393c0a33f369241f2396b27a9710d2.tar.bz2 historical-e1c61fff59393c0a33f369241f2396b27a9710d2.zip |
Added qmail-scanner spamassassin patch
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/qmail-scanner/ChangeLog | 7 | ||||
-rw-r--r-- | mail-filter/qmail-scanner/Manifest | 4 | ||||
-rw-r--r-- | mail-filter/qmail-scanner/files/digest-qmail-scanner-1.23-r1 | 2 | ||||
-rw-r--r-- | mail-filter/qmail-scanner/qmail-scanner-1.23-r1.ebuild | 161 |
4 files changed, 172 insertions, 2 deletions
diff --git a/mail-filter/qmail-scanner/ChangeLog b/mail-filter/qmail-scanner/ChangeLog index e932a914bfbd..4f17a956b348 100644 --- a/mail-filter/qmail-scanner/ChangeLog +++ b/mail-filter/qmail-scanner/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for mail-filter/qmail-scanner # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/qmail-scanner/ChangeLog,v 1.6 2004/08/14 21:53:44 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/qmail-scanner/ChangeLog,v 1.7 2004/08/16 04:53:41 st_lim Exp $ + +*qmail-scanner-1.23-r1 (16 Aug 2004) + + 16 Aug 2004; Lim Swee Tat <st_lim@gentoo.org> +qmail-scanner-1.23-r1.ebuild: + Added the qmail-scanner spamassassin patch *qmail-scanner-1.23 (14 Aug 2004) diff --git a/mail-filter/qmail-scanner/Manifest b/mail-filter/qmail-scanner/Manifest index f4b5ce5aa0b4..fbe545ed1325 100644 --- a/mail-filter/qmail-scanner/Manifest +++ b/mail-filter/qmail-scanner/Manifest @@ -1,9 +1,10 @@ MD5 792e9b596d840233436101caf6c106f5 qmail-scanner-1.16.ebuild 2563 +MD5 efefcf5efa31194b85fbda26a1c421ba qmail-scanner-1.23-r1.ebuild 4928 MD5 92c45eef552c016e9bb044d8f8accd25 qmail-scanner-1.16-r1.ebuild 2565 MD5 986237e9e7a53bb374dd4cb55213bbed qmail-scanner-1.22-r1.ebuild 4890 MD5 7321b01e7d7a3fb311f6f892ed290f50 qmail-scanner-1.16-r2.ebuild 2314 MD5 daeada31932e229dcc51ebf4b5b193df qmail-scanner-1.23.ebuild 4932 -MD5 5b7e3fb4517e93a3049ab4bf602064e7 ChangeLog 3653 +MD5 75f9685402f72893092124076030ceb2 ChangeLog 3815 MD5 5721b86fd871bdfab77231abc6e02f68 metadata.xml 161 MD5 beb74fb9980c2a0c58171cc7198862ca qmail-scanner-1.20.ebuild 4404 MD5 6f6fc9e3db3985ba4ae5a6203d2d6abf files/qmailscanner.cronjob 50 @@ -15,3 +16,4 @@ MD5 1d80eca1d4792a4073f51eb59f02960b files/qmail-scanner-queue.pl.patch 240 MD5 21cbccfc2015bf74d509a5b329ef4b30 files/digest-qmail-scanner-1.16-r1 67 MD5 21cbccfc2015bf74d509a5b329ef4b30 files/digest-qmail-scanner-1.16-r2 67 MD5 27df0427325d13d6974b9d0b4faf112e files/digest-qmail-scanner-1.22-r1 139 +MD5 148b78c4a68db8d47c44cef535b3685f files/digest-qmail-scanner-1.23-r1 139 diff --git a/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.23-r1 b/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.23-r1 new file mode 100644 index 000000000000..a0c6de301937 --- /dev/null +++ b/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.23-r1 @@ -0,0 +1,2 @@ +MD5 d16e912b89126b2d957f86bf78d52be5 qmail-scanner-1.23.tgz 153107 +MD5 f09df2d19e4a9eaedab72c03e6270c74 q-s-1.23st-20040815.patch.gz 86193 diff --git a/mail-filter/qmail-scanner/qmail-scanner-1.23-r1.ebuild b/mail-filter/qmail-scanner/qmail-scanner-1.23-r1.ebuild new file mode 100644 index 000000000000..5ad5ffe89b3e --- /dev/null +++ b/mail-filter/qmail-scanner/qmail-scanner-1.23-r1.ebuild @@ -0,0 +1,161 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/qmail-scanner/qmail-scanner-1.23-r1.ebuild,v 1.1 2004/08/16 04:53:41 st_lim Exp $ + +inherit fixheadtails gcc eutils + +DESCRIPTION="E-Mail virus scanner for qmail." +HOMEPAGE="http://qmail-scanner.sourceforge.net/" +SRC_URI="mirror://sourceforge/qmail-scanner/${P}.tgz + spamassassin? (http://xoomer.virgilio.it/j.toribio/qmail-scanner/download/q-s-1.23st-20040815.patch.gz)" + +IUSE="spamassassin" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~sparc" + +DEPEND=">=dev-lang/perl-5.6.1-r1 + >=dev-perl/Time-HiRes-01.20-r2 + >=net-mail/tnef-1.1.1 + >=dev-perl/DB_File-1.803-r2 + >=net-mail/ripmime-1.3.0.4 + || ( + >=mail-mta/qmail-1.03-r8 + >=mail-mta/qmail-ldap-1.03-r1 + mail-mta/qmail-mysql + ) + >=app-arch/unzip-5.42-r1 + virtual/antivirus + spamassassin ( >=mail-filter/spamassassin-2.64 )" + +pkg_setup() { + enewgroup qscand 210 + enewuser qscand 210 /bin/false /var/spool/qmailscan qscand +} + +pkg_preinst() { + local oldname="/var/qmail/bin/qmail-scanner-queue.pl" + if [ -f ${oldname} ]; then + newname=${oldname}.`date +%Y%m%d%H%M%S` + einfo "Backing up old qmail-scanner as $newname in case of modifications." + cp ${oldname} ${newname} + chmod 600 ${newname} + fi +} + +src_unpack() { + unpack ${A} + cd ${S} + use spamassassin && epatch ${DISTDIR}/q-s-1.23st-20040815.patch.gz + ht_fix_file autoupdaters/* configure + + EXTRA_VIRII="bagle,beagle,mydoom,sco,maldal,mimail,novarg,shimg,bugler,cissi,cissy,dloade,netsky,qizy" + einfo "Adding items to the SILENT_VIRUSES list (${EXTRA_VIRII})" + sed -e "/^SILENT_VIRUSES/s/\"$/,${EXTRA_VIRII}\"/g" -i configure +} + +src_compile () { + local myconf + use spamassassin && myconf="--virus-to-delete yes --sa-quarantine 2.1 --sa-delete 4.2 --sa-reject yes --sa-subject SPAM: --sa-delta 0.5 --sa-alt yes" + + PATH=${PATH}:/opt/f-prot:/opt/vlnx ./configure \ + --domain localhost \ + --batch \ + --log-details yes \ + --mime-unpacker "ripmime" \ + --skip-setuid-test \ + ${myconf} \ + || die "./configure failed!" + + # build for qmail-scanner-queue wrapper, so we don't need suidperl + cd contrib + `gcc-getCC` ${CFLAGS} -o qmail-scanner-queue qmail-scanner-queue.c || die +} + +src_install () { + # Create Directory Structure + diropts -m 755 -o qscand -g qscand + dodir /var/spool/qmailscan + keepdir /var/spool/qmailscan + diropts -m 750 -o qscand -g qscand + for i in quarantine working archive; do + for j in tmp new cur; do + dodir /var/spool/qmailscan/${i}/${j} + keepdir /var/spool/qmailscan/${i}/${j} + done + done + dodir /var/spool/qmailscan/tmp + keepdir /var/spool/qmailscan/tmp + + # Install standard quarantine attachments file + insinto /var/spool/qmailscan + insopts -m 644 -o qscand -g qscand + doins quarantine-attachments.txt + + # create quarantine.log and viruses.log + touch quarantine.log + insinto /var/spool/qmailscan + insopts -m 644 -o qscand -g qscand + doins quarantine.log + dosym quarantine.log ${DESTDIR}/var/spool/qmailscan/viruses.log + + # Install qmail-scanner wrapper + insinto /var/qmail/bin + insopts -m 4755 -o qscand -g qscand + doins contrib/qmail-scanner-queue + + # Install qmail-scanner script + insinto /var/qmail/bin + insopts -m 0755 -o qscand -g qscand + doins qmail-scanner-queue.pl + + insinto /etc/logrotate.d/ + insopts -m 644 -o root -g root + newins ${FILESDIR}/qmailscanner.logrotate qmail-scanner + + exeinto /etc/cron.daily/ + newexe ${FILESDIR}/qmailscanner.cronjob qmail-scanner + + # Install documentation + dodoc README CHANGES COPYING + dohtml README.html FAQ.php TODO.php configure-options.php manual-install.php perlscanner.php + + docinto contrib + cd ${S}/contrib + dodoc spamc-nice.eml + dodoc test-trophie.pl + dodoc logrotate.qmailscanner + dodoc sub-avpdaemon.pl + dodoc logging_first_80_chars.eml + dodoc spamc-nasty.eml + dodoc avpdeamon.init + dodoc test_installation.sh + dodoc test-sophie.pl + dodoc reformime-test.eml + dodoc sub-sender-cache.pl + dodoc rbl_scanner.txt + dodoc test-clamd.pl + dodoc qs2mrtg.pl + dodoc mrtg-qmail-scanner.cfg +} + +pkg_postinst () { + einfo "Fixing ownerships" + chown -R qscand:qscand /var/spool/qmailscan/tmp /var/spool/qmailscan/working /var/spool/qmailscan/quarantine* /var/spool/qmailscan/archive /var/spool/qmailscan/qmail* + touch /var/qmail/bin/qmail-scanner-queue.pl + + # Setup perlscanner + Version Info + chmod -s ${ROOT}/var/qmail/bin/qmail-scanner-queue.pl + ${ROOT}/var/qmail/bin/qmail-scanner-queue -z + ${ROOT}/var/qmail/bin/qmail-scanner-queue -g + + einfo "To activate qmail-scanner, please edit your" + einfo "/var/qmail/control/conf-common file and set:" + einfo "export QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue" + einfo "Or place it in your tcprules file." + ewarn "Please note that it was a call to qmail-scanner-queue.pl before," + ewarn "but this is now changed to use a wrapper to improve security!" + ewarn "Once you have changed to the wrapper, you can remove the setuid " + ewarn "bit on qmail-scanner-queue.pl" +} |