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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Jan 8 17:39:10 2013 UTC (7 years, 7 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Old.

(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 # Copyright 1999-2013 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.91.ebuild,v 1.2 2013/01/08 16:45:38 jer Exp $
4
5 EAPI="2"
6
7 inherit eutils user
8
9 DESCRIPTION="HTTP AntiVirus Proxy"
10 HOMEPAGE="http://www.server-side.de/"
11 SRC_URI="http://www.server-side.de/download/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="clamav ssl"
17
18 DEPEND="clamav? ( app-antivirus/clamav )"
19 RDEPEND="${DEPEND}"
20
21 pkg_setup() {
22 enewgroup havp
23 enewuser havp -1 -1 /etc/havp havp
24 }
25
26 src_configure() {
27 econf --localstatedir=/var \
28 $(use_enable clamav) \
29 $(use_enable ssl ssl-tunnel) || die "configure failed"
30 }
31
32 src_install() {
33 exeinto /usr/sbin
34 doexe havp/havp
35
36 newinitd "${FILESDIR}/havp.initd" havp
37 insinto /etc
38 doins -r etc/havp
39
40 diropts -m 0700 -o havp -g havp
41 keepdir /var/log/havp
42
43 diropts -m 0750
44 dodir /var/run/havp /var/tmp/havp
45
46 dodoc ChangeLog
47 }
48
49 pkg_postinst() {
50 ewarn "/var/tmp/havp must be on a filesystem with mandatory locks!"
51 ewarn "You should add \"mand\" to the mount options on the relevant line in /etc/fstab."
52
53 if use ssl; then
54 echo
55 ewarn "Note: ssl USE flag only enable SSL pass-through, which means that"
56 ewarn " HTTPS pages will not be scanned for viruses!"
57 ewarn " It is impossible to decrypt data sent through SSL connections without knowing"
58 ewarn " the private key of the used certificate."
59 fi
60
61 if use clamav; then
62 echo
63 ewarn "If you plan to use clamav daemon, you should make sure clamav user can read"
64 ewarn "/var/tmp/havp content. This can be accomplished by enabling AllowSupplementaryGroups"
65 ewarn "in /etc/clamd.conf and adding clamav user to the havp group."
66 fi
67 }

  ViewVC Help
Powered by ViewVC 1.1.20