/[gentoo-x86]/sys-cluster/ocfs/ocfs-1.0.14.ebuild
Gentoo

Contents of /sys-cluster/ocfs/ocfs-1.0.14.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Jun 6 00:27:31 2011 UTC (3 years, 5 months ago) by robbat2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
Linux-3.0 changes.

(Portage version: 2.2.0_alpha37/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/ocfs/ocfs-1.0.14.ebuild,v 1.3 2007/04/12 18:52:16 genstef Exp $
4
5 inherit linux-mod
6
7 DESCRIPTION="The Oracle Cluster Filesystem"
8 SRC_URI="http://oss.oracle.com/projects/ocfs/dist/files/source/${P}.tar.gz"
9 HOMEPAGE="http://oss.oracle.com/projects/ocfs"
10 LICENSE="GPL-2"
11
12 DEPEND="virtual/linux-sources"
13
14 IUSE="aio"
15 SLOT="0"
16 KEYWORDS="~x86"
17
18 pkg_setup() {
19 if kernel_is -ge 2 6; then
20 die "${P} supports only 2.4 kernels"
21 fi
22 }
23
24 src_compile() {
25 set_arch_to_kernel
26 local myconf
27 use aio && myconf="--enable-aio=yes" || myconf="--enable-aio=no"
28
29 econf \
30 --with-kernel=${KV_DIR} \
31 ${myconf} \
32 || die
33
34 emake || die
35 }
36
37 src_install() {
38 einstall DESTDIR=${D} || die "Failed to install"
39
40 dodir /etc/ocfs
41 insinto /etc/ocfs
42 doins ocfs2/ocfs.conf
43
44 dodoc README docs/ocfs_doc.zip || die
45 }
46
47 pkg_postinst() {
48 linux-mod_pkg_postinst
49
50 einfo ""
51 einfo "Please remember to re-emerge ${PN} when you upgrade your kernel!"
52 einfo ""
53 einfo "Please edit the configuration file /etc/ocfs/ocfs.conf"
54 einfo ""
55 }

  ViewVC Help
Powered by ViewVC 1.1.20