diff options
author | Mike Pagano <mpagano@gentoo.org> | 2019-05-03 08:36:00 -0400 |
---|---|---|
committer | Mike Pagano <mpagano@gentoo.org> | 2019-05-03 08:36:07 -0400 |
commit | b2b19aac589fc230d4c0a51ffd194fee5fb406e6 (patch) | |
tree | 62f30bf61505b14b361568a158bdfe973b38e82c /sys-kernel | |
parent | net-proxy/squid: Drop old (diff) | |
download | gentoo-b2b19aac589fc230d4c0a51ffd194fee5fb406e6.tar.gz gentoo-b2b19aac589fc230d4c0a51ffd194fee5fb406e6.tar.bz2 gentoo-b2b19aac589fc230d4c0a51ffd194fee5fb406e6.zip |
sys-kernel/linux-firmware: update snapshot
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/linux-firmware/Manifest | 1 | ||||
-rw-r--r-- | sys-kernel/linux-firmware/linux-firmware-20190502.ebuild | 135 |
2 files changed, 136 insertions, 0 deletions
diff --git a/sys-kernel/linux-firmware/Manifest b/sys-kernel/linux-firmware/Manifest index 67bade943458..ad9d381e89d9 100644 --- a/sys-kernel/linux-firmware/Manifest +++ b/sys-kernel/linux-firmware/Manifest @@ -1,3 +1,4 @@ DIST linux-firmware-20190313.tar.gz 177810569 BLAKE2B 410206491591115505964ca1cefb5effe6bb43002234489285a0985c7a87f80071ed22dd5678f5457ec6611bdd702ac9610ba89b3e44174f8d222b75b5d32d2a SHA512 eec933ebdefe83d466bfcf0babe710f95f67d319317f3187e43518a15a273b47e63ae88a35106932f0a8d5ce54f8a4c5325d7ab9da8b1789eed532a4a500fafd DIST linux-firmware-20190409.tar.gz 183446874 BLAKE2B 2c6ee33a390efd43470cb0f67d289fc1c863f7c5358b4597e1cc7f4b7aa72933332a867a98899f66f9c8df3d9495f96ae583fa9bdb4004f6f2e7ab47380a50d0 SHA512 2a48b210e4101f3aad595612d20f23b4b98b3eb20871712ee17841fd2212d292c25b6c94ac12c71cac82e23c75840b3488c8ada8161a18bce33d328baa002581 DIST linux-firmware-20190424.tar.gz 184136531 BLAKE2B 84bc08c4771abc75c26a0b0562cde461bfb0b8c372f29bc84a776d6b37f6ce40db49aa7bb2045abbcfe9eb556ca174aeb46c5cfe1d77841edc110477e1847159 SHA512 73dad890b1ea29ce712469a2ca67a57cf8bdb8e3287d71bd6d321cc105cdac1c802aed76b0673626129607c456221356cace22b3249113b44c83cce75a97b856 +DIST linux-firmware-20190502.tar.gz 185125493 BLAKE2B 48e60d08893688ab546d3d834490f5633c890c523890dedda75154fa041db8a4ae6663ce29485d32cf65556c91906aa8eb4f58ebbc95c34b5aeffb15c8737a98 SHA512 4dbc6548a66b5fcf4af47422004123b42f4c62088c5d97c8f24e03403d7acf729d9335addd68b383ecd9e8dc602b301534842c032a58ef920fad74f2c61d29ae diff --git a/sys-kernel/linux-firmware/linux-firmware-20190502.ebuild b/sys-kernel/linux-firmware/linux-firmware-20190502.ebuild new file mode 100644 index 000000000000..62302e0b8b3e --- /dev/null +++ b/sys-kernel/linux-firmware/linux-firmware-20190502.ebuild @@ -0,0 +1,135 @@ +# 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="92e17d0dd2437140fab044ae62baf69b35d7d1fa" + 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." +} |