diff options
author | 2022-09-20 07:01:51 -0500 | |
---|---|---|
committer | 2022-09-20 07:03:00 -0500 | |
commit | 0aaa953b3e08b8d320e85c417faf9110bd4a120f (patch) | |
tree | 1334def5f60b5b996f7df956c443d86edf97e99d /net-proxy/tinyproxy/tinyproxy-1.11.1_p20220908.ebuild | |
parent | sys-kernel/vanilla-sources: add 5.4.214, drop 5.4.213 (diff) | |
download | gentoo-0aaa953b3e08b8d320e85c417faf9110bd4a120f.tar.gz gentoo-0aaa953b3e08b8d320e85c417faf9110bd4a120f.tar.bz2 gentoo-0aaa953b3e08b8d320e85c417faf9110bd4a120f.zip |
net-proxy/tinyproxy: add 1.11.1_p20220908
https://bugs.gentoo.org/871924
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'net-proxy/tinyproxy/tinyproxy-1.11.1_p20220908.ebuild')
-rw-r--r-- | net-proxy/tinyproxy/tinyproxy-1.11.1_p20220908.ebuild | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/net-proxy/tinyproxy/tinyproxy-1.11.1_p20220908.ebuild b/net-proxy/tinyproxy/tinyproxy-1.11.1_p20220908.ebuild new file mode 100644 index 000000000000..98a6c6810fd4 --- /dev/null +++ b/net-proxy/tinyproxy/tinyproxy-1.11.1_p20220908.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools systemd tmpfiles + +COMMIT=3764b8551463b900b5b4e3ec0cd9bb9182191cb7 + +DESCRIPTION="A lightweight HTTP/SSL proxy" +HOMEPAGE="https://github.com/tinyproxy/tinyproxy/" +SRC_URI="https://github.com/tinyproxy/tinyproxy/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~sparc ~x86" + +IUSE="test debug +filter-proxy reverse-proxy transparent-proxy ++upstream-proxy +xtinyproxy-header" +RESTRICT="!test? ( test )" +REQUIRED_USE="test? ( xtinyproxy-header )" + +S="${WORKDIR}"/${PN}-${COMMIT} + +DEPEND=" + acct-group/tinyproxy + acct-user/tinyproxy +" + +RDEPEND="${DEPEND}" + +src_prepare() { + default + + sed -i \ + -e "s|nobody|${PN}|g" \ + etc/${PN}.conf.in || die "sed failed" + + eautoreconf +} + +src_configure() { + 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) \ + --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.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)." +} |