1 |
commit: d9d0f3734e4b5ef86a4d287baae4ce4519f9b7a4 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 24 17:33:47 2021 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 24 17:34:01 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9d0f373 |
7 |
|
8 |
www-servers/varnish: version bump to 7.0.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
12 |
|
13 |
www-servers/varnish/Manifest | 1 + |
14 |
www-servers/varnish/varnish-7.0.0.ebuild | 99 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 100 insertions(+) |
16 |
|
17 |
diff --git a/www-servers/varnish/Manifest b/www-servers/varnish/Manifest |
18 |
index 439384ec952..eca4f04b43e 100644 |
19 |
--- a/www-servers/varnish/Manifest |
20 |
+++ b/www-servers/varnish/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST varnish-6.5.2.tgz 3464372 BLAKE2B 68a7bca159ed9539126f66d21450c87780b49b66a2d45a5abc7db6fe9d68c8526aa059546fb1d865de753736793e700611f4f110edb1c649f4e9753c4dfedacc SHA512 31673eaa95e5d3413cd3a4a6fb324c1f0ad2efb22b75409fc0e02c61446787eb167bd530ee5b0a199da4fc76cc36f3603984d86781f856cc6a4aac48260fe4ef |
23 |
DIST varnish-6.6.1.tgz 3518308 BLAKE2B 6a88165394c0578427de20588ac2c17f502242bf94f30e9284f7bc2c271b77c3d6511a9dfb8d1cb6d75e1fc4563360fb0bec762aa17481fa598cb5e9d9527705 SHA512 af3ee1743af2ede2d3efbb73e5aa9b42c7bbd5f86163ec338c8afd1989c3e51ff3e1b40bed6b72224b5d339a74f22d6e5f3c3faf2fedee8ab4715307ed5d871b |
24 |
+DIST varnish-7.0.0.tgz 3721912 BLAKE2B 872b9526a252ad5b3c1388363e3aedd68772a87dc2459dd25455c0c694f2c8b5a7897c8627183a92a8cdde10a8288084e8de88e87d329710290c49e2da538277 SHA512 39c694db4ec7b35236d12fe2c03036260d6799395b1c8bb5a58e96fc88d67dcaa5eb8bc75643540d3aa0edc1a8924d7d839e88293b0521fadef4cd12f466fb4b |
25 |
|
26 |
diff --git a/www-servers/varnish/varnish-7.0.0.ebuild b/www-servers/varnish/varnish-7.0.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..cbc2e0eb6a2 |
29 |
--- /dev/null |
30 |
+++ b/www-servers/varnish/varnish-7.0.0.ebuild |
31 |
@@ -0,0 +1,99 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI="8" |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{7..9} ) |
38 |
+ |
39 |
+inherit autotools systemd python-r1 |
40 |
+ |
41 |
+DESCRIPTION="Varnish is a state-of-the-art, high-performance HTTP accelerator" |
42 |
+HOMEPAGE="https://varnish-cache.org/" |
43 |
+SRC_URI="http://varnish-cache.org/_downloads/${P}.tgz" |
44 |
+ |
45 |
+LICENSE="BSD-2 GPL-2" |
46 |
+SLOT="0/2" |
47 |
+KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~x86" |
48 |
+IUSE="jemalloc jit static-libs" |
49 |
+ |
50 |
+CDEPEND=" |
51 |
+ sys-libs/readline:0= |
52 |
+ dev-libs/libpcre[jit?] |
53 |
+ jemalloc? ( dev-libs/jemalloc ) |
54 |
+ sys-libs/ncurses:0=" |
55 |
+ |
56 |
+#varnish compiles stuff at run time |
57 |
+RDEPEND=" |
58 |
+ ${PYTHON_DEPS} |
59 |
+ ${CDEPEND} |
60 |
+ acct-user/varnish |
61 |
+ acct-group/varnish |
62 |
+ sys-devel/gcc" |
63 |
+ |
64 |
+DEPEND=" |
65 |
+ ${CDEPEND} |
66 |
+ dev-python/docutils |
67 |
+ dev-python/sphinx |
68 |
+ virtual/pkgconfig" |
69 |
+ |
70 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
71 |
+ |
72 |
+RESTRICT="test" #315725 |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ # Remove -Werror bug #528354 |
76 |
+ sed -i -e 's/-Werror\([^=]\)/\1/g' configure.ac |
77 |
+ |
78 |
+ # Upstream doesn't put varnish.m4 in the m4/ directory |
79 |
+ # We link because the Makefiles look for the file in |
80 |
+ # the original location |
81 |
+ ln -sf ../varnish.m4 m4/varnish.m4 |
82 |
+ |
83 |
+ default |
84 |
+ eautoreconf |
85 |
+} |
86 |
+ |
87 |
+src_configure() { |
88 |
+ local myeconfargs=( |
89 |
+ $(use_enable static-libs static) |
90 |
+ $(use_enable jit pcre2-jit) |
91 |
+ $(use_with jemalloc) |
92 |
+ ) |
93 |
+ econf "${myeconfargs[@]}" |
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 vmod/vmod_*.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 |
+} |