1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="This is a full-transparent proxy-server for POP3-Clients"
7 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
8 HOMEPAGE="http://p3scan.sf.net/"
10 DEPEND="net-mail/ripmime
12 RDEPEND="net-firewall/iptables"
24 newinitd ${FILESDIR}/${PN}.init ${PN}
30 doins ${PN}.conf ${PN}-*.mail
33 keepdir /var/run/${PN}
35 keepdir /var/spool/${PN}
36 keepdir /var/spool/${PN}/children
37 keepdir /var/spool/${PN}/notify
39 fowners mail:mail /var/run/${PN}
40 fperms 700 /var/run/${PN}
42 fowners mail:mail /var/spool/${PN}
43 fperms 700 /var/spool/${PN}
45 fowners mail:mail /var/spool/${PN}/children
46 fperms 700 /var/spool/${PN}/children
48 fowners mail:mail /var/spool/${PN}/notify
49 fperms 700 /var/spool/${PN}/notify
51 doman p3scan.8.gz p3scan_readme.8.gz
53 dodoc AUTHORS CHANGELOG CONTRIBUTERS LICENSE NEWS README \
54 README-rpm spamfaq.* TODO.list
58 enewuser mail 8 /bin/true /var/spool/mail mail
60 if [ ! -L /etc/${PN}/${PN}.mail ]; then
61 ln -sf /etc/${PN}/${PN}-en.mail /etc/${PN}/${PN}.mail
65 elog "Default infected notification template language is set to english, change the"
66 elog "symbolic link /etc/${PN}/${PN}.mail if you want it in another language."
68 elog "To start ${PN}, you can use /etc/init.d/${PN} start"
70 elog "You need port-redirecting, a rule like:"
71 elog " iptables -t nat -A PREROUTING -p tcp -i eth0 --dport pop3 -j REDIRECT --to 8110"
72 elog "to forward pop3 connections incoming from eth0 interface."
74 elog "You will also need to configure at least following in /etc/${PN}/${PN}.conf:"
75 elog "scannertype, scanner, virusregexp"