summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLim Swee Tat <st_lim@gentoo.org>2004-08-30 21:45:46 +0000
committerLim Swee Tat <st_lim@gentoo.org>2004-08-30 21:45:46 +0000
commit6fc727fbf5b92134c3f079e568a3650c63f120ec (patch)
tree2bc417eab1059fa935d4840b0d3ef3dc8588f3af /mail-filter
parentmarking 2.4.4 stable on ppc64 on an emergancy basis since only stable ebuild ... (diff)
downloadhistorical-6fc727fbf5b92134c3f079e568a3650c63f120ec.tar.gz
historical-6fc727fbf5b92134c3f079e568a3650c63f120ec.tar.bz2
historical-6fc727fbf5b92134c3f079e568a3650c63f120ec.zip
Using latest q-s code of 20040819.
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/qmail-scanner/ChangeLog7
-rw-r--r--mail-filter/qmail-scanner/Manifest12
-rw-r--r--mail-filter/qmail-scanner/files/digest-qmail-scanner-1.23-r32
-rw-r--r--mail-filter/qmail-scanner/qmail-scanner-1.23-r3.ebuild162
4 files changed, 177 insertions, 6 deletions
diff --git a/mail-filter/qmail-scanner/ChangeLog b/mail-filter/qmail-scanner/ChangeLog
index afb7ec74eef6..b2b2b39a075e 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.9 2004/08/18 14:34:21 st_lim Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/qmail-scanner/ChangeLog,v 1.10 2004/08/30 21:45:46 st_lim Exp $
+
+*qmail-scanner-1.23-r3 (31 Aug 2004)
+
+ 31 Aug 2004; Lim Swee Tat <st_lim@gentoo.org> +qmail-scanner-1.23-r3.ebuild:
+ Using latest q-s code of 20040819.
*qmail-scanner-1.23-r2 (18 Aug 2004)
diff --git a/mail-filter/qmail-scanner/Manifest b/mail-filter/qmail-scanner/Manifest
index f620f1131098..348ec8e6c1c9 100644
--- a/mail-filter/qmail-scanner/Manifest
+++ b/mail-filter/qmail-scanner/Manifest
@@ -1,9 +1,11 @@
-MD5 8df5eee0c1201425126e5133a29c8d84 ChangeLog 4205
-MD5 5721b86fd871bdfab77231abc6e02f68 metadata.xml 161
-MD5 7321b01e7d7a3fb311f6f892ed290f50 qmail-scanner-1.16-r2.ebuild 2314
+MD5 bcb2b61b8f4e887cbf49c25c0b17ce74 qmail-scanner-1.23-r3.ebuild 4924
MD5 1cf3518549dde5589d2e6e89772c1149 qmail-scanner-1.23-r2.ebuild 4926
-MD5 21cbccfc2015bf74d509a5b329ef4b30 files/digest-qmail-scanner-1.16-r2 67
-MD5 1d80eca1d4792a4073f51eb59f02960b files/qmail-scanner-queue.pl.patch 240
+MD5 7321b01e7d7a3fb311f6f892ed290f50 qmail-scanner-1.16-r2.ebuild 2314
+MD5 fd76230c7e3238d3ee6cff9999c834bc ChangeLog 4361
+MD5 5721b86fd871bdfab77231abc6e02f68 metadata.xml 161
MD5 6f6fc9e3db3985ba4ae5a6203d2d6abf files/qmailscanner.cronjob 50
MD5 055c5ac64c689a669b8ccd6bc5f6553d files/qmailscanner.logrotate 147
+MD5 1d80eca1d4792a4073f51eb59f02960b files/qmail-scanner-queue.pl.patch 240
+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
diff --git a/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.23-r3 b/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.23-r3
new file mode 100644
index 000000000000..562c61d4c188
--- /dev/null
+++ b/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.23-r3
@@ -0,0 +1,2 @@
+MD5 d16e912b89126b2d957f86bf78d52be5 qmail-scanner-1.23.tgz 153107
+MD5 24bf487a3d41eff4c4d36455785819e6 q-s-1.23st-20040819.patch.gz 86633
diff --git a/mail-filter/qmail-scanner/qmail-scanner-1.23-r3.ebuild b/mail-filter/qmail-scanner/qmail-scanner-1.23-r3.ebuild
new file mode 100644
index 000000000000..089f76f38b19
--- /dev/null
+++ b/mail-filter/qmail-scanner/qmail-scanner-1.23-r3.ebuild
@@ -0,0 +1,162 @@
+# 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-r3.ebuild,v 1.1 2004/08/30 21:45:46 st_lim Exp $
+
+inherit fixheadtails gcc eutils
+
+Q_S_DATE=20040819
+DESCRIPTION="E-Mail virus scanner for qmail."
+HOMEPAGE="http://qmail-scanner.sourceforge.net/"
+SRC_URI="mirror://sourceforge/qmail-scanner/${P}.tgz
+ http://xoomer.virgilio.it/j.toribio/qmail-scanner/download/q-s-${PV}st-${Q_S_DATE}.patch.gz"
+
+IUSE="spamassassin"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~sparc ~ppc"
+
+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
+ 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"
+}