summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrej Kacian <ticho@gentoo.org>2007-04-09 20:42:40 +0000
committerAndrej Kacian <ticho@gentoo.org>2007-04-09 20:42:40 +0000
commitdb3896505e5bbe098ecf8029db5bf0d84470cadb (patch)
tree8fd4cdc36f16320ac41f5854fd25a82d8e8a402a /mail-filter/p3scan
parentia64 stable wrt bug 169509 (diff)
downloadgentoo-2-db3896505e5bbe098ecf8029db5bf0d84470cadb.tar.gz
gentoo-2-db3896505e5bbe098ecf8029db5bf0d84470cadb.tar.bz2
gentoo-2-db3896505e5bbe098ecf8029db5bf0d84470cadb.zip
Version bump.
(Portage version: 2.1.2.3)
Diffstat (limited to 'mail-filter/p3scan')
-rw-r--r--mail-filter/p3scan/ChangeLog7
-rw-r--r--mail-filter/p3scan/files/digest-p3scan-2.3.23
-rw-r--r--mail-filter/p3scan/p3scan-2.3.2.ebuild80
3 files changed, 89 insertions, 1 deletions
diff --git a/mail-filter/p3scan/ChangeLog b/mail-filter/p3scan/ChangeLog
index 5de8ef6769d0..826fd51dfab5 100644
--- a/mail-filter/p3scan/ChangeLog
+++ b/mail-filter/p3scan/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for mail-filter/p3scan
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/p3scan/ChangeLog,v 1.11 2007/03/18 04:41:14 genone Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/p3scan/ChangeLog,v 1.12 2007/04/09 20:42:40 ticho Exp $
+
+*p3scan-2.3.2 (09 Apr 2007)
+
+ 09 Apr 2007; Andrej Kacian <ticho@gentoo.org> +p3scan-2.3.2.ebuild:
+ Version bump.
18 Mar 2007; Marius Mauch <genone@gentoo.org> p3scan-2.3.1.ebuild,
p3scan-2.3.1-r1.ebuild:
diff --git a/mail-filter/p3scan/files/digest-p3scan-2.3.2 b/mail-filter/p3scan/files/digest-p3scan-2.3.2
new file mode 100644
index 000000000000..3b44137f6680
--- /dev/null
+++ b/mail-filter/p3scan/files/digest-p3scan-2.3.2
@@ -0,0 +1,3 @@
+MD5 9f8decc7d4701228788e3c8717096ca0 p3scan-2.3.2.tar.gz 321684
+RMD160 ed5857d1e711d4f303eeddf03b8ab93fa6c2a3dd p3scan-2.3.2.tar.gz 321684
+SHA256 570bdf87132b23120339e247809dc2cf37c2735d504f4e1072528c04d940bb5f p3scan-2.3.2.tar.gz 321684
diff --git a/mail-filter/p3scan/p3scan-2.3.2.ebuild b/mail-filter/p3scan/p3scan-2.3.2.ebuild
new file mode 100644
index 000000000000..8b87e69785ce
--- /dev/null
+++ b/mail-filter/p3scan/p3scan-2.3.2.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/p3scan/p3scan-2.3.2.ebuild,v 1.1 2007/04/09 20:42:40 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
+ 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}/p3scan.sh.gz"
+ echo
+}