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