Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/linux-firmware/
Date: Wed, 13 Mar 2019 22:58:30
Message-Id: 1552517892.2ee068683b9fe3afe045798320d60df34ab678eb.whissi@gentoo
1 commit: 2ee068683b9fe3afe045798320d60df34ab678eb
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 13 22:43:22 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 13 22:58:12 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ee06868
7
8 sys-kernel/linux-firmware: add new snapshot
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 sys-kernel/linux-firmware/Manifest | 1 +
14 .../linux-firmware/linux-firmware-20190313.ebuild | 135 +++++++++++++++++++++
15 2 files changed, 136 insertions(+)
16
17 diff --git a/sys-kernel/linux-firmware/Manifest b/sys-kernel/linux-firmware/Manifest
18 index c01d185e026..9ac0076fab6 100644
19 --- a/sys-kernel/linux-firmware/Manifest
20 +++ b/sys-kernel/linux-firmware/Manifest
21 @@ -1,2 +1,3 @@
22 DIST linux-firmware-20190213.tar.gz 177329601 BLAKE2B f103805a84342650cc994cfdf398a617bec083c9769d9303a274d33b91b0ab0390f92a736168e0f6b8977e7a93d4592dcdca64983617b884a6a7b64de50b7a4c SHA512 f0f56b511c02427b6923ef5ea2e3a00a42172fe52b86bcdfd170146b9496295dcb6f4a3986642674192b27fdfcb4b9961b3b45ccb29f030af76f7dcad2119485
23 DIST linux-firmware-20190221-r1.tar.gz 177469962 BLAKE2B 23b8966183249df6b13019fac89e39dd4007e4506e85e1528944a363cc21feae4f1e323271a8c3377e0a5d8e7e030513ca9286200829e0dad5d408b758444bcd SHA512 1884c9969afc3b77306bd49c8ac099bfcaa93cba2d6c7da66d22085f85fe94f58b13cdf7f0a191eab46c1832899b6d58eab41f7d0cf4769a8e7fdcdae98d1009
24 +DIST linux-firmware-20190313.tar.gz 177810569 BLAKE2B 410206491591115505964ca1cefb5effe6bb43002234489285a0985c7a87f80071ed22dd5678f5457ec6611bdd702ac9610ba89b3e44174f8d222b75b5d32d2a SHA512 eec933ebdefe83d466bfcf0babe710f95f67d319317f3187e43518a15a273b47e63ae88a35106932f0a8d5ce54f8a4c5325d7ab9da8b1789eed532a4a500fafd
25
26 diff --git a/sys-kernel/linux-firmware/linux-firmware-20190313.ebuild b/sys-kernel/linux-firmware/linux-firmware-20190313.ebuild
27 new file mode 100644
28 index 00000000000..03cdbed4367
29 --- /dev/null
30 +++ b/sys-kernel/linux-firmware/linux-firmware-20190313.ebuild
31 @@ -0,0 +1,135 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="6"
36 +inherit savedconfig
37 +
38 +if [[ ${PV} == 99999999* ]]; then
39 + inherit git-r3
40 + SRC_URI=""
41 + EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
42 +else
43 + GIT_COMMIT="efd2c1cc375cff1c17b4259d99a7fee240c3b510"
44 + SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
45 + KEYWORDS="alpha amd64 arm arm64 hppa ia64 mips ppc ppc64 s390 sh sparc x86"
46 +fi
47 +
48 +DESCRIPTION="Linux firmware files"
49 +HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
50 +
51 +LICENSE="linux-firmware ( BSD ISC MIT no-source-code ) GPL-2 GPL-2+"
52 +SLOT="0"
53 +IUSE="savedconfig"
54 +
55 +DEPEND=""
56 +RDEPEND="!savedconfig? (
57 + !sys-firmware/alsa-firmware[alsa_cards_ca0132]
58 + !sys-firmware/alsa-firmware[alsa_cards_korg1212]
59 + !sys-firmware/alsa-firmware[alsa_cards_maestro3]
60 + !sys-firmware/alsa-firmware[alsa_cards_sb16]
61 + !sys-firmware/alsa-firmware[alsa_cards_ymfpci]
62 + !media-tv/cx18-firmware
63 + !<sys-firmware/ivtv-firmware-20080701-r1
64 + !media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx]
65 + !media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885]
66 + !media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700]
67 + !net-dialup/ueagle-atm
68 + !net-dialup/ueagle4-atm
69 + !net-wireless/ar9271-firmware
70 + !net-wireless/i2400m-fw
71 + !net-wireless/libertas-firmware
72 + !sys-firmware/rt61-firmware
73 + !net-wireless/rt73-firmware
74 + !net-wireless/rt2860-firmware
75 + !net-wireless/rt2870-firmware
76 + !sys-block/qla-fc-firmware
77 + !sys-firmware/amd-ucode
78 + !sys-firmware/iwl1000-ucode
79 + !sys-firmware/iwl2000-ucode
80 + !sys-firmware/iwl2030-ucode
81 + !sys-firmware/iwl3945-ucode
82 + !sys-firmware/iwl4965-ucode
83 + !sys-firmware/iwl5000-ucode
84 + !sys-firmware/iwl5150-ucode
85 + !sys-firmware/iwl6000-ucode
86 + !sys-firmware/iwl6005-ucode
87 + !sys-firmware/iwl6030-ucode
88 + !sys-firmware/iwl6050-ucode
89 + !sys-firmware/iwl3160-ucode
90 + !sys-firmware/iwl7260-ucode
91 + !sys-firmware/iwl7265-ucode
92 + !sys-firmware/iwl3160-7260-bt-ucode
93 + !sys-firmware/radeon-ucode
94 + )"
95 +#add anything else that collides to this
96 +
97 +RESTRICT="binchecks strip"
98 +
99 +src_unpack() {
100 + if [[ ${PV} == 99999999* ]]; then
101 + git-r3_src_unpack
102 + else
103 + default
104 + # rename directory from git snapshot tarball
105 + mv ${PN}-*/ ${P} || die
106 + fi
107 +}
108 +
109 +src_prepare() {
110 + default
111 +
112 + echo "# Remove files that shall not be installed from this list." > ${PN}.conf
113 + find * \( \! -type d -and \! -name ${PN}.conf \) >> ${PN}.conf
114 +
115 + if use savedconfig; then
116 + restore_config ${PN}.conf
117 + ebegin "Removing all files not listed in config"
118 +
119 + local file delete_file preserved_file preserved_files=()
120 +
121 + while IFS= read -r file; do
122 + # Ignore comments.
123 + if [[ ${file} != "#"* ]]; then
124 + preserved_files+=("${file}")
125 + fi
126 + done < ${PN}.conf || die
127 +
128 + while IFS= read -d "" -r file; do
129 + delete_file=true
130 + for preserved_file in "${preserved_files[@]}"; do
131 + if [[ "${file}" == "${preserved_file}" ]]; then
132 + delete_file=false
133 + fi
134 + done
135 +
136 + if ${delete_file}; then
137 + rm "${file}" || die
138 + fi
139 + done < <(find * \( \! -type d -and \! -name ${PN}.conf \) -print0 || die)
140 +
141 + eend || die
142 +
143 + # remove empty directories, bug #396073
144 + find -type d -empty -delete || die
145 + fi
146 +}
147 +
148 +src_install() {
149 + if use !savedconfig; then
150 + save_config ${PN}.conf
151 + fi
152 + rm ${PN}.conf || die
153 + insinto /lib/firmware/
154 + doins -r *
155 +}
156 +
157 +pkg_preinst() {
158 + if use savedconfig; then
159 + ewarn "USE=savedconfig is active. You must handle file collisions manually."
160 + fi
161 +}
162 +
163 +pkg_postinst() {
164 + elog "If you are only interested in particular firmware files, edit the saved"
165 + elog "configfile and remove those that you do not want."
166 +}