commit: 11269f23b4438c29b94bb78ed21b8bf442996b5f Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> AuthorDate: Mon Mar 9 17:50:25 2026 +0000 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> CommitDate: Mon Mar 9 17:54:42 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11269f23
net-proxy/tinyproxy: add 1.11.3 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> net-proxy/tinyproxy/Manifest | 1 + net-proxy/tinyproxy/tinyproxy-1.11.3.ebuild | 79 +++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/net-proxy/tinyproxy/Manifest b/net-proxy/tinyproxy/Manifest index f0449515a158..a131be002033 100644 --- a/net-proxy/tinyproxy/Manifest +++ b/net-proxy/tinyproxy/Manifest @@ -1 +1,2 @@ DIST tinyproxy-1.11.2.tar.xz 185864 BLAKE2B ae8f1cc0fcfa3f2a6b239ad1f0f34bf21843cbf85613643b221359904e672d5c28c69bcb6b61f0244c5a3e6fd901b0c24488c3b80a0aa1f95b87ff90b175dc62 SHA512 008e43b770f946965d5a3fbad1881859e30b66a3a4a97cf9982e63d81139da7a8f23937601b72f32276166cd170008cafec9231b616fc840f05cae3c1329be35 +DIST tinyproxy-1.11.3.tar.xz 185212 BLAKE2B 68b1c70cc8dd53b04377528e4322ed2b6b9e84adf82f19c2e9882d83fe56a2524210a90fdc26c643aed52dbe2063b075aae8b87ac783fe60e164eb8ede9b7a11 SHA512 5e687188a4100409c2abb4784e9d21a02012fe7af04049d2c4db74ff52d8e2861cb290460975efd66ff296fbdde4dcf7de3ccdfe7898913a56f5e125357d88f4 diff --git a/net-proxy/tinyproxy/tinyproxy-1.11.3.ebuild b/net-proxy/tinyproxy/tinyproxy-1.11.3.ebuild new file mode 100644 index 000000000000..28310f5341de --- /dev/null +++ b/net-proxy/tinyproxy/tinyproxy-1.11.3.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools systemd tmpfiles + +DESCRIPTION="A lightweight HTTP/SSL proxy" +HOMEPAGE="https://github.com/tinyproxy/tinyproxy/" +SRC_URI="https://github.com/tinyproxy/tinyproxy/releases/download/${PV}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ppc ~sparc ~x86" + +IUSE="test debug +filter-proxy reverse-proxy transparent-proxy +upstream-proxy +xtinyproxy-header" +RESTRICT="!test? ( test )" +REQUIRED_USE="test? ( xtinyproxy-header )" + +DEPEND=" + acct-group/tinyproxy + acct-user/tinyproxy +" + +RDEPEND="${DEPEND}" + +src_prepare() { + default + + # Enable and change PidFile location, OpenRC relies on it + sed -i \ + -e "s|nobody|${PN}|g" \ + -e "s|^#PidFile |PidFile |g" \ + etc/${PN}.conf.in || die "sed failed" + + sed -i -e "s# -Wp,-D_FORTIFY_SOURCE=2##" configure.ac || die "sed failed" + + eautoreconf +} + +src_configure() { + local myeconfargs=( + $(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) + --localstatedir=/var + --runstatedir=/run + ) + + econf "${myeconfargs[@]}" +} + +src_test() { + # The make check target does not run the test suite + emake test +} + +src_install() { + default + + dodoc AUTHORS README.md + + diropts -m0775 -o ${PN} -g ${PN} + keepdir /var/log/${PN} + + newinitd "${FILESDIR}"/${PN}-1.10.0.initd tinyproxy + systemd_newunit "${FILESDIR}"/${PN}-1.10.0.service tinyproxy.service + dotmpfiles "${FILESDIR}"/${PN}.tmpfiles.conf +} + +pkg_postinst() { + tmpfiles_process ${PN}.tmpfiles.conf + + 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)." +}
