Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 262449
Collapse All | Expand All

(-)haproxy-1.3.15.7.ebuild (-2 / +14 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/haproxy-1.3.15.7.ebuild,v 1.1 2009/01/10 11:36:33 mrness Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/haproxy-1.3.15.7.ebuild,v 1.1 2009/01/10 11:36:33 mrness Exp $
4
4
5
inherit versionator
5
inherit versionator eutils
6
6
7
DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
7
DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
8
HOMEPAGE="http://haproxy.1wt.eu"
8
HOMEPAGE="http://haproxy.1wt.eu"
Lines 22-27 Link Here
22
	emake ADDINC="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${ARGS}
22
	emake ADDINC="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${ARGS}
23
}
23
}
24
24
25
pkg_setup() {
26
	ebegin "Creating haproxy user and group"
27
	enewgroup haproxy
28
	enewuser haproxy -1 -1 -1 haproxy
29
	eend ${?}
30
}
31
25
src_install() {
32
src_install() {
26
	exeinto /usr/bin
33
	exeinto /usr/bin
27
	doexe haproxy
34
	doexe haproxy
Lines 37-43 Link Here
37
44
38
pkg_postinst() {
45
pkg_postinst() {
39
	if [[ ! -f "${ROOT}/etc/haproxy.cfg" ]] ; then
46
	if [[ ! -f "${ROOT}/etc/haproxy.cfg" ]] ; then
40
		einfo "You need to create /etc/haproxy.cfg before you start haproxy service."
47
		einfo ""	
48
		einfo "You need to create /etc/haproxy.cfg before you start the haproxy service."
49
		einfo "It's best practice to not run haproxy as root, user and group haproxy was therefore created."
50
		einfo "Make use of them with the \"user\" and \"group\" directives."
51
		einfo ""		
52
41
		if [[ -d "${ROOT}/usr/share/doc/${P}" ]]; then
53
		if [[ -d "${ROOT}/usr/share/doc/${P}" ]]; then
42
			einfo "Please consult the installed documentation for learning the configuration file's syntax."
54
			einfo "Please consult the installed documentation for learning the configuration file's syntax."
43
			einfo "The documentation and sample configuration files are installed here:"
55
			einfo "The documentation and sample configuration files are installed here:"

Return to bug 262449