Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 362431 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/sys-fs/zfs-fuse/zfs-fuse-0.6.9-r1.ebuild (-45 / +95 lines)
Lines 1-64 Link Here
1
# Copyright 1999-2010 Gentoo Foundation
1
# Copyright 1999-2009 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
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 $
3
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/speakup/speakup-9999.ebuild,v 1.3 2009/12/03 20:43:20 williamh Exp $
4
4
5
EAPI=2
5
IUSE="bash-completion doc debug"
6
inherit bash-completion
7
6
8
DESCRIPTION="An implementation of the ZFS filesystem for FUSE/Linux"
7
DESCRIPTION="An implementation of the ZFS filesystem for FUSE/Linux"
9
HOMEPAGE="http://zfs-fuse.net/"
8
HOMEPAGE="http://zfs-fuse.net"
10
SRC_URI="http://zfs-fuse.net/releases/${PV}/source-tar-ball -> ${P}.tar.bz2"
9
10
EAPI="2"
11
EGIT_REPO_URI="http://rainemu.swishparty.co.uk/git/zfs"
12
EGIT_BRANCH="compress"
13
14
inherit git autotools bash-completion
15
16
SRC_URI=""
11
17
12
LICENSE="CDDL"
18
LICENSE="CDDL"
13
SLOT="0"
19
SLOT="0"
14
KEYWORDS="~amd64 ~x86"
20
KEYWORDS="~x86 ~amd64"
15
IUSE="debug"
16
21
17
RDEPEND="dev-libs/libaio
22
DEPEND=">=sys-libs/glibc-2.3.3
18
	dev-libs/openssl
23
		>=dev-util/scons-0.96.1
19
	sys-fs/fuse
24
		>=dev-libs/libaio-0.3
20
	sys-libs/zlib"
25
		>=dev-libs/lzo-2.0.4
21
DEPEND="${RDEPEND}
26
		>=sys-fs/fuse-2.6.1"
22
	dev-util/scons
23
	sys-apps/acl
24
	sys-apps/attr"
25
27
26
S=${WORKDIR}/${P}/src
28
S="${WORKDIR}/${P}/src"
27
29
28
src_prepare() {
30
src_prepare() {
29
	sed -i \
31
30
		-e '/LINKFLAGS/s:-s::' \
32
	cd "${S}"/src
31
		-e '/CCFLAGS/s:-s -O2::' \
33
32
		SConstruct || die
34
	sed -i -e '/LINKFLAGS/s:-s::' -e '/CCFLAGS/s:-s -O2::' ${S}/src/SConstruct || die "failed to sed"
33
35
	sed -i -e 's:../zdb/zdb:/usr/sbin/zdb:' cmd/ztest/ztest.c || die "sed failed"
34
	sed -i \
36
	epatch "${FILESDIR}"/${PV}/${PV}_cc_cflags_ldflags.patch
35
		-e 's:../zdb/zdb:/usr/sbin/zdb:' \
37
36
		cmd/ztest/ztest.c || die
38
	cd "${S}"/src/lib/libumem
39
	eautoreconf
37
}
40
}
38
41
39
src_compile() {
42
src_compile() {
40
	local _debug=0
43
	cd "${S}"/src
41
	use debug && _debug=2
44
	scons || die "Make failed"
42
43
	scons debug=${_debug} || die
44
}
45
}
45
46
46
src_install() {
47
src_install() {
47
	scons \
48
	cd "${S}"/src
48
		install_dir="${D}/usr/sbin" \
49
	if useq debug; then
49
		man_dir="${D}/usr/share/man/man8" \
50
		mv cmd/ztest/ztest cmd/ztest/run-ztest || die
50
		cfg_dir="${D}/etc/zfs" \
51
		mv cmd/ztest/runtest.sh cmd/ztest/ztest || die
51
		install || die
52
		dosbin cmd/ztest/run-ztest || die
52
53
	fi
53
	insinto /etc/zfs
54
	dosbin cmd/ztest/ztest || die
54
	doins ../contrib/zfsrc || die
55
55
56
	if useq debug; then
56
	keepdir /var/{lock,run}/zfs
57
		mv zfs-fuse/zfs-fuse zfs-fuse/run-zfs-fuse || die
57
	fowners root.disk /var/{lock,run}/zfs
58
		mv zfs-fuse/run.sh zfs-fuse/zfs-fuse || die
58
59
		dobin zfs-fuse/run-zfs-fuse || die
59
	doinitd "${FILESDIR}"/${PN}
60
	fi
60
61
	dosbin "zfs-fuse/zfs-fuse" || die
61
	dodoc ../{BUGS,CHANGES,HACKING,README*,STATUS,TESTING,TODO}
62
63
	dosbin "cmd/zfs/zfs" || die
64
	dosbin "cmd/zpool/zpool" || die
65
	dosbin "cmd/zdb/zdb" || die
66
67
	newinitd "${FILESDIR}/${PV}/${PN}.rc" "zfs-fuse" || die
68
69
	keepdir /var/lock/zfs || die
70
	fowners daemon.disk /var/lock/zfs || die
71
72
	keepdir /var/run/zfs || die
73
	fowners daemon.disk /var/run/zfs || die
74
75
	cd "${WORKDIR}/${P}/src" || die
76
77
	dodoc CHANGES || die
78
79
	if use doc; then
80
		dodoc {INSTALL,TODO,STATUS,TESTING,HACKING,BUGS} || die
81
	fi
82
83
	if use bash-completion; then
84
		dobashcompletion ./contrib/zfs_completion.bash ${PN} || die
85
	fi
86
}
62
87
63
	dobashcompletion ../contrib/zfs_completion.bash ${PN}
88
pkg_postinst() {
89
	echo
90
	einfo "To debug and play with ZFS-FUSE make sure you have a recent 2.6.xx"
91
	einfo "series kernel with the FUSE module compiled in OR built as a"
92
	einfo "kernel module."
93
	einfo
94
	einfo "You can start the ZFS-FUSE daemon by running"
95
	einfo
96
	einfo "     /etc/init.d/zfs-fuse start"
97
	einfo
98
	einfo "as root from the command line. "
99
	einfo
100
	einfo "And don't forget to add it permanently, if you want to:"
101
	einfo
102
	einfo "    rc-update add zfs-fuse boot"
103
	einfo
104
	einfo "For additional ZFS related commands I recommend the ZFS admin"
105
	einfo "guide. http://opensolaris.org/os/community/zfs/docs/zfsadmin.pdf"
106
	einfo
107
	einfo "Don't forget this is an beta-quality release. Testing has been"
108
	einfo "very limited so please make sure you backup any important data."
109
	einfo
110
	einfo "If you have any problems with zfs-fuse please visit the ZFS-FUSE."
111
	einfo "website at http://zfs-fuse.net/"
112
	einfo "website at http://developer.berlios.de/projects/zfs-fuse/"
113
	echo
64
}
114
}

Return to bug 362431