summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrej Kacian <ticho@gentoo.org>2005-06-13 15:49:12 +0000
committerAndrej Kacian <ticho@gentoo.org>2005-06-13 15:49:12 +0000
commit22d9b3432d8ba041307891f68b72b3d8f17579f0 (patch)
tree7cd9826ee2feb6b74d984592e86670e94adc8609 /mail-filter/p3scan
parentFixed invalid atoms. (diff)
downloadgentoo-2-22d9b3432d8ba041307891f68b72b3d8f17579f0.tar.gz
gentoo-2-22d9b3432d8ba041307891f68b72b3d8f17579f0.tar.bz2
gentoo-2-22d9b3432d8ba041307891f68b72b3d8f17579f0.zip
Initial import. Bug #86216.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'mail-filter/p3scan')
-rw-r--r--mail-filter/p3scan/ChangeLog12
-rw-r--r--mail-filter/p3scan/Manifest5
-rw-r--r--mail-filter/p3scan/files/digest-p3scan-2.11
-rw-r--r--mail-filter/p3scan/files/p3scan.init28
-rw-r--r--mail-filter/p3scan/metadata.xml6
-rw-r--r--mail-filter/p3scan/p3scan-2.1.ebuild77
6 files changed, 129 insertions, 0 deletions
diff --git a/mail-filter/p3scan/ChangeLog b/mail-filter/p3scan/ChangeLog
new file mode 100644
index 000000000000..fb5c0f197c7f
--- /dev/null
+++ b/mail-filter/p3scan/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for mail-filter/p3scan
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/p3scan/ChangeLog,v 1.1 2005/06/13 15:49:12 ticho Exp $
+
+*p3scan-2.1 (13 Jun 2005)
+
+ 13 Jun 2005; Andrej Kacian <ticho@gentoo.org> +files/p3scan.init,
+ +metadata.xml, +p3scan-2.1.ebuild:
+ Initial import. Closes bug #86216, by Zhenzhi <zzzzzz at singnet.com.sg>.
+ Ebuild and initscript provided by Christian Zoffoli <xmerlin at gentoo.org>,
+ modified by me.
+
diff --git a/mail-filter/p3scan/Manifest b/mail-filter/p3scan/Manifest
new file mode 100644
index 000000000000..48e54c4d4f66
--- /dev/null
+++ b/mail-filter/p3scan/Manifest
@@ -0,0 +1,5 @@
+MD5 4342f2bef487df09c7441605653c07c3 p3scan-2.1.ebuild 1928
+MD5 f5742d0a239c3ebf705d159b141ae193 ChangeLog 119
+MD5 36d9f272b13fc5cb611787183970922e metadata.xml 409
+MD5 360cf261a5fa438c27e1d3febac36c87 files/digest-p3scan-2.1 62
+MD5 aac72a0ca3a82157edf0a70267313c68 files/p3scan.init 515
diff --git a/mail-filter/p3scan/files/digest-p3scan-2.1 b/mail-filter/p3scan/files/digest-p3scan-2.1
new file mode 100644
index 000000000000..3c2e16938fd8
--- /dev/null
+++ b/mail-filter/p3scan/files/digest-p3scan-2.1
@@ -0,0 +1 @@
+MD5 5e261548e522f3ac2583870b6e02aecd p3scan-2.1.tar.gz 348717
diff --git a/mail-filter/p3scan/files/p3scan.init b/mail-filter/p3scan/files/p3scan.init
new file mode 100644
index 000000000000..74c521a5509f
--- /dev/null
+++ b/mail-filter/p3scan/files/p3scan.init
@@ -0,0 +1,28 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/p3scan/files/p3scan.init,v 1.1 2005/06/13 15:49:12 ticho Exp $
+
+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/metadata.xml b/mail-filter/p3scan/metadata.xml
new file mode 100644
index 000000000000..673316e53881
--- /dev/null
+++ b/mail-filter/p3scan/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-mail</herd>
+<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>
+</pkgmetadata>
diff --git a/mail-filter/p3scan/p3scan-2.1.ebuild b/mail-filter/p3scan/p3scan-2.1.ebuild
new file mode 100644
index 000000000000..d6eef0ea397f
--- /dev/null
+++ b/mail-filter/p3scan/p3scan-2.1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/p3scan/p3scan-2.1.ebuild,v 1.1 2005/06/13 15:49:12 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="net-mail/ripmime
+ dev-libs/libpcre"
+RDEPEND="net-firewall/iptables"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~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
+ 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 also need to configure at least following in /etc/${PN}/${PN}.conf:"
+ einfo "scannertype, scanner, virusregexp"
+ echo
+}