www-servers/sniproxy: Bump to 0.6.1

Bug: https://bugs.gentoo.org/903716
Signed-off-by: Pierre-Olivier Mercier <nemunaire@nemunai.re>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Pierre-Olivier Mercier
2023-04-16 07:47:32 +01:00
committed by Sam James
parent bae6887641
commit 4999c5e769
2 changed files with 76 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
DIST sniproxy-0.6.0.tar.gz 78515 BLAKE2B 1ac8decc793e7b3d73d833bc392b3ef035bd2ba7d515c54ff46de16ee8897c0c5392929d5c7a22a131c1f017897cc6f8e9c50aff8164e4afbdc23155b804b613 SHA512 8a99573673bdd57e528c5781cb166d39c80daed699382b24c3fa18a6011d074a1d9e470fee404d24b4450cf067c9995125910b2941b5216d88d189a1d79ebf73
DIST sniproxy-0.6.1.tar.gz 78939 BLAKE2B dd11d47779dbf876724a8e0951c137343c25e420ca0b34055adbd31abda9ad56e38d1addd3ab0a7d85079fec3a456faba87df9cdf261570d8c1d7cfdf534f852 SHA512 4a20830ee6dfeb33a363c480c4698c263a8deccfcac2071198248147ef40d951a1b551c373b0e1e29f6b6bfcdac350390f8f4c3653ed9d1f1940ed50c96af785
@@ -0,0 +1,75 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools
if [[ ${PV} == *9999 ]]; then
EGIT_REPO_URI="https://github.com/dlundquist/sniproxy.git"
EGIT_BRANCH="master"
inherit git-r3
else
SRC_URI="https://github.com/dlundquist/sniproxy/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="Proxies incoming HTTP and TLS connections based on the hostname"
HOMEPAGE="https://github.com/dlundquist/sniproxy"
LICENSE="BSD-2"
SLOT="0"
IUSE="+dns +largefile rfc3339 test"
RESTRICT="!test? ( test )"
RDEPEND="
acct-group/sniproxy
acct-user/sniproxy
dev-libs/libev
>=dev-libs/libpcre-3
dns? ( net-libs/udns )"
DEPEND="${RDEPEND}
test? ( net-misc/curl )"
BDEPEND="
sys-devel/gettext
virtual/pkgconfig"
src_prepare() {
default
eautoreconf
sed -i "/user/s/daemon/sniproxy/" debian/sniproxy.conf || die "Unable to replace configuration"
sed -i "/create/s/daemon/sniproxy/" debian/logrotate.conf || die "Unable to replace logrotate configuration"
}
src_configure() {
local my_conf=(
$(use_enable dns)
$(use_enable largefile)
$(use_enable rfc3339 rfc3339-timestamps)
)
econf "${my_conf[@]}"
}
src_test() {
emake -j1 check
}
src_install() {
default
newinitd "${FILESDIR}/sniproxy.init" sniproxy
insinto /etc/sniproxy
doins debian/sniproxy.conf
keepdir /var/log/sniproxy
insinto /etc/logrotate.d
newins debian/logrotate.conf sniproxy
dodoc ARCHITECTURE.md AUTHORS README.md
doman man/sniproxy.8
doman man/sniproxy.conf.5
}