Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/gatling: gatling-0.12-r2.ebuild ChangeLog
Date: Thu, 22 Mar 2012 00:40:03
Message-Id: 20120322003953.8B8852004B@flycatcher.gentoo.org
1 patrick 12/03/22 00:39:53
2
3 Modified: ChangeLog
4 Added: gatling-0.12-r2.ebuild
5 Log:
6 Init script fixes for #409245
7
8 (Portage version: 2.2.0_alpha93/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.10 www-servers/gatling/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/gatling/ChangeLog?rev=1.10&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/gatling/ChangeLog?rev=1.10&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/gatling/ChangeLog?r1=1.9&r2=1.10
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-servers/gatling/ChangeLog,v
20 retrieving revision 1.9
21 retrieving revision 1.10
22 diff -u -r1.9 -r1.10
23 --- ChangeLog 10 Mar 2012 00:30:22 -0000 1.9
24 +++ ChangeLog 22 Mar 2012 00:39:53 -0000 1.10
25 @@ -1,6 +1,12 @@
26 # ChangeLog for www-servers/gatling
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-servers/gatling/ChangeLog,v 1.9 2012/03/10 00:30:22 sping Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-servers/gatling/ChangeLog,v 1.10 2012/03/22 00:39:53 patrick Exp $
30 +
31 +*gatling-0.12-r2 (22 Mar 2012)
32 +
33 + 22 Mar 2012; Patrick Lauer <patrick@g.o> +files/gatling.initd-2,
34 + +gatling-0.12-r2.ebuild, -files/gentoo-vars.patch:
35 + Init script fixes for #409245
36
37 *gatling-0.12-r1 (10 Mar 2012)
38
39
40
41
42 1.1 www-servers/gatling/gatling-0.12-r2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/gatling/gatling-0.12-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/gatling/gatling-0.12-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: gatling-0.12-r2.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/www-servers/gatling/gatling-0.12-r2.ebuild,v 1.1 2012/03/22 00:39:53 patrick Exp $
52
53 EAPI="4"
54
55 inherit eutils toolchain-funcs
56
57 DESCRIPTION="High performance web server"
58 HOMEPAGE="http://www.fefe.de/gatling/"
59 SRC_URI="http://dl.fefe.de/${P}.tar.bz2"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64
65 IUSE="ssl diet"
66
67 DEPEND=">=dev-libs/libowfat-0.25
68 diet? ( dev-libs/dietlibc )
69 ssl? ( dev-libs/openssl )"
70 RDEPEND="${DEPEND}"
71
72 src_prepare() {
73 rm Makefile # leaves GNUmakefile
74 epatch "${FILESDIR}/${P}-FLAGS.patch"
75 }
76
77 src_compile() {
78 local diet_conf='DIET=env'
79 use diet && diet_conf=
80
81 local targets=gatling
82 use ssl && targets+=' tlsgatling'
83
84 emake CC="$(tc-getCC)" ${diet_conf} ${targets} \
85 || die "emake ${targets} failed"
86 }
87
88 src_install() {
89 doman gatling.1 || die "installing manpage failed"
90
91 newconfd "${FILESDIR}/gatling.confd" gatling || die
92 newinitd "${FILESDIR}/gatling.initd-2" gatling || die
93 dodoc README.{ftp,http} || die "installing docs failed"
94
95 dobin gatling || die "installing gatling binary failed"
96 use ssl && {
97 dobin tlsgatling || die "installing tlsgatling binary failed"
98 }
99 }
100
101 pkg_setup() {
102 ebegin "Creating gatling user and group"
103 enewgroup gatling
104 enewuser ${PN} -1 -1 /var/www/localhost ${PN}
105 }