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.10.ebuild ChangeLog haproxy-1.4.9.ebuild |
Date: | Mon, 29 Nov 2010 17:59:32 |
Message-Id: | 20101129175847.C46E820051@flycatcher.gentoo.org |
1 | idl0r 10/11/29 17:58:47 |
2 | |
3 | Modified: ChangeLog |
4 | Added: haproxy-1.4.10.ebuild |
5 | Removed: haproxy-1.4.9.ebuild |
6 | Log: |
7 | Version bump to 1.4.10. Remove 1.4.9. |
8 | |
9 | (Portage version: 2.2.0_alpha5/cvs/Linux x86_64) |
10 | |
11 | Revision Changes Path |
12 | 1.44 net-proxy/haproxy/ChangeLog |
13 | |
14 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?rev=1.44&view=markup |
15 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?rev=1.44&content-type=text/plain |
16 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?r1=1.43&r2=1.44 |
17 | |
18 | Index: ChangeLog |
19 | =================================================================== |
20 | RCS file: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v |
21 | retrieving revision 1.43 |
22 | retrieving revision 1.44 |
23 | diff -u -r1.43 -r1.44 |
24 | --- ChangeLog 13 Nov 2010 19:14:21 -0000 1.43 |
25 | +++ ChangeLog 29 Nov 2010 17:58:47 -0000 1.44 |
26 | @@ -1,6 +1,12 @@ |
27 | # ChangeLog for net-proxy/haproxy |
28 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 | -# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v 1.43 2010/11/13 19:14:21 idl0r Exp $ |
30 | +# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v 1.44 2010/11/29 17:58:47 idl0r Exp $ |
31 | + |
32 | +*haproxy-1.4.10 (29 Nov 2010) |
33 | + |
34 | + 29 Nov 2010; Christian Ruppert <idl0r@g.o> -haproxy-1.4.9.ebuild, |
35 | + +haproxy-1.4.10.ebuild: |
36 | + Version bump to 1.4.10. Remove 1.4.9. |
37 | |
38 | *haproxy-1.4.9 (13 Nov 2010) |
39 | |
40 | |
41 | |
42 | |
43 | 1.1 net-proxy/haproxy/haproxy-1.4.10.ebuild |
44 | |
45 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/haproxy-1.4.10.ebuild?rev=1.1&view=markup |
46 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/haproxy-1.4.10.ebuild?rev=1.1&content-type=text/plain |
47 | |
48 | Index: haproxy-1.4.10.ebuild |
49 | =================================================================== |
50 | # Copyright 1999-2010 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.10.ebuild,v 1.1 2010/11/29 17:58:47 idl0r Exp $ |
53 | |
54 | inherit eutils versionator |
55 | |
56 | DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments" |
57 | HOMEPAGE="http://haproxy.1wt.eu" |
58 | SRC_URI="http://haproxy.1wt.eu/download/$(get_version_component_range 1-2)/src/${P}.tar.gz" |
59 | |
60 | LICENSE="GPL-2 LGPL-2.1" |
61 | SLOT="0" |
62 | KEYWORDS="~amd64 ~ppc ~x86" |
63 | IUSE="examples pcre vim-syntax" |
64 | |
65 | DEPEND="pcre? ( dev-libs/libpcre )" |
66 | RDEPEND="${DEPEND}" |
67 | |
68 | pkg_setup() { |
69 | enewgroup haproxy |
70 | enewuser haproxy -1 -1 -1 haproxy |
71 | } |
72 | |
73 | src_compile() { |
74 | local args="TARGET=linux26" |
75 | |
76 | use pcre && args="${args} USE_PCRE=1" |
77 | |
78 | use kernel_linux && args="${args} USE_LINUX_SPLICE=1" |
79 | use kernel_linux && args="${args} USE_LINUX_TPROXY=1" |
80 | |
81 | emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${args} || die |
82 | } |
83 | |
84 | src_install() { |
85 | dobin haproxy || die |
86 | newinitd "${FILESDIR}/haproxy.initd" haproxy || die |
87 | |
88 | # Don't install useless files |
89 | rm examples/build.cfg doc/*gpl.txt |
90 | |
91 | dodoc CHANGELOG ROADMAP TODO doc/{configuration,haproxy-en}.txt |
92 | doman doc/haproxy.1 |
93 | |
94 | if use examples; |
95 | then |
96 | docinto examples |
97 | dodoc examples/*.cfg || die |
98 | fi |
99 | |
100 | if use vim-syntax; |
101 | then |
102 | insinto /usr/share/vim/vimfiles/syntax |
103 | doins examples/haproxy.vim || die |
104 | fi |
105 | } |
106 | |
107 | pkg_postinst() { |
108 | if [[ ! -f "${ROOT}/etc/haproxy.cfg" ]] ; then |
109 | ewarn "You need to create /etc/haproxy.cfg before you start the haproxy service." |
110 | ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created." |
111 | ewarn "Make use of them with the \"user\" and \"group\" directives." |
112 | |
113 | if [[ -d "${ROOT}/usr/share/doc/${PF}" ]]; then |
114 | einfo "Please consult the installed documentation for learning the configuration file's syntax." |
115 | einfo "The documentation and sample configuration files are installed here:" |
116 | einfo " ${ROOT}usr/share/doc/${PF}" |
117 | fi |
118 | fi |
119 | } |