Gentoo Archives: gentoo-commits

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