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