summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2009-10-14 07:17:50 +0000
committerAlfredo Tupone <tupone@gentoo.org>2009-10-14 07:17:50 +0000
commit3269b76169080704f7894675315ef0b1d132d921 (patch)
tree78a0400710cc8db11eb8b0f4c4fe827a31c9b294 /mail-filter/qmail-scanner
parentadd missing xmlto dependency as was noticed on irc #gentoo (by I forget who).... (diff)
downloadhistorical-3269b76169080704f7894675315ef0b1d132d921.tar.gz
historical-3269b76169080704f7894675315ef0b1d132d921.tar.bz2
historical-3269b76169080704f7894675315ef0b1d132d921.zip
Version bump to 2.08. Bug #287217
Package-Manager: portage-2.1.6.13/cvs/Linux i686
Diffstat (limited to 'mail-filter/qmail-scanner')
-rw-r--r--mail-filter/qmail-scanner/ChangeLog8
-rw-r--r--mail-filter/qmail-scanner/Manifest6
-rw-r--r--mail-filter/qmail-scanner/files/qmail-scanner-2.08.logrotate4
-rw-r--r--mail-filter/qmail-scanner/qmail-scanner-2.08.ebuild193
4 files changed, 209 insertions, 2 deletions
diff --git a/mail-filter/qmail-scanner/ChangeLog b/mail-filter/qmail-scanner/ChangeLog
index 44b4ff0a3222..7504323391b5 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-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/qmail-scanner/ChangeLog,v 1.54 2009/06/25 07:40:35 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/qmail-scanner/ChangeLog,v 1.55 2009/10/14 07:17:49 tupone Exp $
+
+*qmail-scanner-2.08 (14 Oct 2009)
+
+ 14 Oct 2009; Tupone Alfredo <tupone@gentoo.org>
+ +files/qmail-scanner-2.08.logrotate, +qmail-scanner-2.08.ebuild:
+ Version bump to 2.08. Bug #287217 by Arseny Solokha
25 Jun 2009; Alfredo Tupone <tupone@gentoo.org> qmail-scanner-2.06.ebuild:
Fix detection of maildrop version. Bug #272228 by David Sveningsson and Bug
diff --git a/mail-filter/qmail-scanner/Manifest b/mail-filter/qmail-scanner/Manifest
index 7a004b18cd80..ae1b1fc7651c 100644
--- a/mail-filter/qmail-scanner/Manifest
+++ b/mail-filter/qmail-scanner/Manifest
@@ -1,16 +1,20 @@
AUX qmail-scanner-2.05.logrotate 135 RMD160 2958597e646453f198ec6a4a3533e9b9398c9fe7 SHA1 f31c44239f9d56af3d4be6b422b3a4a834351748 SHA256 d61514a06570b55089915c134beefe5222eaa1199cba7afbe91681b7d67248f5
AUX qmail-scanner-2.06.logrotate 135 RMD160 2958597e646453f198ec6a4a3533e9b9398c9fe7 SHA1 f31c44239f9d56af3d4be6b422b3a4a834351748 SHA256 d61514a06570b55089915c134beefe5222eaa1199cba7afbe91681b7d67248f5
+AUX qmail-scanner-2.08.logrotate 135 RMD160 2958597e646453f198ec6a4a3533e9b9398c9fe7 SHA1 f31c44239f9d56af3d4be6b422b3a4a834351748 SHA256 d61514a06570b55089915c134beefe5222eaa1199cba7afbe91681b7d67248f5
AUX qmail-scanner-queue.pl.patch 240 RMD160 6d644003bb6386ad2e21e775352fe01bf8cc81c1 SHA1 98be0f8c45f7917ea809a68c19627217b8c4c3d7 SHA256 77f09de11c2d448c17dd0b377cae3cedd756e404b1e611e2bf69e74d7e05be8e
AUX qmailscanner.cronjob 50 RMD160 afec02a08f7824fbea506b14372af9ea62270b8a SHA1 773b938347d27a042537cd925543fdde732231a2 SHA256 09354f2ef42b6423a5947d004a4d3bf76355aafaf11a0db12052bf088115dee1
AUX qmailscanner.logrotate 147 RMD160 d4eccf7f1169a448c0ce8115f426214927935385 SHA1 d3f763ed9dd1ba8a9c41837e5110950c14b40591 SHA256 eae732e0be2ace1ddcd4cc17a9c6a54012684c76dd30faa5349d394f3befc62f
DIST q-s-1.25st-20050406.patch.gz 124325 RMD160 162f325c0d77deaca4f49f06bf4cb6b6e0b548f5 SHA1 fb1b516b4ace278a1834a264690a1e1927ded530 SHA256 a758b902150f432cc0fa0cc76448bf975e75395ab6b614ca1d8f3be64ab6535a
DIST q-s-2.05st-20080728.patch.gz 102235 RMD160 6983d3481fe3163d2e833e04d2c34132f22cbe05 SHA1 b403abe1b8dccb1038a83a16c411e0e62e1f7880 SHA256 03f6b5c030fcd95a726b15b68ce722495b73cea406356fe00a51f0f52c0aa840
DIST q-s-2.06st-20090419.patch.gz 103486 RMD160 431874e279ed18c66bcb12441486adc9daae10b6 SHA1 468c4e46aa88f6c927ccba0935592c64897beac6 SHA256 449505268534d843d4d95377dac2ea220d6e3eca0a31800acc5212d4f6cb25eb
+DIST q-s-2.08st-20091012.patch.gz 103757 RMD160 138653bd57d93bd8e778e9c1fe6af017b58377b8 SHA1 3cf2c8a40c94ddbe22910bfa1df1e08214a1ace8 SHA256 609992f877d8784f74a3006db963c850f1bac6b112c530d4f5e3a50fbbeb37af
DIST qmail-scanner-1.25.tgz 221156 RMD160 404feea1291ff4f40d7041f112ed86352735a88f SHA1 d8bf1b968eaec64309404f3253e513e1ae6d5cac SHA256 6fa5743a0d180bc4d1a626c4bf56c06a29ec3c0d7cb2ce834add8faceefb9c01
DIST qmail-scanner-2.05.tgz 237577 RMD160 15119ae1d7163d414258403834c325907a4984b3 SHA1 86423f3f37853374ecdcb6e672dc55c01945752c SHA256 add5d19669838ea8d2fa414051b4d12d1eacba54a0d8a93b7af4c886cd9f6697
DIST qmail-scanner-2.06.tgz 238926 RMD160 024ed070dbeaf4b256460e117493a7006b5d9034 SHA1 ad7eafe5e76256b566733f6f58321869a4a14a1b SHA256 6330e97382efaf2d3ac40674cc1b09f394b7591cd4a7b6e2514eda334d144b09
+DIST qmail-scanner-2.08.tgz 239667 RMD160 6adadc33fccbe13856ebf03c70477a86ed9abcd3 SHA1 8ec80d5cb5426bf45c0c70a2978487203e5923f6 SHA256 d5db0ac6fccc8febaffb9f66bc2b926323f52247036d3754e7e38ed5977d6ca4
EBUILD qmail-scanner-1.25-r1.ebuild 4973 RMD160 ecbc10a6526914658bede8764244f16dcbc5abbb SHA1 5e6789b505eac4a24c8bda64fb3a820834cd0f2b SHA256 95fa3a9f8276b39ebff3f16e6e4f522d45103a712661583743a6035b26ef3645
EBUILD qmail-scanner-2.05.ebuild 5582 RMD160 942a3e0b01dc5051c86fc600a51fdd26fc75f713 SHA1 4e32d3d6b4dd8a422a3dfce2108a527d12046b7b SHA256 384207d3bf382c9f7464a0d3a73e20f5b3b57e5db4e8e02735fe92baf0e700e2
EBUILD qmail-scanner-2.06.ebuild 5606 RMD160 ab327f0cb3c3e33cea3e73bddc3347976682796d SHA1 5de21f48426f7d9e03df1b7fbfab3ab0c23d4f76 SHA256 38b69a3c89d9f8f1746e02facb1c1fb3bcd6f449107117d76e4248a4cbe70e25
-MISC ChangeLog 11829 RMD160 c3138b175c380c48526d990d71e5a7f8e72078e3 SHA1 9d4d22f4618d776dc5b145d3a55d2d43b7031682 SHA256 1e45e3f474f524cee81f4aafc396479dc38cc8f8913ae30b5cad531a7b2ce103
+EBUILD qmail-scanner-2.08.ebuild 5649 RMD160 6ec24635e1e8662f981180f2d82d37b0010d7f85 SHA1 7751517b32c156b1f68029886d33780cda8976a7 SHA256 4058e65af48f67c95af2d91f986dfc21ac6a241d272424f981bb07103ffeefd3
+MISC ChangeLog 12036 RMD160 ddf627b73826ab12efd75ba36a827a35e16e4a37 SHA1 62f8ce4cf365b3ac2c2c99ccb86af17e3fa8c2a4 SHA256 c87deeb461ab4f2f1de7d5a1009cbe767ec1b197ad9f6dc9e26b87caddce5f83
MISC metadata.xml 282 RMD160 6047a02ca8e523b09e783bbe055f9f7cb62b0016 SHA1 4569f60d2043a11bf769109750076c03327b26e5 SHA256 48e16cc43d5cf9869e871f9779e3188fbb3321a16a119c19e5f8d7cdf08649bd
diff --git a/mail-filter/qmail-scanner/files/qmail-scanner-2.08.logrotate b/mail-filter/qmail-scanner/files/qmail-scanner-2.08.logrotate
new file mode 100644
index 000000000000..a0f3cbd880e8
--- /dev/null
+++ b/mail-filter/qmail-scanner/files/qmail-scanner-2.08.logrotate
@@ -0,0 +1,4 @@
+/var/spool/qscan/qmail-queue.log /var/spool/qscan/quarantine.log /var/spool/qscan/mailstats.csv {
+ weekly
+ create 0600 qscand qscand
+}
diff --git a/mail-filter/qmail-scanner/qmail-scanner-2.08.ebuild b/mail-filter/qmail-scanner/qmail-scanner-2.08.ebuild
new file mode 100644
index 000000000000..034a6d313305
--- /dev/null
+++ b/mail-filter/qmail-scanner/qmail-scanner-2.08.ebuild
@@ -0,0 +1,193 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/qmail-scanner/qmail-scanner-2.08.ebuild,v 1.1 2009/10/14 07:17:49 tupone Exp $
+EAPI=2
+
+inherit fixheadtails toolchain-funcs eutils
+
+Q_S_DATE=20091012
+DESCRIPTION="E-Mail virus scanner for qmail."
+HOMEPAGE="http://qmail-scanner.sourceforge.net/
+ http://toribio.apollinare.org/qmail-scanner/"
+SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tgz
+ http://toribio.apollinare.org/qmail-scanner/download/q-s-${PV}st-${Q_S_DATE}.patch.gz"
+
+IUSE="clamav spamassassin"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+RESTRICT="userpriv"
+
+RDEPEND="dev-lang/perl
+ virtual/perl-Time-HiRes
+ net-mail/tnef
+ virtual/perl-DB_File
+ mail-filter/maildrop
+ virtual/qmail
+ app-arch/unzip
+ sys-process/daemontools
+ clamav? ( app-antivirus/clamav )
+ spamassassin? ( mail-filter/spamassassin )"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ enewgroup qscand 210
+ enewuser qscand 210 -1 /var/spool/qscan qscand
+ use clamav && usermod -a -G qscand,nofiles clamav
+}
+
+pkg_preinst() {
+ local oldname="/var/qmail/bin/qmail-scanner-queue.pl"
+ if [ -f ${oldname} ]; then
+ newname=${oldname}.`date +%Y%m%d%H%M%S`
+ elog "Backing up old qmail-scanner as $newname in case of modifications."
+ cp ${oldname} ${newname}
+ chmod 600 ${newname}
+ fi
+}
+
+src_prepare() {
+ epatch "${DISTDIR}"/q-s-${PV}st-${Q_S_DATE}.patch.gz
+ ht_fix_file autoupdaters/* configure
+ sed -i \
+ -e "s:/var/spool/qscand:/var/spool/qscan:g" \
+ README-st-patch.html \
+ README-st-patch.txt || die "Fixing doc with sed failed"
+
+ EXTRA_VIRII="bagle,beagle,mydoom,sco,maldal,mimail,novarg,shimg,bugler,cissi,cissy,dloade,netsky,qizy"
+ elog "Adding items to the SILENT_VIRUSES list (${EXTRA_VIRII})"
+ sed -i \
+ -e "/^SILENT_VIRUSES/s/\"$/,${EXTRA_VIRII}\"/g" \
+ -e '/DD/s/1\\.0/ 1\\.0/' \
+ configure
+}
+
+src_configure() {
+ local myconf
+
+ addpredict /var/log/kav/kavscan.log
+ addpredict /opt/bdc/plugins.htm
+
+ 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 \
+ --skip-setuid-test \
+ ${myconf} \
+ || die "./configure failed!"
+
+ # build for qmail-scanner-queue wrapper, so we don't need suidperl
+ cd contrib
+ $(tc-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/qscan
+ keepdir /var/spool/qscan
+ diropts -m 750 -o qscand -g qscand
+ dodir /var/spool/qscan/quarantine
+ for i in quarantine/{viruses,policy,spam} working archives; do
+ for j in tmp new cur; do
+ dodir /var/spool/qscan/${i}/${j}
+ keepdir /var/spool/qscan/${i}/${j}
+ done
+ done
+ dodir /var/spool/qscan/tmp
+ keepdir /var/spool/qscan/tmp
+
+ # Install standard quarantine events file
+ insinto /var/spool/qscan
+ insopts -m 644 -o qscand -g qscand
+ doins quarantine-events.txt
+
+ # create quarantine.log and viruses.log
+ touch quarantine.log
+ insinto /var/spool/qscan
+ insopts -m 644 -o qscand -g qscand
+ doins quarantine.log
+ dosym quarantine.log ${DESTDIR}/var/spool/qscan/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}"/${P}.logrotate qmail-scanner
+
+ exeinto /etc/cron.daily/
+ newexe "${FILESDIR}"/qmailscanner.cronjob qmail-scanner
+
+ # Install documentation
+ dodoc README CHANGES
+ dohtml README.html FAQ.php TODO.php configure-options.php manual-install.php perlscanner.php
+
+ docinto contrib
+ cd "${S}"/contrib
+ dodoc spamc-nice.eml \
+ test-trophie.pl \
+ logrotate.qmail-scanner \
+ sub-avpdaemon.pl \
+ logging_first_80_chars.eml \
+ spamc-nasty.eml \
+ avpdeamon.init \
+ test_installation.sh \
+ test-sophie.pl \
+ reformime-test.eml \
+ sub-sender-cache.pl \
+ rbl_scanner.txt \
+ test-clamd.pl \
+ qs2mrtg.pl \
+ mrtg-qmail-scanner.cfg \
+ check_AV_daemons \
+ patch_for_nod32_single_user.eml \
+ qmail-delay \
+ qs-scanner-report.sh \
+ qs_config.sh \
+ qscan-spam-to-users.pl \
+ test-avgd.pl \
+ test_password.zip \
+ vpopmail-issues.eml
+}
+
+pkg_postinst () {
+ einfo "Fixing ownerships"
+ chown -R qscand:qscand /var/spool/qscan
+ 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
+
+ elog "To activate qmail-scanner, please edit your"
+ elog "/var/qmail/control/conf-common file and set:"
+ elog "export QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue"
+ elog "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"
+
+ ewarn "If this is an upgrade from <=2.0.1 the home directory of the qscand"
+ ewarn "user is changed. Please update it manually to /var/spool/qscan"
+ ewarn "or remove the user and emerge again this package"
+
+ if use clamav; then
+ ewarn "To allow clamav integration comment-out in /etc/clamd.conf:"
+ ewarn "AllowSupplementaryGroups putting yes."
+ ewarn "After that, restart clamd with"
+ ewarn "/etc/init.d/clamd restart"
+ fi
+}