Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/varnish/
Date: Thu, 01 Oct 2020 23:19:12
Message-Id: 1601594344.f5155619fbd862fb2acdf6e8d3af6049c5528779.blueness@gentoo
1 commit: f5155619fbd862fb2acdf6e8d3af6049c5528779
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 1 23:18:44 2020 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 1 23:19:04 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5155619
7
8 www-servers/varnish: version bump to 6.5.0
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
12
13 www-servers/varnish/Manifest | 1 +
14 www-servers/varnish/varnish-6.5.0.ebuild | 98 ++++++++++++++++++++++++++++++++
15 2 files changed, 99 insertions(+)
16
17 diff --git a/www-servers/varnish/Manifest b/www-servers/varnish/Manifest
18 index e60281b3d7f..dd921ec4667 100644
19 --- a/www-servers/varnish/Manifest
20 +++ b/www-servers/varnish/Manifest
21 @@ -1,3 +1,4 @@
22 DIST varnish-6.0.6.tgz 3136931 BLAKE2B 2ce379622b20a939a977a426cb842ba62e4fd5fd3ba785ec21888956b6a8c16e95bd834962a7ba05dc426dfc36067cabb4f8ade2bee7fe2a094a1f2c4c4c9e06 SHA512 c0881ab051bca928c12f35494c5e2a8109390abdf3acf368da404c5537d1ee0f1153b6e329058a7e1168eacf5af9b86ccf9a6e58cd89dd7d51b8b71d25aa7ba0
23 DIST varnish-6.3.2.tgz 3323908 BLAKE2B 5bde1b2ececeb8aed884db22ed75bfd74f82d68416e71400a4c0d27483fcceb029fe8e724e30754899c872d7028da5cb759545f0743a11d0e90b0fd604af0ad7 SHA512 0f476c642df834737d446b3bc6ac8afa5981d1de5810dc6e8556eb22b2ca26d64eb531f4ad3332eb86e231a7443fe35393177ec6dbee97a837f405d1aa9d03cd
24 DIST varnish-6.4.0.tgz 3404617 BLAKE2B 0ef0f7303f5c926bb1b80ec14cdd9755d65c1938fa8645240800ac2997f954022133625a74dd9c30ce21850674c3b00777fcc896309f528e6ba90d347333d7f7 SHA512 cda8f9e1d301a2b79db14685a23e25e36225f37065a1b7f37c5ae12fbb0483be51be9ffcc8ba72c1f65f5a022d1e408825694daed6780e206b9ba91feb2a07a1
25 +DIST varnish-6.5.0.tgz 3476969 BLAKE2B bafa8704f28dfa96f681805cc053dd6415e143016b1bbff7f8962f2c3ac5cd07be6dc2f4129a423ddfcbf9f9f8afc57388930685d0ed400f3c06ba03bd667d87 SHA512 43f8cd6429a903a353ac4448b6e9aff445b0d52178141a148d3b29b987c0974841820af0da4917731775b46899c12b0327d64d12e3ddbb8fd438e2802ac66a1c
26
27 diff --git a/www-servers/varnish/varnish-6.5.0.ebuild b/www-servers/varnish/varnish-6.5.0.ebuild
28 new file mode 100644
29 index 00000000000..cd7753a43db
30 --- /dev/null
31 +++ b/www-servers/varnish/varnish-6.5.0.ebuild
32 @@ -0,0 +1,98 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI="7"
37 +
38 +PYTHON_COMPAT=( python{3_6,3_7} )
39 +
40 +inherit autotools systemd python-r1
41 +
42 +DESCRIPTION="Varnish is a state-of-the-art, high-performance HTTP accelerator"
43 +HOMEPAGE="https://varnish-cache.org/"
44 +SRC_URI="http://varnish-cache.org/_downloads/${P}.tgz"
45 +
46 +LICENSE="BSD-2 GPL-2"
47 +SLOT="0/2"
48 +KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~x86"
49 +IUSE="jemalloc jit static-libs"
50 +
51 +CDEPEND="
52 + sys-libs/readline:0=
53 + dev-libs/libpcre[jit?]
54 + jemalloc? ( dev-libs/jemalloc )
55 + sys-libs/ncurses:0="
56 +
57 +#varnish compiles stuff at run time
58 +RDEPEND="
59 + ${PYTHON_DEPS}
60 + ${CDEPEND}
61 + acct-user/varnish
62 + acct-group/varnish
63 + sys-devel/gcc"
64 +
65 +DEPEND="
66 + ${CDEPEND}
67 + dev-python/docutils
68 + dev-python/sphinx
69 + virtual/pkgconfig"
70 +
71 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
72 +
73 +RESTRICT="test" #315725
74 +
75 +src_prepare() {
76 + # Remove -Werror bug #528354
77 + sed -i -e 's/-Werror\([^=]\)/\1/g' configure.ac
78 +
79 + # Upstream doesn't put varnish.m4 in the m4/ directory
80 + # We link because the Makefiles look for the file in
81 + # the original location
82 + ln -sf ../varnish.m4 m4/varnish.m4
83 +
84 + eapply_user
85 +
86 + eautoreconf
87 +}
88 +
89 +src_configure() {
90 + econf \
91 + $(use_enable static-libs static) \
92 + $(use_enable jit pcre-jit ) \
93 + $(use_with jemalloc)
94 +}
95 +
96 +src_install() {
97 + emake DESTDIR="${D}" install
98 +
99 + python_replicate_script "${D}/usr/share/varnish/vmodtool.py"
100 +
101 + newinitd "${FILESDIR}"/varnishlog.initd varnishlog
102 + newconfd "${FILESDIR}"/varnishlog.confd varnishlog
103 +
104 + newinitd "${FILESDIR}"/varnishncsa.initd varnishncsa
105 + newconfd "${FILESDIR}"/varnishncsa.confd varnishncsa
106 +
107 + newinitd "${FILESDIR}"/varnishd.initd-r4 varnishd
108 + newconfd "${FILESDIR}"/varnishd.confd-r4 varnishd
109 +
110 + insinto /etc/logrotate.d/
111 + newins "${FILESDIR}/varnishd.logrotate-r2" varnishd
112 +
113 + diropts -m750
114 +
115 + keepdir /var/lib/varnish
116 + keepdir /var/log/varnish
117 +
118 + systemd_dounit "${FILESDIR}/${PN}d.service"
119 +
120 + insinto /etc/varnish/
121 + doins lib/libvmod_std/vmod_std.vcc
122 + doins etc/example.vcl
123 +
124 + dodoc README.rst
125 + dodoc doc/changes.rst
126 +
127 + fowners root:varnish /etc/varnish/
128 + fowners varnish:varnish /var/lib/varnish/
129 + fperms 0750 /var/lib/varnish/ /etc/varnish/
130 +}