mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
www-servers/sniproxy: Drop vulnerable release
Signed-off-by: Pierre-Olivier Mercier <nemunaire@nemunai.re> Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST sniproxy-0.6.0.tar.gz 78515 BLAKE2B 1ac8decc793e7b3d73d833bc392b3ef035bd2ba7d515c54ff46de16ee8897c0c5392929d5c7a22a131c1f017897cc6f8e9c50aff8164e4afbdc23155b804b613 SHA512 8a99573673bdd57e528c5781cb166d39c80daed699382b24c3fa18a6011d074a1d9e470fee404d24b4450cf067c9995125910b2941b5216d88d189a1d79ebf73
|
||||
DIST sniproxy-0.6.1.tar.gz 78939 BLAKE2B dd11d47779dbf876724a8e0951c137343c25e420ca0b34055adbd31abda9ad56e38d1addd3ab0a7d85079fec3a456faba87df9cdf261570d8c1d7cfdf534f852 SHA512 4a20830ee6dfeb33a363c480c4698c263a8deccfcac2071198248147ef40d951a1b551c373b0e1e29f6b6bfcdac350390f8f4c3653ed9d1f1940ed50c96af785
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
Taken from: https://github.com/dlundquist/sniproxy/commit/822bb80df9b7b345cc9eba55df74a07b498819ba
|
||||
Author: Pierre-Olivier Mercier <nemunaire@nemunai.re>
|
||||
|
||||
--- a/src/http.h
|
||||
+++ b/src/http.h
|
||||
@@ -29,6 +29,6 @@
|
||||
#include <stdio.h>
|
||||
#include "protocol.h"
|
||||
|
||||
-const struct Protocol *const http_protocol;
|
||||
+extern const struct Protocol *const http_protocol;
|
||||
|
||||
#endif
|
||||
--- a/src/tls.h
|
||||
+++ b/src/tls.h
|
||||
@@ -28,6 +28,6 @@
|
||||
|
||||
#include "protocol.h"
|
||||
|
||||
-const struct Protocol *const tls_protocol;
|
||||
+extern const struct Protocol *const tls_protocol;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
# Copyright 1999-2020 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"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user