blob: 4b0c060fa966757dde33d7dbb4d35bcc217a714a (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/dbench/dbench-2.0.ebuild,v 1.15 2005/01/01 12:04:05 eradicator Exp $
DESCRIPTION="Popular filesystem benchmark"
SRC_URI="ftp://samba.org/pub/tridge/dbench/${P}.tar.gz"
HOMEPAGE="ftp://samba.org/pub/tridge/dbench/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc amd64 sparc"
IUSE=""
DEPEND="sys-apps/sed"
src_unpack() {
unpack ${A}
cd ${S}
sed -i -e "s:-O2 -Wall:${CFLAGS}:g" Makefile
}
src_compile() {
emake
}
src_install() {
dobin dbench tbench tbench_srv
dodoc README results.txt
insinto /usr/share/dbench
doins client_plain.txt client_oplocks.txt
doman dbench.1
}
pkg_postinst() {
einfo "dbench info:"
einfo "You can find the client_*.txt file in ${ROOT}usr/share/dbench."
echo
}
|