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: Mon, 29 Oct 2018 23:06:32
Message-Id: 1540854374.4d4e85ff0b2206dc16458e0c6157cd5d56cd8df3.whissi@gentoo
1 commit: 4d4e85ff0b2206dc16458e0c6157cd5d56cd8df3
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 29 23:04:40 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 29 23:06:14 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d4e85ff
7
8 sys-kernel/linux-firmware: update snapshot
9
10 Package-Manager: Portage-2.3.51, Repoman-2.3.11
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 sys-kernel/linux-firmware/Manifest | 1 +
14 .../linux-firmware/linux-firmware-20181026.ebuild | 114 +++++++++++++++++++++
15 2 files changed, 115 insertions(+)
16
17 diff --git a/sys-kernel/linux-firmware/Manifest b/sys-kernel/linux-firmware/Manifest
18 index 940e69c5a00..6f37da8e9a8 100644
19 --- a/sys-kernel/linux-firmware/Manifest
20 +++ b/sys-kernel/linux-firmware/Manifest
21 @@ -1,2 +1,3 @@
22 DIST linux-firmware-20180825.tar.gz 156618714 BLAKE2B 1bf44c456a87dce2e0622c8ef80bacae9d1aa76efacbb1519718be4a2c3e36a72b8baced8dc17953515052be923b85a8368179dfad591fbc7402521bce564e20 SHA512 583623fedf18a987a20cb6f5337146131a7b17a95ee79cb4b35199b6ecf42af039b824623235501685db18839c0d7e9e81cd79ed47fb993b4e72346bf9159021
23 DIST linux-firmware-20181001.tar.gz 158397569 BLAKE2B 2694014f847fb60f5f0c208a479f4cdf0b422ef249735f22f0ef72e0fd385e8ba6737da1b1cf24daf74fd5f28c3c69b96e14850520f16b8a556c7ca734a3557e SHA512 f20b65122381423597cebd5a3018bbe55f0f8697a03b5ae3e7c1c6dd1cddcb1da4f3fddc8e4accb2d780faf1c0e66bed7dda6b1ab1c48d2e0b2435a5a7eb03f7
24 +DIST linux-firmware-20181026.tar.gz 167486645 BLAKE2B 9923b9a8ab692023022d7bceb238b2ec4eba395062307864be558d969fba657301ada317b95071cad82a7a883a2d08f63f0ed34ecc7914a36f31ce85f55ac31f SHA512 4d6eff765557888dea432e0a28973c8ec067354a57aa4c37198e887618ca17e9d5e1243a618820fb470a86a5ce4b6255290f1c2c3835baba4fb87148372cafb0
25
26 diff --git a/sys-kernel/linux-firmware/linux-firmware-20181026.ebuild b/sys-kernel/linux-firmware/linux-firmware-20181026.ebuild
27 new file mode 100644
28 index 00000000000..6a771e1b0bb
29 --- /dev/null
30 +++ b/sys-kernel/linux-firmware/linux-firmware-20181026.ebuild
31 @@ -0,0 +1,114 @@
32 +# Copyright 1999-2018 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="1cb4e51018293c14642f115b5868cda92b879161"
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+ freedist"
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 + find * \( \! -type d -and \! -name ${PN}.conf \) \
119 + | sort ${PN}.conf ${PN}.conf - \
120 + | uniq -u | xargs -r rm
121 + eend $? || die
122 + # remove empty directories, bug #396073
123 + find -type d -empty -delete || die
124 + fi
125 +}
126 +
127 +src_install() {
128 + if use !savedconfig; then
129 + save_config ${PN}.conf
130 + fi
131 + rm ${PN}.conf || die
132 + insinto /lib/firmware/
133 + doins -r *
134 +}
135 +
136 +pkg_preinst() {
137 + if use savedconfig; then
138 + ewarn "USE=savedconfig is active. You must handle file collisions manually."
139 + fi
140 +}
141 +
142 +pkg_postinst() {
143 + elog "If you are only interested in particular firmware files, edit the saved"
144 + elog "configfile and remove those that you do not want."
145 +}