1 |
idl0r 11/09/28 15:23:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: haproxy-1.4.18-r1.ebuild haproxy-1.3.26-r1.ebuild |
5 |
Log: |
6 |
Improve haproxy init script, bug 384753. Also fix use of deprecated opts variable. |
7 |
|
8 |
(Portage version: 2.2.0_alpha59/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.56 net-proxy/haproxy/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?rev=1.56&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?rev=1.56&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?r1=1.55&r2=1.56 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v |
20 |
retrieving revision 1.55 |
21 |
retrieving revision 1.56 |
22 |
diff -u -r1.55 -r1.56 |
23 |
--- ChangeLog 21 Sep 2011 13:44:51 -0000 1.55 |
24 |
+++ ChangeLog 28 Sep 2011 15:23:02 -0000 1.56 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for net-proxy/haproxy |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v 1.55 2011/09/21 13:44:51 idl0r Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v 1.56 2011/09/28 15:23:02 idl0r Exp $ |
30 |
+ |
31 |
+*haproxy-1.4.18-r1 (28 Sep 2011) |
32 |
+*haproxy-1.3.26-r1 (28 Sep 2011) |
33 |
+ |
34 |
+ 28 Sep 2011; Christian Ruppert <idl0r@g.o> +haproxy-1.3.26-r1.ebuild, |
35 |
+ +haproxy-1.4.18-r1.ebuild, +files/haproxy.initd-r1: |
36 |
+ Improve haproxy init script, bug 384753. Also fix use of deprecated opts |
37 |
+ variable. |
38 |
|
39 |
21 Sep 2011; Christian Ruppert <idl0r@g.o> haproxy-1.3.25.ebuild, |
40 |
haproxy-1.3.26.ebuild, -haproxy-1.4.8.ebuild, haproxy-1.4.15.ebuild, |
41 |
|
42 |
|
43 |
|
44 |
1.1 net-proxy/haproxy/haproxy-1.4.18-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/haproxy-1.4.18-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/haproxy-1.4.18-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: haproxy-1.4.18-r1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2011 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/haproxy-1.4.18-r1.ebuild,v 1.1 2011/09/28 15:23:02 idl0r Exp $ |
54 |
|
55 |
EAPI="3" |
56 |
|
57 |
inherit eutils versionator toolchain-funcs flag-o-matic |
58 |
|
59 |
DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments" |
60 |
HOMEPAGE="http://haproxy.1wt.eu" |
61 |
SRC_URI="http://haproxy.1wt.eu/download/$(get_version_component_range 1-2)/src/${P}.tar.gz" |
62 |
|
63 |
LICENSE="GPL-2 LGPL-2.1" |
64 |
SLOT="0" |
65 |
KEYWORDS="~amd64 ~ppc ~x86" |
66 |
IUSE="examples pcre vim-syntax" |
67 |
|
68 |
DEPEND="pcre? ( dev-libs/libpcre )" |
69 |
RDEPEND="${DEPEND}" |
70 |
|
71 |
pkg_setup() { |
72 |
enewgroup haproxy |
73 |
enewuser haproxy -1 -1 -1 haproxy |
74 |
} |
75 |
|
76 |
src_compile() { |
77 |
local args="TARGET=linux26" |
78 |
|
79 |
use pcre && args="${args} USE_PCRE=1" |
80 |
|
81 |
use kernel_linux && args="${args} USE_LINUX_SPLICE=1" |
82 |
use kernel_linux && args="${args} USE_LINUX_TPROXY=1" |
83 |
|
84 |
# For now, until the strict-aliasing breakage will be fixed |
85 |
append-cflags -fno-strict-aliasing |
86 |
|
87 |
emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args} || die |
88 |
} |
89 |
|
90 |
src_install() { |
91 |
dobin haproxy || die |
92 |
newinitd "${FILESDIR}/haproxy.initd-r1" haproxy || die |
93 |
|
94 |
# Don't install useless files |
95 |
rm examples/build.cfg doc/*gpl.txt |
96 |
|
97 |
dodoc CHANGELOG ROADMAP TODO doc/{configuration,haproxy-en}.txt |
98 |
doman doc/haproxy.1 |
99 |
|
100 |
if use examples; |
101 |
then |
102 |
docinto examples |
103 |
dodoc examples/*.cfg || die |
104 |
fi |
105 |
|
106 |
if use vim-syntax; |
107 |
then |
108 |
insinto /usr/share/vim/vimfiles/syntax |
109 |
doins examples/haproxy.vim || die |
110 |
fi |
111 |
} |
112 |
|
113 |
pkg_postinst() { |
114 |
if [[ ! -f "${ROOT}/etc/haproxy.cfg" ]] ; then |
115 |
ewarn "You need to create /etc/haproxy.cfg before you start the haproxy service." |
116 |
ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created." |
117 |
ewarn "Make use of them with the \"user\" and \"group\" directives." |
118 |
|
119 |
if [[ -d "${ROOT}/usr/share/doc/${PF}" ]]; then |
120 |
einfo "Please consult the installed documentation for learning the configuration file's syntax." |
121 |
einfo "The documentation and sample configuration files are installed here:" |
122 |
einfo " ${ROOT}usr/share/doc/${PF}" |
123 |
fi |
124 |
fi |
125 |
} |
126 |
|
127 |
|
128 |
|
129 |
1.1 net-proxy/haproxy/haproxy-1.3.26-r1.ebuild |
130 |
|
131 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/haproxy-1.3.26-r1.ebuild?rev=1.1&view=markup |
132 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/haproxy-1.3.26-r1.ebuild?rev=1.1&content-type=text/plain |
133 |
|
134 |
Index: haproxy-1.3.26-r1.ebuild |
135 |
=================================================================== |
136 |
# Copyright 1999-2011 Gentoo Foundation |
137 |
# Distributed under the terms of the GNU General Public License v2 |
138 |
# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/haproxy-1.3.26-r1.ebuild,v 1.1 2011/09/28 15:23:02 idl0r Exp $ |
139 |
|
140 |
inherit eutils versionator toolchain-funcs flag-o-matic |
141 |
|
142 |
DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments" |
143 |
HOMEPAGE="http://haproxy.1wt.eu" |
144 |
SRC_URI="http://haproxy.1wt.eu/download/$(get_version_component_range 1-2)/src/${P}.tar.gz" |
145 |
|
146 |
LICENSE="GPL-2 LGPL-2.1" |
147 |
SLOT="0" |
148 |
KEYWORDS="~amd64 ~ppc ~x86" |
149 |
IUSE="examples pcre vim-syntax" |
150 |
|
151 |
DEPEND="pcre? ( dev-libs/libpcre )" |
152 |
RDEPEND="${DEPEND}" |
153 |
|
154 |
pkg_setup() { |
155 |
enewgroup haproxy |
156 |
enewuser haproxy -1 -1 -1 haproxy |
157 |
} |
158 |
|
159 |
src_compile() { |
160 |
local args="TARGET=linux26" |
161 |
|
162 |
use pcre && args="${args} USE_PCRE=1" |
163 |
|
164 |
use kernel_linux && args="${args} USE_LINUX_SPLICE=1" |
165 |
use kernel_linux && args="${args} USE_LINUX_TPROXY=1" |
166 |
|
167 |
# For now, until the strict-aliasing breakage will be fixed |
168 |
append-cflags -fno-strict-aliasing |
169 |
|
170 |
emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args} || die |
171 |
} |
172 |
|
173 |
src_install() { |
174 |
dobin haproxy || die |
175 |
newinitd "${FILESDIR}/haproxy.initd-r1" haproxy || die |
176 |
|
177 |
# Don't install useless files |
178 |
rm examples/build.cfg doc/*gpl.txt |
179 |
|
180 |
dodoc CHANGELOG ROADMAP TODO doc/{configuration,haproxy-en}.txt |
181 |
doman doc/haproxy.1 |
182 |
|
183 |
if use examples; |
184 |
then |
185 |
docinto examples |
186 |
dodoc examples/*.cfg || die |
187 |
fi |
188 |
|
189 |
if use vim-syntax; |
190 |
then |
191 |
insinto /usr/share/vim/vimfiles/syntax |
192 |
doins examples/haproxy.vim || die |
193 |
fi |
194 |
} |
195 |
|
196 |
pkg_postinst() { |
197 |
if [[ ! -f "${ROOT}/etc/haproxy.cfg" ]] ; then |
198 |
ewarn "You need to create /etc/haproxy.cfg before you start the haproxy service." |
199 |
ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created." |
200 |
ewarn "Make use of them with the \"user\" and \"group\" directives." |
201 |
|
202 |
if [[ -d "${ROOT}/usr/share/doc/${PF}" ]]; then |
203 |
einfo "Please consult the installed documentation for learning the configuration file's syntax." |
204 |
einfo "The documentation and sample configuration files are installed here:" |
205 |
einfo " ${ROOT}usr/share/doc/${PF}" |
206 |
fi |
207 |
fi |
208 |
} |