/[gentoo-x86]/net-proxy/havp/havp-0.84.ebuild
Gentoo

Contents of /net-proxy/havp/havp-0.84.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun May 13 16:56:58 2007 UTC (13 years, 3 months ago) by mrness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Version bump (#178010)
(Portage version: 2.1.2.2)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-proxy/havp/havp-0.84.ebuild,v 1.4 2007/02/27 12:12:04 mrness Exp $
4
5 inherit eutils
6
7 DESCRIPTION="HTTP AntiVirus Proxy"
8 HOMEPAGE="http://www.server-side.de/"
9 SRC_URI="http://www.server-side.de/download/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="amd64 x86"
14 IUSE="clamav ssl"
15
16 DEPEND="clamav? ( app-antivirus/clamav )"
17
18 pkg_setup() {
19 enewgroup havp
20 enewuser havp -1 -1 /etc/havp havp
21 }
22
23 src_unpack() {
24 unpack ${A}
25
26 epatch "${FILESDIR}/${P}-gentoo.patch"
27 }
28
29 src_compile() {
30 econf $(use_enable clamav) \
31 $(use_enable ssl ssl-tunnel) || die "configure failed"
32 emake || die "make failed"
33 }
34
35 pkg_preinst() {
36 pkg_setup #for adding username:group when installing from binary package
37 }
38
39 src_install() {
40 exeinto /usr/sbin
41 doexe havp/havp
42
43 newinitd "${FILESDIR}/havp.initd" havp
44 insinto /etc
45 doins -r etc/havp
46
47 diropts -m 0700 -o havp -g havp
48 keepdir /var/log/havp
49
50 diropts -m 0750
51 dodir /var/run/havp /var/tmp/havp
52
53 dodoc ChangeLog
54 }
55
56 pkg_postinst() {
57 ewarn "/var/tmp/havp must be on a filesystem with mandatory locks!"
58 ewarn "You should add \"mand\" to the mount options on the relevant line in /etc/fstab."
59
60 if use ssl; then
61 echo
62 ewarn "Note: ssl USE flag only enable SSL pass-through, which means that"
63 ewarn " HTTPS pages will not be scanned for viruses!"
64 ewarn " It is impossible to decrypt data sent through SSL connections without knowing"
65 ewarn " the private key of the used certificate."
66 fi
67 }

  ViewVC Help
Powered by ViewVC 1.1.20