blob: 6680edbf700b36d8eaf4f80f81d4d4d81e890340 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/httperf/httperf-0.8.ebuild,v 1.2 2005/09/26 16:58:21 ka0ttic Exp $
inherit eutils
DESCRIPTION="A tool from HP for measuring web server performance."
HOMEPAGE="http://www.hpl.hp.com/research/linux/httperf/index.php"
SRC_URI="ftp://ftp.hpl.hp.com/pub/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~mips ~sparc ~x86"
IUSE="debug ssl"
DEPEND=""
RDEPEND=""
MAKEOPTS="${MAKEOPTS} -j1"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-optional-ssl.diff
epatch ${FILESDIR}/${P}-respect-DESTDIR.diff
}
src_compile() {
einfo "Regenerating configure"
autoconf || die "autoconf failed"
econf --bindir=/usr/bin \
$(use_enable debug) \
$(use_enable ssl) \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS ChangeLog NEWS README TODO
}
|