summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2012-03-10 00:30:22 +0000
committerSebastian Pipping <sping@gentoo.org>2012-03-10 00:30:22 +0000
commit647275efe9f2ba6e73c0d3045a2854d03ae71039 (patch)
treee1fc8e884154c4edb8830cd42c7cd854ad8d65ce /www-servers/gatling
parentVersion bump. (diff)
downloadgentoo-2-647275efe9f2ba6e73c0d3045a2854d03ae71039.tar.gz
gentoo-2-647275efe9f2ba6e73c0d3045a2854d03ae71039.tar.bz2
gentoo-2-647275efe9f2ba6e73c0d3045a2854d03ae71039.zip
www-servers/gatling: Fix compilation (bug #314115)
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'www-servers/gatling')
-rw-r--r--www-servers/gatling/ChangeLog11
-rw-r--r--www-servers/gatling/gatling-0.12-r1.ebuild57
-rw-r--r--www-servers/gatling/metadata.xml7
3 files changed, 73 insertions, 2 deletions
diff --git a/www-servers/gatling/ChangeLog b/www-servers/gatling/ChangeLog
index 80f0fb3da2c7..2c63c73c3223 100644
--- a/www-servers/gatling/ChangeLog
+++ b/www-servers/gatling/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for www-servers/gatling
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/gatling/ChangeLog,v 1.8 2010/08/13 11:20:01 patrick Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/gatling/ChangeLog,v 1.9 2012/03/10 00:30:22 sping Exp $
+
+*gatling-0.12-r1 (10 Mar 2012)
+
+ 10 Mar 2012; Sebastian Pipping <sping@gentoo.org> +gatling-0.12-r1.ebuild,
+ metadata.xml:
+ Fix compilation on amd64, make dietlibc optional (bug #314115), allow
+ optional SSL
13 Aug 2010; Patrick Lauer <patrick@gentoo.org> gatling-0.12.ebuild:
Fixing init.d install quoting so it actually does something. Thanks to
diff --git a/www-servers/gatling/gatling-0.12-r1.ebuild b/www-servers/gatling/gatling-0.12-r1.ebuild
new file mode 100644
index 000000000000..6d2b085ec626
--- /dev/null
+++ b/www-servers/gatling/gatling-0.12-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/gatling/gatling-0.12-r1.ebuild,v 1.1 2012/03/10 00:30:21 sping Exp $
+
+EAPI="4"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="High performance web server"
+HOMEPAGE="http://www.fefe.de/gatling/"
+SRC_URI="http://dl.fefe.de/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="ssl diet"
+
+DEPEND=">=dev-libs/libowfat-0.25
+ diet? ( dev-libs/dietlibc )
+ ssl? ( dev-libs/openssl )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ rm Makefile # leaves GNUmakefile
+ epatch "${FILESDIR}/${P}-FLAGS.patch"
+}
+
+src_compile() {
+ local diet_conf='DIET=env'
+ use diet && diet_conf=
+
+ local targets=gatling
+ use ssl && targets+=' tlsgatling'
+
+ emake CC="$(tc-getCC)" ${diet_conf} ${targets} \
+ || die "emake ${targets} failed"
+}
+
+src_install() {
+ doman gatling.1 || die "installing manpage failed"
+
+ newconfd "${FILESDIR}/gatling.confd" gatling || die
+ newinitd "${FILESDIR}/gatling.initd" gatling || die
+ dodoc README.{ftp,http} || die "installing docs failed"
+
+ dobin gatling || die "installing gatling binary failed"
+ use ssl && {
+ dobin tlsgatling || die "installing tlsgatling binary failed"
+ }
+}
+
+pkg_setup() {
+ ebegin "Creating gatling user and group"
+ enewgroup gatling
+ enewuser ${PN} -1 -1 /var/www/localhost ${PN}
+}
diff --git a/www-servers/gatling/metadata.xml b/www-servers/gatling/metadata.xml
index eb6e7802d36f..34daeb2fc29c 100644
--- a/www-servers/gatling/metadata.xml
+++ b/www-servers/gatling/metadata.xml
@@ -9,4 +9,11 @@
<email>vostorga@gentoo.org</email>
<name>Víctor Ostorga</name>
</maintainer>
+ <maintainer>
+ <email>sping@gentoo.org</email>
+ <name>Sebastian Pipping</name>
+ </maintainer>
+ <use>
+ <flag name="diet">Compile against <pkg>dev-libs/dietlibc</pkg></flag>
+ </use>
</pkgmetadata>