mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-25 07:08:13 -07:00
sys-kernel/linux-firmware: cleanup old
Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
This commit is contained in:
@@ -1,7 +1,2 @@
|
||||
DIST linux-firmware-20181026.tar.gz 167486645 BLAKE2B 9923b9a8ab692023022d7bceb238b2ec4eba395062307864be558d969fba657301ada317b95071cad82a7a883a2d08f63f0ed34ecc7914a36f31ce85f55ac31f SHA512 4d6eff765557888dea432e0a28973c8ec067354a57aa4c37198e887618ca17e9d5e1243a618820fb470a86a5ce4b6255290f1c2c3835baba4fb87148372cafb0
|
||||
DIST linux-firmware-20181216.tar.gz 172681622 BLAKE2B 3d98af002e5ab1ba8935a8716273311cb9f8f52462724882dc6bf63d96ac17011f3b68c37a87eb6e7447f1542b289fcd7afd3b4bbe21afa3aa63c7c2a2fa0ec8 SHA512 fd1790571a744ebbde7ac163ab86bdbe0476f5b3774e3a129eaac850207b146e5b537c7c1c01535c8813215274c9ce02ca9efe1cffe2406fb922f764adbf1a02
|
||||
DIST linux-firmware-20181218.tar.gz 174835447 BLAKE2B 8bac1dbd413c4fc5c8c07bb299860504cf9ec39b3665e20d86c3755c2a655a5bd4508b406d91fe8648378217bc3aa49fdac05beafd31dcbc0a05496a195d1deb SHA512 58bb759378e569169a4499e5b0e09b7aa3e42a160b1187313fd8e74b4d26e45a018202c2dfd94b7b592cb0a5ad040bbd4051a0f74d7737aa3a72f0e3ed060dfc
|
||||
DIST linux-firmware-20190114.tar.gz 175568625 BLAKE2B 1d89ed002293343dc448acb97bf047b99752661d7a358d8ea0f8d2fcce5331af85cde0717861fc429e71aa89647189476df0c92ebfc8edb75c2954e56d8a1860 SHA512 05df281667402b3265f401b3845c4ead22521c8c82f9a48a7fb15dbfaadaacce9fb9ca0e17c521c8928e7a82a7e170cc339697b8fbae8b89798a1f0daf9846da
|
||||
DIST linux-firmware-20190118.tar.gz 175570644 BLAKE2B 4d1492e820c2f03ab47068be4a8f343cbee62ab18fc72849a4edfa8a0afd5f3ed131f95efa578177155d8e31b7d4283567661855ee693566710934588ef65511 SHA512 2cc06f179c4a720a43f6fbf634b169bd664ec1740cff86abc78de4f30b49e5bd280f5134975a55a2d20f442a4bd72a91cc228ad23ef8c5bc67c7a08e1c0e9658
|
||||
DIST linux-firmware-20190213.tar.gz 177329601 BLAKE2B f103805a84342650cc994cfdf398a617bec083c9769d9303a274d33b91b0ab0390f92a736168e0f6b8977e7a93d4592dcdca64983617b884a6a7b64de50b7a4c SHA512 f0f56b511c02427b6923ef5ea2e3a00a42172fe52b86bcdfd170146b9496295dcb6f4a3986642674192b27fdfcb4b9961b3b45ccb29f030af76f7dcad2119485
|
||||
DIST linux-firmware-20190221-r1.tar.gz 177469962 BLAKE2B 23b8966183249df6b13019fac89e39dd4007e4506e85e1528944a363cc21feae4f1e323271a8c3377e0a5d8e7e030513ca9286200829e0dad5d408b758444bcd SHA512 1884c9969afc3b77306bd49c8ac099bfcaa93cba2d6c7da66d22085f85fe94f58b13cdf7f0a191eab46c1832899b6d58eab41f7d0cf4769a8e7fdcdae98d1009
|
||||
|
||||
@@ -1,114 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
inherit savedconfig
|
||||
|
||||
if [[ ${PV} == 99999999* ]]; then
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
|
||||
else
|
||||
GIT_COMMIT="1cb4e51018293c14642f115b5868cda92b879161"
|
||||
SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 mips ppc ppc64 s390 sh sparc x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Linux firmware files"
|
||||
HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
|
||||
|
||||
LICENSE="linux-firmware ( BSD ISC MIT no-source-code ) GPL-2 GPL-2+"
|
||||
SLOT="0"
|
||||
IUSE="savedconfig"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="!savedconfig? (
|
||||
!sys-firmware/alsa-firmware[alsa_cards_ca0132]
|
||||
!sys-firmware/alsa-firmware[alsa_cards_korg1212]
|
||||
!sys-firmware/alsa-firmware[alsa_cards_maestro3]
|
||||
!sys-firmware/alsa-firmware[alsa_cards_sb16]
|
||||
!sys-firmware/alsa-firmware[alsa_cards_ymfpci]
|
||||
!media-tv/cx18-firmware
|
||||
!<sys-firmware/ivtv-firmware-20080701-r1
|
||||
!media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx]
|
||||
!media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885]
|
||||
!media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700]
|
||||
!net-dialup/ueagle-atm
|
||||
!net-dialup/ueagle4-atm
|
||||
!net-wireless/ar9271-firmware
|
||||
!net-wireless/i2400m-fw
|
||||
!net-wireless/libertas-firmware
|
||||
!sys-firmware/rt61-firmware
|
||||
!net-wireless/rt73-firmware
|
||||
!net-wireless/rt2860-firmware
|
||||
!net-wireless/rt2870-firmware
|
||||
!sys-block/qla-fc-firmware
|
||||
!sys-firmware/amd-ucode
|
||||
!sys-firmware/iwl1000-ucode
|
||||
!sys-firmware/iwl2000-ucode
|
||||
!sys-firmware/iwl2030-ucode
|
||||
!sys-firmware/iwl3945-ucode
|
||||
!sys-firmware/iwl4965-ucode
|
||||
!sys-firmware/iwl5000-ucode
|
||||
!sys-firmware/iwl5150-ucode
|
||||
!sys-firmware/iwl6000-ucode
|
||||
!sys-firmware/iwl6005-ucode
|
||||
!sys-firmware/iwl6030-ucode
|
||||
!sys-firmware/iwl6050-ucode
|
||||
!sys-firmware/iwl3160-ucode
|
||||
!sys-firmware/iwl7260-ucode
|
||||
!sys-firmware/iwl7265-ucode
|
||||
!sys-firmware/iwl3160-7260-bt-ucode
|
||||
!sys-firmware/radeon-ucode
|
||||
)"
|
||||
#add anything else that collides to this
|
||||
|
||||
RESTRICT="binchecks strip"
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == 99999999* ]]; then
|
||||
git-r3_src_unpack
|
||||
else
|
||||
default
|
||||
# rename directory from git snapshot tarball
|
||||
mv ${PN}-*/ ${P} || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
echo "# Remove files that shall not be installed from this list." > ${PN}.conf
|
||||
find * \( \! -type d -and \! -name ${PN}.conf \) >> ${PN}.conf
|
||||
|
||||
if use savedconfig; then
|
||||
restore_config ${PN}.conf
|
||||
ebegin "Removing all files not listed in config"
|
||||
find * \( \! -type d -and \! -name ${PN}.conf \) \
|
||||
| sort ${PN}.conf ${PN}.conf - \
|
||||
| uniq -u | xargs -r rm
|
||||
eend $? || die
|
||||
# remove empty directories, bug #396073
|
||||
find -type d -empty -delete || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use !savedconfig; then
|
||||
save_config ${PN}.conf
|
||||
fi
|
||||
rm ${PN}.conf || die
|
||||
insinto /lib/firmware/
|
||||
doins -r *
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if use savedconfig; then
|
||||
ewarn "USE=savedconfig is active. You must handle file collisions manually."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If you are only interested in particular firmware files, edit the saved"
|
||||
elog "configfile and remove those that you do not want."
|
||||
}
|
||||
@@ -1,114 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
inherit savedconfig
|
||||
|
||||
if [[ ${PV} == 99999999* ]]; then
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
|
||||
else
|
||||
GIT_COMMIT="211de1679a68b8ab0f841a8058df35e13e3963f0"
|
||||
SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 mips ppc ppc64 s390 sh sparc x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Linux firmware files"
|
||||
HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
|
||||
|
||||
LICENSE="linux-firmware ( BSD ISC MIT no-source-code ) GPL-2 GPL-2+"
|
||||
SLOT="0"
|
||||
IUSE="savedconfig"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="!savedconfig? (
|
||||
!sys-firmware/alsa-firmware[alsa_cards_ca0132]
|
||||
!sys-firmware/alsa-firmware[alsa_cards_korg1212]
|
||||
!sys-firmware/alsa-firmware[alsa_cards_maestro3]
|
||||
!sys-firmware/alsa-firmware[alsa_cards_sb16]
|
||||
!sys-firmware/alsa-firmware[alsa_cards_ymfpci]
|
||||
!media-tv/cx18-firmware
|
||||
!<sys-firmware/ivtv-firmware-20080701-r1
|
||||
!media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx]
|
||||
!media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885]
|
||||
!media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700]
|
||||
!net-dialup/ueagle-atm
|
||||
!net-dialup/ueagle4-atm
|
||||
!net-wireless/ar9271-firmware
|
||||
!net-wireless/i2400m-fw
|
||||
!net-wireless/libertas-firmware
|
||||
!sys-firmware/rt61-firmware
|
||||
!net-wireless/rt73-firmware
|
||||
!net-wireless/rt2860-firmware
|
||||
!net-wireless/rt2870-firmware
|
||||
!sys-block/qla-fc-firmware
|
||||
!sys-firmware/amd-ucode
|
||||
!sys-firmware/iwl1000-ucode
|
||||
!sys-firmware/iwl2000-ucode
|
||||
!sys-firmware/iwl2030-ucode
|
||||
!sys-firmware/iwl3945-ucode
|
||||
!sys-firmware/iwl4965-ucode
|
||||
!sys-firmware/iwl5000-ucode
|
||||
!sys-firmware/iwl5150-ucode
|
||||
!sys-firmware/iwl6000-ucode
|
||||
!sys-firmware/iwl6005-ucode
|
||||
!sys-firmware/iwl6030-ucode
|
||||
!sys-firmware/iwl6050-ucode
|
||||
!sys-firmware/iwl3160-ucode
|
||||
!sys-firmware/iwl7260-ucode
|
||||
!sys-firmware/iwl7265-ucode
|
||||
!sys-firmware/iwl3160-7260-bt-ucode
|
||||
!sys-firmware/radeon-ucode
|
||||
)"
|
||||
#add anything else that collides to this
|
||||
|
||||
RESTRICT="binchecks strip"
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == 99999999* ]]; then
|
||||
git-r3_src_unpack
|
||||
else
|
||||
default
|
||||
# rename directory from git snapshot tarball
|
||||
mv ${PN}-*/ ${P} || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
echo "# Remove files that shall not be installed from this list." > ${PN}.conf
|
||||
find * \( \! -type d -and \! -name ${PN}.conf \) >> ${PN}.conf
|
||||
|
||||
if use savedconfig; then
|
||||
restore_config ${PN}.conf
|
||||
ebegin "Removing all files not listed in config"
|
||||
find * \( \! -type d -and \! -name ${PN}.conf \) \
|
||||
| sort ${PN}.conf ${PN}.conf - \
|
||||
| uniq -u | xargs -r rm
|
||||
eend $? || die
|
||||
# remove empty directories, bug #396073
|
||||
find -type d -empty -delete || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use !savedconfig; then
|
||||
save_config ${PN}.conf
|
||||
fi
|
||||
rm ${PN}.conf || die
|
||||
insinto /lib/firmware/
|
||||
doins -r *
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if use savedconfig; then
|
||||
ewarn "USE=savedconfig is active. You must handle file collisions manually."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If you are only interested in particular firmware files, edit the saved"
|
||||
elog "configfile and remove those that you do not want."
|
||||
}
|
||||
@@ -1,135 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
inherit savedconfig
|
||||
|
||||
if [[ ${PV} == 99999999* ]]; then
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
|
||||
else
|
||||
GIT_COMMIT="0f22c8527439eaaf5c3fcf87b31c89445b6fa84d"
|
||||
SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 mips ppc ppc64 s390 sh sparc x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Linux firmware files"
|
||||
HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
|
||||
|
||||
LICENSE="linux-firmware ( BSD ISC MIT no-source-code ) GPL-2 GPL-2+"
|
||||
SLOT="0"
|
||||
IUSE="savedconfig"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="!savedconfig? (
|
||||
!sys-firmware/alsa-firmware[alsa_cards_ca0132]
|
||||
!sys-firmware/alsa-firmware[alsa_cards_korg1212]
|
||||
!sys-firmware/alsa-firmware[alsa_cards_maestro3]
|
||||
!sys-firmware/alsa-firmware[alsa_cards_sb16]
|
||||
!sys-firmware/alsa-firmware[alsa_cards_ymfpci]
|
||||
!media-tv/cx18-firmware
|
||||
!<sys-firmware/ivtv-firmware-20080701-r1
|
||||
!media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx]
|
||||
!media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885]
|
||||
!media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700]
|
||||
!net-dialup/ueagle-atm
|
||||
!net-dialup/ueagle4-atm
|
||||
!net-wireless/ar9271-firmware
|
||||
!net-wireless/i2400m-fw
|
||||
!net-wireless/libertas-firmware
|
||||
!sys-firmware/rt61-firmware
|
||||
!net-wireless/rt73-firmware
|
||||
!net-wireless/rt2860-firmware
|
||||
!net-wireless/rt2870-firmware
|
||||
!sys-block/qla-fc-firmware
|
||||
!sys-firmware/amd-ucode
|
||||
!sys-firmware/iwl1000-ucode
|
||||
!sys-firmware/iwl2000-ucode
|
||||
!sys-firmware/iwl2030-ucode
|
||||
!sys-firmware/iwl3945-ucode
|
||||
!sys-firmware/iwl4965-ucode
|
||||
!sys-firmware/iwl5000-ucode
|
||||
!sys-firmware/iwl5150-ucode
|
||||
!sys-firmware/iwl6000-ucode
|
||||
!sys-firmware/iwl6005-ucode
|
||||
!sys-firmware/iwl6030-ucode
|
||||
!sys-firmware/iwl6050-ucode
|
||||
!sys-firmware/iwl3160-ucode
|
||||
!sys-firmware/iwl7260-ucode
|
||||
!sys-firmware/iwl7265-ucode
|
||||
!sys-firmware/iwl3160-7260-bt-ucode
|
||||
!sys-firmware/radeon-ucode
|
||||
)"
|
||||
#add anything else that collides to this
|
||||
|
||||
RESTRICT="binchecks strip"
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == 99999999* ]]; then
|
||||
git-r3_src_unpack
|
||||
else
|
||||
default
|
||||
# rename directory from git snapshot tarball
|
||||
mv ${PN}-*/ ${P} || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
echo "# Remove files that shall not be installed from this list." > ${PN}.conf
|
||||
find * \( \! -type d -and \! -name ${PN}.conf \) >> ${PN}.conf
|
||||
|
||||
if use savedconfig; then
|
||||
restore_config ${PN}.conf
|
||||
ebegin "Removing all files not listed in config"
|
||||
|
||||
local file delete_file preserved_file preserved_files=()
|
||||
|
||||
while IFS= read -r file; do
|
||||
# Ignore comments.
|
||||
if [[ ${file} != "#"* ]]; then
|
||||
preserved_files+=("${file}")
|
||||
fi
|
||||
done < ${PN}.conf || die
|
||||
|
||||
while IFS= read -d "" -r file; do
|
||||
delete_file=true
|
||||
for preserved_file in "${preserved_files[@]}"; do
|
||||
if [[ "${file}" == "${preserved_file}" ]]; then
|
||||
delete_file=false
|
||||
fi
|
||||
done
|
||||
|
||||
if ${delete_file}; then
|
||||
rm "${file}" || die
|
||||
fi
|
||||
done < <(find * \( \! -type d -and \! -name ${PN}.conf \) -print0 || die)
|
||||
|
||||
eend || die
|
||||
|
||||
# remove empty directories, bug #396073
|
||||
find -type d -empty -delete || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use !savedconfig; then
|
||||
save_config ${PN}.conf
|
||||
fi
|
||||
rm ${PN}.conf || die
|
||||
insinto /lib/firmware/
|
||||
doins -r *
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if use savedconfig; then
|
||||
ewarn "USE=savedconfig is active. You must handle file collisions manually."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If you are only interested in particular firmware files, edit the saved"
|
||||
elog "configfile and remove those that you do not want."
|
||||
}
|
||||
@@ -1,135 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
inherit savedconfig
|
||||
|
||||
if [[ ${PV} == 99999999* ]]; then
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
|
||||
else
|
||||
GIT_COMMIT="bc656509a3cfb60fcdfc905d7e23c18873e4e7b9"
|
||||
SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 mips ppc ppc64 s390 sh sparc x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Linux firmware files"
|
||||
HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
|
||||
|
||||
LICENSE="linux-firmware ( BSD ISC MIT no-source-code ) GPL-2 GPL-2+"
|
||||
SLOT="0"
|
||||
IUSE="savedconfig"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="!savedconfig? (
|
||||
!sys-firmware/alsa-firmware[alsa_cards_ca0132]
|
||||
!sys-firmware/alsa-firmware[alsa_cards_korg1212]
|
||||
!sys-firmware/alsa-firmware[alsa_cards_maestro3]
|
||||
!sys-firmware/alsa-firmware[alsa_cards_sb16]
|
||||
!sys-firmware/alsa-firmware[alsa_cards_ymfpci]
|
||||
!media-tv/cx18-firmware
|
||||
!<sys-firmware/ivtv-firmware-20080701-r1
|
||||
!media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx]
|
||||
!media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885]
|
||||
!media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700]
|
||||
!net-dialup/ueagle-atm
|
||||
!net-dialup/ueagle4-atm
|
||||
!net-wireless/ar9271-firmware
|
||||
!net-wireless/i2400m-fw
|
||||
!net-wireless/libertas-firmware
|
||||
!sys-firmware/rt61-firmware
|
||||
!net-wireless/rt73-firmware
|
||||
!net-wireless/rt2860-firmware
|
||||
!net-wireless/rt2870-firmware
|
||||
!sys-block/qla-fc-firmware
|
||||
!sys-firmware/amd-ucode
|
||||
!sys-firmware/iwl1000-ucode
|
||||
!sys-firmware/iwl2000-ucode
|
||||
!sys-firmware/iwl2030-ucode
|
||||
!sys-firmware/iwl3945-ucode
|
||||
!sys-firmware/iwl4965-ucode
|
||||
!sys-firmware/iwl5000-ucode
|
||||
!sys-firmware/iwl5150-ucode
|
||||
!sys-firmware/iwl6000-ucode
|
||||
!sys-firmware/iwl6005-ucode
|
||||
!sys-firmware/iwl6030-ucode
|
||||
!sys-firmware/iwl6050-ucode
|
||||
!sys-firmware/iwl3160-ucode
|
||||
!sys-firmware/iwl7260-ucode
|
||||
!sys-firmware/iwl7265-ucode
|
||||
!sys-firmware/iwl3160-7260-bt-ucode
|
||||
!sys-firmware/radeon-ucode
|
||||
)"
|
||||
#add anything else that collides to this
|
||||
|
||||
RESTRICT="binchecks strip"
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == 99999999* ]]; then
|
||||
git-r3_src_unpack
|
||||
else
|
||||
default
|
||||
# rename directory from git snapshot tarball
|
||||
mv ${PN}-*/ ${P} || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
echo "# Remove files that shall not be installed from this list." > ${PN}.conf
|
||||
find * \( \! -type d -and \! -name ${PN}.conf \) >> ${PN}.conf
|
||||
|
||||
if use savedconfig; then
|
||||
restore_config ${PN}.conf
|
||||
ebegin "Removing all files not listed in config"
|
||||
|
||||
local file delete_file preserved_file preserved_files=()
|
||||
|
||||
while IFS= read -r file; do
|
||||
# Ignore comments.
|
||||
if [[ ${file} != "#"* ]]; then
|
||||
preserved_files+=("${file}")
|
||||
fi
|
||||
done < ${PN}.conf || die
|
||||
|
||||
while IFS= read -d "" -r file; do
|
||||
delete_file=true
|
||||
for preserved_file in "${preserved_files[@]}"; do
|
||||
if [[ "${file}" == "${preserved_file}" ]]; then
|
||||
delete_file=false
|
||||
fi
|
||||
done
|
||||
|
||||
if ${delete_file}; then
|
||||
rm "${file}" || die
|
||||
fi
|
||||
done < <(find * \( \! -type d -and \! -name ${PN}.conf \) -print0 || die)
|
||||
|
||||
eend || die
|
||||
|
||||
# remove empty directories, bug #396073
|
||||
find -type d -empty -delete || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use !savedconfig; then
|
||||
save_config ${PN}.conf
|
||||
fi
|
||||
rm ${PN}.conf || die
|
||||
insinto /lib/firmware/
|
||||
doins -r *
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if use savedconfig; then
|
||||
ewarn "USE=savedconfig is active. You must handle file collisions manually."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If you are only interested in particular firmware files, edit the saved"
|
||||
elog "configfile and remove those that you do not want."
|
||||
}
|
||||
@@ -1,135 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
inherit savedconfig
|
||||
|
||||
if [[ ${PV} == 99999999* ]]; then
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
|
||||
else
|
||||
GIT_COMMIT="a8b75cac06f80dc1500ba385680ac5b5c1d1c4f8"
|
||||
SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Linux firmware files"
|
||||
HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
|
||||
|
||||
LICENSE="linux-firmware ( BSD ISC MIT no-source-code ) GPL-2 GPL-2+"
|
||||
SLOT="0"
|
||||
IUSE="savedconfig"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="!savedconfig? (
|
||||
!sys-firmware/alsa-firmware[alsa_cards_ca0132]
|
||||
!sys-firmware/alsa-firmware[alsa_cards_korg1212]
|
||||
!sys-firmware/alsa-firmware[alsa_cards_maestro3]
|
||||
!sys-firmware/alsa-firmware[alsa_cards_sb16]
|
||||
!sys-firmware/alsa-firmware[alsa_cards_ymfpci]
|
||||
!media-tv/cx18-firmware
|
||||
!<sys-firmware/ivtv-firmware-20080701-r1
|
||||
!media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx]
|
||||
!media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885]
|
||||
!media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700]
|
||||
!net-dialup/ueagle-atm
|
||||
!net-dialup/ueagle4-atm
|
||||
!net-wireless/ar9271-firmware
|
||||
!net-wireless/i2400m-fw
|
||||
!net-wireless/libertas-firmware
|
||||
!sys-firmware/rt61-firmware
|
||||
!net-wireless/rt73-firmware
|
||||
!net-wireless/rt2860-firmware
|
||||
!net-wireless/rt2870-firmware
|
||||
!sys-block/qla-fc-firmware
|
||||
!sys-firmware/amd-ucode
|
||||
!sys-firmware/iwl1000-ucode
|
||||
!sys-firmware/iwl2000-ucode
|
||||
!sys-firmware/iwl2030-ucode
|
||||
!sys-firmware/iwl3945-ucode
|
||||
!sys-firmware/iwl4965-ucode
|
||||
!sys-firmware/iwl5000-ucode
|
||||
!sys-firmware/iwl5150-ucode
|
||||
!sys-firmware/iwl6000-ucode
|
||||
!sys-firmware/iwl6005-ucode
|
||||
!sys-firmware/iwl6030-ucode
|
||||
!sys-firmware/iwl6050-ucode
|
||||
!sys-firmware/iwl3160-ucode
|
||||
!sys-firmware/iwl7260-ucode
|
||||
!sys-firmware/iwl7265-ucode
|
||||
!sys-firmware/iwl3160-7260-bt-ucode
|
||||
!sys-firmware/radeon-ucode
|
||||
)"
|
||||
#add anything else that collides to this
|
||||
|
||||
RESTRICT="binchecks strip"
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == 99999999* ]]; then
|
||||
git-r3_src_unpack
|
||||
else
|
||||
default
|
||||
# rename directory from git snapshot tarball
|
||||
mv ${PN}-*/ ${P} || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
echo "# Remove files that shall not be installed from this list." > ${PN}.conf
|
||||
find * \( \! -type d -and \! -name ${PN}.conf \) >> ${PN}.conf
|
||||
|
||||
if use savedconfig; then
|
||||
restore_config ${PN}.conf
|
||||
ebegin "Removing all files not listed in config"
|
||||
|
||||
local file delete_file preserved_file preserved_files=()
|
||||
|
||||
while IFS= read -r file; do
|
||||
# Ignore comments.
|
||||
if [[ ${file} != "#"* ]]; then
|
||||
preserved_files+=("${file}")
|
||||
fi
|
||||
done < ${PN}.conf || die
|
||||
|
||||
while IFS= read -d "" -r file; do
|
||||
delete_file=true
|
||||
for preserved_file in "${preserved_files[@]}"; do
|
||||
if [[ "${file}" == "${preserved_file}" ]]; then
|
||||
delete_file=false
|
||||
fi
|
||||
done
|
||||
|
||||
if ${delete_file}; then
|
||||
rm "${file}" || die
|
||||
fi
|
||||
done < <(find * \( \! -type d -and \! -name ${PN}.conf \) -print0 || die)
|
||||
|
||||
eend || die
|
||||
|
||||
# remove empty directories, bug #396073
|
||||
find -type d -empty -delete || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use !savedconfig; then
|
||||
save_config ${PN}.conf
|
||||
fi
|
||||
rm ${PN}.conf || die
|
||||
insinto /lib/firmware/
|
||||
doins -r *
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if use savedconfig; then
|
||||
ewarn "USE=savedconfig is active. You must handle file collisions manually."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If you are only interested in particular firmware files, edit the saved"
|
||||
elog "configfile and remove those that you do not want."
|
||||
}
|
||||
Reference in New Issue
Block a user