Gentoo Archives: gentoo-commits

From: "Christian Ruppert (idl0r)" <idl0r@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-proxy/haproxy: ChangeLog haproxy-1.5_beta19.ebuild haproxy-1.4.24.ebuild haproxy-1.5_beta18.ebuild haproxy-1.4.22.ebuild
Date: Sat, 29 Jun 2013 16:33:30
Message-Id: 20130629163327.16CF42171C@flycatcher.gentoo.org
1 idl0r 13/06/29 16:33:27
2
3 Modified: ChangeLog
4 Added: haproxy-1.5_beta19.ebuild haproxy-1.4.24.ebuild
5 Removed: haproxy-1.5_beta18.ebuild haproxy-1.4.22.ebuild
6 Log:
7 Version bumps, cleanup. Fixes CVE-2013-2175, bug 473674
8
9 (Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key B427ABC8)
10
11 Revision Changes Path
12 1.81 net-proxy/haproxy/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?rev=1.81&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?rev=1.81&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?r1=1.80&r2=1.81
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v
21 retrieving revision 1.80
22 retrieving revision 1.81
23 diff -u -r1.80 -r1.81
24 --- ChangeLog 13 May 2013 20:11:16 -0000 1.80
25 +++ ChangeLog 29 Jun 2013 16:33:26 -0000 1.81
26 @@ -1,6 +1,14 @@
27 # ChangeLog for net-proxy/haproxy
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v 1.80 2013/05/13 20:11:16 idl0r Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v 1.81 2013/06/29 16:33:26 idl0r Exp $
31 +
32 +*haproxy-1.5_beta19 (29 Jun 2013)
33 +*haproxy-1.4.24 (29 Jun 2013)
34 +
35 + 29 Jun 2013; Christian Ruppert <idl0r@g.o> -haproxy-1.4.22.ebuild,
36 + +haproxy-1.4.24.ebuild, -haproxy-1.5_beta18.ebuild,
37 + +haproxy-1.5_beta19.ebuild:
38 + Version bumps, cleanup. Fixes CVE-2013-2175, bug 473674
39
40 *haproxy-9999 (13 May 2013)
41
42
43
44
45 1.1 net-proxy/haproxy/haproxy-1.5_beta19.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/haproxy-1.5_beta19.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/haproxy-1.5_beta19.ebuild?rev=1.1&content-type=text/plain
49
50 Index: haproxy-1.5_beta19.ebuild
51 ===================================================================
52 # Copyright 1999-2013 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/haproxy-1.5_beta19.ebuild,v 1.1 2013/06/29 16:33:26 idl0r Exp $
55
56 EAPI="4"
57
58 inherit user versionator toolchain-funcs flag-o-matic
59
60 MY_P="${PN}-${PV/_beta/-dev}"
61
62 DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
63 HOMEPAGE="http://haproxy.1wt.eu"
64 SRC_URI="http://haproxy.1wt.eu/download/$(get_version_component_range 1-2)/src/devel/${MY_P}.tar.gz"
65
66 LICENSE="GPL-2 LGPL-2.1"
67 SLOT="0"
68 KEYWORDS="~amd64 ~ppc ~x86"
69 IUSE="+crypt examples +pcre ssl vim-syntax +zlib"
70
71 DEPEND="pcre? ( dev-libs/libpcre )
72 ssl? ( dev-libs/openssl[zlib?] )
73 zlib? ( sys-libs/zlib )"
74 RDEPEND="${DEPEND}"
75
76 S="${WORKDIR}/${MY_P}"
77
78 pkg_setup() {
79 enewgroup haproxy
80 enewuser haproxy -1 -1 -1 haproxy
81 }
82
83 src_compile() {
84 local args="TARGET=linux2628 USE_GETADDRINFO=1"
85
86 if use pcre; then
87 args="${args} USE_PCRE=1 USE_PCRE_JIT=1"
88 else
89 args="${args} USE_PCRE= USE_PCRE_JIT="
90 fi
91
92 # if use kernel_linux; then
93 # args="${args} USE_LINUX_SPLICE=1 USE_LINUX_TPROXY=1"
94 # else
95 # args="${args} USE_LINUX_SPLICE= USE_LINUX_TPROXY="
96 # fi
97
98 if use crypt; then
99 args="${args} USE_LIBCRYPT=1"
100 else
101 args="${args} USE_LIBCRYPT="
102 fi
103
104 if use ssl; then
105 args="${args} USE_OPENSSL=1"
106 else
107 args="${args} USE_OPENSSL="
108 fi
109
110 if use zlib; then
111 args="${args} USE_ZLIB=1"
112 else
113 args="${args} USE_ZLIB="
114 fi
115
116 # For now, until the strict-aliasing breakage will be fixed
117 # append-cflags -fno-strict-aliasing
118
119 emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args} || die
120 }
121
122 src_install() {
123 dobin haproxy || die
124
125 newinitd "${FILESDIR}/haproxy.initd-r2" haproxy || die
126
127 # Don't install useless files
128 # rm examples/build.cfg doc/*gpl.txt
129
130 dodoc CHANGELOG ROADMAP TODO doc/{configuration,haproxy-en}.txt
131 doman doc/haproxy.1
132
133 if use examples;
134 then
135 docinto examples
136 dodoc examples/*.cfg || die
137 fi
138
139 if use vim-syntax;
140 then
141 insinto /usr/share/vim/vimfiles/syntax
142 doins examples/haproxy.vim || die
143 fi
144 }
145
146 pkg_postinst() {
147 if [[ ! -f "${ROOT}/etc/haproxy.cfg" ]] ; then
148 ewarn "You need to create /etc/haproxy.cfg before you start the haproxy service."
149 ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created."
150 ewarn "Make use of them with the \"user\" and \"group\" directives."
151
152 if [[ -d "${ROOT}/usr/share/doc/${PF}" ]]; then
153 einfo "Please consult the installed documentation for learning the configuration file's syntax."
154 einfo "The documentation and sample configuration files are installed here:"
155 einfo " ${ROOT}usr/share/doc/${PF}"
156 fi
157 fi
158 }
159
160
161
162 1.1 net-proxy/haproxy/haproxy-1.4.24.ebuild
163
164 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/haproxy-1.4.24.ebuild?rev=1.1&view=markup
165 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/haproxy-1.4.24.ebuild?rev=1.1&content-type=text/plain
166
167 Index: haproxy-1.4.24.ebuild
168 ===================================================================
169 # Copyright 1999-2013 Gentoo Foundation
170 # Distributed under the terms of the GNU General Public License v2
171 # $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/haproxy-1.4.24.ebuild,v 1.1 2013/06/29 16:33:26 idl0r Exp $
172
173 EAPI="5"
174
175 inherit user versionator toolchain-funcs flag-o-matic
176
177 DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
178 HOMEPAGE="http://haproxy.1wt.eu"
179 SRC_URI="http://haproxy.1wt.eu/download/$(get_version_component_range 1-2)/src/${P}.tar.gz"
180
181 LICENSE="GPL-2 LGPL-2.1"
182 SLOT="0"
183 KEYWORDS="~amd64 ~ppc ~x86"
184 IUSE="+crypt examples +pcre vim-syntax"
185
186 DEPEND="pcre? ( dev-libs/libpcre )"
187 RDEPEND="${DEPEND}"
188
189 pkg_setup() {
190 enewgroup haproxy
191 enewuser haproxy -1 -1 -1 haproxy
192 }
193
194 src_compile() {
195 local args="TARGET=linux2628"
196
197 if use pcre; then
198 args="${args} USE_PCRE=1"
199 else
200 args="${args} USE_PCRE="
201 fi
202
203 # if use kernel_linux; then
204 # args="${args} USE_LINUX_SPLICE=1 USE_LINUX_TPROXY=1"
205 # else
206 # args="${args} USE_LINUX_SPLICE= USE_LINUX_TPROXY="
207 # fi
208
209 if use crypt; then
210 args="${args} USE_LIBCRYPT=1"
211 else
212 args="${args} USE_LIBCRYPT="
213 fi
214
215 # For now, until the strict-aliasing breakage will be fixed
216 # append-cflags -fno-strict-aliasing
217
218 emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args} || die
219 }
220
221 src_install() {
222 dobin haproxy || die
223
224 newinitd "${FILESDIR}/haproxy.initd-r2" haproxy || die
225
226 # Don't install useless files
227 rm examples/build.cfg doc/*gpl.txt
228
229 dodoc CHANGELOG ROADMAP TODO doc/{configuration,haproxy-en}.txt
230 doman doc/haproxy.1
231
232 if use examples;
233 then
234 docinto examples
235 dodoc examples/*.cfg || die
236 fi
237
238 if use vim-syntax;
239 then
240 insinto /usr/share/vim/vimfiles/syntax
241 doins examples/haproxy.vim || die
242 fi
243 }
244
245 pkg_postinst() {
246 if [[ ! -f "${ROOT}/etc/haproxy.cfg" ]] ; then
247 ewarn "You need to create /etc/haproxy.cfg before you start the haproxy service."
248 ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created."
249 ewarn "Make use of them with the \"user\" and \"group\" directives."
250
251 if [[ -d "${ROOT}/usr/share/doc/${PF}" ]]; then
252 einfo "Please consult the installed documentation for learning the configuration file's syntax."
253 einfo "The documentation and sample configuration files are installed here:"
254 einfo " ${ROOT}usr/share/doc/${PF}"
255 fi
256 fi
257 }