summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2013-08-31 06:05:57 +0000
committerPacho Ramos <pacho@gentoo.org>2013-08-31 06:05:57 +0000
commiteedf942b49a102af7decf15a43e2d65d19c38810 (patch)
tree5ec2901a214465235269d470362f514eef16b76b /net-proxy
parentVersion bump. (diff)
downloadhistorical-eedf942b49a102af7decf15a43e2d65d19c38810.tar.gz
historical-eedf942b49a102af7decf15a43e2d65d19c38810.tar.bz2
historical-eedf942b49a102af7decf15a43e2d65d19c38810.zip
Add unit file (#480242 by Charles Nérot)
Package-Manager: portage-2.2.1/cvs/Linux x86_64 Manifest-Sign-Key: 0xA188FBD4
Diffstat (limited to 'net-proxy')
-rw-r--r--net-proxy/tinyproxy/ChangeLog8
-rw-r--r--net-proxy/tinyproxy/Manifest15
-rw-r--r--net-proxy/tinyproxy/files/tinyproxy.service9
-rw-r--r--net-proxy/tinyproxy/files/tinyproxy.tmpfiles.conf1
-rw-r--r--net-proxy/tinyproxy/tinyproxy-1.8.3-r3.ebuild85
5 files changed, 109 insertions, 9 deletions
diff --git a/net-proxy/tinyproxy/ChangeLog b/net-proxy/tinyproxy/ChangeLog
index 042e865f6bb7..e00ea1abc508 100644
--- a/net-proxy/tinyproxy/ChangeLog
+++ b/net-proxy/tinyproxy/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-proxy/tinyproxy
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/tinyproxy/ChangeLog,v 1.43 2013/05/30 16:47:50 tomwij Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/tinyproxy/ChangeLog,v 1.44 2013/08/31 06:05:52 pacho Exp $
+
+*tinyproxy-1.8.3-r3 (31 Aug 2013)
+
+ 31 Aug 2013; Pacho Ramos <pacho@gentoo.org> +files/tinyproxy.service,
+ +files/tinyproxy.tmpfiles.conf, +tinyproxy-1.8.3-r3.ebuild:
+ Add unit file (#480242 by Charles Nérot)
30 May 2013; Tom Wijsman <TomWij@gentoo.org> ChangeLog,
+tinyproxy-1.8.3-r2.ebuild, +files/tinyproxy-1.8.3-r2.initd,
diff --git a/net-proxy/tinyproxy/Manifest b/net-proxy/tinyproxy/Manifest
index 8ba4fcfeb691..f4493d0791b0 100644
--- a/net-proxy/tinyproxy/Manifest
+++ b/net-proxy/tinyproxy/Manifest
@@ -7,20 +7,19 @@ AUX tinyproxy-1.8.2.initd 1061 SHA256 0dfef44ab70710f75ce50d265a145afb3a88ca1297
AUX tinyproxy-1.8.3-r2-DoS-Prevention.patch 6100 SHA256 34d666fecef0755bc42da2e102186f858f4966c47719ac864062050e1cf4b606 SHA512 ea023535ecf5fc9b0ab63d5e3ab4fe6222a54218de43894699ae742ff89e38ba65ea2a601f17de130e1169f37b0b7189ec55af471074222aecd827104d8f4ce0 WHIRLPOOL acaa8d758f1f616a0ef2a62a3cccf7f333cc77e54169994b5d424744211bdb2a25ed8db563e6106d6274ffc155403ac07d1496c0aaa181e55ffeca09b24c5ebc
AUX tinyproxy-1.8.3-r2.initd 972 SHA256 a3ca891d28c32d05981f07133eac9011b7527a1c23b5cb74a72b271fe74c0e82 SHA512 8de35f369cd0422bb36787e30a538a5aa05eb9b1212edf05aa7fbd2649c24650903a6c58e6137928ca0fd70d931e72e7846d7c9be3fa03c3c2fb84c46812b7ea WHIRLPOOL e94ebc256ada917395c96932f45016a153b77fbb730e2f046df45827b14bd803eb9515524cca17e6958b3cd029f6480e91bc746b91f3e17f82411372cb7e2adc
AUX tinyproxy-1.8.3.initd 984 SHA256 c52848f594e38ce60695252a66bdb9961b36b1a71f392d99503341d8c45831d6 SHA512 92bc638b1bf688ae1590dc08943740a58554400c55f547d8e4856a932970bb04cb1fec93dfd0b11ffebcec96d37d19456541ed002e625fadb5c877b44ec30cea WHIRLPOOL 28d3676c2042c26942e4e555ced2ea009717931be500486392aa5cc6b1205d77c301c5e3854a97f2507c40a3864bd582c7a20fbb640be79436771424397d270d
+AUX tinyproxy.service 172 SHA256 2cef4ad5e765cd85d11aa145c87efaa7a14bdc4f1cf37416d2a9598a320c5665 SHA512 4c4cd36a7e34d9ee27c05475b72d1b61f90592ccb44c9deb96a1375bb681b7901702f078ed24b7c633074c83e450275a4a66829f3b270f75fc786a50d1ef393f WHIRLPOOL e434cc4efece2c383164b84a5a79978ed58f80a997eb4085bfcabd22c381a8f54d7008ccc89ba6979716cee23bfee679dd97410c3ddb1ea20a308a70d1437b54
+AUX tinyproxy.tmpfiles.conf 48 SHA256 3db13a4ecfaf8c90bda09ef2f613c8c10c176f700e39cf81ba1b17f00d02539d SHA512 24440cdaed0af6cbdb191acb1769e0a17871ef95e03e62a6621a413a2616e5d90d748d909bb5d18c029b25d7bf91485dbe46ee11e8703a1cb9008be470536715 WHIRLPOOL d6382d231ff013d69598b919a5131c96383e4f016415316d5feb8e4b5e656ee6accecfaa426af2ceb8e19e7feb2593c7ee16c54cea84e0aa8ce50b4cc82e7fe2
DIST tinyproxy-1.8.3.tar.bz2 202430 SHA256 be559b54eb4772a703ad35239d1cb59d32f7cf8a739966742622d57df88b896e SHA512 69f1262b39d37f44a42621a0d25985632cdb790c8d9b49335a49a68c0f5237b97b111252856cba119895ac066770645560d2d7cd2de31f02103fa55fb4b3290c WHIRLPOOL f423b49e7cef6c98f69070e0598f4447cf8333cfc9e253dd6c459541922e5b2ed5c7604dc2e3f3de61a616d6381ff83df1625a8ad40a83d32d44f633ac98447c
EBUILD tinyproxy-1.8.3-r1.ebuild 1930 SHA256 75e882e4330d0c2ae785614bbfb5df697bc5be3b9cffc6d511e93f0554ecefcd SHA512 1d3d6d7be00da03ceb9d8fcb5091881c7e869e4cd9ee2e1a5ab7bebf7614186c8d609c890ad4fe48cd088f00764ad159ddb1b2a3277a25cab28dce5523f715f9 WHIRLPOOL 2831b83b25dadb86d5387a2508d2512bb5c657d2bfc59bdd1d9ad8a7ebfc5e8781f94f0e7602ca449d4d204b33764abaff36cf0499c1ec0a8351e54766fe12ed
EBUILD tinyproxy-1.8.3-r2.ebuild 1965 SHA256 86584460e75cebd4a0e951ae9b3b8fb7ccb3bbf22b61aab8664d43d58d9af345 SHA512 889e5cbbdcc50c6a771f5ba3b7b9542dfe540be477aa9aed12c44b9c473950f82c11585d28d123000c4c5a7f9ac5cdd873b98b37b010fa2c7d86884fcdf70c20 WHIRLPOOL eaf331f6130d55d91a6c260051a95bb0dce1051c2e7b70452159f2296ffb7d4d67369d462757ec5c524f25bbd61d2bd3f1e6ea67f691efb19536ab6160e6c112
+EBUILD tinyproxy-1.8.3-r3.ebuild 2071 SHA256 7c1a32d77cbfca4321f934c0f235b11c35e7d5a66393a790e98ea2afd9e1fffc SHA512 dad0602352a0631675ef7ceb6bebb159e7fd04f31e53800dc1f629af3bede0df096d189e28d6d0eccc860e513492f03eadbee26b8cce62c9ed2246d305446f70 WHIRLPOOL 1eee686c3547cc29f6b8b2ce28a4624dd751468b24b4a6dc893b1c68fcf24d6e024d1ec344d29d808ee98e9546c236d687d4da6d0a73cdc77a84c46d2edc2654
EBUILD tinyproxy-1.8.3.ebuild 2010 SHA256 548134e3ddf78e35a4b9bdb24adce3b7ba99f392a6fe75aca16954f753053175 SHA512 742142381d5739a08e1a38bfda0a9538fff5c735dcea3d277461831759efdeec2ff550af38eaca3bfce3dc83fe3804a0fca1757b07e95077171e3faacbee9157 WHIRLPOOL 21dd38747b955a501789a5b6a106c74aec8a4b321b0cba24dfbb1235cad132a651947945eb8cd4d1df3872c62aa7c116aad695fbbb8f711f4700c93590a251ae
-MISC ChangeLog 8191 SHA256 c52e6d3ac96296c3b288b2829724d3ef5d973c79d4f0db4cbb2157cbfa7033de SHA512 928a6d42b064bb0b13e44419ff9bc1d2ed669c747f29ba9cb49cf339d8adbca46503d79a3648b4f4ff7eac5476261523ac7e0582af48f287b1835c6f5c3072ea WHIRLPOOL d953dbf4021ad982669a9d84f6e316a0e3462645140c22d9cc7691ab970d4a310390b5003f509907c2774f6c2fa721d09892e8b7a3167a038c4f89649efb3095
+MISC ChangeLog 8404 SHA256 c0bc0d1381593b33e4be44b7c97e9e5df36dd20fd1a4953b49b24d8794b9004b SHA512 c3936c8ce01ae1f824e833896c2a33d187a331c8b8dd66e38c3770454b6b137647539e6687479630434fb25e0e858b4193d960346d4a2e5888876ca048fa740b WHIRLPOOL b959ec40a943250a4a9667e0279328f216dbcb3b2beef62a4cf15a681a5d79b545eaa579de8df17096bcb415da4b8c4e7f81b04722cf920c9e6549dda381e3d8
MISC metadata.xml 563 SHA256 63b326ce5e3bff142dc7b16631e44c60c4c0cfe8b0abac5a3545d5d2f5903c82 SHA512 17a7d6daa5078839088950ecb108ccae8336df44a94f07166940d63c6502d50177615c2c7227ced7d7ae43c34ff6984aa0d77c4301756ce76d1f1dee2b54ca48 WHIRLPOOL 5c382b5fd504088b464896c72655d5737338e98a3c8bec0450e97a7b95d96c29ad1aec9eaa88ff42d4a5134b1f7168ff6573cd38bab67bc004e34cbecf8c5a33
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
-iQEcBAEBCAAGBQJRp4I/AAoJEJWyH81tNOV9nvcH/29RstlBrbQj0qilTzsViwIF
-ACi8+TmS4esdW2w1DDHi5JVrknadiIS9nk/+X+Z4a6BhIfBJRxAv9CGNswKWyY07
-Dr0biu7ZzpUlka/8Hp1bTbphZqOA9eY5yOswLZmZHPGvF1Jmubxr4G6FID4bNJ+c
-N8+mV3UFPdYs7XbohTUIyb5qKNSu+eTQjrOhFFHGucJg4JwsRqJwnUWHfSrW7FCA
-o/LU6Tas6AOnfwX11w1epi/UEezTRJKOMdXG9LOzI55+QiPYv7uzi6fwtJPVyG6k
-l+Uc21bf2fIP0v0opgUcDcIkEzj9ptnZg93E+24tOIuF6AYPgvi+yxUJKOgqV9M=
-=Y+o2
+iEYEAREIAAYFAlIhh8EACgkQCaWpQKGI+9QdnQCeNy3MTUAfHiyCvgt2XdUN10+5
+3zsAn3B7xdTDbw6o5URj9PvAA/h0tARi
+=uIfx
-----END PGP SIGNATURE-----
diff --git a/net-proxy/tinyproxy/files/tinyproxy.service b/net-proxy/tinyproxy/files/tinyproxy.service
new file mode 100644
index 000000000000..4d860df76938
--- /dev/null
+++ b/net-proxy/tinyproxy/files/tinyproxy.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Tinyproxy Web Proxy Server
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/tinyproxy -d -c /etc/tinyproxy.conf
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-proxy/tinyproxy/files/tinyproxy.tmpfiles.conf b/net-proxy/tinyproxy/files/tinyproxy.tmpfiles.conf
new file mode 100644
index 000000000000..80251df0d20c
--- /dev/null
+++ b/net-proxy/tinyproxy/files/tinyproxy.tmpfiles.conf
@@ -0,0 +1 @@
+d /var/run/tinyproxy 0770 tinyproxy tinyproxy -
diff --git a/net-proxy/tinyproxy/tinyproxy-1.8.3-r3.ebuild b/net-proxy/tinyproxy/tinyproxy-1.8.3-r3.ebuild
new file mode 100644
index 000000000000..fb82759a8d9c
--- /dev/null
+++ b/net-proxy/tinyproxy/tinyproxy-1.8.3-r3.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/tinyproxy/tinyproxy-1.8.3-r3.ebuild,v 1.1 2013/08/31 06:05:52 pacho Exp $
+
+EAPI="5"
+
+inherit autotools eutils systemd user
+
+DESCRIPTION="A lightweight HTTP/SSL proxy"
+HOMEPAGE="http://www.banu.com/tinyproxy/"
+SRC_URI="http://www.banu.com/pub/${PN}/1.8/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
+
+IUSE="test debug +filter-proxy minimal reverse-proxy
+ transparent-proxy +upstream-proxy +xtinyproxy-header"
+
+REQUIRED_USE="test? ( xtinyproxy-header )"
+
+DEPEND="!minimal? ( app-text/asciidoc )"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} "" "" "" ${PN}
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.8.1-ldflags.patch
+ epatch "${FILESDIR}"/${PF}-DoS-Prevention.patch
+
+ use minimal && epatch "${FILESDIR}/${PN}-1.8.1-minimal.patch"
+
+ sed -i \
+ -e "s|nobody|${PN}|g" \
+ -e 's|/var/run/|/run/|g' \
+ etc/${PN}.conf.in || die "sed failed"
+
+ sed -i \
+ -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' \
+ configure.ac || die
+
+ eautoreconf
+}
+
+src_configure() {
+ if use minimal; then
+ ln -s /bin/true "${T}"/a2x
+ export PATH="${T}:${PATH}"
+ fi
+
+ econf \
+ $(use_enable debug) \
+ $(use_enable filter-proxy filter) \
+ $(use_enable reverse-proxy reverse) \
+ $(use_enable transparent-proxy transparent) \
+ $(use_enable upstream-proxy upstream) \
+ $(use_enable xtinyproxy-header xtinyproxy) \
+ --disable-silent-rules \
+ --localstatedir=/var
+}
+
+src_test() {
+ # The make check target does not run the test suite
+ emake test
+}
+
+src_install() {
+ default
+
+ dodoc AUTHORS ChangeLog NEWS README TODO
+
+ diropts -m0775 -o ${PN} -g ${PN}
+ keepdir /var/log/${PN}
+
+ newinitd "${FILESDIR}"/${PF}.initd tinyproxy
+ systemd_dounit "${FILESDIR}"/${PN}.service
+ systemd_dotmpfilesd "${FILESDIR}"/${PN}.tmpfiles.conf
+}
+
+pkg_postinst() {
+ elog "For filtering domains and URLs, enable filter option in the configuration"
+ elog "file and add them to the filter file (one domain or URL per line)."
+}