From: Robin H. Johnson Date: Mon, 8 Jan 2007 20:35:35 +0000 (+0000) Subject: Check for kernel version. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e9d4b0fc24aa2b4ac0c9a15636ceb5b218f306ad;p=gentoo.git Check for kernel version. Package-Manager: portage-2.1.2_rc4-r6 --- diff --git a/net-wireless/ipw3945/ChangeLog b/net-wireless/ipw3945/ChangeLog index 1598e08b417a..0237328741ae 100644 --- a/net-wireless/ipw3945/ChangeLog +++ b/net-wireless/ipw3945/ChangeLog @@ -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 + -ipw3945-1.1.3-r1.ebuild, ipw3945-1.1.3-r2.ebuild: + Check for kernel version. *ipw3945-1.1.3-r2 (08 Jan 2007) diff --git a/net-wireless/ipw3945/ipw3945-1.1.3-r2.ebuild b/net-wireless/ipw3945/ipw3945-1.1.3-r2.ebuild index 824c0ddf2ea6..864a27c96211 100644 --- a/net-wireless/ipw3945/ipw3945-1.1.3-r2.ebuild +++ b/net-wireless/ipw3945/ipw3945-1.1.3-r2.ebuild @@ -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}" }