blob: 4b6420b3be36a7f6f2d1e0466275f6c8eee134b6 (
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
55
56
57
58
59
60
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
PYTHON_DEPEND="gtk? 2"
inherit python base versionator
DESCRIPTION="Support programs for the Oracle Cluster Filesystem 2"
HOMEPAGE="http://oss.oracle.com/projects/ocfs2-tools/"
SRC_URI="http://oss.oracle.com/projects/${PN}/dist/files/source/v$(get_version_component_range 1-2)/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug gtk external"
RDEPEND="
sys-apps/util-linux
sys-cluster/cman-lib
external? (
|| ( sys-cluster/corosync sys-cluster/openais sys-cluster/dlm-lib )
)
sys-fs/e2fsprogs
sys-libs/ncurses
sys-libs/readline
sys-process/psmisc
gtk? (
dev-python/pygtk
)
"
# 99% of deps this thing has is automagic
# specialy cluster things corosync/pacemaker
DEPEND="${RDEPEND}"
DOCS=(
"${S}/documentation/samples/cluster.conf"
"${S}/documentation/users_guide.txt"
)
MAKEOPTS+=" -j1"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_configure() {
econf \
$(use_enable debug debug) \
$(use_enable debug debugexe) \
$(use_enable gtk ocfs2console) \
--enable-dynamic-fsck \
--enable-dynamic-ctl
}
src_install() {
default
newinitd "${FILESDIR}/ocfs2.init"
}
|