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: ChangeLog haproxy-1.4.22.ebuild haproxy-1.4.18-r1.ebuild
Date: Sun, 30 Sep 2012 22:08:00
Message-Id: 20120930220741.1CA9D21601@flycatcher.gentoo.org
1 idl0r 12/09/30 22:07:41
2
3 Modified: ChangeLog
4 Added: haproxy-1.4.22.ebuild
5 Removed: haproxy-1.4.18-r1.ebuild
6 Log:
7 Version bump to 1.4.22, bug 436686.
8
9 (Portage version: 2.1.11.9/cvs/Linux i686)
10
11 Revision Changes Path
12 1.67 net-proxy/haproxy/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?rev=1.67&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?rev=1.67&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?r1=1.66&r2=1.67
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v
21 retrieving revision 1.66
22 retrieving revision 1.67
23 diff -u -r1.66 -r1.67
24 --- ChangeLog 8 Jun 2012 18:06:38 -0000 1.66
25 +++ ChangeLog 30 Sep 2012 22:07:40 -0000 1.67
26 @@ -1,6 +1,12 @@
27 # ChangeLog for net-proxy/haproxy
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v 1.66 2012/06/08 18:06:38 ranger Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v 1.67 2012/09/30 22:07:40 idl0r Exp $
31 +
32 +*haproxy-1.4.22 (30 Sep 2012)
33 +
34 + 30 Sep 2012; Christian Ruppert <idl0r@g.o> -haproxy-1.4.18-r1.ebuild,
35 + +haproxy-1.4.22.ebuild, +files/haproxy.initd-r2:
36 + Version bump to 1.4.22, bug 436686.
37
38 08 Jun 2012; Brent Baude <ranger@g.o> haproxy-1.4.21.ebuild:
39 Marking haproxy-1.4.21 ppc for bug 417079
40
41
42
43 1.1 net-proxy/haproxy/haproxy-1.4.22.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/haproxy-1.4.22.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/haproxy-1.4.22.ebuild?rev=1.1&content-type=text/plain
47
48 Index: haproxy-1.4.22.ebuild
49 ===================================================================
50 # Copyright 1999-2012 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.4.22.ebuild,v 1.1 2012/09/30 22:07:40 idl0r Exp $
53
54 EAPI="4"
55
56 inherit eutils versionator toolchain-funcs flag-o-matic
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/${P}.tar.gz"
61
62 LICENSE="GPL-2 LGPL-2.1"
63 SLOT="0"
64 KEYWORDS="~amd64 ~ppc ~x86"
65 IUSE="+crypt examples +pcre vim-syntax"
66
67 DEPEND="pcre? ( dev-libs/libpcre )"
68 RDEPEND="${DEPEND}"
69
70 pkg_setup() {
71 enewgroup haproxy
72 enewuser haproxy -1 -1 -1 haproxy
73 }
74
75 src_compile() {
76 local args="TARGET=linux2628"
77
78 if use pcre; then
79 args="${args} USE_PCRE=1"
80 else
81 args="${args} USE_PCRE="
82 fi
83
84 # if use kernel_linux; then
85 # args="${args} USE_LINUX_SPLICE=1 USE_LINUX_TPROXY=1"
86 # else
87 # args="${args} USE_LINUX_SPLICE= USE_LINUX_TPROXY="
88 # fi
89
90 if use crypt; then
91 args="${args} USE_LIBCRYPT=1"
92 else
93 args="${args} USE_LIBCRYPT="
94 fi
95
96 # For now, until the strict-aliasing breakage will be fixed
97 # append-cflags -fno-strict-aliasing
98
99 emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args} || die
100 }
101
102 src_install() {
103 dobin haproxy || die
104
105 newinitd "${FILESDIR}/haproxy.initd-r2" haproxy || die
106
107 # Don't install useless files
108 rm examples/build.cfg doc/*gpl.txt
109
110 dodoc CHANGELOG ROADMAP TODO doc/{configuration,haproxy-en}.txt
111 doman doc/haproxy.1
112
113 if use examples;
114 then
115 docinto examples
116 dodoc examples/*.cfg || die
117 fi
118
119 if use vim-syntax;
120 then
121 insinto /usr/share/vim/vimfiles/syntax
122 doins examples/haproxy.vim || die
123 fi
124 }
125
126 pkg_postinst() {
127 if [[ ! -f "${ROOT}/etc/haproxy.cfg" ]] ; then
128 ewarn "You need to create /etc/haproxy.cfg before you start the haproxy service."
129 ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created."
130 ewarn "Make use of them with the \"user\" and \"group\" directives."
131
132 if [[ -d "${ROOT}/usr/share/doc/${PF}" ]]; then
133 einfo "Please consult the installed documentation for learning the configuration file's syntax."
134 einfo "The documentation and sample configuration files are installed here:"
135 einfo " ${ROOT}usr/share/doc/${PF}"
136 fi
137 fi
138 }