1 |
commit: ab87fe67fa6223fceb34f586df3e6ce1cd8a1819 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 28 15:09:53 2016 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 28 15:10:49 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab87fe67 |
7 |
|
8 |
sys-boot/systemd-boot: replacement for sys-boot/gummiboot |
9 |
|
10 |
Bug: https://bugs.gentoo.org/556734 |
11 |
|
12 |
Package-Manager: portage-2.3.0_p22 |
13 |
|
14 |
sys-boot/systemd-boot/Manifest | 1 + |
15 |
sys-boot/systemd-boot/metadata.xml | 8 ++ |
16 |
sys-boot/systemd-boot/systemd-boot-231.ebuild | 115 ++++++++++++++++++++++++++ |
17 |
3 files changed, 124 insertions(+) |
18 |
|
19 |
diff --git a/sys-boot/systemd-boot/Manifest b/sys-boot/systemd-boot/Manifest |
20 |
new file mode 100644 |
21 |
index 00000000..b8044e3 |
22 |
--- /dev/null |
23 |
+++ b/sys-boot/systemd-boot/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST systemd-231.tar.gz 4381464 SHA256 899733ad6c157cedbb89aec4efe3bc824dcfd65a1d6f6bebc7b043f7924e39b4 SHA512 199fa33a0494d1d15f7fe3c796fe14913ad386766571d4d3fbb1cb1c446e04f6d06a965213be4c594a7183e810fc2fd4804fe14f64f21b0a1278b717889811c6 WHIRLPOOL 7779291e9fb9873cb1773b8583cf6d4b7dec837363ea89c4a73c1e397a76752b66f8b57d8fc4d9cef768cc1855b5e325ad88a8a69eb5380aa924e0a6dead41b1 |
26 |
|
27 |
diff --git a/sys-boot/systemd-boot/metadata.xml b/sys-boot/systemd-boot/metadata.xml |
28 |
new file mode 100644 |
29 |
index 00000000..de09ffd |
30 |
--- /dev/null |
31 |
+++ b/sys-boot/systemd-boot/metadata.xml |
32 |
@@ -0,0 +1,8 @@ |
33 |
+<?xml version="1.0" encoding="UTF-8"?> |
34 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
35 |
+<pkgmetadata> |
36 |
+ <maintainer type="person"> |
37 |
+ <email>floppym@g.o</email> |
38 |
+ <name>Mike Gilbert</name> |
39 |
+ </maintainer> |
40 |
+</pkgmetadata> |
41 |
|
42 |
diff --git a/sys-boot/systemd-boot/systemd-boot-231.ebuild b/sys-boot/systemd-boot/systemd-boot-231.ebuild |
43 |
new file mode 100644 |
44 |
index 00000000..c034512 |
45 |
--- /dev/null |
46 |
+++ b/sys-boot/systemd-boot/systemd-boot-231.ebuild |
47 |
@@ -0,0 +1,115 @@ |
48 |
+# Copyright 1999-2016 Gentoo Foundation |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+# $Header: $ |
51 |
+ |
52 |
+EAPI=6 |
53 |
+ |
54 |
+inherit autotools eutils toolchain-funcs |
55 |
+ |
56 |
+DESCRIPTION="UEFI boot manager from systemd (formerly gummiboot)" |
57 |
+HOMEPAGE="https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/" |
58 |
+SRC_URI="https://github.com/systemd/systemd/archive/v${PV}.tar.gz -> systemd-${PV}.tar.gz" |
59 |
+ |
60 |
+LICENSE="GPL-2 LGPL-2.1 MIT public-domain" |
61 |
+SLOT="0" |
62 |
+KEYWORDS="~amd64" |
63 |
+IUSE="" |
64 |
+ |
65 |
+COMMON_DEPEND=" |
66 |
+ >=sys-apps/util-linux-2.27.1:0= |
67 |
+ sys-libs/libcap:= |
68 |
+" |
69 |
+DEPEND="${COMMON_DEPEND} |
70 |
+ app-text/docbook-xml-dtd:4.2 |
71 |
+ app-text/docbook-xsl-stylesheets |
72 |
+ dev-libs/libxslt:0 |
73 |
+ >=dev-util/intltool-0.50 |
74 |
+ >=sys-boot/gnu-efi-3.0.2 |
75 |
+" |
76 |
+RDEPEND="${COMMON_DEPEND} |
77 |
+ !sys-apps/systemd |
78 |
+" |
79 |
+ |
80 |
+S="${WORKDIR}/systemd-${PV}" |
81 |
+ |
82 |
+src_prepare() { |
83 |
+ default |
84 |
+ eautoreconf |
85 |
+} |
86 |
+ |
87 |
+src_configure() { |
88 |
+ local myeconfargs=( |
89 |
+ EFI_CC="$(tc-getPROG "EFI_CC CC" gcc)" |
90 |
+ cc_cv_CFLAGS__flto=no |
91 |
+ cc_cv_LDFLAGS__Wl__fuse_ld_gold=no |
92 |
+ --enable-blkid |
93 |
+ --enable-efi |
94 |
+ --enable-gnuefi |
95 |
+ --disable-acl |
96 |
+ --disable-apparmor |
97 |
+ --disable-audit |
98 |
+ --disable-bzip2 |
99 |
+ --disable-elfutils |
100 |
+ --disable-gcrypt |
101 |
+ --disable-gnutls |
102 |
+ --disable-kmod |
103 |
+ --disable-libcryptsetup |
104 |
+ --disable-libcurl |
105 |
+ --disable-libidn |
106 |
+ --disable-lz4 |
107 |
+ --disable-microhttpd |
108 |
+ --disable-myhostname |
109 |
+ --disable-pam |
110 |
+ --disable-qrencode |
111 |
+ --disable-seccomp |
112 |
+ --disable-selinux |
113 |
+ --disable-xkbcommon |
114 |
+ --disable-xz |
115 |
+ --disable-zlib |
116 |
+ ) |
117 |
+ econf "${myeconfargs[@]}" |
118 |
+} |
119 |
+ |
120 |
+efi-mt() { |
121 |
+ case "$(tc-arch)" in |
122 |
+ amd64) echo x64 ;; |
123 |
+ arm64) echo aa64 ;; |
124 |
+ x86) echo ia32 ;; |
125 |
+ *) die "Unsupported arch" ;; |
126 |
+ esac |
127 |
+} |
128 |
+ |
129 |
+src_compile() { |
130 |
+ local args=( |
131 |
+ libsystemd-shared.la |
132 |
+ bootctl |
133 |
+ man/bootctl.1 |
134 |
+ linux$(efi-mt).efi.stub |
135 |
+ systemd-boot$(efi-mt).efi |
136 |
+ ) |
137 |
+ emake built-sources |
138 |
+ emake "${args[@]}" |
139 |
+} |
140 |
+ |
141 |
+src_install() { |
142 |
+ local args=( |
143 |
+ DESTDIR="${D%/}" |
144 |
+ |
145 |
+ # libsystemd-shared |
146 |
+ rootlibexec_LTLIBRARIES=libsystemd-shared.la |
147 |
+ install-rootlibexecLTLIBRARIES |
148 |
+ |
149 |
+ # bootctl |
150 |
+ lib_LTLIBRARIES= |
151 |
+ bin_PROGRAMS=bootctl |
152 |
+ install-binPROGRAMS |
153 |
+ |
154 |
+ man_MANS=man/bootctl.1 |
155 |
+ install-man1 |
156 |
+ |
157 |
+ install-bootlibDATA |
158 |
+ ) |
159 |
+ emake "${args[@]}" |
160 |
+ prune_libtool_files |
161 |
+ einstalldocs |
162 |
+} |