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: haproxy-1.5.13.ebuild ChangeLog haproxy-1.5.11.ebuild
Date: Mon, 29 Jun 2015 19:34:13
Message-Id: 20150629193350.9D26073F@oystercatcher.gentoo.org
1 idl0r 15/06/29 19:33:50
2
3 Modified: ChangeLog
4 Added: haproxy-1.5.13.ebuild
5 Removed: haproxy-1.5.11.ebuild
6 Log:
7 Version bump, bug 553498
8
9 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key B427ABC8)
10
11 Revision Changes Path
12 1.116 net-proxy/haproxy/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?rev=1.116&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?rev=1.116&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?r1=1.115&r2=1.116
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v
21 retrieving revision 1.115
22 retrieving revision 1.116
23 diff -u -r1.115 -r1.116
24 --- ChangeLog 15 May 2015 09:34:25 -0000 1.115
25 +++ ChangeLog 29 Jun 2015 19:33:50 -0000 1.116
26 @@ -1,6 +1,12 @@
27 # ChangeLog for net-proxy/haproxy
28 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v 1.115 2015/05/15 09:34:25 idl0r Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v 1.116 2015/06/29 19:33:50 idl0r Exp $
31 +
32 +*haproxy-1.5.13 (29 Jun 2015)
33 +
34 + 29 Jun 2015; Christian Ruppert <idl0r@g.o> -haproxy-1.5.11.ebuild,
35 + +haproxy-1.5.13.ebuild:
36 + Version bump, bug 553498
37
38 *haproxy-1.5.12 (15 May 2015)
39 *haproxy-1.4.26 (15 May 2015)
40
41
42
43 1.1 net-proxy/haproxy/haproxy-1.5.13.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/haproxy-1.5.13.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/haproxy-1.5.13.ebuild?rev=1.1&content-type=text/plain
47
48 Index: haproxy-1.5.13.ebuild
49 ===================================================================
50 # Copyright 1999-2015 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.13.ebuild,v 1.1 2015/06/29 19:33:50 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 pcre-jit ssl tools vim-syntax +zlib"
68
69 DEPEND="pcre? ( dev-libs/libpcre
70 pcre-jit? ( dev-libs/libpcre[jit] )
71 )
72 ssl? ( dev-libs/openssl:0[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_prepare() {
84 sed -e 's:@SBINDIR@:'/usr/bin':' contrib/systemd/haproxy.service.in \
85 > contrib/systemd/haproxy.service || die
86
87 sed -ie 's:/usr/sbin/haproxy:/usr/bin/haproxy:' src/haproxy-systemd-wrapper.c || die
88 }
89
90 src_compile() {
91 local args="TARGET=linux2628 USE_GETADDRINFO=1"
92
93 if use pcre ; then
94 args="${args} USE_PCRE=1"
95 if use pcre-jit; then
96 args="${args} USE_PCRE_JIT=1"
97 else
98 args="${args} USE_PCRE_JIT="
99 fi
100 else
101 args="${args} USE_PCRE= USE_PCRE_JIT="
102 fi
103
104 # if use kernel_linux; then
105 # args="${args} USE_LINUX_SPLICE=1 USE_LINUX_TPROXY=1"
106 # else
107 # args="${args} USE_LINUX_SPLICE= USE_LINUX_TPROXY="
108 # fi
109
110 if use crypt ; then
111 args="${args} USE_LIBCRYPT=1"
112 else
113 args="${args} USE_LIBCRYPT="
114 fi
115
116 if use ssl ; then
117 args="${args} USE_OPENSSL=1"
118 else
119 args="${args} USE_OPENSSL="
120 fi
121
122 if use zlib ; then
123 args="${args} USE_ZLIB=1"
124 else
125 args="${args} USE_ZLIB="
126 fi
127
128 # For now, until the strict-aliasing breakage will be fixed
129 append-cflags -fno-strict-aliasing
130
131 emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args}
132
133 if use tools ; then
134 for contrib in halog iprange ; do
135 emake -C contrib/${contrib} \
136 CFLAGS="${CFLAGS}" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args}
137 done
138 fi
139 }
140
141 src_install() {
142 dobin haproxy
143
144 newinitd "${FILESDIR}/haproxy.initd-r2" haproxy
145
146 # Don't install useless files
147 # rm examples/build.cfg doc/*gpl.txt
148
149 dodoc CHANGELOG ROADMAP doc/{configuration,haproxy-en}.txt
150 doman doc/haproxy.1
151
152 dobin haproxy-systemd-wrapper
153 systemd_dounit contrib/systemd/haproxy.service
154
155 if use tools ; then
156 for contrib in halog iprange ; do
157 dobin contrib/${contrib}/${contrib}
158 done
159 fi
160
161 if use examples ; then
162 docinto examples
163 dodoc examples/*.cfg
164 fi
165
166 if use vim-syntax ; then
167 insinto /usr/share/vim/vimfiles/syntax
168 doins examples/haproxy.vim
169 fi
170 }
171
172 pkg_postinst() {
173 if [[ ! -f "${ROOT}/etc/haproxy.cfg" ]] ; then
174 ewarn "You need to create /etc/haproxy.cfg before you start the haproxy service."
175 ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created."
176 ewarn "Make use of them with the \"user\" and \"group\" directives."
177
178 if [[ -d "${ROOT}/usr/share/doc/${PF}" ]]; then
179 einfo "Please consult the installed documentation for learning the configuration file's syntax."
180 einfo "The documentation and sample configuration files are installed here:"
181 einfo " ${ROOT}usr/share/doc/${PF}"
182 fi
183 fi
184 }