Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/linux-firmware/
Date: Sat, 01 Oct 2016 13:02:29
Message-Id: 1475321065.1843c06324022c4f1b97b9f131085badf5413733.polynomial-c@gentoo
1 commit: 1843c06324022c4f1b97b9f131085badf5413733
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 1 11:24:25 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 1 11:24:25 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1843c063
7
8 sys-kernel/linux-firmware: Re-added linux-firmware package (bug #595768).
9
10 Was mistakenly removed.
11
12 Package-Manager: portage-2.3.1
13 RepoMan-Options: --force
14 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
15
16 sys-kernel/linux-firmware/Manifest | 5 +
17 .../linux-firmware/linux-firmware-20151207.ebuild | 109 ++++++++++++++++++++
18 .../linux-firmware/linux-firmware-20160223.ebuild | 111 +++++++++++++++++++++
19 .../linux-firmware/linux-firmware-20160331.ebuild | 111 +++++++++++++++++++++
20 .../linux-firmware/linux-firmware-20160616.ebuild | 111 +++++++++++++++++++++
21 .../linux-firmware/linux-firmware-20160628.ebuild | 111 +++++++++++++++++++++
22 .../linux-firmware/linux-firmware-99999999.ebuild | 111 +++++++++++++++++++++
23 sys-kernel/linux-firmware/metadata.xml | 19 ++++
24 8 files changed, 688 insertions(+)
25
26 diff --git a/sys-kernel/linux-firmware/Manifest b/sys-kernel/linux-firmware/Manifest
27 new file mode 100644
28 index 00000000..606d392
29 --- /dev/null
30 +++ b/sys-kernel/linux-firmware/Manifest
31 @@ -0,0 +1,5 @@
32 +DIST linux-firmware-20151207.tar.xz 34075376 SHA256 ef2ba016d777f8cd3f910f3a673a65e5d167bb63c7af9d6e3e1469891c4de8c4 SHA512 b34ee48eaf085bc0dd3d2823678885118bd4f9a854a854eefe92d3e80042a7256505cf72c2d0ff81487797a09261b3af562df2aea2a997ef95950084eca9520c WHIRLPOOL 322488811690f362828d3253b647c6eecab2b05c8bf4f67c6f3a2d97dc48501e51ed658b00c7a988c3211fe255fa905cda461b7d54b180897f1a99ab76c9b11a
33 +DIST linux-firmware-20160223.tar.xz 35929392 SHA256 fde2f588fc0d2b7efa3b906a831e379ce7b42e60d17a225553b07a308049d189 SHA512 c50dc68b4b14dd40d279ca1f6d88235f2c268d48075b46a890f9ea8eb7121a81b8e991860ac06dd9107f202fb707d8ee681105066b12d1cac4d25e45b6f81426 WHIRLPOOL 356ffe1c2a2d079ae04872e5d8bbae94c38bf6352d451dbb7e916387b8d65eca0f9338598bcf8daec07e679b21dfdf54520542b7f58e827ab637118353220c15
34 +DIST linux-firmware-20160331.tar.xz 35957140 SHA256 99ab767835006038e9efcc9d583b767c4a98091c35a6e2710f654e4fc2db7a45 SHA512 99694f336c4051d51f527399e225ee4a5842024d52f0d74204afd947ab5d0517c774e42519f469a1b653bc2ea026735bb83af5e495a8c2c5b5898ebe5d86cb40 WHIRLPOOL 17091f691577fa0976cb90cb6a60599155ff02afb95aacfa9c12228371c69d88750214b76f479cfdf55f36f7584a03c81158a61b1a593012e15db0ce8d740672
35 +DIST linux-firmware-20160616.tar.xz 36089804 SHA256 216cd8680ab29368f2c206b3dbaa180e5f7331f64b016e0a674870f8abe668b5 SHA512 0a6c8aaea9a6bea5eb92a60499861d59e91b87ab44af4e1b7794539ae46ca6cc5a59ca945d4e4d376bdcf1820b32c66531459db7bfb95e97d343cf9a964f6f7e WHIRLPOOL 17df2ff0d701728c9815ee4e1be6548939fb9d3e54e55ae4caeb05b41b3a0921048a7c0a05f1e682c1a32c3344e1e7c0717fadb365b7717c95f96506f2e93a81
36 +DIST linux-firmware-20160628.tar.xz 37855232 SHA256 02e22483b466a30284adfce1ec7189f7c2a18a4af2e747e0eb73227ce3bf466b SHA512 cf202ee5526f0a6af2341d7ec248b8eae380acda0bacd9c1b56ea5eeb9880ade2d10ff81b533e761233d54e3a8fa862d39795ab012878784f8a905bbefb3c1d1 WHIRLPOOL 29f4286cc3ab63bf0197d9c2d2e7bfeee7a5312b8ff594e178d81cdb511c253b33d6b00ca8767d57ac643b377618465e1e87a1227db86bd55a00d8999ed2acd4
37
38 diff --git a/sys-kernel/linux-firmware/linux-firmware-20151207.ebuild b/sys-kernel/linux-firmware/linux-firmware-20151207.ebuild
39 new file mode 100644
40 index 00000000..953385a
41 --- /dev/null
42 +++ b/sys-kernel/linux-firmware/linux-firmware-20151207.ebuild
43 @@ -0,0 +1,109 @@
44 +# Copyright 1999-2016 Gentoo Foundation
45 +# Distributed under the terms of the GNU General Public License v2
46 +# $Id$
47 +
48 +EAPI=5
49 +inherit savedconfig
50 +
51 +if [[ ${PV} == 99999999* ]]; then
52 + inherit git-2
53 + SRC_URI=""
54 + EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
55 + KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86"
56 +else
57 + SRC_URI="mirror://gentoo/${P}.tar.xz"
58 + KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86"
59 +fi
60 +
61 +DESCRIPTION="Linux firmware files"
62 +HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
63 +
64 +LICENSE="GPL-1 GPL-2 GPL-3 BSD freedist"
65 +SLOT="0"
66 +IUSE="savedconfig"
67 +
68 +DEPEND=""
69 +RDEPEND="!savedconfig? (
70 + !sys-firmware/alsa-firmware[alsa_cards_ca0132]
71 + !sys-firmware/alsa-firmware[alsa_cards_korg1212]
72 + !sys-firmware/alsa-firmware[alsa_cards_maestro3]
73 + !sys-firmware/alsa-firmware[alsa_cards_sb16]
74 + !sys-firmware/alsa-firmware[alsa_cards_ymfpci]
75 + !media-tv/cx18-firmware
76 + !<sys-firmware/ivtv-firmware-20080701-r1
77 + !media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx]
78 + !media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885]
79 + !media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700]
80 + !net-dialup/ueagle-atm
81 + !net-dialup/ueagle4-atm
82 + !net-wireless/ar9271-firmware
83 + !net-wireless/i2400m-fw
84 + !net-wireless/libertas-firmware
85 + !sys-firmware/rt61-firmware
86 + !net-wireless/rt73-firmware
87 + !net-wireless/rt2860-firmware
88 + !net-wireless/rt2870-firmware
89 + !sys-block/qla-fc-firmware
90 + !sys-firmware/amd-ucode
91 + !sys-firmware/iwl1000-ucode
92 + !sys-firmware/iwl2000-ucode
93 + !sys-firmware/iwl2030-ucode
94 + !sys-firmware/iwl3945-ucode
95 + !sys-firmware/iwl4965-ucode
96 + !sys-firmware/iwl5000-ucode
97 + !sys-firmware/iwl5150-ucode
98 + !sys-firmware/iwl6000-ucode
99 + !sys-firmware/iwl6005-ucode
100 + !sys-firmware/iwl6030-ucode
101 + !sys-firmware/iwl6050-ucode
102 + !sys-firmware/iwl3160-ucode
103 + !sys-firmware/iwl7260-ucode
104 + !sys-firmware/iwl7265-ucode
105 + !sys-firmware/iwl3160-7260-bt-ucode
106 + !sys-firmware/radeon-ucode
107 + )"
108 +#add anything else that collides to this
109 +
110 +src_unpack() {
111 + if [[ ${PV} == 99999999* ]]; then
112 + git-2_src_unpack
113 + else
114 + default
115 + # rename directory from git snapshot tarball
116 + mv ${PN}-*/ ${P} || die
117 + fi
118 +}
119 +
120 +src_prepare() {
121 + echo "# Remove files that shall not be installed from this list." > ${PN}.conf
122 + find * \( \! -type d -and \! -name ${PN}.conf \) >> ${PN}.conf
123 +
124 + if use savedconfig; then
125 + restore_config ${PN}.conf
126 + ebegin "Removing all files not listed in config"
127 + find * \( \! -type d -and \! -name ${PN}.conf \) \
128 + | sort ${PN}.conf ${PN}.conf - \
129 + | uniq -u | xargs -r rm
130 + eend $? || die
131 + # remove empty directories, bug #396073
132 + find -type d -empty -delete || die
133 + fi
134 +}
135 +
136 +src_install() {
137 + save_config ${PN}.conf
138 + rm ${PN}.conf || die
139 + insinto /lib/firmware/
140 + doins -r *
141 +}
142 +
143 +pkg_preinst() {
144 + if use savedconfig; then
145 + ewarn "USE=savedconfig is active. You must handle file collisions manually."
146 + fi
147 +}
148 +
149 +pkg_postinst() {
150 + elog "If you are only interested in particular firmware files, edit the saved"
151 + elog "configfile and remove those that you do not want."
152 +}
153
154 diff --git a/sys-kernel/linux-firmware/linux-firmware-20160223.ebuild b/sys-kernel/linux-firmware/linux-firmware-20160223.ebuild
155 new file mode 100644
156 index 00000000..8415438
157 --- /dev/null
158 +++ b/sys-kernel/linux-firmware/linux-firmware-20160223.ebuild
159 @@ -0,0 +1,111 @@
160 +# Copyright 1999-2016 Gentoo Foundation
161 +# Distributed under the terms of the GNU General Public License v2
162 +# $Id$
163 +
164 +EAPI=5
165 +inherit savedconfig
166 +
167 +if [[ ${PV} == 99999999* ]]; then
168 + inherit git-2
169 + SRC_URI=""
170 + EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
171 + KEYWORDS=""
172 +else
173 + SRC_URI="mirror://gentoo/${P}.tar.xz"
174 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
175 +fi
176 +
177 +DESCRIPTION="Linux firmware files"
178 +HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
179 +
180 +LICENSE="GPL-1 GPL-2 GPL-3 BSD freedist"
181 +SLOT="0"
182 +IUSE="savedconfig"
183 +
184 +DEPEND=""
185 +RDEPEND="!savedconfig? (
186 + !sys-firmware/alsa-firmware[alsa_cards_ca0132]
187 + !sys-firmware/alsa-firmware[alsa_cards_korg1212]
188 + !sys-firmware/alsa-firmware[alsa_cards_maestro3]
189 + !sys-firmware/alsa-firmware[alsa_cards_sb16]
190 + !sys-firmware/alsa-firmware[alsa_cards_ymfpci]
191 + !media-tv/cx18-firmware
192 + !<sys-firmware/ivtv-firmware-20080701-r1
193 + !media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx]
194 + !media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885]
195 + !media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700]
196 + !net-dialup/ueagle-atm
197 + !net-dialup/ueagle4-atm
198 + !net-wireless/ar9271-firmware
199 + !net-wireless/i2400m-fw
200 + !net-wireless/libertas-firmware
201 + !sys-firmware/rt61-firmware
202 + !net-wireless/rt73-firmware
203 + !net-wireless/rt2860-firmware
204 + !net-wireless/rt2870-firmware
205 + !sys-block/qla-fc-firmware
206 + !sys-firmware/amd-ucode
207 + !sys-firmware/iwl1000-ucode
208 + !sys-firmware/iwl2000-ucode
209 + !sys-firmware/iwl2030-ucode
210 + !sys-firmware/iwl3945-ucode
211 + !sys-firmware/iwl4965-ucode
212 + !sys-firmware/iwl5000-ucode
213 + !sys-firmware/iwl5150-ucode
214 + !sys-firmware/iwl6000-ucode
215 + !sys-firmware/iwl6005-ucode
216 + !sys-firmware/iwl6030-ucode
217 + !sys-firmware/iwl6050-ucode
218 + !sys-firmware/iwl3160-ucode
219 + !sys-firmware/iwl7260-ucode
220 + !sys-firmware/iwl7265-ucode
221 + !sys-firmware/iwl3160-7260-bt-ucode
222 + !sys-firmware/radeon-ucode
223 + )"
224 +#add anything else that collides to this
225 +
226 +src_unpack() {
227 + if [[ ${PV} == 99999999* ]]; then
228 + git-2_src_unpack
229 + else
230 + default
231 + # rename directory from git snapshot tarball
232 + mv ${PN}-*/ ${P} || die
233 + fi
234 +}
235 +
236 +src_prepare() {
237 + echo "# Remove files that shall not be installed from this list." > ${PN}.conf
238 + find * \( \! -type d -and \! -name ${PN}.conf \) >> ${PN}.conf
239 +
240 + if use savedconfig; then
241 + restore_config ${PN}.conf
242 + ebegin "Removing all files not listed in config"
243 + find * \( \! -type d -and \! -name ${PN}.conf \) \
244 + | sort ${PN}.conf ${PN}.conf - \
245 + | uniq -u | xargs -r rm
246 + eend $? || die
247 + # remove empty directories, bug #396073
248 + find -type d -empty -delete || die
249 + fi
250 +}
251 +
252 +src_install() {
253 + if use !savedconfig; then
254 + save_config ${PN}.conf
255 + fi
256 + rm ${PN}.conf || die
257 + insinto /lib/firmware/
258 + doins -r *
259 +}
260 +
261 +pkg_preinst() {
262 + if use savedconfig; then
263 + ewarn "USE=savedconfig is active. You must handle file collisions manually."
264 + fi
265 +}
266 +
267 +pkg_postinst() {
268 + elog "If you are only interested in particular firmware files, edit the saved"
269 + elog "configfile and remove those that you do not want."
270 +}
271
272 diff --git a/sys-kernel/linux-firmware/linux-firmware-20160331.ebuild b/sys-kernel/linux-firmware/linux-firmware-20160331.ebuild
273 new file mode 100644
274 index 00000000..3522566
275 --- /dev/null
276 +++ b/sys-kernel/linux-firmware/linux-firmware-20160331.ebuild
277 @@ -0,0 +1,111 @@
278 +# Copyright 1999-2016 Gentoo Foundation
279 +# Distributed under the terms of the GNU General Public License v2
280 +# $Id$
281 +
282 +EAPI=5
283 +inherit savedconfig
284 +
285 +if [[ ${PV} == 99999999* ]]; then
286 + inherit git-2
287 + SRC_URI=""
288 + EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
289 + KEYWORDS="alpha amd64 arm ppc x86"
290 +else
291 + SRC_URI="mirror://gentoo/${P}.tar.xz"
292 + KEYWORDS="alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ~ppc64 ~s390 ~sh ~sparc x86"
293 +fi
294 +
295 +DESCRIPTION="Linux firmware files"
296 +HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
297 +
298 +LICENSE="GPL-1 GPL-2 GPL-3 BSD freedist"
299 +SLOT="0"
300 +IUSE="savedconfig"
301 +
302 +DEPEND=""
303 +RDEPEND="!savedconfig? (
304 + !sys-firmware/alsa-firmware[alsa_cards_ca0132]
305 + !sys-firmware/alsa-firmware[alsa_cards_korg1212]
306 + !sys-firmware/alsa-firmware[alsa_cards_maestro3]
307 + !sys-firmware/alsa-firmware[alsa_cards_sb16]
308 + !sys-firmware/alsa-firmware[alsa_cards_ymfpci]
309 + !media-tv/cx18-firmware
310 + !<sys-firmware/ivtv-firmware-20080701-r1
311 + !media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx]
312 + !media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885]
313 + !media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700]
314 + !net-dialup/ueagle-atm
315 + !net-dialup/ueagle4-atm
316 + !net-wireless/ar9271-firmware
317 + !net-wireless/i2400m-fw
318 + !net-wireless/libertas-firmware
319 + !sys-firmware/rt61-firmware
320 + !net-wireless/rt73-firmware
321 + !net-wireless/rt2860-firmware
322 + !net-wireless/rt2870-firmware
323 + !sys-block/qla-fc-firmware
324 + !sys-firmware/amd-ucode
325 + !sys-firmware/iwl1000-ucode
326 + !sys-firmware/iwl2000-ucode
327 + !sys-firmware/iwl2030-ucode
328 + !sys-firmware/iwl3945-ucode
329 + !sys-firmware/iwl4965-ucode
330 + !sys-firmware/iwl5000-ucode
331 + !sys-firmware/iwl5150-ucode
332 + !sys-firmware/iwl6000-ucode
333 + !sys-firmware/iwl6005-ucode
334 + !sys-firmware/iwl6030-ucode
335 + !sys-firmware/iwl6050-ucode
336 + !sys-firmware/iwl3160-ucode
337 + !sys-firmware/iwl7260-ucode
338 + !sys-firmware/iwl7265-ucode
339 + !sys-firmware/iwl3160-7260-bt-ucode
340 + !sys-firmware/radeon-ucode
341 + )"
342 +#add anything else that collides to this
343 +
344 +src_unpack() {
345 + if [[ ${PV} == 99999999* ]]; then
346 + git-2_src_unpack
347 + else
348 + default
349 + # rename directory from git snapshot tarball
350 + mv ${PN}-*/ ${P} || die
351 + fi
352 +}
353 +
354 +src_prepare() {
355 + echo "# Remove files that shall not be installed from this list." > ${PN}.conf
356 + find * \( \! -type d -and \! -name ${PN}.conf \) >> ${PN}.conf
357 +
358 + if use savedconfig; then
359 + restore_config ${PN}.conf
360 + ebegin "Removing all files not listed in config"
361 + find * \( \! -type d -and \! -name ${PN}.conf \) \
362 + | sort ${PN}.conf ${PN}.conf - \
363 + | uniq -u | xargs -r rm
364 + eend $? || die
365 + # remove empty directories, bug #396073
366 + find -type d -empty -delete || die
367 + fi
368 +}
369 +
370 +src_install() {
371 + if use !savedconfig; then
372 + save_config ${PN}.conf
373 + fi
374 + rm ${PN}.conf || die
375 + insinto /lib/firmware/
376 + doins -r *
377 +}
378 +
379 +pkg_preinst() {
380 + if use savedconfig; then
381 + ewarn "USE=savedconfig is active. You must handle file collisions manually."
382 + fi
383 +}
384 +
385 +pkg_postinst() {
386 + elog "If you are only interested in particular firmware files, edit the saved"
387 + elog "configfile and remove those that you do not want."
388 +}
389
390 diff --git a/sys-kernel/linux-firmware/linux-firmware-20160616.ebuild b/sys-kernel/linux-firmware/linux-firmware-20160616.ebuild
391 new file mode 100644
392 index 00000000..8415438
393 --- /dev/null
394 +++ b/sys-kernel/linux-firmware/linux-firmware-20160616.ebuild
395 @@ -0,0 +1,111 @@
396 +# Copyright 1999-2016 Gentoo Foundation
397 +# Distributed under the terms of the GNU General Public License v2
398 +# $Id$
399 +
400 +EAPI=5
401 +inherit savedconfig
402 +
403 +if [[ ${PV} == 99999999* ]]; then
404 + inherit git-2
405 + SRC_URI=""
406 + EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
407 + KEYWORDS=""
408 +else
409 + SRC_URI="mirror://gentoo/${P}.tar.xz"
410 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
411 +fi
412 +
413 +DESCRIPTION="Linux firmware files"
414 +HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
415 +
416 +LICENSE="GPL-1 GPL-2 GPL-3 BSD freedist"
417 +SLOT="0"
418 +IUSE="savedconfig"
419 +
420 +DEPEND=""
421 +RDEPEND="!savedconfig? (
422 + !sys-firmware/alsa-firmware[alsa_cards_ca0132]
423 + !sys-firmware/alsa-firmware[alsa_cards_korg1212]
424 + !sys-firmware/alsa-firmware[alsa_cards_maestro3]
425 + !sys-firmware/alsa-firmware[alsa_cards_sb16]
426 + !sys-firmware/alsa-firmware[alsa_cards_ymfpci]
427 + !media-tv/cx18-firmware
428 + !<sys-firmware/ivtv-firmware-20080701-r1
429 + !media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx]
430 + !media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885]
431 + !media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700]
432 + !net-dialup/ueagle-atm
433 + !net-dialup/ueagle4-atm
434 + !net-wireless/ar9271-firmware
435 + !net-wireless/i2400m-fw
436 + !net-wireless/libertas-firmware
437 + !sys-firmware/rt61-firmware
438 + !net-wireless/rt73-firmware
439 + !net-wireless/rt2860-firmware
440 + !net-wireless/rt2870-firmware
441 + !sys-block/qla-fc-firmware
442 + !sys-firmware/amd-ucode
443 + !sys-firmware/iwl1000-ucode
444 + !sys-firmware/iwl2000-ucode
445 + !sys-firmware/iwl2030-ucode
446 + !sys-firmware/iwl3945-ucode
447 + !sys-firmware/iwl4965-ucode
448 + !sys-firmware/iwl5000-ucode
449 + !sys-firmware/iwl5150-ucode
450 + !sys-firmware/iwl6000-ucode
451 + !sys-firmware/iwl6005-ucode
452 + !sys-firmware/iwl6030-ucode
453 + !sys-firmware/iwl6050-ucode
454 + !sys-firmware/iwl3160-ucode
455 + !sys-firmware/iwl7260-ucode
456 + !sys-firmware/iwl7265-ucode
457 + !sys-firmware/iwl3160-7260-bt-ucode
458 + !sys-firmware/radeon-ucode
459 + )"
460 +#add anything else that collides to this
461 +
462 +src_unpack() {
463 + if [[ ${PV} == 99999999* ]]; then
464 + git-2_src_unpack
465 + else
466 + default
467 + # rename directory from git snapshot tarball
468 + mv ${PN}-*/ ${P} || die
469 + fi
470 +}
471 +
472 +src_prepare() {
473 + echo "# Remove files that shall not be installed from this list." > ${PN}.conf
474 + find * \( \! -type d -and \! -name ${PN}.conf \) >> ${PN}.conf
475 +
476 + if use savedconfig; then
477 + restore_config ${PN}.conf
478 + ebegin "Removing all files not listed in config"
479 + find * \( \! -type d -and \! -name ${PN}.conf \) \
480 + | sort ${PN}.conf ${PN}.conf - \
481 + | uniq -u | xargs -r rm
482 + eend $? || die
483 + # remove empty directories, bug #396073
484 + find -type d -empty -delete || die
485 + fi
486 +}
487 +
488 +src_install() {
489 + if use !savedconfig; then
490 + save_config ${PN}.conf
491 + fi
492 + rm ${PN}.conf || die
493 + insinto /lib/firmware/
494 + doins -r *
495 +}
496 +
497 +pkg_preinst() {
498 + if use savedconfig; then
499 + ewarn "USE=savedconfig is active. You must handle file collisions manually."
500 + fi
501 +}
502 +
503 +pkg_postinst() {
504 + elog "If you are only interested in particular firmware files, edit the saved"
505 + elog "configfile and remove those that you do not want."
506 +}
507
508 diff --git a/sys-kernel/linux-firmware/linux-firmware-20160628.ebuild b/sys-kernel/linux-firmware/linux-firmware-20160628.ebuild
509 new file mode 100644
510 index 00000000..8415438
511 --- /dev/null
512 +++ b/sys-kernel/linux-firmware/linux-firmware-20160628.ebuild
513 @@ -0,0 +1,111 @@
514 +# Copyright 1999-2016 Gentoo Foundation
515 +# Distributed under the terms of the GNU General Public License v2
516 +# $Id$
517 +
518 +EAPI=5
519 +inherit savedconfig
520 +
521 +if [[ ${PV} == 99999999* ]]; then
522 + inherit git-2
523 + SRC_URI=""
524 + EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
525 + KEYWORDS=""
526 +else
527 + SRC_URI="mirror://gentoo/${P}.tar.xz"
528 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
529 +fi
530 +
531 +DESCRIPTION="Linux firmware files"
532 +HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
533 +
534 +LICENSE="GPL-1 GPL-2 GPL-3 BSD freedist"
535 +SLOT="0"
536 +IUSE="savedconfig"
537 +
538 +DEPEND=""
539 +RDEPEND="!savedconfig? (
540 + !sys-firmware/alsa-firmware[alsa_cards_ca0132]
541 + !sys-firmware/alsa-firmware[alsa_cards_korg1212]
542 + !sys-firmware/alsa-firmware[alsa_cards_maestro3]
543 + !sys-firmware/alsa-firmware[alsa_cards_sb16]
544 + !sys-firmware/alsa-firmware[alsa_cards_ymfpci]
545 + !media-tv/cx18-firmware
546 + !<sys-firmware/ivtv-firmware-20080701-r1
547 + !media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx]
548 + !media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885]
549 + !media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700]
550 + !net-dialup/ueagle-atm
551 + !net-dialup/ueagle4-atm
552 + !net-wireless/ar9271-firmware
553 + !net-wireless/i2400m-fw
554 + !net-wireless/libertas-firmware
555 + !sys-firmware/rt61-firmware
556 + !net-wireless/rt73-firmware
557 + !net-wireless/rt2860-firmware
558 + !net-wireless/rt2870-firmware
559 + !sys-block/qla-fc-firmware
560 + !sys-firmware/amd-ucode
561 + !sys-firmware/iwl1000-ucode
562 + !sys-firmware/iwl2000-ucode
563 + !sys-firmware/iwl2030-ucode
564 + !sys-firmware/iwl3945-ucode
565 + !sys-firmware/iwl4965-ucode
566 + !sys-firmware/iwl5000-ucode
567 + !sys-firmware/iwl5150-ucode
568 + !sys-firmware/iwl6000-ucode
569 + !sys-firmware/iwl6005-ucode
570 + !sys-firmware/iwl6030-ucode
571 + !sys-firmware/iwl6050-ucode
572 + !sys-firmware/iwl3160-ucode
573 + !sys-firmware/iwl7260-ucode
574 + !sys-firmware/iwl7265-ucode
575 + !sys-firmware/iwl3160-7260-bt-ucode
576 + !sys-firmware/radeon-ucode
577 + )"
578 +#add anything else that collides to this
579 +
580 +src_unpack() {
581 + if [[ ${PV} == 99999999* ]]; then
582 + git-2_src_unpack
583 + else
584 + default
585 + # rename directory from git snapshot tarball
586 + mv ${PN}-*/ ${P} || die
587 + fi
588 +}
589 +
590 +src_prepare() {
591 + echo "# Remove files that shall not be installed from this list." > ${PN}.conf
592 + find * \( \! -type d -and \! -name ${PN}.conf \) >> ${PN}.conf
593 +
594 + if use savedconfig; then
595 + restore_config ${PN}.conf
596 + ebegin "Removing all files not listed in config"
597 + find * \( \! -type d -and \! -name ${PN}.conf \) \
598 + | sort ${PN}.conf ${PN}.conf - \
599 + | uniq -u | xargs -r rm
600 + eend $? || die
601 + # remove empty directories, bug #396073
602 + find -type d -empty -delete || die
603 + fi
604 +}
605 +
606 +src_install() {
607 + if use !savedconfig; then
608 + save_config ${PN}.conf
609 + fi
610 + rm ${PN}.conf || die
611 + insinto /lib/firmware/
612 + doins -r *
613 +}
614 +
615 +pkg_preinst() {
616 + if use savedconfig; then
617 + ewarn "USE=savedconfig is active. You must handle file collisions manually."
618 + fi
619 +}
620 +
621 +pkg_postinst() {
622 + elog "If you are only interested in particular firmware files, edit the saved"
623 + elog "configfile and remove those that you do not want."
624 +}
625
626 diff --git a/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild
627 new file mode 100644
628 index 00000000..8415438
629 --- /dev/null
630 +++ b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild
631 @@ -0,0 +1,111 @@
632 +# Copyright 1999-2016 Gentoo Foundation
633 +# Distributed under the terms of the GNU General Public License v2
634 +# $Id$
635 +
636 +EAPI=5
637 +inherit savedconfig
638 +
639 +if [[ ${PV} == 99999999* ]]; then
640 + inherit git-2
641 + SRC_URI=""
642 + EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
643 + KEYWORDS=""
644 +else
645 + SRC_URI="mirror://gentoo/${P}.tar.xz"
646 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
647 +fi
648 +
649 +DESCRIPTION="Linux firmware files"
650 +HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
651 +
652 +LICENSE="GPL-1 GPL-2 GPL-3 BSD freedist"
653 +SLOT="0"
654 +IUSE="savedconfig"
655 +
656 +DEPEND=""
657 +RDEPEND="!savedconfig? (
658 + !sys-firmware/alsa-firmware[alsa_cards_ca0132]
659 + !sys-firmware/alsa-firmware[alsa_cards_korg1212]
660 + !sys-firmware/alsa-firmware[alsa_cards_maestro3]
661 + !sys-firmware/alsa-firmware[alsa_cards_sb16]
662 + !sys-firmware/alsa-firmware[alsa_cards_ymfpci]
663 + !media-tv/cx18-firmware
664 + !<sys-firmware/ivtv-firmware-20080701-r1
665 + !media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx]
666 + !media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885]
667 + !media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700]
668 + !net-dialup/ueagle-atm
669 + !net-dialup/ueagle4-atm
670 + !net-wireless/ar9271-firmware
671 + !net-wireless/i2400m-fw
672 + !net-wireless/libertas-firmware
673 + !sys-firmware/rt61-firmware
674 + !net-wireless/rt73-firmware
675 + !net-wireless/rt2860-firmware
676 + !net-wireless/rt2870-firmware
677 + !sys-block/qla-fc-firmware
678 + !sys-firmware/amd-ucode
679 + !sys-firmware/iwl1000-ucode
680 + !sys-firmware/iwl2000-ucode
681 + !sys-firmware/iwl2030-ucode
682 + !sys-firmware/iwl3945-ucode
683 + !sys-firmware/iwl4965-ucode
684 + !sys-firmware/iwl5000-ucode
685 + !sys-firmware/iwl5150-ucode
686 + !sys-firmware/iwl6000-ucode
687 + !sys-firmware/iwl6005-ucode
688 + !sys-firmware/iwl6030-ucode
689 + !sys-firmware/iwl6050-ucode
690 + !sys-firmware/iwl3160-ucode
691 + !sys-firmware/iwl7260-ucode
692 + !sys-firmware/iwl7265-ucode
693 + !sys-firmware/iwl3160-7260-bt-ucode
694 + !sys-firmware/radeon-ucode
695 + )"
696 +#add anything else that collides to this
697 +
698 +src_unpack() {
699 + if [[ ${PV} == 99999999* ]]; then
700 + git-2_src_unpack
701 + else
702 + default
703 + # rename directory from git snapshot tarball
704 + mv ${PN}-*/ ${P} || die
705 + fi
706 +}
707 +
708 +src_prepare() {
709 + echo "# Remove files that shall not be installed from this list." > ${PN}.conf
710 + find * \( \! -type d -and \! -name ${PN}.conf \) >> ${PN}.conf
711 +
712 + if use savedconfig; then
713 + restore_config ${PN}.conf
714 + ebegin "Removing all files not listed in config"
715 + find * \( \! -type d -and \! -name ${PN}.conf \) \
716 + | sort ${PN}.conf ${PN}.conf - \
717 + | uniq -u | xargs -r rm
718 + eend $? || die
719 + # remove empty directories, bug #396073
720 + find -type d -empty -delete || die
721 + fi
722 +}
723 +
724 +src_install() {
725 + if use !savedconfig; then
726 + save_config ${PN}.conf
727 + fi
728 + rm ${PN}.conf || die
729 + insinto /lib/firmware/
730 + doins -r *
731 +}
732 +
733 +pkg_preinst() {
734 + if use savedconfig; then
735 + ewarn "USE=savedconfig is active. You must handle file collisions manually."
736 + fi
737 +}
738 +
739 +pkg_postinst() {
740 + elog "If you are only interested in particular firmware files, edit the saved"
741 + elog "configfile and remove those that you do not want."
742 +}
743
744 diff --git a/sys-kernel/linux-firmware/metadata.xml b/sys-kernel/linux-firmware/metadata.xml
745 new file mode 100644
746 index 00000000..c662ac9
747 --- /dev/null
748 +++ b/sys-kernel/linux-firmware/metadata.xml
749 @@ -0,0 +1,19 @@
750 +<?xml version="1.0" encoding="UTF-8"?>
751 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
752 +<pkgmetadata>
753 +<maintainer type="person">
754 + <email>chithanh@g.o</email>
755 + <name>Chí-Thanh Christopher Nguyễn</name>
756 +</maintainer>
757 +<maintainer type="person">
758 + <email>zerochaos@g.o</email>
759 + <name>Rick Farina</name>
760 +</maintainer>
761 +<maintainer type="project">
762 + <email>kernel@g.o</email>
763 + <name>Gentoo Kernel Project</name>
764 +</maintainer>
765 +<use>
766 + <flag name="savedconfig">Allows individual selection of firmware files</flag>
767 +</use>
768 +</pkgmetadata>