diff options
author | 2011-06-05 21:09:22 +0000 | |
---|---|---|
committer | 2011-06-05 21:09:22 +0000 | |
commit | c0d0048c9941665e20b7a075a9d6ac745eeadfca (patch) | |
tree | 9268f168a8fc6607f17d9a568015a05ee46cee66 /sys-fs/udev/udev-164-r2.ebuild | |
parent | Version bump, keyworded amd64 (diff) | |
download | gentoo-2-c0d0048c9941665e20b7a075a9d6ac745eeadfca.tar.gz gentoo-2-c0d0048c9941665e20b7a075a9d6ac745eeadfca.tar.bz2 gentoo-2-c0d0048c9941665e20b7a075a9d6ac745eeadfca.zip |
Linux-3.0 support for udev version checks.
(Portage version: 2.2.0_alpha37/cvs/Linux x86_64)
Diffstat (limited to 'sys-fs/udev/udev-164-r2.ebuild')
-rw-r--r-- | sys-fs/udev/udev-164-r2.ebuild | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys-fs/udev/udev-164-r2.ebuild b/sys-fs/udev/udev-164-r2.ebuild index f391ba87bd2e..017d0c7a95b0 100644 --- a/sys-fs/udev/udev-164-r2.ebuild +++ b/sys-fs/udev/udev-164-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-164-r2.ebuild,v 1.6 2011/06/05 18:24:09 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-164-r2.ebuild,v 1.7 2011/06/05 21:09:22 robbat2 Exp $ EAPI="1" @@ -67,9 +67,13 @@ fi CONFIG_CHECK="~INOTIFY_USER ~SIGNALFD ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 ~!IDE" +# Return values: +# 2 - reliable +# 1 - unreliable +# 0 - too old udev_check_KV() { local ok=0 - if [[ ${KV_MAJOR} == 2 && ${KV_MINOR} == 6 ]] + if [[ ${KV_MAJOR} == 2 && ${KV_MINOR} == 6 ]] || [[ ${KV_MAJOR} == 3 ]] then if kernel_is -ge 2 6 ${KV_PATCH_reliable} ; then ok=2 |