summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Zoffoli <xmerlin@gentoo.org>2006-10-15 10:49:53 +0000
committerChristian Zoffoli <xmerlin@gentoo.org>2006-10-15 10:49:53 +0000
commit5c153a02f9d17c8380f6027f19a49685f5c540b0 (patch)
treec6d5e855e77fdbd1e247da1c9860e95bb061b834 /sys-cluster/gnbd-kernel/gnbd-kernel-1.02.00-r1.ebuild
parentRemoved check_KV. (diff)
downloadgentoo-2-5c153a02f9d17c8380f6027f19a49685f5c540b0.tar.gz
gentoo-2-5c153a02f9d17c8380f6027f19a49685f5c540b0.tar.bz2
gentoo-2-5c153a02f9d17c8380f6027f19a49685f5c540b0.zip
Removed check_KV.
(Portage version: 2.1-r1)
Diffstat (limited to 'sys-cluster/gnbd-kernel/gnbd-kernel-1.02.00-r1.ebuild')
-rw-r--r--sys-cluster/gnbd-kernel/gnbd-kernel-1.02.00-r1.ebuild17
1 files changed, 8 insertions, 9 deletions
diff --git a/sys-cluster/gnbd-kernel/gnbd-kernel-1.02.00-r1.ebuild b/sys-cluster/gnbd-kernel/gnbd-kernel-1.02.00-r1.ebuild
index 5bf934191ded..55bbff79cf1d 100644
--- a/sys-cluster/gnbd-kernel/gnbd-kernel-1.02.00-r1.ebuild
+++ b/sys-cluster/gnbd-kernel/gnbd-kernel-1.02.00-r1.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gnbd-kernel/gnbd-kernel-1.02.00-r1.ebuild,v 1.4 2006/10/14 18:47:10 xmerlin Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gnbd-kernel/gnbd-kernel-1.02.00-r1.ebuild,v 1.5 2006/10/15 10:49:53 xmerlin Exp $
-inherit linux-mod eutils
+inherit eutils linux-mod linux-info
CVS_RELEASE="20060713"
MY_P="cluster-${PV}"
@@ -26,20 +26,19 @@ RDEPEND=""
S="${WORKDIR}/${MY_P}/${PN}"
-src_unpack() {
+pkg_setup() {
linux-mod_pkg_setup
+ case ${KV_FULL} in
+ 2.2.*|2.4.*) die "${P} supports only 2.6 kernels";;
+ esac
+}
+src_unpack() {
unpack ${A}
cd ${S}
epatch ${WORKDIR}/${PN}-${PV}-${CVS_RELEASE}-cvs.patch || die
}
-pkg_setup() {
- if kernel_is 2 4; then
- die "${P} supports only 2.6 kernels"
- fi
-}
-
src_compile() {
check_KV
set_arch_to_kernel