1 |
idl0r 12/12/26 00:57:51 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: haproxy-1.5_beta16.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
|
8 |
(Portage version: 2.1.11.31/cvs/Linux i686, signed Manifest commit with key B427ABC8) |
9 |
|
10 |
Revision Changes Path |
11 |
1.72 net-proxy/haproxy/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?rev=1.72&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?rev=1.72&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/ChangeLog?r1=1.71&r2=1.72 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v |
20 |
retrieving revision 1.71 |
21 |
retrieving revision 1.72 |
22 |
diff -u -r1.71 -r1.72 |
23 |
--- ChangeLog 22 Dec 2012 17:06:21 -0000 1.71 |
24 |
+++ ChangeLog 26 Dec 2012 00:57:51 -0000 1.72 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for net-proxy/haproxy |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v 1.71 2012/12/22 17:06:21 idl0r Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v 1.72 2012/12/26 00:57:51 idl0r Exp $ |
30 |
+ |
31 |
+*haproxy-1.5_beta16 (26 Dec 2012) |
32 |
+ |
33 |
+ 26 Dec 2012; Christian Ruppert <idl0r@g.o> +haproxy-1.5_beta16.ebuild, |
34 |
+ +files/haproxy-1.5_beta16-stats.patch: |
35 |
+ Version bump |
36 |
|
37 |
*haproxy-1.5_beta15 (22 Dec 2012) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 net-proxy/haproxy/haproxy-1.5_beta16.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/haproxy-1.5_beta16.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/haproxy/haproxy-1.5_beta16.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: haproxy-1.5_beta16.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 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.5_beta16.ebuild,v 1.1 2012/12/26 00:57:51 idl0r Exp $ |
52 |
|
53 |
EAPI="4" |
54 |
|
55 |
inherit eutils versionator toolchain-funcs flag-o-matic |
56 |
|
57 |
MY_P="${PN}-${PV/_beta/-dev}" |
58 |
|
59 |
DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments" |
60 |
HOMEPAGE="http://haproxy.1wt.eu" |
61 |
SRC_URI="http://haproxy.1wt.eu/download/$(get_version_component_range 1-2)/src/devel/${MY_P}.tar.gz" |
62 |
|
63 |
LICENSE="GPL-2 LGPL-2.1" |
64 |
SLOT="0" |
65 |
KEYWORDS="~amd64 ~ppc ~x86" |
66 |
IUSE="+crypt examples +pcre ssl vim-syntax +zlib" |
67 |
|
68 |
DEPEND="pcre? ( dev-libs/libpcre ) |
69 |
ssl? ( dev-libs/openssl[zlib?] ) |
70 |
zlib? ( sys-libs/zlib )" |
71 |
RDEPEND="${DEPEND}" |
72 |
|
73 |
S="${WORKDIR}/${MY_P}" |
74 |
|
75 |
#pkg_setup() { |
76 |
# enewgroup haproxy |
77 |
# enewuser haproxy -1 -1 -1 haproxy |
78 |
##} |
79 |
|
80 |
src_prepare() { |
81 |
epatch "${FILESDIR}/${P}-stats.patch" |
82 |
} |
83 |
|
84 |
src_compile() { |
85 |
local args="TARGET=linux2628 USE_GETADDRINFO=1" |
86 |
|
87 |
if use pcre; then |
88 |
args="${args} USE_PCRE=1" |
89 |
else |
90 |
args="${args} USE_PCRE=" |
91 |
fi |
92 |
|
93 |
# if use kernel_linux; then |
94 |
# args="${args} USE_LINUX_SPLICE=1 USE_LINUX_TPROXY=1" |
95 |
# else |
96 |
# args="${args} USE_LINUX_SPLICE= USE_LINUX_TPROXY=" |
97 |
# fi |
98 |
|
99 |
if use crypt; then |
100 |
args="${args} USE_LIBCRYPT=1" |
101 |
else |
102 |
args="${args} USE_LIBCRYPT=" |
103 |
fi |
104 |
|
105 |
if use ssl; then |
106 |
args="${args} USE_OPENSSL=1" |
107 |
else |
108 |
args="${args} USE_OPENSSL=" |
109 |
fi |
110 |
|
111 |
if use zlib; then |
112 |
args="${args} USE_ZLIB=1" |
113 |
else |
114 |
args="${args} USE_ZLIB=" |
115 |
fi |
116 |
|
117 |
# For now, until the strict-aliasing breakage will be fixed |
118 |
# append-cflags -fno-strict-aliasing |
119 |
|
120 |
emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args} || die |
121 |
} |
122 |
|
123 |
src_install() { |
124 |
dobin haproxy || die |
125 |
|
126 |
newinitd "${FILESDIR}/haproxy.initd-r2" haproxy || die |
127 |
|
128 |
# Don't install useless files |
129 |
# rm examples/build.cfg doc/*gpl.txt |
130 |
|
131 |
dodoc CHANGELOG ROADMAP TODO doc/{configuration,haproxy-en}.txt |
132 |
doman doc/haproxy.1 |
133 |
|
134 |
if use examples; |
135 |
then |
136 |
docinto examples |
137 |
dodoc examples/*.cfg || die |
138 |
fi |
139 |
|
140 |
if use vim-syntax; |
141 |
then |
142 |
insinto /usr/share/vim/vimfiles/syntax |
143 |
doins examples/haproxy.vim || die |
144 |
fi |
145 |
} |
146 |
|
147 |
pkg_postinst() { |
148 |
if [[ ! -f "${ROOT}/etc/haproxy.cfg" ]] ; then |
149 |
ewarn "You need to create /etc/haproxy.cfg before you start the haproxy service." |
150 |
ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created." |
151 |
ewarn "Make use of them with the \"user\" and \"group\" directives." |
152 |
|
153 |
if [[ -d "${ROOT}/usr/share/doc/${PF}" ]]; then |
154 |
einfo "Please consult the installed documentation for learning the configuration file's syntax." |
155 |
einfo "The documentation and sample configuration files are installed here:" |
156 |
einfo " ${ROOT}usr/share/doc/${PF}" |
157 |
fi |
158 |
fi |
159 |
} |