summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2010-07-05 09:19:46 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2010-07-05 09:19:46 +0000
commitc94e00f37140afafd337f3442703deae92a641a3 (patch)
tree027878d0de13ce579d49ed747a475fb668aacba6 /mail-filter
parentRemove due to bundled libs. Per bug #251575 (diff)
downloadhistorical-c94e00f37140afafd337f3442703deae92a641a3.tar.gz
historical-c94e00f37140afafd337f3442703deae92a641a3.tar.bz2
historical-c94e00f37140afafd337f3442703deae92a641a3.zip
Remove due to security issues. Per bug #251575
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/MailScanner/ChangeLog106
-rw-r--r--mail-filter/MailScanner/MailScanner-4.70.7.1.ebuild304
-rw-r--r--mail-filter/MailScanner/MailScanner-4.79.11.1.ebuild322
-rw-r--r--mail-filter/MailScanner/Manifest8
-rw-r--r--mail-filter/MailScanner/files/confd.mailscanner4
-rw-r--r--mail-filter/MailScanner/files/initd.mailscanner48
-rw-r--r--mail-filter/MailScanner/metadata.xml15
7 files changed, 0 insertions, 807 deletions
diff --git a/mail-filter/MailScanner/ChangeLog b/mail-filter/MailScanner/ChangeLog
deleted file mode 100644
index 091a5fc8b4bf..000000000000
--- a/mail-filter/MailScanner/ChangeLog
+++ /dev/null
@@ -1,106 +0,0 @@
-# ChangeLog for mail-filter/MailScanner
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/MailScanner/ChangeLog,v 1.13 2010/03/16 19:28:30 patrick Exp $
-
- 16 Mar 2010; Patrick Lauer <patrick@gentoo.org> files/initd.mailscanner:
- Making init script start/stop work properly
-
-*MailScanner-4.79.11.1 (16 Mar 2010)
-
- 16 Mar 2010; Patrick Lauer <patrick@gentoo.org>
- +MailScanner-4.79.11.1.ebuild:
- Bump for #298054, small ebuild improvements thanks to Carlos Silva
-
- 06 Mar 2010; Samuli Suominen <ssuominen@gentoo.org>
- MailScanner-4.70.7.1.ebuild:
- Remove vulnerable app-antivirus/f-prot from deps wrt #233928.
-
- 03 Jan 2010; Samuli Suominen <ssuominen@gentoo.org>
- MailScanner-4.70.7.1.ebuild:
- Remove vulnerable app-antivirus/bitdefender-console from deps wrt #253822.
-
- 19 Jul 2009; Torsten Veller <tove@gentoo.org>
- MailScanner-4.67.6.1-r2.ebuild, MailScanner-4.68.6.1.ebuild,
- MailScanner-4.70.7.1.ebuild:
- IO-Compress replaces Compress-Zlib
-
- 08 Jan 2009; Jeremy Olexa <darkside@gentoo.org>
- MailScanner-4.70.7.1.ebuild:
- add ~amd64 kw for bug 253464
-
- 18 Nov 2008; Torsten Veller <tove@gentoo.org>
- MailScanner-4.67.6.1-r2.ebuild, MailScanner-4.68.6.1.ebuild,
- MailScanner-4.70.7.1.ebuild:
- New virtuals: Compress-Zlib
-
- 01 Sep 2008; Markus Ullmann <jokey@gentoo.org>
- MailScanner-4.70.7.1.ebuild:
- Add OLE-StorageLite dependency wrt bug #236327
-
-*MailScanner-4.70.7.1 (30 Aug 2008)
-
- 30 Aug 2008; Markus Ullmann <jokey@gentoo.org>
- +MailScanner-4.70.7.1.ebuild:
- Version bump
-
- 23 Aug 2008; Doug Goldstein <cardoe@gentoo.org> metadata.xml:
- add GLEP 56 USE flag desc from use.local.desc
-
-*MailScanner-4.68.6.1 (27 Mar 2008)
-*MailScanner-4.67.6.1-r2 (27 Mar 2008)
-
- 27 Mar 2008; Markus Ullmann <jokey@gentoo.org>
- -MailScanner-4.67.6.1.ebuild, -MailScanner-4.67.6.1-r1.ebuild,
- +MailScanner-4.67.6.1-r2.ebuild, +MailScanner-4.68.6.1.ebuild:
- More config sed's and add masked beta version
-
-*MailScanner-4.67.6.1-r1 (27 Mar 2008)
-
- 27 Mar 2008; Markus Ullmann <jokey@gentoo.org>
- +MailScanner-4.67.6.1-r1.ebuild:
- Various improvements from bug #214122 thanks to Costas Cavouracis and John
- Wilcock
-
-*MailScanner-4.67.6.1 (20 Mar 2008)
-
- 20 Mar 2008; Markus Ullmann <jokey@gentoo.org> +files/confd.mailscanner,
- +files/initd.mailscanner, +metadata.xml, +MailScanner-4.67.6.1.ebuild:
- Initial import for bug #36060
-
- 31 Jan 2008; Markus Ullmann <jokey@gentoo.org> MailScanner-4.66.5.3:
- Add docs link
-
- 31 Jan 2008; Markus Ullmann <jokey@gentoo.org> -confd.mailscanner-mta,
- initd.mailscanner, -initd.mailscanner-mta, MailScanner-4.66.5.3:
- Mailscanner-mta is no longer needed
-
- 27 Jan 2008; Markus Ullmann <jokey@gentoo.org> Manifest:
- Version bump -- try me first before killing old version
-
- 06 Jan 2007; Jakub Moc <jakub@gentoo.org> MailScanner-4.57.6.1.ebuild:
- Nuke bogus sendmail use flag and fix dependencies
-
- 12 Dec 2006; Markus Ullmann <jokey@gentoo.org>
- -MailScanner-4.55.10.3.ebuild, +MailScanner-4.57.6.1.ebuild:
- Version bump
-
- 09 Dec 2006; Jakub Moc <jakub@gentoo.org> MailScanner-4.55.10.3.ebuild:
- User proper perl virtuals in depend, instead of perl-core packages
-
- 19 Oct 2006; Markus Ullmann <jokey@gentoo.org>
- -MailScanner-4.54.6.1.ebuild:
- Dropping old version
-
- 10 Oct 2006; David Shakaryan <d@ompty.org> MailScanner-4.55.10.3.ebuild:
- Major cleanup.
-
- 05 Oct 2006; Chan Min Wai (dcmwai) <dcmwai@gmail.com>
- +MailScanner-4.55.10.3.ebuild:
- Version Pumb 4.55.10.3
-
- 02 Jul 2006; Markus Ullmann <jokey@gentoo.org> ChangeLog:
- Minor QA fix
-
- 02 Jul 2006; Markus Ullmann <jokey@gentoo.org> ChangeLog:
- Initial import -- thanks to various people in bug #36060
-
diff --git a/mail-filter/MailScanner/MailScanner-4.70.7.1.ebuild b/mail-filter/MailScanner/MailScanner-4.70.7.1.ebuild
deleted file mode 100644
index 4249ec73ce80..000000000000
--- a/mail-filter/MailScanner/MailScanner-4.70.7.1.ebuild
+++ /dev/null
@@ -1,304 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/MailScanner/MailScanner-4.70.7.1.ebuild,v 1.8 2010/03/06 18:41:09 ssuominen Exp $
-
-inherit eutils versionator
-
-MY_PV=$(get_version_component_range 1-3 )
-MY_PVR=$(replace_version_separator 3 '-' )
-
-DESCRIPTION="Free Anti-Virus and Anti-Spam Filter"
-HOMEPAGE="http://www.mailscanner.info/"
-SRC_URI="http://www.mailscanner.info/files/4/tar/${PN}-install-${MY_PVR}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="clamav doc exim postfix spamassassin"
-
-DEPEND="dev-lang/perl"
-RDEPEND="${DEPEND}
- dev-perl/Archive-Zip
- virtual/perl-IO-Compress
- dev-perl/Convert-BinHex
- dev-perl/Convert-TNEF
- dev-perl/DBD-SQLite
- dev-perl/DBI
- dev-perl/Filesys-Df
- >=dev-perl/HTML-Parser-3.45
- dev-perl/HTML-Tagset
- dev-perl/IO-stringy
- >=dev-perl/MIME-tools-5.417
- dev-perl/MailTools
- dev-perl/Net-CIDR
- dev-perl/Net-DNS
- dev-perl/OLE-StorageLite
- dev-perl/Sys-Hostname-Long
- dev-perl/TimeDate
- >=net-mail/tnef-1.4.3
- virtual/perl-File-Spec
- virtual/perl-File-Temp
- virtual/perl-Getopt-Long
- >=virtual/perl-Sys-Syslog-0.18
- >=virtual/perl-MIME-Base64-3.05
- virtual/cron
- postfix? ( mail-mta/postfix )
- exim? ( !postfix? ( mail-mta/exim ) )
- !postfix? ( !exim? ( mail-mta/sendmail ) )
- clamav? ( >=app-antivirus/clamav-0.88.4 )
- spamassassin? ( >=mail-filter/spamassassin-3.1.5 )"
-
-S="${WORKDIR}/${PN}-${MY_PVR}"
-BASE="/usr"
-
-src_unpack() {
- unpack ${A}
- unpack ./${PN}-install-${MY_PV}/perl-tar/${PN}-${MY_PVR}.tar.gz
-
- # setup MTA
- if use postfix ; then
- RUNASUSER='postfix'
- RUNASGROUP='postfix'
- INQUEUE='/var/spool/postfix.in/deferred'
- OUTQUEUE='/var/spool/postfix/incoming'
- MTA='postfix'
- SENDMAIL='/usr/lib/sendmail'
- SENDMAIL2='/usr/lib/sendmail'
- elif use exim ; then
- RUNASUSER='mail'
- RUNASGROUP='mail'
- INQUEUE='/var/spool/exim.in/input'
- OUTQUEUE='/var/spool/exim/input'
- MTA='exim'
- SENDMAIL='/usr/sbin/exim -oMr MailScanner'
- SENDMAIL2='/usr/sbin/exim -C /etc/exim/exim_out.conf -oMr MailScanner'
- else
- # use sendmail as default, but we should add more as needed
- # RUNASUSER='mail'
- # RUNASGROUP='mail'
- INQUEUE='/var/spool/mqueue.in'
- OUTQUEUE='/var/spool/mqueue'
- MTA='sendmail'
- SENDMAIL='/usr/lib/sendmail'
- SENDMAIL2='/usr/lib/sendmail'
- fi
-
- # setup virus scanner(s)
- VIRUS_SCANNERS=""
- use clamav && VIRUS_SCANNERS="clamav ${VIRUS_SCANNERS}"
-
- if [ "$VIRUS_SCANNERS" == "" ]; then
- VIRUS_SCANNERS="none"
- VIRUS_SCANNING="no"
- else
- VIRUS_SCANNING="yes"
- fi
-
- sed -i \
- -e "s/^\(Virus Scanning[ \t]*=\).*/\1 ${VIRUS_SCANNING}/" \
- -e "s/^\(Virus Scanners[ \t]*=\).*/\1 ${VIRUS_SCANNERS}/" \
- "${S}/etc/MailScanner.conf"
-
- # setup spamassassin
- if use spamassassin ; then
- sed -i \
- -e "s/^\(Use SpamAssassin[ \t]*=\).*$/\1 yes/" \
- "${S}/etc/MailScanner.conf"
- else
- sed -i \
- -e "s/^\(Use SpamAssassin[ \t]*=\).*$/\1 no/" \
- "${S}/etc/MailScanner.conf"
- fi
-
- # update bin files
- sed -i \
- -e "s#msbindir=/opt/MailScanner/bin#msbindir=/usr/sbin#g" \
- -e "s#config=/opt/MailScanner/etc/MailScanner.conf#config=/etc/MailScanner/MailScanner.conf#g" \
- "${S}/bin/check_mailscanner"
- for each in update_virus_scanners update_phishing_sites update_bad_phishing_sites ; do
- sed -i \
- -e "s#/opt/MailScanner/etc#/etc/MailScanner#g" \
- "${S}"/bin/${each}
- done
- sed -i \
- -e "s#/etc/sysconfig/MailScanner#/etc/conf.d/MailScanner#g" \
- "${S}"/bin/update_spamassassin
- sed -i \
- -e "s#/opt/MailScanner/etc#/etc/MailScanner#g" \
- -e "s#/opt/MailScanner/lib#/usr/lib/MailScanner#g" \
- "${S}"/bin/MailScanner
-
- # update cron files
- sed -i \
- -e "s#/opt/MailScanner/bin/check_mailscanner#/usr/sbin/check_MailScanner#g" \
- "${S}"/bin/cron/check_MailScanner.cron
- for cronfile in update_virus_scanners.cron update_{,bad_}phishing_sites.cron; do
- sed -i \
- -e "s#/etc/sysconfig/MailScanner#/etc/conf.d/mailscanner#g" \
- -e "s#/opt/MailScanner/bin#/usr/sbin#g" \
- "${S}"/bin/cron/${cronfile}
- done
-
- # Determine some things that may need to be changed in conf file
- # (need to arrive at sensible replacement for yoursite)
- YOURSITE=`dnsdomainname | sed -e "s/\./-/g"`
- BASEBIN="${BASE}/sbin"
-
- # ClamAV requires some specific changes to MailScanner.conf
- # when mailscanner is running as root (i.e. sendmail)
- if use clamav ; then
- if [ "$MTA" == "sendmail" ] ; then
- WORKGRP="clamav"
- WORKPERM="0640"
- else
- WORKGRP=""
- WORKPERM="0600"
- fi
- else
- WORKGRP=""
- WORKPERM="0600"
- fi
-
- # update conf files
- sed -i \
- -e "s#/opt/MailScanner/etc#/etc/MailScanner#g" \
- -e "s#/opt/MailScanner/bin#$BASEBIN#g" \
- -e "s#/opt/MailScanner/lib#/usr/lib/MailScanner#g" \
- -e "s#^\(Run As User[ \t]*=\).*#\1 $RUNASUSER#" \
- -e "s#^\(Run As Group[ \t]*=\).*#\1 $RUNASGROUP#" \
- -e "s#^\(Incoming Queue Dir[ \t]*=\).*#\1 $INQUEUE#" \
- -e "s#^\(Outgoing Queue Dir[ \t]*=\).*#\1 $OUTQUEUE#" \
- -e "s#^\(MTA[ \t]*=\).*#\1 $MTA#" \
- -e "s/^#\(TNEF.*internal\)$/\1/" \
- -e "s/^\(TNEF.*0000\)$/#\1/" \
- -e "s#^\(PID file[ \t]=\).*#\1 /var/run/mailscanner.pid#" \
- -e "s#^\(%org-name%\)[ \t]*=.*#\1 = ${YOURSITE}#" \
- -e "s#^\(Sendmail[ \t]*=\).*#\1 ${SENDMAIL}#" \
- -e "s#^\(Sendmail2[ \t]*=\).*#\1 ${SENDMAIL2}#" \
- -e "s#^\(Incoming Work Group[ \t]*=\).*#\1 ${WORKGRP}#" \
- -e "s#^\(Incoming Work Permissions[ \t]*=\).*#\1 ${WORKPERM}#" \
- "${S}/etc/MailScanner.conf"
-
- # update spam.assassin.prefs.conf
- sed -i -e "s#YOURDOMAIN-COM#${YOURSITE}#" "${S}"/etc/spam.assassin.prefs.conf
-
- # net-mail/clamav package compatibility
- sed -i \
- -e "s#/opt/MailScanner/lib#/usr/lib/MailScanner#" \
- -e 's#^\(clamav\t.*/usr\)/local$#\1#' \
- "${S}/etc/virus.scanners.conf"
-
- # update lib files
- sed -i \
- -e "s#/opt/MailScanner/bin#$BASEBIN#g" \
- -e "s#/opt/MailScanner/etc#/etc/MailScanner#g" \
- -e "s#/opt/MailScanner/lib#/usr/lib/MailScanner#g" \
- "${S}/lib/MailScanner/ConfigDefs.pl"
- sed -i \
- -e "s#/etc/MailScanner#/etc/MailScanner#g" \
- "${S}/lib/MailScanner/CustomConfig.pm"
-
- # finally, change MailScanner.conf into MailScanner.conf.sample
- cp "${S}/etc/MailScanner.conf" "${S}/etc/MailScanner.conf.${MY_PV}"
- mv "${S}/etc/MailScanner.conf" "${S}/etc/MailScanner.conf.sample"
-
-}
-
-src_install() {
- exeinto ${BASE}/sbin
- doexe bin/MailScanner
- newexe bin/check_mailscanner check_MailScanner
- doexe bin/d2mbox bin/df2mbox
- doexe bin/update_virus_scanners
- doexe bin/upgrade_MailScanner_conf
- doexe bin/update_bad_phishing_sites bin/update_phishing_sites
- newexe bin/Sophos.install.linux Sophos.install
-
- insinto /etc/MailScanner
- doins etc/*.conf
- doins etc/mailscanner.conf.with.mcp
- doins etc/MailScanner.conf.${MY_PV}
- doins etc/MailScanner.conf.sample
-
- insinto /etc/MailScanner/rules
- doins etc/rules/*
- insinto /etc/MailScanner/mcp
- doins etc/mcp/*
-
- insinto /etc/MailScanner
- doins -r etc/reports
-
- insinto ${BASE}/$(get_libdir)/MailScanner
- doins lib/*.prf
-
- exeinto ${BASE}/$(get_libdir)/MailScanner
- doexe lib/*-wrapper
- doexe lib/*-autoupdate
- doexe lib/*-autoupdate.old
- doexe lib/*.pm
-
- exeinto ${BASE}/$(get_libdir)/MailScanner/MailScanner
- doexe lib/MailScanner/*.pm
- doexe lib/MailScanner/*.pl
-
- insinto ${BASE}/$(get_libdir)/MailScanner/MailScanner
- doins lib/MailScanner/*.txt
-
- exeinto ${BASE}/$(get_libdir)/MailScanner/MailScanner/CustomFunctions
- doexe lib/MailScanner/CustomFunctions/MyExample.pm
-
- newinitd "${FILESDIR}"/initd.mailscanner MailScanner
- newconfd "${FILESDIR}"/confd.mailscanner MailScanner
-
- #Set up cron jobs
- exeinto /etc/cron.hourly
- newexe "${S}/bin/cron/check_MailScanner.cron" check_MailScanner
- for cronfile in update_{virus_scanners,{bad_,}phishing_sites}; do
- newexe "${S}/bin/cron/${cronfile}.cron" ${cronfile}
- done
-
- exeinto /etc/cron.daily
- newexe "${S}/bin/cron/clean.quarantine.cron" clean.quarantine
-
- dodoc README
- insinto /usr/share/doc/${PF}
- doins MailScanner.conf.index.html
-
- keepdir /var/spool/MailScanner/incoming
- keepdir /var/spool/MailScanner/quarantine
- keepdir /var/spool/MailScanner/spamassassin
- keepdir /var/spool/MailScanner/archive
- keepdir ${BASE}/var
-
- if use postfix ; then
- chown -R postfix:postfix "${D}/var/spool/MailScanner/"
- elif use exim ; then
- chown -R mail:mail "${D}/var/spool/MailScanner/"
- else
- keepdir /var/spool/mqueue.in
- fi
- use spamassassin && dosym /etc/MailScanner/spam.assassin.prefs.conf /etc/mail/spamassassin/mailscanner.cf
-
-}
-
-pkg_postinst() {
- if use postfix; then
- elog "Note that postfix 2.4 now supports HOLD of messages"
- elog "and reinjection without second postfix instance"
- elog "Inbound path is now ${ROOT}var/spool/postfix/hold"
- elog
- elog "See http://mailscanner.info/postfix.html for details"
- elog "or check (english) gentoo-wiki.com page which has been updated"
- fi
-
- if [ -f "/etc/MailScanner/MailScanner.conf" ]; then
- einfo "Upgrading the MailScanner.conf file"
- cp /etc/MailScanner/MailScanner.conf /etc/MailScanner/MailScanner.conf.pre_upgrade.${MY_PV}
- /usr/sbin/upgrade_MailScanner_conf \
- /etc/MailScanner/MailScanner.conf.pre_upgrade.${MY_PV} \
- /etc/MailScanner/MailScanner.conf.${MY_PV} \
- > /etc/MailScanner/MailScanner.conf 2> /dev/null
- else
- cp /etc/MailScanner/MailScanner.conf.sample /etc/MailScanner/MailScanner.conf
- fi
-}
diff --git a/mail-filter/MailScanner/MailScanner-4.79.11.1.ebuild b/mail-filter/MailScanner/MailScanner-4.79.11.1.ebuild
deleted file mode 100644
index 429466035147..000000000000
--- a/mail-filter/MailScanner/MailScanner-4.79.11.1.ebuild
+++ /dev/null
@@ -1,322 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/MailScanner/MailScanner-4.79.11.1.ebuild,v 1.1 2010/03/16 18:42:05 patrick Exp $
-
-inherit eutils versionator
-
-MY_PV=$(get_version_component_range 1-3 )
-MY_PVR=$(replace_version_separator 3 '-' )
-
-DESCRIPTION="Free Anti-Virus and Anti-Spam Filter"
-HOMEPAGE="http://www.mailscanner.info/"
-SRC_URI="http://www.mailscanner.info/files/4/tar/${PN}-install-${MY_PVR}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="clamav doc exim postfix spamassassin"
-
-DEPEND="dev-lang/perl"
-RDEPEND="${DEPEND}
- dev-perl/Archive-Zip
- virtual/perl-IO-Compress
- dev-perl/Convert-BinHex
- dev-perl/Convert-TNEF
- dev-perl/DBD-SQLite
- dev-perl/DBI
- dev-perl/Filesys-Df
- >=dev-perl/HTML-Parser-3.45
- dev-perl/HTML-Tagset
- dev-perl/IO-stringy
- >=dev-perl/MIME-tools-5.417
- dev-perl/MailTools
- dev-perl/Net-CIDR
- dev-perl/Net-DNS
- dev-perl/OLE-StorageLite
- dev-perl/Sys-Hostname-Long
- dev-perl/TimeDate
- >=net-mail/tnef-1.4.3
- virtual/perl-File-Spec
- virtual/perl-File-Temp
- virtual/perl-Getopt-Long
- >=virtual/perl-Sys-Syslog-0.18
- >=virtual/perl-MIME-Base64-3.05
- virtual/cron
- postfix? ( mail-mta/postfix )
- exim? ( !postfix? ( mail-mta/exim ) )
- !postfix? ( !exim? ( mail-mta/sendmail ) )
- clamav? ( >=app-antivirus/clamav-0.88.4 )
- spamassassin? ( >=mail-filter/spamassassin-3.1.5 )"
-
-S="${WORKDIR}/${PN}-${MY_PVR}"
-BASE="/usr"
-
-src_unpack() {
- unpack ${A}
- unpack ./${PN}-install-${MY_PV}/perl-tar/${PN}-${MY_PVR}.tar.gz
-
- # setup MTA
- if use postfix ; then
- RUNASUSER='postfix'
- RUNASGROUP='postfix'
- INQUEUE='/var/spool/postfix.in/deferred'
- OUTQUEUE='/var/spool/postfix/incoming'
- MTA='postfix'
- SENDMAIL='/usr/lib/sendmail'
- SENDMAIL2='/usr/lib/sendmail'
- elif use exim ; then
- RUNASUSER='mail'
- RUNASGROUP='mail'
- INQUEUE='/var/spool/exim.in/input'
- OUTQUEUE='/var/spool/exim/input'
- MTA='exim'
- SENDMAIL='/usr/sbin/exim -oMr MailScanner'
- SENDMAIL2='/usr/sbin/exim -C /etc/exim/exim_out.conf -oMr MailScanner'
- else
- # use sendmail as default, but we should add more as needed
- # RUNASUSER='mail'
- # RUNASGROUP='mail'
- INQUEUE='/var/spool/mqueue.in'
- OUTQUEUE='/var/spool/mqueue'
- MTA='sendmail'
- SENDMAIL='/usr/lib/sendmail'
- SENDMAIL2='/usr/lib/sendmail'
- fi
-
- # setup virus scanner(s)
- VIRUS_SCANNERS=""
- use clamav && VIRUS_SCANNERS="clamav ${VIRUS_SCANNERS}"
-
- if [ "$VIRUS_SCANNERS" == "" ]; then
- VIRUS_SCANNERS="none"
- VIRUS_SCANNING="no"
- else
- VIRUS_SCANNING="yes"
- fi
-
- sed -i \
- -e "s/^\(Virus Scanning[ \t]*=\).*/\1 ${VIRUS_SCANNING}/" \
- -e "s/^\(Virus Scanners[ \t]*=\).*/\1 ${VIRUS_SCANNERS}/" \
- "${S}/etc/MailScanner.conf"
-
- # setup spamassassin
- if use spamassassin ; then
- sed -i \
- -e "s/^\(Use SpamAssassin[ \t]*=\).*$/\1 yes/" \
- "${S}/etc/MailScanner.conf"
- else
- sed -i \
- -e "s/^\(Use SpamAssassin[ \t]*=\).*$/\1 no/" \
- "${S}/etc/MailScanner.conf"
- fi
-
- # update bin files
- sed -i \
- -e "s#msbindir=/opt/MailScanner/bin#msbindir=/usr/sbin#g" \
- -e "s#config=/opt/MailScanner/etc/MailScanner.conf#config=/etc/MailScanner/MailScanner.conf#g" \
- "${S}/bin/check_mailscanner"
- for each in update_virus_scanners update_phishing_sites update_bad_phishing_sites ; do
- sed -i \
- -e "s#/opt/MailScanner/etc#/etc/MailScanner#g" \
- "${S}"/bin/${each}
- done
- sed -i \
- -e "s#/etc/sysconfig/MailScanner#/etc/conf.d/MailScanner#g" \
- "${S}"/bin/update_spamassassin
- sed -i \
- -e "s#/opt/MailScanner/etc#/etc/MailScanner#g" \
- -e "s#/opt/MailScanner/lib#/usr/lib/MailScanner#g" \
- "${S}"/bin/MailScanner
-
- # update cron files
- sed -i \
- -e "s#/opt/MailScanner/bin/check_mailscanner#/usr/sbin/check_MailScanner#g" \
- "${S}"/bin/cron/check_MailScanner.cron
- for cronfile in update_virus_scanners.cron update_{,bad_}phishing_sites.cron; do
- sed -i \
- -e "s#/etc/sysconfig/MailScanner#/etc/conf.d/mailscanner#g" \
- -e "s#/opt/MailScanner/bin#/usr/sbin#g" \
- "${S}"/bin/cron/${cronfile}
- done
-
- # Determine some things that may need to be changed in conf file
- # (need to arrive at sensible replacement for yoursite)
- YOURSITE=`dnsdomainname | sed -e "s/\./-/g"`
- BASEBIN="${BASE}/sbin"
-
- # ClamAV requires some specific changes to MailScanner.conf
- # when mailscanner is running as root (i.e. sendmail)
- if use clamav ; then
- if [ "$MTA" == "sendmail" ] ; then
- WORKGRP="clamav"
- WORKPERM="0640"
- else
- WORKGRP=""
- WORKPERM="0600"
- fi
- else
- WORKGRP=""
- WORKPERM="0600"
- fi
-
- # update conf files
- sed -i \
- -e "s#/opt/MailScanner/etc#/etc/MailScanner#g" \
- -e "s#/opt/MailScanner/bin#$BASEBIN#g" \
- -e "s#/opt/MailScanner/lib#/usr/lib/MailScanner#g" \
- -e "s#^\(Run As User[ \t]*=\).*#\1 $RUNASUSER#" \
- -e "s#^\(Run As Group[ \t]*=\).*#\1 $RUNASGROUP#" \
- -e "s#^\(Incoming Queue Dir[ \t]*=\).*#\1 $INQUEUE#" \
- -e "s#^\(Outgoing Queue Dir[ \t]*=\).*#\1 $OUTQUEUE#" \
- -e "s#^\(MTA[ \t]*=\).*#\1 $MTA#" \
- -e "s/^#\(TNEF.*internal\)$/\1/" \
- -e "s/^\(TNEF.*0000\)$/#\1/" \
- -e "s#^\(PID file[ \t]=\).*#\1 /var/run/mailscanner.pid#" \
- -e "s#^\(%org-name%\)[ \t]*=.*#\1 = ${YOURSITE}#" \
- -e "s#^\(Sendmail[ \t]*=\).*#\1 ${SENDMAIL}#" \
- -e "s#^\(Sendmail2[ \t]*=\).*#\1 ${SENDMAIL2}#" \
- -e "s#^\(Incoming Work Group[ \t]*=\).*#\1 ${WORKGRP}#" \
- -e "s#^\(Incoming Work Permissions[ \t]*=\).*#\1 ${WORKPERM}#" \
- "${S}/etc/MailScanner.conf"
-
- # update spam.assassin.prefs.conf
- sed -i -e "s#YOURDOMAIN-COM#${YOURSITE}#" ${S}/etc/spam.assassin.prefs.conf
-
- # net-mail/clamav net-mail/f-prot package compatibility
- sed -i \
- -e "s#/opt/MailScanner/lib#/usr/lib/MailScanner#" \
- -e 's#^\(clamav\t.*/usr\)/local$#\1#' \
- -e 's#^\(f-prot.*\)/usr/local/f-prot$#\1/opt/f-prot#' \
- "${S}/etc/virus.scanners.conf"
-
- # update lib files
- sed -i \
- -e "s#/opt/MailScanner/bin#$BASEBIN#g" \
- -e "s#/opt/MailScanner/etc#/etc/MailScanner#g" \
- -e "s#/opt/MailScanner/lib#/usr/lib/MailScanner#g" \
- "${S}/lib/MailScanner/ConfigDefs.pl"
- sed -i \
- -e "s#/opt/MailScanner/bin#$BASEBIN#g" \
- -e "s#/opt/MailScanner/etc#/etc/MailScanner#g" \
- -e "s#/opt/MailScanner/lib#/usr/lib/MailScanner#g" \
- "${S}/bin/MailScanner"
- sed -i \
- -e "s#/opt/MailScanner/bin#$BASEBIN#g" \
- -e "s#/opt/MailScanner/etc#/etc/MailScanner#g" \
- -e "s#/opt/MailScanner/lib#/usr/lib/MailScanner#g" \
- "${S}/bin/update_virus_scanners"
- sed -i \
- -e "s#/opt/MailScanner/bin#$BASEBIN#g" \
- -e "s#/opt/MailScanner/etc#/etc/MailScanner#g" \
- -e "s#/opt/MailScanner/lib#/usr/lib/MailScanner#g" \
- "${S}/bin/mailscanner_create_locks"
- sed -i \
- -e "s#/etc/MailScanner#/etc/MailScanner#g" \
- "${S}/lib/MailScanner/CustomConfig.pm"
-
- # finally, change MailScanner.conf into MailScanner.conf.sample
- cp "${S}/etc/MailScanner.conf" "${S}/etc/MailScanner.conf.${MY_PV}"
- mv "${S}/etc/MailScanner.conf" "${S}/etc/MailScanner.conf.sample"
-
-}
-
-src_install() {
- exeinto ${BASE}/sbin
- doexe bin/MailScanner
- newexe bin/check_mailscanner check_MailScanner
- doexe bin/d2mbox bin/df2mbox
- doexe bin/update_virus_scanners
- doexe bin/upgrade_MailScanner_conf
- doexe bin/mailscanner_create_locks
- doexe bin/Quick.Peek
- doexe bin/update_bad_phishing_sites bin/update_phishing_sites
- newexe bin/Sophos.install.linux Sophos.install
-
- insinto /etc/MailScanner/conf.d
- doins etc/conf.d/*
-
- insinto /etc/MailScanner
- doins etc/*.conf
- doins etc/mailscanner.conf.with.mcp
- doins etc/MailScanner.conf.${MY_PV}
- doins etc/MailScanner.conf.sample
-
- insinto /etc/MailScanner/rules
- doins etc/rules/*
- insinto /etc/MailScanner/mcp
- doins etc/mcp/*
-
- insinto /etc/MailScanner
- doins -r etc/reports
-
- insinto ${BASE}/$(get_libdir)/MailScanner
- doins lib/*.prf
-
- exeinto ${BASE}/$(get_libdir)/MailScanner
- doexe lib/*-wrapper
- doexe lib/*-autoupdate
- doexe lib/*-autoupdate.old
- doexe lib/*.pm
-
- exeinto ${BASE}/$(get_libdir)/MailScanner/MailScanner
- doexe lib/MailScanner/*.pm
- doexe lib/MailScanner/*.pl
-
- exeinto ${BASE}/$(get_libdir)/MailScanner/MailScanner/CustomFunctions
- doexe lib/MailScanner/CustomFunctions/MyExample.pm
-
- newinitd "${FILESDIR}"/initd.mailscanner MailScanner
- newconfd "${FILESDIR}"/confd.mailscanner MailScanner
-
- #Set up cron jobs
- exeinto /etc/cron.hourly
- newexe "${S}/bin/cron/check_MailScanner.cron" check_MailScanner
- for cronfile in update_{virus_scanners,{bad_,}phishing_sites}; do
- newexe "${S}/bin/cron/${cronfile}.cron" ${cronfile}
- done
-
- exeinto /etc/cron.daily
- newexe "${S}/bin/cron/clean.quarantine.cron" clean.quarantine
-
- dodoc README
- insinto /usr/share/doc/${PF}
- doins MailScanner.conf.index.html
-
- keepdir /var/spool/MailScanner/incoming
- keepdir /var/spool/MailScanner/quarantine
- keepdir /var/spool/MailScanner/spamassassin
- keepdir /var/spool/MailScanner/archive
- keepdir ${BASE}/var
-
- if use postfix ; then
- chown -R postfix:postfix "${D}/var/spool/MailScanner/"
- elif use exim ; then
- chown -R mail:mail "${D}/var/spool/MailScanner/"
- else
- keepdir /var/spool/mqueue.in
- fi
- use spamassassin && dosym /etc/MailScanner/spam.assassin.prefs.conf /etc/mail/spamassassin/mailscanner.cf
-
-}
-
-pkg_postinst() {
- if use postfix; then
- elog "Note that postfix 2.4 now supports HOLD of messages"
- elog "and reinjection without second postfix instance"
- elog "Inbound path is now ${ROOT}var/spool/postfix/hold"
- elog
- elog "See http://mailscanner.info/postfix.html for details"
- elog "or check (english) gentoo-wiki.com page which has been updated"
- fi
-
- if [ -f "/etc/MailScanner/MailScanner.conf" ]; then
- einfo "Upgrading the MailScanner.conf file"
- cp /etc/MailScanner/MailScanner.conf /etc/MailScanner/MailScanner.conf.pre_upgrade.${MY_PV}
- /usr/sbin/upgrade_MailScanner_conf \
- /etc/MailScanner/MailScanner.conf.pre_upgrade.${MY_PV} \
- /etc/MailScanner/MailScanner.conf.${MY_PV} \
- > /etc/MailScanner/MailScanner.conf 2> /dev/null
- else
- cp /etc/MailScanner/MailScanner.conf.sample /etc/MailScanner/MailScanner.conf
- fi
-}
diff --git a/mail-filter/MailScanner/Manifest b/mail-filter/MailScanner/Manifest
deleted file mode 100644
index 93e879e3fd76..000000000000
--- a/mail-filter/MailScanner/Manifest
+++ /dev/null
@@ -1,8 +0,0 @@
-AUX confd.mailscanner 147 RMD160 2472095d115d136498f93a6dca3ce540e335222f SHA1 377447317cf1354b4e377912d18a459b12f7a8d6 SHA256 d0ef32a53c83a2c2938d970f30b3765676fe4669b2ec98407c39ca070cd24bbb
-AUX initd.mailscanner 981 RMD160 89a1fbf97ee53b8776ce0e654da05c08cef2e03d SHA1 63352e234d28ff51b889ef06bc6c5b770a2ccd9f SHA256 e65a64fbfe6a20146ea99e48097a7320253a1eab1afd31134e5df65d8da435b0
-DIST MailScanner-install-4.70.7-1.tar.gz 8329186 RMD160 245e3e5f06f90d227a76bd7b4c28763ee2c06cdb SHA1 1e54cb379de9f79e4f4014bf2d91e1db878bb422 SHA256 b5d7487438dfd1559a4e8b6c6f42839a4fe87170760e3661002cc5f31ece4cc2
-DIST MailScanner-install-4.79.11-1.tar.gz 9111441 RMD160 2390afcc730c5f2b868d80b61ff49c6b46b47917 SHA1 ebca05de73859e143a042d54ea4a992186ef2393 SHA256 68a7577dda36a219362db687e7ae2da226c9aa7683992259a94ace4cc739cce4
-EBUILD MailScanner-4.70.7.1.ebuild 9193 RMD160 f72927aee90087165611650821cbe5d1de813708 SHA1 df48a2521f59b80f9a7679ca381b43444c71a931 SHA256 10fcb0c11acfd03e948f3c66a5594d61b8ea375a025080a975521f50433fcf37
-EBUILD MailScanner-4.79.11.1.ebuild 9866 RMD160 ce4c9230c8225d6915486e6d559ffbc9677b22c3 SHA1 b0250819df62f7612d22d6232fe3c1cb3c0a319f SHA256 9a6b16aa6fd3626725952ede1123d2b695cb00cb76bcb66f2b20896f7d7643a6
-MISC ChangeLog 3716 RMD160 94912833985b255421c750ab868260e391c7fcbc SHA1 585e489472f75e7aa0577518d0695709b25ca018 SHA256 a4dc61a6076876d7abcaa7ffef52b750e7eedd5511b0e8cea117ddb1d7d84b4c
-MISC metadata.xml 507 RMD160 2288900de2cd3e263a463bad0df7df0c350837e5 SHA1 1f5af39db35da2555491bc93675eb51fca6097ed SHA256 015cd4117483ca9805b641ee8a3b5cbca689a1c8622c7c8d8c967fa861880fca
diff --git a/mail-filter/MailScanner/files/confd.mailscanner b/mail-filter/MailScanner/files/confd.mailscanner
deleted file mode 100644
index 144d0d478fc8..000000000000
--- a/mail-filter/MailScanner/files/confd.mailscanner
+++ /dev/null
@@ -1,4 +0,0 @@
-#
-
-UPDATEMAXDELAY=600 # Maximum delay before running cron job to avoid server peaks
-RESTART_DELAY=10 # time to wait before restarting mailscanner
diff --git a/mail-filter/MailScanner/files/initd.mailscanner b/mail-filter/MailScanner/files/initd.mailscanner
deleted file mode 100644
index accda9ef26f3..000000000000
--- a/mail-filter/MailScanner/files/initd.mailscanner
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/sbin/runscript
-
-opts="${opts} reload"
-
-depend() {
- need net mta
- use logger dns
-}
-
-start() {
- ebegin "Starting MailScanner"
- #/usr/sbin/check_MailScanner >/dev/null
- start-stop-daemon --start --pidfile /var/run/${SVCNAME}.pid \
- --exec /usr/sbin/MailScanner -- /etc/MailScanner/MailScanner.conf ${OPT} > /var/run/${SVCNAME}.pid
- eend $?
-
- RETVAL=$?
- [ ${RETVAL} -eq 0 ] && touch /var/lock/subsys/MailScanner
- [ ${RETVAL} -eq 0 ] && rm -f /var/lock/subsys/MailScanner.off
- eend ${RETVAL}
-}
-
-stop() {
- ebegin "Stopping MailScanner"
- start-stop-daemon --stop --quiet --pidfile /var/run/${SVCNAME}.pid
- RETVAL=$?
- [ ${RETVAL} -eq 0 ] && rm -f /var/lock/subsys/MailScanner
- [ ${RETVAL} -eq 0 ] && touch /var/lock/subsys/MailScanner.off
- eend ${RETVAL}
-}
-
-reload() {
- ebegin "Reloading MailScanner workers:"
- pid=`pidof -x MailScanner`
- if [ -n "$pid" ] ;
- then
- /bin/kill -HUP $pid
- eend $?
- else
- eend 1
- fi
-}
-
-restart() {
- svc_stop
- sleep ${RESTART_DELAY}
- svc_start
-}
diff --git a/mail-filter/MailScanner/metadata.xml b/mail-filter/MailScanner/metadata.xml
deleted file mode 100644
index 60a157e0a420..000000000000
--- a/mail-filter/MailScanner/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>
-<herd>no-herd</herd>
-<maintainer>
- <email>jokey@gentoo.org</email>
- <name>Markus Ullmann</name>
-</maintainer>
-<use>
- <flag name='exim'>Set <pkg>mail-mta</pkg> to used MTA</flag>
- <flag name='postfix'>Set <pkg>mail-mta/postfix</pkg> to used MTA</flag>
- <flag name='spamassassin'>Enable usage of
- <pkg>mail-filter/spamassassin</pkg> for spam protection</flag>
-</use>
-</pkgmetadata>