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