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 | |
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')
20 files changed, 0 insertions, 1154 deletions
diff --git a/mail-filter/p3scan/Manifest b/mail-filter/p3scan/Manifest deleted file mode 100644 index 48cec5c8b5d1..000000000000 --- a/mail-filter/p3scan/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST p3scan-2.3.1.tar.gz 315677 BLAKE2B f3002aff329d8a9d1ea574047b9ce531d693f85848c0d819e1d7b2036cdfc9cb34ac70ca6daada590bbcc89928d8d40d8db50808ce2ef47568380c5d326931a4 SHA512 562ae70bdb18bc43f00da3106a5c575fa8b12182d0bad72f5fab1bdeeea536bef2e6b2eae9088c561adc293e520e25a27d3b85d687fa29fd895bb3144360caad -DIST p3scan-2.3.2.tar.gz 321684 BLAKE2B 59b67459dae7b9fbd2bbe432c9fbb5a6c915166671f9d7c8937e540b563c4365eefc68e94a58cd31604dd8a438d874a401e10ee8f03646a4698a06cac4611b11 SHA512 7504e988ca21760ea73f3ae41d9ec79c560da29e88ac849b671e4452e426cb8ca5065fe8de5b839299bd5da81e16f51951748a134a1737502f924c89867b75b7 diff --git a/mail-filter/p3scan/files/p3scan-ocreat.patch b/mail-filter/p3scan/files/p3scan-ocreat.patch deleted file mode 100644 index c99bc88a0a5f..000000000000 --- a/mail-filter/p3scan/files/p3scan-ocreat.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- p3scan.c 2005-12-12 15:00:00.000000000 +0000 -+++ p3scan.c 2009-03-06 02:34:13.000000000 +0000 -@@ -366,7 +366,7 @@ - XXXXXX[4] = letters[v % 62]; - v /= 62; - XXXXXX[5] = letters[v % 62]; -- fd=open(template, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR | O_SYNC, 0600); -+ fd=open(template, O_RDWR | O_CREAT | O_EXCL | O_SYNC, 0600); - if (fd >= 0){ - errno = save_errno; - return fd; diff --git a/mail-filter/p3scan/files/p3scan.init b/mail-filter/p3scan/files/p3scan.init deleted file mode 100644 index 8900cd0b44fd..000000000000 --- a/mail-filter/p3scan/files/p3scan.init +++ /dev/null @@ -1,27 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -depend() { - need net -} - -start() { - ebegin "Starting p3scan" - start-stop-daemon --start --quiet --pidfile /var/run/p3scan/p3scan.pid --exec /usr/sbin/p3scan - eend $? -} - -stop() { - ebegin "Stopping p3scan" - start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/p3scan/p3scan.pid - eend $? -} - -restart() { - ebegin "Restarting p3scan" - svc_stop - sleep 1 - svc_start - eend $? -} diff --git a/mail-filter/p3scan/files/p3scan.init-r1 b/mail-filter/p3scan/files/p3scan.init-r1 deleted file mode 100644 index 174ea5c52fb2..000000000000 --- a/mail-filter/p3scan/files/p3scan.init-r1 +++ /dev/null @@ -1,34 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -depend() { - use net -} - -checkconfig() { - if [[ ! -d /var/run/p3scan ]] ; then - checkpath -q -d -m 0700 -o mail:mail /var/run/p3scan || return 1 - fi -} - -start() { - checkconfig || return 1 - ebegin "Starting p3scan" - start-stop-daemon --start --quiet --pidfile /var/run/p3scan/p3scan.pid --exec /usr/sbin/p3scan - eend $? -} - -stop() { - ebegin "Stopping p3scan" - start-stop-daemon --stop --quiet --pidfile /var/run/p3scan/p3scan.pid - eend $? -} - -restart() { - ebegin "Restarting p3scan" - svc_stop - sleep 1 - svc_start - eend $? -} diff --git a/mail-filter/p3scan/metadata.xml b/mail-filter/p3scan/metadata.xml deleted file mode 100644 index 0d107426017b..000000000000 --- a/mail-filter/p3scan/metadata.xml +++ /dev/null @@ -1,12 +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> - <longdescription>P3Scan is a fully transparent scanning proxy-server for POP3-Clients. It provides scanning of incoming email messages for Virus''s, Worms, Trojans, Spam, and harmfull attachments. It can also parse HTML messages.</longdescription> - <upstream> - <remote-id type="sourceforge">p3scan</remote-id> - </upstream> -</pkgmetadata> diff --git a/mail-filter/p3scan/p3scan-2.3.1.ebuild b/mail-filter/p3scan/p3scan-2.3.1.ebuild deleted file mode 100644 index 58e3bc30b59a..000000000000 --- a/mail-filter/p3scan/p3scan-2.3.1.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -inherit eutils user - -DESCRIPTION="This is a full-transparent proxy-server for POP3-Clients" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" -HOMEPAGE="http://p3scan.sf.net/" - -DEPEND="net-mail/ripmime - dev-libs/libpcre" -RDEPEND="net-firewall/iptables" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~ppc x86" -IUSE="" - -src_compile() { - emake || die -} - -src_install () { - newinitd ${FILESDIR}/${PN}.init ${PN} - - dosbin ${PN} || die - - dodir /etc/${PN} - insinto /etc/${PN} - doins ${PN}.conf ${PN}-*.mail - doins ${PN}-*.mail - - keepdir /var/run/${PN} - - keepdir /var/spool/${PN} - keepdir /var/spool/${PN}/children - keepdir /var/spool/${PN}/notify - - fowners mail:mail /var/run/${PN} - fperms 700 /var/run/${PN} - - fowners mail:mail /var/spool/${PN} - fperms 700 /var/spool/${PN} - - fowners mail:mail /var/spool/${PN}/children - fperms 700 /var/spool/${PN}/children - - fowners mail:mail /var/spool/${PN}/notify - fperms 700 /var/spool/${PN}/notify - - doman p3scan.8.gz p3scan_readme.8.gz - - dodoc AUTHORS CHANGELOG CONTRIBUTERS LICENSE NEWS README \ - README-rpm spamfaq.* TODO.list -} - -pkg_postinst() { - enewuser mail 8 /bin/true /var/spool/mail mail - - if [ ! -L /etc/${PN}/${PN}.mail ]; then - ln -sf /etc/${PN}/${PN}-en.mail /etc/${PN}/${PN}.mail - fi - - echo - elog "Default infected notification template language is set to english, change the" - elog "symbolic link /etc/${PN}/${PN}.mail if you want it in another language." - elog - elog "To start ${PN}, you can use /etc/init.d/${PN} start" - elog - elog "You need port-redirecting, a rule like:" - elog " iptables -t nat -A PREROUTING -p tcp -i eth0 --dport pop3 -j REDIRECT --to 8110" - elog "to forward pop3 connections incoming from eth0 interface." - elog - elog "You will also need to configure at least following in /etc/${PN}/${PN}.conf:" - elog "scannertype, scanner, virusregexp" - echo -} diff --git a/mail-filter/p3scan/p3scan-2.3.2-r1.ebuild b/mail-filter/p3scan/p3scan-2.3.2-r1.ebuild deleted file mode 100644 index 14ecb27ea34a..000000000000 --- a/mail-filter/p3scan/p3scan-2.3.2-r1.ebuild +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="2" - -inherit eutils toolchain-funcs user - -DESCRIPTION="This is a full-transparent proxy-server for POP3-Clients" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" -HOMEPAGE="http://p3scan.sf.net/" - -# Older ripmime did not install a library -DEPEND="dev-libs/libpcre - >=net-mail/ripmime-1.4.0.9 - " -RDEPEND="net-firewall/iptables" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="" - -src_prepare() { - epatch "${FILESDIR}/p3scan-ocreat.patch" - - # respect CC (bug #244144), and CFLAGS (bug #240786) - sed -i \ - -e "s/gcc/$(tc-getCC)/" \ - -e "s:^CFLAGS=-Wall -O2 :CFLAGS=${CFLAGS} :" \ - -e '/^LDFLAGS=/d' \ - -e '/^ripmime\/libripmime/,+7d' \ - -e '/^\.c\.o:/,+3d' \ - -e '$ap3scan: LDLIBS:=-lripmime -lpcre -lssl -lcrypto\np3scan: $(OBJECTS)' \ - Makefile || die - # Be sure the system copy is used - rm -rf ripmime/ -} - -src_compile() { - emake || die -} - -src_install () { - newinitd "${FILESDIR}"/${PN}.init ${PN} - - dosbin ${PN} || die - - dodir /etc/${PN} - insinto /etc/${PN} - doins ${PN}.conf ${PN}-*.mail - doins ${PN}-*.mail - - keepdir /var/run/${PN} - - keepdir /var/spool/${PN} - keepdir /var/spool/${PN}/children - keepdir /var/spool/${PN}/notify - - fowners mail:mail /var/run/${PN} - fperms 700 /var/run/${PN} - - fowners mail:mail /var/spool/${PN} - fperms 700 /var/spool/${PN} - - fowners mail:mail /var/spool/${PN}/children - fperms 700 /var/spool/${PN}/children - - fowners mail:mail /var/spool/${PN}/notify - fperms 700 /var/spool/${PN}/notify - - doman p3scan.8.gz p3scan_readme.8.gz - - dodoc AUTHORS CHANGELOG CONTRIBUTERS NEWS README \ - README-rpm TODO.list p3scan.sh spamfaq.* -} - -pkg_postinst() { - enewuser mail 8 /bin/true /var/spool/mail mail - - if [ ! -L /etc/${PN}/${PN}.mail ]; then - ln -sf /etc/${PN}/${PN}-en.mail /etc/${PN}/${PN}.mail - fi - - echo - elog "Default infected notification template language is set to english, change the" - elog "symbolic link /etc/${PN}/${PN}.mail if you want it in another language." - elog - elog "To start ${PN}, you can use /etc/init.d/${PN} start" - elog - elog "You need port-redirecting, a rule like:" - elog " iptables -t nat -A PREROUTING -p tcp -i eth0 --dport pop3 -j REDIRECT --to 8110" - elog "to forward pop3 connections incoming from eth0 interface." - elog - elog "You will need to configure at least following in /etc/${PN}/${PN}.conf:" - elog "scannertype, scanner, virusregexp" - elog - elog "An example scanner script has been installed to:" - elog "/usr/share/doc/${PF}/" - echo -} diff --git a/mail-filter/p3scan/p3scan-2.3.2-r2.ebuild b/mail-filter/p3scan/p3scan-2.3.2-r2.ebuild deleted file mode 100644 index 2023906b5ccd..000000000000 --- a/mail-filter/p3scan/p3scan-2.3.2-r2.ebuild +++ /dev/null @@ -1,93 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=4 - -inherit eutils toolchain-funcs user - -DESCRIPTION="This is a full-transparent proxy-server for POP3-Clients" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" -HOMEPAGE="http://p3scan.sf.net/" - -# Older ripmime did not install a library -DEPEND="dev-libs/libpcre - >=net-mail/ripmime-1.4.0.9 - >=net-mail/mailbase-1 - " -RDEPEND="net-firewall/iptables - sys-apps/openrc" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="" - -src_prepare() { - epatch "${FILESDIR}/p3scan-ocreat.patch" - - # respect CC (bug #244144), and CFLAGS (bug #240786) - sed -i \ - -e "s/gcc/$(tc-getCC)/" \ - -e "s:^CFLAGS=-Wall -O2 :CFLAGS=${CFLAGS} :" \ - -e '/^LDFLAGS=/d' \ - -e '/^ripmime\/libripmime/,+7d' \ - -e '/^\.c\.o:/,+3d' \ - -e '$ap3scan: LDLIBS:=-lripmime -lpcre -lssl -lcrypto\np3scan: $(OBJECTS)' \ - Makefile || die - # Be sure the system copy is used - rm -rf ripmime/ -} - -src_install () { - newinitd "${FILESDIR}"/${PN}.init-r1 ${PN} - - dosbin ${PN} - - dodir /etc/${PN} - insinto /etc/${PN} - doins ${PN}.conf ${PN}-*.mail - doins ${PN}-*.mail - - keepdir /var/spool/${PN} - keepdir /var/spool/${PN}/children - keepdir /var/spool/${PN}/notify - - fowners mail:mail /var/spool/${PN} - fperms 700 /var/spool/${PN} - - fowners mail:mail /var/spool/${PN}/children - fperms 700 /var/spool/${PN}/children - - fowners mail:mail /var/spool/${PN}/notify - fperms 700 /var/spool/${PN}/notify - - doman p3scan.8.gz p3scan_readme.8.gz - - dodoc AUTHORS CHANGELOG CONTRIBUTERS NEWS README \ - README-rpm TODO.list p3scan.sh spamfaq.* -} - -pkg_postinst() { - if [ ! -L /etc/${PN}/${PN}.mail ]; then - ln -sf /etc/${PN}/${PN}-en.mail /etc/${PN}/${PN}.mail || die - fi - - if [[ -z ${REPLACING_VERSIONS} ]] ; then - echo - elog "Default infected notification template language is set to english, change the" - elog "symbolic link /etc/${PN}/${PN}.mail if you want it in another language." - elog - elog "To start ${PN}, you can use /etc/init.d/${PN} start" - elog - elog "You need port-redirecting, a rule like:" - elog " iptables -t nat -A PREROUTING -p tcp -i eth0 --dport pop3 -j REDIRECT --to 8110" - elog "to forward pop3 connections incoming from eth0 interface." - elog - elog "You will need to configure at least following in /etc/${PN}/${PN}.conf:" - elog "scannertype, scanner, virusregexp" - elog - elog "An example scanner script has been installed to:" - elog "/usr/share/doc/${PF}/" - echo - fi -} 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 -} |