summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sys-firmware
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sys-firmware')
-rw-r--r--sys-firmware/alsa-firmware/Manifest2
-rw-r--r--sys-firmware/alsa-firmware/alsa-firmware-1.0.28.ebuild72
-rw-r--r--sys-firmware/alsa-firmware/alsa-firmware-1.0.29.ebuild72
-rw-r--r--sys-firmware/alsa-firmware/files/52-usx2yaudio.rules7
-rw-r--r--sys-firmware/alsa-firmware/metadata.xml8
-rw-r--r--sys-firmware/atmel-firmware/Manifest1
-rw-r--r--sys-firmware/atmel-firmware/atmel-firmware-1.3-r1.ebuild56
-rw-r--r--sys-firmware/atmel-firmware/metadata.xml5
-rw-r--r--sys-firmware/b43-firmware/Manifest2
-rw-r--r--sys-firmware/b43-firmware/b43-firmware-5.100.138.ebuild33
-rw-r--r--sys-firmware/b43-firmware/b43-firmware-6.30.163.46.ebuild33
-rw-r--r--sys-firmware/b43-firmware/metadata.xml11
-rw-r--r--sys-firmware/b43legacy-firmware/Manifest1
-rw-r--r--sys-firmware/b43legacy-firmware/b43legacy-firmware-3.130.20.0.ebuild38
-rw-r--r--sys-firmware/b43legacy-firmware/metadata.xml11
-rw-r--r--sys-firmware/bluez-firmware/Manifest1
-rw-r--r--sys-firmware/bluez-firmware/bluez-firmware-1.2.ebuild22
-rw-r--r--sys-firmware/bluez-firmware/metadata.xml5
-rw-r--r--sys-firmware/ipw2100-firmware/Manifest1
-rw-r--r--sys-firmware/ipw2100-firmware/ipw2100-firmware-1.3.ebuild23
-rw-r--r--sys-firmware/ipw2100-firmware/metadata.xml5
-rw-r--r--sys-firmware/ipw2200-firmware/Manifest1
-rw-r--r--sys-firmware/ipw2200-firmware/ipw2200-firmware-3.1.ebuild23
-rw-r--r--sys-firmware/ipw2200-firmware/metadata.xml5
-rw-r--r--sys-firmware/ipxe/Manifest4
-rw-r--r--sys-firmware/ipxe/files/ipxe-1.0.0_p20130925-git-version.patch38
-rw-r--r--sys-firmware/ipxe/ipxe-1.0.0_p20120905.ebuild72
-rw-r--r--sys-firmware/ipxe/ipxe-1.0.0_p20130225.ebuild80
-rw-r--r--sys-firmware/ipxe/ipxe-1.0.0_p20130624.ebuild94
-rw-r--r--sys-firmware/ipxe/ipxe-1.0.0_p20130925.ebuild96
-rw-r--r--sys-firmware/ipxe/metadata.xml16
-rw-r--r--sys-firmware/ivtv-firmware/Manifest1
-rw-r--r--sys-firmware/ivtv-firmware/ivtv-firmware-20080701-r1.ebuild22
-rw-r--r--sys-firmware/ivtv-firmware/metadata.xml8
-rw-r--r--sys-firmware/iwl1000-ucode/Manifest2
-rw-r--r--sys-firmware/iwl1000-ucode/iwl1000-ucode-128.50.3.1.ebuild23
-rw-r--r--sys-firmware/iwl1000-ucode/iwl1000-ucode-39.31.5.1.ebuild34
-rw-r--r--sys-firmware/iwl1000-ucode/metadata.xml11
-rw-r--r--sys-firmware/iwl3160-7260-bt-ucode/Manifest2
-rw-r--r--sys-firmware/iwl3160-7260-bt-ucode/iwl3160-7260-bt-ucode-37.8.10.ebuild40
-rw-r--r--sys-firmware/iwl3160-7260-bt-ucode/iwl3160-7260-bt-ucode-37.8.10_p1.ebuild42
-rw-r--r--sys-firmware/iwl3160-7260-bt-ucode/metadata.xml13
-rw-r--r--sys-firmware/iwl3160-ucode/Manifest8
-rw-r--r--sys-firmware/iwl3160-ucode/iwl3160-ucode-0.10.11.23.ebuild47
-rw-r--r--sys-firmware/iwl3160-ucode/iwl3160-ucode-0.10.15.23.ebuild47
-rw-r--r--sys-firmware/iwl3160-ucode/iwl3160-ucode-0.12.16.25.ebuild47
-rw-r--r--sys-firmware/iwl3160-ucode/iwl3160-ucode-0.7.1.22.ebuild46
-rw-r--r--sys-firmware/iwl3160-ucode/iwl3160-ucode-0.8.15.22.ebuild47
-rw-r--r--sys-firmware/iwl3160-ucode/iwl3160-ucode-0.8.24.22.ebuild47
-rw-r--r--sys-firmware/iwl3160-ucode/iwl3160-ucode-0.9.214.23.ebuild47
-rw-r--r--sys-firmware/iwl3160-ucode/iwl3160-ucode-0.9.228.25.ebuild47
-rw-r--r--sys-firmware/iwl3160-ucode/metadata.xml10
-rw-r--r--sys-firmware/iwl6000-ucode/Manifest1
-rw-r--r--sys-firmware/iwl6000-ucode/iwl6000-ucode-9.221.4.1.ebuild25
-rw-r--r--sys-firmware/iwl6000-ucode/metadata.xml7
-rw-r--r--sys-firmware/iwl6005-ucode/Manifest2
-rw-r--r--sys-firmware/iwl6005-ucode/iwl6005-ucode-17.168.5.3.ebuild25
-rw-r--r--sys-firmware/iwl6005-ucode/iwl6005-ucode-18.168.6.1.ebuild25
-rw-r--r--sys-firmware/iwl6005-ucode/metadata.xml10
-rw-r--r--sys-firmware/iwl6030-ucode/Manifest2
-rw-r--r--sys-firmware/iwl6030-ucode/iwl6030-ucode-17.168.5.2.ebuild25
-rw-r--r--sys-firmware/iwl6030-ucode/iwl6030-ucode-18.168.6.1.ebuild25
-rw-r--r--sys-firmware/iwl6030-ucode/metadata.xml10
-rw-r--r--sys-firmware/iwl6050-ucode/Manifest2
-rw-r--r--sys-firmware/iwl6050-ucode/iwl6050-ucode-41.28.5.1.ebuild34
-rw-r--r--sys-firmware/iwl6050-ucode/iwl6050-ucode-9.201.4.1.ebuild25
-rw-r--r--sys-firmware/iwl6050-ucode/metadata.xml7
-rw-r--r--sys-firmware/iwl7260-ucode/Manifest8
-rw-r--r--sys-firmware/iwl7260-ucode/iwl7260-ucode-0.10.11.23.ebuild47
-rw-r--r--sys-firmware/iwl7260-ucode/iwl7260-ucode-0.10.15.23.ebuild47
-rw-r--r--sys-firmware/iwl7260-ucode/iwl7260-ucode-0.12.16.25.ebuild47
-rw-r--r--sys-firmware/iwl7260-ucode/iwl7260-ucode-0.7.1.22.ebuild46
-rw-r--r--sys-firmware/iwl7260-ucode/iwl7260-ucode-0.8.15.22.ebuild47
-rw-r--r--sys-firmware/iwl7260-ucode/iwl7260-ucode-0.8.24.22.ebuild47
-rw-r--r--sys-firmware/iwl7260-ucode/iwl7260-ucode-0.9.214.23.ebuild47
-rw-r--r--sys-firmware/iwl7260-ucode/iwl7260-ucode-0.9.228.25.ebuild43
-rw-r--r--sys-firmware/iwl7260-ucode/metadata.xml10
-rw-r--r--sys-firmware/metadata.xml11
-rw-r--r--sys-firmware/nvidia-firmware/Manifest4
-rw-r--r--sys-firmware/nvidia-firmware/metadata.xml8
-rw-r--r--sys-firmware/nvidia-firmware/nvidia-firmware-325.15.ebuild43
-rw-r--r--sys-firmware/nvidia-firmware/nvidia-firmware-340.32.ebuild44
-rw-r--r--sys-firmware/seabios/Manifest3
-rw-r--r--sys-firmware/seabios/files/seavgabios/README1
-rw-r--r--sys-firmware/seabios/files/seavgabios/config.vga-cirrus3
-rw-r--r--sys-firmware/seabios/files/seavgabios/config.vga-isavga3
-rw-r--r--sys-firmware/seabios/files/seavgabios/config.vga-qxl6
-rw-r--r--sys-firmware/seabios/files/seavgabios/config.vga-stdvga3
-rw-r--r--sys-firmware/seabios/files/seavgabios/config.vga-vmware6
-rw-r--r--sys-firmware/seabios/metadata.xml14
-rw-r--r--sys-firmware/seabios/seabios-1.7.5-r1.ebuild141
-rw-r--r--sys-firmware/seabios/seabios-1.7.5.ebuild108
-rw-r--r--sys-firmware/sgabios/Manifest2
-rw-r--r--sys-firmware/sgabios/files/sgabios-0.1_pre8-build-cc.patch23
-rw-r--r--sys-firmware/sgabios/files/sgabios-0.1_pre8-makefile.patch12
-rw-r--r--sys-firmware/sgabios/metadata.xml10
-rw-r--r--sys-firmware/sgabios/sgabios-0.1_pre8.ebuild50
-rw-r--r--sys-firmware/sigrok-firmware-fx2lafw/Manifest2
-rw-r--r--sys-firmware/sigrok-firmware-fx2lafw/metadata.xml8
-rw-r--r--sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-0.1.2.ebuild47
-rw-r--r--sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-9999.ebuild47
-rw-r--r--sys-firmware/tt-s2-6400-firmware/Manifest4
-rw-r--r--sys-firmware/tt-s2-6400-firmware/metadata.xml9
-rw-r--r--sys-firmware/tt-s2-6400-firmware/tt-s2-6400-firmware-0.5.0.ebuild28
-rw-r--r--sys-firmware/tt-s2-6400-firmware/tt-s2-6400-firmware-0.5.1.ebuild28
-rw-r--r--sys-firmware/vgabios/Manifest5
-rw-r--r--sys-firmware/vgabios/metadata.xml12
-rw-r--r--sys-firmware/vgabios/vgabios-0.6c-r1.ebuild72
-rw-r--r--sys-firmware/vgabios/vgabios-0.7a-r1.ebuild72
-rw-r--r--sys-firmware/vgabios/vgabios-0.7a.ebuild73
-rw-r--r--sys-firmware/zd1201-firmware/Manifest1
-rw-r--r--sys-firmware/zd1201-firmware/metadata.xml10
-rw-r--r--sys-firmware/zd1201-firmware/zd1201-firmware-0.14.ebuild26
-rw-r--r--sys-firmware/zd1211-firmware/Manifest2
-rw-r--r--sys-firmware/zd1211-firmware/metadata.xml10
-rw-r--r--sys-firmware/zd1211-firmware/zd1211-firmware-1.4.ebuild22
-rw-r--r--sys-firmware/zd1211-firmware/zd1211-firmware-1.5.ebuild22
117 files changed, 3038 insertions, 0 deletions
diff --git a/sys-firmware/alsa-firmware/Manifest b/sys-firmware/alsa-firmware/Manifest
new file mode 100644
index 000000000000..03d2aa913c4f
--- /dev/null
+++ b/sys-firmware/alsa-firmware/Manifest
@@ -0,0 +1,2 @@
+DIST alsa-firmware-1.0.28.tar.bz2 3931211 SHA256 f9dc0be0cc8825a7f0302f307dd04f8732855bad60ee3ab00e795bd353c03779 SHA512 47b20b59e4d7d78c3315761d5cc0a1f090c286cd97dc42c84585b0e7c66a17d994aed7c82d2f095c83cd436e3276be87860f9d68a13a60c39bbdd97c47bf22c9 WHIRLPOOL 867af28966c2cca99e644733cebbdda6caede1ff21155ffd74b3eb0c60971f14c26b55d0fdc243c3b7d6379e813c0d1b2919a926d4f78e8bd6495a88404c066a
+DIST alsa-firmware-1.0.29.tar.bz2 4996942 SHA256 3c5ef17959e58831504d3a25e76d0a428bd9c52ebd330e06b07232ab8af4cc3d SHA512 f4307c33fb6f401c86e88b82878b8300447ac97bbbe06e83bd69a38cbdd7b4a0ba6faa4f20081f11167805de65c66b7db643483f8669eae3284bc1c4da8d44a4 WHIRLPOOL de590d136646050dd54c3ab35b16b1a87113a71bfc83c55dbc8ddc0f2a5fbbe6530a7ac71e22f4c6cbff7c1a0f0510fdd668aa324aefa3d022cd60fa81c28c44
diff --git a/sys-firmware/alsa-firmware/alsa-firmware-1.0.28.ebuild b/sys-firmware/alsa-firmware/alsa-firmware-1.0.28.ebuild
new file mode 100644
index 000000000000..a17faf837b27
--- /dev/null
+++ b/sys-firmware/alsa-firmware/alsa-firmware-1.0.28.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit udev
+
+DESCRIPTION="Advanced Linux Sound Architecture firmware"
+HOMEPAGE="http://www.alsa-project.org/"
+SRC_URI="mirror://alsaproject/firmware/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+
+ECHOAUDIO_CARDS="alsa_cards_darla20 alsa_cards_gina20 alsa_cards_layla20
+alsa_cards_darla24 alsa_cards_gina24 alsa_cards_layla24 alsa_cards_mona
+alsa_cards_mia alsa_cards_indigo alsa_cards_indigoio alsa_cards_echo3g"
+
+EMU_CARDS="alsa_cards_emu1212 alsa_cards_emu1616 alsa_cards_emu1820
+alsa_cards_emu10k1"
+
+IUSE="alsa_cards_cs46xx alsa_cards_pcxhr alsa_cards_vx222 alsa_cards_usb-usx2y alsa_cards_hdsp
+alsa_cards_hdspm alsa_cards_mixart alsa_cards_asihpi alsa_cards_sb16
+alsa_cards_korg1212 alsa_cards_maestro3 alsa_cards_ymfpci alsa_cards_wavefront
+alsa_cards_msnd-pinnacle alsa_cards_aica alsa_cards_ca0132 ${ECHOAUDIO_CARDS}
+${EMU_CARDS}"
+
+RDEPEND="alsa_cards_usb-usx2y? ( sys-apps/fxload )
+ alsa_cards_hdsp? ( media-sound/alsa-tools )
+ alsa_cards_hdspm? ( media-sound/alsa-tools )"
+
+DOCS="README"
+
+src_configure() {
+ econf --with-hotplug-dir=/lib/firmware
+}
+
+src_install() {
+ default
+
+ use alsa_cards_pcxhr || rm -rf "${ED}"/usr/share/alsa/firmware/pcxhrloader "${ED}"/lib/firmware/pcxhr
+ use alsa_cards_vx222 || rm -rf "${ED}"/usr/share/alsa/firmware/vxloader "${ED}"/lib/firmware/vx
+ use alsa_cards_usb-usx2y || rm -rf "${ED}"/usr/share/alsa/firmware/usx2yloader "${ED}"/lib/firmware/vx
+ use alsa_cards_mixart || rm -rf "${ED}"/usr/share/alsa/firmware/mixartloader "${ED}"/lib/firmware/mixart
+ use alsa_cards_hdsp || use alsa_cards_hdspm || rm -rf "${ED}"/usr/share/alsa/firmware/hdsploader
+ use alsa_cards_asihpi || rm -rf "${ED}"/lib/firmware/asihpi
+ use alsa_cards_sb16 || rm -rf "${ED}"/lib/firmware/sb16
+ use alsa_cards_korg1212 || rm -rf "${ED}"/lib/firmware/korg
+ use alsa_cards_maestro3 || rm -rf "${ED}"/lib/firmware/ess
+ use alsa_cards_ymfpci || rm -rf "${ED}"/lib/firmware/yamaha
+ use alsa_cards_wavefront || rm -rf "${ED}"/lib/firmware/wavefront
+ use alsa_cards_msnd-pinnacle || rm -rf "${ED}"/lib/firmware/turtlebeach
+ use alsa_cards_aica || rm -rf "${ED}"/lib/firmware/aica_firmware.bin
+ use alsa_cards_ca0132 || rm -rf "${ED}"/lib/firmware/c{tefx,tspeq}.bin
+ use alsa_cards_cs46xx || rm -rf "${ED}"/lib/firmware/cs46xx
+
+ local ea="no"
+ for card in ${ECHOAUDIO_CARDS}; do
+ use ${card} && ea="yes" && break
+ done
+
+ local emu="no"
+ for card in ${EMU_CARDS}; do
+ use ${card} && emu="yes" && break
+ done
+
+ [[ ${ea} == "no" ]] && rm -rf "${ED}"/lib/firmware/ea
+ [[ ${emu} == "no" ]] && rm -rf "${ED}"/lib/firmware/emu
+
+ use alsa_cards_usb-usx2y && udev_dorules "${FILESDIR}"/52-usx2yaudio.rules
+}
diff --git a/sys-firmware/alsa-firmware/alsa-firmware-1.0.29.ebuild b/sys-firmware/alsa-firmware/alsa-firmware-1.0.29.ebuild
new file mode 100644
index 000000000000..fbebd7deb373
--- /dev/null
+++ b/sys-firmware/alsa-firmware/alsa-firmware-1.0.29.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit udev
+
+DESCRIPTION="Advanced Linux Sound Architecture firmware"
+HOMEPAGE="http://www.alsa-project.org/"
+SRC_URI="mirror://alsaproject/firmware/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+
+ECHOAUDIO_CARDS="alsa_cards_darla20 alsa_cards_gina20 alsa_cards_layla20
+alsa_cards_darla24 alsa_cards_gina24 alsa_cards_layla24 alsa_cards_mona
+alsa_cards_mia alsa_cards_indigo alsa_cards_indigoio alsa_cards_echo3g"
+
+EMU_CARDS="alsa_cards_emu1212 alsa_cards_emu1616 alsa_cards_emu1820
+alsa_cards_emu10k1"
+
+IUSE="alsa_cards_cs46xx alsa_cards_pcxhr alsa_cards_vx222 alsa_cards_usb-usx2y alsa_cards_hdsp
+alsa_cards_hdspm alsa_cards_mixart alsa_cards_asihpi alsa_cards_sb16
+alsa_cards_korg1212 alsa_cards_maestro3 alsa_cards_ymfpci alsa_cards_wavefront
+alsa_cards_msnd-pinnacle alsa_cards_aica alsa_cards_ca0132 ${ECHOAUDIO_CARDS}
+${EMU_CARDS}"
+
+RDEPEND="alsa_cards_usb-usx2y? ( sys-apps/fxload )
+ alsa_cards_hdsp? ( media-sound/alsa-tools )
+ alsa_cards_hdspm? ( media-sound/alsa-tools )"
+
+DOCS="README"
+
+src_configure() {
+ econf --with-hotplug-dir=/lib/firmware
+}
+
+src_install() {
+ default
+
+ use alsa_cards_pcxhr || rm -rf "${ED}"/usr/share/alsa/firmware/pcxhrloader "${ED}"/lib/firmware/pcxhr
+ use alsa_cards_vx222 || rm -rf "${ED}"/usr/share/alsa/firmware/vxloader "${ED}"/lib/firmware/vx
+ use alsa_cards_usb-usx2y || rm -rf "${ED}"/usr/share/alsa/firmware/usx2yloader "${ED}"/lib/firmware/vx
+ use alsa_cards_mixart || rm -rf "${ED}"/usr/share/alsa/firmware/mixartloader "${ED}"/lib/firmware/mixart
+ use alsa_cards_hdsp || use alsa_cards_hdspm || rm -rf "${ED}"/usr/share/alsa/firmware/hdsploader
+ use alsa_cards_asihpi || rm -rf "${ED}"/lib/firmware/asihpi
+ use alsa_cards_sb16 || rm -rf "${ED}"/lib/firmware/sb16
+ use alsa_cards_korg1212 || rm -rf "${ED}"/lib/firmware/korg
+ use alsa_cards_maestro3 || rm -rf "${ED}"/lib/firmware/ess
+ use alsa_cards_ymfpci || rm -rf "${ED}"/lib/firmware/yamaha
+ use alsa_cards_wavefront || rm -rf "${ED}"/lib/firmware/wavefront
+ use alsa_cards_msnd-pinnacle || rm -rf "${ED}"/lib/firmware/turtlebeach
+ use alsa_cards_aica || rm -rf "${ED}"/lib/firmware/aica_firmware.bin
+ use alsa_cards_ca0132 || rm -rf "${ED}"/lib/firmware/c{tefx,tspeq}.bin
+ use alsa_cards_cs46xx || rm -rf "${ED}"/lib/firmware/cs46xx
+
+ local ea="no"
+ for card in ${ECHOAUDIO_CARDS}; do
+ use ${card} && ea="yes" && break
+ done
+
+ local emu="no"
+ for card in ${EMU_CARDS}; do
+ use ${card} && emu="yes" && break
+ done
+
+ [[ ${ea} == "no" ]] && rm -rf "${ED}"/lib/firmware/ea
+ [[ ${emu} == "no" ]] && rm -rf "${ED}"/lib/firmware/emu
+
+ use alsa_cards_usb-usx2y && udev_dorules "${FILESDIR}"/52-usx2yaudio.rules
+}
diff --git a/sys-firmware/alsa-firmware/files/52-usx2yaudio.rules b/sys-firmware/alsa-firmware/files/52-usx2yaudio.rules
new file mode 100644
index 000000000000..988de4d36c4e
--- /dev/null
+++ b/sys-firmware/alsa-firmware/files/52-usx2yaudio.rules
@@ -0,0 +1,7 @@
+# Load firmware via fxload
+
+SUBSYSTEM=="usb_device", ACTION=="add", ATTRS{idVendor}=="1604", ATTRS{idProduct}=="800[157]", RUN+="/usr/bin/usx2yloader"
+SUBSYSTEM=="usb_device", ACTION=="add", ATTRS{idVendor}=="1604", ATTRS{idProduct}=="800[15]", RUN+="/sbin/startproc /usr/bin/us428control"
+SUBSYSTEM=="usb_device", ACTION=="add", ATTRS{idVendor}=="1604", ATTRS{idProduct}=="8000", RUN+="/sbin/fxload -s /usr/share/alsa/firmware/usx2yloader/tascam_loader.ihx -I /usr/share/alsa/firmware/usx2yloader/us428fw.ihx -D %N"
+SUBSYSTEM=="usb_device", ACTION=="add", ATTRS{idVendor}=="1604", ATTRS{idProduct}=="8004", RUN+="/sbin/fxload -s /usr/share/alsa/firmware/usx2yloader/tascam_loader.ihx -I /usr/share/alsa/firmware/usx2yloader/us224fw.ihx -D %N"
+SUBSYSTEM=="usb_device", ACTION=="add", ATTRS{idVendor}=="1604", ATTRS{idProduct}=="8006", RUN+="/sbin/fxload -s /usr/share/alsa/firmware/usx2yloader/tascam_loader.ihx -I /usr/share/alsa/firmware/usx2yloader/us122fw.ihx -D %N"
diff --git a/sys-firmware/alsa-firmware/metadata.xml b/sys-firmware/alsa-firmware/metadata.xml
new file mode 100644
index 000000000000..8987e55f2c06
--- /dev/null
+++ b/sys-firmware/alsa-firmware/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>alsa</herd>
+<maintainer>
+<email>alsa-bugs@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/sys-firmware/atmel-firmware/Manifest b/sys-firmware/atmel-firmware/Manifest
new file mode 100644
index 000000000000..3a5770d4371a
--- /dev/null
+++ b/sys-firmware/atmel-firmware/Manifest
@@ -0,0 +1 @@
+DIST atmel-firmware-1.3.tar.gz 470254 SHA256 f53160b0b4a824754957d8488f1eba68d3c6379d48c563464bd3924e7be19b3d SHA512 e87767008d3fe08a7e997b629a11589c00f46ca375639dd0b06c48b2de831a7df666c895888026eff03b7ee81a7594349fd550c4943b088ce26fb57f660ce89b WHIRLPOOL 7341df8c9b646f29a1689701ba0d4d26c888c51acaa9c5136799e90d6d6e7f88eb13afcc8b2a4ac59f62a8ea5528d14e2d6eaa27df0761b1484f102996293f7c
diff --git a/sys-firmware/atmel-firmware/atmel-firmware-1.3-r1.ebuild b/sys-firmware/atmel-firmware/atmel-firmware-1.3-r1.ebuild
new file mode 100644
index 000000000000..9f604612d4b4
--- /dev/null
+++ b/sys-firmware/atmel-firmware/atmel-firmware-1.3-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit toolchain-funcs
+
+DESCRIPTION="Firmware and config for atmel and atmel_cs wlan drivers included in linux 2.6"
+HOMEPAGE="http://www.thekelleys.org.uk/atmel/"
+SRC_URI="http://www.thekelleys.org.uk/atmel/${P}.tar.gz"
+
+LICENSE="Atmel"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="pcmcia usb"
+
+RDEPEND=">=net-wireless/wireless-tools-26-r1
+ pcmcia? ( sys-apps/pcmciautils )"
+
+src_compile() {
+ tc-export CC
+ emake atmel_fwl
+}
+
+src_install() {
+ # atmel_at76c504c-wpa.bin should be renamed to atmel_at76c504-wpa.bin, bug #398803
+ mv images/atmel_at76c504c-wpa.bin images/atmel_at76c504-wpa.bin || die
+
+ insinto /lib/firmware
+ doins images/*.bin
+
+ if use usb; then
+ doins images.usb/*.bin
+ fi
+
+ if use pcmcia; then
+ insinto /etc/pcmcia
+ doins atmel.conf
+ fi
+
+ dosbin atmel_fwl atmel_fwl.pl
+ doman atmel_fwl.8
+ dodoc README VERSION
+}
+
+pkg_postinst() {
+ if use pcmcia && [ -f /var/run/cardmgr.pid ]; then
+ kill -HUP `cat /var/run/cardmgr.pid`
+ fi
+}
+
+pkg_postrm() {
+ if use pcmcia && [ -f /var/run/cardmgr.pid ]; then
+ kill -HUP `cat /var/run/cardmgr.pid`
+ fi
+}
diff --git a/sys-firmware/atmel-firmware/metadata.xml b/sys-firmware/atmel-firmware/metadata.xml
new file mode 100644
index 000000000000..4538a68724a6
--- /dev/null
+++ b/sys-firmware/atmel-firmware/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer><email>maintainer-needed@gentoo.org</email></maintainer>
+</pkgmetadata>
diff --git a/sys-firmware/b43-firmware/Manifest b/sys-firmware/b43-firmware/Manifest
new file mode 100644
index 000000000000..761323ec9f33
--- /dev/null
+++ b/sys-firmware/b43-firmware/Manifest
@@ -0,0 +1,2 @@
+DIST broadcom-wl-5.100.138.tar.bz2 13514651 SHA256 f1e7067aac5b62b67b8b6e4c517990277804339ac16065eb13c731ff909ae46f SHA512 02487e76e3eca7fe97ce2ad7dc9c5d39fac82b8d5f7786cce047f9c85e2426f5b7ea085d84c7d4aae43e0fe348d603e3229211bab601726794ef633441d37a8b WHIRLPOOL 6c6eaf7500056c5103a4fea04d2cbffcae5cfdd240f2539e2aba0d5208d869916afa64fbec896a2ffe9ffefdd6e6ff455bbc56aca3828c12a1712ff32d0f996b
+DIST broadcom-wl-6.30.163.46.tar.bz2 7684610 SHA256 a07c3b6b277833c7dbe61daa511f908cd66c5e2763eb7a0859abc36cd9335c2d SHA512 0144894fbbb5e8ebab6c423d9bd0f3249be94f2f468a50b8bf721a3b17f1f6e57467c79e87abc8d136bfc92e701ed046885fead892e9a73efa5217d710311ae9 WHIRLPOOL 9db01a2b11efc3ef8a944c79d34b32030ab046e8b5bdea2f69ff0d336cb3d2cd439c5ba947c0ab146da9289fec5945d9d5172f59cbaf549518c9c09316fe05e3
diff --git a/sys-firmware/b43-firmware/b43-firmware-5.100.138.ebuild b/sys-firmware/b43-firmware/b43-firmware-5.100.138.ebuild
new file mode 100644
index 000000000000..9e6ca17c5eb3
--- /dev/null
+++ b/sys-firmware/b43-firmware/b43-firmware-5.100.138.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+: ${B43_FIRMWARE_SRC_OBJ:=wl_apsta.o}
+
+MY_P="broadcom-wl-${PV}"
+DESCRIPTION="broadcom firmware for b43 LP PHY and >=linux-3.2"
+HOMEPAGE="http://linuxwireless.org/en/users/Drivers/b43"
+SRC_URI="http://www.lwfinger.com/b43-firmware/${MY_P}.tar.bz2"
+
+LICENSE="Broadcom"
+SLOT="b43"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+RESTRICT="mirror binchecks strip"
+
+DEPEND=">=net-wireless/b43-fwcutter-015"
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_compile() {
+ mkdir ebuild-output
+ b43-fwcutter -w ebuild-output $(find -name ${B43_FIRMWARE_SRC_OBJ}) || die
+}
+
+src_install() {
+ insinto /lib/firmware
+ doins -r ebuild-output/* || die
+}
diff --git a/sys-firmware/b43-firmware/b43-firmware-6.30.163.46.ebuild b/sys-firmware/b43-firmware/b43-firmware-6.30.163.46.ebuild
new file mode 100644
index 000000000000..bdab583e8d51
--- /dev/null
+++ b/sys-firmware/b43-firmware/b43-firmware-6.30.163.46.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+: ${B43_FIRMWARE_SRC_OBJ:=*wl_apsta.o}
+
+MY_P="broadcom-wl-${PV}"
+DESCRIPTION="broadcom firmware for b43 LP PHY and >=linux-3.2"
+HOMEPAGE="http://linuxwireless.org/en/users/Drivers/b43"
+SRC_URI="http://www.lwfinger.com/b43-firmware/${MY_P}.tar.bz2"
+
+LICENSE="Broadcom"
+SLOT="b43"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+RESTRICT="mirror binchecks strip"
+
+DEPEND=">=net-wireless/b43-fwcutter-015"
+RDEPEND=""
+
+S="${WORKDIR}"
+
+src_compile() {
+ mkdir ebuild-output
+ b43-fwcutter -w ebuild-output $(find -name ${B43_FIRMWARE_SRC_OBJ}) || die
+}
+
+src_install() {
+ insinto /lib/firmware
+ doins -r ebuild-output/* || die
+}
diff --git a/sys-firmware/b43-firmware/metadata.xml b/sys-firmware/b43-firmware/metadata.xml
new file mode 100644
index 000000000000..5fcbf8e1851a
--- /dev/null
+++ b/sys-firmware/b43-firmware/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>zerochaos@gentoo.org</email>
+<name>Rick Farina</name>
+</maintainer>
+<longdescription lang="en">
+</longdescription>
+</pkgmetadata>
+
diff --git a/sys-firmware/b43legacy-firmware/Manifest b/sys-firmware/b43legacy-firmware/Manifest
new file mode 100644
index 000000000000..923903e3baea
--- /dev/null
+++ b/sys-firmware/b43legacy-firmware/Manifest
@@ -0,0 +1 @@
+DIST wl_apsta-3.130.20.0.o 652866 SHA256 7dba610b1d96dd14e901bcbce14cd6ecd1b1ac6f5c0035b0d6b6dc46a7c3ef90 SHA512 d89ed52045307449bbae79a4d1807cc6cd89ae67c4a22e8e8aa51c1396edbb6ed8b157cd0756faf8b660a537b48b62117c57967f2048245b5b102d9d9bca4bbd WHIRLPOOL e91d707ec50d6e32e1d1fca17010c23290f68183d9fa9f4700742569847b2a83e60439c6d1656f7f6780b50c31277e538e659cef6443ad2e6d4b41eaed99c0b5
diff --git a/sys-firmware/b43legacy-firmware/b43legacy-firmware-3.130.20.0.ebuild b/sys-firmware/b43legacy-firmware/b43legacy-firmware-3.130.20.0.ebuild
new file mode 100644
index 000000000000..c01111bf3aff
--- /dev/null
+++ b/sys-firmware/b43legacy-firmware/b43legacy-firmware-3.130.20.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+: ${B43_FIRMWARE_SRC_OBJ:=${A}}
+
+MY_P="broadcom-wl-${PV}"
+DESCRIPTION="broadcom firmware for b43legacy/bcm43xx"
+HOMEPAGE="http://linuxwireless.org/en/users/Drivers/b43"
+SRC_URI="http://downloads.openwrt.org/sources/wl_apsta-${PV}.o"
+
+RESTRICT="mirror binchecks strip"
+
+LICENSE="Broadcom"
+SLOT=0
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND=">=net-wireless/b43-fwcutter-012"
+
+S=${WORKDIR}
+
+src_unpack() {
+ cp "${DISTDIR}/${A}" "${WORKDIR}" || die
+}
+
+src_compile() {
+ mkdir ebuild-output
+ b43-fwcutter -w ebuild-output $(find -name ${B43_FIRMWARE_SRC_OBJ}) || die
+}
+
+src_install() {
+ insinto /lib/firmware
+ doins -r ebuild-output/*
+}
diff --git a/sys-firmware/b43legacy-firmware/metadata.xml b/sys-firmware/b43legacy-firmware/metadata.xml
new file mode 100644
index 000000000000..5fcbf8e1851a
--- /dev/null
+++ b/sys-firmware/b43legacy-firmware/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>zerochaos@gentoo.org</email>
+<name>Rick Farina</name>
+</maintainer>
+<longdescription lang="en">
+</longdescription>
+</pkgmetadata>
+
diff --git a/sys-firmware/bluez-firmware/Manifest b/sys-firmware/bluez-firmware/Manifest
new file mode 100644
index 000000000000..08b2ccbc9c0e
--- /dev/null
+++ b/sys-firmware/bluez-firmware/Manifest
@@ -0,0 +1 @@
+DIST bluez-firmware-1.2.tar.gz 370623 SHA256 b6119e118fabc6bd34584afcbe6fff00a44caeb64152b02ed57c6fba9fd99eec SHA512 15db2f9d38a496882e4cc3754af1e58aa99e1b849f2066c541d76c66a8ffdc5532799fe1fd473cfc158bf5ea86a46687716cbcf83c6dcac0ce66d97d679648dd WHIRLPOOL 28463f620944693362866d45f29d8f31ebf6f23c75a6da633d106cc32f6ee8252f9bcdf454914d3a94726b9d02169232fb8cf1b59012be8d1e8ace67f32593e8
diff --git a/sys-firmware/bluez-firmware/bluez-firmware-1.2.ebuild b/sys-firmware/bluez-firmware/bluez-firmware-1.2.ebuild
new file mode 100644
index 000000000000..4e23e1947ae2
--- /dev/null
+++ b/sys-firmware/bluez-firmware/bluez-firmware-1.2.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Firmware for Broadcom BCM203x and STLC2300 Bluetooth chips"
+HOMEPAGE="http://bluez.sourceforge.net/"
+SRC_URI="http://bluez.sourceforge.net/download/${P}.tar.gz"
+
+RESTRICT="bindist mirror"
+
+LICENSE="bluez-firmware"
+SLOT="0"
+KEYWORDS="amd64 hppa ppc x86"
+IUSE=""
+
+DOCS="AUTHORS ChangeLog README"
+
+src_configure() {
+ econf --libdir=/lib
+}
diff --git a/sys-firmware/bluez-firmware/metadata.xml b/sys-firmware/bluez-firmware/metadata.xml
new file mode 100644
index 000000000000..4538a68724a6
--- /dev/null
+++ b/sys-firmware/bluez-firmware/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer><email>maintainer-needed@gentoo.org</email></maintainer>
+</pkgmetadata>
diff --git a/sys-firmware/ipw2100-firmware/Manifest b/sys-firmware/ipw2100-firmware/Manifest
new file mode 100644
index 000000000000..2414b0774293
--- /dev/null
+++ b/sys-firmware/ipw2100-firmware/Manifest
@@ -0,0 +1 @@
+DIST ipw2100-fw-1.3.tgz 248471 SHA256 e1107c455e48d324a616b47a622593bc8413dcce72026f72731c0b03dae3a7a2 SHA512 1e1b8406a795a2f7f9d4d5ba533293daf1a3f3583dbe6eac45849176da8fc46d261bf4ca6a0b236c67c48313b6ff0feb5f9f2019cacbef65471dc0d36e1e1114 WHIRLPOOL 42629321f8d7736c19b38dd26a2db74f7749a2dec1172efacbc85a2db2d19a892bed995ca44ec8aafc64bcb82cea6c1bc85ff8b72c3d472a6414712ecc6eb1e2
diff --git a/sys-firmware/ipw2100-firmware/ipw2100-firmware-1.3.ebuild b/sys-firmware/ipw2100-firmware/ipw2100-firmware-1.3.ebuild
new file mode 100644
index 000000000000..a955cc8c7de3
--- /dev/null
+++ b/sys-firmware/ipw2100-firmware/ipw2100-firmware-1.3.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+MY_P=${P/firmware/fw}
+
+DESCRIPTION="Firmware for the Intel PRO/Wireless 2100 3B miniPCI adapter"
+HOMEPAGE="http://ipw2100.sourceforge.net/"
+SRC_URI="mirror://gentoo/${MY_P}.tgz"
+
+LICENSE="ipw2100-fw"
+SLOT="${PV}"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+S=${WORKDIR}
+
+src_install() {
+ insinto /lib/firmware
+ doins ipw2100-${PV}{,-i,-p}.fw
+}
diff --git a/sys-firmware/ipw2100-firmware/metadata.xml b/sys-firmware/ipw2100-firmware/metadata.xml
new file mode 100644
index 000000000000..4538a68724a6
--- /dev/null
+++ b/sys-firmware/ipw2100-firmware/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer><email>maintainer-needed@gentoo.org</email></maintainer>
+</pkgmetadata>
diff --git a/sys-firmware/ipw2200-firmware/Manifest b/sys-firmware/ipw2200-firmware/Manifest
new file mode 100644
index 000000000000..ecbc9059fa19
--- /dev/null
+++ b/sys-firmware/ipw2200-firmware/Manifest
@@ -0,0 +1 @@
+DIST ipw2200-fw-3.1.tgz 270042 SHA256 c6818c11c18cc030d55ff83f64b2bad8feef485e7742f84f94a61d811a6258bd SHA512 b588566d67a31e8e5c464991f2de5420822816528a388829e36ba47080d2edd10794b0b1d05562035c54e9bb9a9999504a2ff099a37157c39b3c71b125748ad8 WHIRLPOOL ea2507a1c876aceb9209c7f75223c0ec9eed1a7da8595d6d40ef83c2b9bca05a208c3040d23c581d7293992e1e0643f1df591a59c13399832631a1291bbfabed
diff --git a/sys-firmware/ipw2200-firmware/ipw2200-firmware-3.1.ebuild b/sys-firmware/ipw2200-firmware/ipw2200-firmware-3.1.ebuild
new file mode 100644
index 000000000000..1aecb31da148
--- /dev/null
+++ b/sys-firmware/ipw2200-firmware/ipw2200-firmware-3.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+MY_P=${P/firmware/fw}
+
+DESCRIPTION="Firmware for the Intel PRO/Wireless 2200BG/2915ABG miniPCI and 2225BG PCI adapters"
+HOMEPAGE="http://ipw2200.sourceforge.net/"
+SRC_URI="http://www.bughost.org/firmware/${MY_P}.tgz"
+
+LICENSE="ipw2200-fw"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+S=${WORKDIR}/${MY_P}
+
+src_install() {
+ insinto /lib/firmware
+ doins ipw2200-{bss,ibss,sniffer}.fw
+}
diff --git a/sys-firmware/ipw2200-firmware/metadata.xml b/sys-firmware/ipw2200-firmware/metadata.xml
new file mode 100644
index 000000000000..4538a68724a6
--- /dev/null
+++ b/sys-firmware/ipw2200-firmware/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer><email>maintainer-needed@gentoo.org</email></maintainer>
+</pkgmetadata>
diff --git a/sys-firmware/ipxe/Manifest b/sys-firmware/ipxe/Manifest
new file mode 100644
index 000000000000..46759e4d7d8c
--- /dev/null
+++ b/sys-firmware/ipxe/Manifest
@@ -0,0 +1,4 @@
+DIST e6427b7ee117ea4af0812bb13b57999bccd8e058.tar.bz2 2198003 SHA256 008a80b80a8b19ef6963581b5599880d51171aad13f96690589cbc0fa895eaf3 SHA512 8456ef3c27f3f4de827ae4c744cbe2eaacb96cf703a5525f490c53ac26ed597635acb744a50607d733d7bd5014dcbbb333f74da8fe68fddca19e11d047377d73 WHIRLPOOL 814cda89fa52afec2b1a8811407ce3b361c1d7548e40255fdffda2bd0fbb8485352575f19b6935de50582a97c31758cd9bcc2194cb2b222b89313868a032a828
+DIST ipxe-1.0.0_p20130225-09c5109.tar.bz2 2208235 SHA256 58fd3470c4807c7206550badbc709c9a48af201b4bfa629379143b21426189fa SHA512 74b72a336ee4874ee134fe2bfa8540a864ddd169e09a7d6dfa688624f674962ea33f01bb287b90fda0cdfe5bf4d38e49362934c22a2da932dd3e4c702ebd56dc WHIRLPOOL fad62b8d15bb67ab194954671ae9e1cfa0df06c2d237b9312994ecaf440f0bb22b72ba28824ee8a13c19fe90f8bd3b2847a80d93da5f10368b096cdfa8230a06
+DIST ipxe-1.0.0_p20130624-936134e.tar.bz2 2230605 SHA256 bbf9435515a481ab4e5bfc4e49d5eeb005b60169bad3db269e31228fafbb7bbc SHA512 8a1332794acd0db7bf485bfc2c1c52b4e7e5545e5cc1e4e39bbe6f190a684682613b063cc5c31c94d7715fa07555a851f04abb45e604325c0bb4ab73526df0c9 WHIRLPOOL 1338fc4f8bf69a98713d72ad0a8749bc53e42d99c8088e5536b78001d0f738dcc8aaa537cce7dcb5f4f66818880b936c964fc6bed8ff00e674cf400da9521f5b
+DIST ipxe-1.0.0_p20130925-cba22d3.tar.bz2 2240189 SHA256 c9c819bac8a925aad30ac88a23a86dd5591a9c31846058e77465d05551fc6189 SHA512 a098d3fc0f68067be281b9c3654bb1b0be1b9d397327b55b36b17e69faf03ce6117d0278552c06990a5020e4ece7acac168d975b3c7bfce3b6865dea1fd1d8dd WHIRLPOOL 11442ea81032b4c9c00d3c1346761163cbcf2db2bc957bfbaba74c7f9109136bf5334e26752f9d10a8ed0f093ae39fd28e4152d522aa4dd86e4d1c05695d7d3a
diff --git a/sys-firmware/ipxe/files/ipxe-1.0.0_p20130925-git-version.patch b/sys-firmware/ipxe/files/ipxe-1.0.0_p20130925-git-version.patch
new file mode 100644
index 000000000000..a981abdd892e
--- /dev/null
+++ b/sys-firmware/ipxe/files/ipxe-1.0.0_p20130925-git-version.patch
@@ -0,0 +1,38 @@
+From 6153c09c41034250408f3596555fcaae715da46c Mon Sep 17 00:00:00 2001
+From: Florian Schmaus <flo@geekplace.eu>
+Date: Mon, 28 Jul 2014 16:47:48 +0100
+Subject: [PATCH] [build] Set GITVERSION only if there is a git repository
+
+The $(BIN)/version.%.o target will fail if iPXE is built within a
+non-git repository, e.g. when the user downloaded and extracted an
+archive containing iPXE sources, *and* if any parent directory of the
+iPXE sources is a git repository (or even contains a directory named
+".git"). This is because git will by default ascend the directory
+tree and look for ".git".
+
+The problem typically manifests on source based distributions, see for
+example https://bugs.gentoo.org/show_bug.cgi?id=482804
+
+Modified-by: Michael Brown <mcb30@ipxe.org>
+Signed-off-by: Michael Brown <mcb30@ipxe.org>
+---
+ src/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 22a7335..c6760ee 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -190,8 +190,8 @@ VERSION_PATCH = 0
+ EXTRAVERSION = +
+ MM_VERSION = $(VERSION_MAJOR).$(VERSION_MINOR)
+ VERSION = $(MM_VERSION).$(VERSION_PATCH)$(EXTRAVERSION)
++ifneq ($(wildcard ../.git),)
+ GITVERSION := $(shell git describe --always --abbrev=1 --match "" 2>/dev/null)
+-ifneq ($(GITVERSION),)
+ VERSION += ($(GITVERSION))
+ endif
+ version :
+--
+2.3.2
+
diff --git a/sys-firmware/ipxe/ipxe-1.0.0_p20120905.ebuild b/sys-firmware/ipxe/ipxe-1.0.0_p20120905.ebuild
new file mode 100644
index 000000000000..f868e13ad708
--- /dev/null
+++ b/sys-firmware/ipxe/ipxe-1.0.0_p20120905.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+GIT_REV="e6427b7ee117ea4af0812bb13b57999bccd8e058"
+GIT_SHORT="e6427b7"
+
+DESCRIPTION="Open source network boot (PXE) firmware"
+HOMEPAGE="http://ipxe.org"
+SRC_URI="https://git.ipxe.org/ipxe.git/snapshot/${GIT_REV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="iso +qemu undi usb vmware"
+
+DEPEND="sys-devel/make
+ dev-lang/perl
+ sys-libs/zlib
+ iso? (
+ sys-boot/syslinux
+ virtual/cdrtools
+ )"
+RDEPEND=""
+
+S="${WORKDIR}/ipxe-${GIT_SHORT}/src"
+
+src_configure() {
+ if use vmware; then
+ sed -i config/sideband.h \
+ -e 's|//#define[[:space:]]VMWARE_SETTINGS|#define VMWARE_SETTINGS|'
+ sed -i config/console.h \
+ -e 's|//#define[[:space:]]CONSOLE_VMWARE|#define CONSOLE_VMWARE|'
+ fi
+}
+
+src_compile() {
+ export NO_WERROR=1
+ if use qemu; then
+ emake bin/808610de.rom # pxe-e1000.rom
+ emake bin/80861209.rom # pxe-eepro100.rom
+ emake bin/10500940.rom # pxe-ne2k_pci.rom
+ emake bin/10222000.rom # pxe-pcnet.rom
+ emake bin/10ec8139.rom # pxe-rtl8139.rom
+ emake bin/1af41000.rom # pxe-virtio.rom
+ fi
+
+ if use vmware; then
+ emake bin/8086100f.mrom # e1000
+ emake bin/808610d3.mrom # e1000e
+ emake bin/10222000.mrom # vlance
+ emake bin/15ad07b0.rom # vmxnet3
+ fi
+
+ use iso && emake bin/ipxe.iso
+ use undi && emake bin/undionly.kpxe
+ use usb && emake bin/ipxe.usb
+}
+
+src_install() {
+ insinto /usr/share/ipxe/
+
+ if use qemu || use vmware; then
+ doins bin/*.rom
+ fi
+ use vmware && doins bin/*.mrom
+ use iso && doins bin/*.iso
+ use undi && doins bin/*.kpxe
+ use usb && doins bin/*.usb
+}
diff --git a/sys-firmware/ipxe/ipxe-1.0.0_p20130225.ebuild b/sys-firmware/ipxe/ipxe-1.0.0_p20130225.ebuild
new file mode 100644
index 000000000000..e2dc56c52ef0
--- /dev/null
+++ b/sys-firmware/ipxe/ipxe-1.0.0_p20130225.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+GIT_REV="09c5109b8585178172c7608de8d52e9d9af0b680"
+GIT_SHORT="09c5109"
+
+DESCRIPTION="Open source network boot (PXE) firmware"
+HOMEPAGE="http://ipxe.org"
+SRC_URI="https://git.ipxe.org/ipxe.git/snapshot/${GIT_REV}.tar.bz2 -> ${P}-${GIT_SHORT}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="iso +qemu undi usb vmware"
+
+DEPEND="sys-devel/make
+ dev-lang/perl
+ sys-libs/zlib
+ iso? (
+ sys-boot/syslinux
+ virtual/cdrtools
+ )"
+RDEPEND=""
+
+S="${WORKDIR}/ipxe-${GIT_SHORT}/src"
+
+src_prepare() {
+ cat <<-EOF > "${S}"/config/local/general.h
+#undef BANNER_TIMEOUT
+#define BANNER_TIMEOUT 0
+EOF
+}
+
+src_configure() {
+ if use vmware; then
+ sed -i config/sideband.h \
+ -e 's|//#define[[:space:]]VMWARE_SETTINGS|#define VMWARE_SETTINGS|'
+ sed -i config/console.h \
+ -e 's|//#define[[:space:]]CONSOLE_VMWARE|#define CONSOLE_VMWARE|'
+ fi
+}
+
+src_compile() {
+ export NO_WERROR=1
+ if use qemu; then
+ emake bin/808610de.rom # pxe-e1000.rom (old)
+ emake bin/8086100e.rom # pxe-e1000.rom
+ emake bin/80861209.rom # pxe-eepro100.rom
+ emake bin/10500940.rom # pxe-ne2k_pci.rom
+ emake bin/10222000.rom # pxe-pcnet.rom
+ emake bin/10ec8139.rom # pxe-rtl8139.rom
+ emake bin/1af41000.rom # pxe-virtio.rom
+ fi
+
+ if use vmware; then
+ emake bin/8086100f.mrom # e1000
+ emake bin/808610d3.mrom # e1000e
+ emake bin/10222000.mrom # vlance
+ emake bin/15ad07b0.rom # vmxnet3
+ fi
+
+ use iso && emake bin/ipxe.iso
+ use undi && emake bin/undionly.kpxe
+ use usb && emake bin/ipxe.usb
+}
+
+src_install() {
+ insinto /usr/share/ipxe/
+
+ if use qemu || use vmware; then
+ doins bin/*.rom
+ fi
+ use vmware && doins bin/*.mrom
+ use iso && doins bin/*.iso
+ use undi && doins bin/*.kpxe
+ use usb && doins bin/*.usb
+}
diff --git a/sys-firmware/ipxe/ipxe-1.0.0_p20130624.ebuild b/sys-firmware/ipxe/ipxe-1.0.0_p20130624.ebuild
new file mode 100644
index 000000000000..9865bd6eb549
--- /dev/null
+++ b/sys-firmware/ipxe/ipxe-1.0.0_p20130624.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs
+
+GIT_REV="936134ed460618e18cc05d677a442d43d5e739a1"
+GIT_SHORT="936134e"
+
+DESCRIPTION="Open source network boot (PXE) firmware"
+HOMEPAGE="http://ipxe.org"
+SRC_URI="https://git.ipxe.org/ipxe.git/snapshot/${GIT_REV}.tar.bz2 -> ${P}-${GIT_SHORT}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="iso +qemu undi usb vmware"
+
+DEPEND="sys-devel/make
+ dev-lang/perl
+ sys-libs/zlib
+ iso? (
+ sys-boot/syslinux
+ virtual/cdrtools
+ )"
+RDEPEND=""
+
+S="${WORKDIR}/ipxe-${GIT_SHORT}/src"
+
+src_prepare() {
+ cat <<-EOF > "${S}"/config/local/general.h
+#undef BANNER_TIMEOUT
+#define BANNER_TIMEOUT 0
+EOF
+
+ if use vmware; then
+ cat <<-EOF >> "${S}"/config/local/general.h
+#define VMWARE_SETTINGS
+#define CONSOLE_VMWARE
+EOF
+ fi
+}
+
+src_compile() {
+ tc-ld-disable-gold
+ ipxemake() {
+ # Q='' makes the build verbose since that's what everyone loves now
+ emake Q='' \
+ CC=$(tc-getCC) \
+ LD="$(tc-getLD)" \
+ AR=$(tc-getAR) \
+ OBJCOPY=$(tc-getOBJCOPY) \
+ RANLIB=$(tc-getRANLIB) \
+ OBJDUMP=$(tc-getPROG OBJDUMP objdump) \
+ HOST_CC=$(tc-getBUILD_CC) \
+ ${*}
+ }
+
+ export NO_WERROR=1
+ if use qemu; then
+ ipxemake bin/808610de.rom # pxe-e1000.rom (old)
+ ipxemake bin/8086100e.rom # pxe-e1000.rom
+ ipxemake bin/80861209.rom # pxe-eepro100.rom
+ ipxemake bin/10500940.rom # pxe-ne2k_pci.rom
+ ipxemake bin/10222000.rom # pxe-pcnet.rom
+ ipxemake bin/10ec8139.rom # pxe-rtl8139.rom
+ ipxemake bin/1af41000.rom # pxe-virtio.rom
+ fi
+
+ if use vmware; then
+ ipxemake bin/8086100f.mrom # e1000
+ ipxemake bin/808610d3.mrom # e1000e
+ ipxemake bin/10222000.mrom # vlance
+ ipxemake bin/15ad07b0.rom # vmxnet3
+ fi
+
+ use iso && ipxemake bin/ipxe.iso
+ use undi && ipxemake bin/undionly.kpxe
+ use usb && ipxemake bin/ipxe.usb
+}
+
+src_install() {
+ insinto /usr/share/ipxe/
+
+ if use qemu || use vmware; then
+ doins bin/*.rom
+ fi
+ use vmware && doins bin/*.mrom
+ use iso && doins bin/*.iso
+ use undi && doins bin/*.kpxe
+ use usb && doins bin/*.usb
+}
diff --git a/sys-firmware/ipxe/ipxe-1.0.0_p20130925.ebuild b/sys-firmware/ipxe/ipxe-1.0.0_p20130925.ebuild
new file mode 100644
index 000000000000..dd7b14669ba3
--- /dev/null
+++ b/sys-firmware/ipxe/ipxe-1.0.0_p20130925.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs eutils
+
+GIT_REV="cba22d36b77da53890bd65fdadd0e63925687af0"
+GIT_SHORT="cba22d3"
+
+DESCRIPTION="Open source network boot (PXE) firmware"
+HOMEPAGE="http://ipxe.org"
+SRC_URI="https://git.ipxe.org/ipxe.git/snapshot/${GIT_REV}.tar.bz2 -> ${P}-${GIT_SHORT}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="iso +qemu undi usb vmware"
+
+DEPEND="sys-devel/make
+ dev-lang/perl
+ sys-libs/zlib
+ iso? (
+ sys-boot/syslinux
+ virtual/cdrtools
+ )"
+RDEPEND=""
+
+S="${WORKDIR}/ipxe-${GIT_SHORT}/src"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-git-version.patch #482804
+
+ cat <<-EOF > "${S}"/config/local/general.h
+#undef BANNER_TIMEOUT
+#define BANNER_TIMEOUT 0
+EOF
+
+ if use vmware; then
+ cat <<-EOF >> "${S}"/config/local/general.h
+#define VMWARE_SETTINGS
+#define CONSOLE_VMWARE
+EOF
+ fi
+}
+
+src_compile() {
+ tc-ld-disable-gold
+ ipxemake() {
+ # Q='' makes the build verbose since that's what everyone loves now
+ emake Q='' \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getLD)" \
+ AR="$(tc-getAR)" \
+ OBJCOPY="$(tc-getOBJCOPY)" \
+ RANLIB="$(tc-getRANLIB)" \
+ OBJDUMP="$(tc-getOBJDUMP)" \
+ HOST_CC="$(tc-getBUILD_CC)" \
+ "$@"
+ }
+
+ export NO_WERROR=1
+ if use qemu; then
+ ipxemake bin/808610de.rom # pxe-e1000.rom (old)
+ ipxemake bin/8086100e.rom # pxe-e1000.rom
+ ipxemake bin/80861209.rom # pxe-eepro100.rom
+ ipxemake bin/10500940.rom # pxe-ne2k_pci.rom
+ ipxemake bin/10222000.rom # pxe-pcnet.rom
+ ipxemake bin/10ec8139.rom # pxe-rtl8139.rom
+ ipxemake bin/1af41000.rom # pxe-virtio.rom
+ fi
+
+ if use vmware; then
+ ipxemake bin/8086100f.mrom # e1000
+ ipxemake bin/808610d3.mrom # e1000e
+ ipxemake bin/10222000.mrom # vlance
+ ipxemake bin/15ad07b0.rom # vmxnet3
+ fi
+
+ use iso && ipxemake bin/ipxe.iso
+ use undi && ipxemake bin/undionly.kpxe
+ use usb && ipxemake bin/ipxe.usb
+}
+
+src_install() {
+ insinto /usr/share/ipxe/
+
+ if use qemu || use vmware; then
+ doins bin/*.rom
+ fi
+ use vmware && doins bin/*.mrom
+ use iso && doins bin/*.iso
+ use undi && doins bin/*.kpxe
+ use usb && doins bin/*.usb
+}
diff --git a/sys-firmware/ipxe/metadata.xml b/sys-firmware/ipxe/metadata.xml
new file mode 100644
index 000000000000..6f1c5abbc3f6
--- /dev/null
+++ b/sys-firmware/ipxe/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>cardoe@gentoo.org</email>
+<name>Doug Goldstein</name>
+</maintainer>
+<use>
+ <flag name='iso'>Build a bootable ISO for using PXE</flag>
+ <flag name='usb'>Build a bootable USB image for using PXE</flag>
+ <flag name='undi'>Build a Universal Network Device Interface driver
+ chainloading your existing PXE NIC into iPXE</flag>
+ <flag name='qemu'>Build the required PXE ROM images for <pkg>app-emulation/qemu</pkg> and <pkg>app-emulation/qemu-kvm</pkg></flag>
+ <flag name='vmware'>Build the PXE ROM images that VMWare uses</flag>
+</use>
+</pkgmetadata>
diff --git a/sys-firmware/ivtv-firmware/Manifest b/sys-firmware/ivtv-firmware/Manifest
new file mode 100644
index 000000000000..e14bd1269034
--- /dev/null
+++ b/sys-firmware/ivtv-firmware/Manifest
@@ -0,0 +1 @@
+DIST ivtv-firmware-20080701.tar.gz 125526 SHA256 f9c4250658b24579b9f726bf44097d1728c4a5db3bce64ee9fd0c5e8ff2a79f1 SHA512 1ad00fb55721f5161e0b64d04ea004cd0e24f31b3c47cadb181c0a8f24a0064356b56479cd54d834d4575f6cb5d826bca5fd061634b1e10f0e4b5737c1fb192b WHIRLPOOL ff4c93d1eced566b3dd6c9e89e8a8f5c90be82ccb344c13e788ae612ba728301895a8f3669f653db6a432476437194527285a7c7bc4cbe4e3abf4824b4784630
diff --git a/sys-firmware/ivtv-firmware/ivtv-firmware-20080701-r1.ebuild b/sys-firmware/ivtv-firmware/ivtv-firmware-20080701-r1.ebuild
new file mode 100644
index 000000000000..47ee1ba0e5f4
--- /dev/null
+++ b/sys-firmware/ivtv-firmware/ivtv-firmware-20080701-r1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="firmware for Hauppauge PVR-x50 and Conexant 2341x based cards"
+HOMEPAGE="http://www.ivtvdriver.org/index.php/Firmware"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="Hauppauge-Firmware"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+S=${WORKDIR}
+
+src_install() {
+ insinto /lib/firmware
+ doins v4l-cx2341x-*.fw v4l-pvrusb2-*.fw
+ doins *.mpg
+}
diff --git a/sys-firmware/ivtv-firmware/metadata.xml b/sys-firmware/ivtv-firmware/metadata.xml
new file mode 100644
index 000000000000..fd181aef8957
--- /dev/null
+++ b/sys-firmware/ivtv-firmware/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>mythtv</herd>
+ <maintainer>
+ <email>cardoe@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/sys-firmware/iwl1000-ucode/Manifest b/sys-firmware/iwl1000-ucode/Manifest
new file mode 100644
index 000000000000..d34a8a92c71d
--- /dev/null
+++ b/sys-firmware/iwl1000-ucode/Manifest
@@ -0,0 +1,2 @@
+DIST iwlwifi-1000-ucode-128.50.3.1.tgz 175772 SHA256 7e81ddad18acec19364c9df22496e8afae99a2e1490b2b178e420b52d443728d
+DIST iwlwifi-1000-ucode-39.31.5.1.tgz 180879 SHA256 ed0f1fbc2571c8da9a0cd9410fa8883494a9e1ac469d5000bc2c9dceaf83c970 SHA512 18f01b51f83e133bd6803567afb75606faba8cd96e3ed4faab8350d6f63e43c4c9397fdc17631efda1606fbef9e1a2b3065cbb58779de0f56223c95703474b06 WHIRLPOOL 389031f2bb6b9f36538ea2d4893d75f9eeffb5cd01c37514ca478a2af6db0f600d050101c774d1333fd31d57b9e35d127be10cb441cbeff70e476ad28f880e41
diff --git a/sys-firmware/iwl1000-ucode/iwl1000-ucode-128.50.3.1.ebuild b/sys-firmware/iwl1000-ucode/iwl1000-ucode-128.50.3.1.ebuild
new file mode 100644
index 000000000000..9a9b6577c9ea
--- /dev/null
+++ b/sys-firmware/iwl1000-ucode/iwl1000-ucode-128.50.3.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+MY_P="iwlwifi-1000-ucode-${PV}"
+
+DESCRIPTION="Intel (R) Wireless WiFi Link 1000BGN ucode"
+HOMEPAGE="http://intellinuxwireless.org/?p=iwlwifi"
+SRC_URI="http://intellinuxwireless.org/iwlwifi/downloads/${MY_P}.tgz"
+
+LICENSE="ipw3945"
+SLOT="3"
+KEYWORDS=""
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_install() {
+ insinto /lib/firmware
+ doins iwlwifi-1000-3.ucode
+ dodoc README.iwlwifi-1000-ucode
+}
diff --git a/sys-firmware/iwl1000-ucode/iwl1000-ucode-39.31.5.1.ebuild b/sys-firmware/iwl1000-ucode/iwl1000-ucode-39.31.5.1.ebuild
new file mode 100644
index 000000000000..94420d7789c2
--- /dev/null
+++ b/sys-firmware/iwl1000-ucode/iwl1000-ucode-39.31.5.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit linux-info
+
+MY_P="iwlwifi-1000-ucode-${PV}"
+DESCRIPTION="Intel (R) Wireless WiFi Link 1000BGN ucode"
+HOMEPAGE="http://intellinuxwireless.org/?p=iwlwifi"
+SRC_URI="http://intellinuxwireless.org/iwlwifi/downloads/${MY_P}.tgz"
+
+LICENSE="ipw3945"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_pretend() {
+ if kernel_is lt 2 6 39; then
+ ewarn "Your kernel version is ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}."
+ ewarn "This microcode image requires a kernel >= 2.6.39."
+ ewarn "For kernel versions < 2.6.39, you may unmask and install"
+ ewarn "${CATEGORY}/${PN}-128.50.3.1 instead."
+ fi
+}
+
+src_install() {
+ insinto /lib/firmware
+ doins iwlwifi-1000-5.ucode
+ dodoc README.iwlwifi-1000-ucode
+}
diff --git a/sys-firmware/iwl1000-ucode/metadata.xml b/sys-firmware/iwl1000-ucode/metadata.xml
new file mode 100644
index 000000000000..ca777a25adf2
--- /dev/null
+++ b/sys-firmware/iwl1000-ucode/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>ulm@gentoo.org</email>
+ <name>Ulrich Mueller</name>
+</maintainer>
+<longdescription lang="en">
+ Firmware image for Intel WiFi Link 1000 series network cards
+</longdescription>
+</pkgmetadata>
diff --git a/sys-firmware/iwl3160-7260-bt-ucode/Manifest b/sys-firmware/iwl3160-7260-bt-ucode/Manifest
new file mode 100644
index 000000000000..4a4d4ae71dbb
--- /dev/null
+++ b/sys-firmware/iwl3160-7260-bt-ucode/Manifest
@@ -0,0 +1,2 @@
+DIST iwl3160-7260-bt-ucode-37.8.10.tgz 21750 SHA256 74be75b38f2280aefcbafb8d5fc1cb6732e47bc7d380a30eb063e690ba9dfa59 SHA512 a0f81382cd7ce9077e8efd75566220a3b2ab0077897ce2d292091f6942b12832819335fe53d007a06797d0f79ef18463282b714e8a148dcc57898313e8f627ba WHIRLPOOL 4e9b2a8fd350eec89f6f32fdf47e95b7faeaea62292a6e3b7b7f73e25bcf6832db81b17259409b37d436faf100184d9881dc6f58633a95eb9a112e3fefba5745
+DIST iwl3160-7260-bt-ucode-37.8.10_p1.tgz 51854 SHA256 beff2a842970f987658062cd36b788aca6ebf4c232d8fb38fecb61dba18ecb58 SHA512 84bcaad82db9588d41ab446c2c5ff9c3f323c15b8dc6b627317edafc80c5ac5c0290a8eea9b5cb5ceafa817d398fb957385cddd715787e3abfb598cf3392774c WHIRLPOOL f251925224b67049d4d2bd75f19223dbcaad18ecffd3c903272ba44310789f4c825fdbcd32f3bccbbc0fb0211492c9285cd5a6a4fcb15b7a1d845a223cc933d1
diff --git a/sys-firmware/iwl3160-7260-bt-ucode/iwl3160-7260-bt-ucode-37.8.10.ebuild b/sys-firmware/iwl3160-7260-bt-ucode/iwl3160-7260-bt-ucode-37.8.10.ebuild
new file mode 100644
index 000000000000..a7605324adfd
--- /dev/null
+++ b/sys-firmware/iwl3160-7260-bt-ucode/iwl3160-7260-bt-ucode-37.8.10.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit linux-info
+
+DESCRIPTION="Firmware for Intel (R) Wireless 3160, 7260, 7265 Bluetooth"
+HOMEPAGE="http://wireless.kernel.org/en/users/Drivers/iwlwifi"
+SRC_URI="mirror://gentoo/${P}.tgz"
+
+LICENSE="ipw3945"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="!sys-kernel/linux-firmware[-savedconfig]"
+
+S="${WORKDIR}"
+
+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 Intel (R) Wireless 3160, 7260, 7265 firmware"
+
+pkg_pretend() {
+ if kernel_is lt 3 10 0; then
+ ewarn "Your kernel version is ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}."
+ ewarn "This microcode image requires a kernel >= 3.10.0."
+ fi
+}
+
+src_install() {
+ insinto /lib/firmware/intel
+ doins "${S}/ibt-hw-37.7.10-fw-1.0.2.3.d.bseq"
+ doins "${S}/ibt-hw-37.7.10-fw-1.80.1.2d.d.bseq"
+ doins "${S}/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq"
+ doins "${S}/ibt-hw-37.7.bseq"
+ doins "${S}/ibt-hw-37.8.10-fw-1.10.2.27.d.bseq"
+ doins "${S}/ibt-hw-37.8.bseq"
+}
diff --git a/sys-firmware/iwl3160-7260-bt-ucode/iwl3160-7260-bt-ucode-37.8.10_p1.ebuild b/sys-firmware/iwl3160-7260-bt-ucode/iwl3160-7260-bt-ucode-37.8.10_p1.ebuild
new file mode 100644
index 000000000000..a6000027fb87
--- /dev/null
+++ b/sys-firmware/iwl3160-7260-bt-ucode/iwl3160-7260-bt-ucode-37.8.10_p1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit linux-info
+
+DESCRIPTION="Firmware for Intel (R) Wireless 3160, 7260, 7265 Bluetooth"
+HOMEPAGE="http://wireless.kernel.org/en/users/Drivers/iwlwifi"
+SRC_URI="mirror://gentoo/${P}.tgz"
+
+LICENSE="ipw3945"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="!sys-kernel/linux-firmware[-savedconfig]"
+
+S="${WORKDIR}"
+
+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 Intel (R) Wireless 3160, 7260, 7265 firmware"
+
+pkg_pretend() {
+ if kernel_is lt 3 10 0; then
+ ewarn "Your kernel version is ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}."
+ ewarn "This microcode image requires a kernel >= 3.10.0."
+ fi
+}
+
+src_install() {
+ insinto /lib/firmware/intel
+ doins "${S}/ibt-hw-37.7.10-fw-1.0.1.2d.d.bseq"
+ doins "${S}/ibt-hw-37.7.10-fw-1.0.2.3.d.bseq"
+ doins "${S}/ibt-hw-37.7.10-fw-1.80.1.2d.d.bseq"
+ doins "${S}/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq"
+ doins "${S}/ibt-hw-37.7.bseq"
+ doins "${S}/ibt-hw-37.8.10-fw-1.10.2.27.d.bseq"
+ doins "${S}/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq"
+ doins "${S}/ibt-hw-37.8.bseq"
+}
diff --git a/sys-firmware/iwl3160-7260-bt-ucode/metadata.xml b/sys-firmware/iwl3160-7260-bt-ucode/metadata.xml
new file mode 100644
index 000000000000..ebddf58bc786
--- /dev/null
+++ b/sys-firmware/iwl3160-7260-bt-ucode/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>gienah@gentoo.org</email>
+ <description>Feel free to bump and add yourself to the maintainer list,
+ please consider bumping sys-firmware/iwl3160-ucode and
+ sys-firmware/iwl7260-ucode as well.</description>
+ </maintainer>
+<longdescription lang='en'>
+Firmware for Intel (R) Wireless 3160, 7260, 7265 Bluetooth.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-firmware/iwl3160-ucode/Manifest b/sys-firmware/iwl3160-ucode/Manifest
new file mode 100644
index 000000000000..64949b7cc800
--- /dev/null
+++ b/sys-firmware/iwl3160-ucode/Manifest
@@ -0,0 +1,8 @@
+DIST iwl3160-ucode-0.10.11.23.tgz 334243 SHA256 b5adfb05dc81fdfa773a34f8d752ce690777f898bb1a3697ce651cf4bf7b5746 SHA512 14aeedd0e7069d5f65d388f36b7d30bb0e3f90c2c721a582e761aa2a27402f6ad8616dd07c44812b8e62bfa0c6eabb57adae71aa2a48053cf85757fbb6548432 WHIRLPOOL 8cefd369781f015bc7763d777b61e8c0e8276027602e6a706a8679627af62113d4e64753f0a01b38809bcf38ab45d34d3cfb623ecce98071651bb260cc199548
+DIST iwl3160-ucode-0.10.15.23.tgz 335313 SHA256 5e9639b1abb809e5507d562dda677140751946f37706119c262307ad80563da4 SHA512 a939cba5dbfb73c3178844e6045d0c6b70e75df4bb1bdfc6a3ce34c82de2521f598fbb402ebd4961fbab8e33878172f156e4641c9e02566f7ab754087d857b9b WHIRLPOOL 12ef58326d170950aa5ed95d57e8fa792b3546a5f1bba3bcdd97bb99e4a95573973dc4835a264a43c023885079e6bbd07c1d1a77bdd2af9b51f595af16dccac5
+DIST iwl3160-ucode-0.12.16.25.tgz 337890 SHA256 84ba0b93efb085ec72e574095f550b7e2e508fad7bb1d725b2938989c407d595 SHA512 247906e813e5fc49889a02532cc5813f204ccdeaa9600f856d66904e3491471e9a881daffed4ed1e08f8cae14238802773c0820785d05a90406bd9f2f8df31dd WHIRLPOOL a23546e44c8e7116fac1885a15b3729600335fc501391df3d4da998ee9ad00e8b7e3c6a2072ba6f91be2395543d88dcba9c6605a2e664d963f2b33f83bea43d6
+DIST iwl3160-ucode-0.7.1.22.tgz 332285 SHA256 6350d23db66e7f5346a716fb74bb853ae798b70ad56f20f134ac99dd4941d561 SHA512 5f379edc87d0cb743bd91cecd5a1879edfd18033c02d29269ea55e046663fa47c3363a19441d0edb52ea99c58e757c81872545c8ece634459675d927f46a4392 WHIRLPOOL 35d80a4f6901bdce4ec1c34fcc3ad38a0f869f5fddebcd4c29866e5eb0fd65cebbc37fce966400d15eb3053a4f7902cd9c2397a8eaf8a857ad444a0ebc115bd2
+DIST iwl3160-ucode-0.8.15.22.tgz 328351 SHA256 101a0466a4411f5e1492dd8e559f549f1196de045b084718354ece3896c7b370 SHA512 33e8842068c285bd62cd58629855c4be82a5b19129bcaefc4ac622245562085ec4ae155dba719937f71767d3f26e0d309553c9362fe7995943f2e95a9bc5d1fd WHIRLPOOL 5c6be623389b28c585f89e370a3202874d364d7daf9b61b7c95c7824c5b4243280a723b94848c47a1b449545162e8cb6cd073a1a4f748a100310e472ec911e10
+DIST iwl3160-ucode-0.8.24.22.tgz 334306 SHA256 44082d3b70e3101343702d614e4785e498c5596117bb144e167ea8a11b5c63cb SHA512 afa9d1c081f21ec8cb3d427be79475853c9f078fb4f3d60ada154df0c58fe3dec4655dc2f54095dc395cf064563e0de9f69d55478b28ee07b7f19c0b93fb6097 WHIRLPOOL 8a18b409e5211d69d0df80498caa7b572d0d9f462417e6101c159185194db203627019fa6caea9ba3cb3c478c2975e362e3011be21d58f4f572c5c6bee77ca1b
+DIST iwl3160-ucode-0.9.214.23.tgz 335384 SHA256 37e3c7b0ef26ad1d7e3089dc100f0451045caccaab6a503e2bae98ec75befb95 SHA512 93812c6de01ba97da7192f53b33e6c4dca94a5ea2e29b519b47af3bf1f19b41cc1638b6ba92015c4faf840bf4abe8a2abfd6cff1a76557ff93024e095d246f16 WHIRLPOOL b45af6873c74887a6557a43c802e6117db0bd2bc180ba5559c0dd28b62056d0112f398385e252b2ee542623549544469d812974e5680c7ac1aa587bcba8db1c8
+DIST iwl3160-ucode-0.9.228.25.tgz 337276 SHA256 6856a994b8f92785ab220eb2a04233690cf3824a1b51252802a8af206e81b388 SHA512 95f1d3bddbb05d32a66250c6e714d74b17902b8f6d9451a5107cf2d061f1cdf90dfb3cf8b0375f6104dfb2fe1bc201dab8baa1c6bdffda944aa5fe8aad568a16 WHIRLPOOL 15838747dd6e7daa646489be95e8213c4e35fe44caad26ebeb35636796feb74da0c88ec5e1970c4a5a5384770783cad0ba583996fa63e08ae2ea411bac733f85
diff --git a/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.10.11.23.ebuild b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.10.11.23.ebuild
new file mode 100644
index 000000000000..1ea60da304dd
--- /dev/null
+++ b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.10.11.23.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="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}-${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*
+}
diff --git a/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.10.15.23.ebuild b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.10.15.23.ebuild
new file mode 100644
index 000000000000..541f1a04258c
--- /dev/null
+++ b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.10.15.23.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="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="https://wireless.wiki.kernel.org/_media/en/users/drivers/${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*
+}
diff --git a/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.12.16.25.ebuild b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.12.16.25.ebuild
new file mode 100644
index 000000000000..ea395cca3c84
--- /dev/null
+++ b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.12.16.25.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="19"
+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="https://wireless.wiki.kernel.org/_media/en/users/drivers/${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*
+}
diff --git a/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.7.1.22.ebuild b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.7.1.22.ebuild
new file mode 100644
index 000000000000..5dbac8c44f96
--- /dev/null
+++ b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.7.1.22.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="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}-${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}."
+ fi
+}
+
+src_install() {
+ insinto /lib/firmware
+ doins "${S}/iwlwifi-${DEV_N}-${vc[2]}.ucode"
+ dodoc README*
+}
diff --git a/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.8.15.22.ebuild b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.8.15.22.ebuild
new file mode 100644
index 000000000000..7bc7d2c6ec25
--- /dev/null
+++ b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.8.15.22.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="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}-${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*
+}
diff --git a/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.8.24.22.ebuild b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.8.24.22.ebuild
new file mode 100644
index 000000000000..3fa588e323e1
--- /dev/null
+++ b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.8.24.22.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="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}-${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*
+}
diff --git a/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.9.214.23.ebuild b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.9.214.23.ebuild
new file mode 100644
index 000000000000..0c31b276f80a
--- /dev/null
+++ b/sys-firmware/iwl3160-ucode/iwl3160-ucode-0.9.214.23.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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_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}-${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*
+}
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..a3e52cc510dc
--- /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
+# $Id$
+
+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*
+}
diff --git a/sys-firmware/iwl3160-ucode/metadata.xml b/sys-firmware/iwl3160-ucode/metadata.xml
new file mode 100644
index 000000000000..0188a22016aa
--- /dev/null
+++ b/sys-firmware/iwl3160-ucode/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>gienah@gentoo.org</email>
+ <description>Feel free to bump and add yourself to the maintainer list,
+ please bump sys-firmware/iwl7260-ucode and maybe
+ sys-firmware/iwl3160-7260-bt-ucode as well.</description>
+ </maintainer>
+</pkgmetadata>
diff --git a/sys-firmware/iwl6000-ucode/Manifest b/sys-firmware/iwl6000-ucode/Manifest
new file mode 100644
index 000000000000..f77f0dbaed46
--- /dev/null
+++ b/sys-firmware/iwl6000-ucode/Manifest
@@ -0,0 +1 @@
+DIST iwlwifi-6000-ucode-9.221.4.1.tgz 216806 SHA256 7f04623231663dc4ee63df32fd890bfa9514dce1fab9dc7a25fda90350da836b SHA512 18b0638e0d715444ddc5045e881e37081d6ba51baa23451d478343a20d44ff7b8ded0065aa2a3c566fd3325ee3ffc4cef48fd12263e230b2057bd034a97975d8 WHIRLPOOL ca57b56d5a1b3beda714639df6fefa7b7ab3d7ec1d600d867fa3812f89d9846c1b74b7b3fd6cb23056f65524475687ea6f5d957d05dedb739abb8d299cfbf2b9
diff --git a/sys-firmware/iwl6000-ucode/iwl6000-ucode-9.221.4.1.ebuild b/sys-firmware/iwl6000-ucode/iwl6000-ucode-9.221.4.1.ebuild
new file mode 100644
index 000000000000..a20b7e1990ef
--- /dev/null
+++ b/sys-firmware/iwl6000-ucode/iwl6000-ucode-9.221.4.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+MY_PN="iwlwifi-6000-ucode"
+
+DESCRIPTION="Intel (R) Wireless WiFi Ultimate-N 6300 and Advanced-N 6000 ucode"
+HOMEPAGE="http://intellinuxwireless.org/?p=iwlwifi"
+SRC_URI="http://intellinuxwireless.org/iwlwifi/downloads/${MY_PN}-${PV}.tgz"
+
+LICENSE="ipw3945"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_compile() { :; }
+
+src_install() {
+ insinto /lib/firmware
+ doins "${S}/iwlwifi-6000-4.ucode" || die
+
+ dodoc README* || die "dodoc failed"
+}
diff --git a/sys-firmware/iwl6000-ucode/metadata.xml b/sys-firmware/iwl6000-ucode/metadata.xml
new file mode 100644
index 000000000000..63ac5653603a
--- /dev/null
+++ b/sys-firmware/iwl6000-ucode/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>flameeyes@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/sys-firmware/iwl6005-ucode/Manifest b/sys-firmware/iwl6005-ucode/Manifest
new file mode 100644
index 000000000000..a4340eda4d63
--- /dev/null
+++ b/sys-firmware/iwl6005-ucode/Manifest
@@ -0,0 +1,2 @@
+DIST iwlwifi-6000g2a-ucode-17.168.5.3.tgz 210543 SHA256 febbbc0851db17296d35e5ca1d9266c1a14e9a9ae6ce41a36578c44971ae79f9 SHA512 9fcee47c294777f30d40933942db171d45e4bfd6c6adc8f80e759f296d1df8ee91419379bddd738654c04d73974d03dc6a9a809e10a16e58b8a3f76f8df10636 WHIRLPOOL 242d1c2b4b7e74f3bea1a48137e6dcb4871f063454c79406180369ac8fe385a493083f9b7b13d5854b0e74a955bc124889c68a9067ff4550c684833c4eec4336
+DIST iwlwifi-6000g2a-ucode-18.168.6.1.tgz 326978 SHA256 a7f2615756addafbf3e6912cb0265f9650b2807d1ccdf54b620735772725bbe9 SHA512 6e30662005e49957323addf62b73ac98f15122f451674038c8154cb544a36b1d004ad38818bf7530b1135eb40ed73d4aa4b28fd77f807ecb7a779e2067d52adb WHIRLPOOL e7f7245887d1d7c384e1afd3adfe8609970a3541059966ba625b54371c713385115cda9989ac382bb2e07ac0c74069daaffc8ca623ca58ea01c8ea0c90084bb0
diff --git a/sys-firmware/iwl6005-ucode/iwl6005-ucode-17.168.5.3.ebuild b/sys-firmware/iwl6005-ucode/iwl6005-ucode-17.168.5.3.ebuild
new file mode 100644
index 000000000000..a83174336292
--- /dev/null
+++ b/sys-firmware/iwl6005-ucode/iwl6005-ucode-17.168.5.3.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+MY_PN="iwlwifi-6000g2a-ucode"
+
+DESCRIPTION="Intel (R) Wireless WiFi Advanced N 6005 ucode"
+HOMEPAGE="http://intellinuxwireless.org/?p=iwlwifi"
+SRC_URI="http://intellinuxwireless.org/iwlwifi/downloads/${MY_PN}-${PV}.tgz"
+
+LICENSE="ipw3945"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_compile() { :; }
+
+src_install() {
+ insinto /lib/firmware
+ doins "${S}/iwlwifi-6000g2a-5.ucode" || die
+
+ dodoc README* || die "dodoc failed"
+}
diff --git a/sys-firmware/iwl6005-ucode/iwl6005-ucode-18.168.6.1.ebuild b/sys-firmware/iwl6005-ucode/iwl6005-ucode-18.168.6.1.ebuild
new file mode 100644
index 000000000000..b28a8f57e614
--- /dev/null
+++ b/sys-firmware/iwl6005-ucode/iwl6005-ucode-18.168.6.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+MY_PN="iwlwifi-6000g2a-ucode"
+
+DESCRIPTION="Intel (R) Wireless WiFi Advanced N 6005 ucode"
+HOMEPAGE="http://intellinuxwireless.org/?p=iwlwifi"
+SRC_URI="http://intellinuxwireless.org/iwlwifi/downloads/${MY_PN}-${PV}.tgz"
+
+LICENSE="ipw3945"
+SLOT="1"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_compile() { :; }
+
+src_install() {
+ insinto /lib/firmware
+ doins "${S}/iwlwifi-6000g2a-6.ucode" || die
+
+ dodoc README* || die "dodoc failed"
+}
diff --git a/sys-firmware/iwl6005-ucode/metadata.xml b/sys-firmware/iwl6005-ucode/metadata.xml
new file mode 100644
index 000000000000..ae0e9b4879ae
--- /dev/null
+++ b/sys-firmware/iwl6005-ucode/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>chainsaw@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">
+ Firmware image for Intel Centrino Advanced-N 6205
+ </longdescription>
+</pkgmetadata>
diff --git a/sys-firmware/iwl6030-ucode/Manifest b/sys-firmware/iwl6030-ucode/Manifest
new file mode 100644
index 000000000000..17bf5b861d08
--- /dev/null
+++ b/sys-firmware/iwl6030-ucode/Manifest
@@ -0,0 +1,2 @@
+DIST iwlwifi-6000g2b-ucode-17.168.5.2.tgz 221694 SHA256 5e4afdf070bfef549e50e62187f22dc2e40f5d9fe8b9a77561f8f3efb0d1d052
+DIST iwlwifi-6000g2b-ucode-18.168.6.1.tgz 330313 SHA256 1683c76b52c3505205447c338603ad08611fcc2da024f476e56e1298b4f10bea
diff --git a/sys-firmware/iwl6030-ucode/iwl6030-ucode-17.168.5.2.ebuild b/sys-firmware/iwl6030-ucode/iwl6030-ucode-17.168.5.2.ebuild
new file mode 100644
index 000000000000..020ff2267fc2
--- /dev/null
+++ b/sys-firmware/iwl6030-ucode/iwl6030-ucode-17.168.5.2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+MY_PN="iwlwifi-6000g2b-ucode"
+
+DESCRIPTION="Intel (R) Wireless WiFi Advanced N 6030 ucode"
+HOMEPAGE="http://intellinuxwireless.org/?p=iwlwifi"
+SRC_URI="http://intellinuxwireless.org/iwlwifi/downloads/${MY_PN}-${PV}.tgz"
+
+LICENSE="ipw3945"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_compile() { :; }
+
+src_install() {
+ insinto /lib/firmware
+ doins "${S}/iwlwifi-6000g2b-5.ucode" || die
+
+ dodoc README* || die "dodoc failed"
+}
diff --git a/sys-firmware/iwl6030-ucode/iwl6030-ucode-18.168.6.1.ebuild b/sys-firmware/iwl6030-ucode/iwl6030-ucode-18.168.6.1.ebuild
new file mode 100644
index 000000000000..714f770923b4
--- /dev/null
+++ b/sys-firmware/iwl6030-ucode/iwl6030-ucode-18.168.6.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+MY_PN="iwlwifi-6000g2b-ucode"
+
+DESCRIPTION="Intel (R) Wireless WiFi Advanced N 6030 ucode"
+HOMEPAGE="http://intellinuxwireless.org/?p=iwlwifi"
+SRC_URI="http://intellinuxwireless.org/iwlwifi/downloads/${MY_PN}-${PV}.tgz"
+
+LICENSE="ipw3945"
+SLOT="1"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_compile() { :; }
+
+src_install() {
+ insinto /lib/firmware
+ doins "${S}/iwlwifi-6000g2b-6.ucode" || die
+
+ dodoc README* || die "dodoc failed"
+}
diff --git a/sys-firmware/iwl6030-ucode/metadata.xml b/sys-firmware/iwl6030-ucode/metadata.xml
new file mode 100644
index 000000000000..ae0e9b4879ae
--- /dev/null
+++ b/sys-firmware/iwl6030-ucode/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>chainsaw@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">
+ Firmware image for Intel Centrino Advanced-N 6205
+ </longdescription>
+</pkgmetadata>
diff --git a/sys-firmware/iwl6050-ucode/Manifest b/sys-firmware/iwl6050-ucode/Manifest
new file mode 100644
index 000000000000..97d339f7977c
--- /dev/null
+++ b/sys-firmware/iwl6050-ucode/Manifest
@@ -0,0 +1,2 @@
+DIST iwlwifi-6050-ucode-41.28.5.1.tgz 223378 SHA256 597d9a3ddb4b69f4590b436cf33d30a342bab2de3c9d8fa3d007b039accb20c4
+DIST iwlwifi-6050-ucode-9.201.4.1.tgz 217685 SHA256 1cbca537d7c9af2c8d1f40b00cb430055b6f06de4b6d29e2a318bb0eae3352ff
diff --git a/sys-firmware/iwl6050-ucode/iwl6050-ucode-41.28.5.1.ebuild b/sys-firmware/iwl6050-ucode/iwl6050-ucode-41.28.5.1.ebuild
new file mode 100644
index 000000000000..ccc37c4c2fd2
--- /dev/null
+++ b/sys-firmware/iwl6050-ucode/iwl6050-ucode-41.28.5.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit linux-info
+
+MY_PN="iwlwifi-6050-ucode"
+
+DESCRIPTION="Intel (R) Wireless WiFi Link 6250-AGN ucode"
+HOMEPAGE="http://intellinuxwireless.org/?p=iwlwifi"
+SRC_URI="http://intellinuxwireless.org/iwlwifi/downloads/${MY_PN}-${PV}.tgz"
+
+LICENSE="ipw3945"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_compile() { :; }
+
+src_install() {
+ insinto /lib/firmware
+ doins iwlwifi-6050-5.ucode || die
+
+ dodoc README* || die "dodoc failed"
+
+ if kernel_is lt 2 6 37; then
+ ewarn "Your kernel version is ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}"
+ ewarn "This microcode image requires a kernel >= 2.6.37 or a 2.6.36 "
+ ewarn "kernel using >= genpatches-2.6.36-8 which is included"
+ ewarn "in gentoo-sources >= 2.6.36-r6 or any kernel version >= 2.6.37."
+ fi
+}
diff --git a/sys-firmware/iwl6050-ucode/iwl6050-ucode-9.201.4.1.ebuild b/sys-firmware/iwl6050-ucode/iwl6050-ucode-9.201.4.1.ebuild
new file mode 100644
index 000000000000..de3a5576bfd6
--- /dev/null
+++ b/sys-firmware/iwl6050-ucode/iwl6050-ucode-9.201.4.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+MY_PN="iwlwifi-6050-ucode"
+
+DESCRIPTION="Intel (R) Wireless WiFi Link 6250-AGN ucode"
+HOMEPAGE="http://intellinuxwireless.org/?p=iwlwifi"
+SRC_URI="http://intellinuxwireless.org/iwlwifi/downloads/${MY_PN}-${PV}.tgz"
+
+LICENSE="ipw3945"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_compile() { :; }
+
+src_install() {
+ insinto /lib/firmware
+ doins iwlwifi-6050-4.ucode || die
+
+ dodoc README* || die "dodoc failed"
+}
diff --git a/sys-firmware/iwl6050-ucode/metadata.xml b/sys-firmware/iwl6050-ucode/metadata.xml
new file mode 100644
index 000000000000..1c37e40592a6
--- /dev/null
+++ b/sys-firmware/iwl6050-ucode/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>mpagano@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/sys-firmware/iwl7260-ucode/Manifest b/sys-firmware/iwl7260-ucode/Manifest
new file mode 100644
index 000000000000..1c50a78c15e4
--- /dev/null
+++ b/sys-firmware/iwl7260-ucode/Manifest
@@ -0,0 +1,8 @@
+DIST iwl7260-ucode-0.10.11.23.tgz 347295 SHA256 4a1feba4436bc48c77e3494114e3b0d2a9d6e9208990c52b16c30c38da3c3cb5 SHA512 8e8e14be7e2f3f97a40bcfa16065d55418e42c10d7e4987b956a55775a8b0dfe75127296b97e6bcb9becf53133cd3f052e2691c05421804b6d3e11fc951d1a6f WHIRLPOOL cf55616de4653029bc3b178d24720d9ddfea3fa08342d0d80ac6602e3fd328cbb3540e4dffa22df243f600e214e0c6f206d5d63569ecafc48028a33ab4587319
+DIST iwl7260-ucode-0.10.15.23.tgz 348549 SHA256 8ad0c1457b694a6a84754619a40d826e6755de65efed8b8d1b273eb6560777e5 SHA512 a40efc2610a981b1e0de2a88d16afa760f5bcb116987034769a1a9adcc716b1ea84103e9a7c372172e98690e729c4d6e34b5857e2c9097439184b3b473f168a8 WHIRLPOOL 3836fb407fcec2b9e9ce64a83d18ccb40f1c031f166820f8921b06df7828bb94aad3e02eef11d159a41bc236c1d0f0f63829759a5671744acab5967fe5056e2b
+DIST iwl7260-ucode-0.12.16.25.tgz 353537 SHA256 d747e20bf4127357b162b583dbbf2067d2c034fadba1a2063de7aa94885b4f3e SHA512 efedee8f6d4078865b45962a8297c6c1022504653360ee6a23cc7f1eb4cfb1a34c5ee6685cf9819a61f439d445579e1eb14da84f3e28bcf45f89a5a66fbdfa07 WHIRLPOOL b4f913e9a4e92f61bb557da2254de8dc5c7c0d293c0d1948c2f84760a34dec56243e179e90aed74380bd8cdaed031994d193b8f62cb38d8e7c286831a99dcbd6
+DIST iwl7260-ucode-0.7.1.22.tgz 341956 SHA256 1ecc335e2a81a4f6d19422a5e707a93ef56351030a4e95d698e064fe51ba6154 SHA512 c6ae43ec84e5d0df85b6fc1962c5d6052be9352e453b53807a3c45eebc334892dae51c84a053fd197afa66a77bac5b5c349de8d566c071f15f2e76c370a36880 WHIRLPOOL 91ed3469604377462701ac921f06bd0269e032f04a1523ecc9e550d94cfd0fc1fee5caa484f0d46cd5d41ad25bc041fe953a7cd6c2dc0b8e3cbd39705b08119d
+DIST iwl7260-ucode-0.8.15.22.tgz 342953 SHA256 7ef7010705b26ab182c45f3810243cc814c0bec7a0c3dad21f0cdd22019ee7ec SHA512 7f6105c547dde559280444e1d729928c33d55ca4f5df1036d40ced735d7863277f2291a27c36ac544bb0c4278883b345be087268124d22af85155b0b4a57bb96 WHIRLPOOL 2ceea1c21749af78748652c8ce12df520621e0f54eff3c80307f0e038b23f730c9eccbadd1a4152276b8e99a447e7f1e38641d161334c197a5e86c5ce9e9e37e
+DIST iwl7260-ucode-0.8.24.22.tgz 346691 SHA256 11ef671652ade65fc6c7c843f56d19873b5a91b2e65676bd6df9ec39642b7cff SHA512 a8a81030bdec074b6370a6bb7f3b22fd8389b76c00b9b27902acfb34be2263662adf5b7eee6e8817c22dead54528607ccb93194073bd509191561a15ce88a3e8 WHIRLPOOL 205af365e22f9f28a95a5e3bef0cff59d301d03f60a21daac79a0f039c35fadfcbaca97b68082ecebead3396576d93bd372655c730cef87524a1dc382331a8d5
+DIST iwl7260-ucode-0.9.214.23.tgz 347695 SHA256 a3124e3c03405dacae6782ce7bc5b71c38c20e3528413a9ab571a0ce4e2418ad SHA512 d3ffaacc2827d088cbc1086b4d736e158dafde981e10a01442ede3003f8ccc66bb7ca6ca62c4f3c03fce4cc3cba56141c9144024ecfdaaf52ea3c7cdfbdbf074 WHIRLPOOL 81af9b1967a7f30da7bb60d068fe0c0242bffaf6ff80b00f6c7691f2c9e27243cde0f70b10581d3fbacd814ed369b9c39ca3ba30c677fed552496cc51f56dd6d
+DIST iwl7260-ucode-0.9.228.25.tgz 348138 SHA256 66781ba55a121889c3a2f0433d99c7bffc7699f08437d5de53890a362f4dfd5e SHA512 f2d6d5fa859e0f7680f695e6ae4fe2c2a56eb7dd26430b61520f7ab95322601bceafff33038945bbf07c8e6691b9a19cd5a5e7ae3e349bd89b72d11d09a9bfdc WHIRLPOOL 261edbed0edffaa78fb64515d1ae0f7fdf43a9f859e57e1a35120c8bda2f273b1be60f8ac4b4fc41b242cf1fa8771ae9e63f35c0be2049b506ae7da491c2a0d4
diff --git a/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.10.11.23.ebuild b/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.10.11.23.ebuild
new file mode 100644
index 000000000000..1ea60da304dd
--- /dev/null
+++ b/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.10.11.23.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="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}-${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*
+}
diff --git a/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.10.15.23.ebuild b/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.10.15.23.ebuild
new file mode 100644
index 000000000000..541f1a04258c
--- /dev/null
+++ b/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.10.15.23.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="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="https://wireless.wiki.kernel.org/_media/en/users/drivers/${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*
+}
diff --git a/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.12.16.25.ebuild b/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.12.16.25.ebuild
new file mode 100644
index 000000000000..ea395cca3c84
--- /dev/null
+++ b/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.12.16.25.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="19"
+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="https://wireless.wiki.kernel.org/_media/en/users/drivers/${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*
+}
diff --git a/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.7.1.22.ebuild b/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.7.1.22.ebuild
new file mode 100644
index 000000000000..fc3f4e0213fd
--- /dev/null
+++ b/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.7.1.22.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="10"
+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}-${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}."
+ fi
+}
+
+src_install() {
+ insinto /lib/firmware
+ doins "${S}/iwlwifi-${DEV_N}-${vc[2]}.ucode"
+ dodoc README*
+}
diff --git a/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.8.15.22.ebuild b/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.8.15.22.ebuild
new file mode 100644
index 000000000000..3fa588e323e1
--- /dev/null
+++ b/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.8.15.22.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="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}-${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*
+}
diff --git a/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.8.24.22.ebuild b/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.8.24.22.ebuild
new file mode 100644
index 000000000000..3fa588e323e1
--- /dev/null
+++ b/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.8.24.22.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="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}-${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*
+}
diff --git a/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.9.214.23.ebuild b/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.9.214.23.ebuild
new file mode 100644
index 000000000000..3171a5539da9
--- /dev/null
+++ b/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.9.214.23.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="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}-${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*
+}
diff --git a/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.9.228.25.ebuild b/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.9.228.25.ebuild
new file mode 100644
index 000000000000..4b2c440acd2f
--- /dev/null
+++ b/sys-firmware/iwl7260-ucode/iwl7260-ucode-0.9.228.25.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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"
+
+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*
+}
diff --git a/sys-firmware/iwl7260-ucode/metadata.xml b/sys-firmware/iwl7260-ucode/metadata.xml
new file mode 100644
index 000000000000..d4caf1eba71e
--- /dev/null
+++ b/sys-firmware/iwl7260-ucode/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>gienah@gentoo.org</email>
+ <description>Feel free to bump and add yourself to the maintainer list,
+ please bump sys-firmware/iwl3160-ucode and maybe
+ sys-firmware/iwl3160-7260-bt-ucode as well.</description>
+ </maintainer>
+</pkgmetadata>
diff --git a/sys-firmware/metadata.xml b/sys-firmware/metadata.xml
new file mode 100644
index 000000000000..a489acee81d5
--- /dev/null
+++ b/sys-firmware/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The sys-firmware category contains misc. firmware and microcode.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría sys-firmware contiene firmware y microcódigo para
+ diversos dispositivos.
+ </longdescription>
+</catmetadata>
diff --git a/sys-firmware/nvidia-firmware/Manifest b/sys-firmware/nvidia-firmware/Manifest
new file mode 100644
index 000000000000..0e1c2f2dadfc
--- /dev/null
+++ b/sys-firmware/nvidia-firmware/Manifest
@@ -0,0 +1,4 @@
+DIST NVIDIA-Linux-x86-325.15.run 27409286 SHA256 3d790e4bfed24641f7cc76879144ab5d52b12271012ba381b0d33aa1a2e08775 SHA512 48052c3daa8748a7c43de1c24e00fdd3f94cebbe7f5efbb185a0472a1d0bbab8adfe377359ccdc6cd8e437a80506fdd551408237b0842c194a3497c43cf3487e WHIRLPOOL 387fb8af1a31cc295abe7b15fee7d5bc01c515603b178abe7f50864dbbf0685ca50f88e67359adc4af8e90caaeb1fba95aa6af9f54e6fced46c82c5cfc094390
+DIST NVIDIA-Linux-x86-340.32.run 38587515 SHA256 1d0489c35c5b332c9b949d9de3c3cbab4ac3a94385aa41e7a7b62ef23f4395f5 SHA512 a67e57a1bd70a9cd5ae2bed70403920ed94d8eac9d08dcd380f6065cd597d5824e26ae25a0bcd56626190124c07d128f3b0429040794c8e8d3ead85860fcb646 WHIRLPOOL 66bf6db27edddae845606e82cf9397dbf483bbde23e97899575c8ac3f6ce86c84d88f8e60c60b1aad1360fe9bea4f43de030a849f88f43d482508de23cd24d8e
+DIST nvidia_extract_firmware-325.15.py 12715 SHA256 e04030b4843367626a98c2afd92fe54d8f72d4904ffa1b42ad00554156614fd6 SHA512 ede9bed14bdae0684a5091fbaa1edcd5ed57463a19a4aee72633167ade5490f8de1d373ebf541678fa53d952da5cd9251c429329aa487578083d9622e6b926a4 WHIRLPOOL 2d549ee458787170e6192891a0e22f046a8a0424b4dc06ca77a163aad9ebb8c4973021f11b3a08cdf1c687796f1a2c9428e9f6a70138259a6d9f2a2b6b34e6bb
+DIST nvidia_extract_firmware-340.32.py 13097 SHA256 2a08c4e581c283b01496e593dfb87e78338d555ff8afa0cc0010dc6a59c7bd02 SHA512 a90a8907288ee841dc063a80afb1fea02e0034becddd75e367cf8fbdc065f321746e0d1bb77f158f7b011cfc03ad517e658ad1cc7a1b596e1452363862528b89 WHIRLPOOL 0181057aac5be8bf759df65a3af120fe77921ecc53442b8e7daf96c185a3ed4046f1df462d413abeb9dea78e41052ab008847fa4fdff0e44f6d13eb392139167
diff --git a/sys-firmware/nvidia-firmware/metadata.xml b/sys-firmware/nvidia-firmware/metadata.xml
new file mode 100644
index 000000000000..b71a8a2e034d
--- /dev/null
+++ b/sys-firmware/nvidia-firmware/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>idl0r@gentoo.org</email>
+ <name>Christian Ruppert</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sys-firmware/nvidia-firmware/nvidia-firmware-325.15.ebuild b/sys-firmware/nvidia-firmware/nvidia-firmware-325.15.ebuild
new file mode 100644
index 000000000000..2dde472c3cd3
--- /dev/null
+++ b/sys-firmware/nvidia-firmware/nvidia-firmware-325.15.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit unpacker
+
+NV_URI="http://us.download.nvidia.com/XFree86/"
+X86_NV_PACKAGE="NVIDIA-Linux-x86-${PV}"
+
+EXTRACT_FIRMWARE_REV="845a51ab607df85fc0ed01f0b5b6d57850e37662"
+
+DESCRIPTION="Kernel and mesa firmware for nouveau (video accel and pgraph)"
+HOMEPAGE="http://nouveau.freedesktop.org/wiki/VideoAcceleration/"
+SRC_URI="${NV_URI}Linux-x86/${PV}/${X86_NV_PACKAGE}.run
+ https://raw.github.com/imirkin/re-vp2/${EXTRACT_FIRMWARE_REV}/extract_firmware.py -> nvidia_extract_firmware-${PV}.py"
+
+LICENSE="MIT NVIDIA-r2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+DEPEND="=dev-lang/python-2*"
+RDEPEND=""
+
+RESTRICT="bindist mirror"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ mkdir "${S}/${X86_NV_PACKAGE}"
+ cd "${S}/${X86_NV_PACKAGE}"
+ unpack_makeself "${X86_NV_PACKAGE}.run"
+}
+
+src_compile() {
+ python2 "${DISTDIR}"/nvidia_extract_firmware-${PV}.py || die "Extracting firmwares failed..."
+}
+
+src_install() {
+ insinto /lib/firmware/nouveau
+ doins nv* vuc-*
+}
diff --git a/sys-firmware/nvidia-firmware/nvidia-firmware-340.32.ebuild b/sys-firmware/nvidia-firmware/nvidia-firmware-340.32.ebuild
new file mode 100644
index 000000000000..3972aaf95dc8
--- /dev/null
+++ b/sys-firmware/nvidia-firmware/nvidia-firmware-340.32.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit python-any-r1 unpacker
+
+NV_URI="http://us.download.nvidia.com/XFree86/"
+X86_NV_PACKAGE="NVIDIA-Linux-x86-${PV}"
+
+EXTRACT_FIRMWARE_REV="96641bfebb2547402b2145fcf0e3116410f0da87"
+
+DESCRIPTION="Kernel and mesa firmware for nouveau (video accel and pgraph)"
+HOMEPAGE="http://nouveau.freedesktop.org/wiki/VideoAcceleration/"
+SRC_URI="${NV_URI}Linux-x86/${PV}/${X86_NV_PACKAGE}.run
+ https://raw.github.com/imirkin/re-vp2/${EXTRACT_FIRMWARE_REV}/extract_firmware.py -> nvidia_extract_firmware-${PV}.py"
+
+LICENSE="MIT NVIDIA-r2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND=""
+
+RESTRICT="bindist mirror"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ mkdir "${S}/${X86_NV_PACKAGE}"
+ cd "${S}/${X86_NV_PACKAGE}"
+ unpack_makeself "${X86_NV_PACKAGE}.run"
+}
+
+src_compile() {
+ "${PYTHON}" "${DISTDIR}"/nvidia_extract_firmware-${PV}.py || die "Extracting firmwares failed..."
+}
+
+src_install() {
+ insinto /lib/firmware/nouveau
+ doins nv* vuc-*
+}
diff --git a/sys-firmware/seabios/Manifest b/sys-firmware/seabios/Manifest
new file mode 100644
index 000000000000..65ec2114d322
--- /dev/null
+++ b/sys-firmware/seabios/Manifest
@@ -0,0 +1,3 @@
+DIST bios.bin-1.7.5.gz 78943 SHA256 2e83e68e6cff73ede1c2490dabad74c177d7b67f9d93a5ed5f2ef39e76dea0ea SHA512 153a4cf190843540a9a72fcb0cf34f1f9f6ff2efb4b4f700c515dea467b101a8999421b53c2f21599864e2e803ae455a4ae39c7e8be9491c4383b4bfbe734014 WHIRLPOOL 2383f5f3a91581b0ee0ff19fd429a67b7fe09db05c456b98aee01ab9008a12d265e56f81b4d60224c7be15a86da9d2288f83a1d83f621b2ff00ab3aaccb277a4
+DIST seabios-1.7.5.tar.gz 537566 SHA256 858d9eda4ad91efa1c45a5a401d560ef9ca8dd172f03b0a106f06661c252dc51 SHA512 ecf5fb9ac44dde6e4ac00baa6c920dde51b923f23dd74e62c5a02eceaf235e57b885975c5a8bd0927e268115c72bd1143a080fdfd4eff4e168ebeaa30436280e WHIRLPOOL 5e1e99b3bd82a8607c5986fde4592c7437bec4bd78abd5873710f6c431d075436725e8d0d32e9f0dd2921c9d84b8613108b21d31c5309a73e337ead7adf35e90
+DIST seabios_1.7.5-1_all.deb 112098 SHA256 61bab13a733e8087147ae4798f0053c6d632866e332a1ee3af2265e4f57ced36 SHA512 891a26e084ccac8e9badce5a58eeadfb958af9d5ed087a99998f92153718e8231c14abfae0ed86bde870aa9e2f29fd93d5cc04515695e6f2d7b9fcaaef11bfce WHIRLPOOL d47ad79e7bd701862d059d86c7cb3b730b0303c5170ec52a481df5326cad0cd98ea78fcdb2730623b6b65289d9042f4685991eb515402543083cd8228f849959
diff --git a/sys-firmware/seabios/files/seavgabios/README b/sys-firmware/seabios/files/seavgabios/README
new file mode 100644
index 000000000000..7030949c1810
--- /dev/null
+++ b/sys-firmware/seabios/files/seavgabios/README
@@ -0,0 +1 @@
+The config.vga-xxx files come from the qemu/roms/ tree.
diff --git a/sys-firmware/seabios/files/seavgabios/config.vga-cirrus b/sys-firmware/seabios/files/seavgabios/config.vga-cirrus
new file mode 100644
index 000000000000..c8fe58239f84
--- /dev/null
+++ b/sys-firmware/seabios/files/seavgabios/config.vga-cirrus
@@ -0,0 +1,3 @@
+CONFIG_BUILD_VGABIOS=y
+CONFIG_VGA_CIRRUS=y
+CONFIG_VGA_PCI=y
diff --git a/sys-firmware/seabios/files/seavgabios/config.vga-isavga b/sys-firmware/seabios/files/seavgabios/config.vga-isavga
new file mode 100644
index 000000000000..e55e294a0c0a
--- /dev/null
+++ b/sys-firmware/seabios/files/seavgabios/config.vga-isavga
@@ -0,0 +1,3 @@
+CONFIG_BUILD_VGABIOS=y
+CONFIG_VGA_BOCHS=y
+CONFIG_VGA_PCI=n
diff --git a/sys-firmware/seabios/files/seavgabios/config.vga-qxl b/sys-firmware/seabios/files/seavgabios/config.vga-qxl
new file mode 100644
index 000000000000..d393f0c34fd2
--- /dev/null
+++ b/sys-firmware/seabios/files/seavgabios/config.vga-qxl
@@ -0,0 +1,6 @@
+CONFIG_BUILD_VGABIOS=y
+CONFIG_VGA_BOCHS=y
+CONFIG_VGA_PCI=y
+CONFIG_OVERRIDE_PCI_ID=y
+CONFIG_VGA_VID=0x1b36
+CONFIG_VGA_DID=0x0100
diff --git a/sys-firmware/seabios/files/seavgabios/config.vga-stdvga b/sys-firmware/seabios/files/seavgabios/config.vga-stdvga
new file mode 100644
index 000000000000..7d063b787cd9
--- /dev/null
+++ b/sys-firmware/seabios/files/seavgabios/config.vga-stdvga
@@ -0,0 +1,3 @@
+CONFIG_BUILD_VGABIOS=y
+CONFIG_VGA_BOCHS=y
+CONFIG_VGA_PCI=y
diff --git a/sys-firmware/seabios/files/seavgabios/config.vga-vmware b/sys-firmware/seabios/files/seavgabios/config.vga-vmware
new file mode 100644
index 000000000000..eb10427afdd3
--- /dev/null
+++ b/sys-firmware/seabios/files/seavgabios/config.vga-vmware
@@ -0,0 +1,6 @@
+CONFIG_BUILD_VGABIOS=y
+CONFIG_VGA_BOCHS=y
+CONFIG_VGA_PCI=y
+CONFIG_OVERRIDE_PCI_ID=y
+CONFIG_VGA_VID=0x15ad
+CONFIG_VGA_DID=0x0405
diff --git a/sys-firmware/seabios/metadata.xml b/sys-firmware/seabios/metadata.xml
new file mode 100644
index 000000000000..4e341d27ef39
--- /dev/null
+++ b/sys-firmware/seabios/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>virtualization</herd>
+ <maintainer>
+ <email>cardoe@gentoo.org</email>
+ <name>Doug Goldstein</name>
+ </maintainer>
+ <use>
+ <flag name='binary'>Use official upstream pre-built binaries</flag>
+ <flag name='seavgabios'>Include SeaVGABIOS binaries (replacement for vgabios)</flag>
+ </use>
+</pkgmetadata>
+
diff --git a/sys-firmware/seabios/seabios-1.7.5-r1.ebuild b/sys-firmware/seabios/seabios-1.7.5-r1.ebuild
new file mode 100644
index 000000000000..cec3da958961
--- /dev/null
+++ b/sys-firmware/seabios/seabios-1.7.5-r1.ebuild
@@ -0,0 +1,141 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils toolchain-funcs python-any-r1
+
+#BACKPORTS=1
+
+# SeaBIOS maintainers sometimes don't release stable tarballs or stable
+# binaries to generate the stable tarball the following is necessary:
+# git clone git://git.seabios.org/seabios.git && cd seabios
+# git archive --output seabios-${PV}.tar.gz --prefix seabios-${PV}/ rel-${PV}
+
+if [[ ${PV} = *9999* || ! -z "${EGIT_COMMIT}" ]]; then
+ EGIT_REPO_URI="git://git.seabios.org/seabios.git"
+ inherit git-2
+else
+ KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd"
+ SRC_URI="!binary? ( http://code.coreboot.org/p/seabios/downloads/get/${P}.tar.gz )
+ binary? (
+ http://code.coreboot.org/p/seabios/downloads/get/bios.bin-${PV}.gz
+ seavgabios? (
+ mirror://debian/pool/main/s/${PN}/${PN}_${PV}-1_all.deb
+ )
+ )
+ ${BACKPORTS:+http://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz}"
+fi
+
+DESCRIPTION="Open Source implementation of a 16-bit x86 BIOS"
+HOMEPAGE="http://www.seabios.org"
+
+LICENSE="LGPL-3 GPL-3"
+SLOT="0"
+IUSE="+binary +seavgabios"
+
+REQUIRED_USE="ppc? ( binary )
+ ppc64? ( binary )"
+
+DEPEND="
+ !binary? (
+ >=sys-power/iasl-20060912
+ ${PYTHON_DEPS}
+ )"
+RDEPEND=""
+
+pkg_pretend() {
+ if ! use binary; then
+ ewarn "You have decided to compile your own SeaBIOS. This is not"
+ ewarn "supported by upstream unless you use their recommended"
+ ewarn "toolchain (which you are not)."
+ elog
+ ewarn "If you are intending to use this build with QEMU, realize"
+ ewarn "you will not receive any support if you have compiled your"
+ ewarn "own SeaBIOS. Virtual machines subtly fail based on changes"
+ ewarn "in SeaBIOS."
+ fi
+}
+
+pkg_setup() {
+ use binary || python-any-r1_pkg_setup
+}
+
+src_unpack() {
+ default
+ if use binary && use seavgabios ; then
+ unpack ./data.tar.xz
+ mv usr/share/seabios/vgabios*.bin ./ || die
+ fi
+
+ # This simplifies the logic between binary & source builds.
+ mkdir -p "${S}"
+}
+
+src_prepare() {
+ use binary && return
+
+ if [[ -z "${EGIT_COMMIT}" ]]; then
+ sed -e "s/VERSION=.*/VERSION=${PV}/" \
+ -i Makefile || die
+ else
+ sed -e "s/VERSION=.*/VERSION=${PV}_pre${EGIT_COMMIT}/" \
+ -i Makefile || die
+ fi
+
+ epatch_user
+}
+
+src_configure() {
+ use binary || tc-ld-disable-gold #438058
+}
+
+_emake() {
+ LANG=C \
+ emake V=1 \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getLD)" \
+ AR="$(tc-getAR)" \
+ OBJCOPY="$(tc-getOBJCOPY)" \
+ RANLIB="$(tc-getRANLIB)" \
+ OBJDUMP="$(tc-getOBJDUMP)" \
+ HOST_CC="$(tc-getBUILD_CC)" \
+ "$@"
+}
+
+src_compile() {
+ use binary && return
+
+ _emake out/bios.bin
+ mv out/bios.bin ../bios.bin
+
+ if use seavgabios ; then
+ local config t targets=(
+ cirrus
+ isavga
+ qxl
+ stdvga
+ vmware
+ )
+ for t in "${targets[@]}" ; do
+ emake clean distclean
+ cp "${FILESDIR}/seavgabios/config.vga-${t}" .config || die
+ _emake oldnoconfig
+ _emake out/vgabios.bin
+ cp out/vgabios.bin ../vgabios-${t}.bin || die
+ done
+ fi
+}
+
+src_install() {
+ insinto /usr/share/seabios
+ newins ../bios.bin* bios.bin
+
+ if use seavgabios ; then
+ insinto /usr/share/seavgabios
+ doins ../vgabios*.bin
+ fi
+}
diff --git a/sys-firmware/seabios/seabios-1.7.5.ebuild b/sys-firmware/seabios/seabios-1.7.5.ebuild
new file mode 100644
index 000000000000..e2224ebe26ac
--- /dev/null
+++ b/sys-firmware/seabios/seabios-1.7.5.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils toolchain-funcs python-any-r1
+
+#BACKPORTS=1
+
+# SeaBIOS maintainers sometimes don't release stable tarballs or stable
+# binaries to generate the stable tarball the following is necessary:
+# git clone git://git.seabios.org/seabios.git && cd seabios
+# git archive --output seabios-${PV}.tar.gz --prefix seabios-${PV}/ rel-${PV}
+
+if [[ ${PV} = *9999* || ! -z "${EGIT_COMMIT}" ]]; then
+ EGIT_REPO_URI="git://git.seabios.org/seabios.git"
+ inherit git-2
+else
+ KEYWORDS="amd64 ~ppc ~ppc64 x86 ~amd64-fbsd ~x86-fbsd"
+ SRC_URI="!binary? ( http://code.coreboot.org/p/seabios/downloads/get/${P}.tar.gz )
+ binary? ( http://code.coreboot.org/p/seabios/downloads/get/bios.bin-${PV}.gz )
+ ${BACKPORTS:+http://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz}"
+fi
+
+DESCRIPTION="Open Source implementation of a 16-bit x86 BIOS"
+HOMEPAGE="http://www.seabios.org"
+
+LICENSE="LGPL-3 GPL-3"
+SLOT="0"
+IUSE="+binary"
+
+REQUIRED_USE="ppc? ( binary )
+ ppc64? ( binary )"
+
+DEPEND="
+ !binary? (
+ >=sys-power/iasl-20060912
+ ${PYTHON_DEPS}
+ )"
+RDEPEND=""
+
+pkg_pretend() {
+ if ! use binary; then
+ ewarn "You have decided to compile your own SeaBIOS. This is not"
+ ewarn "supported by upstream unless you use their recommended"
+ ewarn "toolchain (which you are not)."
+ elog
+ ewarn "If you are intending to use this build with QEMU, realize"
+ ewarn "you will not receive any support if you have compiled your"
+ ewarn "own SeaBIOS. Virtual machines subtly fail based on changes"
+ ewarn "in SeaBIOS."
+ fi
+}
+
+pkg_setup() {
+ use binary || python-any-r1_pkg_setup
+}
+
+src_unpack() {
+ default
+
+ # This simplifies the logic between binary & source builds.
+ mkdir -p "${S}"
+}
+
+src_prepare() {
+ use binary && return
+
+ if [[ -z "${EGIT_COMMIT}" ]]; then
+ sed -e "s/VERSION=.*/VERSION=${PV}/" \
+ -i Makefile || die
+ else
+ sed -e "s/VERSION=.*/VERSION=${PV}_pre${EGIT_COMMIT}/" \
+ -i Makefile || die
+ fi
+
+ epatch_user
+}
+
+src_configure() {
+ use binary || tc-ld-disable-gold #438058
+}
+
+src_compile() {
+ if ! use binary ; then
+ LANG=C emake \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getLD)" \
+ AR="$(tc-getAR)" \
+ OBJCOPY="$(tc-getOBJCOPY)" \
+ RANLIB="$(tc-getRANLIB)" \
+ OBJDUMP="$(tc-getOBJDUMP)" \
+ HOST_CC="$(tc-getBUILD_CC)" \
+ out/bios.bin
+ fi
+}
+
+src_install() {
+ insinto /usr/share/seabios
+ if ! use binary ; then
+ doins out/bios.bin
+ else
+ newins ../bios.bin-${PV} bios.bin
+ fi
+}
diff --git a/sys-firmware/sgabios/Manifest b/sys-firmware/sgabios/Manifest
new file mode 100644
index 000000000000..2e58f76c1505
--- /dev/null
+++ b/sys-firmware/sgabios/Manifest
@@ -0,0 +1,2 @@
+DIST sgabios-0.1_pre8-bins.tar.xz 2704 SHA256 f982ec467790432f6be662bd58b51e78f80184229ecab5f23d4c0ea2419c1b9d SHA512 46fc02200b3fa2e45c954a2b6e4cd40f10d6969fd05ef4d441402c7390b4e83390250972ef0ea891635400cad22a4d8fd2b66b56afa91d03e1e0b99132e09c0d WHIRLPOOL 7b30b6a40f7b8d5b03482179f48c23910283e45f8eaac538533b5d24289d1ada6d0e6e5ecac3260e46dedc2a1e325fa096b3ae505b96fd1716e98f80be0d209e
+DIST sgabios-0.1_pre8.tar.xz 27200 SHA256 d6f01fe343828c3323c45c000b5a2f906f1c3aa6f788ca8b31669b4a05a3d31d SHA512 68e2a894eb5b99cda2b0e96ade891e24397ac962a777a97dbb526f4570e5734d36a88fde1ef64ed7a887cd8bfc500c91c48849d2c26aca6ce7e36dd80aaf361e WHIRLPOOL de12b91a0304d6465186b9959d873061205bb055823408c84370a7563b46acd7cc955eab6e8b78a54d928bbb65281a9236e4c434fc5df707c5fffc160e311bd2
diff --git a/sys-firmware/sgabios/files/sgabios-0.1_pre8-build-cc.patch b/sys-firmware/sgabios/files/sgabios-0.1_pre8-build-cc.patch
new file mode 100644
index 000000000000..6cdac84c6acb
--- /dev/null
+++ b/sys-firmware/sgabios/files/sgabios-0.1_pre8-build-cc.patch
@@ -0,0 +1,23 @@
+https://bugs.gentoo.org/552280
+
+--- a/Makefile
++++ b/Makefile
+@@ -20,6 +20,9 @@
+ BUILD_USER = \"$(shell whoami)\"
+
+ CFLAGS := -Wall -Os -m32 -nostdlib
++BUILD_CFLAGS := -Wall -O2
++BUILD_CC ?= $(CC)
++BUILD_LD ?= $(BUILD_CC)
+
+ ASFLAGS := $(CFLAGS)
+ ASFLAGS += -DBUILD_DATE="$(BUILD_DATE)"
+@@ -55,7 +56,7 @@
+ $(LD) $(LDFLAGS) $(OBJS) -o $@
+
+ csum8: csum8.c
+- $(CC) -Wall -O2 -o $@ $<
++ $(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) -o $@ $<
+
+ sgabios.o: buildinfo
+
diff --git a/sys-firmware/sgabios/files/sgabios-0.1_pre8-makefile.patch b/sys-firmware/sgabios/files/sgabios-0.1_pre8-makefile.patch
new file mode 100644
index 000000000000..18e636f4e88e
--- /dev/null
+++ b/sys-firmware/sgabios/files/sgabios-0.1_pre8-makefile.patch
@@ -0,0 +1,12 @@
+diff -u sgabios-0.1_pre8/Makefile sgabios-0.1_pre8-fix//Makefile
+--- sgabios-0.1_pre8/Makefile 2012-07-21 17:16:41.903363117 -0500
++++ sgabios-0.1_pre8-fix//Makefile 2012-07-23 11:11:08.438162997 -0500
+@@ -71,8 +71,4 @@
+
+ ifeq (.depend, $(wildcard .depend))
+ include .depend
+-else
+-# if no .depend file existed, add a make clean to the end of building .depend
+-.depend::
+- $(MAKE) clean
+ endif
diff --git a/sys-firmware/sgabios/metadata.xml b/sys-firmware/sgabios/metadata.xml
new file mode 100644
index 000000000000..c2e341220446
--- /dev/null
+++ b/sys-firmware/sgabios/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>cardoe@gentoo.org</email>
+ <name>Doug Goldstein</name>
+ </maintainer>
+ <herd>qemu</herd>
+</pkgmetadata>
+
diff --git a/sys-firmware/sgabios/sgabios-0.1_pre8.ebuild b/sys-firmware/sgabios/sgabios-0.1_pre8.ebuild
new file mode 100644
index 000000000000..13010926ff5f
--- /dev/null
+++ b/sys-firmware/sgabios/sgabios-0.1_pre8.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="serial graphics adapter bios option rom for x86"
+HOMEPAGE="http://code.google.com/p/sgabios/"
+SRC_URI="mirror://gentoo/${P}.tar.xz
+ http://dev.gentoo.org/~cardoe/distfiles/${P}.tar.xz
+ http://dev.gentoo.org/~cardoe/distfiles/${P}-bins.tar.xz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ epatch "${FILESDIR}"/${P}-build-cc.patch #552280
+ epatch_user
+}
+
+src_compile() {
+ if use amd64 || use x86 ; then
+ tc-ld-disable-gold
+ tc-export_build_env BUILD_CC
+ emake \
+ BUILD_CC="${BUILD_CC}" \
+ BUILD_CFLAGS="${BUILD_CFLAGS}" \
+ BUILD_LDFLAGS="${BUILD_LDFLAGS}" \
+ BUILD_CPPFLAGS="${BUILD_CPPFLAGS}" \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getLD)" \
+ AR="$(tc-getAR)" \
+ OBJCOPY="$(tc-getOBJCOPY)"
+ fi
+}
+
+src_install() {
+ insinto /usr/share/sgabios
+
+ if use amd64 || use x86 ; then
+ doins sgabios.bin
+ else
+ doins bins/sgabios.bin
+ fi
+}
diff --git a/sys-firmware/sigrok-firmware-fx2lafw/Manifest b/sys-firmware/sigrok-firmware-fx2lafw/Manifest
new file mode 100644
index 000000000000..1d914d3903f3
--- /dev/null
+++ b/sys-firmware/sigrok-firmware-fx2lafw/Manifest
@@ -0,0 +1,2 @@
+DIST sigrok-firmware-fx2lafw-0.1.2.tar.gz 148798 SHA256 85c658f851fd90089382756b4c5f0326f96d630a0ad5637455a84a4a058b3572 SHA512 b1f90e06227dcd3832bb61267ef8d20a7b4df702228b884c13725e472ed56bd971a46e2b4104bde666abc599edbe20cdbb51e30ee423b07c27ab1093de5953df WHIRLPOOL bbe4705b39424c86f92ecef4d4b13e1fbf21c27e306edc8674358fc6c62a665c35753d58c53dc8177fb939443029f83ac33f1c97db66829be304919b2ffd83f1
+DIST sigrok-firmware-fx2lafw-bin-0.1.2.tar.gz 36486 SHA256 f28d411240a2f460d334e89ad18f5a632fa2a0f4afa25e030a26b41200351c70 SHA512 74d52e5200886ba3328f411e46419ed6d6892fe2ba6c0f66a94b19be82f7d04837d8a41093d1c14ce73609f84f6277956c9c44febab8a7f150c32ba7f7ab28b1 WHIRLPOOL 039a803d8e8177e731435276b03816910fba35ed51d0ac744bdff1df1ef603a728bb2046a5f057fa135ac648eb9f2c838ec16d345b1961e1fc28f411836f378e
diff --git a/sys-firmware/sigrok-firmware-fx2lafw/metadata.xml b/sys-firmware/sigrok-firmware-fx2lafw/metadata.xml
new file mode 100644
index 000000000000..fa2c363f6fec
--- /dev/null
+++ b/sys-firmware/sigrok-firmware-fx2lafw/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>dev-embedded</herd>
+<use>
+ <flag name='binary'>Use official upstream pre-built binaries</flag>
+</use>
+</pkgmetadata>
diff --git a/sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-0.1.2.ebuild b/sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-0.1.2.ebuild
new file mode 100644
index 000000000000..6b007eda214e
--- /dev/null
+++ b/sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-0.1.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils
+
+if [[ ${PV} == "9999" ]]; then
+ EGIT_REPO_URI="git://sigrok.org/${PN}"
+ inherit git-2 autotools
+else
+ SRC_URI="binary? ( http://sigrok.org/download/binary/${PN}/${PN}-bin-${PV}.tar.gz )
+ !binary? ( http://sigrok.org/download/source/${PN}/${P}.tar.gz )"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="open-source firmware for Cypress FX2 chips which makes them usable as simple logic analyzer hardware"
+HOMEPAGE="http://sigrok.org/wiki/Fx2lafw"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE="binary"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ !binary? ( >=dev-embedded/sdcc-2.9.0 )"
+
+src_unpack() {
+ [[ ${PV} == "9999" ]] && git-2_src_unpack || default
+ # The binary & source dirs are slightly diff.
+ use binary && S="${WORKDIR}/${PN}-bin-${PV}"
+}
+
+src_prepare() {
+ [[ ${PV} == "9999" ]] && eautoreconf
+}
+
+src_install() {
+ if use binary ; then
+ insinto /usr/share/sigrok-firmware
+ doins *.fw
+ dodoc ChangeLog NEWS README
+ else
+ default
+ fi
+}
diff --git a/sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-9999.ebuild b/sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-9999.ebuild
new file mode 100644
index 000000000000..6b007eda214e
--- /dev/null
+++ b/sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-9999.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils
+
+if [[ ${PV} == "9999" ]]; then
+ EGIT_REPO_URI="git://sigrok.org/${PN}"
+ inherit git-2 autotools
+else
+ SRC_URI="binary? ( http://sigrok.org/download/binary/${PN}/${PN}-bin-${PV}.tar.gz )
+ !binary? ( http://sigrok.org/download/source/${PN}/${P}.tar.gz )"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="open-source firmware for Cypress FX2 chips which makes them usable as simple logic analyzer hardware"
+HOMEPAGE="http://sigrok.org/wiki/Fx2lafw"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE="binary"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ !binary? ( >=dev-embedded/sdcc-2.9.0 )"
+
+src_unpack() {
+ [[ ${PV} == "9999" ]] && git-2_src_unpack || default
+ # The binary & source dirs are slightly diff.
+ use binary && S="${WORKDIR}/${PN}-bin-${PV}"
+}
+
+src_prepare() {
+ [[ ${PV} == "9999" ]] && eautoreconf
+}
+
+src_install() {
+ if use binary ; then
+ insinto /usr/share/sigrok-firmware
+ doins *.fw
+ dodoc ChangeLog NEWS README
+ else
+ default
+ fi
+}
diff --git a/sys-firmware/tt-s2-6400-firmware/Manifest b/sys-firmware/tt-s2-6400-firmware/Manifest
new file mode 100644
index 000000000000..11eb2210fd08
--- /dev/null
+++ b/sys-firmware/tt-s2-6400-firmware/Manifest
@@ -0,0 +1,4 @@
+DIST dvb-ttpremium-fpga-01_v1_10.zip 90791 SHA256 d5f0ecd1c687549d71a21269c25791554895d8c03ff580a9694ef24041952f69 SHA512 7083a14a25945c7b310830cb3508e9c1e3922944fa3e778588ecf6dc6faa02aca2c8e6bf4c40db632a268324a936dce20ae26563fd195a5c8e1b29446f21c97c WHIRLPOOL f6175f6b443b551d3df545b0a54951eb5d9059256354a06e71463dede754140da9f48cc2bb3498d455da6340b36aab03c801b7eabb503254d355101e23041fb6
+DIST dvb-ttpremium-loader-01_v1_03.zip 9841 SHA256 99969d4740ca26332439590e6b6e86711c89be69cf94c3732267b8278c0da763 SHA512 d0fddfeadbf1f5bc06538033ea4b69ecc6a34e1b3a8239df93c347f7882ac6b7ee8b44eaef3eaff15c81bb084e3f985f8504d68edb83479e149d904fb97e2ce3 WHIRLPOOL 2632a19a542e3feb2d6b5446873147af49ccdccf7a202b7516aa7f07aab6fae68b2c6dea3a1da4a9dbede86b5aa0e865e1dc91db28322807aade727b8edd6214
+DIST dvb-ttpremium-st7109-01_v0_5_0.zip 2074807 SHA256 914242a9781d67f9c8ec9afde7a193080979e63e14e9d395210f78574c25fb66 SHA512 c8aeb5a61deb1f66d65ca69512edaa78d0222765d60f780b7c6f9240823def66bd326a21bb1c3bf0a4206dc0b1766522fc8d7ead800a6b49682bcc75be109d59 WHIRLPOOL fbd9ba0bfc0259d7604cd07d966954c58033ab45c5815b4c871caacf215ab94abb0e183503c6d808d0979d7fc05c201204203beb2e9399baf23d736ad17587c3
+DIST dvb-ttpremium-st7109-01_v0_5_1.zip 2075442 SHA256 cf336310fdd0c6998e6efa59d17b39d1fdb682daea51b60faee66444545986d4 SHA512 8d209793201065914f4314dd4f3978ab100d93ce6abe589411b6e9bd3dc064702d3835696834e192c2aa432213d4d4be6ccbde9140faa10d7e8a16ca4909feb9 WHIRLPOOL adbe0bc84bd46afdd466bd2d133e7908c8954b3a7208dc78cc24199652b1f1a609f19319bc8af60085b09aa00ee6953b482d6339cdd11033dfca6f66061b8d14
diff --git a/sys-firmware/tt-s2-6400-firmware/metadata.xml b/sys-firmware/tt-s2-6400-firmware/metadata.xml
new file mode 100644
index 000000000000..94d2eca26f15
--- /dev/null
+++ b/sys-firmware/tt-s2-6400-firmware/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>media-tv</herd>
+ <maintainer>
+ <email>vdr@gentoo.org</email>
+ <name>Gentoo VDR Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sys-firmware/tt-s2-6400-firmware/tt-s2-6400-firmware-0.5.0.ebuild b/sys-firmware/tt-s2-6400-firmware/tt-s2-6400-firmware-0.5.0.ebuild
new file mode 100644
index 000000000000..4b003f94d7c4
--- /dev/null
+++ b/sys-firmware/tt-s2-6400-firmware/tt-s2-6400-firmware-0.5.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+RESTRICT="mirror bindist"
+
+DESCRIPTION="Firmware for the Technotrend S2-6400 DVB Card"
+HOMEPAGE="http://www.aregel.de/"
+SRC_URI="http://www.aregel.de/file_download/27/dvb-ttpremium-st7109-01_v0_5_0.zip
+ http://www.aregel.de/file_download/26/dvb-ttpremium-fpga-01_v1_10.zip
+ http://www.aregel.de/file_download/7/dvb-ttpremium-loader-01_v1_03.zip"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+S=${WORKDIR}
+
+src_install() {
+ insinto /lib/firmware
+ doins dvb-ttpremium-fpga-01.fw dvb-ttpremium-loader-01.fw dvb-ttpremium-st7109-01.fw
+}
diff --git a/sys-firmware/tt-s2-6400-firmware/tt-s2-6400-firmware-0.5.1.ebuild b/sys-firmware/tt-s2-6400-firmware/tt-s2-6400-firmware-0.5.1.ebuild
new file mode 100644
index 000000000000..69cca26f715e
--- /dev/null
+++ b/sys-firmware/tt-s2-6400-firmware/tt-s2-6400-firmware-0.5.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+RESTRICT="mirror bindist"
+
+DESCRIPTION="Firmware for the Technotrend S2-6400 DVB Card"
+HOMEPAGE="http://www.aregel.de/"
+SRC_URI="http://www.aregel.de/file_download/28/dvb-ttpremium-st7109-01_v0_5_1.zip
+ http://www.aregel.de/file_download/26/dvb-ttpremium-fpga-01_v1_10.zip
+ http://www.aregel.de/file_download/7/dvb-ttpremium-loader-01_v1_03.zip"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+S=${WORKDIR}
+
+src_install() {
+ insinto /lib/firmware
+ doins dvb-ttpremium-fpga-01.fw dvb-ttpremium-loader-01.fw dvb-ttpremium-st7109-01.fw
+}
diff --git a/sys-firmware/vgabios/Manifest b/sys-firmware/vgabios/Manifest
new file mode 100644
index 000000000000..4c42c88d672b
--- /dev/null
+++ b/sys-firmware/vgabios/Manifest
@@ -0,0 +1,5 @@
+DIST vgabios-0.6c-bins.tar.xz 17876 SHA256 804fbe3e4712fcf0381e06d17a912d5b991e6abecdcc2265efb41f07783d80d9 SHA512 7c3790d6e9feb12697558d690dd23a6ca35a9037987f516bcd84f750c177cb26ddfdbdacb68730e01f6d9ba118c5d092ad00c0cfa9f8c40b2c0218641dc8a53e WHIRLPOOL 99c8dbce88ebae05b58e39d49218027447274aa9130e62dfc637b2ac13242fd8405aa48c70bb61fe8f27eddb988dc95ea48b500528aa0d8e1df92729ba3958b1
+DIST vgabios-0.6c-fixes-2.tar.bz2 4174 SHA256 9afd6b26dea4833b1d58079982e7eec650d2dd1eb2379871e35ca5b3d10352b5 SHA512 bf85dfa52c078517c77b219361b0c569ad79ef9a8234dfdb14f39902198f0e7bfab99f826e084bda5c8321e69591deeda8242e4f52134bac654046db7fe20584 WHIRLPOOL fffd94fd20de91fe577d44c3dbd107546e81712454b0167aab708646b181b7b7976be07f38f052adccb5d0cf6734a8b42e10ca40d7cf33ec278f5f126d0dc041
+DIST vgabios-0.6c.tgz 1470496 SHA256 eff20b9cb333fc5efb1fc07430b108084977d95fee349615f7c078511e66aea1 SHA512 b0392358abf691f0a3b8292cf14dc56897d5cbf004336af4b4a3378002c4b47eb28c9da182cddf2c89d162a6e166b7a5c07cb098303a9f9918ea484922d3770e WHIRLPOOL 4e32c0af3dcf28bac3cb8c34f020cdda52b7ee2bf08adfaf52719a386ad5d5382aa389261ac5e9ceb3d2269d54b8c86e7a99b5df1170592049af6bded5daa319
+DIST vgabios-0.7a-fixes-1.tar.bz2 2602 SHA256 912bbe475a723760047c181ebec9cd5b1e99b3e528c43bbccb82b7c738656ae3 SHA512 30992efac011d4b99301960df08cdc69d9503aa6b61feed01fca2c5a910460269d9500650cb394a0737318e977a282c5e0ab613a8b2bc28b9f0c6528a9a77d73 WHIRLPOOL 304d135de9d7ddb5e9141cf90ef2e94d632a52c43e0ef156a477af1db5b2fa4dde79957b6c2cee3070e760c36670be20df34e2a9da4e5edb1fb4f1d42f6ad21e
+DIST vgabios-0.7a.tgz 1506655 SHA256 9d24c33d4bfb7831e2069cf3644936a53ef3de21d467872b54ce2ea30881b865 SHA512 35d789b1b39f8f05b757b6c3379a1b2c33dc27b244720471530325f3e215b5f4fa97cfbfc131f813013f4640fe85be912e7b4cb924fa87ed35e68b6966424874 WHIRLPOOL c03ffdcdb85cc3f20cad7d8962763e2cadf3b46c0dca559b0a9a509283101be4a8939bbde2f4b9a03c88dc2e52ce896d520d2e726a1db63adbc00d4b697e77ff
diff --git a/sys-firmware/vgabios/metadata.xml b/sys-firmware/vgabios/metadata.xml
new file mode 100644
index 000000000000..5ff1b92d840d
--- /dev/null
+++ b/sys-firmware/vgabios/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>cardoe@gentoo.org</email>
+ <name>Doug Goldstein</name>
+ </maintainer>
+ <herd>qemu</herd>
+ <use>
+ <flag name='binary'>Use official upstream pre-built binaries (only default and cirrus images)</flag>
+ </use>
+</pkgmetadata>
diff --git a/sys-firmware/vgabios/vgabios-0.6c-r1.ebuild b/sys-firmware/vgabios/vgabios-0.6c-r1.ebuild
new file mode 100644
index 000000000000..f2aa8c166ba8
--- /dev/null
+++ b/sys-firmware/vgabios/vgabios-0.6c-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+# Can't really call them backports when they're fixes that upstream
+# won't carry
+FIXES=2
+
+inherit eutils
+
+DESCRIPTION="VGA BIOS implementation"
+HOMEPAGE="http://www.nongnu.org/vgabios/"
+SRC_URI="http://savannah.gnu.org/download/${PN}/${P}.tgz
+ http://dev.gentoo.org/~cardoe/distfiles/${P}-bins.tar.xz
+ http://dev.gentoo.org/~cardoe/distfiles/${P}-fixes-${FIXES}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 x86 ~amd64-fbsd"
+IUSE="debug"
+
+DEPEND="amd64? ( sys-devel/dev86 )
+ x86? ( sys-devel/dev86 )"
+RDEPEND=""
+
+src_prepare() {
+ [[ -n ${FIXES} ]] && \
+ EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
+ epatch
+}
+
+src_compile() {
+ if use amd64 || use x86 ; then
+ emake clean # Necessary to clean up the pre-built pieces
+ emake biossums
+ emake
+ fi
+}
+
+src_install() {
+ insinto /usr/share/vgabios
+
+ if use amd64 || use x86 ; then
+ # Stock VGABIOS
+ newins VGABIOS-lgpl-latest.bin vgabios.bin
+ use debug && newins VGABIOS-lgpl-latest.debug.bin vgabios.debug.bin
+
+ # Cirrus
+ newins VGABIOS-lgpl-latest.cirrus.bin vgabios-cirrus.bin
+ use debug && newins VGABIOS-lgpl-latest.cirrus.debug.bin \
+ vgabios-cirrus.debug.bin
+
+ # QXL
+ newins VGABIOS-lgpl-latest.qxl.bin vgabios-qxl.bin
+ use debug && newins VGABIOS-lgpl-latest.qxl.debug.bin \
+ vgabios-qxl.debug.bin
+
+ # Standard VGA
+ newins VGABIOS-lgpl-latest.stdvga.bin vgabios-stdvga.bin
+ use debug && newins VGABIOS-lgpl-latest.stdvga.debug.bin \
+ vgabios-stdvga.debug.bin
+
+ # VMWare
+ newins VGABIOS-lgpl-latest.vmware.bin vgabios-vmware.bin
+ use debug && newins VGABIOS-lgpl-latest.vmware.debug.bin \
+ vgabios-vmware.debug.bin
+ else
+ doins bins/*
+ fi
+}
diff --git a/sys-firmware/vgabios/vgabios-0.7a-r1.ebuild b/sys-firmware/vgabios/vgabios-0.7a-r1.ebuild
new file mode 100644
index 000000000000..be8792903670
--- /dev/null
+++ b/sys-firmware/vgabios/vgabios-0.7a-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+# Can't really call them backports when they're fixes that upstream
+# won't carry
+FIXES=1
+
+inherit eutils
+
+DESCRIPTION="VGA BIOS implementation"
+HOMEPAGE="http://www.nongnu.org/vgabios/"
+SRC_URI="http://savannah.gnu.org/download/${PN}/${P}.tgz
+ http://dev.gentoo.org/~cardoe/distfiles/${P}-fixes-${FIXES}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="binary debug"
+
+DEPEND="!binary? ( sys-devel/dev86 )"
+RDEPEND=""
+
+src_prepare() {
+ [[ -n ${FIXES} ]] && \
+ EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
+ epatch
+
+ epatch_user
+}
+
+src_compile() {
+ if ! use binary ; then
+ emake clean # Necessary to clean up the pre-built pieces
+ emake biossums
+ emake
+ fi
+}
+
+src_install() {
+ insinto /usr/share/vgabios
+
+ # Stock VGABIOS
+ newins VGABIOS-lgpl-latest.bin vgabios.bin
+ use debug && newins VGABIOS-lgpl-latest.debug.bin vgabios.debug.bin
+
+ # Cirrus
+ newins VGABIOS-lgpl-latest.cirrus.bin vgabios-cirrus.bin
+ use debug && newins VGABIOS-lgpl-latest.cirrus.debug.bin \
+ vgabios-cirrus.debug.bin
+
+ if ! use binary ; then
+ # QXL
+ newins VGABIOS-lgpl-latest.qxl.bin vgabios-qxl.bin
+ use debug && newins VGABIOS-lgpl-latest.qxl.debug.bin \
+ vgabios-qxl.debug.bin
+
+ # Standard VGA
+ newins VGABIOS-lgpl-latest.stdvga.bin vgabios-stdvga.bin
+ use debug && newins VGABIOS-lgpl-latest.stdvga.debug.bin \
+ vgabios-stdvga.debug.bin
+
+ # VMWare
+ newins VGABIOS-lgpl-latest.vmware.bin vgabios-vmware.bin
+ use debug && newins VGABIOS-lgpl-latest.vmware.debug.bin \
+ vgabios-vmware.debug.bin
+ else
+ ewarn "USE=binary only includes default & cirrus bios builds"
+ fi
+}
diff --git a/sys-firmware/vgabios/vgabios-0.7a.ebuild b/sys-firmware/vgabios/vgabios-0.7a.ebuild
new file mode 100644
index 000000000000..6592a2a4548b
--- /dev/null
+++ b/sys-firmware/vgabios/vgabios-0.7a.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+# Can't really call them backports when they're fixes that upstream
+# won't carry
+FIXES=1
+
+inherit eutils
+
+DESCRIPTION="VGA BIOS implementation"
+HOMEPAGE="http://www.nongnu.org/vgabios/"
+SRC_URI="http://savannah.gnu.org/download/${PN}/${P}.tgz
+ http://dev.gentoo.org/~cardoe/distfiles/${P}-fixes-${FIXES}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug"
+
+DEPEND="amd64? ( sys-devel/dev86 )
+ x86? ( sys-devel/dev86 )"
+RDEPEND=""
+
+src_prepare() {
+ [[ -n ${FIXES} ]] && \
+ EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
+ epatch
+
+ epatch_user
+}
+
+src_compile() {
+ if use amd64 || use x86 ; then
+ emake clean # Necessary to clean up the pre-built pieces
+ emake biossums
+ emake
+ fi
+}
+
+src_install() {
+ insinto /usr/share/vgabios
+
+ if use amd64 || use x86 ; then
+ # Stock VGABIOS
+ newins VGABIOS-lgpl-latest.bin vgabios.bin
+ use debug && newins VGABIOS-lgpl-latest.debug.bin vgabios.debug.bin
+
+ # Cirrus
+ newins VGABIOS-lgpl-latest.cirrus.bin vgabios-cirrus.bin
+ use debug && newins VGABIOS-lgpl-latest.cirrus.debug.bin \
+ vgabios-cirrus.debug.bin
+
+ # QXL
+ newins VGABIOS-lgpl-latest.qxl.bin vgabios-qxl.bin
+ use debug && newins VGABIOS-lgpl-latest.qxl.debug.bin \
+ vgabios-qxl.debug.bin
+
+ # Standard VGA
+ newins VGABIOS-lgpl-latest.stdvga.bin vgabios-stdvga.bin
+ use debug && newins VGABIOS-lgpl-latest.stdvga.debug.bin \
+ vgabios-stdvga.debug.bin
+
+ # VMWare
+ newins VGABIOS-lgpl-latest.vmware.bin vgabios-vmware.bin
+ use debug && newins VGABIOS-lgpl-latest.vmware.debug.bin \
+ vgabios-vmware.debug.bin
+ else
+ doins bins/*
+ fi
+}
diff --git a/sys-firmware/zd1201-firmware/Manifest b/sys-firmware/zd1201-firmware/Manifest
new file mode 100644
index 000000000000..f5ef35194941
--- /dev/null
+++ b/sys-firmware/zd1201-firmware/Manifest
@@ -0,0 +1 @@
+DIST zd1201-0.14-fw.tar.gz 86538 SHA256 56fd11578b0fc13947786fca0e1b4227f04b0f00cf190fd3d3bc4dd005ba4267 SHA512 4143966d386029d50b0cf54bb40f0636daac8f4696782f2cd7ec8924b80ed5d889b373817c662000fbbc8010d4bc81864d2381dd7e2242bf9cee0e0fb9d56fe9 WHIRLPOOL 14107b3469e7f84f934032e333351c17122e575a22fb0f131696a9dcbdb356f2cda04d143645e7a5f73f606491147350829d1938680ffdd90bf42af9b6ea31e6
diff --git a/sys-firmware/zd1201-firmware/metadata.xml b/sys-firmware/zd1201-firmware/metadata.xml
new file mode 100644
index 000000000000..26724dc23aa5
--- /dev/null
+++ b/sys-firmware/zd1201-firmware/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">linux-lc100020</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sys-firmware/zd1201-firmware/zd1201-firmware-0.14.ebuild b/sys-firmware/zd1201-firmware/zd1201-firmware-0.14.ebuild
new file mode 100644
index 000000000000..2e75a98664d2
--- /dev/null
+++ b/sys-firmware/zd1201-firmware/zd1201-firmware-0.14.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+MY_P=zd1201-${PV}-fw
+
+DESCRIPTION="Firmware for ZyDAS 1201 based USB 802.11b Network WiFi devices"
+HOMEPAGE="http://linux-lc100020.sourceforge.net/"
+SRC_URI="mirror://sourceforge/linux-lc100020/${MY_P}.tar.gz"
+
+LICENSE="|| ( GPL-3 MPL-1.1 )"
+SLOT="0"
+KEYWORDS="amd64 ppc64 x86"
+IUSE=""
+
+S=${WORKDIR}/${MY_P}
+
+src_compile() { :; }
+
+src_install() {
+ insinto /lib/firmware
+ doins zd1201{,-ap}.fw
+ dodoc README
+}
diff --git a/sys-firmware/zd1211-firmware/Manifest b/sys-firmware/zd1211-firmware/Manifest
new file mode 100644
index 000000000000..6fe2331df3b1
--- /dev/null
+++ b/sys-firmware/zd1211-firmware/Manifest
@@ -0,0 +1,2 @@
+DIST zd1211-firmware-1.4.tar.bz2 39061 SHA256 866308f6f59f7075f075d4959dff2ede47735c751251fecd1496df1ba4d338e1 SHA512 210cf3438f2e3498cec06068020af7069d5c67469dbfc4c984c995cfc69192067184af2b04ee1f5642af25ab784c6b9a2e49f4fee3e2c144a5f88722e0462890 WHIRLPOOL 8621293f75346a57824ebb6b4265fe52cdcd06a3da5c8537c2553ca4a2b0322746a1b680aead15296efd4bd7cad96b5f22f3189d2ea14a0602bebfbe285974e1
+DIST zd1211-firmware-1.5.tar.bz2 38291 SHA256 f11d3810d7f72833997f634584a586dcced71a353f965abf81062ec431d02b12 SHA512 6a8d39318a8c136b2a780ebeb485a94bbb05fa12ad7104b707314e0108e49939b4dcd0035b19f07dac0ec7bdd12668ea281b48724e512b45ac5df9dedf035897 WHIRLPOOL 092665ecb88e2f0e7722cd2f8603d9de2ab75ca14361ce37515ea63804c0696ce36bc0ded24b18f31a6f74487d85cdabbe60c27186b0b31411aca13b3e6b8e6e
diff --git a/sys-firmware/zd1211-firmware/metadata.xml b/sys-firmware/zd1211-firmware/metadata.xml
new file mode 100644
index 000000000000..291fcac50b40
--- /dev/null
+++ b/sys-firmware/zd1211-firmware/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">zd1211</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sys-firmware/zd1211-firmware/zd1211-firmware-1.4.ebuild b/sys-firmware/zd1211-firmware/zd1211-firmware-1.4.ebuild
new file mode 100644
index 000000000000..ac0dcf6ff88a
--- /dev/null
+++ b/sys-firmware/zd1211-firmware/zd1211-firmware-1.4.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Firmware for ZyDAS ZD1211 USB-WLAN devices supported by the zd1211rw driver"
+HOMEPAGE="http://zd1211.ath.cx/wiki/DriverRewrite"
+SRC_URI="mirror://sourceforge/zd1211/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 ~sparc x86"
+IUSE=""
+
+S=${WORKDIR}/${PN}
+
+src_install() {
+ insinto /lib/firmware/zd1211
+ doins zd1211_u{b,r,phr} zd1211b_u{b,r,phr}
+ dodoc README
+}
diff --git a/sys-firmware/zd1211-firmware/zd1211-firmware-1.5.ebuild b/sys-firmware/zd1211-firmware/zd1211-firmware-1.5.ebuild
new file mode 100644
index 000000000000..75c09f7d48da
--- /dev/null
+++ b/sys-firmware/zd1211-firmware/zd1211-firmware-1.5.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Firmware for ZyDAS ZD1211 USB-WLAN devices supported by the zd1211rw driver"
+HOMEPAGE="http://sourceforge.net/projects/zd1211/"
+SRC_URI="mirror://sourceforge/zd1211/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+S=${WORKDIR}/${PN}
+
+src_install() {
+ insinto /lib/firmware/zd1211
+ doins zd1211_u{b,r,phr} zd1211b_u{b,r,phr}
+ dodoc README
+}