1 |
commit: f84f6c343ead12d37cc1389115e81e2b42cb4487 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 12 20:02:27 2018 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 12 20:02:27 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f84f6c34 |
7 |
|
8 |
www-servers/varnish: version bump to 6.0.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
www-servers/varnish/Manifest | 1 + |
13 |
www-servers/varnish/varnish-6.0.1.ebuild | 102 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 103 insertions(+) |
15 |
|
16 |
diff --git a/www-servers/varnish/Manifest b/www-servers/varnish/Manifest |
17 |
index f9c6f64a06b..e45ec3e04da 100644 |
18 |
--- a/www-servers/varnish/Manifest |
19 |
+++ b/www-servers/varnish/Manifest |
20 |
@@ -3,3 +3,4 @@ DIST varnish-4.1.8.tgz 2254772 BLAKE2B acadf4079d58bb8f0dc5e24713aba7f2786ca6f06 |
21 |
DIST varnish-5.1.3.tgz 2643223 BLAKE2B 85bae87785da1284d7d916b8948a0984eea9cf07e96012255435ba04c28e8078e5dad893946bbc12da6cbe9326699458f0e3af6be55cb5e7bba4e622724ddac2 SHA512 a10c317dc38ddff139ca8153f6388955df449c3abeb4d4f069b632ba2b32064a2827ab05fa8515994b251a68507fc3a7bf4e08eacc991fc03283ab234b9efd0a |
22 |
DIST varnish-5.2.1.tgz 2827676 BLAKE2B 6f50a55a9b16d137eaec59aea98a0179b808bb67fc3de26c9b0924b9937a3688b7f9db45d2f0a71be2b7c6f77bfd47cd22e7b898348b5236114572b5bb33ff22 SHA512 2e979983c7f2325e289768752cc474dc3032c3420de65ccfd5871098c076aecf18e962b04308ecb1860f542fd6f6418dc79220fdd6cf4a75f7476a733faa589c |
23 |
DIST varnish-6.0.0.tgz 3033621 BLAKE2B 8fb3c8bf64527476251500ebf809dcff927c8097811e500172d489dd02828981e92034d8c95b8b6d183381d8f3a0fdba633451e8ab17d40d56f7727376378d68 SHA512 39bae462fe40bda9b7c93114ab8256c838a7d67f1a9f7397c37ad090163a33232676120eb7609d0512684a563d8e02c1c2ff5e1b9da0ddedef2250db51c3cc79 |
24 |
+DIST varnish-6.0.1.tgz 3065822 BLAKE2B b99d0d50444872353367007f2ee97c5d5f0e60031ece7b07f8b2c3a7a84b31be88fe2b850304b1f2e47a35f35c2c41f43888bee1d1874721a72ad078acfddfa1 SHA512 057cb69ae6a4d980401effb7561d3a9b537216d8626fdf4e7bcc75971958517f51b6bd7f7af86c11bc92a2e77876831c577736dfcd11447ad0128f222c5ad138 |
25 |
|
26 |
diff --git a/www-servers/varnish/varnish-6.0.1.ebuild b/www-servers/varnish/varnish-6.0.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..fd1d1a8b7ca |
29 |
--- /dev/null |
30 |
+++ b/www-servers/varnish/varnish-6.0.1.ebuild |
31 |
@@ -0,0 +1,102 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI="6" |
36 |
+ |
37 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy ) |
38 |
+ |
39 |
+inherit user 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" |
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 |
+ sys-devel/gcc" |
61 |
+ |
62 |
+DEPEND=" |
63 |
+ ${CDEPEND} |
64 |
+ dev-python/docutils |
65 |
+ virtual/pkgconfig" |
66 |
+ |
67 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
68 |
+ |
69 |
+RESTRICT="test" #315725 |
70 |
+ |
71 |
+pkg_setup() { |
72 |
+ ebegin "Creating varnish user and group" |
73 |
+ enewgroup varnish |
74 |
+ enewuser varnish -1 -1 /var/lib/varnish varnish |
75 |
+ eend $? |
76 |
+} |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ # Remove -Werror bug #528354 |
80 |
+ sed -i -e 's/-Werror\([^=]\)/\1/g' configure.ac |
81 |
+ |
82 |
+ # Upstream doesn't put varnish.m4 in the m4/ directory |
83 |
+ # We link because the Makefiles look for the file in |
84 |
+ # the original location |
85 |
+ ln -sf ../varnish.m4 m4/varnish.m4 |
86 |
+ |
87 |
+ eapply_user |
88 |
+ |
89 |
+ eautoreconf |
90 |
+} |
91 |
+ |
92 |
+src_configure() { |
93 |
+ econf \ |
94 |
+ $(use_enable static-libs static) \ |
95 |
+ $(use_enable jit pcre-jit ) \ |
96 |
+ $(use_with jemalloc) |
97 |
+} |
98 |
+ |
99 |
+src_install() { |
100 |
+ emake DESTDIR="${D}" install |
101 |
+ |
102 |
+ python_replicate_script "${D}/usr/share/varnish/vmodtool.py" |
103 |
+ |
104 |
+ newinitd "${FILESDIR}"/varnishlog.initd varnishlog |
105 |
+ newconfd "${FILESDIR}"/varnishlog.confd varnishlog |
106 |
+ |
107 |
+ newinitd "${FILESDIR}"/varnishncsa.initd varnishncsa |
108 |
+ newconfd "${FILESDIR}"/varnishncsa.confd varnishncsa |
109 |
+ |
110 |
+ newinitd "${FILESDIR}"/varnishd.initd-r4 varnishd |
111 |
+ newconfd "${FILESDIR}"/varnishd.confd-r4 varnishd |
112 |
+ |
113 |
+ insinto /etc/logrotate.d/ |
114 |
+ newins "${FILESDIR}/varnishd.logrotate-r2" varnishd |
115 |
+ |
116 |
+ diropts -m750 |
117 |
+ |
118 |
+ keepdir /var/lib/varnish |
119 |
+ keepdir /var/log/varnish |
120 |
+ |
121 |
+ systemd_dounit "${FILESDIR}/${PN}d.service" |
122 |
+ |
123 |
+ insinto /etc/varnish/ |
124 |
+ doins lib/libvmod_std/vmod.vcc |
125 |
+ doins etc/example.vcl |
126 |
+ |
127 |
+ dodoc README.rst |
128 |
+ dodoc doc/changes.rst |
129 |
+ |
130 |
+ fowners root:varnish /etc/varnish/ |
131 |
+ fowners varnish:varnish /var/lib/varnish/ |
132 |
+ fperms 0750 /var/lib/varnish/ /etc/varnish/ |
133 |
+} |