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