commit:     ba4ad6bba2c8574369965f9725346b45aeb2dd5e
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 15 13:29:09 2017 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Jul 15 13:29:41 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba4ad6bb

www-servers/varnish: version bump to 4.1.7

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 www-servers/varnish/Manifest             |   1 +
 www-servers/varnish/varnish-4.1.7.ebuild | 102 +++++++++++++++++++++++++++++++
 2 files changed, 103 insertions(+)

diff --git a/www-servers/varnish/Manifest b/www-servers/varnish/Manifest
index 34bad472aef..1047f36e3b4 100644
--- a/www-servers/varnish/Manifest
+++ b/www-servers/varnish/Manifest
@@ -1,3 +1,4 @@
 DIST varnish-4.0.3.tar.gz 1866760 SHA256 
94b9a174097f47db2286acd2c35f235e49a2b7a9ddfdbd6eb7aa4da9ae8f8206 SHA512 
db7bb141afd4617ac95573983dc30591b0eb9bc1af06df1094f2c1eeac539da936afb4a239d2f446d3c3a51b88a781b7f9f6d9a0b2028eaf0e7049ea2159d883
 WHIRLPOOL 
942456e19be427859283959dabe5522667519d36decbc598c8ee1e949767ea7435469393289d4373db6abac5275e50a95fc3799a837dc17740a490b4912bfe6f
 DIST varnish-4.1.6.tar.gz 2201975 SHA256 
c7ac460b521bebf772868b2f5aefc2f2508a1e133809cd52d3ba1b312226e849 SHA512 
c97b6245d467472dc61d1471cbfbefc1cca0839abbca73940efb800e7751437a64437a0c68e2c65e6f4dc039f25bb51ef4d9f3da4e50ccb854646457fb147927
 WHIRLPOOL 
6b10fc7c2b19f8ba6e8b89cad41b034ce1ab126db510f239a725fa3e1319e2b130c872c3a88b2f3f9c1a5bf9a926540b0fa4aa8238b92eb5174722bee8d307c4
+DIST varnish-4.1.7.tar.gz 2210417 SHA256 
c52ee2f5d052a496f3700d8ac8eb4da45144779c863f09f7be70daec3cfed105 SHA512 
668e69430163600fad34031593d6144a52b113f9aea01d5ba51c7dac0ecf10606610a1d96393f07329e4f6af9a71b4ce668284f7c49b2c5871817707326036fd
 WHIRLPOOL 
cede0f86e86b55a312535aa76bd6b6bb0ec27c688ae65ee0b8953b238f4172202237ed97af3278dc77611773a7b29253037a4ebe9ef47bddf01832adefac9ac5
 DIST varnish-5.1.2.tar.gz 2597817 SHA256 
39d858137e26948a7c85f07363f13f0778da61d234126e03a160a0cb9ba4fce3 SHA512 
6ee71c2678a34f7e3963547d8e79bd83e3b326ffe703ad60f0d6f8f218a3801849c870aa00e407008ef22cd2b2baf4cbe02625ce77018279afdb8208d43a743b
 WHIRLPOOL 
4c824fbb00d79fd1a6287bf08e26d9e9074e986d63d37a305f2f0dca320766e694aa8eaf81d723280f207e9b3fb528d2f917ee6fa21c3f24ba84b83acd367e86

diff --git a/www-servers/varnish/varnish-4.1.7.ebuild 
b/www-servers/varnish/varnish-4.1.7.ebuild
new file mode 100644
index 00000000000..abb3177963a
--- /dev/null
+++ b/www-servers/varnish/varnish-4.1.7.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+PYTHON_COMPAT=( python{2_7,3_4} pypy )
+
+inherit user autotools systemd python-r1
+
+DESCRIPTION="Varnish is a state-of-the-art, high-performance HTTP accelerator"
+HOMEPAGE="http://www.varnish-cache.org/";
+SRC_URI="http://repo.varnish-cache.org/source/${P}.tar.gz";
+
+LICENSE="BSD-2 GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~x86"
+IUSE="jemalloc jit static-libs"
+
+CDEPEND="
+       sys-libs/readline:0=
+       dev-libs/libpcre[jit?]
+       jemalloc? ( dev-libs/jemalloc )
+       sys-libs/ncurses:0="
+
+#varnish compiles stuff at run time
+RDEPEND="
+       ${PYTHON_DEPS}
+       ${CDEPEND}
+       sys-devel/gcc"
+
+DEPEND="
+       ${CDEPEND}
+       dev-python/docutils
+       virtual/pkgconfig"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RESTRICT="test" #315725
+
+DOCS=( README.rst doc/changes.rst )
+
+pkg_setup() {
+       ebegin "Creating varnish user and group"
+       enewgroup varnish
+       enewuser varnish -1 -1 /var/lib/varnish varnish
+       eend $?
+}
+
+src_prepare() {
+       # Remove bundled libjemalloc. We also fix
+       # automagic dep in our patches, bug #461638
+       rm -rf lib/libjemalloc
+
+       # Fix bug #620952
+       eapply "${FILESDIR}"/fix-build-x86.patch
+
+       # Remove -Werror bug #528354
+       sed -i -e 's/-Werror\([^=]\)/\1/g' configure.ac
+
+       eapply_user
+
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               $(use_enable static-libs static) \
+               $(use_enable jit pcre-jit ) \
+               $(use_with jemalloc)
+}
+
+src_install() {
+       emake DESTDIR="${D}" install
+
+       python_replicate_script "${D}/usr/share/varnish/vmodtool.py"
+
+       newinitd "${FILESDIR}"/varnishlog.initd varnishlog
+       newconfd "${FILESDIR}"/varnishlog.confd varnishlog
+
+       newinitd "${FILESDIR}"/varnishncsa.initd varnishncsa
+       newconfd "${FILESDIR}"/varnishncsa.confd varnishncsa
+
+       newinitd "${FILESDIR}"/varnishd.initd-r4 varnishd
+       newconfd "${FILESDIR}"/varnishd.confd-r4 varnishd
+
+       insinto /etc/logrotate.d/
+       newins "${FILESDIR}/varnishd.logrotate-r2" varnishd
+
+       diropts -m750
+
+       dodir /var/log/varnish/
+
+       systemd_dounit "${FILESDIR}/${PN}d.service"
+
+       insinto /etc/varnish/
+       doins lib/libvmod_std/vmod.vcc
+       doins etc/example.vcl
+
+       fowners root:varnish /etc/varnish/
+       fowners varnish:varnish /var/lib/varnish/
+       fperms 0750 /var/lib/varnish/ /etc/varnish/
+}

Reply via email to