blob: ecbeed23ad848cb0f858d74fc87eff61b19e2cf1 (
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-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
inherit linux-mod
DESCRIPTION="The Oracle Cluster Filesystem"
SRC_URI="http://oss.oracle.com/projects/ocfs/dist/files/source/${P}.tar.gz"
HOMEPAGE="http://oss.oracle.com/projects/ocfs"
LICENSE="GPL-2"
DEPEND="virtual/linux-sources"
IUSE="aio"
SLOT="0"
KEYWORDS="~x86"
pkg_setup() {
if kernel_is -ge 2 6; then
die "${P} supports only 2.4 kernels"
fi
}
src_compile() {
set_arch_to_kernel
local myconf
use aio && myconf="--enable-aio=yes" || myconf="--enable-aio=no"
econf \
--with-kernel=${KV_DIR} \
${myconf} \
|| die
emake || die
}
src_install() {
einstall DESTDIR=${D} || die "Failed to install"
dodir /etc/ocfs
insinto /etc/ocfs
doins ocfs2/ocfs.conf
dodoc README docs/ocfs_doc.zip || die
}
pkg_postinst() {
linux-mod_pkg_postinst
einfo ""
einfo "Please remember to re-emerge ${PN} when you upgrade your kernel!"
einfo ""
einfo "Please edit the configuration file /etc/ocfs/ocfs.conf"
einfo ""
}
|