1 |
commit: 265d793f0f06ba108989aa0165b9c5fc51bf7e9a |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 29 20:12:54 2018 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 29 20:13:16 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=265d793f |
7 |
|
8 |
sys-boot/elilo: add sys-fs/dosfstools[compat] depend |
9 |
|
10 |
elilo script uses dosfsck before refreshing EFI partition. |
11 |
|
12 |
Package-Manager: Portage-2.3.20, Repoman-2.3.6 |
13 |
|
14 |
sys-boot/elilo/elilo-3.16-r1.ebuild | 87 +++++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 87 insertions(+) |
16 |
|
17 |
diff --git a/sys-boot/elilo/elilo-3.16-r1.ebuild b/sys-boot/elilo/elilo-3.16-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..96b2860daf6 |
20 |
--- /dev/null |
21 |
+++ b/sys-boot/elilo/elilo-3.16-r1.ebuild |
22 |
@@ -0,0 +1,87 @@ |
23 |
+# Copyright 1999-2018 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+ |
28 |
+inherit toolchain-funcs eutils multilib |
29 |
+ |
30 |
+DESCRIPTION="Linux boot loader for EFI-based systems such as IA-64" |
31 |
+HOMEPAGE="https://sourceforge.net/projects/elilo/" |
32 |
+SRC_URI="mirror://sourceforge/elilo/${P}-all.tar.gz |
33 |
+ mirror://debian/pool/main/e/elilo/elilo_3.14-3.debian.tar.gz" |
34 |
+ |
35 |
+LICENSE="GPL-2" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~ia64 ~x86" |
38 |
+IUSE="" |
39 |
+ |
40 |
+# gnu-efi contains only static libs, so there's no run-time dep on it |
41 |
+DEPEND=">=sys-boot/gnu-efi-3.0g |
42 |
+ dev-util/patchutils" |
43 |
+# dosfstools[compat] to enable 'dosfsck' symlink |
44 |
+RDEPEND="sys-boot/efibootmgr |
45 |
+ sys-fs/dosfstools[compat]" |
46 |
+ |
47 |
+S="${WORKDIR}/${P}-source" |
48 |
+ |
49 |
+PATCHES=( |
50 |
+ "${FILESDIR}"/${PN}-3.16-elilo-loop.patch #299665 |
51 |
+) |
52 |
+ |
53 |
+src_unpack() { |
54 |
+ unpack ${A} ./${P}-source.tar.gz |
55 |
+ mv debian "${S}"/ || die |
56 |
+} |
57 |
+ |
58 |
+src_prepare() { |
59 |
+ default |
60 |
+ |
61 |
+ case $(tc-arch) in |
62 |
+ ia64) iarch=ia64 ;; |
63 |
+ x86) iarch=ia32 ;; |
64 |
+ amd64) iarch=x86_64 ;; |
65 |
+ *) die "unknown architecture: $(tc-arch)" ;; |
66 |
+ esac |
67 |
+ |
68 |
+ # Now Gentooize it. |
69 |
+ sed -i \ |
70 |
+ -e '1s:/bin/sh:/bin/bash:' \ |
71 |
+ -e "s:##VERSION##:${PV}:" \ |
72 |
+ -e 's:Debian GNU/:Gentoo :g' \ |
73 |
+ -e 's:Debian:Gentoo:g' \ |
74 |
+ -e 's:debian:gentoo:g' \ |
75 |
+ -e "s:dpkg --print-architecture:echo ${iarch}:" \ |
76 |
+ debian/elilo.sh || die |
77 |
+} |
78 |
+ |
79 |
+src_compile() { |
80 |
+ # "prefix" on the next line specifies where to find gcc, as, ld, |
81 |
+ # etc. It's not the usual meaning of "prefix". By blanking it we |
82 |
+ # allow PATH to be searched. |
83 |
+ local libdir="${SYSROOT}${EPREFIX}/usr/$(get_libdir)" |
84 |
+ emake -j1 \ |
85 |
+ prefix= \ |
86 |
+ AS="$(tc-getAS)" \ |
87 |
+ CC="$(tc-getCC)" \ |
88 |
+ LD="$(tc-getLD)" \ |
89 |
+ HOSTARCH=${iarch} \ |
90 |
+ ARCH=${iarch} \ |
91 |
+ EFIINC="${SYSROOT}${EPREFIX}/usr/include/efi" \ |
92 |
+ GNUEFILIB="${libdir}" \ |
93 |
+ EFILIB="${libdir}" \ |
94 |
+ EFICRT0="${libdir}" |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ exeinto /usr/lib/elilo |
99 |
+ doexe elilo.efi |
100 |
+ |
101 |
+ newsbin debian/elilo.sh elilo |
102 |
+ dosbin tools/eliloalt |
103 |
+ |
104 |
+ insinto /etc |
105 |
+ newins "${FILESDIR}"/elilo.conf.sample elilo.conf |
106 |
+ |
107 |
+ dodoc docs/* "${FILESDIR}"/elilo.conf.sample |
108 |
+ doman debian/*.[0-9] |
109 |
+} |