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