1 |
idl0r 14/09/03 17:45:55 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: haproxy-1.5.4.ebuild |
5 |
Removed: haproxy-1.5.3.ebuild |
6 |
Log: |
7 |
Version bump, bug 522018 |
8 |
|
9 |
(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key B427ABC8) |
10 |
|
11 |
Revision Changes Path |
12 |
1.102 net-proxy/haproxy/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?rev=1.102&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?rev=1.102&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?r1=1.101&r2=1.102 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v |
21 |
retrieving revision 1.101 |
22 |
retrieving revision 1.102 |
23 |
diff -u -r1.101 -r1.102 |
24 |
--- ChangeLog 30 Aug 2014 12:41:58 -0000 1.101 |
25 |
+++ ChangeLog 3 Sep 2014 17:45:54 -0000 1.102 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for net-proxy/haproxy |
28 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v 1.101 2014/08/30 12:41:58 nimiux Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v 1.102 2014/09/03 17:45:54 idl0r Exp $ |
31 |
+ |
32 |
+*haproxy-1.5.4 (03 Sep 2014) |
33 |
+ |
34 |
+ 03 Sep 2014; Christian Ruppert <idl0r@g.o> -haproxy-1.5.3.ebuild, |
35 |
+ +haproxy-1.5.4.ebuild: |
36 |
+ Version bump, bug 522018 |
37 |
|
38 |
30 Aug 2014; Chema Alonso <nimiux@g.o> haproxy-1.4.25.ebuild: |
39 |
Stable for amd64 wrt bug #514930 |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-proxy/haproxy/haproxy-1.5.4.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/haproxy-1.5.4.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/haproxy-1.5.4.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: haproxy-1.5.4.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/net-proxy/haproxy/haproxy-1.5.4.ebuild,v 1.1 2014/09/03 17:45:54 idl0r Exp $ |
53 |
|
54 |
EAPI="5" |
55 |
|
56 |
inherit user versionator toolchain-funcs flag-o-matic systemd |
57 |
|
58 |
MY_P="${PN}-${PV/_beta/-dev}" |
59 |
|
60 |
DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments" |
61 |
HOMEPAGE="http://haproxy.1wt.eu" |
62 |
SRC_URI="http://haproxy.1wt.eu/download/$(get_version_component_range 1-2)/src/${MY_P}.tar.gz" |
63 |
|
64 |
LICENSE="GPL-2 LGPL-2.1" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~ppc ~x86" |
67 |
IUSE="+crypt examples +pcre ssl tools vim-syntax +zlib" |
68 |
|
69 |
DEPEND="pcre? ( dev-libs/libpcre ) |
70 |
ssl? ( dev-libs/openssl[zlib?] ) |
71 |
zlib? ( sys-libs/zlib )" |
72 |
RDEPEND="${DEPEND}" |
73 |
|
74 |
S="${WORKDIR}/${MY_P}" |
75 |
|
76 |
pkg_setup() { |
77 |
enewgroup haproxy |
78 |
enewuser haproxy -1 -1 -1 haproxy |
79 |
} |
80 |
|
81 |
src_prepare() { |
82 |
sed -e 's:@SBINDIR@:'/usr/bin':' contrib/systemd/haproxy.service.in \ |
83 |
> contrib/systemd/haproxy.service || die |
84 |
|
85 |
sed -ie 's:/usr/sbin/haproxy:/usr/bin/haproxy:' src/haproxy-systemd-wrapper.c || die |
86 |
} |
87 |
|
88 |
src_compile() { |
89 |
local args="TARGET=linux2628 USE_GETADDRINFO=1" |
90 |
|
91 |
if use pcre ; then |
92 |
args="${args} USE_PCRE=1 USE_PCRE_JIT=1" |
93 |
else |
94 |
args="${args} USE_PCRE= USE_PCRE_JIT=" |
95 |
fi |
96 |
|
97 |
# if use kernel_linux; then |
98 |
# args="${args} USE_LINUX_SPLICE=1 USE_LINUX_TPROXY=1" |
99 |
# else |
100 |
# args="${args} USE_LINUX_SPLICE= USE_LINUX_TPROXY=" |
101 |
# fi |
102 |
|
103 |
if use crypt ; then |
104 |
args="${args} USE_LIBCRYPT=1" |
105 |
else |
106 |
args="${args} USE_LIBCRYPT=" |
107 |
fi |
108 |
|
109 |
if use ssl ; then |
110 |
args="${args} USE_OPENSSL=1" |
111 |
else |
112 |
args="${args} USE_OPENSSL=" |
113 |
fi |
114 |
|
115 |
if use zlib ; then |
116 |
args="${args} USE_ZLIB=1" |
117 |
else |
118 |
args="${args} USE_ZLIB=" |
119 |
fi |
120 |
|
121 |
# For now, until the strict-aliasing breakage will be fixed |
122 |
append-cflags -fno-strict-aliasing |
123 |
|
124 |
emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args} |
125 |
|
126 |
if use tools ; then |
127 |
for contrib in halog iprange ; do |
128 |
emake -C contrib/${contrib} \ |
129 |
CFLAGS="${CFLAGS}" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args} |
130 |
done |
131 |
fi |
132 |
} |
133 |
|
134 |
src_install() { |
135 |
dobin haproxy |
136 |
|
137 |
newinitd "${FILESDIR}/haproxy.initd-r2" haproxy |
138 |
|
139 |
# Don't install useless files |
140 |
# rm examples/build.cfg doc/*gpl.txt |
141 |
|
142 |
dodoc CHANGELOG ROADMAP doc/{configuration,haproxy-en}.txt |
143 |
doman doc/haproxy.1 |
144 |
|
145 |
dobin haproxy-systemd-wrapper |
146 |
systemd_dounit contrib/systemd/haproxy.service |
147 |
|
148 |
if use tools ; then |
149 |
for contrib in halog iprange ; do |
150 |
dobin contrib/${contrib}/${contrib} |
151 |
done |
152 |
fi |
153 |
|
154 |
if use examples ; then |
155 |
docinto examples |
156 |
dodoc examples/*.cfg |
157 |
fi |
158 |
|
159 |
if use vim-syntax ; then |
160 |
insinto /usr/share/vim/vimfiles/syntax |
161 |
doins examples/haproxy.vim |
162 |
fi |
163 |
} |
164 |
|
165 |
pkg_postinst() { |
166 |
if [[ ! -f "${ROOT}/etc/haproxy.cfg" ]] ; then |
167 |
ewarn "You need to create /etc/haproxy.cfg before you start the haproxy service." |
168 |
ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created." |
169 |
ewarn "Make use of them with the \"user\" and \"group\" directives." |
170 |
|
171 |
if [[ -d "${ROOT}/usr/share/doc/${PF}" ]]; then |
172 |
einfo "Please consult the installed documentation for learning the configuration file's syntax." |
173 |
einfo "The documentation and sample configuration files are installed here:" |
174 |
einfo " ${ROOT}usr/share/doc/${PF}" |
175 |
fi |
176 |
fi |
177 |
} |