summaryrefslogtreecommitdiff
blob: 4a6a6993dcfbc4639a01dd7ccac5bfe5c029433f (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils linux-mod versionator

MY_P="${PN}-$(replace_version_separator 2 -)"
DESCRIPTION="Stackable unification file system, which can appear to merge the contents of several directories"
HOMEPAGE="http://fort.xdas.com/~kor/oss2jack/"
SRC_URI="http://fort.xdas.com/~kor/oss2jack/${MY_P}.tar.gz"

LICENSE="GPL-2"
KEYWORDS="~x86"
SLOT="0"
IUSE=""

DEPEND="media-sound/jack-audio-connection-kit"
RDEPEND="${DEPEND}"

S=${WORKDIR}/${MY_P}

MODULE_NAMES="kfusd(extra:${S}/kfusd)"
BUILD_TARGETS="default"

src_unpack() {
	unpack ${A}
	cd "${S}"
	sed -i -e "s/-Werror//" make.include
	epatch "${FILESDIR}/disable-target.patch"
}

src_compile() {
	linux-mod_src_compile
	set_arch_to_kernel
	emake || die "emake failed"
}

src_install() {
	linux-mod_src_install
	set_arch_to_kernel
	cd "${S}/obj.${ARCH}"
	dolib.a libfusd.a
	cd "${S}/include"
	insinto /usr/include
	doins *.h
	insinto /etc/modules.d
	newins "${FILESDIR}/fusd.modules" fusd
	cd doc
	dodoc fusd.pdf fusd.tex
	insinto /etc/udev/rules.d
	doins "${FILESDIR}/49-fusd.rules"
}