/[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.6 - (show annotations) (download)
Sat Mar 21 21:57:42 2015 UTC (5 years, 3 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +7 -6 lines
use dosbin instead of exeinto /usr/sbin/ && doexe; bump EAPI

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 # Copyright 1999-2015 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-r1.ebuild,v 1.5 2015/01/07 14:28:27 pacho Exp $
4
5 EAPI=5
6
7 inherit autotools eutils toolchain-funcs 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-0.98.5 )"
19 RDEPEND="${DEPEND}"
20
21 pkg_setup() {
22 enewgroup ${PN}
23 enewuser ${PN} -1 -1 /etc/${PN} ${PN}
24 }
25
26 src_prepare() {
27 epatch \
28 "${FILESDIR}"/${PN}-0.92a-run.patch \
29 "${FILESDIR}"/${PF}-pkg-config-libclamav.patch
30 sed -i configure.in -e '/^CFLAGS=/d' || die
31 mv configure.{in,ac} || die
32 eautoreconf
33 }
34
35 src_configure() {
36 tc-export AR
37 export CFLAGS="${CXXFLAGS}"
38 econf \
39 $(use_enable clamav) \
40 $(use_enable ssl ssl-tunnel) \
41 --localstatedir=/var
42 }
43
44 src_install() {
45 dosbin ${PN}/${PN}
46
47 newinitd "${FILESDIR}/${PN}.initd" ${PN}
48
49 insinto /etc
50 rm -r etc/${PN}/${PN}.config.in
51 doins -r etc/${PN}
52
53 dodoc ChangeLog
54 }
55
56 pkg_postinst() {
57 ewarn "/var/tmp/${PN} must be on a filesystem with mandatory locks!"
58 ewarn "You should add \"mand\" to the mount options on the relevant line in /etc/fstab."
59
60 if use ssl; then
61 echo
62 ewarn "Note: ssl USE flag only enable SSL pass-through, which means that"
63 ewarn " HTTPS pages will not be scanned for viruses!"
64 ewarn " It is impossible to decrypt data sent through SSL connections without knowing"
65 ewarn " the private key of the used certificate."
66 fi
67
68 if use clamav; then
69 echo
70 ewarn "If you plan to use clamav daemon, you should make sure clamav user can read"
71 ewarn "/var/tmp/${PN} content. This can be accomplished by enabling AllowSupplementaryGroups"
72 ewarn "in /etc/clamd.conf and adding clamav user to the ${PN} group."
73 fi
74 }

  ViewVC Help
Powered by ViewVC 1.1.20