From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j3DDDP3P009021 for <gentoo-dev@lists.gentoo.org>; Wed, 13 Apr 2005 13:13:25 GMT Received: from p061198130140.ppp.prin.ne.jp ([61.198.130.140] helo=linux.box) by smtp.gentoo.org with esmtpa (Exim 4.43) id 1DLhgA-0003xh-Jj for gentoo-dev@lists.gentoo.org; Wed, 13 Apr 2005 13:13:15 +0000 Received: by linux.box (Postfix, from userid 1000) id 3B96E46DEA; Wed, 13 Apr 2005 22:13:20 +0900 (JST) From: Jason Stubbs <jstubbs@gentoo.org> To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] New net-fs/openafs ebuild Date: Wed, 13 Apr 2005 22:13:19 +0900 User-Agent: KMail/1.8 References: <425CF818.5080700@ribosome.natur.cuni.cz> <200504130906.42729.vapier@gentoo.org> In-Reply-To: <200504130906.42729.vapier@gentoo.org> Precedence: bulk List-Post: <mailto:gentoo-dev@lists.gentoo.org> List-Help: <mailto:gentoo-dev+help@gentoo.org> List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@gentoo.org> List-Subscribe: <mailto:gentoo-dev+subscribe@gentoo.org> List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org> X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Disposition: inline Message-Id: <200504132213.19918.jstubbs@gentoo.org> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id j3DDDP3P009021 X-Archives-Salt: ea16fc88-a14b-4547-a6ee-7b25c053eca9 X-Archives-Hash: 13b0029ec698f333b2ffe97425492df6 On Wednesday 13 April 2005 22:06, Mike Frysinger wrote: > On Wednesday 13 April 2005 06:44 am, Martin MOKREJŠ wrote: > > I'm not sure how to block the ebuild when user is running 2.6 kernel > > (uname(1)?), of when the /usr/src/linux points to 2.6 kernel ... or just > > to check whether gentoo-sources or vanila-sources of 2.4 version are > > installed? > > put this into pkg_setup(): > [[ ${KV:0:3} == "2.6" ]] && die "Sorry, this package doesnt support 2.6 > kernels" Better to use the kernel groups eclass of the month for this one. The defining of $KV will likely be removed from portage down the track. Regards, Jason Stubbs -- gentoo-dev@gentoo.org mailing list