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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Jul 13 14:12:41 2008 UTC (12 years ago) by mrness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Remove obsolete versions.
(Portage version: 2.1.4.4)

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.86.ebuild,v 1.5 2007/11/04 08:11:42 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-0.90 )"
17
18 pkg_setup() {
19 enewgroup havp
20 enewuser havp -1 -1 /etc/havp havp
21 }
22
23 src_compile() {
24 econf --localstatedir=/var \
25 $(use_enable clamav) \
26 $(use_enable ssl ssl-tunnel) || die "configure failed"
27 emake || die "make failed"
28 }
29
30 src_install() {
31 exeinto /usr/sbin
32 doexe havp/havp
33
34 newinitd "${FILESDIR}/havp.initd" havp
35 insinto /etc
36 doins -r etc/havp
37
38 diropts -m 0700 -o havp -g havp
39 keepdir /var/log/havp
40
41 diropts -m 0750
42 dodir /var/run/havp /var/tmp/havp
43
44 dodoc ChangeLog
45 }
46
47 pkg_postinst() {
48 ewarn "/var/tmp/havp must be on a filesystem with mandatory locks!"
49 ewarn "You should add \"mand\" to the mount options on the relevant line in /etc/fstab."
50
51 if use ssl; then
52 echo
53 ewarn "Note: ssl USE flag only enable SSL pass-through, which means that"
54 ewarn " HTTPS pages will not be scanned for viruses!"
55 ewarn " It is impossible to decrypt data sent through SSL connections without knowing"
56 ewarn " the private key of the used certificate."
57 fi
58
59 if use clamav; then
60 echo
61 ewarn "If you plan to use clamav daemon, you should make sure clamav user can read"
62 ewarn "/var/tmp/havp content. This can be accomplished by enabling AllowSupplementaryGroups"
63 ewarn "in /etc/clamd.conf and adding clamav user to the havp group."
64 fi
65 }

  ViewVC Help
Powered by ViewVC 1.1.20