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