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

Contents of /net-proxy/havp/havp-0.92a.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Jan 10 15:19:06 2013 UTC (20 months, 1 week ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
Stable for x86, wrt bug #330475

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

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.92a.ebuild,v 1.4 2013/01/10 15:12:25 ago Exp $
4
5 EAPI=4
6 inherit eutils user
7
8 DESCRIPTION="HTTP AntiVirus Proxy"
9 HOMEPAGE="http://www.server-side.de/"
10 SRC_URI="http://www.server-side.de/download/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 x86"
15 IUSE="clamav ssl"
16
17 DEPEND="clamav? ( app-antivirus/clamav )"
18 RDEPEND="${DEPEND}"
19
20 pkg_setup() {
21 enewgroup ${PN}
22 enewuser ${PN} -1 -1 /etc/${PN} ${PN}
23 }
24
25 src_prepare() {
26 epatch "${FILESDIR}"/${PN}-0.92a-run.patch
27 }
28
29 src_configure() {
30 econf \
31 $(use_enable clamav) \
32 $(use_enable ssl ssl-tunnel) \
33 --localstatedir=/var
34 }
35
36 src_install() {
37 exeinto /usr/sbin
38 doexe ${PN}/${PN}
39
40 newinitd "${FILESDIR}/${PN}.initd" ${PN}
41
42 insinto /etc
43 rm -r etc/${PN}/${PN}.config.in
44 doins -r etc/${PN}
45
46 dodoc ChangeLog
47 }
48
49 pkg_postinst() {
50 ewarn "/var/tmp/${PN} 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/${PN} content. This can be accomplished by enabling AllowSupplementaryGroups"
65 ewarn "in /etc/clamd.conf and adding clamav user to the ${PN} group."
66 fi
67 }

  ViewVC Help
Powered by ViewVC 1.1.20