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

Contents of /net-proxy/havp/havp-0.90-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Jan 10 17:09:43 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.90-r1.ebuild,v 1.2 2013/01/08 16:45:37 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_prepare() {
27 epatch "${FILESDIR}"/${P}-gcc44.patch
28 }
29
30 src_configure() {
31 econf --localstatedir=/var \
32 $(use_enable clamav) \
33 $(use_enable ssl ssl-tunnel) || die "configure failed"
34 }
35
36 src_install() {
37 exeinto /usr/sbin
38 doexe havp/havp
39
40 newinitd "${FILESDIR}/havp.initd" havp
41 insinto /etc
42 doins -r etc/havp
43
44 diropts -m 0700 -o havp -g havp
45 keepdir /var/log/havp
46
47 diropts -m 0750
48 dodir /var/run/havp /var/tmp/havp
49
50 dodoc ChangeLog
51 }
52
53 pkg_postinst() {
54 ewarn "/var/tmp/havp must be on a filesystem with mandatory locks!"
55 ewarn "You should add \"mand\" to the mount options on the relevant line in /etc/fstab."
56
57 if use ssl; then
58 echo
59 ewarn "Note: ssl USE flag only enable SSL pass-through, which means that"
60 ewarn " HTTPS pages will not be scanned for viruses!"
61 ewarn " It is impossible to decrypt data sent through SSL connections without knowing"
62 ewarn " the private key of the used certificate."
63 fi
64
65 if use clamav; then
66 echo
67 ewarn "If you plan to use clamav daemon, you should make sure clamav user can read"
68 ewarn "/var/tmp/havp content. This can be accomplished by enabling AllowSupplementaryGroups"
69 ewarn "in /etc/clamd.conf and adding clamav user to the havp group."
70 fi
71 }

  ViewVC Help
Powered by ViewVC 1.1.20