summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Zoffoli <xmerlin@gentoo.org>2007-03-09 15:09:07 +0000
committerChristian Zoffoli <xmerlin@gentoo.org>2007-03-09 15:09:07 +0000
commit5ae5107cda5593b082736d124db8edbac815b14d (patch)
tree832928b1181e5eb34ac3188389e9631a38597df0 /sys-cluster
parentStable on sparc (diff)
downloadgentoo-2-5ae5107cda5593b082736d124db8edbac815b14d.tar.gz
gentoo-2-5ae5107cda5593b082736d124db8edbac815b14d.tar.bz2
gentoo-2-5ae5107cda5593b082736d124db8edbac815b14d.zip
Version bump, fixed compilation with older and newer kernels.
(Portage version: 2.1.2-r9)
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/cman-kernel/cman-kernel-1.02.00-r1.ebuild20
-rw-r--r--sys-cluster/cman-kernel/cman-kernel-1.03.00.ebuild24
-rw-r--r--sys-cluster/cman-kernel/cman-kernel-1.04.00.ebuild24
3 files changed, 62 insertions, 6 deletions
diff --git a/sys-cluster/cman-kernel/cman-kernel-1.02.00-r1.ebuild b/sys-cluster/cman-kernel/cman-kernel-1.02.00-r1.ebuild
index 299084f1241a..f45628f14a7f 100644
--- a/sys-cluster/cman-kernel/cman-kernel-1.02.00-r1.ebuild
+++ b/sys-cluster/cman-kernel/cman-kernel-1.02.00-r1.ebuild
@@ -1,11 +1,12 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman-kernel/cman-kernel-1.02.00-r1.ebuild,v 1.10 2007/01/13 01:56:48 marineam Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman-kernel/cman-kernel-1.02.00-r1.ebuild,v 1.11 2007/03/09 15:09:07 xmerlin Exp $
inherit eutils linux-mod linux-info
+CLUSTER_RELEASE="1.02.00"
+MY_P="cluster-${CLUSTER_RELEASE}"
CVS_RELEASE="20060714"
-MY_P="cluster-${PV}"
DESCRIPTION="CMAN cluster kernel module"
HOMEPAGE="http://sources.redhat.com/cluster/"
@@ -37,8 +38,23 @@ src_unpack() {
unpack ${A}
cd ${S}
epatch ${WORKDIR}/${PN}-${PV}-${CVS_RELEASE}-cvs.patch || die
+
+ if kernel_is 2 6; then
+ if [ "$KV_PATCH" -ge "18" ] ; then
+ sed -i \
+ -e 's|version.h|utsrelease.h|g' \
+ configure \
+ || die "sed failed"
+
+ sed -i \
+ -e 's|system_utsname.nodename|init_utsname()->nodename|g' \
+ src/cnxman.c \
+ || die "sed failed"
+ fi
+ fi
}
+
src_compile() {
set_arch_to_kernel
diff --git a/sys-cluster/cman-kernel/cman-kernel-1.03.00.ebuild b/sys-cluster/cman-kernel/cman-kernel-1.03.00.ebuild
index 02e0f0c2bc92..a24ac08a27d8 100644
--- a/sys-cluster/cman-kernel/cman-kernel-1.03.00.ebuild
+++ b/sys-cluster/cman-kernel/cman-kernel-1.03.00.ebuild
@@ -1,10 +1,11 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman-kernel/cman-kernel-1.03.00.ebuild,v 1.7 2007/01/13 01:56:48 marineam Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman-kernel/cman-kernel-1.03.00.ebuild,v 1.8 2007/03/09 15:09:07 xmerlin Exp $
inherit linux-mod linux-info
-MY_P="cluster-${PV}"
+CLUSTER_RELEASE="1.03.00"
+MY_P="cluster-${CLUSTER_RELEASE}"
DESCRIPTION="CMAN cluster kernel module"
HOMEPAGE="http://sources.redhat.com/cluster/"
@@ -30,6 +31,25 @@ pkg_setup() {
esac
}
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ if kernel_is 2 6; then
+ if [ "$KV_PATCH" -ge "18" ] ; then
+ sed -i \
+ -e 's|version.h|utsrelease.h|g' \
+ configure \
+ || die "sed failed"
+
+ sed -i \
+ -e 's|system_utsname.nodename|init_utsname()->nodename|g' \
+ src/cnxman.c \
+ || die "sed failed"
+ fi
+ fi
+}
+
src_compile() {
set_arch_to_kernel
diff --git a/sys-cluster/cman-kernel/cman-kernel-1.04.00.ebuild b/sys-cluster/cman-kernel/cman-kernel-1.04.00.ebuild
index 16fd874f05ec..2b615259cf50 100644
--- a/sys-cluster/cman-kernel/cman-kernel-1.04.00.ebuild
+++ b/sys-cluster/cman-kernel/cman-kernel-1.04.00.ebuild
@@ -1,10 +1,11 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman-kernel/cman-kernel-1.04.00.ebuild,v 1.1 2007/03/09 11:03:33 xmerlin Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman-kernel/cman-kernel-1.04.00.ebuild,v 1.2 2007/03/09 15:09:07 xmerlin Exp $
inherit linux-mod linux-info
-MY_P="cluster-${PV}"
+CLUSTER_RELEASE="1.04.00"
+MY_P="cluster-${CLUSTER_RELEASE}"
DESCRIPTION="CMAN cluster kernel module"
HOMEPAGE="http://sources.redhat.com/cluster/"
@@ -30,6 +31,25 @@ pkg_setup() {
esac
}
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ if kernel_is 2 6; then
+ if [ "$KV_PATCH" -lt "18" ] ; then
+ sed -i \
+ -e 's|utsrelease.h|version.h|g' \
+ configure \
+ || die "sed failed"
+
+ sed -i \
+ -e 's|init_utsname()->nodename|system_utsname.nodename|g' \
+ src/cnxman.c \
+ || die "sed failed"
+ fi
+ fi
+}
+
src_compile() {
set_arch_to_kernel