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: Tue, 09 Oct 2018 13:21:50
Message-Id: 1539091275.8b8fffd8d4865ce1ee80e1454958f91fb5d6a6ad.bkohler@gentoo
1 commit: 8b8fffd8d4865ce1ee80e1454958f91fb5d6a6ad
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 9 13:21:15 2018 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 9 13:21:15 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b8fffd8
7
8 net-proxy/tinyproxy: bump to 1.10.0
9
10 Bump. Remove obsolete sed replacements. Remove obsolete minimal USE
11 flag.
12
13 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
14 Package-Manager: Portage-2.3.51, Repoman-2.3.11
15
16 net-proxy/tinyproxy/Manifest | 1 +
17 net-proxy/tinyproxy/tinyproxy-1.10.0.ebuild | 71 +++++++++++++++++++++++++++++
18 2 files changed, 72 insertions(+)
19
20 diff --git a/net-proxy/tinyproxy/Manifest b/net-proxy/tinyproxy/Manifest
21 index 1e6308bec83..646feb115ba 100644
22 --- a/net-proxy/tinyproxy/Manifest
23 +++ b/net-proxy/tinyproxy/Manifest
24 @@ -1,2 +1,3 @@
25 +DIST tinyproxy-1.10.0.tar.xz 176060 BLAKE2B 58f9b443c731de6b74d689a80ebd422d3b6f51f643546ee144b37fb3262725246f6a5fa1015267a94f192f8715eaf71ffc078ead75e6225a210f58ec28ee8fcf SHA512 8d82598c5f9c89bc672f4632139ac52696d5c7788963de51688a8aeb576c69004f8338fe1e1897bf704a21dfd25ab1effb092003b6afaa9a88c2b5d0608310f5
26 DIST tinyproxy-1.8.3.tar.bz2 202430 BLAKE2B 1f85d6eb3a1b2cebe752f15e51869882c58f7dcafb2518511dd8c83c44a010a1cdac93e40e2c1f177a7687b126925258c79ff56011a42addd710b2009d546313 SHA512 69f1262b39d37f44a42621a0d25985632cdb790c8d9b49335a49a68c0f5237b97b111252856cba119895ac066770645560d2d7cd2de31f02103fa55fb4b3290c
27 DIST tinyproxy-1.8.4.tar.xz 192300 BLAKE2B bc425ab40d5d5fb49111d74d67e7ac848d77ad4be87039b34543a118df317839aa529c6b9ca52f1eafe933e7d344e09770a76ed0184181591483c6b3f1d79243 SHA512 23398a2c8a6d926b371086ba96032d0fd8dd06d114edf24950b868f53bb6b4235cd0f5d6b9a0131879fcc16bbe6b71142a6855de593a937ef7b0c323b50e0aec
28
29 diff --git a/net-proxy/tinyproxy/tinyproxy-1.10.0.ebuild b/net-proxy/tinyproxy/tinyproxy-1.10.0.ebuild
30 new file mode 100644
31 index 00000000000..1399b5a328c
32 --- /dev/null
33 +++ b/net-proxy/tinyproxy/tinyproxy-1.10.0.ebuild
34 @@ -0,0 +1,71 @@
35 +# Copyright 1999-2018 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +
40 +inherit autotools systemd tmpfiles user
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/${PV}/${P}.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 +
53 +REQUIRED_USE="test? ( xtinyproxy-header )"
54 +
55 +pkg_setup() {
56 + enewgroup ${PN}
57 + enewuser ${PN} "" "" "" ${PN}
58 +}
59 +
60 +src_prepare() {
61 + default
62 +
63 + sed -i \
64 + -e "s|nobody|${PN}|g" \
65 + etc/${PN}.conf.in || die "sed failed"
66 +
67 + eautoreconf
68 +}
69 +
70 +src_configure() {
71 + econf \
72 + $(use_enable debug) \
73 + $(use_enable filter-proxy filter) \
74 + $(use_enable reverse-proxy reverse) \
75 + $(use_enable transparent-proxy transparent) \
76 + $(use_enable upstream-proxy upstream) \
77 + $(use_enable xtinyproxy-header xtinyproxy) \
78 + --disable-silent-rules \
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.8.3-r2.initd tinyproxy
96 + systemd_dounit "${FILESDIR}"/${PN}.service
97 + systemd_dotmpfilesd "${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 +}