blob: 77020e551299867677973c2a0aa834e616d1c708 (
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
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pvfs2/pvfs2-1.5.1.ebuild,v 1.1 2006/07/24 22:06:41 genstef Exp $
inherit linux-mod
DESCRIPTION="Parallel Virtual File System version 2"
HOMEPAGE="http://www.pvfs.org/pvfs2/"
SRC_URI="ftp://ftp.parl.clemson.edu/pub/pvfs2/${P}.tar.gz"
IUSE="gtk static doc"
RDEPEND="gtk? ( >=x11-libs/gtk+-2 )
sys-libs/db"
DEPEND="${RDEPEND}
virtual/linux-sources"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~ppc ~x86"
pkg_setup() {
linux-mod_pkg_setup
if kernel_is 2 4; then
BUILD_TARGETS="kmod24 all"
ECONF_PARAMS="--with-kernel24=${KV_DIR}"
MODULE_NAMES="pvfs2(fs::src/kernel/linux-2.4)"
else
BUILD_TARGETS="kmod all"
ECONF_PARAMS="--with-kernel=${KV_DIR}"
MODULE_NAMES="pvfs2(fs::src/kernel/linux-2.6)"
fi
ECONF_PARAMS="${ECONF_PARAMS} --enable-mmap-racache $(use_enable !static shared) $(use_enable static)"
ECONF_PARAMS="${ECONF_PARAMS} $(use_enable gtk karma)"
}
src_unpack() {
unpack ${A}
epatch "${FILESDIR}"/${P}-destdir.patch
}
src_install() {
linux-mod_src_install
emake DESTDIR="${D}" install || die "install failed"
dodoc AUTHORS CREDITS ChangeLog INSTALL README
docinto examples
dodoc examples/{fs.conf,pvfs2-server.rc,server.conf-localhost}
# this is LARGE (~5mb)
if use doc; then
docdir="/usr/share/doc/${PF}/"
cp -pPR ${S}/doc ${D}${docdir}
rm -rf ${D}${docdir}/man
fi
}
|