diff options
author | Pacho Ramos <pacho@gentoo.org> | 2018-04-29 20:13:13 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2018-04-29 20:13:36 +0200 |
commit | ec7079c0c95dd1dac40e7b67fba9383a5498dcb8 (patch) | |
tree | 6eb1dba2c2ead27248000017adc912b6ada44446 /mail-filter/qmail-scanner | |
parent | games-board/freedoko: Drop old (diff) | |
download | gentoo-ec7079c0c95dd1dac40e7b67fba9383a5498dcb8.tar.gz gentoo-ec7079c0c95dd1dac40e7b67fba9383a5498dcb8.tar.bz2 gentoo-ec7079c0c95dd1dac40e7b67fba9383a5498dcb8.zip |
Remove masked for removal package
Diffstat (limited to 'mail-filter/qmail-scanner')
12 files changed, 0 insertions, 798 deletions
diff --git a/mail-filter/qmail-scanner/Manifest b/mail-filter/qmail-scanner/Manifest deleted file mode 100644 index fcc52874626b..000000000000 --- a/mail-filter/qmail-scanner/Manifest +++ /dev/null @@ -1,8 +0,0 @@ -DIST q-s-1.25st-20050406.patch.gz 124325 BLAKE2B 50e0937ee560cdebf39eb2781096ac609549dd07b5c90ad47896a11d489a2dba3f0da808cdd8a37ff7a971e66ce5881a38e92bce48a0d65919c0a296c55556ea SHA512 a4048ee61fe14164c2d6d71d81db27d05a65c1354734be8fb0d5d0f8d0251bae6a2e197ee4680a7c95bc3f690c82dbda52437139ccbdb3502b66d5994b5c2de3 -DIST q-s-2.05st-20080728.patch.gz 102235 BLAKE2B 6ee751307f2783cb25100ec25a0e1a58c170794f5a62a26a040e1c08392b4601ba0299a5f89033d1493719c98f79bea5600c4de316d0f193f50371b75376e5de SHA512 cceaaed8757b53cc358db11b5070a69b8a131f67e43476f3fd4f122c767eb696efe939fb73733a96f0b7d92b096b0cfe39ccec2cc228a94f049c753caefa0029 -DIST q-s-2.06st-20090419.patch.gz 103486 BLAKE2B 373147922c5a8432f3ec67cc26fb64febdad729c01b876259d281b127ff926df77f7340eeddd3d1202106ee9bda4349e1c8941416ba2d858c4be8dfdd7bba236 SHA512 b10c66873dd5c91c1e9d1c9e1dd3ab9948bebb81654f891b411ff83c6395408c6cbe6c2fc6d5d1c34903f383049d0b8955a975ddf963270eff7d478e297f00a2 -DIST q-s-2.08st-20091012.patch.gz 103757 BLAKE2B a9cd86d427a95795a5e481975bf703be6445942131f539fc0b86c02a568eb8f639caf83f83214d1f5d9dd89ccc2b0e37e8f151ee039351a5db4d7ff77944cc32 SHA512 6f9e7567e16dcc1c16f34aa9a64e60776b35bd2a1a38d0f490cbbc56ece1f7894645bd8dd20eb08e054fac1bf17244e8666d085a48a5ba300b0c36cc4bb79fbe -DIST qmail-scanner-1.25.tgz 221156 BLAKE2B b43969edd1d4eebd7808e52b0ae1c548ac3d69007aba76b0d1be83053c17124f10b0791fccf816d3ddd6c72eac4034fc25bb9aa10d3edb18e9a3e8aad1c4729e SHA512 b3271edd4483cd429d1a1bda7bac56e949804a1cf4232ab446038468339afc1e4b30901f0284d811ceb9a6b9e746bf02c424787004b940a0277e38e8705758b8 -DIST qmail-scanner-2.05.tgz 237577 BLAKE2B 107c38c9c505aca09bc62e094dbcaf658e455933f2ce09d1683c04f368393260801ca4481892093379cf8aeb981abdac8e96d841b72e0f545176ca6c48ee2783 SHA512 bde261dd542cb1d01e22eee1decfbb93cab9f353dc14fb4c2b530ff9384c2cd9c0139151b76e7c71b0abedc8002f8264819b32f0c559f994a29686a709b8863b -DIST qmail-scanner-2.06.tgz 238926 BLAKE2B ab78a78f3777feeb94174747830bc9c4bf7c334a5428c65cc1c04c765191bcd41f25bb02ea7578203369cf00c98016ae5ef692362e71f497fc008a01c9ca0d9a SHA512 1052985637bea7b24aee3806b1501ed1082a1233a9704cbf5b72af3ef39e44636c921fea4da4abf8ed03acb0b73d9c3c91f7456ccf4547afa643b7b5163212bc -DIST qmail-scanner-2.08.tgz 239667 BLAKE2B 752886fbe8e83b747bc8a0cf375bfc729c20ffa37749b316517e973ed83043fc3b401ff6f9bc6ecefcbaf169d26fa4742ef96be37090a971c28d5dcebabfe568 SHA512 52f09cc70fdf4f53f358d80d6dfd52851f3cb81e10dae1f7132c6c5c01fd8fc1395f709e24f0f7031073c29c951bdd4b09863f65f53954198b2c3ec15d78fdd9 diff --git a/mail-filter/qmail-scanner/files/qmail-scanner-2.05.logrotate b/mail-filter/qmail-scanner/files/qmail-scanner-2.05.logrotate deleted file mode 100644 index a0f3cbd880e8..000000000000 --- a/mail-filter/qmail-scanner/files/qmail-scanner-2.05.logrotate +++ /dev/null @@ -1,4 +0,0 @@ -/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/files/qmail-scanner-2.06.logrotate b/mail-filter/qmail-scanner/files/qmail-scanner-2.06.logrotate deleted file mode 100644 index a0f3cbd880e8..000000000000 --- a/mail-filter/qmail-scanner/files/qmail-scanner-2.06.logrotate +++ /dev/null @@ -1,4 +0,0 @@ -/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/files/qmail-scanner-2.08-disable-suid-check.patch b/mail-filter/qmail-scanner/files/qmail-scanner-2.08-disable-suid-check.patch deleted file mode 100644 index c323dbae4c86..000000000000 --- a/mail-filter/qmail-scanner/files/qmail-scanner-2.08-disable-suid-check.patch +++ /dev/null @@ -1,17 +0,0 @@ -this is a useless check for package builders - -https://bugs.gentoo.org/364123 - ---- a/configure -+++ b/configure -@@ -440,9 +440,7 @@ fi - #QMAILQUEUE_BIN="${QMAILQUEUE_BIN:-$BINDIR/qmail-queue}" - - #Sanity check that suid is allowed on the Qmail "/bin" partition --QMNT=`df $BINDIR|head -2|tail -1|awk '{print $1}'` --SUIDSTATUS=`mount|egrep "^$QMNT "|grep nosuid` --if [ "$SUIDSTATUS" != "" ]; then -+if false; then - cat<<EOF - - *** FATAL ERROR *** diff --git a/mail-filter/qmail-scanner/files/qmail-scanner-2.08.logrotate b/mail-filter/qmail-scanner/files/qmail-scanner-2.08.logrotate deleted file mode 100644 index a0f3cbd880e8..000000000000 --- a/mail-filter/qmail-scanner/files/qmail-scanner-2.08.logrotate +++ /dev/null @@ -1,4 +0,0 @@ -/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/files/qmailscanner.cronjob b/mail-filter/qmail-scanner/files/qmailscanner.cronjob deleted file mode 100644 index ca4527432e38..000000000000 --- a/mail-filter/qmail-scanner/files/qmailscanner.cronjob +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -/var/qmail/bin/qmail-scanner-queue -z diff --git a/mail-filter/qmail-scanner/files/qmailscanner.logrotate b/mail-filter/qmail-scanner/files/qmailscanner.logrotate deleted file mode 100644 index 864cfe7f6fe3..000000000000 --- a/mail-filter/qmail-scanner/files/qmailscanner.logrotate +++ /dev/null @@ -1,4 +0,0 @@ -/var/spool/qmailscan/qmail-queue.log /var/spool/qmailscan/quarantine.log /var/spool/qmailscan/mailstats.csv { - weekly - create 0600 qscand qscand -} diff --git a/mail-filter/qmail-scanner/metadata.xml b/mail-filter/qmail-scanner/metadata.xml deleted file mode 100644 index db8403c2edd1..000000000000 --- a/mail-filter/qmail-scanner/metadata.xml +++ /dev/null @@ -1,15 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>net-mail@gentoo.org</email> - <name>Net-Mail</name> - </maintainer> - <use> - <flag name="spamassassin">Build faster <pkg>mail-filter/spamassassin</pkg> - checks into qmail-scanner</flag> - </use> - <upstream> - <remote-id type="sourceforge">qmail-scanner</remote-id> - </upstream> -</pkgmetadata> diff --git a/mail-filter/qmail-scanner/qmail-scanner-1.25-r1.ebuild b/mail-filter/qmail-scanner/qmail-scanner-1.25-r1.ebuild deleted file mode 100644 index 66d78bc75ee0..000000000000 --- a/mail-filter/qmail-scanner/qmail-scanner-1.25-r1.ebuild +++ /dev/null @@ -1,163 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -inherit fixheadtails toolchain-funcs eutils user - -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="amd64 ppc x86" -RESTRICT="userpriv" - -RDEPEND=">=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 - virtual/qmail - >=app-arch/unzip-5.42-r1 - app-antivirus/clamav - spamassassin? ( >=mail-filter/spamassassin-2.64 )" -DEPEND="${RDEPEND}" - -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` - elog "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" - elog "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 - 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 \ - --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 - 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 - - 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" -} diff --git a/mail-filter/qmail-scanner/qmail-scanner-2.05.ebuild b/mail-filter/qmail-scanner/qmail-scanner-2.05.ebuild deleted file mode 100644 index 9a26f4398903..000000000000 --- a/mail-filter/qmail-scanner/qmail-scanner-2.05.ebuild +++ /dev/null @@ -1,190 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -inherit fixheadtails toolchain-funcs eutils user - -Q_S_DATE=20080728 -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="clamav spamassassin" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ppc 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 - virtual/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_unpack() { - unpack ${A} - cd "${S}" - epatch "${DISTDIR}"/q-s-${PV}st-${Q_S_DATE}.patch.gz - epatch "${FILESDIR}"/${PN}-2.08-disable-suid-check.patch #364123 - 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 -e "/^SILENT_VIRUSES/s/\"$/,${EXTRA_VIRII}\"/g" -i configure -} - -src_compile () { - 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 -} diff --git a/mail-filter/qmail-scanner/qmail-scanner-2.06.ebuild b/mail-filter/qmail-scanner/qmail-scanner-2.06.ebuild deleted file mode 100644 index 1ae8a61bed10..000000000000 --- a/mail-filter/qmail-scanner/qmail-scanner-2.06.ebuild +++ /dev/null @@ -1,193 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=2 - -inherit fixheadtails toolchain-funcs eutils user - -Q_S_DATE=20090419 -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="clamav spamassassin" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~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 - virtual/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 - epatch "${FILESDIR}"/${PN}-2.08-disable-suid-check.patch #364123 - 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 -} diff --git a/mail-filter/qmail-scanner/qmail-scanner-2.08.ebuild b/mail-filter/qmail-scanner/qmail-scanner-2.08.ebuild deleted file mode 100644 index 433b63d74140..000000000000 --- a/mail-filter/qmail-scanner/qmail-scanner-2.08.ebuild +++ /dev/null @@ -1,194 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=2 - -inherit fixheadtails toolchain-funcs eutils user - -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 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 - virtual/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 - epatch "${FILESDIR}"/${PN}-2.08-disable-suid-check.patch #364123 - 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 -} |