Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/sniproxy/
Date: Thu, 31 Jan 2019 17:41:02
Message-Id: 1548956199.18add7aec786a08fd58b15813ba18796f695f807.gyakovlev@gentoo
1 commit: 18add7aec786a08fd58b15813ba18796f695f807
2 Author: Pierre-Olivier Mercier <nemunaire <AT> nemunai <DOT> re>
3 AuthorDate: Mon Dec 10 12:49:53 2018 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 31 17:36:39 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18add7ae
7
8 www-server/sniproxy: bump to 0.6.0
9
10 Closes: https://bugs.gentoo.org/651928
11 Closes: https://github.com/gentoo/gentoo/pull/10604
12 Package-Manager: Portage-2.3.51, Repoman-2.3.11
13 Signed-off-by: Pierre-Olivier Mercier <nemunaire <AT> nemunai.re>
14 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
15
16 www-servers/sniproxy/Manifest | 1 +
17 www-servers/sniproxy/sniproxy-0.6.0.ebuild | 82 ++++++++++++++++++++++++++++++
18 2 files changed, 83 insertions(+)
19
20 diff --git a/www-servers/sniproxy/Manifest b/www-servers/sniproxy/Manifest
21 index 3f149dfd375..14bb5bf4900 100644
22 --- a/www-servers/sniproxy/Manifest
23 +++ b/www-servers/sniproxy/Manifest
24 @@ -1 +1,2 @@
25 DIST sniproxy-0.5.0.tar.gz 72654 BLAKE2B 11f2a66af0d5a19807178687b2a5044aa0cca18a9586c60a6e15604b90f4c32d16d9ac8d037df2cafe57a2dc3a576e1ff72b8f58b59e6822d2a45520b9c770f4 SHA512 52dbb217193d2b7bf9dea37b13fde395b5c56d0a6627508a245f2807920deb282aae3c1ae7e6b5fa68432990e48998989fd28027b65cb7310f214b29f98e5e5d
26 +DIST sniproxy-0.6.0.tar.gz 78515 BLAKE2B 1ac8decc793e7b3d73d833bc392b3ef035bd2ba7d515c54ff46de16ee8897c0c5392929d5c7a22a131c1f017897cc6f8e9c50aff8164e4afbdc23155b804b613 SHA512 8a99573673bdd57e528c5781cb166d39c80daed699382b24c3fa18a6011d074a1d9e470fee404d24b4450cf067c9995125910b2941b5216d88d189a1d79ebf73
27
28 diff --git a/www-servers/sniproxy/sniproxy-0.6.0.ebuild b/www-servers/sniproxy/sniproxy-0.6.0.ebuild
29 new file mode 100644
30 index 00000000000..2c4947ff75a
31 --- /dev/null
32 +++ b/www-servers/sniproxy/sniproxy-0.6.0.ebuild
33 @@ -0,0 +1,82 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +inherit autotools user
40 +
41 +if [[ ${PV} == 9999* ]]; then
42 + EGIT_REPO_URI="https://github.com/dlundquist/sniproxy.git"
43 + EGIT_BRANCH="master"
44 + inherit git-r3
45 + KEYWORDS=""
46 +else
47 + SRC_URI="https://github.com/dlundquist/sniproxy/archive/${PV}.tar.gz -> ${P}.tar.gz"
48 + KEYWORDS="~amd64 ~x86"
49 +fi
50 +
51 +DESCRIPTION="Proxies incoming HTTP and TLS connections based on the hostname"
52 +HOMEPAGE="https://github.com/dlundquist/sniproxy"
53 +
54 +LICENSE="BSD-2"
55 +SLOT="0"
56 +IUSE="+dns +largefile rfc3339 test"
57 +
58 +RDEPEND="
59 + dev-libs/libev
60 + >=dev-libs/libpcre-3
61 + dns? ( net-libs/udns )
62 +"
63 +BDEPEND="
64 + ${RDEPEND}
65 + sys-devel/gettext
66 + virtual/pkgconfig
67 +"
68 +DEPEND="
69 + test? ( net-misc/curl )
70 +"
71 +
72 +src_prepare() {
73 + default
74 + eautoreconf
75 +
76 + sed -i "/user/s/daemon/sniproxy/" debian/sniproxy.conf || die "Unable to replace configuration"
77 + sed -i "/create/s/daemon/sniproxy/" debian/logrotate.conf || die "Unable to replace logrotate configuration"
78 +}
79 +
80 +src_configure() {
81 + local my_conf=(
82 + $(use_enable dns)
83 + $(use_enable largefile)
84 + $(use_enable rfc3339 rfc3339-timestamps)
85 + )
86 +
87 + econf "${my_conf[@]}"
88 +}
89 +
90 +src_install() {
91 + default
92 +
93 + newinitd "${FILESDIR}/sniproxy.init" sniproxy
94 +
95 + insinto /etc/sniproxy
96 + doins debian/sniproxy.conf
97 +
98 + keepdir /var/log/sniproxy
99 +
100 + insinto /etc/logrotate.d
101 + newins debian/logrotate.conf sniproxy
102 +
103 + dodoc ARCHITECTURE.md AUTHORS README.md
104 + doman man/sniproxy.8
105 + doman man/sniproxy.conf.5
106 +}
107 +
108 +src_test() {
109 + emake -j1 check
110 +}
111 +
112 +pkg_postinst() {
113 + enewgroup "${PN}"
114 + enewuser "${PN}" -1 -1 /var/lib/sniproxy "${PN}"
115 +}