1 |
commit: d7c7569e1807348c7b217a4cb3e0b7c4603c5f8d |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 3 19:10:19 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 3 19:17:01 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7c7569e |
7 |
|
8 |
net-proxy/tinyproxy: use #!/sbin/openrc-run instead of #!/sbin/runscript |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/573846 |
11 |
|
12 |
Package-Manager: portage-2.2.26 |
13 |
|
14 |
net-proxy/tinyproxy/files/tinyproxy-1.8.3-r2.initd | 4 +- |
15 |
net-proxy/tinyproxy/tinyproxy-1.8.3-r4.ebuild | 87 ++++++++++++++++++++++ |
16 |
2 files changed, 89 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/net-proxy/tinyproxy/files/tinyproxy-1.8.3-r2.initd b/net-proxy/tinyproxy/files/tinyproxy-1.8.3-r2.initd |
19 |
index 6342a5d..6569e6d 100644 |
20 |
--- a/net-proxy/tinyproxy/files/tinyproxy-1.8.3-r2.initd |
21 |
+++ b/net-proxy/tinyproxy/files/tinyproxy-1.8.3-r2.initd |
22 |
@@ -1,5 +1,5 @@ |
23 |
-#!/sbin/runscript |
24 |
-# Copyright 1999-2013 Gentoo Foundation |
25 |
+#!/sbin/openrc-run |
26 |
+# Copyright 1999-2016 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
# $Id$ |
29 |
|
30 |
|
31 |
diff --git a/net-proxy/tinyproxy/tinyproxy-1.8.3-r4.ebuild b/net-proxy/tinyproxy/tinyproxy-1.8.3-r4.ebuild |
32 |
new file mode 100644 |
33 |
index 0000000..ac0b0c7 |
34 |
--- /dev/null |
35 |
+++ b/net-proxy/tinyproxy/tinyproxy-1.8.3-r4.ebuild |
36 |
@@ -0,0 +1,87 @@ |
37 |
+# Copyright 1999-2016 Gentoo Foundation |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+# $Id$ |
40 |
+ |
41 |
+EAPI=6 |
42 |
+ |
43 |
+inherit autotools systemd user |
44 |
+ |
45 |
+DESCRIPTION="A lightweight HTTP/SSL proxy" |
46 |
+HOMEPAGE="http://www.banu.com/tinyproxy/" |
47 |
+SRC_URI="http://www.banu.com/pub/${PN}/1.8/${P}.tar.bz2" |
48 |
+ |
49 |
+LICENSE="GPL-2" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="alpha amd64 ~arm ia64 ppc sparc x86" |
52 |
+ |
53 |
+IUSE="test debug +filter-proxy minimal reverse-proxy |
54 |
+ transparent-proxy +upstream-proxy +xtinyproxy-header" |
55 |
+ |
56 |
+REQUIRED_USE="test? ( xtinyproxy-header )" |
57 |
+ |
58 |
+DEPEND="!minimal? ( app-text/asciidoc )" |
59 |
+ |
60 |
+pkg_setup() { |
61 |
+ enewgroup ${PN} |
62 |
+ enewuser ${PN} "" "" "" ${PN} |
63 |
+} |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ default |
67 |
+ |
68 |
+ eapply "${FILESDIR}"/${PN}-1.8.1-ldflags.patch |
69 |
+ eapply "${FILESDIR}"/${P}-r2-DoS-Prevention.patch |
70 |
+ |
71 |
+ use minimal && epatch "${FILESDIR}/${PN}-1.8.1-minimal.patch" |
72 |
+ |
73 |
+ sed -i \ |
74 |
+ -e "s|nobody|${PN}|g" \ |
75 |
+ -e 's|/var/run/|/run/|g' \ |
76 |
+ etc/${PN}.conf.in || die "sed failed" |
77 |
+ |
78 |
+ sed -i \ |
79 |
+ -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' \ |
80 |
+ configure.ac || die |
81 |
+ |
82 |
+ eautoreconf |
83 |
+} |
84 |
+ |
85 |
+src_configure() { |
86 |
+ if use minimal; then |
87 |
+ ln -s /bin/true "${T}"/a2x |
88 |
+ export PATH="${T}:${PATH}" |
89 |
+ fi |
90 |
+ |
91 |
+ econf \ |
92 |
+ $(use_enable debug) \ |
93 |
+ $(use_enable filter-proxy filter) \ |
94 |
+ $(use_enable reverse-proxy reverse) \ |
95 |
+ $(use_enable transparent-proxy transparent) \ |
96 |
+ $(use_enable upstream-proxy upstream) \ |
97 |
+ $(use_enable xtinyproxy-header xtinyproxy) \ |
98 |
+ --disable-silent-rules \ |
99 |
+ --localstatedir=/var |
100 |
+} |
101 |
+ |
102 |
+src_test() { |
103 |
+ # The make check target does not run the test suite |
104 |
+ emake test |
105 |
+} |
106 |
+ |
107 |
+src_install() { |
108 |
+ default |
109 |
+ |
110 |
+ dodoc AUTHORS ChangeLog NEWS README TODO |
111 |
+ |
112 |
+ diropts -m0775 -o ${PN} -g ${PN} |
113 |
+ keepdir /var/log/${PN} |
114 |
+ |
115 |
+ newinitd "${FILESDIR}"/${PN}-1.8.3-r2.initd tinyproxy |
116 |
+ systemd_dounit "${FILESDIR}"/${PN}.service |
117 |
+ systemd_dotmpfilesd "${FILESDIR}"/${PN}.tmpfiles.conf |
118 |
+} |
119 |
+ |
120 |
+pkg_postinst() { |
121 |
+ elog "For filtering domains and URLs, enable filter option in the configuration" |
122 |
+ elog "file and add them to the filter file (one domain or URL per line)." |
123 |
+} |