1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs-fuse/zfs-fuse-0.6.9-r1.ebuild,v 1.4 2010/08/10 10:31:00 ssuominen Exp $
6 inherit bash-completion
8 DESCRIPTION="An implementation of the ZFS filesystem for FUSE/Linux"
9 HOMEPAGE="http://zfs-fuse.net/"
10 SRC_URI="http://zfs-fuse.net/releases/${PV}/${P}.tar.bz2"
17 RDEPEND="dev-libs/libaio
29 epatch "${FILESDIR}/malloc_initialize_hook.patch"
32 -e '/LINKFLAGS/s:-s::' \
33 -e '/CCFLAGS/s:-s -O2::' \
37 -e 's:../zdb/zdb:/usr/sbin/zdb:' \
38 cmd/ztest/ztest.c || die
45 scons debug=${_debug} || die
50 install_dir="${D}/usr/sbin" \
51 man_dir="${D}/usr/share/man/man8" \
52 cfg_dir="${D}/etc/zfs" \
56 doins ../contrib/zfsrc || die
58 keepdir /var/{lock,run}/zfs
59 fowners root.disk /var/{lock,run}/zfs
61 doinitd "${FILESDIR}"/${PN}
63 dodoc ../{BUGS,CHANGES,HACKING,README*,STATUS,TESTING,TODO}
65 dobashcompletion ../contrib/zfs_completion.bash ${PN}