Gentoo Archives: gentoo-commits

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