Gentoo Archives: gentoo-commits

From: "Alin Nastac (mrness)" <mrness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-proxy/haproxy: ChangeLog haproxy-1.3.15.8.ebuild haproxy-1.3.14.12.ebuild
Date: Sun, 22 Mar 2009 13:17:32
Message-Id: E1LlNYQ-0006ev-0y@stork.gentoo.org
1 mrness 09/03/22 13:17:30
2
3 Modified: ChangeLog
4 Added: haproxy-1.3.15.8.ebuild haproxy-1.3.14.12.ebuild
5 Log:
6 Version bumps. Install haproxy user and group (#262449).
7 (Portage version: 2.1.6.7/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.22 net-proxy/haproxy/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/haproxy/ChangeLog?rev=1.22&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/haproxy/ChangeLog?rev=1.22&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/haproxy/ChangeLog?r1=1.21&r2=1.22
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v
19 retrieving revision 1.21
20 retrieving revision 1.22
21 diff -u -r1.21 -r1.22
22 --- ChangeLog 20 Mar 2009 15:40:40 -0000 1.21
23 +++ ChangeLog 22 Mar 2009 13:17:29 -0000 1.22
24 @@ -1,6 +1,13 @@
25 # ChangeLog for net-proxy/haproxy
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v 1.21 2009/03/20 15:40:40 josejx Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v 1.22 2009/03/22 13:17:29 mrness Exp $
29 +
30 +*haproxy-1.3.15.8 (22 Mar 2009)
31 +*haproxy-1.3.14.12 (22 Mar 2009)
32 +
33 + 22 Mar 2009; Alin Năstac <mrness@g.o> +haproxy-1.3.14.12.ebuild,
34 + +haproxy-1.3.15.8.ebuild:
35 + Version bumps. Install haproxy user and group (#262449).
36
37 20 Mar 2009; Joseph Jezak <josejx@g.o> haproxy-1.3.14.9.ebuild,
38 haproxy-1.3.15.5.ebuild:
39
40
41
42 1.1 net-proxy/haproxy/haproxy-1.3.15.8.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/haproxy/haproxy-1.3.15.8.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/haproxy/haproxy-1.3.15.8.ebuild?rev=1.1&content-type=text/plain
46
47 Index: haproxy-1.3.15.8.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/haproxy-1.3.15.8.ebuild,v 1.1 2009/03/22 13:17:29 mrness Exp $
52
53 inherit versionator eutils
54
55 DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
56 HOMEPAGE="http://haproxy.1wt.eu"
57 SRC_URI="http://haproxy.1wt.eu/download/$(get_version_component_range 1-2)/src/${P}.tar.gz"
58
59 LICENSE="GPL-2 LGPL-2.1"
60 SLOT="0"
61 KEYWORDS="~amd64 ~ppc ~x86"
62 IUSE="pcre"
63
64 DEPEND="pcre? ( dev-libs/libpcre )"
65 RDEPEND="${DEPEND}"
66
67 pkg_setup() {
68 enewgroup haproxy
69 enewuser haproxy -1 -1 -1 haproxy
70 }
71
72 src_compile() {
73 local ARGS="TARGET=linux26"
74 use pcre && ARGS="${ARGS} USE_PCRE=1"
75 emake ADDINC="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${ARGS}
76 }
77
78 src_install() {
79 exeinto /usr/bin
80 doexe haproxy
81 newinitd "${FILESDIR}/haproxy.initd" haproxy
82
83 # Don't install useless files
84 rm examples/build.cfg doc/*gpl.txt
85
86 dodoc CHANGELOG ROADMAP TODO doc/*.txt
87 docinto examples
88 dodoc examples/*.cfg
89 }
90
91 pkg_postinst() {
92 if [[ ! -f "${ROOT}/etc/haproxy.cfg" ]] ; then
93 ewarn "You need to create /etc/haproxy.cfg before you start the haproxy service."
94 ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created."
95 ewarn "Make use of them with the \"user\" and \"group\" directives."
96
97 if [[ -d "${ROOT}/usr/share/doc/${PF}" ]]; then
98 einfo "Please consult the installed documentation for learning the configuration file's syntax."
99 einfo "The documentation and sample configuration files are installed here:"
100 einfo " ${ROOT}usr/share/doc/${PF}"
101 fi
102 fi
103 }
104
105
106
107 1.1 net-proxy/haproxy/haproxy-1.3.14.12.ebuild
108
109 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/haproxy/haproxy-1.3.14.12.ebuild?rev=1.1&view=markup
110 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/haproxy/haproxy-1.3.14.12.ebuild?rev=1.1&content-type=text/plain
111
112 Index: haproxy-1.3.14.12.ebuild
113 ===================================================================
114 # Copyright 1999-2009 Gentoo Foundation
115 # Distributed under the terms of the GNU General Public License v2
116 # $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/haproxy-1.3.14.12.ebuild,v 1.1 2009/03/22 13:17:29 mrness Exp $
117
118 inherit linux-info versionator eutils
119
120 DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
121 HOMEPAGE="http://haproxy.1wt.eu"
122 SRC_URI="http://haproxy.1wt.eu/download/$(get_version_component_range 1-2)/src/${P}.tar.gz"
123
124 LICENSE="GPL-2 LGPL-2.1"
125 SLOT="0"
126 KEYWORDS="~amd64 ~ppc ~x86"
127 IUSE="pcre"
128
129 DEPEND="pcre? ( dev-libs/libpcre )"
130 RDEPEND="${DEPEND}"
131
132 pkg_setup() {
133 enewgroup haproxy
134 enewuser haproxy -1 -1 -1 haproxy
135 }
136
137 src_compile() {
138 local ARGS="TARGET=linux${KV_MAJOR}${KV_MINOR}"
139 use pcre && ARGS="${ARGS} REGEX=pcre"
140 emake ADDINC="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${ARGS}
141 }
142
143 src_install() {
144 exeinto /usr/bin
145 doexe haproxy
146 newinitd "${FILESDIR}/haproxy.initd" haproxy
147
148 # Don't install useless files
149 rm examples/build.cfg doc/*gpl.txt
150
151 dodoc CHANGELOG ROADMAP TODO doc/*.txt
152 docinto examples
153 dodoc examples/*.cfg
154 }
155
156 pkg_postinst() {
157 if [[ ! -f "${ROOT}/etc/haproxy.cfg" ]] ; then
158 ewarn "You need to create /etc/haproxy.cfg before you start the haproxy service."
159 ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created."
160 ewarn "Make use of them with the \"user\" and \"group\" directives."
161
162 if [[ -d "${ROOT}/usr/share/doc/${PF}" ]]; then
163 einfo "Please consult the installed documentation for learning the configuration file's syntax."
164 einfo "The documentation and sample configuration files are installed here:"
165 einfo " ${ROOT}usr/share/doc/${PF}"
166 fi
167 fi
168 }