Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/varnish: varnish-4.0.1-r1.ebuild ChangeLog varnish-4.0.1.ebuild
Date: Fri, 03 Oct 2014 18:15:16
Message-Id: 20141003181509.791246DDE@oystercatcher.gentoo.org
1 blueness 14/10/03 18:15:09
2
3 Modified: ChangeLog
4 Added: varnish-4.0.1-r1.ebuild
5 Removed: varnish-4.0.1.ebuild
6 Log:
7 Fix varnishncsa initd script, bug #524284
8
9 (Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
10
11 Revision Changes Path
12 1.80 www-servers/varnish/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/varnish/ChangeLog?rev=1.80&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/varnish/ChangeLog?rev=1.80&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/varnish/ChangeLog?r1=1.79&r2=1.80
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-servers/varnish/ChangeLog,v
21 retrieving revision 1.79
22 retrieving revision 1.80
23 diff -u -r1.79 -r1.80
24 --- ChangeLog 25 Jun 2014 12:46:50 -0000 1.79
25 +++ ChangeLog 3 Oct 2014 18:15:09 -0000 1.80
26 @@ -1,6 +1,12 @@
27 # ChangeLog for www-servers/varnish
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-servers/varnish/ChangeLog,v 1.79 2014/06/25 12:46:50 blueness Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-servers/varnish/ChangeLog,v 1.80 2014/10/03 18:15:09 blueness Exp $
31 +
32 +*varnish-4.0.1-r1 (03 Oct 2014)
33 +
34 + 03 Oct 2014; Anthony G. Basile <blueness@g.o>
35 + +files/varnishncsa.initd-r1, +varnish-4.0.1-r1.ebuild, -varnish-4.0.1.ebuild:
36 + Fix varnishncsa initd script, bug #524284
37
38 *varnish-4.0.1 (25 Jun 2014)
39
40
41
42
43 1.1 www-servers/varnish/varnish-4.0.1-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/varnish/varnish-4.0.1-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/varnish/varnish-4.0.1-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: varnish-4.0.1-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/www-servers/varnish/varnish-4.0.1-r1.ebuild,v 1.1 2014/10/03 18:15:09 blueness Exp $
53
54 EAPI="5"
55
56 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy pypy2_0 )
57
58 inherit user autotools-utils eutils systemd python-r1
59
60 DESCRIPTION="Varnish is a state-of-the-art, high-performance HTTP accelerator"
61 HOMEPAGE="http://www.varnish-cache.org/"
62 SRC_URI="http://repo.varnish-cache.org/source/${P}.tar.gz"
63
64 LICENSE="BSD-2 GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~mips ~x86"
67 IUSE="jemalloc jit static-libs"
68
69 CDEPEND="
70 || ( dev-libs/libedit sys-libs/readline )
71 dev-libs/libpcre[jit?]
72 jemalloc? ( dev-libs/jemalloc )
73 sys-libs/ncurses"
74
75 #varnish compiles stuff at run time
76 RDEPEND="
77 ${PYTHON_DEPS}
78 ${CDEPEND}
79 sys-devel/gcc"
80
81 DEPEND="
82 ${CDEPEND}
83 dev-python/docutils
84 virtual/pkgconfig"
85
86 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
87
88 RESTRICT="test" #315725
89
90 DOCS=( README doc/changes.rst )
91
92 PATCHES=(
93 "${FILESDIR}"/${PN}-4.0.1-fix-man-Makefile_am.patch
94 "${FILESDIR}"/${PN}-4.0.1-fix-doc-Makefile_am.patch
95 "${FILESDIR}"/${PN}-4.0.1-fix-warning.patch
96 )
97
98 AUTOTOOLS_AUTORECONF="yes"
99
100 pkg_setup() {
101 ebegin "Creating varnish user and group"
102 enewgroup varnish 40
103 enewuser varnish 40 -1 /var/lib/varnish varnish
104 eend $?
105 }
106
107 src_prepare() {
108 # Remove bundled libjemalloc. We also fix
109 # automagic dep in our patches, bug #461638
110 rm -rf lib/libjemalloc
111
112 autotools-utils_src_prepare
113 }
114
115 src_configure() {
116 local myeconfargs=(
117 $(use_enable static-libs static)
118 $(use_enable jit pcre-jit )
119 $(use_with jemalloc)
120 )
121 autotools-utils_src_configure
122 }
123
124 src_install() {
125 autotools-utils_src_install
126
127 python_replicate_script "${D}/usr/share/varnish/vmodtool.py"
128
129 newinitd "${FILESDIR}"/varnishlog.initd varnishlog
130 newconfd "${FILESDIR}"/varnishlog.confd varnishlog
131
132 newinitd "${FILESDIR}"/varnishncsa.initd-r1 varnishncsa
133 newconfd "${FILESDIR}"/varnishncsa.confd varnishncsa
134
135 newinitd "${FILESDIR}"/varnishd.initd-r3 varnishd
136 newconfd "${FILESDIR}"/varnishd.confd-r3 varnishd
137
138 insinto /etc/logrotate.d/
139 newins "${FILESDIR}/varnishd.logrotate-r2" varnishd
140
141 diropts -m750
142
143 dodir /var/log/varnish/
144
145 systemd_dounit "${FILESDIR}/${PN}d.service"
146
147 insinto /etc/varnish/
148 doins lib/libvmod_std/vmod.vcc
149 doins etc/example.vcl
150
151 fowners root:varnish /etc/varnish/
152 fowners varnish:varnish /var/lib/varnish/
153 fperms 0750 /var/lib/varnish/ /etc/varnish/
154 }
155
156 pkg_postinst () {
157 elog "No demo-/sample-configfile is included in the distribution. Please"
158 elog "read the man-page for more info. A sample configuration proxying"
159 elog "localhost:8080 for localhost:80 is given in /etc/conf.d/varnishd."
160 }