1 |
commit: d55a469ceb7854008f9b9a5c9f49b71c604a7f8e |
2 |
Author: Stéphane Veyret <stephane <AT> neptura <DOT> org> |
3 |
AuthorDate: Wed Apr 29 19:21:54 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 30 11:59:56 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d55a469c |
7 |
|
8 |
sys-boot/refind: Remove old versions |
9 |
|
10 |
Signed-off-by: Stéphane Veyret <stephane <AT> neptura.org> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/15570 |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
sys-boot/refind/Manifest | 3 - |
15 |
sys-boot/refind/refind-0.10.4-r2.ebuild | 197 ------------------------------- |
16 |
sys-boot/refind/refind-0.11.2.ebuild | 200 -------------------------------- |
17 |
sys-boot/refind/refind-0.11.3.ebuild | 200 -------------------------------- |
18 |
4 files changed, 600 deletions(-) |
19 |
|
20 |
diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest |
21 |
index bf2e5d87e50..698924ad273 100644 |
22 |
--- a/sys-boot/refind/Manifest |
23 |
+++ b/sys-boot/refind/Manifest |
24 |
@@ -1,5 +1,2 @@ |
25 |
-DIST refind-src-0.10.4.tar.gz 3970380 BLAKE2B 0d14c005d3e93a1f0008b6c65e34eb6391c4a4a488b4fa7842c8f0b68eb2cc5be150c8718f01a65454db7b86ffa5873a3d1a96429eaed0cb92c1d29c8d2f7dcd SHA512 a75a6210ee51427c474e69c2de8c719545b2599c19f1c7541048b77ab1996a0e4b4b5fd4840f6240cd6704e5f5338cbaff432d7dc5ec4042854e26d6df18bed5 |
26 |
-DIST refind-src-0.11.2.tar.gz 4533034 BLAKE2B fa05781fc1d87d314677f8e670bd7282b591fd3b6f4a5863e81cb962fdb773c774faabb6c45544b0659c8d5c4ef7ce1dba8d798a4caa97364ad7aa2532a42050 SHA512 796d86f05152d93340773c2dfbae0ca50ab036373ebed60fcc80404ee269ef4bc100df4b141d555d3363b820c3e9234fc0cf637791061281c86329958dca3479 |
27 |
-DIST refind-src-0.11.3.tar.gz 3792206 BLAKE2B 369b25dbc97d83f9143ccbe19e89b5975f0796f1e4a2decfc124e4b45c5ef1db8f3e2bb83413f596ca28e82e67b0b9c5682b557a5422e3146780cec151d2a36e SHA512 96907b79e1c9c8199c62058bb6851fa5d6f158802f3777ba19a62c6c0d7d5b49132754bcafa925510fd21c8bafe8ce393117070a628baf4c277fa5f8f536b797 |
28 |
DIST refind-src-0.11.4.tar.gz 3812192 BLAKE2B 7219eeffffb63961a7ba8f7617546a12021cfe80df80a83c4dbd47cd40b0d8afbdc510abb44de3029ff15ed49372bd59e0b156f4c27eab3ef7bd6ccc3c7e02db SHA512 529962ae432edaf1895ba98deb00a23c66bd742578e1a367f70f7ed22dd7be7daf1960df8af410fba79ca775169120499a4c10119331b2b12b55a002d4354de1 |
29 |
DIST refind-src-0.12.0.tar.gz 3898337 BLAKE2B 1197049fb7d91db64135dafda7488bdb1da4997ce6a6d49dfe635526240e3193d8c7c22597aee0f2d6754ce6061b4127d8aa21d43c9f061501de98e25de609d3 SHA512 3ade9642d7acf31097daa5308acb96a9fa3371314073b5a09601a886fc30444752efa08ed9fb35e421efb0b4eb9efbccd7b5c9bd6b3b9ed4af74c58f22a74729 |
30 |
|
31 |
diff --git a/sys-boot/refind/refind-0.10.4-r2.ebuild b/sys-boot/refind/refind-0.10.4-r2.ebuild |
32 |
deleted file mode 100644 |
33 |
index 349f17cfc64..00000000000 |
34 |
--- a/sys-boot/refind/refind-0.10.4-r2.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,197 +0,0 @@ |
37 |
-# Copyright 1999-2018 Gentoo Foundation |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=6 |
41 |
- |
42 |
-inherit toolchain-funcs flag-o-matic versionator |
43 |
- |
44 |
-DESCRIPTION="The UEFI Boot Manager by Rod Smith" |
45 |
-HOMEPAGE="https://www.rodsbooks.com/refind/" |
46 |
- |
47 |
-SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz" |
48 |
- |
49 |
-LICENSE="BSD GPL-2 GPL-3 FDL-1.3" |
50 |
-SLOT="0" |
51 |
-KEYWORDS="amd64 x86" |
52 |
-FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs" |
53 |
-IUSE="${FS_USE} -gnuefi doc -custom-cflags" |
54 |
- |
55 |
-DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 ) |
56 |
- !gnuefi? ( >=sys-boot/udk-2015 )" |
57 |
- |
58 |
-DOCS="NEWS.txt README.txt docs/refind docs/Styles" |
59 |
- |
60 |
-pkg_pretend() { |
61 |
- if use custom-cflags; then |
62 |
- ewarn |
63 |
- ewarn "You have enabled building with USE=custom-cflags. Be aware that" |
64 |
- ewarn "using this can result in EFI binaries that fail to run and may" |
65 |
- ewarn "fail to build at all. This is strongly advised against by upstream." |
66 |
- ewarn |
67 |
- ewarn "See https://bugs.gentoo.org/598587#c3 for more information" |
68 |
- ewarn |
69 |
- fi |
70 |
-} |
71 |
- |
72 |
-pkg_setup() { |
73 |
- if use x86 ; then |
74 |
- export EFIARCH=ia32 |
75 |
- export BUILDARCH=ia32 |
76 |
- elif use amd64; then |
77 |
- export EFIARCH=x64 |
78 |
- export BUILDARCH=x86_64 |
79 |
- else |
80 |
- # Try to support anyway |
81 |
- export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, ) |
82 |
- if [[ ${BUILDARCH} == "x86_64" ]] ; then |
83 |
- export EFIARCH=x64 |
84 |
- else |
85 |
- export EFIARCH=${ARCH} |
86 |
- fi |
87 |
- fi |
88 |
-} |
89 |
- |
90 |
-src_prepare() { |
91 |
- default |
92 |
- |
93 |
- # bug 598647 - PIE not supported |
94 |
- sed -e 's:CFLAGS =:& -fno-PIE:' -i "${S}/Make.common" || die |
95 |
- |
96 |
- local f |
97 |
- for f in "${S}"/*/Make.tiano "${S}"/Make.common; do |
98 |
- sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \ |
99 |
- -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \ |
100 |
- -e '/^\s*-I \$(EDK2BASE).*$/d' \ |
101 |
- "${f}" || die "Failed to patch Tianocore make file in" \ |
102 |
- $(basename $(dirname ${f})) |
103 |
- done |
104 |
- for f in "${S}"/*/Make.tiano; do |
105 |
- sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \ |
106 |
- -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \ |
107 |
- -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \ |
108 |
- "${f}" || die "Failed to patch Tianocore make file in" \ |
109 |
- $(basename $(dirname ${f})) |
110 |
- done |
111 |
- sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \ |
112 |
- || die "Failed to patch AutoGen.c" |
113 |
- for f in "${S}"/*/AutoGen.c; do |
114 |
- cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c" |
115 |
- |
116 |
- #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U |
117 |
- #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4 |
118 |
- #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel |
119 |
- #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU |
120 |
- GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel; |
121 |
- extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel; |
122 |
- #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel |
123 |
- //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD |
124 |
- EOF |
125 |
- done |
126 |
-} |
127 |
- |
128 |
-src_compile() { |
129 |
- # Prepare flags |
130 |
- local pecoff_header_size |
131 |
- [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \ |
132 |
- || pecoff_header_size='0x220' |
133 |
- local make_flags=( |
134 |
- ARCH="${BUILDARCH}" |
135 |
- GENFW="/usr/bin/GenFw" |
136 |
- CC="$(tc-getCC)" |
137 |
- AS="$(tc-getAS)" |
138 |
- LD="$(tc-getLD)" |
139 |
- AR="$(tc-getAR)" |
140 |
- RANLIB="$(tc-getRANLIB)" |
141 |
- OBJCOPY="$(tc-getOBJCOPY)" |
142 |
- GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \ |
143 |
- -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs" |
144 |
- TIANO_LDSCRIPT="/usr/lib/GccBase.lds" |
145 |
- TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \ |
146 |
- --script=\$(TIANO_LDSCRIPT) \ |
147 |
- --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \ |
148 |
- --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)" |
149 |
- ) |
150 |
- |
151 |
- # Make main EFI |
152 |
- local all_target |
153 |
- use gnuefi && all_target="gnuefi" || all_target="tiano" |
154 |
- |
155 |
- if use custom-cflags; then |
156 |
- emake CFLAGS="${CFLAGS}" "${make_flags[@]}" ${all_target} |
157 |
- else |
158 |
- emake "${make_flags[@]}" ${all_target} |
159 |
- fi |
160 |
- |
161 |
- # Make filesystem drivers |
162 |
- local gnuefi_target |
163 |
- use gnuefi && gnuefi_target="_gnuefi" |
164 |
- local fs |
165 |
- for fs in ${FS_USE}; do |
166 |
- fs=${fs#+} |
167 |
- if use "${fs}"; then |
168 |
- einfo "Building ${fs} filesystem driver" |
169 |
- if use custom-cflags; then |
170 |
- emake CFLAGS="${CFLAGS}" "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target} |
171 |
- else |
172 |
- emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target} |
173 |
- fi |
174 |
- fi |
175 |
- done |
176 |
-} |
177 |
- |
178 |
-src_install() { |
179 |
- exeinto "/usr/share/${P}" |
180 |
- doexe refind-install |
181 |
- dosym "/usr/share/${P}/refind-install" "/usr/sbin/refind-install" |
182 |
- |
183 |
- dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt} |
184 |
- if use doc; then |
185 |
- doman "${S}/docs/man/"* |
186 |
- dodoc -r ${DOCS} |
187 |
- fi |
188 |
- |
189 |
- insinto "/usr/share/${P}/refind" |
190 |
- doins "${S}/refind/refind_${EFIARCH}.efi" |
191 |
- doins "${S}/refind.conf-sample" |
192 |
- doins -r images icons fonts banners |
193 |
- |
194 |
- if [[ -d "${S}/drivers_${EFIARCH}" ]]; then |
195 |
- doins -r "${S}/drivers_${EFIARCH}" |
196 |
- fi |
197 |
- |
198 |
- insinto "/usr/share/${P}/refind/tools_${EFIARCH}" |
199 |
- doins "${S}/gptsync/gptsync_${EFIARCH}.efi" |
200 |
- |
201 |
- insinto "/etc/refind.d" |
202 |
- doins -r "${S}/keys" |
203 |
- |
204 |
- dosbin "${S}/mkrlconf" |
205 |
- dosbin "${S}/mvrefind" |
206 |
- dosbin "${S}/refind-mkdefault" |
207 |
-} |
208 |
- |
209 |
-pkg_postinst() { |
210 |
- elog "rEFInd has been built and installed into ${EROOT%/}/usr/share/${P}" |
211 |
- elog "You will need to use the command 'refind-install' to install" |
212 |
- elog "the binaries into your EFI System Partition" |
213 |
- elog "" |
214 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
215 |
- elog "refind-install requires additional packages to be fully functional:" |
216 |
- elog " app-crypt/sbsigntools for binary signing for use with SecureBoot" |
217 |
- elog " sys-boot/efibootmgr for writing to NVRAM" |
218 |
- elog " sys-block/parted for automatic ESP location and mount" |
219 |
- elog "" |
220 |
- elog "refind-mkdefault requires >=dev-lang/python-3" |
221 |
- elog "" |
222 |
- elog "A sample configuration can be found at" |
223 |
- elog "${EROOT%}/usr/share/${P}/refind/refind.conf-sample" |
224 |
- else |
225 |
- if ! version_is_at_least "0.10.3" "${REPLACING_VERSIONS}"; then |
226 |
- elog "The new refind-mkdefault script requires >=dev-lang/python-3" |
227 |
- elog "to be installed" |
228 |
- elog "" |
229 |
- fi |
230 |
- ewarn "Note that this installation will not update any EFI binaries" |
231 |
- ewarn "on your EFI System Partition - this needs to be done manually" |
232 |
- fi |
233 |
-} |
234 |
|
235 |
diff --git a/sys-boot/refind/refind-0.11.2.ebuild b/sys-boot/refind/refind-0.11.2.ebuild |
236 |
deleted file mode 100644 |
237 |
index 5987cc179ee..00000000000 |
238 |
--- a/sys-boot/refind/refind-0.11.2.ebuild |
239 |
+++ /dev/null |
240 |
@@ -1,200 +0,0 @@ |
241 |
-# Copyright 1999-2018 Gentoo Foundation |
242 |
-# Distributed under the terms of the GNU General Public License v2 |
243 |
- |
244 |
-EAPI=6 |
245 |
- |
246 |
-inherit toolchain-funcs flag-o-matic versionator |
247 |
- |
248 |
-DESCRIPTION="The UEFI Boot Manager by Rod Smith" |
249 |
-HOMEPAGE="https://www.rodsbooks.com/refind/" |
250 |
- |
251 |
-SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz" |
252 |
- |
253 |
-LICENSE="BSD GPL-2 GPL-3 FDL-1.3" |
254 |
-SLOT="0" |
255 |
-KEYWORDS="~amd64 ~x86" |
256 |
-FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs" |
257 |
-IUSE="${FS_USE} -gnuefi doc -custom-cflags" |
258 |
- |
259 |
-DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 ) |
260 |
- !gnuefi? ( >=sys-boot/udk-2015 )" |
261 |
- |
262 |
-DOCS="NEWS.txt README.txt docs/refind docs/Styles" |
263 |
- |
264 |
-pkg_pretend() { |
265 |
- if use custom-cflags; then |
266 |
- ewarn |
267 |
- ewarn "You have enabled building with USE=custom-cflags. Be aware that" |
268 |
- ewarn "using this can result in EFI binaries that fail to run and may" |
269 |
- ewarn "fail to build at all. This is strongly advised against by upstream." |
270 |
- ewarn |
271 |
- ewarn "See https://bugs.gentoo.org/598587#c3 for more information" |
272 |
- ewarn |
273 |
- fi |
274 |
-} |
275 |
- |
276 |
-pkg_setup() { |
277 |
- if use x86 ; then |
278 |
- export EFIARCH=ia32 |
279 |
- export BUILDARCH=ia32 |
280 |
- elif use amd64; then |
281 |
- export EFIARCH=x64 |
282 |
- export BUILDARCH=x86_64 |
283 |
- else |
284 |
- # Try to support anyway |
285 |
- export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, ) |
286 |
- if [[ ${BUILDARCH} == "x86_64" ]] ; then |
287 |
- export EFIARCH=x64 |
288 |
- else |
289 |
- export EFIARCH=${ARCH} |
290 |
- fi |
291 |
- fi |
292 |
-} |
293 |
- |
294 |
-src_prepare() { |
295 |
- default |
296 |
- |
297 |
- # bug 598647 - PIE not supported |
298 |
- sed -e 's:CFLAGS =:& -fno-PIE:' -i "${S}/Make.common" || die |
299 |
- |
300 |
- local f |
301 |
- for f in "${S}"/*/Make.tiano "${S}"/Make.common; do |
302 |
- sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \ |
303 |
- -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \ |
304 |
- -e '/^\s*-I \$(EDK2BASE).*$/d' \ |
305 |
- "${f}" || die "Failed to patch Tianocore make file in" \ |
306 |
- $(basename $(dirname ${f})) |
307 |
- done |
308 |
- for f in "${S}"/*/Make.tiano; do |
309 |
- sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \ |
310 |
- -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \ |
311 |
- -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \ |
312 |
- "${f}" || die "Failed to patch Tianocore make file in" \ |
313 |
- $(basename $(dirname ${f})) |
314 |
- done |
315 |
- sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \ |
316 |
- || die "Failed to patch AutoGen.c" |
317 |
- for f in "${S}"/*/AutoGen.c; do |
318 |
- cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c" |
319 |
- |
320 |
- #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U |
321 |
- #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4 |
322 |
- #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel |
323 |
- #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU |
324 |
- GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel; |
325 |
- extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel; |
326 |
- #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel |
327 |
- //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD |
328 |
- EOF |
329 |
- done |
330 |
-} |
331 |
- |
332 |
-src_compile() { |
333 |
- # Prepare flags |
334 |
- local pecoff_header_size |
335 |
- [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \ |
336 |
- || pecoff_header_size='0x220' |
337 |
- local make_flags=( |
338 |
- ARCH="${BUILDARCH}" |
339 |
- GENFW="/usr/bin/GenFw" |
340 |
- CC="$(tc-getCC)" |
341 |
- AS="$(tc-getAS)" |
342 |
- LD="$(tc-getLD)" |
343 |
- AR="$(tc-getAR)" |
344 |
- GNUEFILIB="/usr/$(get_libdir)" |
345 |
- EFILIB="/usr/$(get_libdir)" |
346 |
- EFICRT0="/usr/$(get_libdir)" |
347 |
- RANLIB="$(tc-getRANLIB)" |
348 |
- OBJCOPY="$(tc-getOBJCOPY)" |
349 |
- GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \ |
350 |
- -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs" |
351 |
- TIANO_LDSCRIPT="/usr/lib/GccBase.lds" |
352 |
- TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \ |
353 |
- --script=\$(TIANO_LDSCRIPT) \ |
354 |
- --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \ |
355 |
- --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)" |
356 |
- ) |
357 |
- |
358 |
- # Make main EFI |
359 |
- local all_target |
360 |
- use gnuefi && all_target="gnuefi" || all_target="tiano" |
361 |
- |
362 |
- if use custom-cflags; then |
363 |
- emake CFLAGS="${CFLAGS}" "${make_flags[@]}" ${all_target} |
364 |
- else |
365 |
- emake "${make_flags[@]}" ${all_target} |
366 |
- fi |
367 |
- |
368 |
- # Make filesystem drivers |
369 |
- local gnuefi_target |
370 |
- use gnuefi && gnuefi_target="_gnuefi" |
371 |
- local fs |
372 |
- for fs in ${FS_USE}; do |
373 |
- fs=${fs#+} |
374 |
- if use "${fs}"; then |
375 |
- einfo "Building ${fs} filesystem driver" |
376 |
- if use custom-cflags; then |
377 |
- emake CFLAGS="${CFLAGS}" "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target} |
378 |
- else |
379 |
- emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target} |
380 |
- fi |
381 |
- fi |
382 |
- done |
383 |
-} |
384 |
- |
385 |
-src_install() { |
386 |
- exeinto "/usr/share/${P}" |
387 |
- doexe refind-install |
388 |
- dosym "../share/${P}/refind-install" "/usr/sbin/refind-install" |
389 |
- |
390 |
- dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt} |
391 |
- if use doc; then |
392 |
- doman "${S}/docs/man/"* |
393 |
- dodoc -r ${DOCS} |
394 |
- fi |
395 |
- |
396 |
- insinto "/usr/share/${P}/refind" |
397 |
- doins "${S}/refind/refind_${EFIARCH}.efi" |
398 |
- doins "${S}/refind.conf-sample" |
399 |
- doins -r images icons fonts banners |
400 |
- |
401 |
- if [[ -d "${S}/drivers_${EFIARCH}" ]]; then |
402 |
- doins -r "${S}/drivers_${EFIARCH}" |
403 |
- fi |
404 |
- |
405 |
- insinto "/usr/share/${P}/refind/tools_${EFIARCH}" |
406 |
- doins "${S}/gptsync/gptsync_${EFIARCH}.efi" |
407 |
- |
408 |
- insinto "/etc/refind.d" |
409 |
- doins -r "${S}/keys" |
410 |
- |
411 |
- dosbin "${S}/mkrlconf" |
412 |
- dosbin "${S}/mvrefind" |
413 |
- dosbin "${S}/refind-mkdefault" |
414 |
-} |
415 |
- |
416 |
-pkg_postinst() { |
417 |
- elog "rEFInd has been built and installed into ${EROOT%/}/usr/share/${P}" |
418 |
- elog "You will need to use the command 'refind-install' to install" |
419 |
- elog "the binaries into your EFI System Partition" |
420 |
- elog "" |
421 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
422 |
- elog "refind-install requires additional packages to be fully functional:" |
423 |
- elog " app-crypt/sbsigntools for binary signing for use with SecureBoot" |
424 |
- elog " sys-boot/efibootmgr for writing to NVRAM" |
425 |
- elog " sys-block/parted for automatic ESP location and mount" |
426 |
- elog "" |
427 |
- elog "refind-mkdefault requires >=dev-lang/python-3" |
428 |
- elog "" |
429 |
- elog "A sample configuration can be found at" |
430 |
- elog "${EROOT%}/usr/share/${P}/refind/refind.conf-sample" |
431 |
- else |
432 |
- if ! version_is_at_least "0.10.3" "${REPLACING_VERSIONS}"; then |
433 |
- elog "The new refind-mkdefault script requires >=dev-lang/python-3" |
434 |
- elog "to be installed" |
435 |
- elog "" |
436 |
- fi |
437 |
- ewarn "Note that this installation will not update any EFI binaries" |
438 |
- ewarn "on your EFI System Partition - this needs to be done manually" |
439 |
- fi |
440 |
-} |
441 |
|
442 |
diff --git a/sys-boot/refind/refind-0.11.3.ebuild b/sys-boot/refind/refind-0.11.3.ebuild |
443 |
deleted file mode 100644 |
444 |
index 61fa6812831..00000000000 |
445 |
--- a/sys-boot/refind/refind-0.11.3.ebuild |
446 |
+++ /dev/null |
447 |
@@ -1,200 +0,0 @@ |
448 |
-# Copyright 1999-2018 Gentoo Foundation |
449 |
-# Distributed under the terms of the GNU General Public License v2 |
450 |
- |
451 |
-EAPI=6 |
452 |
- |
453 |
-inherit toolchain-funcs flag-o-matic eapi7-ver |
454 |
- |
455 |
-DESCRIPTION="The UEFI Boot Manager by Rod Smith" |
456 |
-HOMEPAGE="https://www.rodsbooks.com/refind/" |
457 |
- |
458 |
-SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz" |
459 |
- |
460 |
-LICENSE="BSD GPL-2 GPL-3 FDL-1.3" |
461 |
-SLOT="0" |
462 |
-KEYWORDS="~amd64 ~x86" |
463 |
-FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs" |
464 |
-IUSE="${FS_USE} -gnuefi doc -custom-cflags" |
465 |
- |
466 |
-DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 ) |
467 |
- !gnuefi? ( >=sys-boot/udk-2015 )" |
468 |
- |
469 |
-DOCS="NEWS.txt README.txt docs/refind docs/Styles" |
470 |
- |
471 |
-pkg_pretend() { |
472 |
- if use custom-cflags; then |
473 |
- ewarn |
474 |
- ewarn "You have enabled building with USE=custom-cflags. Be aware that" |
475 |
- ewarn "using this can result in EFI binaries that fail to run and may" |
476 |
- ewarn "fail to build at all. This is strongly advised against by upstream." |
477 |
- ewarn |
478 |
- ewarn "See https://bugs.gentoo.org/598587#c3 for more information" |
479 |
- ewarn |
480 |
- fi |
481 |
-} |
482 |
- |
483 |
-pkg_setup() { |
484 |
- if use x86 ; then |
485 |
- export EFIARCH=ia32 |
486 |
- export BUILDARCH=ia32 |
487 |
- elif use amd64; then |
488 |
- export EFIARCH=x64 |
489 |
- export BUILDARCH=x86_64 |
490 |
- else |
491 |
- # Try to support anyway |
492 |
- export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, ) |
493 |
- if [[ ${BUILDARCH} == "x86_64" ]] ; then |
494 |
- export EFIARCH=x64 |
495 |
- else |
496 |
- export EFIARCH=${ARCH} |
497 |
- fi |
498 |
- fi |
499 |
-} |
500 |
- |
501 |
-src_prepare() { |
502 |
- default |
503 |
- |
504 |
- # bug 598647 - PIE not supported |
505 |
- sed -e 's:CFLAGS =:& -fno-PIE:' -i "${S}/Make.common" || die |
506 |
- |
507 |
- local f |
508 |
- for f in "${S}"/*/Make.tiano "${S}"/Make.common; do |
509 |
- sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \ |
510 |
- -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \ |
511 |
- -e '/^\s*-I \$(EDK2BASE).*$/d' \ |
512 |
- "${f}" || die "Failed to patch Tianocore make file in" \ |
513 |
- $(basename $(dirname ${f})) |
514 |
- done |
515 |
- for f in "${S}"/*/Make.tiano; do |
516 |
- sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \ |
517 |
- -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \ |
518 |
- -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \ |
519 |
- "${f}" || die "Failed to patch Tianocore make file in" \ |
520 |
- $(basename $(dirname ${f})) |
521 |
- done |
522 |
- sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \ |
523 |
- || die "Failed to patch AutoGen.c" |
524 |
- for f in "${S}"/*/AutoGen.c; do |
525 |
- cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c" |
526 |
- |
527 |
- #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U |
528 |
- #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4 |
529 |
- #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel |
530 |
- #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU |
531 |
- GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel; |
532 |
- extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel; |
533 |
- #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel |
534 |
- //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD |
535 |
- EOF |
536 |
- done |
537 |
-} |
538 |
- |
539 |
-src_compile() { |
540 |
- # Prepare flags |
541 |
- local pecoff_header_size |
542 |
- [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \ |
543 |
- || pecoff_header_size='0x220' |
544 |
- local make_flags=( |
545 |
- ARCH="${BUILDARCH}" |
546 |
- GENFW="/usr/bin/GenFw" |
547 |
- CC="$(tc-getCC)" |
548 |
- AS="$(tc-getAS)" |
549 |
- LD="$(tc-getLD)" |
550 |
- AR="$(tc-getAR)" |
551 |
- GNUEFILIB="/usr/$(get_libdir)" |
552 |
- EFILIB="/usr/$(get_libdir)" |
553 |
- EFICRT0="/usr/$(get_libdir)" |
554 |
- RANLIB="$(tc-getRANLIB)" |
555 |
- OBJCOPY="$(tc-getOBJCOPY)" |
556 |
- GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \ |
557 |
- -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs" |
558 |
- TIANO_LDSCRIPT="/usr/lib/GccBase.lds" |
559 |
- TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \ |
560 |
- --script=\$(TIANO_LDSCRIPT) \ |
561 |
- --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \ |
562 |
- --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)" |
563 |
- ) |
564 |
- |
565 |
- # Make main EFI |
566 |
- local all_target |
567 |
- use gnuefi && all_target="gnuefi" || all_target="tiano" |
568 |
- |
569 |
- if use custom-cflags; then |
570 |
- emake CFLAGS="${CFLAGS}" "${make_flags[@]}" ${all_target} |
571 |
- else |
572 |
- emake "${make_flags[@]}" ${all_target} |
573 |
- fi |
574 |
- |
575 |
- # Make filesystem drivers |
576 |
- local gnuefi_target |
577 |
- use gnuefi && gnuefi_target="_gnuefi" |
578 |
- local fs |
579 |
- for fs in ${FS_USE}; do |
580 |
- fs=${fs#+} |
581 |
- if use "${fs}"; then |
582 |
- einfo "Building ${fs} filesystem driver" |
583 |
- if use custom-cflags; then |
584 |
- emake CFLAGS="${CFLAGS}" "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target} |
585 |
- else |
586 |
- emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target} |
587 |
- fi |
588 |
- fi |
589 |
- done |
590 |
-} |
591 |
- |
592 |
-src_install() { |
593 |
- exeinto "/usr/share/${P}" |
594 |
- doexe refind-install |
595 |
- dosym "../share/${P}/refind-install" "/usr/sbin/refind-install" |
596 |
- |
597 |
- dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt} |
598 |
- if use doc; then |
599 |
- doman "${S}/docs/man/"* |
600 |
- dodoc -r ${DOCS} |
601 |
- fi |
602 |
- |
603 |
- insinto "/usr/share/${P}/refind" |
604 |
- doins "${S}/refind/refind_${EFIARCH}.efi" |
605 |
- doins "${S}/refind.conf-sample" |
606 |
- doins -r images icons fonts banners |
607 |
- |
608 |
- if [[ -d "${S}/drivers_${EFIARCH}" ]]; then |
609 |
- doins -r "${S}/drivers_${EFIARCH}" |
610 |
- fi |
611 |
- |
612 |
- insinto "/usr/share/${P}/refind/tools_${EFIARCH}" |
613 |
- doins "${S}/gptsync/gptsync_${EFIARCH}.efi" |
614 |
- |
615 |
- insinto "/etc/refind.d" |
616 |
- doins -r "${S}/keys" |
617 |
- |
618 |
- dosbin "${S}/mkrlconf" |
619 |
- dosbin "${S}/mvrefind" |
620 |
- dosbin "${S}/refind-mkdefault" |
621 |
-} |
622 |
- |
623 |
-pkg_postinst() { |
624 |
- elog "rEFInd has been built and installed into ${EROOT%/}/usr/share/${P}" |
625 |
- elog "You will need to use the command 'refind-install' to install" |
626 |
- elog "the binaries into your EFI System Partition" |
627 |
- elog "" |
628 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
629 |
- elog "refind-install requires additional packages to be fully functional:" |
630 |
- elog " app-crypt/sbsigntools for binary signing for use with SecureBoot" |
631 |
- elog " sys-boot/efibootmgr for writing to NVRAM" |
632 |
- elog " sys-block/parted for automatic ESP location and mount" |
633 |
- elog "" |
634 |
- elog "refind-mkdefault requires >=dev-lang/python-3" |
635 |
- elog "" |
636 |
- elog "A sample configuration can be found at" |
637 |
- elog "${EROOT%}/usr/share/${P}/refind/refind.conf-sample" |
638 |
- else |
639 |
- if ! version_is_at_least "0.10.3" "${REPLACING_VERSIONS}"; then |
640 |
- elog "The new refind-mkdefault script requires >=dev-lang/python-3" |
641 |
- elog "to be installed" |
642 |
- elog "" |
643 |
- fi |
644 |
- ewarn "Note that this installation will not update any EFI binaries" |
645 |
- ewarn "on your EFI System Partition - this needs to be done manually" |
646 |
- fi |
647 |
-} |