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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jan 10 17:26:47 2013 UTC (19 months, 2 weeks ago) by jer
Branch: MAIN
Respect CXXFLAGS (bug #451186, bug #451188, AR (bug #451184).

(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.92a.ebuild,v 1.5 2013/01/10 15:19:06 ago Exp $
4
5 EAPI=4
6 inherit autotools eutils toolchain-funcs 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 sed -i configure.in -e '/^CFLAGS=/d' || die
28 eautoreconf
29 }
30
31 src_configure() {
32 tc-export AR
33 export CFLAGS="${CXXFLAGS}"
34 econf \
35 $(use_enable clamav) \
36 $(use_enable ssl ssl-tunnel) \
37 --localstatedir=/var
38 }
39
40 src_install() {
41 exeinto /usr/sbin
42 doexe ${PN}/${PN}
43
44 newinitd "${FILESDIR}/${PN}.initd" ${PN}
45
46 insinto /etc
47 rm -r etc/${PN}/${PN}.config.in
48 doins -r etc/${PN}
49
50 dodoc ChangeLog
51 }
52
53 pkg_postinst() {
54 ewarn "/var/tmp/${PN} 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/${PN} content. This can be accomplished by enabling AllowSupplementaryGroups"
69 ewarn "in /etc/clamd.conf and adding clamav user to the ${PN} group."
70 fi
71 }

  ViewVC Help
Powered by ViewVC 1.1.20