1 |
commit: 25cf4981cb846b04bd526330d82ecf0915c52194 |
2 |
Author: Chí-Thanh Christopher Nguyễn <chithanh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 1 21:34:02 2015 +0000 |
4 |
Commit: Chí-Thanh Christopher Nguyễn <chithanh <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 1 21:34:02 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25cf4981 |
7 |
|
8 |
sys-kernel/linux-firmware: new snapshot |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
sys-kernel/linux-firmware/Manifest | 1 + |
13 |
.../linux-firmware/linux-firmware-20150812.ebuild | 109 +++++++++++++++++++++ |
14 |
2 files changed, 110 insertions(+) |
15 |
|
16 |
diff --git a/sys-kernel/linux-firmware/Manifest b/sys-kernel/linux-firmware/Manifest |
17 |
index ac2ae81..a4fc90a 100644 |
18 |
--- a/sys-kernel/linux-firmware/Manifest |
19 |
+++ b/sys-kernel/linux-firmware/Manifest |
20 |
@@ -4,3 +4,4 @@ DIST linux-firmware-20140902.tar.xz 24277312 SHA256 3dbf463d6deb559ce071de7f9f98 |
21 |
DIST linux-firmware-20141009.tar.xz 24288396 SHA256 b3423bc48bdb46d89707096d9bed3eb0e59ec9172b52ad61d49d996f49f09f61 SHA512 d599abc518e95834118311428fd5cb3e5de47a25a264397758f8456bb3e1e1ed751d0fbfccc5196bd153c1fa4c0e477a7e2e6706f44ef1ba83bcab94b34d5ca3 WHIRLPOOL fd9f13f951c17fcff4db2981f0a71e91dde8b14639746d92ab51a16720758e1f3044a6c718580b5c662cb5a6e571e23739bceb7a8ea9ffe54d2492216efa4320 |
22 |
DIST linux-firmware-20150206.tar.xz 25831872 SHA256 d9c9d87263cdff827b38bcd99c8a196230b3edc66c0f23d33da31718bad151ec SHA512 67d45da2ab7f6657b89b8c176c8906cbab82a502ac421d2d615dc6f20f7ef10ec49327a154624dcc28369a71ee34963712041c4a7c70b8995cdddb0fdb07093d WHIRLPOOL 2da562600d6e89a58f61a3783a8911ea0d186e9435a032fc224e18802c02159223c08c26f89150052174eef4b586b65913a8fe34b9cbd0c26202c2af3bd86147 |
23 |
DIST linux-firmware-20150320.tar.xz 27113932 SHA256 0eafba794ea53b9f5f10714bd8d320b0c1d704801726b28072a99fd71606ba59 SHA512 280663d072eb4dd987ebbcb8b4508a167f3caa45dd21e3e6c8f8abfe6a90a5b9379f71ba4cd576e942a856b378c2d8a6f1e508cd16c7c59ac602ea36dff85ba3 WHIRLPOOL cdf9b5c136aba2cfa547e489e0273deedecab1fb4dfb2743b1fcb0d6ab2a0722702df7036ed0a299450f4257d33e0bd3ca23d650992a0a3df1901c996ba9a5d0 |
24 |
+DIST linux-firmware-20150812.tar.xz 30620844 SHA256 588c3d7882174a09a7061f08d37e1853270ab32911516fadf2a3e069040499f8 SHA512 0636f1cd1f795907e427ae45a0504d2bec5cdde7a1a355c3e13237ca65ec6501d01e7b35049a70d5b6ce9ab9cecef29ecbc1aa5258e0d157b3d59c6c56edc133 WHIRLPOOL 3a03ebd5620f6611c452271955d69f232ea61d34716dff6a0ab864909f01e2c3ea86ade664cef689cbc52e34723328b870c208fb9366d585f661fa232e51cfa4 |
25 |
|
26 |
diff --git a/sys-kernel/linux-firmware/linux-firmware-20150812.ebuild b/sys-kernel/linux-firmware/linux-firmware-20150812.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..56a515d |
29 |
--- /dev/null |
30 |
+++ b/sys-kernel/linux-firmware/linux-firmware-20150812.ebuild |
31 |
@@ -0,0 +1,109 @@ |
32 |
+# Copyright 1999-2015 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+inherit savedconfig |
38 |
+ |
39 |
+if [[ ${PV} == 99999999* ]]; then |
40 |
+ inherit git-2 |
41 |
+ SRC_URI="" |
42 |
+ EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git" |
43 |
+ KEYWORDS="" |
44 |
+else |
45 |
+ SRC_URI="mirror://gentoo/${P}.tar.xz" |
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="GPL-1 GPL-2 GPL-3 BSD 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 |
+ !x11-drivers/radeon-ucode |
95 |
+ )" |
96 |
+#add anything else that collides to this |
97 |
+ |
98 |
+src_unpack() { |
99 |
+ if [[ ${PV} == 99999999* ]]; then |
100 |
+ git-2_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 |
+ echo "# Remove files that shall not be installed from this list." > ${PN}.conf |
110 |
+ find * \( \! -type d -and \! -name ${PN}.conf \) >> ${PN}.conf |
111 |
+ |
112 |
+ if use savedconfig; then |
113 |
+ restore_config ${PN}.conf |
114 |
+ ebegin "Removing all files not listed in config" |
115 |
+ find * \( \! -type d -and \! -name ${PN}.conf \) \ |
116 |
+ | sort ${PN}.conf ${PN}.conf - \ |
117 |
+ | uniq -u | xargs -r rm |
118 |
+ eend $? || die |
119 |
+ # remove empty directories, bug #396073 |
120 |
+ find -type d -empty -delete || die |
121 |
+ fi |
122 |
+} |
123 |
+ |
124 |
+src_install() { |
125 |
+ save_config ${PN}.conf |
126 |
+ rm ${PN}.conf || die |
127 |
+ insinto /lib/firmware/ |
128 |
+ doins -r * |
129 |
+} |
130 |
+ |
131 |
+pkg_preinst() { |
132 |
+ if use savedconfig; then |
133 |
+ ewarn "USE=savedconfig is active. You must handle file collisions manually." |
134 |
+ fi |
135 |
+} |
136 |
+ |
137 |
+pkg_postinst() { |
138 |
+ elog "If you are only interested in particular firmware files, edit the saved" |
139 |
+ elog "configfile and remove those that you do not want." |
140 |
+} |