1 |
commit: ecb62e465020fb68b0bf976fdfbadfdca3ff8d96 |
2 |
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 29 20:22:36 2015 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 29 20:22:36 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecb62e46 |
7 |
|
8 |
sys-boot/raspberrypi-firmware: git version |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
.../raspberrypi-firmware-9999.ebuild | 54 ++++++++++++++++++++++ |
13 |
1 file changed, 54 insertions(+) |
14 |
|
15 |
diff --git a/sys-boot/raspberrypi-firmware/raspberrypi-firmware-9999.ebuild b/sys-boot/raspberrypi-firmware/raspberrypi-firmware-9999.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..f04b099 |
18 |
--- /dev/null |
19 |
+++ b/sys-boot/raspberrypi-firmware/raspberrypi-firmware-9999.ebuild |
20 |
@@ -0,0 +1,54 @@ |
21 |
+# Copyright 1999-2015 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+ |
27 |
+inherit git-r3 readme.gentoo |
28 |
+ |
29 |
+DESCRIPTION="Raspberry PI boot loader and firmware" |
30 |
+HOMEPAGE="https://github.com/raspberrypi/firmware" |
31 |
+SRC_URI="" |
32 |
+ |
33 |
+LICENSE="GPL-2 raspberrypi-videocore-bin" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="" |
36 |
+IUSE="" |
37 |
+ |
38 |
+DEPEND="" |
39 |
+RDEPEND="!sys-boot/raspberrypi-loader" |
40 |
+ |
41 |
+EGIT_REPO_URI="https://github.com/raspberrypi/firmware" |
42 |
+ |
43 |
+RESTRICT="binchecks strip" |
44 |
+ |
45 |
+pkg_preinst() { |
46 |
+ if [ -z "${REPLACING_VERSIONS}" ] ; then |
47 |
+ local msg="" |
48 |
+ if [ -e "${D}"/boot/cmdline.txt -a -e /boot/cmdline.txt ] ; then |
49 |
+ msg+="/boot/cmdline.txt " |
50 |
+ fi |
51 |
+ if [ -e "${D}"/boot/config.txt -a -e /boot/config.txt ] ; then |
52 |
+ msg+="/boot/config.txt " |
53 |
+ fi |
54 |
+ if [ -n "${msg}" ] ; then |
55 |
+ msg="This package installs following files: ${msg}." |
56 |
+ msg="${msg} Please remove(backup) your copies durning install" |
57 |
+ msg="${msg} and merge settings afterwards." |
58 |
+ msg="${msg} Further updates will be CONFIG_PROTECTed." |
59 |
+ die "${msg}" |
60 |
+ fi |
61 |
+ fi |
62 |
+} |
63 |
+ |
64 |
+src_install() { |
65 |
+ insinto /boot |
66 |
+ cd boot |
67 |
+ doins bootcode.bin COPYING.linux fixup*.dat LICENCE.broadcom start*elf |
68 |
+ newins "${FILESDIR}"/${PN}-0_p20130711-config.txt config.txt |
69 |
+ newins "${FILESDIR}"/${PN}-0_p20130711-cmdline.txt cmdline.txt |
70 |
+ newenvd "${FILESDIR}"/${PN}-0_p20130711-envd 90${PN} |
71 |
+ readme.gentoo_create_doc |
72 |
+} |
73 |
+ |
74 |
+DOC_CONTENTS="Please configure your ram setup by editing /boot/config.txt" |