summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLim Swee Tat <st_lim@gentoo.org>2005-04-10 15:17:41 +0000
committerLim Swee Tat <st_lim@gentoo.org>2005-04-10 15:17:41 +0000
commit1aa6f02034a86a7385c231c11b16cca7e1d740ab (patch)
treeb8df8beaeb5da167859d4a33b0a16abc6dd1bf7c
parentLots of new translations, also a better german one (diff)
downloadgentoo-2-1aa6f02034a86a7385c231c11b16cca7e1d740ab.tar.gz
gentoo-2-1aa6f02034a86a7385c231c11b16cca7e1d740ab.tar.bz2
gentoo-2-1aa6f02034a86a7385c231c11b16cca7e1d740ab.zip
Version bump for the qmail scanner spam assassin patch
(Portage version: 2.0.51.19)
-rw-r--r--mail-filter/qmail-scanner/ChangeLog8
-rw-r--r--mail-filter/qmail-scanner/Manifest2
-rw-r--r--mail-filter/qmail-scanner/files/digest-qmail-scanner-1.25-r12
-rw-r--r--mail-filter/qmail-scanner/qmail-scanner-1.25-r1.ebuild165
4 files changed, 176 insertions, 1 deletions
diff --git a/mail-filter/qmail-scanner/ChangeLog b/mail-filter/qmail-scanner/ChangeLog
index f28b31d35c2c..1bb32132665b 100644
--- a/mail-filter/qmail-scanner/ChangeLog
+++ b/mail-filter/qmail-scanner/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for mail-filter/qmail-scanner
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/qmail-scanner/ChangeLog,v 1.16 2005/04/05 08:25:10 st_lim Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/qmail-scanner/ChangeLog,v 1.17 2005/04/10 15:17:41 st_lim Exp $
+
+*qmail-scanner-1.25-r1 (10 Apr 2005)
+
+ 10 Apr 2005; Lim Swee Tat <st_lim@gentoo.org>
+ +qmail-scanner-1.25-r1.ebuild:
+ Version bump for the qmail scanner spam assassin patch
05 Apr 2005; Lim Swee Tat <st_lim@gentoo.org> qmail-scanner-1.25.ebuild:
Fixed bug #85365
diff --git a/mail-filter/qmail-scanner/Manifest b/mail-filter/qmail-scanner/Manifest
index 5f3ecb5e52c3..5c19ae9a40ec 100644
--- a/mail-filter/qmail-scanner/Manifest
+++ b/mail-filter/qmail-scanner/Manifest
@@ -5,6 +5,7 @@ MD5 ef262ca144dbe1dbe5465676b9c25eb0 qmail-scanner-1.25.ebuild 4964
MD5 f1762ab2c8011f076652a15bf4a0dcae qmail-scanner-1.16-r2.ebuild 2314
MD5 075ded87d1dffd21ac4d7064a618b1df qmail-scanner-1.23-r2.ebuild 4924
MD5 c6c7c65f324c8b50c958f3785a2aae73 qmail-scanner-1.23-r3.ebuild 4922
+MD5 9bd921c63805c0832bb225981aceaa94 qmail-scanner-1.25-r1.ebuild 4958
MD5 6f6fc9e3db3985ba4ae5a6203d2d6abf files/qmailscanner.cronjob 50
MD5 055c5ac64c689a669b8ccd6bc5f6553d files/qmailscanner.logrotate 147
MD5 b626340aa9646bcd929b6f8ce0e4a0e2 files/digest-qmail-scanner-1.24 139
@@ -12,4 +13,5 @@ MD5 ccef1593fec0a4c9435fe1d5dd881309 files/digest-qmail-scanner-1.25 140
MD5 21cbccfc2015bf74d509a5b329ef4b30 files/digest-qmail-scanner-1.16-r2 67
MD5 c6351759d589862bf81247f857fb2038 files/digest-qmail-scanner-1.23-r2 139
MD5 109da745344755ce96b85ccb255ff736 files/digest-qmail-scanner-1.23-r3 139
+MD5 ff83ea44513fae0bbfc5bcacbc34e394 files/digest-qmail-scanner-1.25-r1 140
MD5 1d80eca1d4792a4073f51eb59f02960b files/qmail-scanner-queue.pl.patch 240
diff --git a/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.25-r1 b/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.25-r1
new file mode 100644
index 000000000000..3d2b24164fae
--- /dev/null
+++ b/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.25-r1
@@ -0,0 +1,2 @@
+MD5 0117c425efb75208682fabcba4e1dd24 qmail-scanner-1.25.tgz 221156
+MD5 84e80920a33ab3cb9eb30aac6503f742 q-s-1.25st-20050406.patch.gz 124325
diff --git a/mail-filter/qmail-scanner/qmail-scanner-1.25-r1.ebuild b/mail-filter/qmail-scanner/qmail-scanner-1.25-r1.ebuild
new file mode 100644
index 000000000000..0cf6afab689c
--- /dev/null
+++ b/mail-filter/qmail-scanner/qmail-scanner-1.25-r1.ebuild
@@ -0,0 +1,165 @@
+# Copyright 1999-2005 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.25-r1.ebuild,v 1.1 2005/04/10 15:17:41 st_lim Exp $
+
+inherit fixheadtails gcc eutils
+
+Q_S_DATE=20050406
+DESCRIPTION="E-Mail virus scanner for qmail."
+HOMEPAGE="http://qmail-scanner.sourceforge.net/"
+SRC_URI="mirror://sourceforge/qmail-scanner/${P}.tgz
+ http://toribio.apollinare.org/qmail-scanner/download/q-s-${PV}st-${Q_S_DATE}.patch.gz"
+
+IUSE="spamassassin"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 sparc ~ppc ~amd64"
+
+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}
+ epatch ${DISTDIR}/q-s-${PV}st-${Q_S_DATE}.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
+
+ addpredict /var/log/kav/kavscan.log
+
+ use spamassassin && myconf="--virus-to-delete yes --sa-quarantine 2.1 --sa-delete 4.2 --sa-reject no --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"
+}