diff options
author | Mark Wright <gienah@gentoo.org> | 2015-01-14 12:14:50 +0000 |
---|---|---|
committer | Mark Wright <gienah@gentoo.org> | 2015-01-14 12:14:50 +0000 |
commit | 279ae6e6871abc4465d3c7fa9394cd0a87a6db4b (patch) | |
tree | 96184ebef4ce3d0ca86565c807cf578eafa169b9 /sys-firmware | |
parent | Part of fix for Bug 533334 - sys-firmware/iwl7260-ucode-23.11.10.0 version bu... (diff) | |
download | gentoo-2-279ae6e6871abc4465d3c7fa9394cd0a87a6db4b.tar.gz gentoo-2-279ae6e6871abc4465d3c7fa9394cd0a87a6db4b.tar.bz2 gentoo-2-279ae6e6871abc4465d3c7fa9394cd0a87a6db4b.zip |
Reverse the version numbers so that users will see an upgrade instead of a downgrade, fixes Bug 533334 - sys-firmware/iwl7260-ucode-23.11.10.0 version bump.
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 618E971F)
Diffstat (limited to 'sys-firmware')
-rw-r--r-- | sys-firmware/iwl3160-ucode/ChangeLog | 21 | ||||
-rw-r--r-- | sys-firmware/iwl3160-ucode/iwl3160-ucode-0.10.11.23.ebuild (renamed from sys-firmware/iwl3160-ucode/iwl3160-ucode-23.214.9.0.ebuild) | 28 | ||||
-rw-r--r-- | sys-firmware/iwl3160-ucode/iwl3160-ucode-0.7.1.22.ebuild (renamed from sys-firmware/iwl3160-ucode/iwl3160-ucode-22.1.7.0.ebuild) | 26 | ||||
-rw-r--r-- | sys-firmware/iwl3160-ucode/iwl3160-ucode-0.8.15.22.ebuild (renamed from sys-firmware/iwl3160-ucode/iwl3160-ucode-22.15.8.0.ebuild) | 28 | ||||
-rw-r--r-- | sys-firmware/iwl3160-ucode/iwl3160-ucode-0.8.24.22.ebuild (renamed from sys-firmware/iwl3160-ucode/iwl3160-ucode-22.24.8.0.ebuild) | 28 | ||||
-rw-r--r-- | sys-firmware/iwl3160-ucode/iwl3160-ucode-0.9.214.23.ebuild (renamed from sys-firmware/iwl3160-ucode/iwl3160-ucode-25.228.9.0.ebuild) | 28 | ||||
-rw-r--r-- | sys-firmware/iwl3160-ucode/iwl3160-ucode-0.9.228.25.ebuild | 47 |
7 files changed, 150 insertions, 56 deletions
diff --git a/sys-firmware/iwl3160-ucode/ChangeLog b/sys-firmware/iwl3160-ucode/ChangeLog index effc89a3dc8c..214d5a8cc672 100644 --- a/sys-firmware/iwl3160-ucode/ChangeLog +++ b/sys-firmware/iwl3160-ucode/ChangeLog @@ -1,6 +1,23 @@ # ChangeLog for sys-firmware/iwl3160-ucode -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-firmware/iwl3160-ucode/ChangeLog,v 1.4 2014/11/17 13:52:01 gienah Exp $ +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-firmware/iwl3160-ucode/ChangeLog,v 1.5 2015/01/14 12:14:50 gienah Exp $ + +*iwl3160-ucode-0.10.11.23 (14 Jan 2015) +*iwl3160-ucode-0.8.15.22 (14 Jan 2015) +*iwl3160-ucode-0.7.1.22 (14 Jan 2015) +*iwl3160-ucode-0.8.24.22 (14 Jan 2015) +*iwl3160-ucode-0.9.228.25 (14 Jan 2015) +*iwl3160-ucode-0.9.214.23 (14 Jan 2015) + + 14 Jan 2015; Mark Wright <gienah@gentoo.org> +iwl3160-ucode-0.10.11.23.ebuild, + +iwl3160-ucode-0.7.1.22.ebuild, +iwl3160-ucode-0.8.15.22.ebuild, + +iwl3160-ucode-0.8.24.22.ebuild, +iwl3160-ucode-0.9.214.23.ebuild, + +iwl3160-ucode-0.9.228.25.ebuild, -iwl3160-ucode-22.1.7.0.ebuild, + -iwl3160-ucode-22.15.8.0.ebuild, -iwl3160-ucode-22.24.8.0.ebuild, + -iwl3160-ucode-23.214.9.0.ebuild, -iwl3160-ucode-25.228.9.0.ebuild: + Reverse the version numbers so that users will see an upgrade instead of a + downgrade, fixes Bug 533334 - sys-firmware/iwl7260-ucode-23.11.10.0 version + bump. *iwl3160-ucode-25.228.9.0 (17 Nov 2014) diff --git a/sys-firmware/iwl3160-ucode/iwl3160-ucode-23.214.9.0.ebuild b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.10.11.23.ebuild index de2e8fc472c4..83f3876b903f 100644 --- a/sys-firmware/iwl3160-ucode/iwl3160-ucode-23.214.9.0.ebuild +++ b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.10.11.23.ebuild @@ -1,19 +1,25 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-firmware/iwl3160-ucode/iwl3160-ucode-23.214.9.0.ebuild,v 1.1 2014/06/16 14:05:55 gienah Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.10.11.23.ebuild,v 1.1 2015/01/14 12:14:50 gienah Exp $ EAPI=5 -inherit linux-info +inherit linux-info versionator DEV_N="${PN:3:4}" +vc=($(get_all_version_components "${PV}")) +MY_PV="${vc[6]}.${vc[4]}.${vc[2]}.${vc[0]}" MY_PN="iwlwifi-${DEV_N}-ucode" +DV_MAJOR="3" +DV_MINOR="17" +DV_PATCH="0" + DESCRIPTION="Firmware for Intel (R) Dual Band Wireless-AC ${DEV_N}" HOMEPAGE="http://wireless.kernel.org/en/users/Drivers/iwlwifi" -SRC_URI="http://wireless.kernel.org/en/users/Drivers/iwlwifi?action=AttachFile&do=get&target=${MY_PN}-${PV}.tgz -> ${P}.tgz" +SRC_URI="http://wireless.kernel.org/en/users/Drivers/iwlwifi?action=AttachFile&do=get&target=${MY_PN}-${MY_PV}.tgz -> ${P}.tgz" LICENSE="ipw3945" -SLOT="2" +SLOT="${vc[2]}" KEYWORDS="~amd64 ~x86" IUSE="bluetooth" @@ -21,21 +27,21 @@ DEPEND="" RDEPEND="bluetooth? ( sys-firmware/iwl3160-7260-bt-ucode ) !sys-kernel/linux-firmware[-savedconfig]" -S="${WORKDIR}/${MY_PN}-${PV}" +S="${WORKDIR}/${MY_PN}-${MY_PV}" -CONFIG_CHECK="IWLMVM" +CONFIG_CHECK="~IWLMVM" ERROR_IWLMVM="CONFIG_IWLMVM is required to be enabled in /usr/src/linux/.config for the kernel to be able to load the ${DEV_N} firmware" pkg_pretend() { - if kernel_is lt 3 14 7; then + if kernel_is lt "${DV_MAJOR}" "${DV_MINOR}" "${DV_PATCH}"; then ewarn "Your kernel version is ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}." - ewarn "This microcode image requires a kernel >= 3.14.7." - ewarn "For kernel versions < 3.14.7, you may install older SLOTS" + ewarn "This microcode image requires a kernel >= ${DV_MAJOR}.${DV_MINOR}.${DV_PATCH}." + ewarn "For kernel versions < ${DV_MAJOR}.${DV_MINOR}.${DV_PATCH}, you may install older SLOTS" fi } src_install() { insinto /lib/firmware - doins "${S}/iwlwifi-${DEV_N}-9.ucode" + doins "${S}/iwlwifi-${DEV_N}-${vc[2]}.ucode" dodoc README* } diff --git a/sys-firmware/iwl3160-ucode/iwl3160-ucode-22.1.7.0.ebuild b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.7.1.22.ebuild index 753e9413f89f..677ac95a3efb 100644 --- a/sys-firmware/iwl3160-ucode/iwl3160-ucode-22.1.7.0.ebuild +++ b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.7.1.22.ebuild @@ -1,19 +1,25 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-firmware/iwl3160-ucode/iwl3160-ucode-22.1.7.0.ebuild,v 1.1 2014/01/25 03:35:32 gienah Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.7.1.22.ebuild,v 1.1 2015/01/14 12:14:50 gienah Exp $ EAPI=5 -inherit linux-info +inherit linux-info versionator DEV_N="${PN:3:4}" +vc=($(get_all_version_components "${PV}")) +MY_PV="${vc[6]}.${vc[4]}.${vc[2]}.${vc[0]}" MY_PN="iwlwifi-${DEV_N}-ucode" +DV_MAJOR="3" +DV_MINOR="10" +DV_PATH="0" + DESCRIPTION="Firmware for Intel (R) Dual Band Wireless-AC ${DEV_N}" HOMEPAGE="http://wireless.kernel.org/en/users/Drivers/iwlwifi" -SRC_URI="http://wireless.kernel.org/en/users/Drivers/iwlwifi?action=AttachFile&do=get&target=${MY_PN}-${PV}.tgz -> ${P}.tgz" +SRC_URI="http://wireless.kernel.org/en/users/Drivers/iwlwifi?action=AttachFile&do=get&target=${MY_PN}-${MY_PV}.tgz -> ${P}.tgz" LICENSE="ipw3945" -SLOT="0" +SLOT="${vc[2]}" KEYWORDS="~amd64 ~x86" IUSE="bluetooth" @@ -21,20 +27,20 @@ DEPEND="" RDEPEND="bluetooth? ( sys-firmware/iwl3160-7260-bt-ucode ) !sys-kernel/linux-firmware[-savedconfig]" -S="${WORKDIR}/${MY_PN}-${PV}" +S="${WORKDIR}/${MY_PN}-${MY_PV}" -CONFIG_CHECK="IWLMVM" +CONFIG_CHECK="~IWLMVM" ERROR_IWLMVM="CONFIG_IWLMVM is required to be enabled in /usr/src/linux/.config for the kernel to be able to load the ${DEV_N} firmware" pkg_pretend() { - if kernel_is lt 3 10 0; then + if kernel_is lt "${DV_MAJOR}" "${DV_MINOR}" "${DV_PATCH}"; then ewarn "Your kernel version is ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}." - ewarn "This microcode image requires a kernel >= 3.10.0." + ewarn "This microcode image requires a kernel >= ${DV_MAJOR}.${DV_MINOR}.${DV_PATCH}." fi } src_install() { insinto /lib/firmware - doins "${S}/iwlwifi-${DEV_N}-7.ucode" + doins "${S}/iwlwifi-${DEV_N}-${vc[2]}.ucode" dodoc README* } diff --git a/sys-firmware/iwl3160-ucode/iwl3160-ucode-22.15.8.0.ebuild b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.8.15.22.ebuild index 08de19062697..ef3cef561c7b 100644 --- a/sys-firmware/iwl3160-ucode/iwl3160-ucode-22.15.8.0.ebuild +++ b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.8.15.22.ebuild @@ -1,19 +1,25 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-firmware/iwl3160-ucode/iwl3160-ucode-22.15.8.0.ebuild,v 1.2 2014/06/16 14:05:55 gienah Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.8.15.22.ebuild,v 1.1 2015/01/14 12:14:50 gienah Exp $ EAPI=5 -inherit linux-info +inherit linux-info versionator DEV_N="${PN:3:4}" +vc=($(get_all_version_components "${PV}")) +MY_PV="${vc[6]}.${vc[4]}.${vc[2]}.${vc[0]}" MY_PN="iwlwifi-${DEV_N}-ucode" +DV_MAJOR="3" +DV_MINOR="13" +DV_PATH="0" + DESCRIPTION="Firmware for Intel (R) Dual Band Wireless-AC ${DEV_N}" HOMEPAGE="http://wireless.kernel.org/en/users/Drivers/iwlwifi" -SRC_URI="http://wireless.kernel.org/en/users/Drivers/iwlwifi?action=AttachFile&do=get&target=${MY_PN}-${PV}.tgz -> ${P}.tgz" +SRC_URI="http://wireless.kernel.org/en/users/Drivers/iwlwifi?action=AttachFile&do=get&target=${MY_PN}-${MY_PV}.tgz -> ${P}.tgz" LICENSE="ipw3945" -SLOT="1" +SLOT="${vc[2]}" KEYWORDS="~amd64 ~x86" IUSE="bluetooth" @@ -21,21 +27,21 @@ DEPEND="" RDEPEND="bluetooth? ( sys-firmware/iwl3160-7260-bt-ucode ) !sys-kernel/linux-firmware[-savedconfig]" -S="${WORKDIR}/${MY_PN}-${PV}" +S="${WORKDIR}/${MY_PN}-${MY_PV}" -CONFIG_CHECK="IWLMVM" +CONFIG_CHECK="~IWLMVM" ERROR_IWLMVM="CONFIG_IWLMVM is required to be enabled in /usr/src/linux/.config for the kernel to be able to load the ${DEV_N} firmware" pkg_pretend() { - if kernel_is lt 3 13 0; then + if kernel_is lt "${DV_MAJOR}" "${DV_MINOR}" "${DV_PATCH}"; then ewarn "Your kernel version is ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}." - ewarn "This microcode image requires a kernel >= 3.13.0." - ewarn "For kernel versions < 3.13.0, you may install older SLOTS" + ewarn "This microcode image requires a kernel >= ${DV_MAJOR}.${DV_MINOR}.${DV_PATCH}." + ewarn "For kernel versions < ${DV_MAJOR}.${DV_MINOR}.${DV_PATCH}, you may install older SLOTS" fi } src_install() { insinto /lib/firmware - doins "${S}/iwlwifi-${DEV_N}-8.ucode" + doins "${S}/iwlwifi-${DEV_N}-${vc[2]}.ucode" dodoc README* } diff --git a/sys-firmware/iwl3160-ucode/iwl3160-ucode-22.24.8.0.ebuild b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.8.24.22.ebuild index a04e7a2ed21f..b1b1ab42e949 100644 --- a/sys-firmware/iwl3160-ucode/iwl3160-ucode-22.24.8.0.ebuild +++ b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.8.24.22.ebuild @@ -1,19 +1,25 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-firmware/iwl3160-ucode/iwl3160-ucode-22.24.8.0.ebuild,v 1.2 2014/06/16 14:05:55 gienah Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.8.24.22.ebuild,v 1.1 2015/01/14 12:14:50 gienah Exp $ EAPI=5 -inherit linux-info +inherit linux-info versionator DEV_N="${PN:3:4}" +vc=($(get_all_version_components "${PV}")) +MY_PV="${vc[6]}.${vc[4]}.${vc[2]}.${vc[0]}" MY_PN="iwlwifi-${DEV_N}-ucode" +DV_MAJOR="3" +DV_MINOR="13" +DV_PATCH="0" + DESCRIPTION="Firmware for Intel (R) Dual Band Wireless-AC ${DEV_N}" HOMEPAGE="http://wireless.kernel.org/en/users/Drivers/iwlwifi" -SRC_URI="http://wireless.kernel.org/en/users/Drivers/iwlwifi?action=AttachFile&do=get&target=${MY_PN}-${PV}.tgz -> ${P}.tgz" +SRC_URI="http://wireless.kernel.org/en/users/Drivers/iwlwifi?action=AttachFile&do=get&target=${MY_PN}-${MY_PV}.tgz -> ${P}.tgz" LICENSE="ipw3945" -SLOT="1" +SLOT="${vc[2]}" KEYWORDS="~amd64 ~x86" IUSE="bluetooth" @@ -21,21 +27,21 @@ DEPEND="" RDEPEND="bluetooth? ( sys-firmware/iwl3160-7260-bt-ucode ) !sys-kernel/linux-firmware[-savedconfig]" -S="${WORKDIR}/${MY_PN}-${PV}" +S="${WORKDIR}/${MY_PN}-${MY_PV}" -CONFIG_CHECK="IWLMVM" +CONFIG_CHECK="~IWLMVM" ERROR_IWLMVM="CONFIG_IWLMVM is required to be enabled in /usr/src/linux/.config for the kernel to be able to load the ${DEV_N} firmware" pkg_pretend() { - if kernel_is lt 3 13 0; then + if kernel_is lt "${DV_MAJOR}" "${DV_MINOR}" "${DV_PATCH}"; then ewarn "Your kernel version is ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}." - ewarn "This microcode image requires a kernel >= 3.13.0." - ewarn "For kernel versions < 3.13.0, you may install older SLOTS" + ewarn "This microcode image requires a kernel >= ${DV_MAJOR}.${DV_MINOR}.${DV_PATCH}." + ewarn "For kernel versions < ${DV_MAJOR}.${DV_MINOR}.${DV_PATCH}, you may install older SLOTS" fi } src_install() { insinto /lib/firmware - doins "${S}/iwlwifi-${DEV_N}-8.ucode" + doins "${S}/iwlwifi-${DEV_N}-${vc[2]}.ucode" dodoc README* } diff --git a/sys-firmware/iwl3160-ucode/iwl3160-ucode-25.228.9.0.ebuild b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.9.214.23.ebuild index e7ed6e39c841..85ea9e640fa2 100644 --- a/sys-firmware/iwl3160-ucode/iwl3160-ucode-25.228.9.0.ebuild +++ b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.9.214.23.ebuild @@ -1,19 +1,25 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-firmware/iwl3160-ucode/iwl3160-ucode-25.228.9.0.ebuild,v 1.1 2014/11/17 13:52:01 gienah Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.9.214.23.ebuild,v 1.1 2015/01/14 12:14:50 gienah Exp $ EAPI=5 -inherit linux-info +inherit linux-info versionator DEV_N="${PN:3:4}" +vc=($(get_all_version_components "${PV}")) +MY_PV="${vc[6]}.${vc[4]}.${vc[2]}.${vc[0]}" MY_PN="iwlwifi-${DEV_N}-ucode" +DV_MAJOR="3" +DV_MINOR="14" +DV_PATH="7" + DESCRIPTION="Firmware for Intel (R) Dual Band Wireless-AC ${DEV_N}" HOMEPAGE="http://wireless.kernel.org/en/users/Drivers/iwlwifi" -SRC_URI="http://wireless.kernel.org/en/users/Drivers/iwlwifi?action=AttachFile&do=get&target=${MY_PN}-${PV}.tgz -> ${P}.tgz" +SRC_URI="http://wireless.kernel.org/en/users/Drivers/iwlwifi?action=AttachFile&do=get&target=${MY_PN}-${MY_PV}.tgz -> ${P}.tgz" LICENSE="ipw3945" -SLOT="2" +SLOT="${vc[2]}" KEYWORDS="~amd64 ~x86" IUSE="bluetooth" @@ -21,21 +27,21 @@ DEPEND="" RDEPEND="bluetooth? ( sys-firmware/iwl3160-7260-bt-ucode ) !sys-kernel/linux-firmware[-savedconfig]" -S="${WORKDIR}/${MY_PN}-${PV}" +S="${WORKDIR}/${MY_PN}-${MY_PV}" -CONFIG_CHECK="IWLMVM" +CONFIG_CHECK="~IWLMVM" ERROR_IWLMVM="CONFIG_IWLMVM is required to be enabled in /usr/src/linux/.config for the kernel to be able to load the ${DEV_N} firmware" pkg_pretend() { - if kernel_is lt 3 14 9; then + if kernel_is lt "${DV_MAJOR}" "${DV_MINOR}" "${DV_PATCH}"; then ewarn "Your kernel version is ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}." - ewarn "This microcode image requires a kernel >= 3.14.9." - ewarn "For kernel versions < 3.14.9, you may install older SLOTS" + ewarn "This microcode image requires a kernel >= ${DV_MAJOR}.${DV_MINOR}.${DV_PATCH}." + ewarn "For kernel versions < ${DV_MAJOR}.${DV_MINOR}.${DV_PATCH}, you may install older SLOTS" fi } src_install() { insinto /lib/firmware - doins "${S}/iwlwifi-${DEV_N}-9.ucode" + doins "${S}/iwlwifi-${DEV_N}-${vc[2]}.ucode" dodoc README* } diff --git a/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.9.228.25.ebuild b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.9.228.25.ebuild new file mode 100644 index 000000000000..f50cb50467b0 --- /dev/null +++ b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.9.228.25.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.9.228.25.ebuild,v 1.1 2015/01/14 12:14:50 gienah Exp $ + +EAPI=5 +inherit linux-info versionator + +DEV_N="${PN:3:4}" +vc=($(get_all_version_components "${PV}")) +MY_PV="${vc[6]}.${vc[4]}.${vc[2]}.${vc[0]}" +MY_PN="iwlwifi-${DEV_N}-ucode" + +DV_MAJOR="3" +DV_MINOR="14" +DV_PATCH="9" + +DESCRIPTION="Firmware for Intel (R) Dual Band Wireless-AC ${DEV_N}" +HOMEPAGE="http://wireless.kernel.org/en/users/Drivers/iwlwifi" +SRC_URI="http://wireless.kernel.org/en/users/Drivers/iwlwifi?action=AttachFile&do=get&target=${MY_PN}-${MY_PV}.tgz -> ${P}.tgz" + +LICENSE="ipw3945" +SLOT="${vc[2]}" +KEYWORDS="~amd64 ~x86" +IUSE="bluetooth" + +DEPEND="" +RDEPEND="bluetooth? ( sys-firmware/iwl3160-7260-bt-ucode ) + !sys-kernel/linux-firmware[-savedconfig]" + +S="${WORKDIR}/${MY_PN}-${MY_PV}" + +CONFIG_CHECK="~IWLMVM" +ERROR_IWLMVM="CONFIG_IWLMVM is required to be enabled in /usr/src/linux/.config for the kernel to be able to load the ${DEV_N} firmware" + +pkg_pretend() { + if kernel_is lt "${DV_MAJOR}" "${DV_MINOR}" "${DV_PATCH}"; then + ewarn "Your kernel version is ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}." + ewarn "This microcode image requires a kernel >= ${DV_MAJOR}.${DV_MINOR}.${DV_PATCH}." + ewarn "For kernel versions < ${DV_MAJOR}.${DV_MINOR}.${DV_PATCH}, you may install older SLOTS" + fi +} + +src_install() { + insinto /lib/firmware + doins "${S}/iwlwifi-${DEV_N}-${vc[2]}.ucode" + dodoc README* +} |