summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrej Kacian <ticho@gentoo.org>2006-09-22 12:28:16 +0000
committerAndrej Kacian <ticho@gentoo.org>2006-09-22 12:28:16 +0000
commitda2f1d1c7ae98fb722596e603f18f504d3a73bbf (patch)
treeb3a1cb504dc4bc0f86c34c753510d387a696872b /mail-filter/p3scan
parentRename saveme and validateconf executables. Add tordns patch & local USE flag... (diff)
downloadgentoo-2-da2f1d1c7ae98fb722596e603f18f504d3a73bbf.tar.gz
gentoo-2-da2f1d1c7ae98fb722596e603f18f504d3a73bbf.tar.bz2
gentoo-2-da2f1d1c7ae98fb722596e603f18f504d3a73bbf.zip
Install an example scanner script, as suggested by Pinky <master_up at post.cz> in bug #147695. Do not depend on ripmime, since p3scan brings its own, which it links statically. Remove obsolete ebuilds.
(Portage version: 2.1.2_pre1)
Diffstat (limited to 'mail-filter/p3scan')
-rw-r--r--mail-filter/p3scan/ChangeLog10
-rw-r--r--mail-filter/p3scan/files/digest-p3scan-2.3.12
-rw-r--r--mail-filter/p3scan/files/digest-p3scan-2.3.1-r13
-rw-r--r--mail-filter/p3scan/p3scan-2.3.1-r1.ebuild80
4 files changed, 94 insertions, 1 deletions
diff --git a/mail-filter/p3scan/ChangeLog b/mail-filter/p3scan/ChangeLog
index ca68e167fdb0..43452649f2b0 100644
--- a/mail-filter/p3scan/ChangeLog
+++ b/mail-filter/p3scan/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for mail-filter/p3scan
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/p3scan/ChangeLog,v 1.9 2006/02/25 17:03:29 ticho Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/p3scan/ChangeLog,v 1.10 2006/09/22 12:28:16 ticho Exp $
+
+*p3scan-2.3.1-r1 (22 Sep 2006)
+
+ 22 Sep 2006; <ticho@gentoo.org> -p3scan-2.1.ebuild, -p3scan-2.2.1.ebuild,
+ -p3scan-2.3.0.ebuild, +p3scan-2.3.1-r1.ebuild:
+ Install an example scanner script, as suggested by Pinky <master_up at
+ post.cz> in bug #147695. Do not depend on ripmime, since p3scan brings its
+ own, which it links statically. Remove obsolete ebuilds.
25 Feb 2006; Andrej Kacian <ticho@gentoo.org> p3scan-2.3.1.ebuild:
Stable on x86.
diff --git a/mail-filter/p3scan/files/digest-p3scan-2.3.1 b/mail-filter/p3scan/files/digest-p3scan-2.3.1
index bf899607fc39..d5e37c6b824f 100644
--- a/mail-filter/p3scan/files/digest-p3scan-2.3.1
+++ b/mail-filter/p3scan/files/digest-p3scan-2.3.1
@@ -1 +1,3 @@
MD5 c1ce98fd1fe2220ef9838eb97ae38300 p3scan-2.3.1.tar.gz 315677
+RMD160 bb3ece736f44f2c8a8b919163fcb9d9d90ff7ec8 p3scan-2.3.1.tar.gz 315677
+SHA256 2c51185caddde414de13f7de9b94986145a6519deac1de655f38538113122329 p3scan-2.3.1.tar.gz 315677
diff --git a/mail-filter/p3scan/files/digest-p3scan-2.3.1-r1 b/mail-filter/p3scan/files/digest-p3scan-2.3.1-r1
new file mode 100644
index 000000000000..d5e37c6b824f
--- /dev/null
+++ b/mail-filter/p3scan/files/digest-p3scan-2.3.1-r1
@@ -0,0 +1,3 @@
+MD5 c1ce98fd1fe2220ef9838eb97ae38300 p3scan-2.3.1.tar.gz 315677
+RMD160 bb3ece736f44f2c8a8b919163fcb9d9d90ff7ec8 p3scan-2.3.1.tar.gz 315677
+SHA256 2c51185caddde414de13f7de9b94986145a6519deac1de655f38538113122329 p3scan-2.3.1.tar.gz 315677
diff --git a/mail-filter/p3scan/p3scan-2.3.1-r1.ebuild b/mail-filter/p3scan/p3scan-2.3.1-r1.ebuild
new file mode 100644
index 000000000000..43822aeefef7
--- /dev/null
+++ b/mail-filter/p3scan/p3scan-2.3.1-r1.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/p3scan/p3scan-2.3.1-r1.ebuild,v 1.1 2006/09/22 12:28:16 ticho Exp $
+
+inherit eutils
+
+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="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 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
+ einfo "Default infected notification template language is set to english, change the"
+ einfo "symbolic link /etc/${PN}/${PN}.mail if you want it in another language."
+ echo
+ einfo "To start ${PN}, you can use /etc/init.d/${PN} start"
+ echo
+ einfo "You need port-redirecting, a rule like:"
+ echo " iptables -t nat -A PREROUTING -p tcp -i eth0 --dport pop3 -j REDIRECT --to 8110"
+ einfo "to forward pop3 connections incoming from eth0 interface."
+ echo
+ einfo "You will need to configure at least following in /etc/${PN}/${PN}.conf:"
+ einfo "scannertype, scanner, virusregexp"
+ echo
+ einfo "An example scanner script has been installed to:"
+ einfo "/usr/share/doc/${PF}/p3scan.sh.gz"
+ echo
+}