summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hanselmann <hansmi@gentoo.org>2006-02-20 22:36:18 +0000
committerMichael Hanselmann <hansmi@gentoo.org>2006-02-20 22:36:18 +0000
commite3a5d0592196c8db36beae027b34f924fc3e525c (patch)
treec9128171039eac1b38d5e6de80f537ae395f2966 /mail-filter/qmail-scanner
parentRemoved old versions, bumped to 1.3.4. (diff)
downloadhistorical-e3a5d0592196c8db36beae027b34f924fc3e525c.tar.gz
historical-e3a5d0592196c8db36beae027b34f924fc3e525c.tar.bz2
historical-e3a5d0592196c8db36beae027b34f924fc3e525c.zip
Stable on ppc, removed old versions, changed to virtual/qmail.
Package-Manager: portage-2.1_pre4-r1
Diffstat (limited to 'mail-filter/qmail-scanner')
-rw-r--r--mail-filter/qmail-scanner/ChangeLog12
-rw-r--r--mail-filter/qmail-scanner/Manifest38
-rw-r--r--mail-filter/qmail-scanner/files/digest-qmail-scanner-1.16-r21
-rw-r--r--mail-filter/qmail-scanner/files/digest-qmail-scanner-1.23-r22
-rw-r--r--mail-filter/qmail-scanner/files/digest-qmail-scanner-1.23-r32
-rw-r--r--mail-filter/qmail-scanner/files/digest-qmail-scanner-1.242
-rw-r--r--mail-filter/qmail-scanner/files/digest-qmail-scanner-1.252
-rw-r--r--mail-filter/qmail-scanner/qmail-scanner-1.16-r2.ebuild92
-rw-r--r--mail-filter/qmail-scanner/qmail-scanner-1.23-r2.ebuild162
-rw-r--r--mail-filter/qmail-scanner/qmail-scanner-1.23-r3.ebuild162
-rw-r--r--mail-filter/qmail-scanner/qmail-scanner-1.24.ebuild162
-rw-r--r--mail-filter/qmail-scanner/qmail-scanner-1.25-r1.ebuild12
-rw-r--r--mail-filter/qmail-scanner/qmail-scanner-1.25.ebuild165
13 files changed, 31 insertions, 783 deletions
diff --git a/mail-filter/qmail-scanner/ChangeLog b/mail-filter/qmail-scanner/ChangeLog
index 3aeee71b665f..c03cea5ec634 100644
--- a/mail-filter/qmail-scanner/ChangeLog
+++ b/mail-filter/qmail-scanner/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for mail-filter/qmail-scanner
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/qmail-scanner/ChangeLog,v 1.30 2006/02/13 14:42:56 mcummings Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/qmail-scanner/ChangeLog,v 1.31 2006/02/20 22:36:18 hansmi Exp $
+
+ 20 Feb 2006; Michael Hanselmann <hansmi@gentoo.org>
+ -qmail-scanner-1.16-r2.ebuild, -qmail-scanner-1.23-r2.ebuild,
+ -qmail-scanner-1.23-r3.ebuild, -qmail-scanner-1.24.ebuild,
+ -qmail-scanner-1.25.ebuild, qmail-scanner-1.25-r1.ebuild:
+ Stable on ppc, removed old versions, changed to virtual/qmail.
+
+ 20 Feb 2006; Michael Hanselmann <hansmi@gentoo.org>
+ qmail-scanner-1.25-r1.ebuild:
+ Stable on ppc.
13 Feb 2006; Michael Cummings <mcummings@gentoo.org>
qmail-scanner-1.16-r2.ebuild, qmail-scanner-1.23-r2.ebuild,
diff --git a/mail-filter/qmail-scanner/Manifest b/mail-filter/qmail-scanner/Manifest
index 93deef6760a0..acf08ef808e1 100644
--- a/mail-filter/qmail-scanner/Manifest
+++ b/mail-filter/qmail-scanner/Manifest
@@ -1,27 +1,21 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 2a20065776f6f2ce81aa455ca34c4b27 ChangeLog 7569
-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 b626340aa9646bcd929b6f8ce0e4a0e2 files/digest-qmail-scanner-1.24 139
-MD5 ccef1593fec0a4c9435fe1d5dd881309 files/digest-qmail-scanner-1.25 140
+MD5 9fb027dbcabe45c29a2e1f3f4e9221d8 ChangeLog 7975
+RMD160 2226eddde33d56f4cd53e82e61ee94bcbd0b7fae ChangeLog 7975
+SHA256 1535884778d668f52328d414f4ff3003e0e09266eaeaff151db63eaf15bdcea4 ChangeLog 7975
MD5 ff83ea44513fae0bbfc5bcacbc34e394 files/digest-qmail-scanner-1.25-r1 140
+RMD160 3bfb51c90c7818cf1028eca2ddc5edc139e44d17 files/digest-qmail-scanner-1.25-r1 140
+SHA256 f0907b490ece1ff059a72422c692d2e299718d6410238d483b595ecc7d715a65 files/digest-qmail-scanner-1.25-r1 140
MD5 1d80eca1d4792a4073f51eb59f02960b files/qmail-scanner-queue.pl.patch 240
+RMD160 6d644003bb6386ad2e21e775352fe01bf8cc81c1 files/qmail-scanner-queue.pl.patch 240
+SHA256 77f09de11c2d448c17dd0b377cae3cedd756e404b1e611e2bf69e74d7e05be8e files/qmail-scanner-queue.pl.patch 240
MD5 6f6fc9e3db3985ba4ae5a6203d2d6abf files/qmailscanner.cronjob 50
+RMD160 afec02a08f7824fbea506b14372af9ea62270b8a files/qmailscanner.cronjob 50
+SHA256 09354f2ef42b6423a5947d004a4d3bf76355aafaf11a0db12052bf088115dee1 files/qmailscanner.cronjob 50
MD5 055c5ac64c689a669b8ccd6bc5f6553d files/qmailscanner.logrotate 147
+RMD160 d4eccf7f1169a448c0ce8115f426214927935385 files/qmailscanner.logrotate 147
+SHA256 eae732e0be2ace1ddcd4cc17a9c6a54012684c76dd30faa5349d394f3befc62f files/qmailscanner.logrotate 147
MD5 7df733d43f5875dfc63bae636203b8cb metadata.xml 158
-MD5 b7ee7395916c95ab14a8c22059c7d9dc qmail-scanner-1.16-r2.ebuild 2325
-MD5 7fd6c3769965d83bf5eac2d3e107832d qmail-scanner-1.23-r2.ebuild 4938
-MD5 b14e26185e8b22226ed9399b9bb9a818 qmail-scanner-1.23-r3.ebuild 4936
-MD5 d6c709d008c33140655c674102039331 qmail-scanner-1.24.ebuild 4933
-MD5 772f99a473693df1f7ecd02c7222ea69 qmail-scanner-1.25-r1.ebuild 5039
-MD5 2c0440e6cef7594d28270dae85c38e8c qmail-scanner-1.25.ebuild 4978
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1 (GNU/Linux)
-
-iD8DBQFD8JrmtG5z4I8BtQoRAm5yAJ447jw3Cp86EAAryJT55DpwHNspUgCfSd4N
-Krg8eJgtuB2YXxUrljKB07E=
-=w6F4
------END PGP SIGNATURE-----
+RMD160 1bd73d3a80f2670284225f39ce0a4a1c01954966 metadata.xml 158
+SHA256 940554be041a57d02888d9f414efb7768e9f72565c642327ecb4f9f64ca6d8d4 metadata.xml 158
+MD5 d39aed1157cdaec9b46c650812fc5560 qmail-scanner-1.25-r1.ebuild 4962
+RMD160 fe6bf0ce794d0c0014f4a267a4eefd0bde147281 qmail-scanner-1.25-r1.ebuild 4962
+SHA256 c9c8b90ff35c47b9d76c6ff367a59775abb9d8ac63236022be940ef7736bd843 qmail-scanner-1.25-r1.ebuild 4962
diff --git a/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.16-r2 b/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.16-r2
deleted file mode 100644
index 8cd551a81271..000000000000
--- a/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.16-r2
+++ /dev/null
@@ -1 +0,0 @@
-MD5 37b89fc12ef602886fe2bed7a2551309 qmail-scanner-1.16.tgz 117703
diff --git a/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.23-r2 b/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.23-r2
deleted file mode 100644
index 16efe6198934..000000000000
--- a/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.23-r2
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 d16e912b89126b2d957f86bf78d52be5 qmail-scanner-1.23.tgz 153107
-MD5 b8ad9c2258108dd47c548de201943410 q-s-1.23st-20040817.patch.gz 86595
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
deleted file mode 100644
index 562c61d4c188..000000000000
--- a/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.23-r3
+++ /dev/null
@@ -1,2 +0,0 @@
-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/files/digest-qmail-scanner-1.24 b/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.24
deleted file mode 100644
index 8782b9254bcb..000000000000
--- a/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.24
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 0281b721b059e09c8470982d26e4ccb0 qmail-scanner-1.24.tgz 197398
-MD5 5f4b18334906c60bce40b2dd1c4d8b11 q-s-1.24st-20041101.patch.gz 90889
diff --git a/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.25 b/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.25
deleted file mode 100644
index eee315131002..000000000000
--- a/mail-filter/qmail-scanner/files/digest-qmail-scanner-1.25
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 0117c425efb75208682fabcba4e1dd24 qmail-scanner-1.25.tgz 221156
-MD5 1efe7769bb88eaf551ebb18c6316ca6a q-s-1.25st-20050207.patch.gz 118044
diff --git a/mail-filter/qmail-scanner/qmail-scanner-1.16-r2.ebuild b/mail-filter/qmail-scanner/qmail-scanner-1.16-r2.ebuild
deleted file mode 100644
index a525333e5077..000000000000
--- a/mail-filter/qmail-scanner/qmail-scanner-1.16-r2.ebuild
+++ /dev/null
@@ -1,92 +0,0 @@
-# Copyright 1999-2006 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.16-r2.ebuild,v 1.6 2006/02/13 14:42:56 mcummings Exp $
-
-DESCRIPTION="E-Mail virus scanner for qmail."
-HOMEPAGE="http://qmail-scanner.sourceforge.net/"
-SRC_URI="mirror://sourceforge/qmail-scanner/${P}.tgz"
-
-DEPEND=">=dev-lang/perl-5.6.1-r1
- >=virtual/perl-Time-HiRes-01.20-r2
- >=net-mail/tnef-1.1.1
- >=mail-filter/maildrop-1.3.9
- >=virtual/perl-DB_File-1.803-r2
- || (
- >=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"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="x86 sparc"
-IUSE=""
-
-inherit fixheadtails
-
-src_unpack() {
- unpack ${A}
- cd ${S}
- ht_fix_file autoupdaters/update_macafee autoupdaters/update_trend autoupdaters/update_sophos configure
-}
-
-src_compile () {
- yes | PATH=${PATH}:/opt/f-prot:/opt/vlnx ./configure \
- --domain localhost \
- || die "./configure failed!"
-}
-
-src_install () {
- # Create Directory Structure
- diropts -m 755 -o qmailq -g qmail
- dodir /var/spool/qmailscan
- keepdir /var/spool/qmailscan
- 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
-
- # Install standard quarantine attachments file
- insinto /var/spool/qmailscan
- insopts -m 644 -o qmailq -g qmail
- doins quarantine-attachments.txt
-
- # Install qmail-scanner script
- insinto /var/qmail/bin
- insopts -m 4755 -o qmailq -g qmail
- doins qmail-scanner-queue.pl
-
- # Install documentation
- dodoc README CHANGES COPYING
- dohtml README.html
-
- # Install the contribs
- docinto contrib
- cd ${S}/contrib
- dodoc spamc-nice.eml
- dodoc test-clamd.pl
- dodoc test-trophie.pl
- dodoc sub-avpdaemon.pl
- dodoc logging_first_80_chars.eml
- dodoc spamc-nasty.eml
- dodoc avpdeamon.init
- dodoc test_installation.sh
- dodoc sub-sender-cache.pl
- dodoc test-sophie.pl
- dodoc reformime-test.eml
-}
-
-pkg_postinst () {
- # Setup perlscanner + Version Info
- /var/qmail/bin/qmail-scanner-queue.pl -z
- /var/qmail/bin/qmail-scanner-queue.pl -g
-
- einfo "To activate qmail-scanner, please edit your"
- einfo "/var/qmail/control/conf-common file and set:"
- einfo "QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl"
-}
-
diff --git a/mail-filter/qmail-scanner/qmail-scanner-1.23-r2.ebuild b/mail-filter/qmail-scanner/qmail-scanner-1.23-r2.ebuild
deleted file mode 100644
index 0337a41500b2..000000000000
--- a/mail-filter/qmail-scanner/qmail-scanner-1.23-r2.ebuild
+++ /dev/null
@@ -1,162 +0,0 @@
-# Copyright 1999-2006 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-r2.ebuild,v 1.8 2006/02/13 14:42:56 mcummings Exp $
-
-inherit fixheadtails toolchain-funcs eutils
-
-Q_S_DATE=20040817
-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
- >=virtual/perl-Time-HiRes-01.20-r2
- >=net-mail/tnef-1.1.1
- >=virtual/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 -1 /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
- `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/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"
-}
diff --git a/mail-filter/qmail-scanner/qmail-scanner-1.23-r3.ebuild b/mail-filter/qmail-scanner/qmail-scanner-1.23-r3.ebuild
deleted file mode 100644
index d9ab43d334c4..000000000000
--- a/mail-filter/qmail-scanner/qmail-scanner-1.23-r3.ebuild
+++ /dev/null
@@ -1,162 +0,0 @@
-# Copyright 1999-2006 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.9 2006/02/13 14:42:56 mcummings Exp $
-
-inherit fixheadtails toolchain-funcs 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
- >=virtual/perl-Time-HiRes-01.20-r2
- >=net-mail/tnef-1.1.1
- >=virtual/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 -1 /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
- `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/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"
-}
diff --git a/mail-filter/qmail-scanner/qmail-scanner-1.24.ebuild b/mail-filter/qmail-scanner/qmail-scanner-1.24.ebuild
deleted file mode 100644
index fc2997f671fd..000000000000
--- a/mail-filter/qmail-scanner/qmail-scanner-1.24.ebuild
+++ /dev/null
@@ -1,162 +0,0 @@
-# Copyright 1999-2006 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.24.ebuild,v 1.7 2006/02/13 14:42:56 mcummings Exp $
-
-inherit fixheadtails toolchain-funcs eutils
-
-Q_S_DATE=20041101
-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
- >=virtual/perl-Time-HiRes-01.20-r2
- >=net-mail/tnef-1.1.1
- >=virtual/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 -1 /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
- `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/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"
-}
diff --git a/mail-filter/qmail-scanner/qmail-scanner-1.25-r1.ebuild b/mail-filter/qmail-scanner/qmail-scanner-1.25-r1.ebuild
index 4837580c02d7..db1140332042 100644
--- a/mail-filter/qmail-scanner/qmail-scanner-1.25-r1.ebuild
+++ b/mail-filter/qmail-scanner/qmail-scanner-1.25-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 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.9 2006/02/13 14:42:56 mcummings Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/qmail-scanner/qmail-scanner-1.25-r1.ebuild,v 1.10 2006/02/20 22:36:18 hansmi Exp $
inherit fixheadtails toolchain-funcs eutils
@@ -14,7 +14,7 @@ IUSE="spamassassin"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="amd64 ~ppc sparc x86"
+KEYWORDS="amd64 ppc sparc x86"
RESTRICT="userpriv usersandbox"
DEPEND=">=dev-lang/perl-5.6.1-r1
@@ -22,11 +22,7 @@ DEPEND=">=dev-lang/perl-5.6.1-r1
>=net-mail/tnef-1.1.1
>=virtual/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
- )
+ virtual/qmail
>=app-arch/unzip-5.42-r1
virtual/antivirus
spamassassin? ( >=mail-filter/spamassassin-2.64 )"
@@ -76,7 +72,7 @@ src_compile () {
# 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
+ $(tc-getCC) ${CFLAGS} -o qmail-scanner-queue qmail-scanner-queue.c || die
}
src_install () {
diff --git a/mail-filter/qmail-scanner/qmail-scanner-1.25.ebuild b/mail-filter/qmail-scanner/qmail-scanner-1.25.ebuild
deleted file mode 100644
index f60852f00ba5..000000000000
--- a/mail-filter/qmail-scanner/qmail-scanner-1.25.ebuild
+++ /dev/null
@@ -1,165 +0,0 @@
-# Copyright 1999-2006 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.ebuild,v 1.8 2006/02/13 14:42:56 mcummings Exp $
-
-inherit fixheadtails toolchain-funcs eutils
-
-Q_S_DATE=20050207
-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 ~amd64"
-
-DEPEND=">=dev-lang/perl-5.6.1-r1
- >=virtual/perl-Time-HiRes-01.20-r2
- >=net-mail/tnef-1.1.1
- >=virtual/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 -1 /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
- `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/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"
-}