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.4.17.ebuild ChangeLog haproxy-1.4.16.ebuild
Date: Mon, 05 Sep 2011 20:48:01
Message-Id: 20110905204748.4ECC72004C@flycatcher.gentoo.org
1 idl0r 11/09/05 20:47:48
2
3 Modified: ChangeLog
4 Added: haproxy-1.4.17.ebuild
5 Removed: haproxy-1.4.16.ebuild
6 Log:
7 Version bump to 1.4.17.
8
9 (Portage version: 2.2.0_alpha53/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.53 net-proxy/haproxy/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?rev=1.53&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?rev=1.53&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?r1=1.52&r2=1.53
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v
21 retrieving revision 1.52
22 retrieving revision 1.53
23 diff -u -r1.52 -r1.53
24 --- ChangeLog 4 Sep 2011 16:12:21 -0000 1.52
25 +++ ChangeLog 5 Sep 2011 20:47:48 -0000 1.53
26 @@ -1,6 +1,12 @@
27 # ChangeLog for net-proxy/haproxy
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v 1.52 2011/09/04 16:12:21 idl0r Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v 1.53 2011/09/05 20:47:48 idl0r Exp $
31 +
32 +*haproxy-1.4.17 (05 Sep 2011)
33 +
34 + 05 Sep 2011; Christian Ruppert <idl0r@g.o> -haproxy-1.4.16.ebuild,
35 + +haproxy-1.4.17.ebuild:
36 + Version bump to 1.4.17.
37
38 *haproxy-1.4.16 (04 Sep 2011)
39 *haproxy-1.3.26 (04 Sep 2011)
40
41
42
43 1.1 net-proxy/haproxy/haproxy-1.4.17.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/haproxy-1.4.17.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/haproxy-1.4.17.ebuild?rev=1.1&content-type=text/plain
47
48 Index: haproxy-1.4.17.ebuild
49 ===================================================================
50 # Copyright 1999-2011 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.17.ebuild,v 1.1 2011/09/05 20:47:48 idl0r Exp $
53
54 EAPI="3"
55
56 inherit eutils versionator toolchain-funcs
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="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=linux26"
77
78 use pcre && args="${args} USE_PCRE=1"
79
80 use kernel_linux && args="${args} USE_LINUX_SPLICE=1"
81 use kernel_linux && args="${args} USE_LINUX_TPROXY=1"
82
83 emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args} || die
84 }
85
86 src_install() {
87 dobin haproxy || die
88 newinitd "${FILESDIR}/haproxy.initd" haproxy || die
89
90 # Don't install useless files
91 rm examples/build.cfg doc/*gpl.txt
92
93 dodoc CHANGELOG ROADMAP TODO doc/{configuration,haproxy-en}.txt
94 doman doc/haproxy.1
95
96 if use examples;
97 then
98 docinto examples
99 dodoc examples/*.cfg || die
100 fi
101
102 if use vim-syntax;
103 then
104 insinto /usr/share/vim/vimfiles/syntax
105 doins examples/haproxy.vim || die
106 fi
107 }
108
109 pkg_postinst() {
110 if [[ ! -f "${ROOT}/etc/haproxy.cfg" ]] ; then
111 ewarn "You need to create /etc/haproxy.cfg before you start the haproxy service."
112 ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created."
113 ewarn "Make use of them with the \"user\" and \"group\" directives."
114
115 if [[ -d "${ROOT}/usr/share/doc/${PF}" ]]; then
116 einfo "Please consult the installed documentation for learning the configuration file's syntax."
117 einfo "The documentation and sample configuration files are installed here:"
118 einfo " ${ROOT}usr/share/doc/${PF}"
119 fi
120 fi
121 }