Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/tinyproxy/
Date: Mon, 30 May 2022 19:13:14
Message-Id: 1653937966.eba214f3e68e625d78c898310d827beea95a4383.bkohler@gentoo
1 commit: eba214f3e68e625d78c898310d827beea95a4383
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 30 19:07:50 2022 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Mon May 30 19:12:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eba214f3
7
8 net-proxy/tinyproxy: add 1.11.1
9
10 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
11
12 net-proxy/tinyproxy/Manifest | 1 +
13 net-proxy/tinyproxy/tinyproxy-1.11.1.ebuild | 76 +++++++++++++++++++++++++++++
14 2 files changed, 77 insertions(+)
15
16 diff --git a/net-proxy/tinyproxy/Manifest b/net-proxy/tinyproxy/Manifest
17 index f53d028c839d..f461e39056ea 100644
18 --- a/net-proxy/tinyproxy/Manifest
19 +++ b/net-proxy/tinyproxy/Manifest
20 @@ -1 +1,2 @@
21 DIST tinyproxy-1.11.0.tar.xz 177664 BLAKE2B 6ea74ef0fff22fbc6e04b37519151fda771a7d3e789d94cbd2a77a76dce7b16151cfbad83ac665a5c1fdb7334cd4d26ed6d2bc73f70b3858ffe439b16698fd2e SHA512 c0ff2a90da2352e6021efc87d1293b85f2a7588b2a1ab13bd96d906382eda8188b22b01f9acb2d200fd570bf3ec9484fa370cae6834d1f055c0af1631d22ae9d
22 +DIST tinyproxy-1.11.1.tar.xz 182080 BLAKE2B d39fa1986343af60cdfd07c6a049962e646a72874f7058fd082b9758bae3c7bc1a2288103527e0e1054ab098a3a41fc67eb3e08cd160e2bd4bd030e114326a6f SHA512 2e3435bbfece3797c11ccce222eef494ed92e00dd82bea2c40a54e454b7e03c8abc8e09b244f2da7192209c39047369439d08974b79eebc996fb3095230d0374
23
24 diff --git a/net-proxy/tinyproxy/tinyproxy-1.11.1.ebuild b/net-proxy/tinyproxy/tinyproxy-1.11.1.ebuild
25 new file mode 100644
26 index 000000000000..6c987419d72d
27 --- /dev/null
28 +++ b/net-proxy/tinyproxy/tinyproxy-1.11.1.ebuild
29 @@ -0,0 +1,76 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit autotools systemd tmpfiles
36 +
37 +MY_PV=${PV/_/-}
38 +
39 +DESCRIPTION="A lightweight HTTP/SSL proxy"
40 +HOMEPAGE="https://github.com/tinyproxy/tinyproxy/"
41 +SRC_URI="https://github.com/tinyproxy/tinyproxy/releases/download/${MY_PV}/${PN}-${MY_PV}.tar.xz"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
46 +
47 +IUSE="test debug +filter-proxy reverse-proxy transparent-proxy
48 ++upstream-proxy +xtinyproxy-header"
49 +RESTRICT="!test? ( test )"
50 +REQUIRED_USE="test? ( xtinyproxy-header )"
51 +
52 +S="${WORKDIR}"/${PN}-${MY_PV}
53 +
54 +DEPEND="
55 + acct-group/tinyproxy
56 + acct-user/tinyproxy
57 +"
58 +
59 +RDEPEND="${DEPEND}"
60 +
61 +src_prepare() {
62 + default
63 +
64 + sed -i \
65 + -e "s|nobody|${PN}|g" \
66 + etc/${PN}.conf.in || die "sed failed"
67 +
68 + eautoreconf
69 +}
70 +
71 +src_configure() {
72 + econf \
73 + $(use_enable debug) \
74 + $(use_enable filter-proxy filter) \
75 + $(use_enable reverse-proxy reverse) \
76 + $(use_enable transparent-proxy transparent) \
77 + $(use_enable upstream-proxy upstream) \
78 + $(use_enable xtinyproxy-header xtinyproxy) \
79 + --localstatedir=/var
80 +}
81 +
82 +src_test() {
83 + # The make check target does not run the test suite
84 + emake test
85 +}
86 +
87 +src_install() {
88 + default
89 +
90 + dodoc AUTHORS ChangeLog NEWS README TODO
91 +
92 + diropts -m0775 -o ${PN} -g ${PN}
93 + keepdir /var/log/${PN}
94 +
95 + newinitd "${FILESDIR}"/${PN}-1.10.0.initd tinyproxy
96 + systemd_newunit "${FILESDIR}"/${PN}-1.10.0.service tinyproxy.service
97 + dotmpfiles "${FILESDIR}"/${PN}.tmpfiles.conf
98 +}
99 +
100 +pkg_postinst() {
101 + tmpfiles_process ${PN}.tmpfiles.conf
102 +
103 + elog "For filtering domains and URLs, enable filter option in the configuration"
104 + elog "file and add them to the filter file (one domain or URL per line)."
105 +}