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