blob: a2bde2d15c14938dd26fa07ed583fafd2d2370f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/pop3vscan/pop3vscan-0.4-r1.ebuild,v 1.3 2004/10/17 09:58:27 dholm Exp $
inherit eutils
DESCRIPTION="A transparent POP3-Proxy with virus-scanning capabilities."
SRC_URI="mirror://sourceforge/pop3vscan/${P}.tar.gz
http://dev.gentoo.org/~ticho/portage/${P}-astaro.patch.gz"
HOMEPAGE="http://pop3vscan.sf.net/"
DEPEND="net-mail/ripmime
dev-libs/libpcre"
RDEPEND="net-firewall/iptables"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86 ~sparc ~ppc"
IUSE=""
src_unpack() {
unpack ${A}
# Some improvements, see bug #28504 for details (ticho 2004-10-01)
epatch ${WORKDIR}/${P}-astaro.patch
rm -f ${S}/ripmime/ripmime.a
}
src_compile() {
make || die
}
src_install () {
dodir /usr/sbin
dosbin pop3vscan
dodir /etc
insinto /etc
doins pop3vscan.conf pop3vscan.mail
insinto /etc/init.d
doins ${FILESDIR}/pop3vscan
fperms 755 /etc/init.d/pop3vscan
dodoc README
}
pkg_postinst() {
useradd -d /tmp -s /bin/false -g nogroup mail
dodir /var/spool/pop3vscan
fowners mail /var/spool/pop3vscan
fperms 700 /var/spool/pop3vscan
einfo "You need configure /etc/pop3vscan and /etc/pop3vscan.mail"
einfo "For start pop3vscan you can use /etc/init.d/pop3vscan start"
einfo "You need port-redirecting, a rule like:"
einfo "iptables -t nat -A PREROUTING -p tcp -i eth0 --dport pop3 -j REDIRECT --to 8110"
einfo "is enough"
}
|