Check for kernel version.
authorRobin H. Johnson <robbat2@gentoo.org>
Mon, 8 Jan 2007 20:35:35 +0000 (20:35 +0000)
committerRobin H. Johnson <robbat2@gentoo.org>
Mon, 8 Jan 2007 20:35:35 +0000 (20:35 +0000)
Package-Manager: portage-2.1.2_rc4-r6

net-wireless/ipw3945/ChangeLog
net-wireless/ipw3945/ipw3945-1.1.3-r2.ebuild

index 1598e08b417ad450766a597d1b95f3a3efc442c9..0237328741ae939df3caef57405b6e3c30c0ca21 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for net-wireless/ipw3945
 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw3945/ChangeLog,v 1.18 2007/01/08 20:33:28 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw3945/ChangeLog,v 1.19 2007/01/08 20:35:35 robbat2 Exp $
+
+  08 Jan 2007; Robin H. Johnson <robbat2@gentoo.org>
+  -ipw3945-1.1.3-r1.ebuild, ipw3945-1.1.3-r2.ebuild:
+  Check for kernel version.
 
 *ipw3945-1.1.3-r2 (08 Jan 2007)
 
index 824c0ddf2ea63582cbeb3966ee7ccb3ae27a8a3a..864a27c96211456a826b4372508176b7621470a6 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw3945/ipw3945-1.1.3-r2.ebuild,v 1.1 2007/01/08 20:33:28 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw3945/ipw3945-1.1.3-r2.ebuild,v 1.2 2007/01/08 20:35:35 robbat2 Exp $
 
 inherit linux-mod eutils
 
@@ -42,6 +42,10 @@ pkg_setup() {
        if kernel_is 2 4; then
                die "${P} does not support building against kernel 2.4.x"
        fi
+       if kernel_is lt 2 6 19; then
+               die "${P} needs a kernel >=2.6.19! Please set your \
+                       KERNEL_DIR or /usr/src/linux suitably"
+       fi
 
        BUILD_PARAMS="KSRC=${KV_DIR} KSRC_OUTPUT=${KV_OUT_DIR}"
 }