From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2B0F5138222 for ; Tue, 3 May 2016 19:18:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3E9E721C02E; Tue, 3 May 2016 19:17:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0B65A21C00C for ; Tue, 3 May 2016 19:17:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 49678340C15 for ; Tue, 3 May 2016 19:17:49 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BBBAB95C for ; Tue, 3 May 2016 19:17:44 +0000 (UTC) From: "Austin English" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Austin English" Message-ID: <1462303021.d7c7569e1807348c7b217a4cb3e0b7c4603c5f8d.wizardedit@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/tinyproxy/files/, net-proxy/tinyproxy/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-proxy/tinyproxy/files/tinyproxy-1.8.3-r2.initd net-proxy/tinyproxy/tinyproxy-1.8.3-r4.ebuild X-VCS-Directories: net-proxy/tinyproxy/files/ net-proxy/tinyproxy/ X-VCS-Committer: wizardedit X-VCS-Committer-Name: Austin English X-VCS-Revision: d7c7569e1807348c7b217a4cb3e0b7c4603c5f8d X-VCS-Branch: master Date: Tue, 3 May 2016 19:17:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 10d92b1b-2eb0-4e6f-a534-c4e002b186de X-Archives-Hash: 08b28dd2e7077513cded7c35aea3739a commit: d7c7569e1807348c7b217a4cb3e0b7c4603c5f8d Author: Austin English gentoo org> AuthorDate: Tue May 3 19:10:19 2016 +0000 Commit: Austin English gentoo org> CommitDate: Tue May 3 19:17:01 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7c7569e net-proxy/tinyproxy: use #!/sbin/openrc-run instead of #!/sbin/runscript Gentoo-Bug: https://bugs.gentoo.org/573846 Package-Manager: portage-2.2.26 net-proxy/tinyproxy/files/tinyproxy-1.8.3-r2.initd | 4 +- net-proxy/tinyproxy/tinyproxy-1.8.3-r4.ebuild | 87 ++++++++++++++++++++++ 2 files changed, 89 insertions(+), 2 deletions(-) diff --git a/net-proxy/tinyproxy/files/tinyproxy-1.8.3-r2.initd b/net-proxy/tinyproxy/files/tinyproxy-1.8.3-r2.initd index 6342a5d..6569e6d 100644 --- a/net-proxy/tinyproxy/files/tinyproxy-1.8.3-r2.initd +++ b/net-proxy/tinyproxy/files/tinyproxy-1.8.3-r2.initd @@ -1,5 +1,5 @@ -#!/sbin/runscript -# Copyright 1999-2013 Gentoo Foundation +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ diff --git a/net-proxy/tinyproxy/tinyproxy-1.8.3-r4.ebuild b/net-proxy/tinyproxy/tinyproxy-1.8.3-r4.ebuild new file mode 100644 index 0000000..ac0b0c7 --- /dev/null +++ b/net-proxy/tinyproxy/tinyproxy-1.8.3-r4.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit autotools 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 ~arm 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() { + default + + eapply "${FILESDIR}"/${PN}-1.8.1-ldflags.patch + eapply "${FILESDIR}"/${P}-r2-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}"/${PN}-1.8.3-r2.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)." +}