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