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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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

  ViewVC Help
Powered by ViewVC 1.1.20