Gentoo Archives: gentoo-commits

From: "Alexey Shvetsov (alexxy)" <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/ocfs2-tools: metadata.xml ChangeLog ocfs2-tools-1.6.4.ebuild
Date: Wed, 31 Aug 2011 17:15:30
Message-Id: 20110831171518.6973A2004C@flycatcher.gentoo.org
1 alexxy 11/08/31 17:15:18
2
3 Added: metadata.xml ChangeLog ocfs2-tools-1.6.4.ebuild
4 Log:
5 [sys-fs/ocfs2-tools] Reimport to tree
6
7 (Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.4 sys-fs/ocfs2-tools/metadata.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/ocfs2-tools/metadata.xml?rev=1.4&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/ocfs2-tools/metadata.xml?rev=1.4&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/ocfs2-tools/metadata.xml?r1=1.3&r2=1.4
15
16
17
18
19 1.6 sys-fs/ocfs2-tools/ChangeLog
20
21 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/ocfs2-tools/ChangeLog?rev=1.6&view=markup
22 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/ocfs2-tools/ChangeLog?rev=1.6&content-type=text/plain
23 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/ocfs2-tools/ChangeLog?r1=1.5&r2=1.6
24
25
26
27
28 1.1 sys-fs/ocfs2-tools/ocfs2-tools-1.6.4.ebuild
29
30 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/ocfs2-tools/ocfs2-tools-1.6.4.ebuild?rev=1.1&view=markup
31 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/ocfs2-tools/ocfs2-tools-1.6.4.ebuild?rev=1.1&content-type=text/plain
32
33 Index: ocfs2-tools-1.6.4.ebuild
34 ===================================================================
35 # Copyright 1999-2011 Gentoo Foundation
36 # Distributed under the terms of the GNU General Public License v2
37 # $Header: /var/cvsroot/gentoo-x86/sys-fs/ocfs2-tools/ocfs2-tools-1.6.4.ebuild,v 1.1 2011/08/31 17:15:18 alexxy Exp $
38
39 EAPI=3
40 PYTHON_DEPEND="gtk? 2"
41 inherit base python versionator
42
43 DESCRIPTION="Support programs for the Oracle Cluster Filesystem 2"
44 HOMEPAGE="http://oss.oracle.com/projects/ocfs2-tools/"
45 SRC_URI="http://oss.oracle.com/projects/${PN}/dist/files/source/v$(get_version_component_range 1-2)/${P}.tar.gz"
46
47 LICENSE="GPL-2"
48 SLOT="0"
49 KEYWORDS="~amd64 ~x86"
50 IUSE="debug external gtk"
51
52 RDEPEND="
53 sys-apps/util-linux
54 sys-cluster/cman-lib
55 external? (
56 || ( sys-cluster/corosync sys-cluster/openais sys-cluster/dlm-lib )
57 )
58 sys-fs/e2fsprogs
59 sys-libs/ncurses
60 sys-libs/readline
61 sys-process/psmisc
62 gtk? (
63 dev-python/pygtk
64 )
65 "
66 # 99% of deps this thing has is automagic
67 # specialy cluster things corosync/pacemaker
68 DEPEND="${RDEPEND}"
69
70 DOCS=(
71 "${S}/documentation/samples/cluster.conf"
72 "${S}/documentation/users_guide.txt"
73 )
74
75 MAKEOPTS+=" -j1"
76
77 pkg_setup() {
78 python_set_active_version 2
79 python_pkg_setup
80 }
81
82 src_prepare() {
83 # gentoo uses /sys/kernel/dlm as dlmfs mountpoint
84 sed -e 's:"/dlm/":"/sys/kernel/dlm":g' \
85 -i libo2dlm/o2dlm_test.c \
86 -i libocfs2/dlm.c || die "sed failed"
87 }
88
89 src_configure() {
90 econf \
91 $(use_enable debug debug) \
92 $(use_enable debug debugexe) \
93 $(use_enable gtk ocfs2console) \
94 --enable-dynamic-fsck \
95 --enable-dynamic-ctl
96 }
97
98 src_install() {
99 emake DESTDIR="${D}" install || die
100 newinitd "${FILESDIR}/ocfs2.initd" ocfs2 || die
101 newconfd "${FILESDIR}/ocfs2.confd" ocfs2 || die
102 }