Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/havp/files/, net-proxy/havp/
Date: Tue, 03 May 2016 19:18:00
Message-Id: 1462303021.70dc30f5ebc6e800c0de8a5724e384eb34cf0418.wizardedit@gentoo
1 commit: 70dc30f5ebc6e800c0de8a5724e384eb34cf0418
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 3 18:59:35 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Tue May 3 19:17:01 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70dc30f5
7
8 net-proxy/havp: use #!/sbin/openrc-run instead of #!/sbin/runscript
9
10 Gentoo-Bug: https://bugs.gentoo.org/573846
11
12 Package-Manager: portage-2.2.26
13
14 net-proxy/havp/files/havp.initd | 4 +-
15 net-proxy/havp/havp-0.92a-r2.ebuild | 74 +++++++++++++++++++++++++++++++++++++
16 2 files changed, 76 insertions(+), 2 deletions(-)
17
18 diff --git a/net-proxy/havp/files/havp.initd b/net-proxy/havp/files/havp.initd
19 index 44b00fc..1c42fca 100644
20 --- a/net-proxy/havp/files/havp.initd
21 +++ b/net-proxy/havp/files/havp.initd
22 @@ -1,5 +1,5 @@
23 -#!/sbin/runscript
24 -# Copyright 1999-2013 Gentoo Foundation
25 +#!/sbin/openrc-run
26 +# Copyright 1999-2016 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28
29 depend() {
30
31 diff --git a/net-proxy/havp/havp-0.92a-r2.ebuild b/net-proxy/havp/havp-0.92a-r2.ebuild
32 new file mode 100644
33 index 0000000..60fd0c1
34 --- /dev/null
35 +++ b/net-proxy/havp/havp-0.92a-r2.ebuild
36 @@ -0,0 +1,74 @@
37 +# Copyright 1999-2016 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +# $Id$
40 +
41 +EAPI=5
42 +
43 +inherit autotools eutils toolchain-funcs user
44 +
45 +DESCRIPTION="HTTP AntiVirus Proxy"
46 +HOMEPAGE="http://www.server-side.de/"
47 +SRC_URI="http://www.server-side.de/download/${P}.tar.gz"
48 +
49 +LICENSE="GPL-2"
50 +SLOT="0"
51 +KEYWORDS="amd64 x86"
52 +IUSE="clamav ssl"
53 +
54 +DEPEND="clamav? ( >=app-antivirus/clamav-0.98.5 )"
55 +RDEPEND="${DEPEND}"
56 +
57 +pkg_setup() {
58 + enewgroup ${PN}
59 + enewuser ${PN} -1 -1 /etc/${PN} ${PN}
60 +}
61 +
62 +src_prepare() {
63 + epatch \
64 + "${FILESDIR}"/${PN}-0.92a-run.patch \
65 + "${FILESDIR}"/${PF}-pkg-config-libclamav.patch
66 + sed -i configure.in -e '/^CFLAGS=/d' || die
67 + mv configure.{in,ac} || die
68 + eautoreconf
69 +}
70 +
71 +src_configure() {
72 + tc-export AR
73 + export CFLAGS="${CXXFLAGS}"
74 + econf \
75 + $(use_enable clamav) \
76 + $(use_enable ssl ssl-tunnel) \
77 + --localstatedir=/var
78 +}
79 +
80 +src_install() {
81 + dosbin ${PN}/${PN}
82 +
83 + newinitd "${FILESDIR}/${PN}.initd" ${PN}
84 +
85 + insinto /etc
86 + rm -r etc/${PN}/${PN}.config.in
87 + doins -r etc/${PN}
88 +
89 + dodoc ChangeLog
90 +}
91 +
92 +pkg_postinst() {
93 + ewarn "/var/tmp/${PN} must be on a filesystem with mandatory locks!"
94 + ewarn "You should add \"mand\" to the mount options on the relevant line in /etc/fstab."
95 +
96 + if use ssl; then
97 + echo
98 + ewarn "Note: ssl USE flag only enable SSL pass-through, which means that"
99 + ewarn " HTTPS pages will not be scanned for viruses!"
100 + ewarn " It is impossible to decrypt data sent through SSL connections without knowing"
101 + ewarn " the private key of the used certificate."
102 + fi
103 +
104 + if use clamav; then
105 + echo
106 + ewarn "If you plan to use clamav daemon, you should make sure clamav user can read"
107 + ewarn "/var/tmp/${PN} content. This can be accomplished by enabling AllowSupplementaryGroups"
108 + ewarn "in /etc/clamd.conf and adding clamav user to the ${PN} group."
109 + fi
110 +}