* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2016-03-15 8:53 Sam Jorna
0 siblings, 0 replies; 57+ messages in thread
From: Sam Jorna @ 2016-03-15 8:53 UTC (permalink / raw
To: gentoo-commits
commit: b4a6925bdf241cfb20e5272835598efbaaac96d4
Author: Sam Jorna <wraeth <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 15 08:46:21 2016 +0000
Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org>
CommitDate: Tue Mar 15 08:53:18 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4a6925b
sys-boot/refind: bump to 0.10.2
Gentoo-bug: 569806
Package-Manager: portage-2.2.28
sys-boot/refind/Manifest | 1 +
sys-boot/refind/refind-0.10.2.ebuild | 106 +++++++++++++++++++++++++++++++++++
2 files changed, 107 insertions(+)
diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest
index c65dff5..a023872 100644
--- a/sys-boot/refind/Manifest
+++ b/sys-boot/refind/Manifest
@@ -1,3 +1,4 @@
DIST refind-src-0.10.0.tar.gz 3336917 SHA256 845dc3a18d4c82c1e29d4dbef14a53f4de1401c5bb3ea10f3f39442efa870e2e SHA512 111caea0c1dbd9dde50e7b3cf47c7ad0d5e7f3bec3bb784397171950865cffd8cf589c6a1b821fabd6ed4be191a322757bf94255bfd449ee4a647ad597c3d7ab WHIRLPOOL 8e9070c89b83ff7e49b34c45f5f7d3ecd90824f8ba95eae4105636125500eafc29a7ae34a602cb268bd7bd4e90fe2a7e2a8bad4a9b68baa283a59d0a34ae1d1f
+DIST refind-src-0.10.2.tar.gz 2949593 SHA256 ef6aa17e911ea899c0d5e9482bfe657bc63b425976b0e2f936e67cbec3f1c34c SHA512 7f74109a2f2a8dd5889834c0d9cf9b186ed5487a737b442caed5ce2df06de13efc2553d264792e5f72e4bb281926a772aeca96187209d856a8b9abe9f831580c WHIRLPOOL 224c168b1eb980c850b008f0a6e2148b8bbc0ed1d591c4bdfb1c182af9430e5eb9ac8a58ec8f83a50320d30a946b1feeda12eb02a36450e7912462c6058cc7fc
DIST refind-src-0.9.0.zip 2939724 SHA256 842a01d7964bc8c8000a66e6d08f6fadb4c257d251b1277cebff0bf731e024aa SHA512 c49e3110e6b9f8d44dadae1ab828d3bf59bbce2da9170efed73db961135144ae9963b57d4cc39af2b15ecdf1f289359bda56c3d3e8f72d05be165ae5a3e2654d WHIRLPOOL 225a6b84ea7044e8fe0bab5e268c8c46a4523ab6f408d1bb2a94adfe54afe80c9c83ec0dc104945b332ae6c375c9d041972dee39baa43665588eb0dfc1fe4362
DIST refind-src-0.9.2.zip 2941986 SHA256 9022da3d46493395c273e2d2fc555d1c786fb1b9c11b2912751a88fe3328212a SHA512 6636cf02bb69ffe699d5f9717d09b80db0e4330aa52c14949e8612caed11f032370db17700c15d285173729271d2434fd0fbc39f5b445a3c05255ee14d125d47 WHIRLPOOL 2d81427bf6cc9cf021a4ffc7238bcf914e380fea091cbefaa601e391cf28f43f7c3ef1181744e4aab3d71d2535d88ba633b13cdae696f0baddd26d3c2511a88d
diff --git a/sys-boot/refind/refind-0.10.2.ebuild b/sys-boot/refind/refind-0.10.2.ebuild
new file mode 100644
index 0000000..db4455b
--- /dev/null
+++ b/sys-boot/refind/refind-0.10.2.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
+HOMEPAGE="http://www.rodsbooks.com/refind/"
+
+SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
+
+LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
+IUSE="${FS_USE} doc"
+
+DEPEND=">=sys-boot/gnu-efi-3.0.2"
+
+DOCS="NEWS.txt README.txt docs/refind docs/Styles"
+
+pkg_setup() {
+ if use x86 ; then
+ export EFIARCH=ia32
+ export BUILDARCH=ia32
+ elif use amd64; then
+ export EFIARCH=x64
+ export BUILDARCH=x86_64
+ else
+ # Try to support anyway
+ export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
+ if [[ ${BUILDARCH} == "x86_64" ]] ; then
+ export EFIARCH=x64
+ else
+ export EFIARCH=${ARCH}
+ fi
+ fi
+}
+
+src_compile() {
+ # Make main EFI
+ all_target=gnuefi
+ emake ARCH=${BUILDARCH} ${all_target}
+
+ # Make filesystem drivers
+ export gnuefi_target="_gnuefi"
+ for fs in ${FS_USE}; do
+ fs=${fs#+}
+ if use "${fs}"; then
+ einfo "Building ${fs} filesystem driver"
+ rm -f "${S}/filesystems/fsw_efi.o"
+ emake -C "${S}/filesystems" ARCH=${BUILDARCH} ${fs}${gnuefi_target}
+ fi
+ done
+}
+
+src_install() {
+ exeinto "/usr/share/${P}"
+ doexe refind-install
+ dosym "/usr/share/${P}/refind-install" "/usr/sbin/refind-install"
+
+ dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
+ if use doc; then
+ doman "${S}/docs/man/"*
+ dodoc -r ${DOCS}
+ fi
+
+ insinto "/usr/share/${P}/refind"
+ doins "${S}/refind/refind_${EFIARCH}.efi"
+ doins "${S}/refind.conf-sample"
+ doins -r images icons fonts banners
+
+ if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
+ doins -r "${S}/drivers_${EFIARCH}"
+ fi
+
+ insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
+ doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
+
+ insinto "/etc/refind.d"
+ doins -r "${S}/keys"
+
+ dosbin "${S}/mkrlconf"
+ dosbin "${S}/mvrefind"
+}
+
+pkg_postinst() {
+ elog "rEFInd has been built and installed into /usr/share/${P}"
+ elog "You will need to use the command 'refind-install' to install"
+ elog "the binaries into your EFI System Partition"
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog ""
+ elog "refind-install requires additional packages to be fully functional:"
+ elog " app-crypt/sbsigntool for binary signing for use with SecureBoot"
+ elog " sys-boot/efibootmgr for writing to NVRAM"
+ elog " sys-block/parted for automatic ESP location and mount"
+ elog ""
+ elog "A sample configuration can be found at"
+ elog "/usr/share/${P}/refind/refind.conf-sample"
+ else
+ ewarn "Note that this will not update any EFI binaries on your EFI"
+ ewarn "System Partition - this needs to be done manually."
+ fi
+}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2024-11-23 9:48 Viorel Munteanu
0 siblings, 0 replies; 57+ messages in thread
From: Viorel Munteanu @ 2024-11-23 9:48 UTC (permalink / raw
To: gentoo-commits
commit: ec25a26767d044393484328825f6d82618001e4c
Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 23 09:40:50 2024 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sat Nov 23 09:48:03 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec25a267
sys-boot/refind: pin sys-boot/gnu-efi to <4.0.0
Bug: https://bugs.gentoo.org/944562
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>
sys-boot/refind/refind-0.14.2-r2.ebuild | 2 +-
sys-boot/refind/refind-0.14.2-r3.ebuild | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys-boot/refind/refind-0.14.2-r2.ebuild b/sys-boot/refind/refind-0.14.2-r2.ebuild
index 9897b9108ce3..85984c41cc6d 100644
--- a/sys-boot/refind/refind-0.14.2-r2.ebuild
+++ b/sys-boot/refind/refind-0.14.2-r2.ebuild
@@ -15,7 +15,7 @@ KEYWORDS="amd64 x86"
FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
IUSE="${FS_USE} doc"
-DEPEND="sys-boot/gnu-efi"
+DEPEND="<sys-boot/gnu-efi-4.0.0"
# for ld.bfd and objcopy
BDEPEND="sys-devel/binutils"
diff --git a/sys-boot/refind/refind-0.14.2-r3.ebuild b/sys-boot/refind/refind-0.14.2-r3.ebuild
index ee7c4a3ed0ca..1ae2bbe01929 100644
--- a/sys-boot/refind/refind-0.14.2-r3.ebuild
+++ b/sys-boot/refind/refind-0.14.2-r3.ebuild
@@ -15,7 +15,7 @@ KEYWORDS="~amd64 ~x86"
FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
IUSE="${FS_USE} doc"
-DEPEND="sys-boot/gnu-efi"
+DEPEND="<sys-boot/gnu-efi-4.0.0"
# for ld.bfd and objcopy
BDEPEND="sys-devel/binutils"
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2024-10-15 4:54 Viorel Munteanu
0 siblings, 0 replies; 57+ messages in thread
From: Viorel Munteanu @ 2024-10-15 4:54 UTC (permalink / raw
To: gentoo-commits
commit: 0c1bca413246aae2e3827b0308d26ddfd2c91763
Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 15 04:40:04 2024 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Tue Oct 15 04:42:37 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c1bca41
sys-boot/refind: remove bogus check
pkg_pretend was checking for a dependency from BDEPEND. The same check
is in pkg_setup.
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>
sys-boot/refind/refind-0.14.0.2-r1.ebuild | 4 ----
sys-boot/refind/refind-0.14.2-r2.ebuild | 4 ----
2 files changed, 8 deletions(-)
diff --git a/sys-boot/refind/refind-0.14.0.2-r1.ebuild b/sys-boot/refind/refind-0.14.0.2-r1.ebuild
index 9923ce1ba58a..69986ba4d2bf 100644
--- a/sys-boot/refind/refind-0.14.0.2-r1.ebuild
+++ b/sys-boot/refind/refind-0.14.0.2-r1.ebuild
@@ -41,10 +41,6 @@ checktools() {
fi
}
-pkg_pretend() {
- checktools
-}
-
pkg_setup() {
if use x86; then
export EFIARCH=ia32
diff --git a/sys-boot/refind/refind-0.14.2-r2.ebuild b/sys-boot/refind/refind-0.14.2-r2.ebuild
index 1ad48b3b6088..9897b9108ce3 100644
--- a/sys-boot/refind/refind-0.14.2-r2.ebuild
+++ b/sys-boot/refind/refind-0.14.2-r2.ebuild
@@ -47,10 +47,6 @@ checktools() {
fi
}
-pkg_pretend() {
- checktools
-}
-
pkg_setup() {
if use x86; then
export EFIARCH=ia32
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2024-10-08 5:18 Viorel Munteanu
0 siblings, 0 replies; 57+ messages in thread
From: Viorel Munteanu @ 2024-10-08 5:18 UTC (permalink / raw
To: gentoo-commits
commit: f0db729d203246ec7cabd2d43be506797144a649
Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 8 05:16:53 2024 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Tue Oct 8 05:16:53 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0db729d
sys-boot/refind: drop 0.14.2-r1
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>
sys-boot/refind/refind-0.14.2-r1.ebuild | 163 --------------------------------
1 file changed, 163 deletions(-)
diff --git a/sys-boot/refind/refind-0.14.2-r1.ebuild b/sys-boot/refind/refind-0.14.2-r1.ebuild
deleted file mode 100644
index c740e9743943..000000000000
--- a/sys-boot/refind/refind-0.14.2-r1.ebuild
+++ /dev/null
@@ -1,163 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit optfeature secureboot toolchain-funcs
-
-DESCRIPTION="The UEFI Boot Manager by Rod Smith"
-HOMEPAGE="https://www.rodsbooks.com/refind/"
-SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
-
-LICENSE="BSD CC-BY-SA-3.0 CC-BY-SA-4.0 FDL-1.3 GPL-2+ GPL-3+ LGPL-3+"
-SLOT="0"
-KEYWORDS="amd64 x86"
-FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
-IUSE="${FS_USE} doc"
-
-DEPEND="sys-boot/gnu-efi"
-
-# for ld.bfd and objcopy
-BDEPEND="sys-devel/binutils"
-
-DOCS=( README.txt NEWS.txt )
-
-PATCHES=(
- "${FILESDIR}"/${PN}-0.14.0.2-clang.patch
- "${FILESDIR}"/${P}-fix-gnu-efi-3.0.18.patch
-)
-
-checktools() {
- if [[ ${MERGE_TYPE} != "binary" ]]; then
- # bug #832018
- tc-export LD
- tc-ld-force-bfd
- # the makefile calls LD directly, so try to fix LD too
- LD="${LD/.lld/.bfd}"
- tc-ld-is-lld "${LD}" && die "Linking with lld produces broken executables and may lead to unbootable system"
-
- # bug #732256
- # llvm-objcopy does not support EFI target, try to use binutils objcopy or fail
- tc-export OBJCOPY
- OBJCOPY="${OBJCOPY/llvm-/}"
- LANG=C LC_ALL=C "${OBJCOPY}" --help | grep -q '\<pei-' || die "${OBJCOPY} (objcopy) does not support EFI target"
- fi
-}
-
-pkg_pretend() {
- checktools
-}
-
-pkg_setup() {
- if use x86; then
- export EFIARCH=ia32
- export BUILDARCH=ia32
- elif use amd64; then
- export EFIARCH=x64
- export BUILDARCH=x86_64
- fi
- secureboot_pkg_setup
-
- # this does not only check, but also exports LD and OBJCOPY
- checktools
-}
-
-src_prepare() {
- default
-
- # bug #598647 - PIE not supported
- sed -e '/^CFLAGS/s/$/ -fno-PIE/' -i Make.common || die
- sed -e '1 i\.NOTPARALLEL:' -i filesystems/Makefile || die
-
- # bug #881131, bug #832018
- sed -e 's/-fno-tree-loop-distribute-patterns/-ffreestanding/' -i Make.common || die
-
- cp "${FILESDIR}"/refind-sbat-gentoo-${PV}.csv refind-sbat-gentoo.csv || die
-}
-
-src_compile() {
- # Update fs targets depending on uses
- local fs fs_names=()
- for fs in ${FS_USE}; do
- fs=${fs#+}
- if use "${fs}"; then
- fs_names+=( ${fs} )
- fi
- done
- fs_names=( "${fs_names[@]/%/_gnuefi}" )
-
- # Prepare flags
- local make_flags=(
- ARCH="${BUILDARCH}"
- CC="$(tc-getCC)"
- AS="$(tc-getAS)"
- LD="${LD}"
- AR="$(tc-getAR)"
- RANLIB="$(tc-getRANLIB)"
- OBJCOPY="${OBJCOPY}"
- GNUEFILIB="${ESYSROOT}/usr/$(get_libdir)"
- EFILIB="${ESYSROOT}/usr/$(get_libdir)"
- EFICRT0="${ESYSROOT}/usr/$(get_libdir)"
- FILESYSTEMS="${fs_names[*]}"
- FILESYSTEMS_GNUEFI="${fs_names[*]}"
- REFIND_SBAT_CSV=refind-sbat-gentoo.csv
- )
-
- emake "${make_flags[@]}" all_gnuefi
-}
-
-src_install() {
- exeinto "/usr/$(get_libdir)/${PN}"
- doexe refind-install
- dosym -r "/usr/$(get_libdir)/${PN}/refind-install" "/usr/sbin/refind-install"
-
- doman "docs/man/"*
- use doc && DOCS+=( docs/refind docs/Styles )
- einstalldocs
-
- insinto "/usr/$(get_libdir)/${PN}/refind"
- doins "refind/refind_${EFIARCH}.efi"
- doins "refind.conf-sample"
- doins -r images icons fonts banners
-
- if [[ -d "drivers_${EFIARCH}" ]]; then
- doins -r "drivers_${EFIARCH}"
- fi
-
- insinto "/usr/$(get_libdir)/${PN}/refind/tools_${EFIARCH}"
- doins "gptsync/gptsync_${EFIARCH}.efi"
-
- insinto "/etc/refind.d"
- doins -r "keys"
-
- dosbin "mkrlconf"
- dosbin "mvrefind"
- dosbin "refind-mkdefault"
-
- secureboot_auto_sign --in-place
-}
-
-pkg_postinst() {
- elog "rEFInd has been built and installed into ${EROOT}/usr/$(get_libdir)/${PN}"
- elog "You will need to use the command 'refind-install' to install"
- elog "the binaries into your EFI System Partition"
-
- optfeature_header "refind-install requires additional packages to be fully functional:"
- optfeature "binary signing for use with SecureBoot" app-crypt/sbsigntools
- optfeature "writing to NVRAM" sys-boot/efibootmgr
- optfeature "ESP management" sys-apps/gptfdisk
- elog ""
-
- if [[ -z "${REPLACING_VERSIONS}" ]]; then
- elog "A sample configuration can be found at"
- elog "${EROOT}/usr/$(get_libdir)/${PN}/refind/refind.conf-sample"
- else
- if ver_test "${REPLACING_VERSIONS}" -lt "0.12.0"; then
- ewarn "This new version uses sys-apps/gptfdisk instead of sys-block/parted"
- ewarn "to manage ESP"
- ewarn ""
- fi
- ewarn "Note that this installation will not update any EFI binaries"
- ewarn "on your EFI System Partition - this needs to be done manually"
- fi
-}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2024-09-30 14:06 Sam James
0 siblings, 0 replies; 57+ messages in thread
From: Sam James @ 2024-09-30 14:06 UTC (permalink / raw
To: gentoo-commits
commit: 67a711359d7a5b6d3c4d1f2e7c3fb6bd6ce37707
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 30 14:06:06 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Sep 30 14:06:06 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67a71135
sys-boot/refind: Stabilize 0.14.2-r2 amd64, #940522
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-boot/refind/refind-0.14.2-r2.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-boot/refind/refind-0.14.2-r2.ebuild b/sys-boot/refind/refind-0.14.2-r2.ebuild
index fa000f8dbeb4..1ad48b3b6088 100644
--- a/sys-boot/refind/refind-0.14.2-r2.ebuild
+++ b/sys-boot/refind/refind-0.14.2-r2.ebuild
@@ -11,7 +11,7 @@ SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PV}/${PN}-src-${PV}.t
LICENSE="BSD CC-BY-SA-3.0 CC-BY-SA-4.0 FDL-1.3 GPL-2+ GPL-3+ LGPL-3+"
SLOT="0"
-KEYWORDS="~amd64 x86"
+KEYWORDS="amd64 x86"
FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
IUSE="${FS_USE} doc"
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2024-09-30 14:06 Sam James
0 siblings, 0 replies; 57+ messages in thread
From: Sam James @ 2024-09-30 14:06 UTC (permalink / raw
To: gentoo-commits
commit: 6ee3a74ab5f47e260b0fe872203160f513904a2a
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 30 14:06:05 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Sep 30 14:06:05 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ee3a74a
sys-boot/refind: Stabilize 0.14.2-r2 x86, #940522
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-boot/refind/refind-0.14.2-r2.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-boot/refind/refind-0.14.2-r2.ebuild b/sys-boot/refind/refind-0.14.2-r2.ebuild
index cad032fc658b..fa000f8dbeb4 100644
--- a/sys-boot/refind/refind-0.14.2-r2.ebuild
+++ b/sys-boot/refind/refind-0.14.2-r2.ebuild
@@ -11,7 +11,7 @@ SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PV}/${PN}-src-${PV}.t
LICENSE="BSD CC-BY-SA-3.0 CC-BY-SA-4.0 FDL-1.3 GPL-2+ GPL-3+ LGPL-3+"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 x86"
FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
IUSE="${FS_USE} doc"
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2024-08-28 15:14 Viorel Munteanu
0 siblings, 0 replies; 57+ messages in thread
From: Viorel Munteanu @ 2024-08-28 15:14 UTC (permalink / raw
To: gentoo-commits
commit: 08a69400ed7aa6f0b3d522f012924f547f31e4bb
Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 28 15:07:24 2024 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Wed Aug 28 15:14:00 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08a69400
sys-boot/refind: fix compilation on different locales
Bug: https://bugs.gentoo.org/938580
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>
sys-boot/refind/refind-0.14.2-r2.ebuild | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sys-boot/refind/refind-0.14.2-r2.ebuild b/sys-boot/refind/refind-0.14.2-r2.ebuild
index 5755a725f1bf..cad032fc658b 100644
--- a/sys-boot/refind/refind-0.14.2-r2.ebuild
+++ b/sys-boot/refind/refind-0.14.2-r2.ebuild
@@ -41,7 +41,7 @@ checktools() {
# llvm-objcopy does not support EFI target, try to use binutils objcopy or fail
tc-export OBJCOPY
OBJCOPY="${OBJCOPY/llvm-/}"
- LANG=C LC_ALL=C "${OBJCOPY}" --help | grep -q '\<pei-' || die "${OBJCOPY} (objcopy) does not support EFI target"
+ LC_ALL=C "${OBJCOPY}" --help | grep -q '\<pei-' || die "${OBJCOPY} (objcopy) does not support EFI target"
tc-is-gcc || tc-is-clang || die "Unsupported compiler"
fi
@@ -106,9 +106,9 @@ src_compile() {
# see the comments in "${FILESDIR}"/${P}-fix-freestanding-on-musl.patch
tc-export CC
if tc-is-gcc; then
- local -x CPPINCLUDEDIR=$(LANG=C ${CC} -print-search-dirs 2> /dev/null | grep ^install: | cut -f2 -d' ')/include
+ local -x CPPINCLUDEDIR=$(LC_ALL=C ${CC} -print-search-dirs 2> /dev/null | grep ^install: | cut -f2 -d' ')/include
elif tc-is-clang; then
- local -x CPPINCLUDEDIR=$(LANG=C ${CC} -print-resource-dir 2> /dev/null)/include
+ local -x CPPINCLUDEDIR=$(LC_ALL=C ${CC} -print-resource-dir 2> /dev/null)/include
local -x EXTRACFLAGS=-D__DEFINED_wchar_t
fi
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2024-08-25 9:51 Arthur Zamarin
0 siblings, 0 replies; 57+ messages in thread
From: Arthur Zamarin @ 2024-08-25 9:51 UTC (permalink / raw
To: gentoo-commits
commit: f7f500fb6cb41b3c22b58c4023620e90b419a490
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 25 09:51:27 2024 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sun Aug 25 09:51:36 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7f500fb
sys-boot/refind: Stabilize 0.14.2-r1 amd64, #938484
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
sys-boot/refind/refind-0.14.2-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-boot/refind/refind-0.14.2-r1.ebuild b/sys-boot/refind/refind-0.14.2-r1.ebuild
index d3866389c5cb..1732d360c179 100644
--- a/sys-boot/refind/refind-0.14.2-r1.ebuild
+++ b/sys-boot/refind/refind-0.14.2-r1.ebuild
@@ -11,7 +11,7 @@ SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PV}/${PN}-src-${PV}.t
LICENSE="BSD CC-BY-SA-3.0 CC-BY-SA-4.0 FDL-1.3 GPL-2+ GPL-3+ LGPL-3+"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="amd64 ~x86"
FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
IUSE="${FS_USE} doc"
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2024-08-25 9:51 Arthur Zamarin
0 siblings, 0 replies; 57+ messages in thread
From: Arthur Zamarin @ 2024-08-25 9:51 UTC (permalink / raw
To: gentoo-commits
commit: 9a07739c8c6f41556b7df785968b3c3761ad4548
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 25 09:51:28 2024 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sun Aug 25 09:51:36 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a07739c
sys-boot/refind: Stabilize 0.14.2-r1 x86, #938484
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
sys-boot/refind/refind-0.14.2-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-boot/refind/refind-0.14.2-r1.ebuild b/sys-boot/refind/refind-0.14.2-r1.ebuild
index 1732d360c179..c740e9743943 100644
--- a/sys-boot/refind/refind-0.14.2-r1.ebuild
+++ b/sys-boot/refind/refind-0.14.2-r1.ebuild
@@ -11,7 +11,7 @@ SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PV}/${PN}-src-${PV}.t
LICENSE="BSD CC-BY-SA-3.0 CC-BY-SA-4.0 FDL-1.3 GPL-2+ GPL-3+ LGPL-3+"
SLOT="0"
-KEYWORDS="amd64 ~x86"
+KEYWORDS="amd64 x86"
FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
IUSE="${FS_USE} doc"
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2024-06-17 19:01 Viorel Munteanu
0 siblings, 0 replies; 57+ messages in thread
From: Viorel Munteanu @ 2024-06-17 19:01 UTC (permalink / raw
To: gentoo-commits
commit: 312bb3bcffae9e7abb7bed8ae4c660c485ce053e
Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 17 17:57:26 2024 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Mon Jun 17 19:01:08 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=312bb3bc
sys-boot/refind: pin sys-boot/gnu-efi to an older version
sys-boot/refind-0.14.0.2 (stable) does not boot with
>=sys-boot/gnu-efi-3.0.18, so pin it to max 3.0.17.
Bug: https://bugs.gentoo.org/934320
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>
sys-boot/refind/refind-0.14.0.2-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-boot/refind/refind-0.14.0.2-r1.ebuild b/sys-boot/refind/refind-0.14.0.2-r1.ebuild
index ae65b7eee2d1..9923ce1ba58a 100644
--- a/sys-boot/refind/refind-0.14.0.2-r1.ebuild
+++ b/sys-boot/refind/refind-0.14.0.2-r1.ebuild
@@ -15,7 +15,7 @@ KEYWORDS="amd64 x86"
FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
IUSE="${FS_USE} doc"
-DEPEND="sys-boot/gnu-efi"
+DEPEND="<sys-boot/gnu-efi-3.0.18"
# for ld.bfd and objcopy
BDEPEND="sys-devel/binutils"
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2024-06-05 4:47 Viorel Munteanu
0 siblings, 0 replies; 57+ messages in thread
From: Viorel Munteanu @ 2024-06-05 4:47 UTC (permalink / raw
To: gentoo-commits
commit: 9a11ed61cde8c46fda4e5465427d8c23299bfc0e
Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 5 04:41:29 2024 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Wed Jun 5 04:46:46 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a11ed61
sys-boot/refind: drop 0.13.2
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>
sys-boot/refind/Manifest | 1 -
sys-boot/refind/refind-0.13.2.ebuild | 144 -----------------------------------
2 files changed, 145 deletions(-)
diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest
index d538cc085ff8..18ef4b85ed59 100644
--- a/sys-boot/refind/Manifest
+++ b/sys-boot/refind/Manifest
@@ -1,3 +1,2 @@
-DIST refind-src-0.13.2.tar.gz 4554759 BLAKE2B 2c3b1daf5fa100dcd4e1c801aa625e269ae9c1a99b567a271d7cdd30f95fa1e041e22984623b9a0e61f8af45966919f4b9f3a5b6c2026271d1bc37c6925f1e70 SHA512 e671d44385297295c143824dd95593f2e7bc8e282745d127b041a645aa27003467a3a23f368fd30297f33faa06bd914540d7bdc3c71ec42f6b7a38d7ee8e0ddb
DIST refind-src-0.13.3.1.tar.gz 4550242 BLAKE2B ab8dd27f82954ea6f9831f827550f27b5ca426b7783e918311ba7e178fc3509698a0107f61d0394a7893318528cb3e0c8491f4522de0a4aca6a40e0749f5a6f9 SHA512 7966df5dd8dc66cc49a329ed722a567672da8e2fa3f2334d53db65357cea17cba5a4dc5459e358de1079a938da3c63dc626d096ce28b6bf1fa2964be7359dbd1
DIST refind-src-0.14.0.2.tar.gz 4648958 BLAKE2B 02019ddb872ce44d2a2119902edebd633f925d49634e3bcc6bfb2c9dedb8ce213166909395a333d3a37e95c67720e31b1f5fcf25083801c17d645372aa54a06a SHA512 41c120c1afec37c508aa5c0ec09a6563c3047ef84932308c91701795b950431dfad17d25cf664039b490a302d475add98441b75f90ff71cadce41febedc68a9e
diff --git a/sys-boot/refind/refind-0.13.2.ebuild b/sys-boot/refind/refind-0.13.2.ebuild
deleted file mode 100644
index 43811be7c0ff..000000000000
--- a/sys-boot/refind/refind-0.13.2.ebuild
+++ /dev/null
@@ -1,144 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit multiprocessing toolchain-funcs
-
-DESCRIPTION="The UEFI Boot Manager by Rod Smith"
-HOMEPAGE="https://www.rodsbooks.com/refind/"
-SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
-
-LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
-SLOT="0"
-KEYWORDS="amd64 x86"
-FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
-IUSE="${FS_USE} custom-cflags doc"
-
-DEPEND="sys-boot/gnu-efi"
-
-DOCS=( README.txt )
-
-PATCHES=(
- "${FILESDIR}"/${P}-gnuefi-3.0.14.patch
-)
-
-pkg_pretend() {
- if use custom-cflags; then
- ewarn
- ewarn "You have enabled building with USE=custom-cflags. Be aware that"
- ewarn "using this can result in EFI binaries that fail to run and may"
- ewarn "fail to build at all. This is strongly advised against by upstream."
- ewarn
- ewarn "See https://bugs.gentoo.org/598587#c3 for more information"
- ewarn
- fi
-}
-
-pkg_setup() {
- if use x86; then
- export EFIARCH=ia32
- export BUILDARCH=ia32
- elif use amd64; then
- export EFIARCH=x64
- export BUILDARCH=x86_64
- fi
-}
-
-src_prepare() {
- default
-
- # bug 598647 - PIE not supported
- sed -e '/^CFLAGS/s/$/ -fno-PIE/' -i Make.common || die
- sed -e '1 i\.NOTPARALLEL:' -i filesystems/Makefile || die
-}
-
-src_compile() {
- # Update fs targets depending on uses
- local fs fs_names=()
- for fs in ${FS_USE}; do
- fs=${fs#+}
- if use "${fs}"; then
- fs_names+=(${fs})
- fi
- done
- fs_names=("${fs_names[@]/%/_gnuefi}")
-
- # Prepare flags
- local make_flags=(
- ARCH="${BUILDARCH}"
- CC="$(tc-getCC)"
- AS="$(tc-getAS)"
- LD="$(tc-getLD)"
- AR="$(tc-getAR)"
- RANLIB="$(tc-getRANLIB)"
- OBJCOPY="$(tc-getOBJCOPY)"
- GNUEFILIB="/usr/$(get_libdir)"
- EFILIB="/usr/$(get_libdir)"
- EFICRT0="/usr/$(get_libdir)"
- FILESYSTEMS="${fs_names[*]}"
- FILESYSTEMS_GNUEFI="${fs_names[*]}"
- )
- if use custom-cflags; then
- make_flags=(CFLAGS="${CFLAGS} -fno-tree-loop-distribute-patterns" "${make_flags[@]}")
- fi
-
- emake "${make_flags[@]}" all_gnuefi
-}
-
-src_install() {
- exeinto "/usr/$(get_libdir)/${PN}"
- doexe refind-install
- dosym "../$(get_libdir)/${PN}/refind-install" "/usr/sbin/refind-install"
-
- if use doc; then
- doman "docs/man/"*
- DOCS+=(NEWS.txt docs/refind docs/Styles)
- fi
- einstalldocs
-
- insinto "/usr/$(get_libdir)/${PN}/refind"
- doins "refind/refind_${EFIARCH}.efi"
- doins "refind.conf-sample"
- doins -r images icons fonts banners
-
- if [[ -d "drivers_${EFIARCH}" ]]; then
- doins -r "drivers_${EFIARCH}"
- fi
-
- insinto "/usr/$(get_libdir)/${PN}/refind/tools_${EFIARCH}"
- doins "gptsync/gptsync_${EFIARCH}.efi"
-
- insinto "/etc/refind.d"
- doins -r "keys"
-
- dosbin "mkrlconf"
- dosbin "mvrefind"
- dosbin "refind-mkdefault"
-}
-
-pkg_postinst() {
- elog "rEFInd has been built and installed into ${EROOT}/usr/$(get_libdir)/${PN}"
- elog "You will need to use the command 'refind-install' to install"
- elog "the binaries into your EFI System Partition"
- elog ""
- elog "refind-install requires additional packages to be fully functional:"
- elog " app-crypt/sbsigntools for binary signing for use with SecureBoot"
- elog " sys-boot/efibootmgr for writing to NVRAM"
- elog " sys-apps/gptfdisk for ESP management"
- elog ""
- elog "refind-mkdefault requires >=dev-lang/python-3"
- elog ""
- if [[ -z "${REPLACING_VERSIONS}" ]]; then
- elog "A sample configuration can be found at"
- elog "${EROOT}/usr/$(get_libdir)/${PN}/refind/refind.conf-sample"
- else
- if ver_test "${REPLACING_VERSIONS}" -lt "0.12.0"; then
- ewarn "This new version uses sys-apps/gptfdisk instead of sys-block/parted"
- ewarn "to manage ESP"
- ewarn ""
- fi
- ewarn "Note that this installation will not update any EFI binaries"
- ewarn "on your EFI System Partition - this needs to be done manually"
- fi
-}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2024-06-05 4:47 Viorel Munteanu
0 siblings, 0 replies; 57+ messages in thread
From: Viorel Munteanu @ 2024-06-05 4:47 UTC (permalink / raw
To: gentoo-commits
commit: 4fa6261f08548c294649b1c142a2fe29154112d7
Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 5 04:41:47 2024 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Wed Jun 5 04:46:46 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fa6261f
sys-boot/refind: drop 0.14.0.2
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>
sys-boot/refind/refind-0.14.0.2.ebuild | 146 ---------------------------------
1 file changed, 146 deletions(-)
diff --git a/sys-boot/refind/refind-0.14.0.2.ebuild b/sys-boot/refind/refind-0.14.0.2.ebuild
deleted file mode 100644
index d019f31c4acb..000000000000
--- a/sys-boot/refind/refind-0.14.0.2.ebuild
+++ /dev/null
@@ -1,146 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit toolchain-funcs secureboot
-
-DESCRIPTION="The UEFI Boot Manager by Rod Smith"
-HOMEPAGE="https://www.rodsbooks.com/refind/"
-SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
-
-LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
-IUSE="${FS_USE} custom-cflags doc"
-
-DEPEND="sys-boot/gnu-efi"
-
-DOCS=( README.txt )
-
-pkg_pretend() {
- if use custom-cflags; then
- ewarn
- ewarn "You have enabled building with USE=custom-cflags. Be aware that"
- ewarn "using this can result in EFI binaries that fail to run and may"
- ewarn "fail to build at all. This is strongly advised against by upstream."
- ewarn
- ewarn "See https://bugs.gentoo.org/598587#c3 for more information"
- ewarn
- fi
-}
-
-pkg_setup() {
- if use x86; then
- export EFIARCH=ia32
- export BUILDARCH=ia32
- elif use amd64; then
- export EFIARCH=x64
- export BUILDARCH=x86_64
- fi
- secureboot_pkg_setup
-}
-
-src_prepare() {
- default
-
- # bug 598647 - PIE not supported
- sed -e '/^CFLAGS/s/$/ -fno-PIE/' -i Make.common || die
- sed -e '1 i\.NOTPARALLEL:' -i filesystems/Makefile || die
-
- cp "${FILESDIR}"/refind-sbat-gentoo-${PV}.csv refind-sbat-gentoo.csv || die
-}
-
-src_compile() {
- # Update fs targets depending on uses
- local fs fs_names=()
- for fs in ${FS_USE}; do
- fs=${fs#+}
- if use "${fs}"; then
- fs_names+=(${fs})
- fi
- done
- fs_names=("${fs_names[@]/%/_gnuefi}")
-
- # Prepare flags
- local make_flags=(
- ARCH="${BUILDARCH}"
- CC="$(tc-getCC)"
- AS="$(tc-getAS)"
- LD="$(tc-getLD)"
- AR="$(tc-getAR)"
- RANLIB="$(tc-getRANLIB)"
- OBJCOPY="$(tc-getOBJCOPY)"
- GNUEFILIB="/usr/$(get_libdir)"
- EFILIB="/usr/$(get_libdir)"
- EFICRT0="/usr/$(get_libdir)"
- FILESYSTEMS="${fs_names[*]}"
- FILESYSTEMS_GNUEFI="${fs_names[*]}"
- REFIND_SBAT_CSV=refind-sbat-gentoo.csv
- )
- if use custom-cflags; then
- make_flags=(CFLAGS="${CFLAGS} -fno-tree-loop-distribute-patterns" "${make_flags[@]}")
- fi
-
- emake "${make_flags[@]}" all_gnuefi
-}
-
-src_install() {
- exeinto "/usr/$(get_libdir)/${PN}"
- doexe refind-install
- dosym "../$(get_libdir)/${PN}/refind-install" "/usr/sbin/refind-install"
-
- if use doc; then
- doman "docs/man/"*
- DOCS+=(NEWS.txt docs/refind docs/Styles)
- fi
- einstalldocs
-
- insinto "/usr/$(get_libdir)/${PN}/refind"
- doins "refind/refind_${EFIARCH}.efi"
- doins "refind.conf-sample"
- doins -r images icons fonts banners
-
- if [[ -d "drivers_${EFIARCH}" ]]; then
- doins -r "drivers_${EFIARCH}"
- fi
-
- insinto "/usr/$(get_libdir)/${PN}/refind/tools_${EFIARCH}"
- doins "gptsync/gptsync_${EFIARCH}.efi"
-
- insinto "/etc/refind.d"
- doins -r "keys"
-
- dosbin "mkrlconf"
- dosbin "mvrefind"
- dosbin "refind-mkdefault"
-
- secureboot_auto_sign --in-place
-}
-
-pkg_postinst() {
- elog "rEFInd has been built and installed into ${EROOT}/usr/$(get_libdir)/${PN}"
- elog "You will need to use the command 'refind-install' to install"
- elog "the binaries into your EFI System Partition"
- elog ""
- elog "refind-install requires additional packages to be fully functional:"
- elog " app-crypt/sbsigntools for binary signing for use with SecureBoot"
- elog " sys-boot/efibootmgr for writing to NVRAM"
- elog " sys-apps/gptfdisk for ESP management"
- elog ""
- elog "refind-mkdefault requires >=dev-lang/python-3"
- elog ""
- if [[ -z "${REPLACING_VERSIONS}" ]]; then
- elog "A sample configuration can be found at"
- elog "${EROOT}/usr/$(get_libdir)/${PN}/refind/refind.conf-sample"
- else
- if ver_test "${REPLACING_VERSIONS}" -lt "0.12.0"; then
- ewarn "This new version uses sys-apps/gptfdisk instead of sys-block/parted"
- ewarn "to manage ESP"
- ewarn ""
- fi
- ewarn "Note that this installation will not update any EFI binaries"
- ewarn "on your EFI System Partition - this needs to be done manually"
- fi
-}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2024-06-05 4:47 Viorel Munteanu
0 siblings, 0 replies; 57+ messages in thread
From: Viorel Munteanu @ 2024-06-05 4:47 UTC (permalink / raw
To: gentoo-commits
commit: f72213f83ca0980bdc867b3e522c842fb42d5f2c
Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 5 04:41:40 2024 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Wed Jun 5 04:46:46 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f72213f8
sys-boot/refind: drop 0.13.3.1
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>
sys-boot/refind/Manifest | 1 -
sys-boot/refind/refind-0.13.3.1.ebuild | 143 ---------------------------------
2 files changed, 144 deletions(-)
diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest
index 18ef4b85ed59..f0f404269fa8 100644
--- a/sys-boot/refind/Manifest
+++ b/sys-boot/refind/Manifest
@@ -1,2 +1 @@
-DIST refind-src-0.13.3.1.tar.gz 4550242 BLAKE2B ab8dd27f82954ea6f9831f827550f27b5ca426b7783e918311ba7e178fc3509698a0107f61d0394a7893318528cb3e0c8491f4522de0a4aca6a40e0749f5a6f9 SHA512 7966df5dd8dc66cc49a329ed722a567672da8e2fa3f2334d53db65357cea17cba5a4dc5459e358de1079a938da3c63dc626d096ce28b6bf1fa2964be7359dbd1
DIST refind-src-0.14.0.2.tar.gz 4648958 BLAKE2B 02019ddb872ce44d2a2119902edebd633f925d49634e3bcc6bfb2c9dedb8ce213166909395a333d3a37e95c67720e31b1f5fcf25083801c17d645372aa54a06a SHA512 41c120c1afec37c508aa5c0ec09a6563c3047ef84932308c91701795b950431dfad17d25cf664039b490a302d475add98441b75f90ff71cadce41febedc68a9e
diff --git a/sys-boot/refind/refind-0.13.3.1.ebuild b/sys-boot/refind/refind-0.13.3.1.ebuild
deleted file mode 100644
index 1622d6196851..000000000000
--- a/sys-boot/refind/refind-0.13.3.1.ebuild
+++ /dev/null
@@ -1,143 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit toolchain-funcs secureboot
-
-DESCRIPTION="The UEFI Boot Manager by Rod Smith"
-HOMEPAGE="https://www.rodsbooks.com/refind/"
-SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
-
-LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
-IUSE="${FS_USE} custom-cflags doc"
-
-DEPEND="sys-boot/gnu-efi"
-
-DOCS=( README.txt )
-
-pkg_pretend() {
- if use custom-cflags; then
- ewarn
- ewarn "You have enabled building with USE=custom-cflags. Be aware that"
- ewarn "using this can result in EFI binaries that fail to run and may"
- ewarn "fail to build at all. This is strongly advised against by upstream."
- ewarn
- ewarn "See https://bugs.gentoo.org/598587#c3 for more information"
- ewarn
- fi
-}
-
-pkg_setup() {
- if use x86; then
- export EFIARCH=ia32
- export BUILDARCH=ia32
- elif use amd64; then
- export EFIARCH=x64
- export BUILDARCH=x86_64
- fi
- secureboot_pkg_setup
-}
-
-src_prepare() {
- default
-
- # bug 598647 - PIE not supported
- sed -e '/^CFLAGS/s/$/ -fno-PIE/' -i Make.common || die
- sed -e '1 i\.NOTPARALLEL:' -i filesystems/Makefile || die
-}
-
-src_compile() {
- # Update fs targets depending on uses
- local fs fs_names=()
- for fs in ${FS_USE}; do
- fs=${fs#+}
- if use "${fs}"; then
- fs_names+=(${fs})
- fi
- done
- fs_names=("${fs_names[@]/%/_gnuefi}")
-
- # Prepare flags
- local make_flags=(
- ARCH="${BUILDARCH}"
- CC="$(tc-getCC)"
- AS="$(tc-getAS)"
- LD="$(tc-getLD)"
- AR="$(tc-getAR)"
- RANLIB="$(tc-getRANLIB)"
- OBJCOPY="$(tc-getOBJCOPY)"
- GNUEFILIB="/usr/$(get_libdir)"
- EFILIB="/usr/$(get_libdir)"
- EFICRT0="/usr/$(get_libdir)"
- FILESYSTEMS="${fs_names[*]}"
- FILESYSTEMS_GNUEFI="${fs_names[*]}"
- )
- if use custom-cflags; then
- make_flags=(CFLAGS="${CFLAGS} -fno-tree-loop-distribute-patterns" "${make_flags[@]}")
- fi
-
- emake "${make_flags[@]}" all_gnuefi
-}
-
-src_install() {
- exeinto "/usr/$(get_libdir)/${PN}"
- doexe refind-install
- dosym "../$(get_libdir)/${PN}/refind-install" "/usr/sbin/refind-install"
-
- if use doc; then
- doman "docs/man/"*
- DOCS+=(NEWS.txt docs/refind docs/Styles)
- fi
- einstalldocs
-
- insinto "/usr/$(get_libdir)/${PN}/refind"
- doins "refind/refind_${EFIARCH}.efi"
- doins "refind.conf-sample"
- doins -r images icons fonts banners
-
- if [[ -d "drivers_${EFIARCH}" ]]; then
- doins -r "drivers_${EFIARCH}"
- fi
-
- insinto "/usr/$(get_libdir)/${PN}/refind/tools_${EFIARCH}"
- doins "gptsync/gptsync_${EFIARCH}.efi"
-
- insinto "/etc/refind.d"
- doins -r "keys"
-
- dosbin "mkrlconf"
- dosbin "mvrefind"
- dosbin "refind-mkdefault"
-
- secureboot_auto_sign --in-place
-}
-
-pkg_postinst() {
- elog "rEFInd has been built and installed into ${EROOT}/usr/$(get_libdir)/${PN}"
- elog "You will need to use the command 'refind-install' to install"
- elog "the binaries into your EFI System Partition"
- elog ""
- elog "refind-install requires additional packages to be fully functional:"
- elog " app-crypt/sbsigntools for binary signing for use with SecureBoot"
- elog " sys-boot/efibootmgr for writing to NVRAM"
- elog " sys-apps/gptfdisk for ESP management"
- elog ""
- elog "refind-mkdefault requires >=dev-lang/python-3"
- elog ""
- if [[ -z "${REPLACING_VERSIONS}" ]]; then
- elog "A sample configuration can be found at"
- elog "${EROOT}/usr/$(get_libdir)/${PN}/refind/refind.conf-sample"
- else
- if ver_test "${REPLACING_VERSIONS}" -lt "0.12.0"; then
- ewarn "This new version uses sys-apps/gptfdisk instead of sys-block/parted"
- ewarn "to manage ESP"
- ewarn ""
- fi
- ewarn "Note that this installation will not update any EFI binaries"
- ewarn "on your EFI System Partition - this needs to be done manually"
- fi
-}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2023-10-17 6:09 Joonas Niilola
0 siblings, 0 replies; 57+ messages in thread
From: Joonas Niilola @ 2023-10-17 6:09 UTC (permalink / raw
To: gentoo-commits
commit: 2930feac31999cc2cbc7b97385dba8550837e542
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 17 06:09:26 2023 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Oct 17 06:09:26 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2930feac
sys-boot/refind: Stabilize 0.14.0.2-r1 x86, #915874
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
sys-boot/refind/refind-0.14.0.2-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-boot/refind/refind-0.14.0.2-r1.ebuild b/sys-boot/refind/refind-0.14.0.2-r1.ebuild
index c7dad8ce3707..701a7a330943 100644
--- a/sys-boot/refind/refind-0.14.0.2-r1.ebuild
+++ b/sys-boot/refind/refind-0.14.0.2-r1.ebuild
@@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 x86"
FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
IUSE="${FS_USE} doc"
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2023-10-17 6:09 Joonas Niilola
0 siblings, 0 replies; 57+ messages in thread
From: Joonas Niilola @ 2023-10-17 6:09 UTC (permalink / raw
To: gentoo-commits
commit: 4e324383a11dc35d5d6942a638c210296bf77763
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 17 06:09:45 2023 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Oct 17 06:09:45 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e324383
sys-boot/refind: Stabilize 0.14.0.2-r1 amd64, #915874
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
sys-boot/refind/refind-0.14.0.2-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-boot/refind/refind-0.14.0.2-r1.ebuild b/sys-boot/refind/refind-0.14.0.2-r1.ebuild
index 701a7a330943..5a9f350b47e9 100644
--- a/sys-boot/refind/refind-0.14.0.2-r1.ebuild
+++ b/sys-boot/refind/refind-0.14.0.2-r1.ebuild
@@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
SLOT="0"
-KEYWORDS="~amd64 x86"
+KEYWORDS="amd64 x86"
FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
IUSE="${FS_USE} doc"
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2023-09-07 9:58 Viorel Munteanu
0 siblings, 0 replies; 57+ messages in thread
From: Viorel Munteanu @ 2023-09-07 9:58 UTC (permalink / raw
To: gentoo-commits
commit: 87b058f30310d2f0bd43e1ed0075209bf71c9df2
Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 7 09:57:20 2023 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Thu Sep 7 09:57:58 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87b058f3
sys-boot/refind: update maintainers
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>
sys-boot/refind/metadata.xml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sys-boot/refind/metadata.xml b/sys-boot/refind/metadata.xml
index 7a3d471b5fed..7d82e5d26db3 100644
--- a/sys-boot/refind/metadata.xml
+++ b/sys-boot/refind/metadata.xml
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer type="person" proxied="yes">
- <email>sveyret@gmail.com</email>
- <name>Stéphane Veyret</name>
- </maintainer>
<maintainer type="person">
<email>ceamac@gentoo.org</email>
<name>Viorel Munteanu</name>
</maintainer>
+ <maintainer type="person" proxied="yes">
+ <email>sveyret@gmail.com</email>
+ <name>Stéphane Veyret</name>
+ </maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2023-07-20 11:33 Andrew Ammerlaan
0 siblings, 0 replies; 57+ messages in thread
From: Andrew Ammerlaan @ 2023-07-20 11:33 UTC (permalink / raw
To: gentoo-commits
commit: b42e1af6cee762ebc65bcb3ef478615afa4cb0da
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 11 18:12:01 2023 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Thu Jul 20 11:32:17 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b42e1af6
sys-boot/refind: use secureboot.eclass to sign efi files
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sys-boot/refind/refind-0.13.3.1.ebuild | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/sys-boot/refind/refind-0.13.3.1.ebuild b/sys-boot/refind/refind-0.13.3.1.ebuild
index 73f27787890e..327f17b7022b 100644
--- a/sys-boot/refind/refind-0.13.3.1.ebuild
+++ b/sys-boot/refind/refind-0.13.3.1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-inherit toolchain-funcs
+inherit toolchain-funcs secureboot
DESCRIPTION="The UEFI Boot Manager by Rod Smith"
HOMEPAGE="https://www.rodsbooks.com/refind/"
@@ -39,6 +39,7 @@ pkg_setup() {
export EFIARCH=x64
export BUILDARCH=x86_64
fi
+ secureboot_pkg_setup
}
src_prepare() {
@@ -111,6 +112,8 @@ src_install() {
dosbin "mkrlconf"
dosbin "mvrefind"
dosbin "refind-mkdefault"
+
+ secureboot_auto_sign --in-place
}
pkg_postinst() {
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2022-05-18 15:30 Joonas Niilola
0 siblings, 0 replies; 57+ messages in thread
From: Joonas Niilola @ 2022-05-18 15:30 UTC (permalink / raw
To: gentoo-commits
commit: 2c31ec0df16b18a1032c0fe154a43da8b7bf54da
Author: Matt Jolly <Matt.Jolly <AT> footclan <DOT> ninja>
AuthorDate: Fri May 13 12:19:41 2022 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed May 18 15:29:59 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c31ec0d
sys-boot/refind: add 0.13.3.1
Signed-off-by: Matt Jolly <Matt.Jolly <AT> footclan.ninja>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
sys-boot/refind/Manifest | 1 +
sys-boot/refind/metadata.xml | 14 ++--
sys-boot/refind/refind-0.13.3.1.ebuild | 140 +++++++++++++++++++++++++++++++++
3 files changed, 147 insertions(+), 8 deletions(-)
diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest
index 99f58f7bb053..402f95579a42 100644
--- a/sys-boot/refind/Manifest
+++ b/sys-boot/refind/Manifest
@@ -1,3 +1,4 @@
DIST refind-src-0.11.4.tar.gz 3812192 BLAKE2B 7219eeffffb63961a7ba8f7617546a12021cfe80df80a83c4dbd47cd40b0d8afbdc510abb44de3029ff15ed49372bd59e0b156f4c27eab3ef7bd6ccc3c7e02db SHA512 529962ae432edaf1895ba98deb00a23c66bd742578e1a367f70f7ed22dd7be7daf1960df8af410fba79ca775169120499a4c10119331b2b12b55a002d4354de1
DIST refind-src-0.12.0.tar.gz 3898337 BLAKE2B 1197049fb7d91db64135dafda7488bdb1da4997ce6a6d49dfe635526240e3193d8c7c22597aee0f2d6754ce6061b4127d8aa21d43c9f061501de98e25de609d3 SHA512 3ade9642d7acf31097daa5308acb96a9fa3371314073b5a09601a886fc30444752efa08ed9fb35e421efb0b4eb9efbccd7b5c9bd6b3b9ed4af74c58f22a74729
DIST refind-src-0.13.2.tar.gz 4554759 BLAKE2B 2c3b1daf5fa100dcd4e1c801aa625e269ae9c1a99b567a271d7cdd30f95fa1e041e22984623b9a0e61f8af45966919f4b9f3a5b6c2026271d1bc37c6925f1e70 SHA512 e671d44385297295c143824dd95593f2e7bc8e282745d127b041a645aa27003467a3a23f368fd30297f33faa06bd914540d7bdc3c71ec42f6b7a38d7ee8e0ddb
+DIST refind-src-0.13.3.1.tar.gz 4550242 BLAKE2B ab8dd27f82954ea6f9831f827550f27b5ca426b7783e918311ba7e178fc3509698a0107f61d0394a7893318528cb3e0c8491f4522de0a4aca6a40e0749f5a6f9 SHA512 7966df5dd8dc66cc49a329ed722a567672da8e2fa3f2334d53db65357cea17cba5a4dc5459e358de1079a938da3c63dc626d096ce28b6bf1fa2964be7359dbd1
diff --git a/sys-boot/refind/metadata.xml b/sys-boot/refind/metadata.xml
index 39c685e1f5b5..c4b2438447a5 100644
--- a/sys-boot/refind/metadata.xml
+++ b/sys-boot/refind/metadata.xml
@@ -40,24 +40,22 @@ d'amorçage au moment de l'exécution le rend très facile à utiliser, en
particulier associé à des noyau Linux qui fournissent un support EFI stub.
</longdescription>
<use lang="en">
+ <flag name="btrfs">Builds the EFI binary btrfs filesystem driver</flag>
<flag name="ext2">Builds the EFI binary ext2 filesystem driver</flag>
<flag name="ext4">Builds the EFI binary ext4 filesystem driver</flag>
- <flag name="reiserfs">Builds the EFI binary reiserfs filesystem driver</flag>
- <flag name="iso9660">Builds the EFI binary iso9660 filesystem driver</flag>
<flag name="hfs">Builds the EFI binary hfs filesystem driver</flag>
- <flag name="btrfs">Builds the EFI binary btrfs filesystem driver</flag>
+ <flag name="iso9660">Builds the EFI binary iso9660 filesystem driver</flag>
<flag name="ntfs">Builds the EFI binary ntfs filesystem driver</flag>
- <flag name="gnuefi">Compile using GNU-EFI instead of Tianocore</flag>
+ <flag name="reiserfs">Builds the EFI binary reiserfs filesystem driver</flag>
</use>
<use lang="fr">
+ <flag name="btrfs">Construire le gestionnaire EFI pour le système de fichier btrfs</flag>
<flag name="ext2">Construire le gestionnaire EFI pour le système de fichier ext2</flag>
<flag name="ext4">Construire le gestionnaire EFI pour le système de fichier ext4</flag>
- <flag name="reiserfs">Construire le gestionnaire EFI pour le système de fichier reiserfs</flag>
- <flag name="iso9660">Construire le gestionnaire EFI pour le système de fichier iso9660</flag>
<flag name="hfs">Construire le gestionnaire EFI pour le système de fichier hfs</flag>
- <flag name="btrfs">Construire le gestionnaire EFI pour le système de fichier btrfs</flag>
+ <flag name="iso9660">Construire le gestionnaire EFI pour le système de fichier iso9660</flag>
<flag name="ntfs">Construire le gestionnaire EFI pour le système de fichier ntfs</flag>
- <flag name="gnuefi">Compiler en utilisant GNU-EFI au lieu de Tianocore</flag>
+ <flag name="reiserfs">Construire le gestionnaire EFI pour le système de fichier reiserfs</flag>
</use>
<upstream>
<remote-id type="sourceforge">refind</remote-id>
diff --git a/sys-boot/refind/refind-0.13.3.1.ebuild b/sys-boot/refind/refind-0.13.3.1.ebuild
new file mode 100644
index 000000000000..73f27787890e
--- /dev/null
+++ b/sys-boot/refind/refind-0.13.3.1.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="The UEFI Boot Manager by Rod Smith"
+HOMEPAGE="https://www.rodsbooks.com/refind/"
+SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
+
+LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
+IUSE="${FS_USE} custom-cflags doc"
+
+DEPEND="sys-boot/gnu-efi"
+
+DOCS=( README.txt )
+
+pkg_pretend() {
+ if use custom-cflags; then
+ ewarn
+ ewarn "You have enabled building with USE=custom-cflags. Be aware that"
+ ewarn "using this can result in EFI binaries that fail to run and may"
+ ewarn "fail to build at all. This is strongly advised against by upstream."
+ ewarn
+ ewarn "See https://bugs.gentoo.org/598587#c3 for more information"
+ ewarn
+ fi
+}
+
+pkg_setup() {
+ if use x86; then
+ export EFIARCH=ia32
+ export BUILDARCH=ia32
+ elif use amd64; then
+ export EFIARCH=x64
+ export BUILDARCH=x86_64
+ fi
+}
+
+src_prepare() {
+ default
+
+ # bug 598647 - PIE not supported
+ sed -e '/^CFLAGS/s/$/ -fno-PIE/' -i Make.common || die
+ sed -e '1 i\.NOTPARALLEL:' -i filesystems/Makefile || die
+}
+
+src_compile() {
+ # Update fs targets depending on uses
+ local fs fs_names=()
+ for fs in ${FS_USE}; do
+ fs=${fs#+}
+ if use "${fs}"; then
+ fs_names+=(${fs})
+ fi
+ done
+ fs_names=("${fs_names[@]/%/_gnuefi}")
+
+ # Prepare flags
+ local make_flags=(
+ ARCH="${BUILDARCH}"
+ CC="$(tc-getCC)"
+ AS="$(tc-getAS)"
+ LD="$(tc-getLD)"
+ AR="$(tc-getAR)"
+ RANLIB="$(tc-getRANLIB)"
+ OBJCOPY="$(tc-getOBJCOPY)"
+ GNUEFILIB="/usr/$(get_libdir)"
+ EFILIB="/usr/$(get_libdir)"
+ EFICRT0="/usr/$(get_libdir)"
+ FILESYSTEMS="${fs_names[*]}"
+ FILESYSTEMS_GNUEFI="${fs_names[*]}"
+ )
+ if use custom-cflags; then
+ make_flags=(CFLAGS="${CFLAGS} -fno-tree-loop-distribute-patterns" "${make_flags[@]}")
+ fi
+
+ emake "${make_flags[@]}" all_gnuefi
+}
+
+src_install() {
+ exeinto "/usr/$(get_libdir)/${PN}"
+ doexe refind-install
+ dosym "../$(get_libdir)/${PN}/refind-install" "/usr/sbin/refind-install"
+
+ if use doc; then
+ doman "docs/man/"*
+ DOCS+=(NEWS.txt docs/refind docs/Styles)
+ fi
+ einstalldocs
+
+ insinto "/usr/$(get_libdir)/${PN}/refind"
+ doins "refind/refind_${EFIARCH}.efi"
+ doins "refind.conf-sample"
+ doins -r images icons fonts banners
+
+ if [[ -d "drivers_${EFIARCH}" ]]; then
+ doins -r "drivers_${EFIARCH}"
+ fi
+
+ insinto "/usr/$(get_libdir)/${PN}/refind/tools_${EFIARCH}"
+ doins "gptsync/gptsync_${EFIARCH}.efi"
+
+ insinto "/etc/refind.d"
+ doins -r "keys"
+
+ dosbin "mkrlconf"
+ dosbin "mvrefind"
+ dosbin "refind-mkdefault"
+}
+
+pkg_postinst() {
+ elog "rEFInd has been built and installed into ${EROOT}/usr/$(get_libdir)/${PN}"
+ elog "You will need to use the command 'refind-install' to install"
+ elog "the binaries into your EFI System Partition"
+ elog ""
+ elog "refind-install requires additional packages to be fully functional:"
+ elog " app-crypt/sbsigntools for binary signing for use with SecureBoot"
+ elog " sys-boot/efibootmgr for writing to NVRAM"
+ elog " sys-apps/gptfdisk for ESP management"
+ elog ""
+ elog "refind-mkdefault requires >=dev-lang/python-3"
+ elog ""
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog "A sample configuration can be found at"
+ elog "${EROOT}/usr/$(get_libdir)/${PN}/refind/refind.conf-sample"
+ else
+ if ver_test "${REPLACING_VERSIONS}" -lt "0.12.0"; then
+ ewarn "This new version uses sys-apps/gptfdisk instead of sys-block/parted"
+ ewarn "to manage ESP"
+ ewarn ""
+ fi
+ ewarn "Note that this installation will not update any EFI binaries"
+ ewarn "on your EFI System Partition - this needs to be done manually"
+ fi
+}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2021-12-07 6:26 Agostino Sarubbo
0 siblings, 0 replies; 57+ messages in thread
From: Agostino Sarubbo @ 2021-12-07 6:26 UTC (permalink / raw
To: gentoo-commits
commit: 015afd59a96d6e8d827d4a33fbe3f5221c640baf
Author: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 7 06:25:28 2021 +0000
Commit: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
CommitDate: Tue Dec 7 06:25:28 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=015afd59
sys-boot/refind: x86 stable wrt bug #824786
Package-Manager: Portage-3.0.20, Repoman-3.0.3
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org>
sys-boot/refind/refind-0.13.2.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-boot/refind/refind-0.13.2.ebuild b/sys-boot/refind/refind-0.13.2.ebuild
index 375df447651c..68c1950f9e8c 100644
--- a/sys-boot/refind/refind-0.13.2.ebuild
+++ b/sys-boot/refind/refind-0.13.2.ebuild
@@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
SLOT="0"
-KEYWORDS="amd64 ~x86"
+KEYWORDS="amd64 x86"
FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
IUSE="${FS_USE} custom-cflags doc"
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2021-12-05 22:04 Sam James
0 siblings, 0 replies; 57+ messages in thread
From: Sam James @ 2021-12-05 22:04 UTC (permalink / raw
To: gentoo-commits
commit: 233ed6cb84e2e5ca7139127128d49d44a6a00370
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 5 22:03:48 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Dec 5 22:03:48 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=233ed6cb
sys-boot/refind: Stabilize 0.13.2 amd64, #824786
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-boot/refind/refind-0.13.2.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-boot/refind/refind-0.13.2.ebuild b/sys-boot/refind/refind-0.13.2.ebuild
index ce3ba933229e..375df447651c 100644
--- a/sys-boot/refind/refind-0.13.2.ebuild
+++ b/sys-boot/refind/refind-0.13.2.ebuild
@@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="amd64 ~x86"
FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
IUSE="${FS_USE} custom-cflags doc"
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2021-03-23 9:21 Joonas Niilola
0 siblings, 0 replies; 57+ messages in thread
From: Joonas Niilola @ 2021-03-23 9:21 UTC (permalink / raw
To: gentoo-commits
commit: 1f1d9112eae5020999fec2a7d6a24491b1ba59e4
Author: Stéphane Veyret <stephane <AT> neptura <DOT> org>
AuthorDate: Sun Mar 21 09:36:05 2021 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Mar 23 09:21:07 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f1d9112
sys-boot/refind: version bump to 0.13.2
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Stéphane Veyret <stephane <AT> neptura.org>
Closes: https://bugs.gentoo.org/771912
Closes: https://github.com/gentoo/gentoo/pull/20026
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
sys-boot/refind/Manifest | 1 +
sys-boot/refind/refind-0.13.2.ebuild | 140 +++++++++++++++++++++++++++++++++++
2 files changed, 141 insertions(+)
diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest
index 698924ad273..99f58f7bb05 100644
--- a/sys-boot/refind/Manifest
+++ b/sys-boot/refind/Manifest
@@ -1,2 +1,3 @@
DIST refind-src-0.11.4.tar.gz 3812192 BLAKE2B 7219eeffffb63961a7ba8f7617546a12021cfe80df80a83c4dbd47cd40b0d8afbdc510abb44de3029ff15ed49372bd59e0b156f4c27eab3ef7bd6ccc3c7e02db SHA512 529962ae432edaf1895ba98deb00a23c66bd742578e1a367f70f7ed22dd7be7daf1960df8af410fba79ca775169120499a4c10119331b2b12b55a002d4354de1
DIST refind-src-0.12.0.tar.gz 3898337 BLAKE2B 1197049fb7d91db64135dafda7488bdb1da4997ce6a6d49dfe635526240e3193d8c7c22597aee0f2d6754ce6061b4127d8aa21d43c9f061501de98e25de609d3 SHA512 3ade9642d7acf31097daa5308acb96a9fa3371314073b5a09601a886fc30444752efa08ed9fb35e421efb0b4eb9efbccd7b5c9bd6b3b9ed4af74c58f22a74729
+DIST refind-src-0.13.2.tar.gz 4554759 BLAKE2B 2c3b1daf5fa100dcd4e1c801aa625e269ae9c1a99b567a271d7cdd30f95fa1e041e22984623b9a0e61f8af45966919f4b9f3a5b6c2026271d1bc37c6925f1e70 SHA512 e671d44385297295c143824dd95593f2e7bc8e282745d127b041a645aa27003467a3a23f368fd30297f33faa06bd914540d7bdc3c71ec42f6b7a38d7ee8e0ddb
diff --git a/sys-boot/refind/refind-0.13.2.ebuild b/sys-boot/refind/refind-0.13.2.ebuild
new file mode 100644
index 00000000000..6ac73e61dca
--- /dev/null
+++ b/sys-boot/refind/refind-0.13.2.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multiprocessing toolchain-funcs
+
+DESCRIPTION="The UEFI Boot Manager by Rod Smith"
+HOMEPAGE="https://www.rodsbooks.com/refind/"
+SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
+
+LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
+IUSE="${FS_USE} custom-cflags doc"
+
+DEPEND="sys-boot/gnu-efi"
+
+DOCS=( README.txt )
+
+pkg_pretend() {
+ if use custom-cflags; then
+ ewarn
+ ewarn "You have enabled building with USE=custom-cflags. Be aware that"
+ ewarn "using this can result in EFI binaries that fail to run and may"
+ ewarn "fail to build at all. This is strongly advised against by upstream."
+ ewarn
+ ewarn "See https://bugs.gentoo.org/598587#c3 for more information"
+ ewarn
+ fi
+}
+
+pkg_setup() {
+ if use x86; then
+ export EFIARCH=ia32
+ export BUILDARCH=ia32
+ elif use amd64; then
+ export EFIARCH=x64
+ export BUILDARCH=x86_64
+ fi
+}
+
+src_prepare() {
+ default
+
+ # bug 598647 - PIE not supported
+ sed -e '/^CFLAGS/s/$/ -fno-PIE/' -i Make.common || die
+ sed -e '1 i\.NOTPARALLEL:' -i filesystems/Makefile || die
+}
+
+src_compile() {
+ # Update fs targets depending on uses
+ local fs fs_names=()
+ for fs in ${FS_USE}; do
+ fs=${fs#+}
+ if use "${fs}"; then
+ fs_names+=(${fs})
+ fi
+ done
+ fs_names=("${fs_names[@]/%/_gnuefi}")
+
+ # Prepare flags
+ local make_flags=(
+ ARCH="${BUILDARCH}"
+ CC="$(tc-getCC)"
+ AS="$(tc-getAS)"
+ LD="$(tc-getLD)"
+ AR="$(tc-getAR)"
+ RANLIB="$(tc-getRANLIB)"
+ OBJCOPY="$(tc-getOBJCOPY)"
+ GNUEFILIB="/usr/$(get_libdir)"
+ EFILIB="/usr/$(get_libdir)"
+ EFICRT0="/usr/$(get_libdir)"
+ FILESYSTEMS="${fs_names[*]}"
+ FILESYSTEMS_GNUEFI="${fs_names[*]}"
+ )
+ if use custom-cflags; then
+ make_flags=(CFLAGS="${CFLAGS} -fno-tree-loop-distribute-patterns" "${make_flags[@]}")
+ fi
+
+ emake "${make_flags[@]}" all_gnuefi
+}
+
+src_install() {
+ exeinto "/usr/$(get_libdir)/${PN}"
+ doexe refind-install
+ dosym "../$(get_libdir)/${PN}/refind-install" "/usr/sbin/refind-install"
+
+ if use doc; then
+ doman "docs/man/"*
+ DOCS+=(NEWS.txt docs/refind docs/Styles)
+ fi
+ einstalldocs
+
+ insinto "/usr/$(get_libdir)/${PN}/refind"
+ doins "refind/refind_${EFIARCH}.efi"
+ doins "refind.conf-sample"
+ doins -r images icons fonts banners
+
+ if [[ -d "drivers_${EFIARCH}" ]]; then
+ doins -r "drivers_${EFIARCH}"
+ fi
+
+ insinto "/usr/$(get_libdir)/${PN}/refind/tools_${EFIARCH}"
+ doins "gptsync/gptsync_${EFIARCH}.efi"
+
+ insinto "/etc/refind.d"
+ doins -r "keys"
+
+ dosbin "mkrlconf"
+ dosbin "mvrefind"
+ dosbin "refind-mkdefault"
+}
+
+pkg_postinst() {
+ elog "rEFInd has been built and installed into ${EROOT}/usr/$(get_libdir)/${PN}"
+ elog "You will need to use the command 'refind-install' to install"
+ elog "the binaries into your EFI System Partition"
+ elog ""
+ elog "refind-install requires additional packages to be fully functional:"
+ elog " app-crypt/sbsigntools for binary signing for use with SecureBoot"
+ elog " sys-boot/efibootmgr for writing to NVRAM"
+ elog " sys-apps/gptfdisk for ESP management"
+ elog ""
+ elog "refind-mkdefault requires >=dev-lang/python-3"
+ elog ""
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog "A sample configuration can be found at"
+ elog "${EROOT}/usr/$(get_libdir)/${PN}/refind/refind.conf-sample"
+ else
+ if ver_test "${REPLACING_VERSIONS}" -lt "0.12.0"; then
+ ewarn "This new version uses sys-apps/gptfdisk instead of sys-block/parted"
+ ewarn "to manage ESP"
+ ewarn ""
+ fi
+ ewarn "Note that this installation will not update any EFI binaries"
+ ewarn "on your EFI System Partition - this needs to be done manually"
+ fi
+}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2021-01-20 9:29 Sam James
0 siblings, 0 replies; 57+ messages in thread
From: Sam James @ 2021-01-20 9:29 UTC (permalink / raw
To: gentoo-commits
commit: 3c42e42fdaceea2263e1bc92dc196068fa1e695b
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 20 09:28:57 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan 20 09:28:57 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c42e42f
sys-boot/refind: Stabilize 0.12.0-r1 x86, #762913
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-boot/refind/refind-0.12.0-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-boot/refind/refind-0.12.0-r1.ebuild b/sys-boot/refind/refind-0.12.0-r1.ebuild
index 19bfa806fd5..39004c2d009 100644
--- a/sys-boot/refind/refind-0.12.0-r1.ebuild
+++ b/sys-boot/refind/refind-0.12.0-r1.ebuild
@@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
SLOT="0"
-KEYWORDS="amd64 ~x86"
+KEYWORDS="amd64 x86"
FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
IUSE="${FS_USE} custom-cflags doc"
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2021-01-19 14:24 Sam James
0 siblings, 0 replies; 57+ messages in thread
From: Sam James @ 2021-01-19 14:24 UTC (permalink / raw
To: gentoo-commits
commit: f43d3f40ecc816a71760c870db3f900aed653864
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 19 14:24:40 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jan 19 14:24:40 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f43d3f40
sys-boot/refind: Stabilize 0.12.0-r1 amd64, #762913
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-boot/refind/refind-0.12.0-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-boot/refind/refind-0.12.0-r1.ebuild b/sys-boot/refind/refind-0.12.0-r1.ebuild
index c1d166f0b4d..19bfa806fd5 100644
--- a/sys-boot/refind/refind-0.12.0-r1.ebuild
+++ b/sys-boot/refind/refind-0.12.0-r1.ebuild
@@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="amd64 ~x86"
FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
IUSE="${FS_USE} custom-cflags doc"
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2021-01-10 18:30 Sam James
0 siblings, 0 replies; 57+ messages in thread
From: Sam James @ 2021-01-10 18:30 UTC (permalink / raw
To: gentoo-commits
commit: 8ea14599e99ef09450ea4abd40a1a4de598ce109
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 10 18:29:50 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 10 18:30:00 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ea14599
sys-boot/refind: fix build with Bash 5.1
Reported-by: Greg Turner <gmt <AT> be-evil.net>
Closes: https://bugs.gentoo.org/762379
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-boot/refind/refind-0.11.4.ebuild | 8 ++++----
sys-boot/refind/refind-0.12.0-r1.ebuild | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/sys-boot/refind/refind-0.11.4.ebuild b/sys-boot/refind/refind-0.11.4.ebuild
index 139bf622501..37ad051eba4 100644
--- a/sys-boot/refind/refind-0.11.4.ebuild
+++ b/sys-boot/refind/refind-0.11.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -99,9 +99,9 @@ src_compile() {
EFILIB="/usr/$(get_libdir)"
EFICRT0="/usr/$(get_libdir)"
EDK2BASE="${UDK_WORKSPACE}"
- EDK2_DRIVER_BASENAMES="${fs_names[@]}"
- FILESYSTEMS="${fs_names[@]}"
- FILESYSTEMS_GNUEFI="${fs_names[@]}"
+ EDK2_DRIVER_BASENAMES="${fs_names[*]}"
+ FILESYSTEMS="${fs_names[*]}"
+ FILESYSTEMS_GNUEFI="${fs_names[*]}"
)
if use custom-cflags; then
make_flags=(CFLAGS="${CFLAGS}" "${make_flags[@]}")
diff --git a/sys-boot/refind/refind-0.12.0-r1.ebuild b/sys-boot/refind/refind-0.12.0-r1.ebuild
index f63a0cbd324..c1d166f0b4d 100644
--- a/sys-boot/refind/refind-0.12.0-r1.ebuild
+++ b/sys-boot/refind/refind-0.12.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -77,9 +77,9 @@ src_compile() {
EFILIB="/usr/$(get_libdir)"
EFICRT0="/usr/$(get_libdir)"
EDK2BASE="${UDK_WORKSPACE}"
- EDK2_DRIVER_BASENAMES="${fs_names[@]}"
- FILESYSTEMS="${fs_names[@]}"
- FILESYSTEMS_GNUEFI="${fs_names[@]}"
+ EDK2_DRIVER_BASENAMES="${fs_names[*]}"
+ FILESYSTEMS="${fs_names[*]}"
+ FILESYSTEMS_GNUEFI="${fs_names[*]}"
)
if use custom-cflags; then
make_flags=(CFLAGS="${CFLAGS} -fno-tree-loop-distribute-patterns" "${make_flags[@]}")
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2020-12-07 7:36 Joonas Niilola
0 siblings, 0 replies; 57+ messages in thread
From: Joonas Niilola @ 2020-12-07 7:36 UTC (permalink / raw
To: gentoo-commits
commit: dedfa2346704558dca52c69d65c96adecd932f85
Author: Theo Anderson <telans <AT> posteo <DOT> de>
AuthorDate: Fri Nov 27 10:51:25 2020 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Dec 7 07:30:20 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dedfa234
sys-boot/refind: drop old
Package-Manager: Portage-3.0.10, Repoman-3.0.2
Signed-off-by: Theo Anderson <telans <AT> posteo.de>
Closes: https://github.com/gentoo/gentoo/pull/18426
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
sys-boot/refind/refind-0.12.0.ebuild | 168 -----------------------------------
1 file changed, 168 deletions(-)
diff --git a/sys-boot/refind/refind-0.12.0.ebuild b/sys-boot/refind/refind-0.12.0.ebuild
deleted file mode 100644
index 9091a88cfcb..00000000000
--- a/sys-boot/refind/refind-0.12.0.ebuild
+++ /dev/null
@@ -1,168 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit multiprocessing toolchain-funcs
-
-DESCRIPTION="The UEFI Boot Manager by Rod Smith"
-HOMEPAGE="https://www.rodsbooks.com/refind/"
-SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
-
-LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
-IUSE="${FS_USE} custom-cflags doc gnuefi"
-
-DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
- !gnuefi? ( >=sys-boot/udk-2018-r1 )"
-
-DOCS=(README.txt)
-PATCHES=("${FILESDIR}/makefile.patch")
-UDK_WORKSPACE="${T}/udk"
-
-pkg_pretend() {
- if use custom-cflags; then
- ewarn
- ewarn "You have enabled building with USE=custom-cflags. Be aware that"
- ewarn "using this can result in EFI binaries that fail to run and may"
- ewarn "fail to build at all. This is strongly advised against by upstream."
- ewarn
- ewarn "See https://bugs.gentoo.org/598587#c3 for more information"
- ewarn
- fi
-}
-
-pkg_setup() {
- if use x86; then
- export EFIARCH=ia32
- export BUILDARCH=ia32
- elif use amd64; then
- export EFIARCH=x64
- export BUILDARCH=x86_64
- fi
-}
-
-src_prepare() {
- default
-
- # bug 598647 - PIE not supported
- sed -e '/^CFLAGS/s:$: -fno-PIE:' -i Make.common || die
-
- # Prepare UDK workspace
- if ! use gnuefi; then
- mkdir "${UDK_WORKSPACE}" || die
- ln -s "${EPREFIX}/usr/lib/udk/"{Mde,IntelFramework}{,Module}Pkg \
- "${UDK_WORKSPACE}" || die "Could not link UDK files"
- fi
-}
-
-src_configure() {
- if ! use gnuefi; then
- # Use the side effect of the script which will create configuration files
- (. udk-workspace "${UDK_WORKSPACE}" || die)
- sed -e "s:^#\?\s*\(MAX_CONCURRENT_THREAD_NUMBER\s*=\).*$:\1 $(makeopts_jobs):" \
- -i "${UDK_WORKSPACE}/Conf/target.txt" || die "Failed to configure target file"
- sed -e "s:\(_\(CC\|ASM\|PP\|VFRPP\|ASLCC\|ASLPP\|DLINK\)_PATH\s*=\).*$:\1 $(tc-getCC):" \
- -e "s:\(_ASLDLINK_PATH\s*=\).*$:\1 $(tc-getLD):" \
- -e "s:\(_OBJCOPY_PATH\s*=\).*$:\1 $(tc-getOBJCOPY):" \
- -e "s:\(_RC_PATH\s*=\).*$:\1 $(tc-getOBJCOPY):" \
- -e "s:\(_SLINK_PATH\s*=\).*$:\1 $(tc-getAR):" \
- -e "s:-Werror::" \
- -i "${UDK_WORKSPACE}/Conf/tools_def.txt" \
- || die "Failed to prepare tools definition file"
- fi
-}
-
-src_compile() {
- # Update fs targets depending on uses
- local fs fs_names=()
- for fs in ${FS_USE}; do
- fs=${fs#+}
- if use "${fs}"; then
- fs_names+=(${fs})
- fi
- done
- use gnuefi && fs_names=("${fs_names[@]/%/_gnuefi}")
-
- # Prepare flags
- local make_flags=(
- ARCH="${BUILDARCH}"
- CC="$(tc-getCC)"
- AS="$(tc-getAS)"
- LD="$(tc-getLD)"
- AR="$(tc-getAR)"
- RANLIB="$(tc-getRANLIB)"
- OBJCOPY="$(tc-getOBJCOPY)"
- GNUEFILIB="/usr/$(get_libdir)"
- EFILIB="/usr/$(get_libdir)"
- EFICRT0="/usr/$(get_libdir)"
- EDK2BASE="${UDK_WORKSPACE}"
- EDK2_DRIVER_BASENAMES="${fs_names[@]}"
- FILESYSTEMS="${fs_names[@]}"
- FILESYSTEMS_GNUEFI="${fs_names[@]}"
- )
- if use custom-cflags; then
- make_flags=(CFLAGS="${CFLAGS}" "${make_flags[@]}")
- fi
-
- emake "${make_flags[@]}" all_$(usex gnuefi gnuefi edk2)
-}
-
-src_install() {
- exeinto "/usr/lib/${PN}"
- doexe refind-install
- dosym "../lib/${PN}/refind-install" "/usr/sbin/refind-install"
-
- if use doc; then
- doman "docs/man/"*
- DOCS+=(NEWS.txt docs/refind docs/Styles)
- fi
- einstalldocs
-
- insinto "/usr/lib/${PN}/refind"
- doins "refind/refind_${EFIARCH}.efi"
- doins "refind.conf-sample"
- doins -r images icons fonts banners
-
- if [[ -d "drivers_${EFIARCH}" ]]; then
- doins -r "drivers_${EFIARCH}"
- fi
-
- insinto "/usr/lib/${PN}/refind/tools_${EFIARCH}"
- doins "gptsync/gptsync_${EFIARCH}.efi"
-
- insinto "/etc/refind.d"
- doins -r "keys"
-
- dosbin "mkrlconf"
- dosbin "mvrefind"
- dosbin "refind-mkdefault"
-}
-
-pkg_postinst() {
- elog "rEFInd has been built and installed into ${EROOT}/usr/lib/${PN}"
- elog "You will need to use the command 'refind-install' to install"
- elog "the binaries into your EFI System Partition"
- elog ""
- elog "refind-install requires additional packages to be fully functional:"
- elog " app-crypt/sbsigntools for binary signing for use with SecureBoot"
- elog " sys-boot/efibootmgr for writing to NVRAM"
- elog " sys-apps/gptfdisk for ESP management"
- elog ""
- elog "refind-mkdefault requires >=dev-lang/python-3"
- elog ""
- if [[ -z "${REPLACING_VERSIONS}" ]]; then
- elog "A sample configuration can be found at"
- elog "${EROOT}/usr/lib/${PN}/refind/refind.conf-sample"
- else
- if ver_test "${REPLACING_VERSIONS}" -lt "0.12.0"; then
- ewarn "This new version uses sys-apps/gptfdisk instead of sys-block/parted"
- ewarn "to manage ESP"
- ewarn ""
- fi
- ewarn "Note that this installation will not update any EFI binaries"
- ewarn "on your EFI System Partition - this needs to be done manually"
- fi
-}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2020-07-30 21:12 Marek Szuba
0 siblings, 0 replies; 57+ messages in thread
From: Marek Szuba @ 2020-07-30 21:12 UTC (permalink / raw
To: gentoo-commits
commit: a940ef1ee145a02b22243b17eb02f79f6eaa484c
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 30 20:54:20 2020 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Thu Jul 30 21:11:48 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a940ef1e
sys-boot/refind: remove dependency on sys-boot/udk
UDK is py2-only and will likely be removed from Gentoo soon. In fact, it
already got temporarily last-rited earlier on this week - and rEFInd
along with it. Given we have been forcing USE=gnuefi for sys-boot/refind
for years anyway, just make the gnu-efi dependency mandatory.
Note that the use.force entry for USE=gnuefi is still there due to the
fact most rEFInd versions in the tree still honour that flag, plus I
want to make this change as minimally intrusive as possible.
With apologies to the current maintainer should they get upset about
this change having been made without them having okayed it, it's about
making sure sys-boot/refind does not get last-rited again.
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
sys-boot/refind/refind-0.12.0-r1.ebuild | 142 ++++++++++++++++++++++++++++++++
1 file changed, 142 insertions(+)
diff --git a/sys-boot/refind/refind-0.12.0-r1.ebuild b/sys-boot/refind/refind-0.12.0-r1.ebuild
new file mode 100644
index 00000000000..b595a111e7e
--- /dev/null
+++ b/sys-boot/refind/refind-0.12.0-r1.ebuild
@@ -0,0 +1,142 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multiprocessing toolchain-funcs
+
+DESCRIPTION="The UEFI Boot Manager by Rod Smith"
+HOMEPAGE="https://www.rodsbooks.com/refind/"
+SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
+
+LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
+IUSE="${FS_USE} custom-cflags doc"
+
+DEPEND=">=sys-boot/gnu-efi-3.0.2"
+
+DOCS=(README.txt)
+PATCHES=("${FILESDIR}/makefile.patch")
+
+pkg_pretend() {
+ if use custom-cflags; then
+ ewarn
+ ewarn "You have enabled building with USE=custom-cflags. Be aware that"
+ ewarn "using this can result in EFI binaries that fail to run and may"
+ ewarn "fail to build at all. This is strongly advised against by upstream."
+ ewarn
+ ewarn "See https://bugs.gentoo.org/598587#c3 for more information"
+ ewarn
+ fi
+}
+
+pkg_setup() {
+ if use x86; then
+ export EFIARCH=ia32
+ export BUILDARCH=ia32
+ elif use amd64; then
+ export EFIARCH=x64
+ export BUILDARCH=x86_64
+ fi
+}
+
+src_prepare() {
+ default
+
+ # bug 598647 - PIE not supported
+ sed -e '/^CFLAGS/s:$: -fno-PIE:' -i Make.common || die
+}
+
+src_compile() {
+ # Update fs targets depending on uses
+ local fs fs_names=()
+ for fs in ${FS_USE}; do
+ fs=${fs#+}
+ if use "${fs}"; then
+ fs_names+=(${fs})
+ fi
+ done
+ fs_names=("${fs_names[@]/%/_gnuefi}")
+
+ # Prepare flags
+ local make_flags=(
+ ARCH="${BUILDARCH}"
+ CC="$(tc-getCC)"
+ AS="$(tc-getAS)"
+ LD="$(tc-getLD)"
+ AR="$(tc-getAR)"
+ RANLIB="$(tc-getRANLIB)"
+ OBJCOPY="$(tc-getOBJCOPY)"
+ GNUEFILIB="/usr/$(get_libdir)"
+ EFILIB="/usr/$(get_libdir)"
+ EFICRT0="/usr/$(get_libdir)"
+ EDK2BASE="${UDK_WORKSPACE}"
+ EDK2_DRIVER_BASENAMES="${fs_names[@]}"
+ FILESYSTEMS="${fs_names[@]}"
+ FILESYSTEMS_GNUEFI="${fs_names[@]}"
+ )
+ if use custom-cflags; then
+ make_flags=(CFLAGS="${CFLAGS}" "${make_flags[@]}")
+ fi
+
+ emake "${make_flags[@]}" all_gnuefi
+}
+
+src_install() {
+ exeinto "/usr/lib/${PN}"
+ doexe refind-install
+ dosym "../lib/${PN}/refind-install" "/usr/sbin/refind-install"
+
+ if use doc; then
+ doman "docs/man/"*
+ DOCS+=(NEWS.txt docs/refind docs/Styles)
+ fi
+ einstalldocs
+
+ insinto "/usr/lib/${PN}/refind"
+ doins "refind/refind_${EFIARCH}.efi"
+ doins "refind.conf-sample"
+ doins -r images icons fonts banners
+
+ if [[ -d "drivers_${EFIARCH}" ]]; then
+ doins -r "drivers_${EFIARCH}"
+ fi
+
+ insinto "/usr/lib/${PN}/refind/tools_${EFIARCH}"
+ doins "gptsync/gptsync_${EFIARCH}.efi"
+
+ insinto "/etc/refind.d"
+ doins -r "keys"
+
+ dosbin "mkrlconf"
+ dosbin "mvrefind"
+ dosbin "refind-mkdefault"
+}
+
+pkg_postinst() {
+ elog "rEFInd has been built and installed into ${EROOT}/usr/lib/${PN}"
+ elog "You will need to use the command 'refind-install' to install"
+ elog "the binaries into your EFI System Partition"
+ elog ""
+ elog "refind-install requires additional packages to be fully functional:"
+ elog " app-crypt/sbsigntools for binary signing for use with SecureBoot"
+ elog " sys-boot/efibootmgr for writing to NVRAM"
+ elog " sys-apps/gptfdisk for ESP management"
+ elog ""
+ elog "refind-mkdefault requires >=dev-lang/python-3"
+ elog ""
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog "A sample configuration can be found at"
+ elog "${EROOT}/usr/lib/${PN}/refind/refind.conf-sample"
+ else
+ if ver_test "${REPLACING_VERSIONS}" -lt "0.12.0"; then
+ ewarn "This new version uses sys-apps/gptfdisk instead of sys-block/parted"
+ ewarn "to manage ESP"
+ ewarn ""
+ fi
+ ewarn "Note that this installation will not update any EFI binaries"
+ ewarn "on your EFI System Partition - this needs to be done manually"
+ fi
+}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2020-04-30 12:00 Joonas Niilola
0 siblings, 0 replies; 57+ messages in thread
From: Joonas Niilola @ 2020-04-30 12:00 UTC (permalink / raw
To: gentoo-commits
commit: d55a469ceb7854008f9b9a5c9f49b71c604a7f8e
Author: Stéphane Veyret <stephane <AT> neptura <DOT> org>
AuthorDate: Wed Apr 29 19:21:54 2020 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Apr 30 11:59:56 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d55a469c
sys-boot/refind: Remove old versions
Signed-off-by: Stéphane Veyret <stephane <AT> neptura.org>
Closes: https://github.com/gentoo/gentoo/pull/15570
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
sys-boot/refind/Manifest | 3 -
sys-boot/refind/refind-0.10.4-r2.ebuild | 197 -------------------------------
sys-boot/refind/refind-0.11.2.ebuild | 200 --------------------------------
sys-boot/refind/refind-0.11.3.ebuild | 200 --------------------------------
4 files changed, 600 deletions(-)
diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest
index bf2e5d87e50..698924ad273 100644
--- a/sys-boot/refind/Manifest
+++ b/sys-boot/refind/Manifest
@@ -1,5 +1,2 @@
-DIST refind-src-0.10.4.tar.gz 3970380 BLAKE2B 0d14c005d3e93a1f0008b6c65e34eb6391c4a4a488b4fa7842c8f0b68eb2cc5be150c8718f01a65454db7b86ffa5873a3d1a96429eaed0cb92c1d29c8d2f7dcd SHA512 a75a6210ee51427c474e69c2de8c719545b2599c19f1c7541048b77ab1996a0e4b4b5fd4840f6240cd6704e5f5338cbaff432d7dc5ec4042854e26d6df18bed5
-DIST refind-src-0.11.2.tar.gz 4533034 BLAKE2B fa05781fc1d87d314677f8e670bd7282b591fd3b6f4a5863e81cb962fdb773c774faabb6c45544b0659c8d5c4ef7ce1dba8d798a4caa97364ad7aa2532a42050 SHA512 796d86f05152d93340773c2dfbae0ca50ab036373ebed60fcc80404ee269ef4bc100df4b141d555d3363b820c3e9234fc0cf637791061281c86329958dca3479
-DIST refind-src-0.11.3.tar.gz 3792206 BLAKE2B 369b25dbc97d83f9143ccbe19e89b5975f0796f1e4a2decfc124e4b45c5ef1db8f3e2bb83413f596ca28e82e67b0b9c5682b557a5422e3146780cec151d2a36e SHA512 96907b79e1c9c8199c62058bb6851fa5d6f158802f3777ba19a62c6c0d7d5b49132754bcafa925510fd21c8bafe8ce393117070a628baf4c277fa5f8f536b797
DIST refind-src-0.11.4.tar.gz 3812192 BLAKE2B 7219eeffffb63961a7ba8f7617546a12021cfe80df80a83c4dbd47cd40b0d8afbdc510abb44de3029ff15ed49372bd59e0b156f4c27eab3ef7bd6ccc3c7e02db SHA512 529962ae432edaf1895ba98deb00a23c66bd742578e1a367f70f7ed22dd7be7daf1960df8af410fba79ca775169120499a4c10119331b2b12b55a002d4354de1
DIST refind-src-0.12.0.tar.gz 3898337 BLAKE2B 1197049fb7d91db64135dafda7488bdb1da4997ce6a6d49dfe635526240e3193d8c7c22597aee0f2d6754ce6061b4127d8aa21d43c9f061501de98e25de609d3 SHA512 3ade9642d7acf31097daa5308acb96a9fa3371314073b5a09601a886fc30444752efa08ed9fb35e421efb0b4eb9efbccd7b5c9bd6b3b9ed4af74c58f22a74729
diff --git a/sys-boot/refind/refind-0.10.4-r2.ebuild b/sys-boot/refind/refind-0.10.4-r2.ebuild
deleted file mode 100644
index 349f17cfc64..00000000000
--- a/sys-boot/refind/refind-0.10.4-r2.ebuild
+++ /dev/null
@@ -1,197 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit toolchain-funcs flag-o-matic versionator
-
-DESCRIPTION="The UEFI Boot Manager by Rod Smith"
-HOMEPAGE="https://www.rodsbooks.com/refind/"
-
-SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
-
-LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
-SLOT="0"
-KEYWORDS="amd64 x86"
-FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
-IUSE="${FS_USE} -gnuefi doc -custom-cflags"
-
-DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
- !gnuefi? ( >=sys-boot/udk-2015 )"
-
-DOCS="NEWS.txt README.txt docs/refind docs/Styles"
-
-pkg_pretend() {
- if use custom-cflags; then
- ewarn
- ewarn "You have enabled building with USE=custom-cflags. Be aware that"
- ewarn "using this can result in EFI binaries that fail to run and may"
- ewarn "fail to build at all. This is strongly advised against by upstream."
- ewarn
- ewarn "See https://bugs.gentoo.org/598587#c3 for more information"
- ewarn
- fi
-}
-
-pkg_setup() {
- if use x86 ; then
- export EFIARCH=ia32
- export BUILDARCH=ia32
- elif use amd64; then
- export EFIARCH=x64
- export BUILDARCH=x86_64
- else
- # Try to support anyway
- export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
- if [[ ${BUILDARCH} == "x86_64" ]] ; then
- export EFIARCH=x64
- else
- export EFIARCH=${ARCH}
- fi
- fi
-}
-
-src_prepare() {
- default
-
- # bug 598647 - PIE not supported
- sed -e 's:CFLAGS =:& -fno-PIE:' -i "${S}/Make.common" || die
-
- local f
- for f in "${S}"/*/Make.tiano "${S}"/Make.common; do
- sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \
- -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \
- -e '/^\s*-I \$(EDK2BASE).*$/d' \
- "${f}" || die "Failed to patch Tianocore make file in" \
- $(basename $(dirname ${f}))
- done
- for f in "${S}"/*/Make.tiano; do
- sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \
- -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \
- -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \
- "${f}" || die "Failed to patch Tianocore make file in" \
- $(basename $(dirname ${f}))
- done
- sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \
- || die "Failed to patch AutoGen.c"
- for f in "${S}"/*/AutoGen.c; do
- cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c"
-
- #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U
- #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4
- #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel
- #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU
- GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel;
- extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel;
- #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
- //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD
- EOF
- done
-}
-
-src_compile() {
- # Prepare flags
- local pecoff_header_size
- [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \
- || pecoff_header_size='0x220'
- local make_flags=(
- ARCH="${BUILDARCH}"
- GENFW="/usr/bin/GenFw"
- CC="$(tc-getCC)"
- AS="$(tc-getAS)"
- LD="$(tc-getLD)"
- AR="$(tc-getAR)"
- RANLIB="$(tc-getRANLIB)"
- OBJCOPY="$(tc-getOBJCOPY)"
- GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
- -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs"
- TIANO_LDSCRIPT="/usr/lib/GccBase.lds"
- TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \
- --script=\$(TIANO_LDSCRIPT) \
- --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \
- --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)"
- )
-
- # Make main EFI
- local all_target
- use gnuefi && all_target="gnuefi" || all_target="tiano"
-
- if use custom-cflags; then
- emake CFLAGS="${CFLAGS}" "${make_flags[@]}" ${all_target}
- else
- emake "${make_flags[@]}" ${all_target}
- fi
-
- # Make filesystem drivers
- local gnuefi_target
- use gnuefi && gnuefi_target="_gnuefi"
- local fs
- for fs in ${FS_USE}; do
- fs=${fs#+}
- if use "${fs}"; then
- einfo "Building ${fs} filesystem driver"
- if use custom-cflags; then
- emake CFLAGS="${CFLAGS}" "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
- else
- emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
- fi
- fi
- done
-}
-
-src_install() {
- exeinto "/usr/share/${P}"
- doexe refind-install
- dosym "/usr/share/${P}/refind-install" "/usr/sbin/refind-install"
-
- dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
- if use doc; then
- doman "${S}/docs/man/"*
- dodoc -r ${DOCS}
- fi
-
- insinto "/usr/share/${P}/refind"
- doins "${S}/refind/refind_${EFIARCH}.efi"
- doins "${S}/refind.conf-sample"
- doins -r images icons fonts banners
-
- if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
- doins -r "${S}/drivers_${EFIARCH}"
- fi
-
- insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
- doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
-
- insinto "/etc/refind.d"
- doins -r "${S}/keys"
-
- dosbin "${S}/mkrlconf"
- dosbin "${S}/mvrefind"
- dosbin "${S}/refind-mkdefault"
-}
-
-pkg_postinst() {
- elog "rEFInd has been built and installed into ${EROOT%/}/usr/share/${P}"
- elog "You will need to use the command 'refind-install' to install"
- elog "the binaries into your EFI System Partition"
- elog ""
- if [[ -z "${REPLACING_VERSIONS}" ]]; then
- elog "refind-install requires additional packages to be fully functional:"
- elog " app-crypt/sbsigntools for binary signing for use with SecureBoot"
- elog " sys-boot/efibootmgr for writing to NVRAM"
- elog " sys-block/parted for automatic ESP location and mount"
- elog ""
- elog "refind-mkdefault requires >=dev-lang/python-3"
- elog ""
- elog "A sample configuration can be found at"
- elog "${EROOT%}/usr/share/${P}/refind/refind.conf-sample"
- else
- if ! version_is_at_least "0.10.3" "${REPLACING_VERSIONS}"; then
- elog "The new refind-mkdefault script requires >=dev-lang/python-3"
- elog "to be installed"
- elog ""
- fi
- ewarn "Note that this installation will not update any EFI binaries"
- ewarn "on your EFI System Partition - this needs to be done manually"
- fi
-}
diff --git a/sys-boot/refind/refind-0.11.2.ebuild b/sys-boot/refind/refind-0.11.2.ebuild
deleted file mode 100644
index 5987cc179ee..00000000000
--- a/sys-boot/refind/refind-0.11.2.ebuild
+++ /dev/null
@@ -1,200 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit toolchain-funcs flag-o-matic versionator
-
-DESCRIPTION="The UEFI Boot Manager by Rod Smith"
-HOMEPAGE="https://www.rodsbooks.com/refind/"
-
-SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
-
-LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
-IUSE="${FS_USE} -gnuefi doc -custom-cflags"
-
-DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
- !gnuefi? ( >=sys-boot/udk-2015 )"
-
-DOCS="NEWS.txt README.txt docs/refind docs/Styles"
-
-pkg_pretend() {
- if use custom-cflags; then
- ewarn
- ewarn "You have enabled building with USE=custom-cflags. Be aware that"
- ewarn "using this can result in EFI binaries that fail to run and may"
- ewarn "fail to build at all. This is strongly advised against by upstream."
- ewarn
- ewarn "See https://bugs.gentoo.org/598587#c3 for more information"
- ewarn
- fi
-}
-
-pkg_setup() {
- if use x86 ; then
- export EFIARCH=ia32
- export BUILDARCH=ia32
- elif use amd64; then
- export EFIARCH=x64
- export BUILDARCH=x86_64
- else
- # Try to support anyway
- export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
- if [[ ${BUILDARCH} == "x86_64" ]] ; then
- export EFIARCH=x64
- else
- export EFIARCH=${ARCH}
- fi
- fi
-}
-
-src_prepare() {
- default
-
- # bug 598647 - PIE not supported
- sed -e 's:CFLAGS =:& -fno-PIE:' -i "${S}/Make.common" || die
-
- local f
- for f in "${S}"/*/Make.tiano "${S}"/Make.common; do
- sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \
- -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \
- -e '/^\s*-I \$(EDK2BASE).*$/d' \
- "${f}" || die "Failed to patch Tianocore make file in" \
- $(basename $(dirname ${f}))
- done
- for f in "${S}"/*/Make.tiano; do
- sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \
- -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \
- -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \
- "${f}" || die "Failed to patch Tianocore make file in" \
- $(basename $(dirname ${f}))
- done
- sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \
- || die "Failed to patch AutoGen.c"
- for f in "${S}"/*/AutoGen.c; do
- cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c"
-
- #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U
- #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4
- #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel
- #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU
- GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel;
- extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel;
- #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
- //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD
- EOF
- done
-}
-
-src_compile() {
- # Prepare flags
- local pecoff_header_size
- [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \
- || pecoff_header_size='0x220'
- local make_flags=(
- ARCH="${BUILDARCH}"
- GENFW="/usr/bin/GenFw"
- CC="$(tc-getCC)"
- AS="$(tc-getAS)"
- LD="$(tc-getLD)"
- AR="$(tc-getAR)"
- GNUEFILIB="/usr/$(get_libdir)"
- EFILIB="/usr/$(get_libdir)"
- EFICRT0="/usr/$(get_libdir)"
- RANLIB="$(tc-getRANLIB)"
- OBJCOPY="$(tc-getOBJCOPY)"
- GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
- -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs"
- TIANO_LDSCRIPT="/usr/lib/GccBase.lds"
- TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \
- --script=\$(TIANO_LDSCRIPT) \
- --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \
- --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)"
- )
-
- # Make main EFI
- local all_target
- use gnuefi && all_target="gnuefi" || all_target="tiano"
-
- if use custom-cflags; then
- emake CFLAGS="${CFLAGS}" "${make_flags[@]}" ${all_target}
- else
- emake "${make_flags[@]}" ${all_target}
- fi
-
- # Make filesystem drivers
- local gnuefi_target
- use gnuefi && gnuefi_target="_gnuefi"
- local fs
- for fs in ${FS_USE}; do
- fs=${fs#+}
- if use "${fs}"; then
- einfo "Building ${fs} filesystem driver"
- if use custom-cflags; then
- emake CFLAGS="${CFLAGS}" "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
- else
- emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
- fi
- fi
- done
-}
-
-src_install() {
- exeinto "/usr/share/${P}"
- doexe refind-install
- dosym "../share/${P}/refind-install" "/usr/sbin/refind-install"
-
- dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
- if use doc; then
- doman "${S}/docs/man/"*
- dodoc -r ${DOCS}
- fi
-
- insinto "/usr/share/${P}/refind"
- doins "${S}/refind/refind_${EFIARCH}.efi"
- doins "${S}/refind.conf-sample"
- doins -r images icons fonts banners
-
- if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
- doins -r "${S}/drivers_${EFIARCH}"
- fi
-
- insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
- doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
-
- insinto "/etc/refind.d"
- doins -r "${S}/keys"
-
- dosbin "${S}/mkrlconf"
- dosbin "${S}/mvrefind"
- dosbin "${S}/refind-mkdefault"
-}
-
-pkg_postinst() {
- elog "rEFInd has been built and installed into ${EROOT%/}/usr/share/${P}"
- elog "You will need to use the command 'refind-install' to install"
- elog "the binaries into your EFI System Partition"
- elog ""
- if [[ -z "${REPLACING_VERSIONS}" ]]; then
- elog "refind-install requires additional packages to be fully functional:"
- elog " app-crypt/sbsigntools for binary signing for use with SecureBoot"
- elog " sys-boot/efibootmgr for writing to NVRAM"
- elog " sys-block/parted for automatic ESP location and mount"
- elog ""
- elog "refind-mkdefault requires >=dev-lang/python-3"
- elog ""
- elog "A sample configuration can be found at"
- elog "${EROOT%}/usr/share/${P}/refind/refind.conf-sample"
- else
- if ! version_is_at_least "0.10.3" "${REPLACING_VERSIONS}"; then
- elog "The new refind-mkdefault script requires >=dev-lang/python-3"
- elog "to be installed"
- elog ""
- fi
- ewarn "Note that this installation will not update any EFI binaries"
- ewarn "on your EFI System Partition - this needs to be done manually"
- fi
-}
diff --git a/sys-boot/refind/refind-0.11.3.ebuild b/sys-boot/refind/refind-0.11.3.ebuild
deleted file mode 100644
index 61fa6812831..00000000000
--- a/sys-boot/refind/refind-0.11.3.ebuild
+++ /dev/null
@@ -1,200 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit toolchain-funcs flag-o-matic eapi7-ver
-
-DESCRIPTION="The UEFI Boot Manager by Rod Smith"
-HOMEPAGE="https://www.rodsbooks.com/refind/"
-
-SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
-
-LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
-IUSE="${FS_USE} -gnuefi doc -custom-cflags"
-
-DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
- !gnuefi? ( >=sys-boot/udk-2015 )"
-
-DOCS="NEWS.txt README.txt docs/refind docs/Styles"
-
-pkg_pretend() {
- if use custom-cflags; then
- ewarn
- ewarn "You have enabled building with USE=custom-cflags. Be aware that"
- ewarn "using this can result in EFI binaries that fail to run and may"
- ewarn "fail to build at all. This is strongly advised against by upstream."
- ewarn
- ewarn "See https://bugs.gentoo.org/598587#c3 for more information"
- ewarn
- fi
-}
-
-pkg_setup() {
- if use x86 ; then
- export EFIARCH=ia32
- export BUILDARCH=ia32
- elif use amd64; then
- export EFIARCH=x64
- export BUILDARCH=x86_64
- else
- # Try to support anyway
- export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
- if [[ ${BUILDARCH} == "x86_64" ]] ; then
- export EFIARCH=x64
- else
- export EFIARCH=${ARCH}
- fi
- fi
-}
-
-src_prepare() {
- default
-
- # bug 598647 - PIE not supported
- sed -e 's:CFLAGS =:& -fno-PIE:' -i "${S}/Make.common" || die
-
- local f
- for f in "${S}"/*/Make.tiano "${S}"/Make.common; do
- sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \
- -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \
- -e '/^\s*-I \$(EDK2BASE).*$/d' \
- "${f}" || die "Failed to patch Tianocore make file in" \
- $(basename $(dirname ${f}))
- done
- for f in "${S}"/*/Make.tiano; do
- sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \
- -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \
- -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \
- "${f}" || die "Failed to patch Tianocore make file in" \
- $(basename $(dirname ${f}))
- done
- sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \
- || die "Failed to patch AutoGen.c"
- for f in "${S}"/*/AutoGen.c; do
- cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c"
-
- #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U
- #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4
- #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel
- #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU
- GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel;
- extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel;
- #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
- //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD
- EOF
- done
-}
-
-src_compile() {
- # Prepare flags
- local pecoff_header_size
- [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \
- || pecoff_header_size='0x220'
- local make_flags=(
- ARCH="${BUILDARCH}"
- GENFW="/usr/bin/GenFw"
- CC="$(tc-getCC)"
- AS="$(tc-getAS)"
- LD="$(tc-getLD)"
- AR="$(tc-getAR)"
- GNUEFILIB="/usr/$(get_libdir)"
- EFILIB="/usr/$(get_libdir)"
- EFICRT0="/usr/$(get_libdir)"
- RANLIB="$(tc-getRANLIB)"
- OBJCOPY="$(tc-getOBJCOPY)"
- GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
- -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs"
- TIANO_LDSCRIPT="/usr/lib/GccBase.lds"
- TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \
- --script=\$(TIANO_LDSCRIPT) \
- --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \
- --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)"
- )
-
- # Make main EFI
- local all_target
- use gnuefi && all_target="gnuefi" || all_target="tiano"
-
- if use custom-cflags; then
- emake CFLAGS="${CFLAGS}" "${make_flags[@]}" ${all_target}
- else
- emake "${make_flags[@]}" ${all_target}
- fi
-
- # Make filesystem drivers
- local gnuefi_target
- use gnuefi && gnuefi_target="_gnuefi"
- local fs
- for fs in ${FS_USE}; do
- fs=${fs#+}
- if use "${fs}"; then
- einfo "Building ${fs} filesystem driver"
- if use custom-cflags; then
- emake CFLAGS="${CFLAGS}" "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
- else
- emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
- fi
- fi
- done
-}
-
-src_install() {
- exeinto "/usr/share/${P}"
- doexe refind-install
- dosym "../share/${P}/refind-install" "/usr/sbin/refind-install"
-
- dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
- if use doc; then
- doman "${S}/docs/man/"*
- dodoc -r ${DOCS}
- fi
-
- insinto "/usr/share/${P}/refind"
- doins "${S}/refind/refind_${EFIARCH}.efi"
- doins "${S}/refind.conf-sample"
- doins -r images icons fonts banners
-
- if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
- doins -r "${S}/drivers_${EFIARCH}"
- fi
-
- insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
- doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
-
- insinto "/etc/refind.d"
- doins -r "${S}/keys"
-
- dosbin "${S}/mkrlconf"
- dosbin "${S}/mvrefind"
- dosbin "${S}/refind-mkdefault"
-}
-
-pkg_postinst() {
- elog "rEFInd has been built and installed into ${EROOT%/}/usr/share/${P}"
- elog "You will need to use the command 'refind-install' to install"
- elog "the binaries into your EFI System Partition"
- elog ""
- if [[ -z "${REPLACING_VERSIONS}" ]]; then
- elog "refind-install requires additional packages to be fully functional:"
- elog " app-crypt/sbsigntools for binary signing for use with SecureBoot"
- elog " sys-boot/efibootmgr for writing to NVRAM"
- elog " sys-block/parted for automatic ESP location and mount"
- elog ""
- elog "refind-mkdefault requires >=dev-lang/python-3"
- elog ""
- elog "A sample configuration can be found at"
- elog "${EROOT%}/usr/share/${P}/refind/refind.conf-sample"
- else
- if ! version_is_at_least "0.10.3" "${REPLACING_VERSIONS}"; then
- elog "The new refind-mkdefault script requires >=dev-lang/python-3"
- elog "to be installed"
- elog ""
- fi
- ewarn "Note that this installation will not update any EFI binaries"
- ewarn "on your EFI System Partition - this needs to be done manually"
- fi
-}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2020-04-30 12:00 Joonas Niilola
0 siblings, 0 replies; 57+ messages in thread
From: Joonas Niilola @ 2020-04-30 12:00 UTC (permalink / raw
To: gentoo-commits
commit: 6ea0ac9d85b3d9360e28420cc4bb01552d18208c
Author: Stéphane Veyret <stephane <AT> neptura <DOT> org>
AuthorDate: Wed Apr 29 19:19:10 2020 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Apr 30 11:59:56 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ea0ac9d
sys-boot/refind: Bump to version 0.12.0
Closes: https://bugs.gentoo.org/711832
Closes: https://bugs.gentoo.org/720034
Signed-off-by: Stéphane Veyret <stephane <AT> neptura.org>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
sys-boot/refind/Manifest | 1 +
sys-boot/refind/refind-0.12.0.ebuild | 168 +++++++++++++++++++++++++++++++++++
2 files changed, 169 insertions(+)
diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest
index a294c06247e..bf2e5d87e50 100644
--- a/sys-boot/refind/Manifest
+++ b/sys-boot/refind/Manifest
@@ -2,3 +2,4 @@ DIST refind-src-0.10.4.tar.gz 3970380 BLAKE2B 0d14c005d3e93a1f0008b6c65e34eb6391
DIST refind-src-0.11.2.tar.gz 4533034 BLAKE2B fa05781fc1d87d314677f8e670bd7282b591fd3b6f4a5863e81cb962fdb773c774faabb6c45544b0659c8d5c4ef7ce1dba8d798a4caa97364ad7aa2532a42050 SHA512 796d86f05152d93340773c2dfbae0ca50ab036373ebed60fcc80404ee269ef4bc100df4b141d555d3363b820c3e9234fc0cf637791061281c86329958dca3479
DIST refind-src-0.11.3.tar.gz 3792206 BLAKE2B 369b25dbc97d83f9143ccbe19e89b5975f0796f1e4a2decfc124e4b45c5ef1db8f3e2bb83413f596ca28e82e67b0b9c5682b557a5422e3146780cec151d2a36e SHA512 96907b79e1c9c8199c62058bb6851fa5d6f158802f3777ba19a62c6c0d7d5b49132754bcafa925510fd21c8bafe8ce393117070a628baf4c277fa5f8f536b797
DIST refind-src-0.11.4.tar.gz 3812192 BLAKE2B 7219eeffffb63961a7ba8f7617546a12021cfe80df80a83c4dbd47cd40b0d8afbdc510abb44de3029ff15ed49372bd59e0b156f4c27eab3ef7bd6ccc3c7e02db SHA512 529962ae432edaf1895ba98deb00a23c66bd742578e1a367f70f7ed22dd7be7daf1960df8af410fba79ca775169120499a4c10119331b2b12b55a002d4354de1
+DIST refind-src-0.12.0.tar.gz 3898337 BLAKE2B 1197049fb7d91db64135dafda7488bdb1da4997ce6a6d49dfe635526240e3193d8c7c22597aee0f2d6754ce6061b4127d8aa21d43c9f061501de98e25de609d3 SHA512 3ade9642d7acf31097daa5308acb96a9fa3371314073b5a09601a886fc30444752efa08ed9fb35e421efb0b4eb9efbccd7b5c9bd6b3b9ed4af74c58f22a74729
diff --git a/sys-boot/refind/refind-0.12.0.ebuild b/sys-boot/refind/refind-0.12.0.ebuild
new file mode 100644
index 00000000000..9091a88cfcb
--- /dev/null
+++ b/sys-boot/refind/refind-0.12.0.ebuild
@@ -0,0 +1,168 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multiprocessing toolchain-funcs
+
+DESCRIPTION="The UEFI Boot Manager by Rod Smith"
+HOMEPAGE="https://www.rodsbooks.com/refind/"
+SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
+
+LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
+IUSE="${FS_USE} custom-cflags doc gnuefi"
+
+DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
+ !gnuefi? ( >=sys-boot/udk-2018-r1 )"
+
+DOCS=(README.txt)
+PATCHES=("${FILESDIR}/makefile.patch")
+UDK_WORKSPACE="${T}/udk"
+
+pkg_pretend() {
+ if use custom-cflags; then
+ ewarn
+ ewarn "You have enabled building with USE=custom-cflags. Be aware that"
+ ewarn "using this can result in EFI binaries that fail to run and may"
+ ewarn "fail to build at all. This is strongly advised against by upstream."
+ ewarn
+ ewarn "See https://bugs.gentoo.org/598587#c3 for more information"
+ ewarn
+ fi
+}
+
+pkg_setup() {
+ if use x86; then
+ export EFIARCH=ia32
+ export BUILDARCH=ia32
+ elif use amd64; then
+ export EFIARCH=x64
+ export BUILDARCH=x86_64
+ fi
+}
+
+src_prepare() {
+ default
+
+ # bug 598647 - PIE not supported
+ sed -e '/^CFLAGS/s:$: -fno-PIE:' -i Make.common || die
+
+ # Prepare UDK workspace
+ if ! use gnuefi; then
+ mkdir "${UDK_WORKSPACE}" || die
+ ln -s "${EPREFIX}/usr/lib/udk/"{Mde,IntelFramework}{,Module}Pkg \
+ "${UDK_WORKSPACE}" || die "Could not link UDK files"
+ fi
+}
+
+src_configure() {
+ if ! use gnuefi; then
+ # Use the side effect of the script which will create configuration files
+ (. udk-workspace "${UDK_WORKSPACE}" || die)
+ sed -e "s:^#\?\s*\(MAX_CONCURRENT_THREAD_NUMBER\s*=\).*$:\1 $(makeopts_jobs):" \
+ -i "${UDK_WORKSPACE}/Conf/target.txt" || die "Failed to configure target file"
+ sed -e "s:\(_\(CC\|ASM\|PP\|VFRPP\|ASLCC\|ASLPP\|DLINK\)_PATH\s*=\).*$:\1 $(tc-getCC):" \
+ -e "s:\(_ASLDLINK_PATH\s*=\).*$:\1 $(tc-getLD):" \
+ -e "s:\(_OBJCOPY_PATH\s*=\).*$:\1 $(tc-getOBJCOPY):" \
+ -e "s:\(_RC_PATH\s*=\).*$:\1 $(tc-getOBJCOPY):" \
+ -e "s:\(_SLINK_PATH\s*=\).*$:\1 $(tc-getAR):" \
+ -e "s:-Werror::" \
+ -i "${UDK_WORKSPACE}/Conf/tools_def.txt" \
+ || die "Failed to prepare tools definition file"
+ fi
+}
+
+src_compile() {
+ # Update fs targets depending on uses
+ local fs fs_names=()
+ for fs in ${FS_USE}; do
+ fs=${fs#+}
+ if use "${fs}"; then
+ fs_names+=(${fs})
+ fi
+ done
+ use gnuefi && fs_names=("${fs_names[@]/%/_gnuefi}")
+
+ # Prepare flags
+ local make_flags=(
+ ARCH="${BUILDARCH}"
+ CC="$(tc-getCC)"
+ AS="$(tc-getAS)"
+ LD="$(tc-getLD)"
+ AR="$(tc-getAR)"
+ RANLIB="$(tc-getRANLIB)"
+ OBJCOPY="$(tc-getOBJCOPY)"
+ GNUEFILIB="/usr/$(get_libdir)"
+ EFILIB="/usr/$(get_libdir)"
+ EFICRT0="/usr/$(get_libdir)"
+ EDK2BASE="${UDK_WORKSPACE}"
+ EDK2_DRIVER_BASENAMES="${fs_names[@]}"
+ FILESYSTEMS="${fs_names[@]}"
+ FILESYSTEMS_GNUEFI="${fs_names[@]}"
+ )
+ if use custom-cflags; then
+ make_flags=(CFLAGS="${CFLAGS}" "${make_flags[@]}")
+ fi
+
+ emake "${make_flags[@]}" all_$(usex gnuefi gnuefi edk2)
+}
+
+src_install() {
+ exeinto "/usr/lib/${PN}"
+ doexe refind-install
+ dosym "../lib/${PN}/refind-install" "/usr/sbin/refind-install"
+
+ if use doc; then
+ doman "docs/man/"*
+ DOCS+=(NEWS.txt docs/refind docs/Styles)
+ fi
+ einstalldocs
+
+ insinto "/usr/lib/${PN}/refind"
+ doins "refind/refind_${EFIARCH}.efi"
+ doins "refind.conf-sample"
+ doins -r images icons fonts banners
+
+ if [[ -d "drivers_${EFIARCH}" ]]; then
+ doins -r "drivers_${EFIARCH}"
+ fi
+
+ insinto "/usr/lib/${PN}/refind/tools_${EFIARCH}"
+ doins "gptsync/gptsync_${EFIARCH}.efi"
+
+ insinto "/etc/refind.d"
+ doins -r "keys"
+
+ dosbin "mkrlconf"
+ dosbin "mvrefind"
+ dosbin "refind-mkdefault"
+}
+
+pkg_postinst() {
+ elog "rEFInd has been built and installed into ${EROOT}/usr/lib/${PN}"
+ elog "You will need to use the command 'refind-install' to install"
+ elog "the binaries into your EFI System Partition"
+ elog ""
+ elog "refind-install requires additional packages to be fully functional:"
+ elog " app-crypt/sbsigntools for binary signing for use with SecureBoot"
+ elog " sys-boot/efibootmgr for writing to NVRAM"
+ elog " sys-apps/gptfdisk for ESP management"
+ elog ""
+ elog "refind-mkdefault requires >=dev-lang/python-3"
+ elog ""
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog "A sample configuration can be found at"
+ elog "${EROOT}/usr/lib/${PN}/refind/refind.conf-sample"
+ else
+ if ver_test "${REPLACING_VERSIONS}" -lt "0.12.0"; then
+ ewarn "This new version uses sys-apps/gptfdisk instead of sys-block/parted"
+ ewarn "to manage ESP"
+ ewarn ""
+ fi
+ ewarn "Note that this installation will not update any EFI binaries"
+ ewarn "on your EFI System Partition - this needs to be done manually"
+ fi
+}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2019-11-12 10:45 Agostino Sarubbo
0 siblings, 0 replies; 57+ messages in thread
From: Agostino Sarubbo @ 2019-11-12 10:45 UTC (permalink / raw
To: gentoo-commits
commit: 07dfa7c518fff97a55c6444dff5e764573d86361
Author: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 12 10:44:27 2019 +0000
Commit: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
CommitDate: Tue Nov 12 10:44:27 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07dfa7c5
sys-boot/refind: amd64 stable wrt bug #687258
Package-Manager: Portage-2.3.76, Repoman-2.3.16
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org>
sys-boot/refind/refind-0.11.4.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-boot/refind/refind-0.11.4.ebuild b/sys-boot/refind/refind-0.11.4.ebuild
index 10a9279c42e..139bf622501 100644
--- a/sys-boot/refind/refind-0.11.4.ebuild
+++ b/sys-boot/refind/refind-0.11.4.ebuild
@@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
SLOT="0"
-KEYWORDS="~amd64 x86"
+KEYWORDS="amd64 x86"
FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
IUSE="${FS_USE} custom-cflags doc gnuefi"
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2019-11-12 10:05 Agostino Sarubbo
0 siblings, 0 replies; 57+ messages in thread
From: Agostino Sarubbo @ 2019-11-12 10:05 UTC (permalink / raw
To: gentoo-commits
commit: e382b7410a8ced55a4679178668c50922a1780a9
Author: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 12 10:03:33 2019 +0000
Commit: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
CommitDate: Tue Nov 12 10:03:33 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e382b741
sys-boot/refind: x86 stable wrt bug #687258
Package-Manager: Portage-2.3.76, Repoman-2.3.16
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org>
sys-boot/refind/refind-0.11.4.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-boot/refind/refind-0.11.4.ebuild b/sys-boot/refind/refind-0.11.4.ebuild
index a45929a31c9..10a9279c42e 100644
--- a/sys-boot/refind/refind-0.11.4.ebuild
+++ b/sys-boot/refind/refind-0.11.4.ebuild
@@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 x86"
FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
IUSE="${FS_USE} custom-cflags doc gnuefi"
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2018-09-02 0:46 Sam Jorna
0 siblings, 0 replies; 57+ messages in thread
From: Sam Jorna @ 2018-09-02 0:46 UTC (permalink / raw
To: gentoo-commits
commit: b6d2187e9c3ba35adeb83431485df503178244c6
Author: Sam Jorna <wraeth <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 2 00:44:21 2018 +0000
Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org>
CommitDate: Sun Sep 2 00:44:21 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6d2187e
sys-boot/refind: fix SIMLINK_LIB=no
Bug: https://bugs.gentoo.org/627744
Package-Manager: Portage-2.3.48, Repoman-2.3.10
sys-boot/refind/refind-0.11.3.ebuild | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sys-boot/refind/refind-0.11.3.ebuild b/sys-boot/refind/refind-0.11.3.ebuild
index 511e74dce7a..61fa6812831 100644
--- a/sys-boot/refind/refind-0.11.3.ebuild
+++ b/sys-boot/refind/refind-0.11.3.ebuild
@@ -101,6 +101,9 @@ src_compile() {
AS="$(tc-getAS)"
LD="$(tc-getLD)"
AR="$(tc-getAR)"
+ GNUEFILIB="/usr/$(get_libdir)"
+ EFILIB="/usr/$(get_libdir)"
+ EFICRT0="/usr/$(get_libdir)"
RANLIB="$(tc-getRANLIB)"
OBJCOPY="$(tc-getOBJCOPY)"
GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
@@ -177,7 +180,7 @@ pkg_postinst() {
elog ""
if [[ -z "${REPLACING_VERSIONS}" ]]; then
elog "refind-install requires additional packages to be fully functional:"
- elog " app-crypt/sbsigntool for binary signing for use with SecureBoot"
+ elog " app-crypt/sbsigntools for binary signing for use with SecureBoot"
elog " sys-boot/efibootmgr for writing to NVRAM"
elog " sys-block/parted for automatic ESP location and mount"
elog ""
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2018-08-30 9:12 Sam Jorna
0 siblings, 0 replies; 57+ messages in thread
From: Sam Jorna @ 2018-08-30 9:12 UTC (permalink / raw
To: gentoo-commits
commit: e5799b6c5b6762f7559b79e546038b86d62e2441
Author: Sam Jorna <wraeth <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 30 09:10:25 2018 +0000
Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org>
CommitDate: Thu Aug 30 09:12:21 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5799b6c
sys-boot/refind: bump to 0.11.3
Package-Manager: Portage-2.3.48, Repoman-2.3.10
sys-boot/refind/Manifest | 1 +
sys-boot/refind/refind-0.11.3.ebuild | 197 +++++++++++++++++++++++++++++++++++
2 files changed, 198 insertions(+)
diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest
index 41f5916b6de..a2943776067 100644
--- a/sys-boot/refind/Manifest
+++ b/sys-boot/refind/Manifest
@@ -1,3 +1,4 @@
DIST refind-src-0.10.4.tar.gz 3970380 BLAKE2B 0d14c005d3e93a1f0008b6c65e34eb6391c4a4a488b4fa7842c8f0b68eb2cc5be150c8718f01a65454db7b86ffa5873a3d1a96429eaed0cb92c1d29c8d2f7dcd SHA512 a75a6210ee51427c474e69c2de8c719545b2599c19f1c7541048b77ab1996a0e4b4b5fd4840f6240cd6704e5f5338cbaff432d7dc5ec4042854e26d6df18bed5
DIST refind-src-0.10.8.tar.gz 4059265 BLAKE2B 597d8df1cb74f6f686c5b702c02eb2712adb2076934f1ffc746ca9aaf3d349d6384c8aa09d17fe440b656cc054ee928131f8ecbc059fe0b654e9c32799e54e86 SHA512 a4576920dd68a9436ee6d008787104842e192c6a5eb52cc580258bc8e13daadf170c21270e8cfd86f27733e3e86b050af9102d35c939677b1f1c3627aeeafb32
DIST refind-src-0.11.2.tar.gz 4533034 BLAKE2B fa05781fc1d87d314677f8e670bd7282b591fd3b6f4a5863e81cb962fdb773c774faabb6c45544b0659c8d5c4ef7ce1dba8d798a4caa97364ad7aa2532a42050 SHA512 796d86f05152d93340773c2dfbae0ca50ab036373ebed60fcc80404ee269ef4bc100df4b141d555d3363b820c3e9234fc0cf637791061281c86329958dca3479
+DIST refind-src-0.11.3.tar.gz 3792206 BLAKE2B 369b25dbc97d83f9143ccbe19e89b5975f0796f1e4a2decfc124e4b45c5ef1db8f3e2bb83413f596ca28e82e67b0b9c5682b557a5422e3146780cec151d2a36e SHA512 96907b79e1c9c8199c62058bb6851fa5d6f158802f3777ba19a62c6c0d7d5b49132754bcafa925510fd21c8bafe8ce393117070a628baf4c277fa5f8f536b797
diff --git a/sys-boot/refind/refind-0.11.3.ebuild b/sys-boot/refind/refind-0.11.3.ebuild
new file mode 100644
index 00000000000..511e74dce7a
--- /dev/null
+++ b/sys-boot/refind/refind-0.11.3.ebuild
@@ -0,0 +1,197 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs flag-o-matic eapi7-ver
+
+DESCRIPTION="The UEFI Boot Manager by Rod Smith"
+HOMEPAGE="https://www.rodsbooks.com/refind/"
+
+SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
+
+LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
+IUSE="${FS_USE} -gnuefi doc -custom-cflags"
+
+DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
+ !gnuefi? ( >=sys-boot/udk-2015 )"
+
+DOCS="NEWS.txt README.txt docs/refind docs/Styles"
+
+pkg_pretend() {
+ if use custom-cflags; then
+ ewarn
+ ewarn "You have enabled building with USE=custom-cflags. Be aware that"
+ ewarn "using this can result in EFI binaries that fail to run and may"
+ ewarn "fail to build at all. This is strongly advised against by upstream."
+ ewarn
+ ewarn "See https://bugs.gentoo.org/598587#c3 for more information"
+ ewarn
+ fi
+}
+
+pkg_setup() {
+ if use x86 ; then
+ export EFIARCH=ia32
+ export BUILDARCH=ia32
+ elif use amd64; then
+ export EFIARCH=x64
+ export BUILDARCH=x86_64
+ else
+ # Try to support anyway
+ export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
+ if [[ ${BUILDARCH} == "x86_64" ]] ; then
+ export EFIARCH=x64
+ else
+ export EFIARCH=${ARCH}
+ fi
+ fi
+}
+
+src_prepare() {
+ default
+
+ # bug 598647 - PIE not supported
+ sed -e 's:CFLAGS =:& -fno-PIE:' -i "${S}/Make.common" || die
+
+ local f
+ for f in "${S}"/*/Make.tiano "${S}"/Make.common; do
+ sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \
+ -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \
+ -e '/^\s*-I \$(EDK2BASE).*$/d' \
+ "${f}" || die "Failed to patch Tianocore make file in" \
+ $(basename $(dirname ${f}))
+ done
+ for f in "${S}"/*/Make.tiano; do
+ sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \
+ -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \
+ -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \
+ "${f}" || die "Failed to patch Tianocore make file in" \
+ $(basename $(dirname ${f}))
+ done
+ sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \
+ || die "Failed to patch AutoGen.c"
+ for f in "${S}"/*/AutoGen.c; do
+ cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c"
+
+ #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U
+ #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4
+ #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel
+ #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU
+ GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel;
+ extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel;
+ #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
+ //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD
+ EOF
+ done
+}
+
+src_compile() {
+ # Prepare flags
+ local pecoff_header_size
+ [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \
+ || pecoff_header_size='0x220'
+ local make_flags=(
+ ARCH="${BUILDARCH}"
+ GENFW="/usr/bin/GenFw"
+ CC="$(tc-getCC)"
+ AS="$(tc-getAS)"
+ LD="$(tc-getLD)"
+ AR="$(tc-getAR)"
+ RANLIB="$(tc-getRANLIB)"
+ OBJCOPY="$(tc-getOBJCOPY)"
+ GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
+ -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs"
+ TIANO_LDSCRIPT="/usr/lib/GccBase.lds"
+ TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \
+ --script=\$(TIANO_LDSCRIPT) \
+ --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \
+ --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)"
+ )
+
+ # Make main EFI
+ local all_target
+ use gnuefi && all_target="gnuefi" || all_target="tiano"
+
+ if use custom-cflags; then
+ emake CFLAGS="${CFLAGS}" "${make_flags[@]}" ${all_target}
+ else
+ emake "${make_flags[@]}" ${all_target}
+ fi
+
+ # Make filesystem drivers
+ local gnuefi_target
+ use gnuefi && gnuefi_target="_gnuefi"
+ local fs
+ for fs in ${FS_USE}; do
+ fs=${fs#+}
+ if use "${fs}"; then
+ einfo "Building ${fs} filesystem driver"
+ if use custom-cflags; then
+ emake CFLAGS="${CFLAGS}" "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
+ else
+ emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
+ fi
+ fi
+ done
+}
+
+src_install() {
+ exeinto "/usr/share/${P}"
+ doexe refind-install
+ dosym "../share/${P}/refind-install" "/usr/sbin/refind-install"
+
+ dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
+ if use doc; then
+ doman "${S}/docs/man/"*
+ dodoc -r ${DOCS}
+ fi
+
+ insinto "/usr/share/${P}/refind"
+ doins "${S}/refind/refind_${EFIARCH}.efi"
+ doins "${S}/refind.conf-sample"
+ doins -r images icons fonts banners
+
+ if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
+ doins -r "${S}/drivers_${EFIARCH}"
+ fi
+
+ insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
+ doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
+
+ insinto "/etc/refind.d"
+ doins -r "${S}/keys"
+
+ dosbin "${S}/mkrlconf"
+ dosbin "${S}/mvrefind"
+ dosbin "${S}/refind-mkdefault"
+}
+
+pkg_postinst() {
+ elog "rEFInd has been built and installed into ${EROOT%/}/usr/share/${P}"
+ elog "You will need to use the command 'refind-install' to install"
+ elog "the binaries into your EFI System Partition"
+ elog ""
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog "refind-install requires additional packages to be fully functional:"
+ elog " app-crypt/sbsigntool for binary signing for use with SecureBoot"
+ elog " sys-boot/efibootmgr for writing to NVRAM"
+ elog " sys-block/parted for automatic ESP location and mount"
+ elog ""
+ elog "refind-mkdefault requires >=dev-lang/python-3"
+ elog ""
+ elog "A sample configuration can be found at"
+ elog "${EROOT%}/usr/share/${P}/refind/refind.conf-sample"
+ else
+ if ! version_is_at_least "0.10.3" "${REPLACING_VERSIONS}"; then
+ elog "The new refind-mkdefault script requires >=dev-lang/python-3"
+ elog "to be installed"
+ elog ""
+ fi
+ ewarn "Note that this installation will not update any EFI binaries"
+ ewarn "on your EFI System Partition - this needs to be done manually"
+ fi
+}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2018-08-30 9:12 Sam Jorna
0 siblings, 0 replies; 57+ messages in thread
From: Sam Jorna @ 2018-08-30 9:12 UTC (permalink / raw
To: gentoo-commits
commit: 231fac686e1f7a78435194132c15c22738834f0e
Author: Sam Jorna <wraeth <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 30 09:11:14 2018 +0000
Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org>
CommitDate: Thu Aug 30 09:12:23 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=231fac68
sys-boot/refind: remove old
Package-Manager: Portage-2.3.48, Repoman-2.3.10
sys-boot/refind/Manifest | 1 -
sys-boot/refind/refind-0.10.8.ebuild | 197 -----------------------------------
2 files changed, 198 deletions(-)
diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest
index a2943776067..c1bfe87d3f8 100644
--- a/sys-boot/refind/Manifest
+++ b/sys-boot/refind/Manifest
@@ -1,4 +1,3 @@
DIST refind-src-0.10.4.tar.gz 3970380 BLAKE2B 0d14c005d3e93a1f0008b6c65e34eb6391c4a4a488b4fa7842c8f0b68eb2cc5be150c8718f01a65454db7b86ffa5873a3d1a96429eaed0cb92c1d29c8d2f7dcd SHA512 a75a6210ee51427c474e69c2de8c719545b2599c19f1c7541048b77ab1996a0e4b4b5fd4840f6240cd6704e5f5338cbaff432d7dc5ec4042854e26d6df18bed5
-DIST refind-src-0.10.8.tar.gz 4059265 BLAKE2B 597d8df1cb74f6f686c5b702c02eb2712adb2076934f1ffc746ca9aaf3d349d6384c8aa09d17fe440b656cc054ee928131f8ecbc059fe0b654e9c32799e54e86 SHA512 a4576920dd68a9436ee6d008787104842e192c6a5eb52cc580258bc8e13daadf170c21270e8cfd86f27733e3e86b050af9102d35c939677b1f1c3627aeeafb32
DIST refind-src-0.11.2.tar.gz 4533034 BLAKE2B fa05781fc1d87d314677f8e670bd7282b591fd3b6f4a5863e81cb962fdb773c774faabb6c45544b0659c8d5c4ef7ce1dba8d798a4caa97364ad7aa2532a42050 SHA512 796d86f05152d93340773c2dfbae0ca50ab036373ebed60fcc80404ee269ef4bc100df4b141d555d3363b820c3e9234fc0cf637791061281c86329958dca3479
DIST refind-src-0.11.3.tar.gz 3792206 BLAKE2B 369b25dbc97d83f9143ccbe19e89b5975f0796f1e4a2decfc124e4b45c5ef1db8f3e2bb83413f596ca28e82e67b0b9c5682b557a5422e3146780cec151d2a36e SHA512 96907b79e1c9c8199c62058bb6851fa5d6f158802f3777ba19a62c6c0d7d5b49132754bcafa925510fd21c8bafe8ce393117070a628baf4c277fa5f8f536b797
diff --git a/sys-boot/refind/refind-0.10.8.ebuild b/sys-boot/refind/refind-0.10.8.ebuild
deleted file mode 100644
index 9978fe0dbf0..00000000000
--- a/sys-boot/refind/refind-0.10.8.ebuild
+++ /dev/null
@@ -1,197 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit toolchain-funcs flag-o-matic versionator
-
-DESCRIPTION="The UEFI Boot Manager by Rod Smith"
-HOMEPAGE="https://www.rodsbooks.com/refind/"
-
-SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
-
-LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
-IUSE="${FS_USE} -gnuefi doc -custom-cflags"
-
-DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
- !gnuefi? ( >=sys-boot/udk-2015 )"
-
-DOCS="NEWS.txt README.txt docs/refind docs/Styles"
-
-pkg_pretend() {
- if use custom-cflags; then
- ewarn
- ewarn "You have enabled building with USE=custom-cflags. Be aware that"
- ewarn "using this can result in EFI binaries that fail to run and may"
- ewarn "fail to build at all. This is strongly advised against by upstream."
- ewarn
- ewarn "See https://bugs.gentoo.org/598587#c3 for more information"
- ewarn
- fi
-}
-
-pkg_setup() {
- if use x86 ; then
- export EFIARCH=ia32
- export BUILDARCH=ia32
- elif use amd64; then
- export EFIARCH=x64
- export BUILDARCH=x86_64
- else
- # Try to support anyway
- export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
- if [[ ${BUILDARCH} == "x86_64" ]] ; then
- export EFIARCH=x64
- else
- export EFIARCH=${ARCH}
- fi
- fi
-}
-
-src_prepare() {
- default
-
- # bug 598647 - PIE not supported
- sed -e 's:CFLAGS =:& -fno-PIE:' -i "${S}/Make.common" || die
-
- local f
- for f in "${S}"/*/Make.tiano "${S}"/Make.common; do
- sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \
- -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \
- -e '/^\s*-I \$(EDK2BASE).*$/d' \
- "${f}" || die "Failed to patch Tianocore make file in" \
- $(basename $(dirname ${f}))
- done
- for f in "${S}"/*/Make.tiano; do
- sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \
- -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \
- -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \
- "${f}" || die "Failed to patch Tianocore make file in" \
- $(basename $(dirname ${f}))
- done
- sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \
- || die "Failed to patch AutoGen.c"
- for f in "${S}"/*/AutoGen.c; do
- cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c"
-
- #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U
- #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4
- #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel
- #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU
- GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel;
- extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel;
- #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
- //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD
- EOF
- done
-}
-
-src_compile() {
- # Prepare flags
- local pecoff_header_size
- [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \
- || pecoff_header_size='0x220'
- local make_flags=(
- ARCH="${BUILDARCH}"
- GENFW="/usr/bin/GenFw"
- CC="$(tc-getCC)"
- AS="$(tc-getAS)"
- LD="$(tc-getLD)"
- AR="$(tc-getAR)"
- RANLIB="$(tc-getRANLIB)"
- OBJCOPY="$(tc-getOBJCOPY)"
- GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
- -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs"
- TIANO_LDSCRIPT="/usr/lib/GccBase.lds"
- TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \
- --script=\$(TIANO_LDSCRIPT) \
- --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \
- --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)"
- )
-
- # Make main EFI
- local all_target
- use gnuefi && all_target="gnuefi" || all_target="tiano"
-
- if use custom-cflags; then
- emake CFLAGS="${CFLAGS}" "${make_flags[@]}" ${all_target}
- else
- emake "${make_flags[@]}" ${all_target}
- fi
-
- # Make filesystem drivers
- local gnuefi_target
- use gnuefi && gnuefi_target="_gnuefi"
- local fs
- for fs in ${FS_USE}; do
- fs=${fs#+}
- if use "${fs}"; then
- einfo "Building ${fs} filesystem driver"
- if use custom-cflags; then
- emake CFLAGS="${CFLAGS}" "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
- else
- emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
- fi
- fi
- done
-}
-
-src_install() {
- exeinto "/usr/share/${P}"
- doexe refind-install
- dosym "/usr/share/${P}/refind-install" "/usr/sbin/refind-install"
-
- dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
- if use doc; then
- doman "${S}/docs/man/"*
- dodoc -r ${DOCS}
- fi
-
- insinto "/usr/share/${P}/refind"
- doins "${S}/refind/refind_${EFIARCH}.efi"
- doins "${S}/refind.conf-sample"
- doins -r images icons fonts banners
-
- if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
- doins -r "${S}/drivers_${EFIARCH}"
- fi
-
- insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
- doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
-
- insinto "/etc/refind.d"
- doins -r "${S}/keys"
-
- dosbin "${S}/mkrlconf"
- dosbin "${S}/mvrefind"
- dosbin "${S}/refind-mkdefault"
-}
-
-pkg_postinst() {
- elog "rEFInd has been built and installed into ${EROOT%/}/usr/share/${P}"
- elog "You will need to use the command 'refind-install' to install"
- elog "the binaries into your EFI System Partition"
- elog ""
- if [[ -z "${REPLACING_VERSIONS}" ]]; then
- elog "refind-install requires additional packages to be fully functional:"
- elog " app-crypt/sbsigntools for binary signing for use with SecureBoot"
- elog " sys-boot/efibootmgr for writing to NVRAM"
- elog " sys-block/parted for automatic ESP location and mount"
- elog ""
- elog "refind-mkdefault requires >=dev-lang/python-3"
- elog ""
- elog "A sample configuration can be found at"
- elog "${EROOT%}/usr/share/${P}/refind/refind.conf-sample"
- else
- if ! version_is_at_least "0.10.3" "${REPLACING_VERSIONS}"; then
- elog "The new refind-mkdefault script requires >=dev-lang/python-3"
- elog "to be installed"
- elog ""
- fi
- ewarn "Note that this installation will not update any EFI binaries"
- ewarn "on your EFI System Partition - this needs to be done manually"
- fi
-}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2018-04-27 9:23 Sam Jorna
0 siblings, 0 replies; 57+ messages in thread
From: Sam Jorna @ 2018-04-27 9:23 UTC (permalink / raw
To: gentoo-commits
commit: 2086a46b5f2e37f49d6ba68a7a82a73a2abcb3b9
Author: Sam Jorna <wraeth <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 27 09:20:09 2018 +0000
Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org>
CommitDate: Fri Apr 27 09:20:09 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2086a46b
sys-boot/refind: fix SYMLINK_LIB=no bug 627744
Bug: https://bugs.gentoo.org/627744
Package-Manager: Portage-2.3.31, Repoman-2.3.9
sys-boot/refind/refind-0.11.2.ebuild | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sys-boot/refind/refind-0.11.2.ebuild b/sys-boot/refind/refind-0.11.2.ebuild
index 260ef1d80ae..6f050a747dc 100644
--- a/sys-boot/refind/refind-0.11.2.ebuild
+++ b/sys-boot/refind/refind-0.11.2.ebuild
@@ -101,6 +101,9 @@ src_compile() {
AS="$(tc-getAS)"
LD="$(tc-getLD)"
AR="$(tc-getAR)"
+ GNUEFILIB="/usr/$(get_libdir)"
+ EFILIB="/usr/$(get_libdir)"
+ EFICRT0="/usr/$(get_libdir)"
RANLIB="$(tc-getRANLIB)"
OBJCOPY="$(tc-getOBJCOPY)"
GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2018-04-23 13:01 Sam Jorna
0 siblings, 0 replies; 57+ messages in thread
From: Sam Jorna @ 2018-04-23 13:01 UTC (permalink / raw
To: gentoo-commits
commit: 26800f62b105450602ea98e2018de1d06555e30a
Author: Sam Jorna <wraeth <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 23 12:58:49 2018 +0000
Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org>
CommitDate: Mon Apr 23 12:59:02 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26800f62
sys-boot/refind: bump to 0.11.2
Bug: https://bugs.gentoo.org/628294
Package-Manager: Portage-2.3.31, Repoman-2.3.9
sys-boot/refind/Manifest | 1 +
sys-boot/refind/refind-0.11.2.ebuild | 197 +++++++++++++++++++++++++++++++++++
2 files changed, 198 insertions(+)
diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest
index bcd0703bdf0..41f5916b6de 100644
--- a/sys-boot/refind/Manifest
+++ b/sys-boot/refind/Manifest
@@ -1,2 +1,3 @@
DIST refind-src-0.10.4.tar.gz 3970380 BLAKE2B 0d14c005d3e93a1f0008b6c65e34eb6391c4a4a488b4fa7842c8f0b68eb2cc5be150c8718f01a65454db7b86ffa5873a3d1a96429eaed0cb92c1d29c8d2f7dcd SHA512 a75a6210ee51427c474e69c2de8c719545b2599c19f1c7541048b77ab1996a0e4b4b5fd4840f6240cd6704e5f5338cbaff432d7dc5ec4042854e26d6df18bed5
DIST refind-src-0.10.8.tar.gz 4059265 BLAKE2B 597d8df1cb74f6f686c5b702c02eb2712adb2076934f1ffc746ca9aaf3d349d6384c8aa09d17fe440b656cc054ee928131f8ecbc059fe0b654e9c32799e54e86 SHA512 a4576920dd68a9436ee6d008787104842e192c6a5eb52cc580258bc8e13daadf170c21270e8cfd86f27733e3e86b050af9102d35c939677b1f1c3627aeeafb32
+DIST refind-src-0.11.2.tar.gz 4533034 BLAKE2B fa05781fc1d87d314677f8e670bd7282b591fd3b6f4a5863e81cb962fdb773c774faabb6c45544b0659c8d5c4ef7ce1dba8d798a4caa97364ad7aa2532a42050 SHA512 796d86f05152d93340773c2dfbae0ca50ab036373ebed60fcc80404ee269ef4bc100df4b141d555d3363b820c3e9234fc0cf637791061281c86329958dca3479
diff --git a/sys-boot/refind/refind-0.11.2.ebuild b/sys-boot/refind/refind-0.11.2.ebuild
new file mode 100644
index 00000000000..260ef1d80ae
--- /dev/null
+++ b/sys-boot/refind/refind-0.11.2.ebuild
@@ -0,0 +1,197 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs flag-o-matic versionator
+
+DESCRIPTION="The UEFI Boot Manager by Rod Smith"
+HOMEPAGE="https://www.rodsbooks.com/refind/"
+
+SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
+
+LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
+IUSE="${FS_USE} -gnuefi doc -custom-cflags"
+
+DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
+ !gnuefi? ( >=sys-boot/udk-2015 )"
+
+DOCS="NEWS.txt README.txt docs/refind docs/Styles"
+
+pkg_pretend() {
+ if use custom-cflags; then
+ ewarn
+ ewarn "You have enabled building with USE=custom-cflags. Be aware that"
+ ewarn "using this can result in EFI binaries that fail to run and may"
+ ewarn "fail to build at all. This is strongly advised against by upstream."
+ ewarn
+ ewarn "See https://bugs.gentoo.org/598587#c3 for more information"
+ ewarn
+ fi
+}
+
+pkg_setup() {
+ if use x86 ; then
+ export EFIARCH=ia32
+ export BUILDARCH=ia32
+ elif use amd64; then
+ export EFIARCH=x64
+ export BUILDARCH=x86_64
+ else
+ # Try to support anyway
+ export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
+ if [[ ${BUILDARCH} == "x86_64" ]] ; then
+ export EFIARCH=x64
+ else
+ export EFIARCH=${ARCH}
+ fi
+ fi
+}
+
+src_prepare() {
+ default
+
+ # bug 598647 - PIE not supported
+ sed -e 's:CFLAGS =:& -fno-PIE:' -i "${S}/Make.common" || die
+
+ local f
+ for f in "${S}"/*/Make.tiano "${S}"/Make.common; do
+ sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \
+ -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \
+ -e '/^\s*-I \$(EDK2BASE).*$/d' \
+ "${f}" || die "Failed to patch Tianocore make file in" \
+ $(basename $(dirname ${f}))
+ done
+ for f in "${S}"/*/Make.tiano; do
+ sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \
+ -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \
+ -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \
+ "${f}" || die "Failed to patch Tianocore make file in" \
+ $(basename $(dirname ${f}))
+ done
+ sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \
+ || die "Failed to patch AutoGen.c"
+ for f in "${S}"/*/AutoGen.c; do
+ cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c"
+
+ #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U
+ #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4
+ #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel
+ #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU
+ GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel;
+ extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel;
+ #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
+ //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD
+ EOF
+ done
+}
+
+src_compile() {
+ # Prepare flags
+ local pecoff_header_size
+ [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \
+ || pecoff_header_size='0x220'
+ local make_flags=(
+ ARCH="${BUILDARCH}"
+ GENFW="/usr/bin/GenFw"
+ CC="$(tc-getCC)"
+ AS="$(tc-getAS)"
+ LD="$(tc-getLD)"
+ AR="$(tc-getAR)"
+ RANLIB="$(tc-getRANLIB)"
+ OBJCOPY="$(tc-getOBJCOPY)"
+ GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
+ -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs"
+ TIANO_LDSCRIPT="/usr/lib/GccBase.lds"
+ TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \
+ --script=\$(TIANO_LDSCRIPT) \
+ --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \
+ --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)"
+ )
+
+ # Make main EFI
+ local all_target
+ use gnuefi && all_target="gnuefi" || all_target="tiano"
+
+ if use custom-cflags; then
+ emake CFLAGS="${CFLAGS}" "${make_flags[@]}" ${all_target}
+ else
+ emake "${make_flags[@]}" ${all_target}
+ fi
+
+ # Make filesystem drivers
+ local gnuefi_target
+ use gnuefi && gnuefi_target="_gnuefi"
+ local fs
+ for fs in ${FS_USE}; do
+ fs=${fs#+}
+ if use "${fs}"; then
+ einfo "Building ${fs} filesystem driver"
+ if use custom-cflags; then
+ emake CFLAGS="${CFLAGS}" "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
+ else
+ emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
+ fi
+ fi
+ done
+}
+
+src_install() {
+ exeinto "/usr/share/${P}"
+ doexe refind-install
+ dosym "../share/${P}/refind-install" "/usr/sbin/refind-install"
+
+ dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
+ if use doc; then
+ doman "${S}/docs/man/"*
+ dodoc -r ${DOCS}
+ fi
+
+ insinto "/usr/share/${P}/refind"
+ doins "${S}/refind/refind_${EFIARCH}.efi"
+ doins "${S}/refind.conf-sample"
+ doins -r images icons fonts banners
+
+ if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
+ doins -r "${S}/drivers_${EFIARCH}"
+ fi
+
+ insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
+ doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
+
+ insinto "/etc/refind.d"
+ doins -r "${S}/keys"
+
+ dosbin "${S}/mkrlconf"
+ dosbin "${S}/mvrefind"
+ dosbin "${S}/refind-mkdefault"
+}
+
+pkg_postinst() {
+ elog "rEFInd has been built and installed into ${EROOT%/}/usr/share/${P}"
+ elog "You will need to use the command 'refind-install' to install"
+ elog "the binaries into your EFI System Partition"
+ elog ""
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog "refind-install requires additional packages to be fully functional:"
+ elog " app-crypt/sbsigntool for binary signing for use with SecureBoot"
+ elog " sys-boot/efibootmgr for writing to NVRAM"
+ elog " sys-block/parted for automatic ESP location and mount"
+ elog ""
+ elog "refind-mkdefault requires >=dev-lang/python-3"
+ elog ""
+ elog "A sample configuration can be found at"
+ elog "${EROOT%}/usr/share/${P}/refind/refind.conf-sample"
+ else
+ if ! version_is_at_least "0.10.3" "${REPLACING_VERSIONS}"; then
+ elog "The new refind-mkdefault script requires >=dev-lang/python-3"
+ elog "to be installed"
+ elog ""
+ fi
+ ewarn "Note that this installation will not update any EFI binaries"
+ ewarn "on your EFI System Partition - this needs to be done manually"
+ fi
+}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2018-03-25 17:57 Mikle Kolyada
0 siblings, 0 replies; 57+ messages in thread
From: Mikle Kolyada @ 2018-03-25 17:57 UTC (permalink / raw
To: gentoo-commits
commit: 00e82919e62dbdefcf67653cfd0b880ac2b06851
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 25 17:57:03 2018 +0000
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Sun Mar 25 17:57:30 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00e82919
sys-boot/refind: fix DESCRIPTION
Package-Manager: Portage-2.3.24, Repoman-2.3.6
sys-boot/refind/refind-0.10.4-r2.ebuild | 2 +-
sys-boot/refind/refind-0.10.8.ebuild | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys-boot/refind/refind-0.10.4-r2.ebuild b/sys-boot/refind/refind-0.10.4-r2.ebuild
index 60314749f2b..96ca6a4c75a 100644
--- a/sys-boot/refind/refind-0.10.4-r2.ebuild
+++ b/sys-boot/refind/refind-0.10.4-r2.ebuild
@@ -5,7 +5,7 @@ EAPI=6
inherit toolchain-funcs flag-o-matic versionator
-DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
+DESCRIPTION="The UEFI Boot Manager by Rod Smith"
HOMEPAGE="https://www.rodsbooks.com/refind/"
SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
diff --git a/sys-boot/refind/refind-0.10.8.ebuild b/sys-boot/refind/refind-0.10.8.ebuild
index 6c49cc43f2f..598fa7cd8dc 100644
--- a/sys-boot/refind/refind-0.10.8.ebuild
+++ b/sys-boot/refind/refind-0.10.8.ebuild
@@ -5,7 +5,7 @@ EAPI=6
inherit toolchain-funcs flag-o-matic versionator
-DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
+DESCRIPTION="The UEFI Boot Manager by Rod Smith"
HOMEPAGE="https://www.rodsbooks.com/refind/"
SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2018-01-03 13:43 Patrice Clement
0 siblings, 0 replies; 57+ messages in thread
From: Patrice Clement @ 2018-01-03 13:43 UTC (permalink / raw
To: gentoo-commits
commit: afff02d2efec49545ad4a7a6e57b760115f845e9
Author: charIes17 <charles17 <AT> arcor <DOT> de>
AuthorDate: Wed Jan 3 06:54:29 2018 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Wed Jan 3 13:43:02 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afff02d2
sys-boot/refind: HOMEPAGE to use https.
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Closes: https://github.com/gentoo/gentoo/pull/6725
sys-boot/refind/refind-0.10.4-r2.ebuild | 4 ++--
sys-boot/refind/refind-0.10.8.ebuild | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sys-boot/refind/refind-0.10.4-r2.ebuild b/sys-boot/refind/refind-0.10.4-r2.ebuild
index 4ce8cce2382..60314749f2b 100644
--- a/sys-boot/refind/refind-0.10.4-r2.ebuild
+++ b/sys-boot/refind/refind-0.10.4-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -6,7 +6,7 @@ EAPI=6
inherit toolchain-funcs flag-o-matic versionator
DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
-HOMEPAGE="http://www.rodsbooks.com/refind/"
+HOMEPAGE="https://www.rodsbooks.com/refind/"
SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
diff --git a/sys-boot/refind/refind-0.10.8.ebuild b/sys-boot/refind/refind-0.10.8.ebuild
index 044b7ed7c12..6c49cc43f2f 100644
--- a/sys-boot/refind/refind-0.10.8.ebuild
+++ b/sys-boot/refind/refind-0.10.8.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -6,7 +6,7 @@ EAPI=6
inherit toolchain-funcs flag-o-matic versionator
DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
-HOMEPAGE="http://www.rodsbooks.com/refind/"
+HOMEPAGE="https://www.rodsbooks.com/refind/"
SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2017-07-11 13:10 Michael Palimaka
0 siblings, 0 replies; 57+ messages in thread
From: Michael Palimaka @ 2017-07-11 13:10 UTC (permalink / raw
To: gentoo-commits
commit: 91391637ca1daf68f8ec910f023716f9168e59db
Author: Matthias Dahl <matthias.dahl <AT> binary-island <DOT> eu>
AuthorDate: Tue Jul 4 08:16:54 2017 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Tue Jul 11 13:10:11 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91391637
sys-boot/refind: Bump to 1.0.8
rEFInd 1.0.8 fixes, amongst other things, compilation with gnu-efi >= 3.0.5
and thus no longer requires a custom patch.
sys-boot/refind/Manifest | 3 +--
sys-boot/refind/{refind-0.10.7-r1.ebuild => refind-0.10.8.ebuild} | 6 +-----
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest
index c6f9278a867..1337265d5e6 100644
--- a/sys-boot/refind/Manifest
+++ b/sys-boot/refind/Manifest
@@ -1,3 +1,2 @@
-DIST refind-0.10.7-fix_build_gnuefi-3.0.5.patch.xz 9920 SHA256 262af553bc782394d08fa208452e81ef0b8cbefd6ec3857bee0a7d7f862bd86f SHA512 48ef45c7650347b82ee14a01459fd8f59d99623ae12f40f198d0d36d2471b3e93de85a4c3d39825e58e70c08b03fe00506fb71173deaef1889f5a806b103564d WHIRLPOOL e250f230221fd3920547c2684cffe258931d8a79c47bf458cc422551b1d5ee0a3930a8ba9353ae120cd87500ec478d13cf085933f41f78b4d2e5ed7d71dd3e4e
DIST refind-src-0.10.4.tar.gz 3970380 SHA256 c3e428b27a0d4c61ee052603aedea7118bf04a7917216b10bfde2a3d2a2442a5 SHA512 a75a6210ee51427c474e69c2de8c719545b2599c19f1c7541048b77ab1996a0e4b4b5fd4840f6240cd6704e5f5338cbaff432d7dc5ec4042854e26d6df18bed5 WHIRLPOOL a5d84831ea3c6282560fcc7491e7aabeb4a0598c34843a09b7baadf9398092a9495290180d05fbd935ad09207814a3fa4f72cfa3bf798f2422fecf07dc27037d
-DIST refind-src-0.10.7.tar.gz 4045026 SHA256 32e9a1cb11a910a26f555792d287f1b26d677c6d15666c19814d2b67b78b4201 SHA512 42830ac8c06221e2244426059add134afc6b63e5120c78fc6fed54eb3a6a1aee1b07da4833f53b3e5ed85689ab818d9bccdd7d1eb7e8fd326ea118ad0d3a542f WHIRLPOOL a8ac31f0fe3ee5726ecca56f339a1a63835ee608c947a0d86ed6995ad3fa09d66cce7bb4a5d878a6e20755d18b784822c6032ec7f67ea99a14ff3c9f44c49d88
+DIST refind-src-0.10.8.tar.gz 4059265 SHA256 e4fc7f474fe4a13b70c7bc3611c13976dbc4edc7323f0f27f3b50147ab47f1e6 SHA512 a4576920dd68a9436ee6d008787104842e192c6a5eb52cc580258bc8e13daadf170c21270e8cfd86f27733e3e86b050af9102d35c939677b1f1c3627aeeafb32 WHIRLPOOL 970ea1b6207c526288496f4ad04cf58d86fc8352bad673574bb06de64e4fd37c45b1f7b7b8b9dca2bd0bb5c61cec9e4eaaccf88e237dc515c42e950ec2a425c4
diff --git a/sys-boot/refind/refind-0.10.7-r1.ebuild b/sys-boot/refind/refind-0.10.8.ebuild
similarity index 96%
rename from sys-boot/refind/refind-0.10.7-r1.ebuild
rename to sys-boot/refind/refind-0.10.8.ebuild
index 7bbeb09e4d4..044b7ed7c12 100644
--- a/sys-boot/refind/refind-0.10.7-r1.ebuild
+++ b/sys-boot/refind/refind-0.10.8.ebuild
@@ -8,8 +8,7 @@ inherit toolchain-funcs flag-o-matic versionator
DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
HOMEPAGE="http://www.rodsbooks.com/refind/"
-SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz
- gnuefi? ( https://dev.gentoo.org/~wraeth/distfiles/${P}-fix_build_gnuefi-3.0.5.patch.xz )"
+SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
SLOT="0"
@@ -55,9 +54,6 @@ pkg_setup() {
src_prepare() {
default
- # bug 616668 - build fails against gnu-efi-3.0.5
- use gnuefi && eapply "${WORKDIR}"/"${P}"-fix_build_gnuefi-3.0.5.patch
-
# bug 598647 - PIE not supported
sed -e 's:CFLAGS =:& -fno-PIE:' -i "${S}/Make.common" || die
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2017-05-15 11:02 Sam Jorna
0 siblings, 0 replies; 57+ messages in thread
From: Sam Jorna @ 2017-05-15 11:02 UTC (permalink / raw
To: gentoo-commits
commit: fed31007dc4f3911bfb55bab5273de7f64388140
Author: Sam Jorna <wraeth <AT> gentoo <DOT> org>
AuthorDate: Mon May 15 11:02:09 2017 +0000
Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org>
CommitDate: Mon May 15 11:02:09 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fed31007
sys-boot/refind: fix incorrect patch name
Gentoo-Bug: 618510
Package-Manager: Portage-2.3.5, Repoman-2.3.2
sys-boot/refind/refind-0.10.7-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-boot/refind/refind-0.10.7-r1.ebuild b/sys-boot/refind/refind-0.10.7-r1.ebuild
index b77f6fc42e8..a17a793c16f 100644
--- a/sys-boot/refind/refind-0.10.7-r1.ebuild
+++ b/sys-boot/refind/refind-0.10.7-r1.ebuild
@@ -55,7 +55,7 @@ src_prepare() {
default
# bug 616668 - build fails against gnu-efi-3.0.5
- eapply "${FILESDIR}"/"${PF}"-fix_build_gnuefi-3.0.5.patch
+ eapply "${FILESDIR}"/"${P}"-fix_build_gnuefi-3.0.5.patch
# bug 598647 - PIE not supported
sed -e 's:CFLAGS =:& -fno-PIE:' -i "${S}/Make.common" || die
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2017-04-28 0:36 Sam Jorna
0 siblings, 0 replies; 57+ messages in thread
From: Sam Jorna @ 2017-04-28 0:36 UTC (permalink / raw
To: gentoo-commits
commit: df0a2f61c3b96fb3516cc8df148ff4e33a33eea0
Author: Sam Jorna <wraeth <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 28 00:36:35 2017 +0000
Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org>
CommitDate: Fri Apr 28 00:36:35 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df0a2f61
sys-boot/refind: reorder metadata.xml
Output from some tools (equery) prints first language rather than respecting
LANG (see bug 616800). Re-ordering as workaround for this.
Reported-by: Wes <wes <AT> sol1.com.au>
Package-Manager: Portage-2.3.5, Repoman-2.3.2
sys-boot/refind/metadata.xml | 48 ++++++++++++++++++++++----------------------
1 file changed, 24 insertions(+), 24 deletions(-)
diff --git a/sys-boot/refind/metadata.xml b/sys-boot/refind/metadata.xml
index 3bcc4473f8e..a5f94e9e04e 100644
--- a/sys-boot/refind/metadata.xml
+++ b/sys-boot/refind/metadata.xml
@@ -13,6 +13,20 @@
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
+ <longdescription lang="en">
+A graphical boot manager for EFI- and UEFI-based computers, such as all
+Intel-based Macs and recent (most 2011 and later) PCs. rEFInd presents a
+boot menu showing all the EFI boot loaders on the EFI-accessible
+partitions, and optionally BIOS-bootable partitions on Macs and BIOS boot
+entries on UEFI PCs with CSMs. EFI-compatbile OSes, including Linux,
+provide boot loaders that rEFInd can detect and launch. rEFInd can launch
+Linux EFI boot loaders such as ELILO, GRUB Legacy, GRUB 2, and 3.3.0 and
+later kernels with EFI stub support. EFI filesystem drivers for ext2/3/4fs,
+ReiserFS, Btrfs, NTFS, HFS+, and ISO-9660 enable rEFInd to read boot
+loaders from these filesystems, too. rEFInd's ability to detect boot
+loaders at runtime makes it very easy to use, particularly when paired with
+Linux kernels that provide EFI stub support.
+ </longdescription>
<longdescription lang="fr">
Un gestionnaire d'amorçage pour ordinateur EFI ou UEFI tel que tous les Macs
contenant un processeur Intel et les PC récents (2011 et après). rEFInd affiche
@@ -29,30 +43,6 @@ systèmes de fichiers. La capacité de rEFInd à détecter les gestionnaires
d'amorçage au moment de l'exécution le rend très facile à utiliser, en
particulier associé à des noyau Linux qui fournissent un support EFI stub.
</longdescription>
- <longdescription lang="en">
-A graphical boot manager for EFI- and UEFI-based computers, such as all
-Intel-based Macs and recent (most 2011 and later) PCs. rEFInd presents a
-boot menu showing all the EFI boot loaders on the EFI-accessible
-partitions, and optionally BIOS-bootable partitions on Macs and BIOS boot
-entries on UEFI PCs with CSMs. EFI-compatbile OSes, including Linux,
-provide boot loaders that rEFInd can detect and launch. rEFInd can launch
-Linux EFI boot loaders such as ELILO, GRUB Legacy, GRUB 2, and 3.3.0 and
-later kernels with EFI stub support. EFI filesystem drivers for ext2/3/4fs,
-ReiserFS, Btrfs, NTFS, HFS+, and ISO-9660 enable rEFInd to read boot
-loaders from these filesystems, too. rEFInd's ability to detect boot
-loaders at runtime makes it very easy to use, particularly when paired with
-Linux kernels that provide EFI stub support.
- </longdescription>
- <use lang="fr">
- <flag name="ext2">Construire le gestionnaire EFI pour le système de fichier ext2</flag>
- <flag name="ext4">Construire le gestionnaire EFI pour le système de fichier ext4</flag>
- <flag name="reiserfs">Construire le gestionnaire EFI pour le système de fichier reiserfs</flag>
- <flag name="iso9660">Construire le gestionnaire EFI pour le système de fichier iso9660</flag>
- <flag name="hfs">Construire le gestionnaire EFI pour le système de fichier hfs</flag>
- <flag name="btrfs">Construire le gestionnaire EFI pour le système de fichier btrfs</flag>
- <flag name="ntfs">Construire le gestionnaire EFI pour le système de fichier ntfs</flag>
- <flag name="gnuefi">Compiler en utilisant GNU-EFI au lieu de Tianocore</flag>
- </use>
<use lang="en">
<flag name="ext2">Builds the EFI binary ext2 filesystem driver</flag>
<flag name="ext4">Builds the EFI binary ext4 filesystem driver</flag>
@@ -63,6 +53,16 @@ Linux kernels that provide EFI stub support.
<flag name="ntfs">Builds the EFI binary ntfs filesystem driver</flag>
<flag name="gnuefi">Compile using GNU-EFI instead of Tianocore</flag>
</use>
+ <use lang="fr">
+ <flag name="ext2">Construire le gestionnaire EFI pour le système de fichier ext2</flag>
+ <flag name="ext4">Construire le gestionnaire EFI pour le système de fichier ext4</flag>
+ <flag name="reiserfs">Construire le gestionnaire EFI pour le système de fichier reiserfs</flag>
+ <flag name="iso9660">Construire le gestionnaire EFI pour le système de fichier iso9660</flag>
+ <flag name="hfs">Construire le gestionnaire EFI pour le système de fichier hfs</flag>
+ <flag name="btrfs">Construire le gestionnaire EFI pour le système de fichier btrfs</flag>
+ <flag name="ntfs">Construire le gestionnaire EFI pour le système de fichier ntfs</flag>
+ <flag name="gnuefi">Compiler en utilisant GNU-EFI au lieu de Tianocore</flag>
+ </use>
<upstream>
<remote-id type="sourceforge">refind</remote-id>
</upstream>
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2017-04-23 23:29 Sam Jorna
0 siblings, 0 replies; 57+ messages in thread
From: Sam Jorna @ 2017-04-23 23:29 UTC (permalink / raw
To: gentoo-commits
commit: 6a2d104b5d08cb9c25f94db1dbf8af44455acfdc
Author: Sam Jorna <wraeth <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 23 23:29:25 2017 +0000
Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org>
CommitDate: Sun Apr 23 23:29:25 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a2d104b
sys-boot/refind: bump to 0.10.7
Package-Manager: Portage-2.3.5, Repoman-2.3.2
sys-boot/refind/Manifest | 1 +
sys-boot/refind/refind-0.10.7.ebuild | 197 +++++++++++++++++++++++++++++++++++
2 files changed, 198 insertions(+)
diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest
index 50441a1fb85..77b0cb5dfa7 100644
--- a/sys-boot/refind/Manifest
+++ b/sys-boot/refind/Manifest
@@ -1 +1,2 @@
DIST refind-src-0.10.4.tar.gz 3970380 SHA256 c3e428b27a0d4c61ee052603aedea7118bf04a7917216b10bfde2a3d2a2442a5 SHA512 a75a6210ee51427c474e69c2de8c719545b2599c19f1c7541048b77ab1996a0e4b4b5fd4840f6240cd6704e5f5338cbaff432d7dc5ec4042854e26d6df18bed5 WHIRLPOOL a5d84831ea3c6282560fcc7491e7aabeb4a0598c34843a09b7baadf9398092a9495290180d05fbd935ad09207814a3fa4f72cfa3bf798f2422fecf07dc27037d
+DIST refind-src-0.10.7.tar.gz 4045026 SHA256 32e9a1cb11a910a26f555792d287f1b26d677c6d15666c19814d2b67b78b4201 SHA512 42830ac8c06221e2244426059add134afc6b63e5120c78fc6fed54eb3a6a1aee1b07da4833f53b3e5ed85689ab818d9bccdd7d1eb7e8fd326ea118ad0d3a542f WHIRLPOOL a8ac31f0fe3ee5726ecca56f339a1a63835ee608c947a0d86ed6995ad3fa09d66cce7bb4a5d878a6e20755d18b784822c6032ec7f67ea99a14ff3c9f44c49d88
diff --git a/sys-boot/refind/refind-0.10.7.ebuild b/sys-boot/refind/refind-0.10.7.ebuild
new file mode 100644
index 00000000000..044b7ed7c12
--- /dev/null
+++ b/sys-boot/refind/refind-0.10.7.ebuild
@@ -0,0 +1,197 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs flag-o-matic versionator
+
+DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
+HOMEPAGE="http://www.rodsbooks.com/refind/"
+
+SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
+
+LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
+IUSE="${FS_USE} -gnuefi doc -custom-cflags"
+
+DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
+ !gnuefi? ( >=sys-boot/udk-2015 )"
+
+DOCS="NEWS.txt README.txt docs/refind docs/Styles"
+
+pkg_pretend() {
+ if use custom-cflags; then
+ ewarn
+ ewarn "You have enabled building with USE=custom-cflags. Be aware that"
+ ewarn "using this can result in EFI binaries that fail to run and may"
+ ewarn "fail to build at all. This is strongly advised against by upstream."
+ ewarn
+ ewarn "See https://bugs.gentoo.org/598587#c3 for more information"
+ ewarn
+ fi
+}
+
+pkg_setup() {
+ if use x86 ; then
+ export EFIARCH=ia32
+ export BUILDARCH=ia32
+ elif use amd64; then
+ export EFIARCH=x64
+ export BUILDARCH=x86_64
+ else
+ # Try to support anyway
+ export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
+ if [[ ${BUILDARCH} == "x86_64" ]] ; then
+ export EFIARCH=x64
+ else
+ export EFIARCH=${ARCH}
+ fi
+ fi
+}
+
+src_prepare() {
+ default
+
+ # bug 598647 - PIE not supported
+ sed -e 's:CFLAGS =:& -fno-PIE:' -i "${S}/Make.common" || die
+
+ local f
+ for f in "${S}"/*/Make.tiano "${S}"/Make.common; do
+ sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \
+ -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \
+ -e '/^\s*-I \$(EDK2BASE).*$/d' \
+ "${f}" || die "Failed to patch Tianocore make file in" \
+ $(basename $(dirname ${f}))
+ done
+ for f in "${S}"/*/Make.tiano; do
+ sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \
+ -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \
+ -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \
+ "${f}" || die "Failed to patch Tianocore make file in" \
+ $(basename $(dirname ${f}))
+ done
+ sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \
+ || die "Failed to patch AutoGen.c"
+ for f in "${S}"/*/AutoGen.c; do
+ cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c"
+
+ #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U
+ #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4
+ #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel
+ #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU
+ GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel;
+ extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel;
+ #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
+ //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD
+ EOF
+ done
+}
+
+src_compile() {
+ # Prepare flags
+ local pecoff_header_size
+ [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \
+ || pecoff_header_size='0x220'
+ local make_flags=(
+ ARCH="${BUILDARCH}"
+ GENFW="/usr/bin/GenFw"
+ CC="$(tc-getCC)"
+ AS="$(tc-getAS)"
+ LD="$(tc-getLD)"
+ AR="$(tc-getAR)"
+ RANLIB="$(tc-getRANLIB)"
+ OBJCOPY="$(tc-getOBJCOPY)"
+ GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
+ -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs"
+ TIANO_LDSCRIPT="/usr/lib/GccBase.lds"
+ TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \
+ --script=\$(TIANO_LDSCRIPT) \
+ --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \
+ --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)"
+ )
+
+ # Make main EFI
+ local all_target
+ use gnuefi && all_target="gnuefi" || all_target="tiano"
+
+ if use custom-cflags; then
+ emake CFLAGS="${CFLAGS}" "${make_flags[@]}" ${all_target}
+ else
+ emake "${make_flags[@]}" ${all_target}
+ fi
+
+ # Make filesystem drivers
+ local gnuefi_target
+ use gnuefi && gnuefi_target="_gnuefi"
+ local fs
+ for fs in ${FS_USE}; do
+ fs=${fs#+}
+ if use "${fs}"; then
+ einfo "Building ${fs} filesystem driver"
+ if use custom-cflags; then
+ emake CFLAGS="${CFLAGS}" "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
+ else
+ emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
+ fi
+ fi
+ done
+}
+
+src_install() {
+ exeinto "/usr/share/${P}"
+ doexe refind-install
+ dosym "/usr/share/${P}/refind-install" "/usr/sbin/refind-install"
+
+ dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
+ if use doc; then
+ doman "${S}/docs/man/"*
+ dodoc -r ${DOCS}
+ fi
+
+ insinto "/usr/share/${P}/refind"
+ doins "${S}/refind/refind_${EFIARCH}.efi"
+ doins "${S}/refind.conf-sample"
+ doins -r images icons fonts banners
+
+ if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
+ doins -r "${S}/drivers_${EFIARCH}"
+ fi
+
+ insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
+ doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
+
+ insinto "/etc/refind.d"
+ doins -r "${S}/keys"
+
+ dosbin "${S}/mkrlconf"
+ dosbin "${S}/mvrefind"
+ dosbin "${S}/refind-mkdefault"
+}
+
+pkg_postinst() {
+ elog "rEFInd has been built and installed into ${EROOT%/}/usr/share/${P}"
+ elog "You will need to use the command 'refind-install' to install"
+ elog "the binaries into your EFI System Partition"
+ elog ""
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog "refind-install requires additional packages to be fully functional:"
+ elog " app-crypt/sbsigntool for binary signing for use with SecureBoot"
+ elog " sys-boot/efibootmgr for writing to NVRAM"
+ elog " sys-block/parted for automatic ESP location and mount"
+ elog ""
+ elog "refind-mkdefault requires >=dev-lang/python-3"
+ elog ""
+ elog "A sample configuration can be found at"
+ elog "${EROOT%}/usr/share/${P}/refind/refind.conf-sample"
+ else
+ if ! version_is_at_least "0.10.3" "${REPLACING_VERSIONS}"; then
+ elog "The new refind-mkdefault script requires >=dev-lang/python-3"
+ elog "to be installed"
+ elog ""
+ fi
+ ewarn "Note that this installation will not update any EFI binaries"
+ ewarn "on your EFI System Partition - this needs to be done manually"
+ fi
+}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2016-12-22 5:10 Aaron Bauman
0 siblings, 0 replies; 57+ messages in thread
From: Aaron Bauman @ 2016-12-22 5:10 UTC (permalink / raw
To: gentoo-commits
commit: e9c3fd6daa443d8bf99ffb88b15491a3317cf87e
Author: Aaron Bauman <bman <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 22 05:10:20 2016 +0000
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Thu Dec 22 05:10:20 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9c3fd6d
sys-boot/refind: amd64 stable wrt bug #563226
sys-boot/refind/refind-0.10.4-r2.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-boot/refind/refind-0.10.4-r2.ebuild b/sys-boot/refind/refind-0.10.4-r2.ebuild
index b427764..a23f381 100644
--- a/sys-boot/refind/refind-0.10.4-r2.ebuild
+++ b/sys-boot/refind/refind-0.10.4-r2.ebuild
@@ -13,7 +13,7 @@ SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="amd64 ~x86"
FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
IUSE="${FS_USE} -gnuefi doc -custom-cflags"
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2016-12-14 22:38 Sam Jorna
0 siblings, 0 replies; 57+ messages in thread
From: Sam Jorna @ 2016-12-14 22:38 UTC (permalink / raw
To: gentoo-commits
commit: e18eb3c31f350a35f1043decea2a220094bbce18
Author: Sam Jorna <wraeth <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 14 02:25:54 2016 +0000
Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org>
CommitDate: Wed Dec 14 22:28:28 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e18eb3c3
sys-boot/refind: revbump, disable build with PIE
Gentoo-bug: 598647
Acked-by: Stéphane Veyret <sveyret <AT> gmail.com>
Package-Manager: Portage-2.3.3, Repoman-2.3.1
sys-boot/refind/{refind-0.10.4-r1.ebuild => refind-0.10.4-r2.ebuild} | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sys-boot/refind/refind-0.10.4-r1.ebuild b/sys-boot/refind/refind-0.10.4-r2.ebuild
similarity index 98%
rename from sys-boot/refind/refind-0.10.4-r1.ebuild
rename to sys-boot/refind/refind-0.10.4-r2.ebuild
index af45a99..b427764 100644
--- a/sys-boot/refind/refind-0.10.4-r1.ebuild
+++ b/sys-boot/refind/refind-0.10.4-r2.ebuild
@@ -54,6 +54,10 @@ pkg_setup() {
src_prepare() {
default
+
+ # bug 598647 - PIE not supported
+ sed -e 's:CFLAGS =:& -fno-PIE:' -i "${S}/Make.common" || die
+
local f
for f in "${S}"/*/Make.tiano "${S}"/Make.common; do
sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2016-12-14 22:38 Sam Jorna
0 siblings, 0 replies; 57+ messages in thread
From: Sam Jorna @ 2016-12-14 22:38 UTC (permalink / raw
To: gentoo-commits
commit: 636e954d1e3931cfea387c984fa38a883fc7e8ae
Author: Sam Jorna <wraeth <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 14 02:22:26 2016 +0000
Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org>
CommitDate: Wed Dec 14 22:28:25 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=636e954d
sys-boot/refind: fix building with custom-cflags
Gentoo-bug: 598587
Acked-by: Stéphane Veyret <sveyret <AT> gmail.com>
Package-Manager: Portage-2.3.3, Repoman-2.3.1
sys-boot/refind/refind-0.10.4-r1.ebuild | 26 +++++++++++++++++++++++---
1 file changed, 23 insertions(+), 3 deletions(-)
diff --git a/sys-boot/refind/refind-0.10.4-r1.ebuild b/sys-boot/refind/refind-0.10.4-r1.ebuild
index 2bc85ce..af45a99 100644
--- a/sys-boot/refind/refind-0.10.4-r1.ebuild
+++ b/sys-boot/refind/refind-0.10.4-r1.ebuild
@@ -22,6 +22,18 @@ DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
DOCS="NEWS.txt README.txt docs/refind docs/Styles"
+pkg_pretend() {
+ if use custom-cflags; then
+ ewarn
+ ewarn "You have enabled building with USE=custom-cflags. Be aware that"
+ ewarn "using this can result in EFI binaries that fail to run and may"
+ ewarn "fail to build at all. This is strongly advised against by upstream."
+ ewarn
+ ewarn "See https://bugs.gentoo.org/598587#c3 for more information"
+ ewarn
+ fi
+}
+
pkg_setup() {
if use x86 ; then
export EFIARCH=ia32
@@ -96,12 +108,16 @@ src_compile() {
--defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \
--entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)"
)
- use custom-cflags && make_flags[CFLAGS]="${CFLAGS}"
# Make main EFI
local all_target
use gnuefi && all_target="gnuefi" || all_target="tiano"
- emake "${make_flags[@]}" ${all_target}
+
+ if use custom-cflags; then
+ emake CFLAGS="${CFLAGS}" "${make_flags[@]}" ${all_target}
+ else
+ emake "${make_flags[@]}" ${all_target}
+ fi
# Make filesystem drivers
local gnuefi_target
@@ -111,7 +127,11 @@ src_compile() {
fs=${fs#+}
if use "${fs}"; then
einfo "Building ${fs} filesystem driver"
- emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
+ if use custom-cflags; then
+ emake CFLAGS="${CFLAGS}" "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
+ else
+ emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
+ fi
fi
done
}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2016-12-14 22:38 Sam Jorna
0 siblings, 0 replies; 57+ messages in thread
From: Sam Jorna @ 2016-12-14 22:38 UTC (permalink / raw
To: gentoo-commits
commit: 3ef8c35acdbbe0d77dab622259b1ee978ac5c17b
Author: Sam Jorna <wraeth <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 14 00:34:48 2016 +0000
Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org>
CommitDate: Wed Dec 14 22:28:23 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ef8c35a
sys-boot/refind: remove old
Acked-by: Stéphane Veyret <sveyret <AT> gmail.com>
Package-Manager: Portage-2.3.3, Repoman-2.3.1
sys-boot/refind/Manifest | 5 -
sys-boot/refind/refind-0.10.0.ebuild | 108 -------------------
sys-boot/refind/refind-0.10.2-r1.ebuild | 175 ------------------------------
sys-boot/refind/refind-0.10.2-r2.ebuild | 166 -----------------------------
sys-boot/refind/refind-0.10.2.ebuild | 106 ------------------
sys-boot/refind/refind-0.10.3-r1.ebuild | 174 ------------------------------
sys-boot/refind/refind-0.10.3.ebuild | 183 --------------------------------
sys-boot/refind/refind-0.10.4.ebuild | 183 --------------------------------
sys-boot/refind/refind-0.9.0-r1.ebuild | 93 ----------------
sys-boot/refind/refind-0.9.2.ebuild | 101 ------------------
10 files changed, 1294 deletions(-)
diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest
index 497d93a..50441a1 100644
--- a/sys-boot/refind/Manifest
+++ b/sys-boot/refind/Manifest
@@ -1,6 +1 @@
-DIST refind-src-0.10.0.tar.gz 3336917 SHA256 845dc3a18d4c82c1e29d4dbef14a53f4de1401c5bb3ea10f3f39442efa870e2e SHA512 111caea0c1dbd9dde50e7b3cf47c7ad0d5e7f3bec3bb784397171950865cffd8cf589c6a1b821fabd6ed4be191a322757bf94255bfd449ee4a647ad597c3d7ab WHIRLPOOL 8e9070c89b83ff7e49b34c45f5f7d3ecd90824f8ba95eae4105636125500eafc29a7ae34a602cb268bd7bd4e90fe2a7e2a8bad4a9b68baa283a59d0a34ae1d1f
-DIST refind-src-0.10.2.tar.gz 2949593 SHA256 ef6aa17e911ea899c0d5e9482bfe657bc63b425976b0e2f936e67cbec3f1c34c SHA512 7f74109a2f2a8dd5889834c0d9cf9b186ed5487a737b442caed5ce2df06de13efc2553d264792e5f72e4bb281926a772aeca96187209d856a8b9abe9f831580c WHIRLPOOL 224c168b1eb980c850b008f0a6e2148b8bbc0ed1d591c4bdfb1c182af9430e5eb9ac8a58ec8f83a50320d30a946b1feeda12eb02a36450e7912462c6058cc7fc
-DIST refind-src-0.10.3.tar.gz 3967340 SHA256 652be9a25a026b4d4a6a3e73e8765fe31c948a88a2f413cde814815f93b858e4 SHA512 2a2274f508c66fa62352b34daab7faf9c7ff33f197b0ec125c0d025ab7c0ecb3e4cc2925f5e6888f06dc3a4fb4008a353d8b59e96d0a047695b0efb989f9f72d WHIRLPOOL 8a417cc1da124967618b379cb71737b83b9f4cfd3dd22f6896ed8720945c456b4785fe18fb2b51bb5b10c808e660341c2e86656195a24e5d39fcd13d24f97e8d
DIST refind-src-0.10.4.tar.gz 3970380 SHA256 c3e428b27a0d4c61ee052603aedea7118bf04a7917216b10bfde2a3d2a2442a5 SHA512 a75a6210ee51427c474e69c2de8c719545b2599c19f1c7541048b77ab1996a0e4b4b5fd4840f6240cd6704e5f5338cbaff432d7dc5ec4042854e26d6df18bed5 WHIRLPOOL a5d84831ea3c6282560fcc7491e7aabeb4a0598c34843a09b7baadf9398092a9495290180d05fbd935ad09207814a3fa4f72cfa3bf798f2422fecf07dc27037d
-DIST refind-src-0.9.0.zip 2939724 SHA256 842a01d7964bc8c8000a66e6d08f6fadb4c257d251b1277cebff0bf731e024aa SHA512 c49e3110e6b9f8d44dadae1ab828d3bf59bbce2da9170efed73db961135144ae9963b57d4cc39af2b15ecdf1f289359bda56c3d3e8f72d05be165ae5a3e2654d WHIRLPOOL 225a6b84ea7044e8fe0bab5e268c8c46a4523ab6f408d1bb2a94adfe54afe80c9c83ec0dc104945b332ae6c375c9d041972dee39baa43665588eb0dfc1fe4362
-DIST refind-src-0.9.2.zip 2941986 SHA256 9022da3d46493395c273e2d2fc555d1c786fb1b9c11b2912751a88fe3328212a SHA512 6636cf02bb69ffe699d5f9717d09b80db0e4330aa52c14949e8612caed11f032370db17700c15d285173729271d2434fd0fbc39f5b445a3c05255ee14d125d47 WHIRLPOOL 2d81427bf6cc9cf021a4ffc7238bcf914e380fea091cbefaa601e391cf28f43f7c3ef1181744e4aab3d71d2535d88ba633b13cdae696f0baddd26d3c2511a88d
diff --git a/sys-boot/refind/refind-0.10.0.ebuild b/sys-boot/refind/refind-0.10.0.ebuild
deleted file mode 100644
index 21a6b01..00000000
--- a/sys-boot/refind/refind-0.10.0.ebuild
+++ /dev/null
@@ -1,108 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit eutils
-
-DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
-HOMEPAGE="http://www.rodsbooks.com/refind/"
-
-SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
-
-LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
-IUSE="${FS_USE} doc"
-
-DEPEND=">=sys-boot/gnu-efi-3.0.2"
-
-DOCS="NEWS.txt README.txt docs/refind docs/Styles"
-
-pkg_setup() {
- if use x86 ; then
- export EFIARCH=ia32
- export BUILDARCH=ia32
- elif use amd64; then
- export EFIARCH=x64
- export BUILDARCH=x86_64
- else
- # Try to support anyway
- export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
- if [[ ${BUILDARCH} == "x86_64" ]] ; then
- export EFIARCH=x64
- else
- export EFIARCH=${ARCH}
- fi
- fi
-}
-
-src_prepare() {
- # Make refind-install "symlink-proof"
- epatch "${FILESDIR}/${PV}-refind-install-symlink.patch"
-}
-
-src_compile() {
- # Make main EFI
- all_target=gnuefi
- emake ARCH=${BUILDARCH} ${all_target}
-
- # Make filesystem drivers
- export gnuefi_target="_gnuefi"
- for fs in ${FS_USE}; do
- fs=${fs#+}
- if use "${fs}"; then
- einfo "Building ${fs} filesystem driver"
- rm -f "${S}/filesystems/fsw_efi.o"
- emake -C "${S}/filesystems" ARCH=${BUILDARCH} ${fs}${gnuefi_target}
- fi
- done
-}
-
-src_install() {
- exeinto "/usr/share/${P}"
- doexe refind-install
- dosym "/usr/share/${P}/refind-install" "/usr/sbin/refind-install"
-
- dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
- if use doc; then
- doman "${S}/docs/man/"*
- dodoc -r ${DOCS}
- fi
-
- insinto "/usr/share/${P}/refind"
- doins "${S}/refind/refind_${EFIARCH}.efi"
- doins -r "${S}/drivers_${EFIARCH}"
- doins "${S}/refind.conf-sample"
- doins -r images icons fonts banners
-
- insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
- doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
-
- insinto "/etc/refind.d"
- doins -r "${S}/keys"
-
- dosbin "${S}/mkrlconf"
- dosbin "${S}/mvrefind"
-}
-
-pkg_postinst() {
- elog "rEFInd has been built and installed into /usr/share/${P}"
- elog "You will need to use the command 'refind-install' to install"
- elog "the binaries into your EFI System Partition"
- if [[ -z "${REPLACING_VERSIONS}" ]]; then
- elog ""
- elog "refind-install requires additional packages to be fully functional:"
- elog " app-crypt/sbsigntool for binary signing for use with SecureBoot"
- elog " sys-boot/efibootmgr for writing to NVRAM"
- elog " sys-block/parted for automatic ESP location and mount"
- elog ""
- elog "A sample configuration can be found at"
- elog "/usr/share/${P}/refind/refind.conf-sample"
- else
- ewarn "Note that this will not update any EFI binaries on your EFI"
- ewarn "System Partition - this needs to be done manually."
- fi
-}
diff --git a/sys-boot/refind/refind-0.10.2-r1.ebuild b/sys-boot/refind/refind-0.10.2-r1.ebuild
deleted file mode 100644
index 5ef91b1..00000000
--- a/sys-boot/refind/refind-0.10.2-r1.ebuild
+++ /dev/null
@@ -1,175 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=6
-
-inherit toolchain-funcs flag-o-matic
-
-DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
-HOMEPAGE="http://www.rodsbooks.com/refind/"
-
-SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
-
-LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
-IUSE="${FS_USE} -gnuefi doc"
-
-DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
- !gnuefi? ( >=sys-boot/udk-2015 )"
-
-DOCS="NEWS.txt README.txt docs/refind docs/Styles"
-
-pkg_setup() {
- if use x86 ; then
- export EFIARCH=ia32
- export BUILDARCH=ia32
- elif use amd64; then
- export EFIARCH=x64
- export BUILDARCH=x86_64
- else
- # Try to support anyway
- export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
- if [[ ${BUILDARCH} == "x86_64" ]] ; then
- export EFIARCH=x64
- else
- export EFIARCH=${ARCH}
- fi
- fi
-}
-
-src_prepare() {
- default
- local f
- for f in "${S}"/*/Make.tiano "${S}"/Make.common; do
- sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \
- -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \
- -e '/^\s*-I \$(EDK2BASE).*$/d' \
- "${f}" || die "Failed to patch Tianocore make file in" \
- $(basename $(dirname ${f}))
- done
- for f in "${S}"/*/Make.tiano; do
- sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \
- -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \
- -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \
- "${f}" || die "Failed to patch Tianocore make file in" \
- $(basename $(dirname ${f}))
- done
- sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \
- || die "Failed to patch AutoGen.c"
- for f in "${S}"/*/AutoGen.c; do
- cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c"
-
- #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U
- #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4
- #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel
- #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU
- GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel;
- extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel;
- #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
- //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD
- EOF
- done
-}
-
-src_compile() {
- # Prepare flags
- [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \
- || pecoff_header_size='0x220'
-
- append-cflags $(test-flags-CC -fno-strict-aliasing)
- append-cflags $(test-flags-CC -fno-stack-protector)
- append-cflags $(test-flags-CC -fshort-wchar) $(test-flags-CC -Wall)
-
- # Bug #598004: required to prevent gcc from inserting calls to memcpy or memmove
- filter-flags -O*
- append-cflags $(test-flags-CC -Os)
-
- local make_flags=(
- ARCH="${BUILDARCH}"
- GENFW="/usr/bin/GenFw"
- CC="$(tc-getCC)"
- AS="$(tc-getAS)"
- LD="$(tc-getLD)"
- AR="$(tc-getAR)"
- RANLIB="$(tc-getRANLIB)"
- OBJCOPY="$(tc-getOBJCOPY)"
- CFLAGS="${CFLAGS}"
- LDFLAGS="${LDFLAGS}"
- GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
- -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs"
- TIANO_LDSCRIPT="/usr/lib/GccBase.lds"
- TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \
- --script=\$(TIANO_LDSCRIPT) \
- --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \
- --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)"
- )
-
- # Make main EFI
- local all_target
- use gnuefi && all_target="gnuefi" || all_target="tiano"
- emake "${make_flags[@]}" ${all_target}
-
- # Make filesystem drivers
- local gnuefi_target
- use gnuefi && gnuefi_target="_gnuefi"
- local fs
- for fs in ${FS_USE}; do
- fs=${fs#+}
- if use "${fs}"; then
- einfo "Building ${fs} filesystem driver"
- emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
- fi
- done
-}
-
-src_install() {
- exeinto "/usr/share/${P}"
- doexe refind-install
- dosym "/usr/share/${P}/refind-install" "/usr/sbin/refind-install"
-
- dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
- if use doc; then
- doman "${S}/docs/man/"*
- dodoc -r ${DOCS}
- fi
-
- insinto "/usr/share/${P}/refind"
- doins "${S}/refind/refind_${EFIARCH}.efi"
- doins "${S}/refind.conf-sample"
- doins -r images icons fonts banners
-
- if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
- doins -r "${S}/drivers_${EFIARCH}"
- fi
-
- insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
- doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
-
- insinto "/etc/refind.d"
- doins -r "${S}/keys"
-
- dosbin "${S}/mkrlconf"
- dosbin "${S}/mvrefind"
-}
-
-pkg_postinst() {
- elog "rEFInd has been built and installed into /usr/share/${P}"
- elog "You will need to use the command 'refind-install' to install"
- elog "the binaries into your EFI System Partition"
- if [[ -z "${REPLACING_VERSIONS}" ]]; then
- elog ""
- elog "refind-install requires additional packages to be fully functional:"
- elog " app-crypt/sbsigntool for binary signing for use with SecureBoot"
- elog " sys-boot/efibootmgr for writing to NVRAM"
- elog " sys-block/parted for automatic ESP location and mount"
- elog ""
- elog "A sample configuration can be found at"
- elog "/usr/share/${P}/refind/refind.conf-sample"
- else
- ewarn "Note that this will not update any EFI binaries on your EFI"
- ewarn "System Partition - this needs to be done manually."
- fi
-}
diff --git a/sys-boot/refind/refind-0.10.2-r2.ebuild b/sys-boot/refind/refind-0.10.2-r2.ebuild
deleted file mode 100644
index 8f0fe22..00000000
--- a/sys-boot/refind/refind-0.10.2-r2.ebuild
+++ /dev/null
@@ -1,166 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=6
-
-inherit toolchain-funcs flag-o-matic
-
-DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
-HOMEPAGE="http://www.rodsbooks.com/refind/"
-
-SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
-
-LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
-IUSE="${FS_USE} -gnuefi doc -custom-cflags"
-
-DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
- !gnuefi? ( >=sys-boot/udk-2015 )"
-
-DOCS="NEWS.txt README.txt docs/refind docs/Styles"
-
-pkg_setup() {
- if use x86 ; then
- export EFIARCH=ia32
- export BUILDARCH=ia32
- elif use amd64; then
- export EFIARCH=x64
- export BUILDARCH=x86_64
- else
- # Try to support anyway
- export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
- if [[ ${BUILDARCH} == "x86_64" ]] ; then
- export EFIARCH=x64
- else
- export EFIARCH=${ARCH}
- fi
- fi
-}
-
-src_prepare() {
- default
- local f
- for f in "${S}"/*/Make.tiano "${S}"/Make.common; do
- sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \
- -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \
- -e '/^\s*-I \$(EDK2BASE).*$/d' \
- "${f}" || die "Failed to patch Tianocore make file in" \
- $(basename $(dirname ${f}))
- done
- for f in "${S}"/*/Make.tiano; do
- sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \
- -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \
- -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \
- "${f}" || die "Failed to patch Tianocore make file in" \
- $(basename $(dirname ${f}))
- done
- sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \
- || die "Failed to patch AutoGen.c"
- for f in "${S}"/*/AutoGen.c; do
- cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c"
-
- #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U
- #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4
- #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel
- #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU
- GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel;
- extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel;
- #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
- //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD
- EOF
- done
-}
-
-src_compile() {
- # Prepare flags
- local pecoff_header_size
- [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \
- || pecoff_header_size='0x220'
- local make_flags=(
- ARCH="${BUILDARCH}"
- GENFW="/usr/bin/GenFw"
- CC="$(tc-getCC)"
- AS="$(tc-getAS)"
- LD="$(tc-getLD)"
- AR="$(tc-getAR)"
- RANLIB="$(tc-getRANLIB)"
- OBJCOPY="$(tc-getOBJCOPY)"
- GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
- -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs"
- TIANO_LDSCRIPT="/usr/lib/GccBase.lds"
- TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \
- --script=\$(TIANO_LDSCRIPT) \
- --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \
- --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)"
- )
- use custom-cflags && make_flags[CFLAGS]="${CFLAGS}"
-
- # Make main EFI
- local all_target
- use gnuefi && all_target="gnuefi" || all_target="tiano"
- emake "${make_flags[@]}" ${all_target}
-
- # Make filesystem drivers
- local gnuefi_target
- use gnuefi && gnuefi_target="_gnuefi"
- local fs
- for fs in ${FS_USE}; do
- fs=${fs#+}
- if use "${fs}"; then
- einfo "Building ${fs} filesystem driver"
- emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
- fi
- done
-}
-
-src_install() {
- exeinto "/usr/share/${P}"
- doexe refind-install
- dosym "/usr/share/${P}/refind-install" "/usr/sbin/refind-install"
-
- dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
- if use doc; then
- doman "${S}/docs/man/"*
- dodoc -r ${DOCS}
- fi
-
- insinto "/usr/share/${P}/refind"
- doins "${S}/refind/refind_${EFIARCH}.efi"
- doins "${S}/refind.conf-sample"
- doins -r images icons fonts banners
-
- if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
- doins -r "${S}/drivers_${EFIARCH}"
- fi
-
- insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
- doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
-
- insinto "/etc/refind.d"
- doins -r "${S}/keys"
-
- dosbin "${S}/mkrlconf"
- dosbin "${S}/mvrefind"
-}
-
-pkg_postinst() {
- elog "rEFInd has been built and installed into ${EROOT%/}/usr/share/${P}"
- elog "You will need to use the command 'refind-install' to install"
- elog "the binaries into your EFI System Partition"
- if [[ -z "${REPLACING_VERSIONS}" ]]; then
- elog ""
- elog "refind-install requires additional packages to be fully functional:"
- elog " app-crypt/sbsigntool for binary signing for use with SecureBoot"
- elog " sys-boot/efibootmgr for writing to NVRAM"
- elog " sys-block/parted for automatic ESP location and mount"
- elog ""
- elog "A sample configuration can be found at"
- elog "${EROOT%/}/usr/share/${P}/refind/refind.conf-sample"
- else
- ewarn "Note that this will not update any EFI binaries on your EFI"
- ewarn "System Partition - this needs to be done manually."
- fi
-}
diff --git a/sys-boot/refind/refind-0.10.2.ebuild b/sys-boot/refind/refind-0.10.2.ebuild
deleted file mode 100644
index db4455b..00000000
--- a/sys-boot/refind/refind-0.10.2.ebuild
+++ /dev/null
@@ -1,106 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit eutils
-
-DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
-HOMEPAGE="http://www.rodsbooks.com/refind/"
-
-SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
-
-LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
-IUSE="${FS_USE} doc"
-
-DEPEND=">=sys-boot/gnu-efi-3.0.2"
-
-DOCS="NEWS.txt README.txt docs/refind docs/Styles"
-
-pkg_setup() {
- if use x86 ; then
- export EFIARCH=ia32
- export BUILDARCH=ia32
- elif use amd64; then
- export EFIARCH=x64
- export BUILDARCH=x86_64
- else
- # Try to support anyway
- export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
- if [[ ${BUILDARCH} == "x86_64" ]] ; then
- export EFIARCH=x64
- else
- export EFIARCH=${ARCH}
- fi
- fi
-}
-
-src_compile() {
- # Make main EFI
- all_target=gnuefi
- emake ARCH=${BUILDARCH} ${all_target}
-
- # Make filesystem drivers
- export gnuefi_target="_gnuefi"
- for fs in ${FS_USE}; do
- fs=${fs#+}
- if use "${fs}"; then
- einfo "Building ${fs} filesystem driver"
- rm -f "${S}/filesystems/fsw_efi.o"
- emake -C "${S}/filesystems" ARCH=${BUILDARCH} ${fs}${gnuefi_target}
- fi
- done
-}
-
-src_install() {
- exeinto "/usr/share/${P}"
- doexe refind-install
- dosym "/usr/share/${P}/refind-install" "/usr/sbin/refind-install"
-
- dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
- if use doc; then
- doman "${S}/docs/man/"*
- dodoc -r ${DOCS}
- fi
-
- insinto "/usr/share/${P}/refind"
- doins "${S}/refind/refind_${EFIARCH}.efi"
- doins "${S}/refind.conf-sample"
- doins -r images icons fonts banners
-
- if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
- doins -r "${S}/drivers_${EFIARCH}"
- fi
-
- insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
- doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
-
- insinto "/etc/refind.d"
- doins -r "${S}/keys"
-
- dosbin "${S}/mkrlconf"
- dosbin "${S}/mvrefind"
-}
-
-pkg_postinst() {
- elog "rEFInd has been built and installed into /usr/share/${P}"
- elog "You will need to use the command 'refind-install' to install"
- elog "the binaries into your EFI System Partition"
- if [[ -z "${REPLACING_VERSIONS}" ]]; then
- elog ""
- elog "refind-install requires additional packages to be fully functional:"
- elog " app-crypt/sbsigntool for binary signing for use with SecureBoot"
- elog " sys-boot/efibootmgr for writing to NVRAM"
- elog " sys-block/parted for automatic ESP location and mount"
- elog ""
- elog "A sample configuration can be found at"
- elog "/usr/share/${P}/refind/refind.conf-sample"
- else
- ewarn "Note that this will not update any EFI binaries on your EFI"
- ewarn "System Partition - this needs to be done manually."
- fi
-}
diff --git a/sys-boot/refind/refind-0.10.3-r1.ebuild b/sys-boot/refind/refind-0.10.3-r1.ebuild
deleted file mode 100644
index a5556a3..00000000
--- a/sys-boot/refind/refind-0.10.3-r1.ebuild
+++ /dev/null
@@ -1,174 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=6
-
-inherit toolchain-funcs flag-o-matic versionator
-
-DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
-HOMEPAGE="http://www.rodsbooks.com/refind/"
-
-SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
-
-LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
-IUSE="${FS_USE} -gnuefi doc -custom-cflags"
-
-DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
- !gnuefi? ( >=sys-boot/udk-2015 )"
-
-DOCS="NEWS.txt README.txt docs/refind docs/Styles"
-
-pkg_setup() {
- if use x86 ; then
- export EFIARCH=ia32
- export BUILDARCH=ia32
- elif use amd64; then
- export EFIARCH=x64
- export BUILDARCH=x86_64
- else
- # Try to support anyway
- export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
- if [[ ${BUILDARCH} == "x86_64" ]] ; then
- export EFIARCH=x64
- else
- export EFIARCH=${ARCH}
- fi
- fi
-}
-
-src_prepare() {
- default
- local f
- for f in "${S}"/*/Make.tiano "${S}"/Make.common; do
- sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \
- -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \
- -e '/^\s*-I \$(EDK2BASE).*$/d' \
- "${f}" || die "Failed to patch Tianocore make file in" \
- $(basename $(dirname ${f}))
- done
- for f in "${S}"/*/Make.tiano; do
- sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \
- -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \
- -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \
- "${f}" || die "Failed to patch Tianocore make file in" \
- $(basename $(dirname ${f}))
- done
- sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \
- || die "Failed to patch AutoGen.c"
- for f in "${S}"/*/AutoGen.c; do
- cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c"
-
- #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U
- #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4
- #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel
- #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU
- GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel;
- extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel;
- #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
- //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD
- EOF
- done
-}
-
-src_compile() {
- # Prepare flags
- local pecoff_header_size
- [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \
- || pecoff_header_size='0x220'
- local make_flags=(
- ARCH="${BUILDARCH}"
- GENFW="/usr/bin/GenFw"
- CC="$(tc-getCC)"
- AS="$(tc-getAS)"
- LD="$(tc-getLD)"
- AR="$(tc-getAR)"
- RANLIB="$(tc-getRANLIB)"
- OBJCOPY="$(tc-getOBJCOPY)"
- GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
- -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs"
- TIANO_LDSCRIPT="/usr/lib/GccBase.lds"
- TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \
- --script=\$(TIANO_LDSCRIPT) \
- --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \
- --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)"
- )
- use custom-cflags && make_flags[CFLAGS]="${CFLAGS}"
-
- # Make main EFI
- local all_target
- use gnuefi && all_target="gnuefi" || all_target="tiano"
- emake "${make_flags[@]}" ${all_target}
-
- # Make filesystem drivers
- local gnuefi_target
- use gnuefi && gnuefi_target="_gnuefi"
- local fs
- for fs in ${FS_USE}; do
- fs=${fs#+}
- if use "${fs}"; then
- einfo "Building ${fs} filesystem driver"
- emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
- fi
- done
-}
-
-src_install() {
- exeinto "/usr/share/${P}"
- doexe refind-install
- dosym "/usr/share/${P}/refind-install" "/usr/sbin/refind-install"
-
- dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
- if use doc; then
- doman "${S}/docs/man/"*
- dodoc -r ${DOCS}
- fi
-
- insinto "/usr/share/${P}/refind"
- doins "${S}/refind/refind_${EFIARCH}.efi"
- doins "${S}/refind.conf-sample"
- doins -r images icons fonts banners
-
- if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
- doins -r "${S}/drivers_${EFIARCH}"
- fi
-
- insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
- doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
-
- insinto "/etc/refind.d"
- doins -r "${S}/keys"
-
- dosbin "${S}/mkrlconf"
- dosbin "${S}/mvrefind"
- dosbin "${S}/refind-mkdefault"
-}
-
-pkg_postinst() {
- elog "rEFInd has been built and installed into ${EROOT%/}/usr/share/${P}"
- elog "You will need to use the command 'refind-install' to install"
- elog "the binaries into your EFI System Partition"
- elog ""
- if [[ -z "${REPLACING_VERSIONS}" ]]; then
- elog "refind-install requires additional packages to be fully functional:"
- elog " app-crypt/sbsigntool for binary signing for use with SecureBoot"
- elog " sys-boot/efibootmgr for writing to NVRAM"
- elog " sys-block/parted for automatic ESP location and mount"
- elog ""
- elog "refind-mkdefault requires >=dev-lang/python-3"
- elog ""
- elog "A sample configuration can be found at"
- elog "${EROOT%/}/usr/share/${P}/refind/refind.conf-sample"
- else
- if ! version_is_at_least "0.10.3" "${REPLACING_VERSIONS}"; then
- elog "The new refind-mkdefault script requires >=dev-lang/python-3"
- elog "to be installed"
- elog ""
- fi
- ewarn "Note that this installation will not update any EFI binaries"
- ewarn "on your EFI System Partition - this needs to be done manually"
- fi
-}
diff --git a/sys-boot/refind/refind-0.10.3.ebuild b/sys-boot/refind/refind-0.10.3.ebuild
deleted file mode 100644
index 1ce9c8d..00000000
--- a/sys-boot/refind/refind-0.10.3.ebuild
+++ /dev/null
@@ -1,183 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=6
-
-inherit toolchain-funcs flag-o-matic versionator
-
-DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
-HOMEPAGE="http://www.rodsbooks.com/refind/"
-
-SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
-
-LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
-IUSE="${FS_USE} -gnuefi doc"
-
-DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
- !gnuefi? ( >=sys-boot/udk-2015 )"
-
-DOCS="NEWS.txt README.txt docs/refind docs/Styles"
-
-pkg_setup() {
- if use x86 ; then
- export EFIARCH=ia32
- export BUILDARCH=ia32
- elif use amd64; then
- export EFIARCH=x64
- export BUILDARCH=x86_64
- else
- # Try to support anyway
- export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
- if [[ ${BUILDARCH} == "x86_64" ]] ; then
- export EFIARCH=x64
- else
- export EFIARCH=${ARCH}
- fi
- fi
-}
-
-src_prepare() {
- default
- local f
- for f in "${S}"/*/Make.tiano "${S}"/Make.common; do
- sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \
- -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \
- -e '/^\s*-I \$(EDK2BASE).*$/d' \
- "${f}" || die "Failed to patch Tianocore make file in" \
- $(basename $(dirname ${f}))
- done
- for f in "${S}"/*/Make.tiano; do
- sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \
- -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \
- -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \
- "${f}" || die "Failed to patch Tianocore make file in" \
- $(basename $(dirname ${f}))
- done
- sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \
- || die "Failed to patch AutoGen.c"
- for f in "${S}"/*/AutoGen.c; do
- cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c"
-
- #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U
- #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4
- #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel
- #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU
- GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel;
- extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel;
- #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
- //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD
- EOF
- done
-}
-
-src_compile() {
- # Prepare flags
- [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \
- || pecoff_header_size='0x220'
-
- append-cflags $(test-flags-CC -fno-strict-aliasing)
- append-cflags $(test-flags-CC -fno-stack-protector)
- append-cflags $(test-flags-CC -fshort-wchar) $(test-flags-CC -Wall)
-
- # Bug #598004: required to prevent gcc from inserting calls to memcpy or memmove
- filter-flags -O*
- append-cflags $(test-flags-CC -Os)
-
- local make_flags=(
- ARCH="${BUILDARCH}"
- GENFW="/usr/bin/GenFw"
- CC="$(tc-getCC)"
- AS="$(tc-getAS)"
- LD="$(tc-getLD)"
- AR="$(tc-getAR)"
- RANLIB="$(tc-getRANLIB)"
- OBJCOPY="$(tc-getOBJCOPY)"
- CFLAGS="${CFLAGS}"
- LDFLAGS="${LDFLAGS}"
- GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
- -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs"
- TIANO_LDSCRIPT="/usr/lib/GccBase.lds"
- TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \
- --script=\$(TIANO_LDSCRIPT) \
- --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \
- --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)"
- )
-
- # Make main EFI
- local all_target
- use gnuefi && all_target="gnuefi" || all_target="tiano"
- emake "${make_flags[@]}" ${all_target}
-
- # Make filesystem drivers
- local gnuefi_target
- use gnuefi && gnuefi_target="_gnuefi"
- local fs
- for fs in ${FS_USE}; do
- fs=${fs#+}
- if use "${fs}"; then
- einfo "Building ${fs} filesystem driver"
- emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
- fi
- done
-}
-
-src_install() {
- exeinto "/usr/share/${P}"
- doexe refind-install
- dosym "/usr/share/${P}/refind-install" "/usr/sbin/refind-install"
-
- dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
- if use doc; then
- doman "${S}/docs/man/"*
- dodoc -r ${DOCS}
- fi
-
- insinto "/usr/share/${P}/refind"
- doins "${S}/refind/refind_${EFIARCH}.efi"
- doins "${S}/refind.conf-sample"
- doins -r images icons fonts banners
-
- if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
- doins -r "${S}/drivers_${EFIARCH}"
- fi
-
- insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
- doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
-
- insinto "/etc/refind.d"
- doins -r "${S}/keys"
-
- dosbin "${S}/mkrlconf"
- dosbin "${S}/mvrefind"
- dosbin "${S}/refind-mkdefault"
-}
-
-pkg_postinst() {
- elog "rEFInd has been built and installed into /usr/share/${P}"
- elog "You will need to use the command 'refind-install' to install"
- elog "the binaries into your EFI System Partition"
- elog ""
- if [[ -z "${REPLACING_VERSIONS}" ]]; then
- elog "refind-install requires additional packages to be fully functional:"
- elog " app-crypt/sbsigntool for binary signing for use with SecureBoot"
- elog " sys-boot/efibootmgr for writing to NVRAM"
- elog " sys-block/parted for automatic ESP location and mount"
- elog ""
- elog "refind-mkdefault requires >=dev-lang/python-3"
- elog ""
- elog "A sample configuration can be found at"
- elog "/usr/share/${P}/refind/refind.conf-sample"
- else
- if ! version_is_at_least "0.10.3" "${REPLACING_VERSIONS}"; then
- elog "The new refind-mkdefault script requires >=dev-lang/python-3"
- elog "to be installed"
- elog ""
- fi
- ewarn "Note that this installation will not update any EFI binaries"
- ewarn "on your EFI System Partition - this needs to be done manually"
- fi
-}
diff --git a/sys-boot/refind/refind-0.10.4.ebuild b/sys-boot/refind/refind-0.10.4.ebuild
deleted file mode 100644
index 1ce9c8d..00000000
--- a/sys-boot/refind/refind-0.10.4.ebuild
+++ /dev/null
@@ -1,183 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=6
-
-inherit toolchain-funcs flag-o-matic versionator
-
-DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
-HOMEPAGE="http://www.rodsbooks.com/refind/"
-
-SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
-
-LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
-IUSE="${FS_USE} -gnuefi doc"
-
-DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
- !gnuefi? ( >=sys-boot/udk-2015 )"
-
-DOCS="NEWS.txt README.txt docs/refind docs/Styles"
-
-pkg_setup() {
- if use x86 ; then
- export EFIARCH=ia32
- export BUILDARCH=ia32
- elif use amd64; then
- export EFIARCH=x64
- export BUILDARCH=x86_64
- else
- # Try to support anyway
- export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
- if [[ ${BUILDARCH} == "x86_64" ]] ; then
- export EFIARCH=x64
- else
- export EFIARCH=${ARCH}
- fi
- fi
-}
-
-src_prepare() {
- default
- local f
- for f in "${S}"/*/Make.tiano "${S}"/Make.common; do
- sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \
- -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \
- -e '/^\s*-I \$(EDK2BASE).*$/d' \
- "${f}" || die "Failed to patch Tianocore make file in" \
- $(basename $(dirname ${f}))
- done
- for f in "${S}"/*/Make.tiano; do
- sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \
- -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \
- -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \
- "${f}" || die "Failed to patch Tianocore make file in" \
- $(basename $(dirname ${f}))
- done
- sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \
- || die "Failed to patch AutoGen.c"
- for f in "${S}"/*/AutoGen.c; do
- cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c"
-
- #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U
- #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4
- #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel
- #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU
- GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel;
- extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel;
- #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
- //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD
- EOF
- done
-}
-
-src_compile() {
- # Prepare flags
- [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \
- || pecoff_header_size='0x220'
-
- append-cflags $(test-flags-CC -fno-strict-aliasing)
- append-cflags $(test-flags-CC -fno-stack-protector)
- append-cflags $(test-flags-CC -fshort-wchar) $(test-flags-CC -Wall)
-
- # Bug #598004: required to prevent gcc from inserting calls to memcpy or memmove
- filter-flags -O*
- append-cflags $(test-flags-CC -Os)
-
- local make_flags=(
- ARCH="${BUILDARCH}"
- GENFW="/usr/bin/GenFw"
- CC="$(tc-getCC)"
- AS="$(tc-getAS)"
- LD="$(tc-getLD)"
- AR="$(tc-getAR)"
- RANLIB="$(tc-getRANLIB)"
- OBJCOPY="$(tc-getOBJCOPY)"
- CFLAGS="${CFLAGS}"
- LDFLAGS="${LDFLAGS}"
- GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
- -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs"
- TIANO_LDSCRIPT="/usr/lib/GccBase.lds"
- TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \
- --script=\$(TIANO_LDSCRIPT) \
- --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \
- --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)"
- )
-
- # Make main EFI
- local all_target
- use gnuefi && all_target="gnuefi" || all_target="tiano"
- emake "${make_flags[@]}" ${all_target}
-
- # Make filesystem drivers
- local gnuefi_target
- use gnuefi && gnuefi_target="_gnuefi"
- local fs
- for fs in ${FS_USE}; do
- fs=${fs#+}
- if use "${fs}"; then
- einfo "Building ${fs} filesystem driver"
- emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
- fi
- done
-}
-
-src_install() {
- exeinto "/usr/share/${P}"
- doexe refind-install
- dosym "/usr/share/${P}/refind-install" "/usr/sbin/refind-install"
-
- dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
- if use doc; then
- doman "${S}/docs/man/"*
- dodoc -r ${DOCS}
- fi
-
- insinto "/usr/share/${P}/refind"
- doins "${S}/refind/refind_${EFIARCH}.efi"
- doins "${S}/refind.conf-sample"
- doins -r images icons fonts banners
-
- if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
- doins -r "${S}/drivers_${EFIARCH}"
- fi
-
- insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
- doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
-
- insinto "/etc/refind.d"
- doins -r "${S}/keys"
-
- dosbin "${S}/mkrlconf"
- dosbin "${S}/mvrefind"
- dosbin "${S}/refind-mkdefault"
-}
-
-pkg_postinst() {
- elog "rEFInd has been built and installed into /usr/share/${P}"
- elog "You will need to use the command 'refind-install' to install"
- elog "the binaries into your EFI System Partition"
- elog ""
- if [[ -z "${REPLACING_VERSIONS}" ]]; then
- elog "refind-install requires additional packages to be fully functional:"
- elog " app-crypt/sbsigntool for binary signing for use with SecureBoot"
- elog " sys-boot/efibootmgr for writing to NVRAM"
- elog " sys-block/parted for automatic ESP location and mount"
- elog ""
- elog "refind-mkdefault requires >=dev-lang/python-3"
- elog ""
- elog "A sample configuration can be found at"
- elog "/usr/share/${P}/refind/refind.conf-sample"
- else
- if ! version_is_at_least "0.10.3" "${REPLACING_VERSIONS}"; then
- elog "The new refind-mkdefault script requires >=dev-lang/python-3"
- elog "to be installed"
- elog ""
- fi
- ewarn "Note that this installation will not update any EFI binaries"
- ewarn "on your EFI System Partition - this needs to be done manually"
- fi
-}
diff --git a/sys-boot/refind/refind-0.9.0-r1.ebuild b/sys-boot/refind/refind-0.9.0-r1.ebuild
deleted file mode 100644
index 9f616d5..00000000
--- a/sys-boot/refind/refind-0.9.0-r1.ebuild
+++ /dev/null
@@ -1,93 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit eutils
-
-DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
-HOMEPAGE="http://www.rodsbooks.com/refind/index.html"
-SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.zip"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~x86 ~amd64"
-IUSE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
-
-DOCS="NEWS.txt README.txt docs/refind docs/Styles"
-
-DEPEND=">=sys-boot/gnu-efi-3.0u"
-RDEPEND=""
-
-src_prepare() {
- # bug 560280: Relocate the install location of refind.conf-sample
- local oldstring="\$RefindDir\/refind.conf-sample"
- local newstring="\/usr\/share\/doc\/${PF}\/refind.conf-sample"
- sed -e "s/$oldstring/$newstring/" -i install.sh || die
-
- epatch_user
-}
-
-src_compile() {
- emake gnuefi
-
- pushd "${S}/filesystems" > /dev/null
- for fs in ${IUSE}; do
- fs=${fs#+}
- if use "${fs}"; then
- einfo "Building ${fs} filesystem driver"
- rm -f fsw_efi.o
-
- # ARCH detection in the Makefile not working
- use x86 && buildarch=ia32
- use amd64 && buildarch=x86_64
- emake DRIVERNAME=${fs} ARCH=${buildarch} -f Make.gnuefi
- fi
- done
- popd > /dev/null
-}
-
-src_install() {
- exeinto "/usr/share/${P}"
- doexe install.sh
-
- dodoc -r ${DOCS}
-
- dodoc refind.conf-sample
- docompress -x /usr/share/doc/${PF}/refind.conf-sample
-
- insinto "/usr/share/${P}/refind"
- use x86 && doins refind/refind_ia32.efi
- use amd64 && doins refind/refind_x64.efi
-
- use x86 && filearch=ia32
- use amd64 && filearch=x64
- insinto "/usr/share/${P}/refind/drivers_${filearch}"
- for fs in ${IUSE}; do
- fs=${fs#+}
- if use "${fs}"; then
- doins "drivers_${filearch}/${fs}_${filearch}.efi"
- fi
- done
-
- insinto "/usr/share/${P}/refind"
- doins -r images icons fonts banners
-
- insinto "/usr/share/${P}/keys"
- doins keys/*
-}
-
-pkg_postinst() {
- einfo ""
- einfo "EFI executables have been built and installed into /usr/share/${P}"
- einfo "You will need to use the provided install script 'install.sh' or"
- einfo "manually install the binaries into your EFI System Partition"
- einfo ""
- einfo "For key generation and binary signing for use with SecureBoot, the"
- einfo "package app-crypt/sbsigntool can be installed"
- einfo ""
- einfo "A sample configration can be found at"
- einfo "/usr/share/doc/${PF}/refind.conf-sample"
- einfo ""
-}
diff --git a/sys-boot/refind/refind-0.9.2.ebuild b/sys-boot/refind/refind-0.9.2.ebuild
deleted file mode 100644
index 7520444..00000000
--- a/sys-boot/refind/refind-0.9.2.ebuild
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit eutils
-
-if [[ ${PV} == *9999 ]]; then
- inherit git-r3
- EGIT_REPO_URI="git://git.code.sf.net/p/refind/code"
-else
- SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.zip"
- KEYWORDS="~x86 ~amd64"
-fi
-
-DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
-HOMEPAGE="http://www.rodsbooks.com/refind/index.html"
-
-LICENSE="GPL-3"
-SLOT="0"
-IUSE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
-
-DOCS="NEWS.txt README.txt docs/refind docs/Styles"
-
-DEPEND=">=sys-boot/gnu-efi-3.0u"
-
-src_prepare() {
- # bug 560280: Relocate the install location of refind.conf-sample
- local oldstring="\$RefindDir\/refind.conf-sample"
- local newstring="\/usr\/share\/doc\/${PF}\/refind.conf-sample"
- sed -e "s/$oldstring/$newstring/" -i install.sh || die
-
- epatch_user
-}
-
-src_compile() {
- emake gnuefi
-
- pushd "${S}/filesystems" > /dev/null
- for fs in ${IUSE}; do
- fs=${fs#+}
- if use "${fs}"; then
- einfo "Building ${fs} filesystem driver"
- rm -f fsw_efi.o
-
- # ARCH detection in the Makefile not working
- use x86 && buildarch=ia32
- use amd64 && buildarch=x86_64
- emake DRIVERNAME=${fs} ARCH=${buildarch} -f Make.gnuefi
- fi
- done
- popd > /dev/null
-}
-
-src_install() {
- exeinto "/usr/share/${P}"
- doexe install.sh
-
- dodoc -r ${DOCS}
-
- dodoc refind.conf-sample
- docompress -x /usr/share/doc/${PF}/refind.conf-sample
-
- insinto "/usr/share/${P}/refind"
- use x86 && doins refind/refind_ia32.efi
- use amd64 && doins refind/refind_x64.efi
-
- use x86 && filearch=ia32
- use amd64 && filearch=x64
- insinto "/usr/share/${P}/refind/drivers_${filearch}"
- for fs in ${IUSE}; do
- fs=${fs#+}
- if use "${fs}"; then
- doins "drivers_${filearch}/${fs}_${filearch}.efi"
- fi
- done
-
- insinto "/usr/share/${P}/refind"
- doins -r images icons fonts banners
-
- insinto "/usr/share/${P}/keys"
- doins keys/*
-}
-
-pkg_postinst() {
- elog "EFI executables have been built and installed into /usr/share/${P}"
- elog "You will need to use the provided install script 'install.sh' or"
- elog "manually install the binaries into your EFI System Partition"
- if [[ -z "${REPLACING_VERSIONS}" ]]; then
- elog ""
- elog "For key generation and binary signing for use with SecureBoot, the"
- elog "package app-crypt/sbsigntool can be installed"
- elog ""
- elog "A sample configration can be found at"
- elog "/usr/share/doc/${PF}/refind.conf-sample"
- else
- ewarn "Note that this will not update any EFI binaries on your EFI"
- ewarn "System Partition - this needs to be done manually."
- fi
-}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2016-11-06 16:24 Göktürk Yüksek
0 siblings, 0 replies; 57+ messages in thread
From: Göktürk Yüksek @ 2016-11-06 16:24 UTC (permalink / raw
To: gentoo-commits
commit: b2a111b7db0784f57894abdea13febc300f4d235
Author: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 6 16:15:42 2016 +0000
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Sun Nov 6 16:23:42 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2a111b7
sys-boot/refind: add missing EROOT in postinst
Package-Manager: portage-2.2.28
sys-boot/refind/refind-0.10.2-r2.ebuild | 4 ++--
sys-boot/refind/refind-0.10.3-r1.ebuild | 4 ++--
sys-boot/refind/refind-0.10.4-r1.ebuild | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/sys-boot/refind/refind-0.10.2-r2.ebuild b/sys-boot/refind/refind-0.10.2-r2.ebuild
index 1d50296..8f0fe22 100644
--- a/sys-boot/refind/refind-0.10.2-r2.ebuild
+++ b/sys-boot/refind/refind-0.10.2-r2.ebuild
@@ -147,7 +147,7 @@ src_install() {
}
pkg_postinst() {
- elog "rEFInd has been built and installed into /usr/share/${P}"
+ elog "rEFInd has been built and installed into ${EROOT%/}/usr/share/${P}"
elog "You will need to use the command 'refind-install' to install"
elog "the binaries into your EFI System Partition"
if [[ -z "${REPLACING_VERSIONS}" ]]; then
@@ -158,7 +158,7 @@ pkg_postinst() {
elog " sys-block/parted for automatic ESP location and mount"
elog ""
elog "A sample configuration can be found at"
- elog "/usr/share/${P}/refind/refind.conf-sample"
+ elog "${EROOT%/}/usr/share/${P}/refind/refind.conf-sample"
else
ewarn "Note that this will not update any EFI binaries on your EFI"
ewarn "System Partition - this needs to be done manually."
diff --git a/sys-boot/refind/refind-0.10.3-r1.ebuild b/sys-boot/refind/refind-0.10.3-r1.ebuild
index fcf8d9d..a5556a3 100644
--- a/sys-boot/refind/refind-0.10.3-r1.ebuild
+++ b/sys-boot/refind/refind-0.10.3-r1.ebuild
@@ -148,7 +148,7 @@ src_install() {
}
pkg_postinst() {
- elog "rEFInd has been built and installed into /usr/share/${P}"
+ elog "rEFInd has been built and installed into ${EROOT%/}/usr/share/${P}"
elog "You will need to use the command 'refind-install' to install"
elog "the binaries into your EFI System Partition"
elog ""
@@ -161,7 +161,7 @@ pkg_postinst() {
elog "refind-mkdefault requires >=dev-lang/python-3"
elog ""
elog "A sample configuration can be found at"
- elog "/usr/share/${P}/refind/refind.conf-sample"
+ elog "${EROOT%/}/usr/share/${P}/refind/refind.conf-sample"
else
if ! version_is_at_least "0.10.3" "${REPLACING_VERSIONS}"; then
elog "The new refind-mkdefault script requires >=dev-lang/python-3"
diff --git a/sys-boot/refind/refind-0.10.4-r1.ebuild b/sys-boot/refind/refind-0.10.4-r1.ebuild
index fcf8d9d..2bc85ce 100644
--- a/sys-boot/refind/refind-0.10.4-r1.ebuild
+++ b/sys-boot/refind/refind-0.10.4-r1.ebuild
@@ -148,7 +148,7 @@ src_install() {
}
pkg_postinst() {
- elog "rEFInd has been built and installed into /usr/share/${P}"
+ elog "rEFInd has been built and installed into ${EROOT%/}/usr/share/${P}"
elog "You will need to use the command 'refind-install' to install"
elog "the binaries into your EFI System Partition"
elog ""
@@ -161,7 +161,7 @@ pkg_postinst() {
elog "refind-mkdefault requires >=dev-lang/python-3"
elog ""
elog "A sample configuration can be found at"
- elog "/usr/share/${P}/refind/refind.conf-sample"
+ elog "${EROOT%}/usr/share/${P}/refind/refind.conf-sample"
else
if ! version_is_at_least "0.10.3" "${REPLACING_VERSIONS}"; then
elog "The new refind-mkdefault script requires >=dev-lang/python-3"
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2016-11-06 16:24 Göktürk Yüksek
0 siblings, 0 replies; 57+ messages in thread
From: Göktürk Yüksek @ 2016-11-06 16:24 UTC (permalink / raw
To: gentoo-commits
commit: 6122936ded63cb14471f0402aa75ad96405f7e04
Author: Stéphane Veyret <stephane.veyret <AT> neptura <DOT> org>
AuthorDate: Sun Nov 6 15:33:15 2016 +0000
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Sun Nov 6 16:23:42 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6122936d
sys-boot/refind: Put French first as temporary workaround, bug #599060
Portage local use flag creation is buggy and using the last seen language, so keep english last.
Package-Manager: portage-2.3.0
sys-boot/refind/metadata.xml | 54 +++++++++++++++++++++-----------------------
1 file changed, 26 insertions(+), 28 deletions(-)
diff --git a/sys-boot/refind/metadata.xml b/sys-boot/refind/metadata.xml
index 99f8fd6..3bcc447 100644
--- a/sys-boot/refind/metadata.xml
+++ b/sys-boot/refind/metadata.xml
@@ -13,6 +13,22 @@
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
+ <longdescription lang="fr">
+Un gestionnaire d'amorçage pour ordinateur EFI ou UEFI tel que tous les Macs
+contenant un processeur Intel et les PC récents (2011 et après). rEFInd affiche
+un menu d'amorçage montrant tous les gestionnaires d'amorçage sur les
+partitions EFI accessibles et optionnellement les partitions amorçable en BIOS
+sur Macs et les entrées BIOS sur les PC UEFI avec CSM. Les systèmes
+d'exploitation compatibles EFI, incluant Linux, fournissent des gestionnaires
+d'amorçage que rEFInd détecte et démarre. rEFInd peut démarrer les
+gestionnaires d'amorçage EFI Linux tel que ELILO, GRUB Legacy, GRUB 2 ainsi que
+les noyaux 3.3.0 et suivants avec le support EFI stub. Les pilotes EFI pour les
+sytèmes de fichiers ext2/3/4fs, ReiserFS, Btrfs, NTFS, HFS+ et ISO-9660
+permettent à rEFInd de lire les gestionnaires d'amorçage également depuis ces
+systèmes de fichiers. La capacité de rEFInd à détecter les gestionnaires
+d'amorçage au moment de l'exécution le rend très facile à utiliser, en
+particulier associé à des noyau Linux qui fournissent un support EFI stub.
+ </longdescription>
<longdescription lang="en">
A graphical boot manager for EFI- and UEFI-based computers, such as all
Intel-based Macs and recent (most 2011 and later) PCs. rEFInd presents a
@@ -27,33 +43,6 @@ loaders from these filesystems, too. rEFInd's ability to detect boot
loaders at runtime makes it very easy to use, particularly when paired with
Linux kernels that provide EFI stub support.
</longdescription>
- <longdescription lang="fr">
-Un gestionnaire d'amorçage pour ordinateur EFI ou UEFI tel que tous les Macs
-contenant un processeur Intel et les PC récents (2011 et après). rEFInd affiche
-un menu d'amorçage montrant tous les gestionnaires d'amorçage sur les
-partitions EFI accessibles et optionnellement les partitions démarrable en BIOS
-sur Macs et les entrées BIOS sur les PC UEFI avec CSM. Les systèmes
-d'exploitation compatibles EFI, incluant Linux, fournissent des gestionnaires
-d'amorçage que rEFInd détect et démarre. rEFInd peut démarrer les gestionnaires
-d'amorçage EFI Linux tel que ELILO, GRUB Legacy, GRUB 2 ainsi que les noyaux
-3.3.0 et suivants avec le support EFI stub. Les pilotes EFI pour les sytèmes de
-fichiers ext2/3/4fs, ReiserFS, Btrfs, NTFS, HFS+ et ISO-9660 permettent à
-rEFInd de lire les gestionnaires d'amorçage également depuis ces systèmes de
-fichiers. La capacité de rEFInd à détecter les gestionnaires d'amorçage au
-moment de l'exécution le rend très facile à utiliser, en particulier associé à
-des noyau Linux qui fournissent un support EFI stub.
- </longdescription>
- <use lang="en">
- <flag name="ext2">Builds the EFI binary ext2 filesystem driver</flag>
- <flag name="ext4">Builds the EFI binary ext4 filesystem driver</flag>
- <flag name="reiserfs">Builds the EFI binary reiserfs filesystem driver</flag>
- <flag name="iso9660">Builds the EFI binary iso9660 filesystem driver</flag>
- <flag name="hfs">Builds the EFI binary hfs filesystem driver</flag>
- <flag name="btrfs">Builds the EFI binary btrfs filesystem driver</flag>
- <flag name="ntfs">Builds the EFI binary ntfs filesystem driver</flag>
- <flag name="gnuefi">Compile using GNU-EFI instead of Tianocore</flag>
- <flag name="doc">Install document files</flag>
- </use>
<use lang="fr">
<flag name="ext2">Construire le gestionnaire EFI pour le système de fichier ext2</flag>
<flag name="ext4">Construire le gestionnaire EFI pour le système de fichier ext4</flag>
@@ -63,7 +52,16 @@ des noyau Linux qui fournissent un support EFI stub.
<flag name="btrfs">Construire le gestionnaire EFI pour le système de fichier btrfs</flag>
<flag name="ntfs">Construire le gestionnaire EFI pour le système de fichier ntfs</flag>
<flag name="gnuefi">Compiler en utilisant GNU-EFI au lieu de Tianocore</flag>
- <flag name="doc">Installer les fichiers de documentation</flag>
+ </use>
+ <use lang="en">
+ <flag name="ext2">Builds the EFI binary ext2 filesystem driver</flag>
+ <flag name="ext4">Builds the EFI binary ext4 filesystem driver</flag>
+ <flag name="reiserfs">Builds the EFI binary reiserfs filesystem driver</flag>
+ <flag name="iso9660">Builds the EFI binary iso9660 filesystem driver</flag>
+ <flag name="hfs">Builds the EFI binary hfs filesystem driver</flag>
+ <flag name="btrfs">Builds the EFI binary btrfs filesystem driver</flag>
+ <flag name="ntfs">Builds the EFI binary ntfs filesystem driver</flag>
+ <flag name="gnuefi">Compile using GNU-EFI instead of Tianocore</flag>
</use>
<upstream>
<remote-id type="sourceforge">refind</remote-id>
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2016-11-06 16:24 Göktürk Yüksek
0 siblings, 0 replies; 57+ messages in thread
From: Göktürk Yüksek @ 2016-11-06 16:24 UTC (permalink / raw
To: gentoo-commits
commit: 60da91883d6e820c0b6e6709d0b76d6e6d44fdde
Author: Stéphane Veyret <stephane.veyret <AT> neptura <DOT> org>
AuthorDate: Sun Nov 6 15:47:46 2016 +0000
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Sun Nov 6 16:23:42 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60da9188
sys-boot/refind: prevent from using user's CFLAGS for EFI compilation, bug #598587
Package-Manager: portage-2.3.0
sys-boot/refind/refind-0.10.2-r2.ebuild | 166 ++++++++++++++++++++++++++++++
sys-boot/refind/refind-0.10.3-r1.ebuild | 174 ++++++++++++++++++++++++++++++++
sys-boot/refind/refind-0.10.4-r1.ebuild | 174 ++++++++++++++++++++++++++++++++
3 files changed, 514 insertions(+)
diff --git a/sys-boot/refind/refind-0.10.2-r2.ebuild b/sys-boot/refind/refind-0.10.2-r2.ebuild
new file mode 100644
index 00000000..1d50296
--- /dev/null
+++ b/sys-boot/refind/refind-0.10.2-r2.ebuild
@@ -0,0 +1,166 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs flag-o-matic
+
+DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
+HOMEPAGE="http://www.rodsbooks.com/refind/"
+
+SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
+
+LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
+IUSE="${FS_USE} -gnuefi doc -custom-cflags"
+
+DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
+ !gnuefi? ( >=sys-boot/udk-2015 )"
+
+DOCS="NEWS.txt README.txt docs/refind docs/Styles"
+
+pkg_setup() {
+ if use x86 ; then
+ export EFIARCH=ia32
+ export BUILDARCH=ia32
+ elif use amd64; then
+ export EFIARCH=x64
+ export BUILDARCH=x86_64
+ else
+ # Try to support anyway
+ export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
+ if [[ ${BUILDARCH} == "x86_64" ]] ; then
+ export EFIARCH=x64
+ else
+ export EFIARCH=${ARCH}
+ fi
+ fi
+}
+
+src_prepare() {
+ default
+ local f
+ for f in "${S}"/*/Make.tiano "${S}"/Make.common; do
+ sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \
+ -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \
+ -e '/^\s*-I \$(EDK2BASE).*$/d' \
+ "${f}" || die "Failed to patch Tianocore make file in" \
+ $(basename $(dirname ${f}))
+ done
+ for f in "${S}"/*/Make.tiano; do
+ sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \
+ -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \
+ -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \
+ "${f}" || die "Failed to patch Tianocore make file in" \
+ $(basename $(dirname ${f}))
+ done
+ sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \
+ || die "Failed to patch AutoGen.c"
+ for f in "${S}"/*/AutoGen.c; do
+ cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c"
+
+ #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U
+ #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4
+ #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel
+ #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU
+ GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel;
+ extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel;
+ #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
+ //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD
+ EOF
+ done
+}
+
+src_compile() {
+ # Prepare flags
+ local pecoff_header_size
+ [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \
+ || pecoff_header_size='0x220'
+ local make_flags=(
+ ARCH="${BUILDARCH}"
+ GENFW="/usr/bin/GenFw"
+ CC="$(tc-getCC)"
+ AS="$(tc-getAS)"
+ LD="$(tc-getLD)"
+ AR="$(tc-getAR)"
+ RANLIB="$(tc-getRANLIB)"
+ OBJCOPY="$(tc-getOBJCOPY)"
+ GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
+ -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs"
+ TIANO_LDSCRIPT="/usr/lib/GccBase.lds"
+ TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \
+ --script=\$(TIANO_LDSCRIPT) \
+ --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \
+ --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)"
+ )
+ use custom-cflags && make_flags[CFLAGS]="${CFLAGS}"
+
+ # Make main EFI
+ local all_target
+ use gnuefi && all_target="gnuefi" || all_target="tiano"
+ emake "${make_flags[@]}" ${all_target}
+
+ # Make filesystem drivers
+ local gnuefi_target
+ use gnuefi && gnuefi_target="_gnuefi"
+ local fs
+ for fs in ${FS_USE}; do
+ fs=${fs#+}
+ if use "${fs}"; then
+ einfo "Building ${fs} filesystem driver"
+ emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
+ fi
+ done
+}
+
+src_install() {
+ exeinto "/usr/share/${P}"
+ doexe refind-install
+ dosym "/usr/share/${P}/refind-install" "/usr/sbin/refind-install"
+
+ dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
+ if use doc; then
+ doman "${S}/docs/man/"*
+ dodoc -r ${DOCS}
+ fi
+
+ insinto "/usr/share/${P}/refind"
+ doins "${S}/refind/refind_${EFIARCH}.efi"
+ doins "${S}/refind.conf-sample"
+ doins -r images icons fonts banners
+
+ if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
+ doins -r "${S}/drivers_${EFIARCH}"
+ fi
+
+ insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
+ doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
+
+ insinto "/etc/refind.d"
+ doins -r "${S}/keys"
+
+ dosbin "${S}/mkrlconf"
+ dosbin "${S}/mvrefind"
+}
+
+pkg_postinst() {
+ elog "rEFInd has been built and installed into /usr/share/${P}"
+ elog "You will need to use the command 'refind-install' to install"
+ elog "the binaries into your EFI System Partition"
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog ""
+ elog "refind-install requires additional packages to be fully functional:"
+ elog " app-crypt/sbsigntool for binary signing for use with SecureBoot"
+ elog " sys-boot/efibootmgr for writing to NVRAM"
+ elog " sys-block/parted for automatic ESP location and mount"
+ elog ""
+ elog "A sample configuration can be found at"
+ elog "/usr/share/${P}/refind/refind.conf-sample"
+ else
+ ewarn "Note that this will not update any EFI binaries on your EFI"
+ ewarn "System Partition - this needs to be done manually."
+ fi
+}
diff --git a/sys-boot/refind/refind-0.10.3-r1.ebuild b/sys-boot/refind/refind-0.10.3-r1.ebuild
new file mode 100644
index 00000000..fcf8d9d
--- /dev/null
+++ b/sys-boot/refind/refind-0.10.3-r1.ebuild
@@ -0,0 +1,174 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs flag-o-matic versionator
+
+DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
+HOMEPAGE="http://www.rodsbooks.com/refind/"
+
+SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
+
+LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
+IUSE="${FS_USE} -gnuefi doc -custom-cflags"
+
+DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
+ !gnuefi? ( >=sys-boot/udk-2015 )"
+
+DOCS="NEWS.txt README.txt docs/refind docs/Styles"
+
+pkg_setup() {
+ if use x86 ; then
+ export EFIARCH=ia32
+ export BUILDARCH=ia32
+ elif use amd64; then
+ export EFIARCH=x64
+ export BUILDARCH=x86_64
+ else
+ # Try to support anyway
+ export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
+ if [[ ${BUILDARCH} == "x86_64" ]] ; then
+ export EFIARCH=x64
+ else
+ export EFIARCH=${ARCH}
+ fi
+ fi
+}
+
+src_prepare() {
+ default
+ local f
+ for f in "${S}"/*/Make.tiano "${S}"/Make.common; do
+ sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \
+ -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \
+ -e '/^\s*-I \$(EDK2BASE).*$/d' \
+ "${f}" || die "Failed to patch Tianocore make file in" \
+ $(basename $(dirname ${f}))
+ done
+ for f in "${S}"/*/Make.tiano; do
+ sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \
+ -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \
+ -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \
+ "${f}" || die "Failed to patch Tianocore make file in" \
+ $(basename $(dirname ${f}))
+ done
+ sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \
+ || die "Failed to patch AutoGen.c"
+ for f in "${S}"/*/AutoGen.c; do
+ cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c"
+
+ #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U
+ #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4
+ #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel
+ #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU
+ GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel;
+ extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel;
+ #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
+ //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD
+ EOF
+ done
+}
+
+src_compile() {
+ # Prepare flags
+ local pecoff_header_size
+ [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \
+ || pecoff_header_size='0x220'
+ local make_flags=(
+ ARCH="${BUILDARCH}"
+ GENFW="/usr/bin/GenFw"
+ CC="$(tc-getCC)"
+ AS="$(tc-getAS)"
+ LD="$(tc-getLD)"
+ AR="$(tc-getAR)"
+ RANLIB="$(tc-getRANLIB)"
+ OBJCOPY="$(tc-getOBJCOPY)"
+ GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
+ -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs"
+ TIANO_LDSCRIPT="/usr/lib/GccBase.lds"
+ TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \
+ --script=\$(TIANO_LDSCRIPT) \
+ --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \
+ --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)"
+ )
+ use custom-cflags && make_flags[CFLAGS]="${CFLAGS}"
+
+ # Make main EFI
+ local all_target
+ use gnuefi && all_target="gnuefi" || all_target="tiano"
+ emake "${make_flags[@]}" ${all_target}
+
+ # Make filesystem drivers
+ local gnuefi_target
+ use gnuefi && gnuefi_target="_gnuefi"
+ local fs
+ for fs in ${FS_USE}; do
+ fs=${fs#+}
+ if use "${fs}"; then
+ einfo "Building ${fs} filesystem driver"
+ emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
+ fi
+ done
+}
+
+src_install() {
+ exeinto "/usr/share/${P}"
+ doexe refind-install
+ dosym "/usr/share/${P}/refind-install" "/usr/sbin/refind-install"
+
+ dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
+ if use doc; then
+ doman "${S}/docs/man/"*
+ dodoc -r ${DOCS}
+ fi
+
+ insinto "/usr/share/${P}/refind"
+ doins "${S}/refind/refind_${EFIARCH}.efi"
+ doins "${S}/refind.conf-sample"
+ doins -r images icons fonts banners
+
+ if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
+ doins -r "${S}/drivers_${EFIARCH}"
+ fi
+
+ insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
+ doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
+
+ insinto "/etc/refind.d"
+ doins -r "${S}/keys"
+
+ dosbin "${S}/mkrlconf"
+ dosbin "${S}/mvrefind"
+ dosbin "${S}/refind-mkdefault"
+}
+
+pkg_postinst() {
+ elog "rEFInd has been built and installed into /usr/share/${P}"
+ elog "You will need to use the command 'refind-install' to install"
+ elog "the binaries into your EFI System Partition"
+ elog ""
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog "refind-install requires additional packages to be fully functional:"
+ elog " app-crypt/sbsigntool for binary signing for use with SecureBoot"
+ elog " sys-boot/efibootmgr for writing to NVRAM"
+ elog " sys-block/parted for automatic ESP location and mount"
+ elog ""
+ elog "refind-mkdefault requires >=dev-lang/python-3"
+ elog ""
+ elog "A sample configuration can be found at"
+ elog "/usr/share/${P}/refind/refind.conf-sample"
+ else
+ if ! version_is_at_least "0.10.3" "${REPLACING_VERSIONS}"; then
+ elog "The new refind-mkdefault script requires >=dev-lang/python-3"
+ elog "to be installed"
+ elog ""
+ fi
+ ewarn "Note that this installation will not update any EFI binaries"
+ ewarn "on your EFI System Partition - this needs to be done manually"
+ fi
+}
diff --git a/sys-boot/refind/refind-0.10.4-r1.ebuild b/sys-boot/refind/refind-0.10.4-r1.ebuild
new file mode 100644
index 00000000..fcf8d9d
--- /dev/null
+++ b/sys-boot/refind/refind-0.10.4-r1.ebuild
@@ -0,0 +1,174 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs flag-o-matic versionator
+
+DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
+HOMEPAGE="http://www.rodsbooks.com/refind/"
+
+SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
+
+LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
+IUSE="${FS_USE} -gnuefi doc -custom-cflags"
+
+DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
+ !gnuefi? ( >=sys-boot/udk-2015 )"
+
+DOCS="NEWS.txt README.txt docs/refind docs/Styles"
+
+pkg_setup() {
+ if use x86 ; then
+ export EFIARCH=ia32
+ export BUILDARCH=ia32
+ elif use amd64; then
+ export EFIARCH=x64
+ export BUILDARCH=x86_64
+ else
+ # Try to support anyway
+ export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
+ if [[ ${BUILDARCH} == "x86_64" ]] ; then
+ export EFIARCH=x64
+ else
+ export EFIARCH=${ARCH}
+ fi
+ fi
+}
+
+src_prepare() {
+ default
+ local f
+ for f in "${S}"/*/Make.tiano "${S}"/Make.common; do
+ sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \
+ -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \
+ -e '/^\s*-I \$(EDK2BASE).*$/d' \
+ "${f}" || die "Failed to patch Tianocore make file in" \
+ $(basename $(dirname ${f}))
+ done
+ for f in "${S}"/*/Make.tiano; do
+ sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \
+ -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \
+ -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \
+ "${f}" || die "Failed to patch Tianocore make file in" \
+ $(basename $(dirname ${f}))
+ done
+ sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \
+ || die "Failed to patch AutoGen.c"
+ for f in "${S}"/*/AutoGen.c; do
+ cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c"
+
+ #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U
+ #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4
+ #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel
+ #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU
+ GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel;
+ extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel;
+ #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
+ //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD
+ EOF
+ done
+}
+
+src_compile() {
+ # Prepare flags
+ local pecoff_header_size
+ [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \
+ || pecoff_header_size='0x220'
+ local make_flags=(
+ ARCH="${BUILDARCH}"
+ GENFW="/usr/bin/GenFw"
+ CC="$(tc-getCC)"
+ AS="$(tc-getAS)"
+ LD="$(tc-getLD)"
+ AR="$(tc-getAR)"
+ RANLIB="$(tc-getRANLIB)"
+ OBJCOPY="$(tc-getOBJCOPY)"
+ GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
+ -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs"
+ TIANO_LDSCRIPT="/usr/lib/GccBase.lds"
+ TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \
+ --script=\$(TIANO_LDSCRIPT) \
+ --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \
+ --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)"
+ )
+ use custom-cflags && make_flags[CFLAGS]="${CFLAGS}"
+
+ # Make main EFI
+ local all_target
+ use gnuefi && all_target="gnuefi" || all_target="tiano"
+ emake "${make_flags[@]}" ${all_target}
+
+ # Make filesystem drivers
+ local gnuefi_target
+ use gnuefi && gnuefi_target="_gnuefi"
+ local fs
+ for fs in ${FS_USE}; do
+ fs=${fs#+}
+ if use "${fs}"; then
+ einfo "Building ${fs} filesystem driver"
+ emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
+ fi
+ done
+}
+
+src_install() {
+ exeinto "/usr/share/${P}"
+ doexe refind-install
+ dosym "/usr/share/${P}/refind-install" "/usr/sbin/refind-install"
+
+ dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
+ if use doc; then
+ doman "${S}/docs/man/"*
+ dodoc -r ${DOCS}
+ fi
+
+ insinto "/usr/share/${P}/refind"
+ doins "${S}/refind/refind_${EFIARCH}.efi"
+ doins "${S}/refind.conf-sample"
+ doins -r images icons fonts banners
+
+ if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
+ doins -r "${S}/drivers_${EFIARCH}"
+ fi
+
+ insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
+ doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
+
+ insinto "/etc/refind.d"
+ doins -r "${S}/keys"
+
+ dosbin "${S}/mkrlconf"
+ dosbin "${S}/mvrefind"
+ dosbin "${S}/refind-mkdefault"
+}
+
+pkg_postinst() {
+ elog "rEFInd has been built and installed into /usr/share/${P}"
+ elog "You will need to use the command 'refind-install' to install"
+ elog "the binaries into your EFI System Partition"
+ elog ""
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog "refind-install requires additional packages to be fully functional:"
+ elog " app-crypt/sbsigntool for binary signing for use with SecureBoot"
+ elog " sys-boot/efibootmgr for writing to NVRAM"
+ elog " sys-block/parted for automatic ESP location and mount"
+ elog ""
+ elog "refind-mkdefault requires >=dev-lang/python-3"
+ elog ""
+ elog "A sample configuration can be found at"
+ elog "/usr/share/${P}/refind/refind.conf-sample"
+ else
+ if ! version_is_at_least "0.10.3" "${REPLACING_VERSIONS}"; then
+ elog "The new refind-mkdefault script requires >=dev-lang/python-3"
+ elog "to be installed"
+ elog ""
+ fi
+ ewarn "Note that this installation will not update any EFI binaries"
+ ewarn "on your EFI System Partition - this needs to be done manually"
+ fi
+}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2016-10-25 2:48 Göktürk Yüksek
0 siblings, 0 replies; 57+ messages in thread
From: Göktürk Yüksek @ 2016-10-25 2:48 UTC (permalink / raw
To: gentoo-commits
commit: 431a8c34984840855a1a1ba023bfe77cb8c3694a
Author: Stéphane Veyret <stephane.veyret <AT> neptura <DOT> org>
AuthorDate: Mon Oct 24 15:15:35 2016 +0000
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Tue Oct 25 02:46:51 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=431a8c34
sys-boot/refind: version bump, bug #597812
sys-boot/refind/Manifest | 1 +
sys-boot/refind/refind-0.10.4.ebuild | 183 +++++++++++++++++++++++++++++++++++
2 files changed, 184 insertions(+)
diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest
index 566c555..497d93a 100644
--- a/sys-boot/refind/Manifest
+++ b/sys-boot/refind/Manifest
@@ -1,5 +1,6 @@
DIST refind-src-0.10.0.tar.gz 3336917 SHA256 845dc3a18d4c82c1e29d4dbef14a53f4de1401c5bb3ea10f3f39442efa870e2e SHA512 111caea0c1dbd9dde50e7b3cf47c7ad0d5e7f3bec3bb784397171950865cffd8cf589c6a1b821fabd6ed4be191a322757bf94255bfd449ee4a647ad597c3d7ab WHIRLPOOL 8e9070c89b83ff7e49b34c45f5f7d3ecd90824f8ba95eae4105636125500eafc29a7ae34a602cb268bd7bd4e90fe2a7e2a8bad4a9b68baa283a59d0a34ae1d1f
DIST refind-src-0.10.2.tar.gz 2949593 SHA256 ef6aa17e911ea899c0d5e9482bfe657bc63b425976b0e2f936e67cbec3f1c34c SHA512 7f74109a2f2a8dd5889834c0d9cf9b186ed5487a737b442caed5ce2df06de13efc2553d264792e5f72e4bb281926a772aeca96187209d856a8b9abe9f831580c WHIRLPOOL 224c168b1eb980c850b008f0a6e2148b8bbc0ed1d591c4bdfb1c182af9430e5eb9ac8a58ec8f83a50320d30a946b1feeda12eb02a36450e7912462c6058cc7fc
DIST refind-src-0.10.3.tar.gz 3967340 SHA256 652be9a25a026b4d4a6a3e73e8765fe31c948a88a2f413cde814815f93b858e4 SHA512 2a2274f508c66fa62352b34daab7faf9c7ff33f197b0ec125c0d025ab7c0ecb3e4cc2925f5e6888f06dc3a4fb4008a353d8b59e96d0a047695b0efb989f9f72d WHIRLPOOL 8a417cc1da124967618b379cb71737b83b9f4cfd3dd22f6896ed8720945c456b4785fe18fb2b51bb5b10c808e660341c2e86656195a24e5d39fcd13d24f97e8d
+DIST refind-src-0.10.4.tar.gz 3970380 SHA256 c3e428b27a0d4c61ee052603aedea7118bf04a7917216b10bfde2a3d2a2442a5 SHA512 a75a6210ee51427c474e69c2de8c719545b2599c19f1c7541048b77ab1996a0e4b4b5fd4840f6240cd6704e5f5338cbaff432d7dc5ec4042854e26d6df18bed5 WHIRLPOOL a5d84831ea3c6282560fcc7491e7aabeb4a0598c34843a09b7baadf9398092a9495290180d05fbd935ad09207814a3fa4f72cfa3bf798f2422fecf07dc27037d
DIST refind-src-0.9.0.zip 2939724 SHA256 842a01d7964bc8c8000a66e6d08f6fadb4c257d251b1277cebff0bf731e024aa SHA512 c49e3110e6b9f8d44dadae1ab828d3bf59bbce2da9170efed73db961135144ae9963b57d4cc39af2b15ecdf1f289359bda56c3d3e8f72d05be165ae5a3e2654d WHIRLPOOL 225a6b84ea7044e8fe0bab5e268c8c46a4523ab6f408d1bb2a94adfe54afe80c9c83ec0dc104945b332ae6c375c9d041972dee39baa43665588eb0dfc1fe4362
DIST refind-src-0.9.2.zip 2941986 SHA256 9022da3d46493395c273e2d2fc555d1c786fb1b9c11b2912751a88fe3328212a SHA512 6636cf02bb69ffe699d5f9717d09b80db0e4330aa52c14949e8612caed11f032370db17700c15d285173729271d2434fd0fbc39f5b445a3c05255ee14d125d47 WHIRLPOOL 2d81427bf6cc9cf021a4ffc7238bcf914e380fea091cbefaa601e391cf28f43f7c3ef1181744e4aab3d71d2535d88ba633b13cdae696f0baddd26d3c2511a88d
diff --git a/sys-boot/refind/refind-0.10.4.ebuild b/sys-boot/refind/refind-0.10.4.ebuild
new file mode 100644
index 00000000..1ce9c8d
--- /dev/null
+++ b/sys-boot/refind/refind-0.10.4.ebuild
@@ -0,0 +1,183 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs flag-o-matic versionator
+
+DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
+HOMEPAGE="http://www.rodsbooks.com/refind/"
+
+SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
+
+LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
+IUSE="${FS_USE} -gnuefi doc"
+
+DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
+ !gnuefi? ( >=sys-boot/udk-2015 )"
+
+DOCS="NEWS.txt README.txt docs/refind docs/Styles"
+
+pkg_setup() {
+ if use x86 ; then
+ export EFIARCH=ia32
+ export BUILDARCH=ia32
+ elif use amd64; then
+ export EFIARCH=x64
+ export BUILDARCH=x86_64
+ else
+ # Try to support anyway
+ export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
+ if [[ ${BUILDARCH} == "x86_64" ]] ; then
+ export EFIARCH=x64
+ else
+ export EFIARCH=${ARCH}
+ fi
+ fi
+}
+
+src_prepare() {
+ default
+ local f
+ for f in "${S}"/*/Make.tiano "${S}"/Make.common; do
+ sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \
+ -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \
+ -e '/^\s*-I \$(EDK2BASE).*$/d' \
+ "${f}" || die "Failed to patch Tianocore make file in" \
+ $(basename $(dirname ${f}))
+ done
+ for f in "${S}"/*/Make.tiano; do
+ sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \
+ -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \
+ -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \
+ "${f}" || die "Failed to patch Tianocore make file in" \
+ $(basename $(dirname ${f}))
+ done
+ sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \
+ || die "Failed to patch AutoGen.c"
+ for f in "${S}"/*/AutoGen.c; do
+ cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c"
+
+ #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U
+ #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4
+ #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel
+ #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU
+ GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel;
+ extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel;
+ #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
+ //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD
+ EOF
+ done
+}
+
+src_compile() {
+ # Prepare flags
+ [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \
+ || pecoff_header_size='0x220'
+
+ append-cflags $(test-flags-CC -fno-strict-aliasing)
+ append-cflags $(test-flags-CC -fno-stack-protector)
+ append-cflags $(test-flags-CC -fshort-wchar) $(test-flags-CC -Wall)
+
+ # Bug #598004: required to prevent gcc from inserting calls to memcpy or memmove
+ filter-flags -O*
+ append-cflags $(test-flags-CC -Os)
+
+ local make_flags=(
+ ARCH="${BUILDARCH}"
+ GENFW="/usr/bin/GenFw"
+ CC="$(tc-getCC)"
+ AS="$(tc-getAS)"
+ LD="$(tc-getLD)"
+ AR="$(tc-getAR)"
+ RANLIB="$(tc-getRANLIB)"
+ OBJCOPY="$(tc-getOBJCOPY)"
+ CFLAGS="${CFLAGS}"
+ LDFLAGS="${LDFLAGS}"
+ GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
+ -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs"
+ TIANO_LDSCRIPT="/usr/lib/GccBase.lds"
+ TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \
+ --script=\$(TIANO_LDSCRIPT) \
+ --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \
+ --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)"
+ )
+
+ # Make main EFI
+ local all_target
+ use gnuefi && all_target="gnuefi" || all_target="tiano"
+ emake "${make_flags[@]}" ${all_target}
+
+ # Make filesystem drivers
+ local gnuefi_target
+ use gnuefi && gnuefi_target="_gnuefi"
+ local fs
+ for fs in ${FS_USE}; do
+ fs=${fs#+}
+ if use "${fs}"; then
+ einfo "Building ${fs} filesystem driver"
+ emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
+ fi
+ done
+}
+
+src_install() {
+ exeinto "/usr/share/${P}"
+ doexe refind-install
+ dosym "/usr/share/${P}/refind-install" "/usr/sbin/refind-install"
+
+ dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
+ if use doc; then
+ doman "${S}/docs/man/"*
+ dodoc -r ${DOCS}
+ fi
+
+ insinto "/usr/share/${P}/refind"
+ doins "${S}/refind/refind_${EFIARCH}.efi"
+ doins "${S}/refind.conf-sample"
+ doins -r images icons fonts banners
+
+ if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
+ doins -r "${S}/drivers_${EFIARCH}"
+ fi
+
+ insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
+ doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
+
+ insinto "/etc/refind.d"
+ doins -r "${S}/keys"
+
+ dosbin "${S}/mkrlconf"
+ dosbin "${S}/mvrefind"
+ dosbin "${S}/refind-mkdefault"
+}
+
+pkg_postinst() {
+ elog "rEFInd has been built and installed into /usr/share/${P}"
+ elog "You will need to use the command 'refind-install' to install"
+ elog "the binaries into your EFI System Partition"
+ elog ""
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog "refind-install requires additional packages to be fully functional:"
+ elog " app-crypt/sbsigntool for binary signing for use with SecureBoot"
+ elog " sys-boot/efibootmgr for writing to NVRAM"
+ elog " sys-block/parted for automatic ESP location and mount"
+ elog ""
+ elog "refind-mkdefault requires >=dev-lang/python-3"
+ elog ""
+ elog "A sample configuration can be found at"
+ elog "/usr/share/${P}/refind/refind.conf-sample"
+ else
+ if ! version_is_at_least "0.10.3" "${REPLACING_VERSIONS}"; then
+ elog "The new refind-mkdefault script requires >=dev-lang/python-3"
+ elog "to be installed"
+ elog ""
+ fi
+ ewarn "Note that this installation will not update any EFI binaries"
+ ewarn "on your EFI System Partition - this needs to be done manually"
+ fi
+}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2016-10-25 2:48 Göktürk Yüksek
0 siblings, 0 replies; 57+ messages in thread
From: Göktürk Yüksek @ 2016-10-25 2:48 UTC (permalink / raw
To: gentoo-commits
commit: c8d241849779484956fba16744a1df046ad05739
Author: Stéphane Veyret <stephane.veyret <AT> neptura <DOT> org>
AuthorDate: Sat Aug 20 08:19:06 2016 +0000
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Tue Oct 25 02:46:33 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8d24184
sys-boot/refind: improve metadata
sys-boot/refind/metadata.xml | 45 +++++++++++++++++++++++++++++++++++---------
1 file changed, 36 insertions(+), 9 deletions(-)
diff --git a/sys-boot/refind/metadata.xml b/sys-boot/refind/metadata.xml
index f9342b6..99f8fd6 100644
--- a/sys-boot/refind/metadata.xml
+++ b/sys-boot/refind/metadata.xml
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
@@ -6,16 +6,43 @@
<name>Sam Jorna</name>
</maintainer>
<maintainer type="person">
- <email>sveyret@gmail.com</email>
- <name>Stephane Veyret</name>
- <description>Proxy - Maintainer.CC on bugs</description>
- </maintainer>
+ <email>sveyret@gmail.com</email>
+ <name>Stéphane Veyret</name>
+ </maintainer>
<maintainer type="project">
- <email>proxy-maint@gentoo.org</email>
- <name>Proxy Maintainers</name>
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
</maintainer>
- <longdescription lang="en">EFI Boot Manager</longdescription>
- <longdescription lang="fr">Gestionnaire d'amorçage EFI</longdescription>
+ <longdescription lang="en">
+A graphical boot manager for EFI- and UEFI-based computers, such as all
+Intel-based Macs and recent (most 2011 and later) PCs. rEFInd presents a
+boot menu showing all the EFI boot loaders on the EFI-accessible
+partitions, and optionally BIOS-bootable partitions on Macs and BIOS boot
+entries on UEFI PCs with CSMs. EFI-compatbile OSes, including Linux,
+provide boot loaders that rEFInd can detect and launch. rEFInd can launch
+Linux EFI boot loaders such as ELILO, GRUB Legacy, GRUB 2, and 3.3.0 and
+later kernels with EFI stub support. EFI filesystem drivers for ext2/3/4fs,
+ReiserFS, Btrfs, NTFS, HFS+, and ISO-9660 enable rEFInd to read boot
+loaders from these filesystems, too. rEFInd's ability to detect boot
+loaders at runtime makes it very easy to use, particularly when paired with
+Linux kernels that provide EFI stub support.
+ </longdescription>
+ <longdescription lang="fr">
+Un gestionnaire d'amorçage pour ordinateur EFI ou UEFI tel que tous les Macs
+contenant un processeur Intel et les PC récents (2011 et après). rEFInd affiche
+un menu d'amorçage montrant tous les gestionnaires d'amorçage sur les
+partitions EFI accessibles et optionnellement les partitions démarrable en BIOS
+sur Macs et les entrées BIOS sur les PC UEFI avec CSM. Les systèmes
+d'exploitation compatibles EFI, incluant Linux, fournissent des gestionnaires
+d'amorçage que rEFInd détect et démarre. rEFInd peut démarrer les gestionnaires
+d'amorçage EFI Linux tel que ELILO, GRUB Legacy, GRUB 2 ainsi que les noyaux
+3.3.0 et suivants avec le support EFI stub. Les pilotes EFI pour les sytèmes de
+fichiers ext2/3/4fs, ReiserFS, Btrfs, NTFS, HFS+ et ISO-9660 permettent à
+rEFInd de lire les gestionnaires d'amorçage également depuis ces systèmes de
+fichiers. La capacité de rEFInd à détecter les gestionnaires d'amorçage au
+moment de l'exécution le rend très facile à utiliser, en particulier associé à
+des noyau Linux qui fournissent un support EFI stub.
+ </longdescription>
<use lang="en">
<flag name="ext2">Builds the EFI binary ext2 filesystem driver</flag>
<flag name="ext4">Builds the EFI binary ext4 filesystem driver</flag>
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2016-10-25 2:48 Göktürk Yüksek
0 siblings, 0 replies; 57+ messages in thread
From: Göktürk Yüksek @ 2016-10-25 2:48 UTC (permalink / raw
To: gentoo-commits
commit: dbf034440f700f0978be911053efeda098e5d280
Author: Stéphane Veyret <stephane.veyret <AT> neptura <DOT> org>
AuthorDate: Sun Jul 17 17:28:58 2016 +0000
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Tue Oct 25 02:46:43 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbf03444
sys-boot/refind: version bump, bug #582716
sys-boot/refind/Manifest | 1 +
sys-boot/refind/refind-0.10.3.ebuild | 183 +++++++++++++++++++++++++++++++++++
2 files changed, 184 insertions(+)
diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest
index a023872..566c555 100644
--- a/sys-boot/refind/Manifest
+++ b/sys-boot/refind/Manifest
@@ -1,4 +1,5 @@
DIST refind-src-0.10.0.tar.gz 3336917 SHA256 845dc3a18d4c82c1e29d4dbef14a53f4de1401c5bb3ea10f3f39442efa870e2e SHA512 111caea0c1dbd9dde50e7b3cf47c7ad0d5e7f3bec3bb784397171950865cffd8cf589c6a1b821fabd6ed4be191a322757bf94255bfd449ee4a647ad597c3d7ab WHIRLPOOL 8e9070c89b83ff7e49b34c45f5f7d3ecd90824f8ba95eae4105636125500eafc29a7ae34a602cb268bd7bd4e90fe2a7e2a8bad4a9b68baa283a59d0a34ae1d1f
DIST refind-src-0.10.2.tar.gz 2949593 SHA256 ef6aa17e911ea899c0d5e9482bfe657bc63b425976b0e2f936e67cbec3f1c34c SHA512 7f74109a2f2a8dd5889834c0d9cf9b186ed5487a737b442caed5ce2df06de13efc2553d264792e5f72e4bb281926a772aeca96187209d856a8b9abe9f831580c WHIRLPOOL 224c168b1eb980c850b008f0a6e2148b8bbc0ed1d591c4bdfb1c182af9430e5eb9ac8a58ec8f83a50320d30a946b1feeda12eb02a36450e7912462c6058cc7fc
+DIST refind-src-0.10.3.tar.gz 3967340 SHA256 652be9a25a026b4d4a6a3e73e8765fe31c948a88a2f413cde814815f93b858e4 SHA512 2a2274f508c66fa62352b34daab7faf9c7ff33f197b0ec125c0d025ab7c0ecb3e4cc2925f5e6888f06dc3a4fb4008a353d8b59e96d0a047695b0efb989f9f72d WHIRLPOOL 8a417cc1da124967618b379cb71737b83b9f4cfd3dd22f6896ed8720945c456b4785fe18fb2b51bb5b10c808e660341c2e86656195a24e5d39fcd13d24f97e8d
DIST refind-src-0.9.0.zip 2939724 SHA256 842a01d7964bc8c8000a66e6d08f6fadb4c257d251b1277cebff0bf731e024aa SHA512 c49e3110e6b9f8d44dadae1ab828d3bf59bbce2da9170efed73db961135144ae9963b57d4cc39af2b15ecdf1f289359bda56c3d3e8f72d05be165ae5a3e2654d WHIRLPOOL 225a6b84ea7044e8fe0bab5e268c8c46a4523ab6f408d1bb2a94adfe54afe80c9c83ec0dc104945b332ae6c375c9d041972dee39baa43665588eb0dfc1fe4362
DIST refind-src-0.9.2.zip 2941986 SHA256 9022da3d46493395c273e2d2fc555d1c786fb1b9c11b2912751a88fe3328212a SHA512 6636cf02bb69ffe699d5f9717d09b80db0e4330aa52c14949e8612caed11f032370db17700c15d285173729271d2434fd0fbc39f5b445a3c05255ee14d125d47 WHIRLPOOL 2d81427bf6cc9cf021a4ffc7238bcf914e380fea091cbefaa601e391cf28f43f7c3ef1181744e4aab3d71d2535d88ba633b13cdae696f0baddd26d3c2511a88d
diff --git a/sys-boot/refind/refind-0.10.3.ebuild b/sys-boot/refind/refind-0.10.3.ebuild
new file mode 100644
index 00000000..1ce9c8d
--- /dev/null
+++ b/sys-boot/refind/refind-0.10.3.ebuild
@@ -0,0 +1,183 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs flag-o-matic versionator
+
+DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
+HOMEPAGE="http://www.rodsbooks.com/refind/"
+
+SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
+
+LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
+IUSE="${FS_USE} -gnuefi doc"
+
+DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
+ !gnuefi? ( >=sys-boot/udk-2015 )"
+
+DOCS="NEWS.txt README.txt docs/refind docs/Styles"
+
+pkg_setup() {
+ if use x86 ; then
+ export EFIARCH=ia32
+ export BUILDARCH=ia32
+ elif use amd64; then
+ export EFIARCH=x64
+ export BUILDARCH=x86_64
+ else
+ # Try to support anyway
+ export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
+ if [[ ${BUILDARCH} == "x86_64" ]] ; then
+ export EFIARCH=x64
+ else
+ export EFIARCH=${ARCH}
+ fi
+ fi
+}
+
+src_prepare() {
+ default
+ local f
+ for f in "${S}"/*/Make.tiano "${S}"/Make.common; do
+ sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \
+ -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \
+ -e '/^\s*-I \$(EDK2BASE).*$/d' \
+ "${f}" || die "Failed to patch Tianocore make file in" \
+ $(basename $(dirname ${f}))
+ done
+ for f in "${S}"/*/Make.tiano; do
+ sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \
+ -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \
+ -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \
+ "${f}" || die "Failed to patch Tianocore make file in" \
+ $(basename $(dirname ${f}))
+ done
+ sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \
+ || die "Failed to patch AutoGen.c"
+ for f in "${S}"/*/AutoGen.c; do
+ cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c"
+
+ #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U
+ #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4
+ #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel
+ #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU
+ GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel;
+ extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel;
+ #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
+ //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD
+ EOF
+ done
+}
+
+src_compile() {
+ # Prepare flags
+ [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \
+ || pecoff_header_size='0x220'
+
+ append-cflags $(test-flags-CC -fno-strict-aliasing)
+ append-cflags $(test-flags-CC -fno-stack-protector)
+ append-cflags $(test-flags-CC -fshort-wchar) $(test-flags-CC -Wall)
+
+ # Bug #598004: required to prevent gcc from inserting calls to memcpy or memmove
+ filter-flags -O*
+ append-cflags $(test-flags-CC -Os)
+
+ local make_flags=(
+ ARCH="${BUILDARCH}"
+ GENFW="/usr/bin/GenFw"
+ CC="$(tc-getCC)"
+ AS="$(tc-getAS)"
+ LD="$(tc-getLD)"
+ AR="$(tc-getAR)"
+ RANLIB="$(tc-getRANLIB)"
+ OBJCOPY="$(tc-getOBJCOPY)"
+ CFLAGS="${CFLAGS}"
+ LDFLAGS="${LDFLAGS}"
+ GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
+ -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs"
+ TIANO_LDSCRIPT="/usr/lib/GccBase.lds"
+ TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \
+ --script=\$(TIANO_LDSCRIPT) \
+ --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \
+ --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)"
+ )
+
+ # Make main EFI
+ local all_target
+ use gnuefi && all_target="gnuefi" || all_target="tiano"
+ emake "${make_flags[@]}" ${all_target}
+
+ # Make filesystem drivers
+ local gnuefi_target
+ use gnuefi && gnuefi_target="_gnuefi"
+ local fs
+ for fs in ${FS_USE}; do
+ fs=${fs#+}
+ if use "${fs}"; then
+ einfo "Building ${fs} filesystem driver"
+ emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
+ fi
+ done
+}
+
+src_install() {
+ exeinto "/usr/share/${P}"
+ doexe refind-install
+ dosym "/usr/share/${P}/refind-install" "/usr/sbin/refind-install"
+
+ dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
+ if use doc; then
+ doman "${S}/docs/man/"*
+ dodoc -r ${DOCS}
+ fi
+
+ insinto "/usr/share/${P}/refind"
+ doins "${S}/refind/refind_${EFIARCH}.efi"
+ doins "${S}/refind.conf-sample"
+ doins -r images icons fonts banners
+
+ if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
+ doins -r "${S}/drivers_${EFIARCH}"
+ fi
+
+ insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
+ doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
+
+ insinto "/etc/refind.d"
+ doins -r "${S}/keys"
+
+ dosbin "${S}/mkrlconf"
+ dosbin "${S}/mvrefind"
+ dosbin "${S}/refind-mkdefault"
+}
+
+pkg_postinst() {
+ elog "rEFInd has been built and installed into /usr/share/${P}"
+ elog "You will need to use the command 'refind-install' to install"
+ elog "the binaries into your EFI System Partition"
+ elog ""
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog "refind-install requires additional packages to be fully functional:"
+ elog " app-crypt/sbsigntool for binary signing for use with SecureBoot"
+ elog " sys-boot/efibootmgr for writing to NVRAM"
+ elog " sys-block/parted for automatic ESP location and mount"
+ elog ""
+ elog "refind-mkdefault requires >=dev-lang/python-3"
+ elog ""
+ elog "A sample configuration can be found at"
+ elog "/usr/share/${P}/refind/refind.conf-sample"
+ else
+ if ! version_is_at_least "0.10.3" "${REPLACING_VERSIONS}"; then
+ elog "The new refind-mkdefault script requires >=dev-lang/python-3"
+ elog "to be installed"
+ elog ""
+ fi
+ ewarn "Note that this installation will not update any EFI binaries"
+ ewarn "on your EFI System Partition - this needs to be done manually"
+ fi
+}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2016-10-25 2:48 Göktürk Yüksek
0 siblings, 0 replies; 57+ messages in thread
From: Göktürk Yüksek @ 2016-10-25 2:48 UTC (permalink / raw
To: gentoo-commits
commit: 1244bd61402c6de3d791eed2f018c906758c00fc
Author: Stéphane Veyret <stephane.veyret <AT> neptura <DOT> org>
AuthorDate: Mon Oct 24 19:52:49 2016 +0000
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Tue Oct 25 02:46:28 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1244bd61
sys-boot/refind: use flags and udk for rEFInd, bug #566930
This new release has 2 major changes:
* it is now using user defined flags, if possible,
* it is now able to compile against udk (default compilation).
sys-boot/refind/metadata.xml | 2 +
sys-boot/refind/refind-0.10.2-r1.ebuild | 175 ++++++++++++++++++++++++++++++++
2 files changed, 177 insertions(+)
diff --git a/sys-boot/refind/metadata.xml b/sys-boot/refind/metadata.xml
index a5bf904..f9342b6 100644
--- a/sys-boot/refind/metadata.xml
+++ b/sys-boot/refind/metadata.xml
@@ -24,6 +24,7 @@
<flag name="hfs">Builds the EFI binary hfs filesystem driver</flag>
<flag name="btrfs">Builds the EFI binary btrfs filesystem driver</flag>
<flag name="ntfs">Builds the EFI binary ntfs filesystem driver</flag>
+ <flag name="gnuefi">Compile using GNU-EFI instead of Tianocore</flag>
<flag name="doc">Install document files</flag>
</use>
<use lang="fr">
@@ -34,6 +35,7 @@
<flag name="hfs">Construire le gestionnaire EFI pour le système de fichier hfs</flag>
<flag name="btrfs">Construire le gestionnaire EFI pour le système de fichier btrfs</flag>
<flag name="ntfs">Construire le gestionnaire EFI pour le système de fichier ntfs</flag>
+ <flag name="gnuefi">Compiler en utilisant GNU-EFI au lieu de Tianocore</flag>
<flag name="doc">Installer les fichiers de documentation</flag>
</use>
<upstream>
diff --git a/sys-boot/refind/refind-0.10.2-r1.ebuild b/sys-boot/refind/refind-0.10.2-r1.ebuild
new file mode 100644
index 00000000..5ef91b1
--- /dev/null
+++ b/sys-boot/refind/refind-0.10.2-r1.ebuild
@@ -0,0 +1,175 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs flag-o-matic
+
+DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
+HOMEPAGE="http://www.rodsbooks.com/refind/"
+
+SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
+
+LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
+IUSE="${FS_USE} -gnuefi doc"
+
+DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
+ !gnuefi? ( >=sys-boot/udk-2015 )"
+
+DOCS="NEWS.txt README.txt docs/refind docs/Styles"
+
+pkg_setup() {
+ if use x86 ; then
+ export EFIARCH=ia32
+ export BUILDARCH=ia32
+ elif use amd64; then
+ export EFIARCH=x64
+ export BUILDARCH=x86_64
+ else
+ # Try to support anyway
+ export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
+ if [[ ${BUILDARCH} == "x86_64" ]] ; then
+ export EFIARCH=x64
+ else
+ export EFIARCH=${ARCH}
+ fi
+ fi
+}
+
+src_prepare() {
+ default
+ local f
+ for f in "${S}"/*/Make.tiano "${S}"/Make.common; do
+ sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \
+ -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \
+ -e '/^\s*-I \$(EDK2BASE).*$/d' \
+ "${f}" || die "Failed to patch Tianocore make file in" \
+ $(basename $(dirname ${f}))
+ done
+ for f in "${S}"/*/Make.tiano; do
+ sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \
+ -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \
+ -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \
+ "${f}" || die "Failed to patch Tianocore make file in" \
+ $(basename $(dirname ${f}))
+ done
+ sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \
+ || die "Failed to patch AutoGen.c"
+ for f in "${S}"/*/AutoGen.c; do
+ cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c"
+
+ #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U
+ #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4
+ #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel
+ #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU
+ GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel;
+ extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel;
+ #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
+ //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD
+ EOF
+ done
+}
+
+src_compile() {
+ # Prepare flags
+ [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \
+ || pecoff_header_size='0x220'
+
+ append-cflags $(test-flags-CC -fno-strict-aliasing)
+ append-cflags $(test-flags-CC -fno-stack-protector)
+ append-cflags $(test-flags-CC -fshort-wchar) $(test-flags-CC -Wall)
+
+ # Bug #598004: required to prevent gcc from inserting calls to memcpy or memmove
+ filter-flags -O*
+ append-cflags $(test-flags-CC -Os)
+
+ local make_flags=(
+ ARCH="${BUILDARCH}"
+ GENFW="/usr/bin/GenFw"
+ CC="$(tc-getCC)"
+ AS="$(tc-getAS)"
+ LD="$(tc-getLD)"
+ AR="$(tc-getAR)"
+ RANLIB="$(tc-getRANLIB)"
+ OBJCOPY="$(tc-getOBJCOPY)"
+ CFLAGS="${CFLAGS}"
+ LDFLAGS="${LDFLAGS}"
+ GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
+ -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs"
+ TIANO_LDSCRIPT="/usr/lib/GccBase.lds"
+ TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \
+ --script=\$(TIANO_LDSCRIPT) \
+ --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \
+ --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)"
+ )
+
+ # Make main EFI
+ local all_target
+ use gnuefi && all_target="gnuefi" || all_target="tiano"
+ emake "${make_flags[@]}" ${all_target}
+
+ # Make filesystem drivers
+ local gnuefi_target
+ use gnuefi && gnuefi_target="_gnuefi"
+ local fs
+ for fs in ${FS_USE}; do
+ fs=${fs#+}
+ if use "${fs}"; then
+ einfo "Building ${fs} filesystem driver"
+ emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
+ fi
+ done
+}
+
+src_install() {
+ exeinto "/usr/share/${P}"
+ doexe refind-install
+ dosym "/usr/share/${P}/refind-install" "/usr/sbin/refind-install"
+
+ dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
+ if use doc; then
+ doman "${S}/docs/man/"*
+ dodoc -r ${DOCS}
+ fi
+
+ insinto "/usr/share/${P}/refind"
+ doins "${S}/refind/refind_${EFIARCH}.efi"
+ doins "${S}/refind.conf-sample"
+ doins -r images icons fonts banners
+
+ if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
+ doins -r "${S}/drivers_${EFIARCH}"
+ fi
+
+ insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
+ doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
+
+ insinto "/etc/refind.d"
+ doins -r "${S}/keys"
+
+ dosbin "${S}/mkrlconf"
+ dosbin "${S}/mvrefind"
+}
+
+pkg_postinst() {
+ elog "rEFInd has been built and installed into /usr/share/${P}"
+ elog "You will need to use the command 'refind-install' to install"
+ elog "the binaries into your EFI System Partition"
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog ""
+ elog "refind-install requires additional packages to be fully functional:"
+ elog " app-crypt/sbsigntool for binary signing for use with SecureBoot"
+ elog " sys-boot/efibootmgr for writing to NVRAM"
+ elog " sys-block/parted for automatic ESP location and mount"
+ elog ""
+ elog "A sample configuration can be found at"
+ elog "/usr/share/${P}/refind/refind.conf-sample"
+ else
+ ewarn "Note that this will not update any EFI binaries on your EFI"
+ ewarn "System Partition - this needs to be done manually."
+ fi
+}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2016-03-14 23:37 Sam Jorna
0 siblings, 0 replies; 57+ messages in thread
From: Sam Jorna @ 2016-03-14 23:37 UTC (permalink / raw
To: gentoo-commits
commit: 8cd364a8f3b411654a5d551540902a34c7f8caeb
Author: Sam Jorna <wraeth <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 14 23:28:07 2016 +0000
Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org>
CommitDate: Mon Mar 14 23:28:07 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cd364a8
sys-boot/refind: update metadata
Package-Manager: portage-2.2.28
sys-boot/refind/metadata.xml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sys-boot/refind/metadata.xml b/sys-boot/refind/metadata.xml
index 8a2da9e..a5bf904 100644
--- a/sys-boot/refind/metadata.xml
+++ b/sys-boot/refind/metadata.xml
@@ -2,9 +2,8 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
- <email>wraeth@wraeth.id.au</email>
+ <email>wraeth@gentoo.org</email>
<name>Sam Jorna</name>
- <description>Proxy - Maintainer. Assign bugs to him</description>
</maintainer>
<maintainer type="person">
<email>sveyret@gmail.com</email>
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2015-09-21 3:54 Ian Delaney
0 siblings, 0 replies; 57+ messages in thread
From: Ian Delaney @ 2015-09-21 3:54 UTC (permalink / raw
To: gentoo-commits
commit: 7cf329c650af9be1178a6df6f950a9e64aebea69
Author: Ian Delaney <idella4 <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 21 03:53:38 2015 +0000
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Mon Sep 21 03:53:38 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cf329c6
sys-boot/refind: bump to -0.9.2, ebuild a live / versioned combo
sourced fron, and closes, bug #560962
Package-Manager: portage-2.2.20.1
sys-boot/refind/Manifest | 1 +
sys-boot/refind/refind-0.9.2.ebuild | 101 ++++++++++++++++++++++++++++++++++++
2 files changed, 102 insertions(+)
diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest
index d2c33c7..01fdfe6 100644
--- a/sys-boot/refind/Manifest
+++ b/sys-boot/refind/Manifest
@@ -1 +1,2 @@
DIST refind-src-0.9.0.zip 2939724 SHA256 842a01d7964bc8c8000a66e6d08f6fadb4c257d251b1277cebff0bf731e024aa SHA512 c49e3110e6b9f8d44dadae1ab828d3bf59bbce2da9170efed73db961135144ae9963b57d4cc39af2b15ecdf1f289359bda56c3d3e8f72d05be165ae5a3e2654d WHIRLPOOL 225a6b84ea7044e8fe0bab5e268c8c46a4523ab6f408d1bb2a94adfe54afe80c9c83ec0dc104945b332ae6c375c9d041972dee39baa43665588eb0dfc1fe4362
+DIST refind-src-0.9.2.zip 2941986 SHA256 9022da3d46493395c273e2d2fc555d1c786fb1b9c11b2912751a88fe3328212a SHA512 6636cf02bb69ffe699d5f9717d09b80db0e4330aa52c14949e8612caed11f032370db17700c15d285173729271d2434fd0fbc39f5b445a3c05255ee14d125d47 WHIRLPOOL 2d81427bf6cc9cf021a4ffc7238bcf914e380fea091cbefaa601e391cf28f43f7c3ef1181744e4aab3d71d2535d88ba633b13cdae696f0baddd26d3c2511a88d
diff --git a/sys-boot/refind/refind-0.9.2.ebuild b/sys-boot/refind/refind-0.9.2.ebuild
new file mode 100644
index 0000000..7520444
--- /dev/null
+++ b/sys-boot/refind/refind-0.9.2.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="git://git.code.sf.net/p/refind/code"
+else
+ SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.zip"
+ KEYWORDS="~x86 ~amd64"
+fi
+
+DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
+HOMEPAGE="http://www.rodsbooks.com/refind/index.html"
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
+
+DOCS="NEWS.txt README.txt docs/refind docs/Styles"
+
+DEPEND=">=sys-boot/gnu-efi-3.0u"
+
+src_prepare() {
+ # bug 560280: Relocate the install location of refind.conf-sample
+ local oldstring="\$RefindDir\/refind.conf-sample"
+ local newstring="\/usr\/share\/doc\/${PF}\/refind.conf-sample"
+ sed -e "s/$oldstring/$newstring/" -i install.sh || die
+
+ epatch_user
+}
+
+src_compile() {
+ emake gnuefi
+
+ pushd "${S}/filesystems" > /dev/null
+ for fs in ${IUSE}; do
+ fs=${fs#+}
+ if use "${fs}"; then
+ einfo "Building ${fs} filesystem driver"
+ rm -f fsw_efi.o
+
+ # ARCH detection in the Makefile not working
+ use x86 && buildarch=ia32
+ use amd64 && buildarch=x86_64
+ emake DRIVERNAME=${fs} ARCH=${buildarch} -f Make.gnuefi
+ fi
+ done
+ popd > /dev/null
+}
+
+src_install() {
+ exeinto "/usr/share/${P}"
+ doexe install.sh
+
+ dodoc -r ${DOCS}
+
+ dodoc refind.conf-sample
+ docompress -x /usr/share/doc/${PF}/refind.conf-sample
+
+ insinto "/usr/share/${P}/refind"
+ use x86 && doins refind/refind_ia32.efi
+ use amd64 && doins refind/refind_x64.efi
+
+ use x86 && filearch=ia32
+ use amd64 && filearch=x64
+ insinto "/usr/share/${P}/refind/drivers_${filearch}"
+ for fs in ${IUSE}; do
+ fs=${fs#+}
+ if use "${fs}"; then
+ doins "drivers_${filearch}/${fs}_${filearch}.efi"
+ fi
+ done
+
+ insinto "/usr/share/${P}/refind"
+ doins -r images icons fonts banners
+
+ insinto "/usr/share/${P}/keys"
+ doins keys/*
+}
+
+pkg_postinst() {
+ elog "EFI executables have been built and installed into /usr/share/${P}"
+ elog "You will need to use the provided install script 'install.sh' or"
+ elog "manually install the binaries into your EFI System Partition"
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog ""
+ elog "For key generation and binary signing for use with SecureBoot, the"
+ elog "package app-crypt/sbsigntool can be installed"
+ elog ""
+ elog "A sample configration can be found at"
+ elog "/usr/share/doc/${PF}/refind.conf-sample"
+ else
+ ewarn "Note that this will not update any EFI binaries on your EFI"
+ ewarn "System Partition - this needs to be done manually."
+ fi
+}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2015-09-17 14:46 Ian Delaney
0 siblings, 0 replies; 57+ messages in thread
From: Ian Delaney @ 2015-09-17 14:46 UTC (permalink / raw
To: gentoo-commits
commit: 38e32a781985174b5a8d095086f9e3ed1e4bd59a
Author: Ian Delaney <idella4 <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 17 14:45:56 2015 +0000
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Thu Sep 17 14:45:56 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38e32a78
sys-boot/refind: revbump to -0.9.0-r1
patch to ebuild sourced from bug #560280, rm inital ebuild
Package-Manager: portage-2.2.20.1
.../{refind-0.9.0.ebuild => refind-0.9.0-r1.ebuild} | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/sys-boot/refind/refind-0.9.0.ebuild b/sys-boot/refind/refind-0.9.0-r1.ebuild
similarity index 79%
rename from sys-boot/refind/refind-0.9.0.ebuild
rename to sys-boot/refind/refind-0.9.0-r1.ebuild
index d3b517b..9f616d5 100644
--- a/sys-boot/refind/refind-0.9.0.ebuild
+++ b/sys-boot/refind/refind-0.9.0-r1.ebuild
@@ -4,6 +4,8 @@
EAPI=5
+inherit eutils
+
DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
HOMEPAGE="http://www.rodsbooks.com/refind/index.html"
SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.zip"
@@ -13,11 +15,20 @@ SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
-DOCS="NEWS.txt README.txt refind.conf-sample docs/refind docs/Styles"
+DOCS="NEWS.txt README.txt docs/refind docs/Styles"
DEPEND=">=sys-boot/gnu-efi-3.0u"
RDEPEND=""
+src_prepare() {
+ # bug 560280: Relocate the install location of refind.conf-sample
+ local oldstring="\$RefindDir\/refind.conf-sample"
+ local newstring="\/usr\/share\/doc\/${PF}\/refind.conf-sample"
+ sed -e "s/$oldstring/$newstring/" -i install.sh || die
+
+ epatch_user
+}
+
src_compile() {
emake gnuefi
@@ -43,6 +54,9 @@ src_install() {
dodoc -r ${DOCS}
+ dodoc refind.conf-sample
+ docompress -x /usr/share/doc/${PF}/refind.conf-sample
+
insinto "/usr/share/${P}/refind"
use x86 && doins refind/refind_ia32.efi
use amd64 && doins refind/refind_x64.efi
@@ -74,6 +88,6 @@ pkg_postinst() {
einfo "package app-crypt/sbsigntool can be installed"
einfo ""
einfo "A sample configration can be found at"
- einfo "/usr/share/doc/${P}/refind.conf-sample.bz2"
+ einfo "/usr/share/doc/${PF}/refind.conf-sample"
einfo ""
}
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2015-08-26 5:15 Ian Delaney
0 siblings, 0 replies; 57+ messages in thread
From: Ian Delaney @ 2015-08-26 5:15 UTC (permalink / raw
To: gentoo-commits
commit: 1c5ce3b9f9d90010f9941cabfaafdbdb6f9e72ad
Author: Ian Delaney <idella4 <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 26 05:14:48 2015 +0000
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Wed Aug 26 05:14:48 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c5ce3b9
sys-boot/refind: substitute with final ebuild, rm bogus file
Package-Manager: portage-2.2.20
sys-boot/refind/refind-0.9.0.ebuild | 31 +++++++++++++++++--------------
sys-boot/refind/thiisthing | 0
2 files changed, 17 insertions(+), 14 deletions(-)
diff --git a/sys-boot/refind/refind-0.9.0.ebuild b/sys-boot/refind/refind-0.9.0.ebuild
index 2b763a7..d3b517b 100644
--- a/sys-boot/refind/refind-0.9.0.ebuild
+++ b/sys-boot/refind/refind-0.9.0.ebuild
@@ -13,26 +13,28 @@ SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
-DOCS="BUILDING.txt NEWS.txt README.txt refind.conf-sample {refind,Styles}"
+DOCS="NEWS.txt README.txt refind.conf-sample docs/refind docs/Styles"
DEPEND=">=sys-boot/gnu-efi-3.0u"
RDEPEND=""
src_compile() {
- emake gnuefi || die "Failed to build refind EFI binary"
+ emake gnuefi
- cd "${S}/filesystems"
- for fs in ext2 ext4 reiserfs iso9660 hfs btrfs ; do
- if use "${fs}" ; then
+ pushd "${S}/filesystems" > /dev/null
+ for fs in ${IUSE}; do
+ fs=${fs#+}
+ if use "${fs}"; then
einfo "Building ${fs} filesystem driver"
rm -f fsw_efi.o
# ARCH detection in the Makefile not working
use x86 && buildarch=ia32
use amd64 && buildarch=x86_64
- emake DRIVERNAME=${fs} ARCH=${buildarch} -f Make.gnuefi || die "Failed building ${fs} filesystem EFI binary"
+ emake DRIVERNAME=${fs} ARCH=${buildarch} -f Make.gnuefi
fi
done
+ popd > /dev/null
}
src_install() {
@@ -48,14 +50,15 @@ src_install() {
use x86 && filearch=ia32
use amd64 && filearch=x64
insinto "/usr/share/${P}/refind/drivers_${filearch}"
- for fs in ext2 ext4 reiserfs iso9660 hfs btrfs ; do
- if use "${fs}" ; then doins "drivers_${filearch}/${fs}_${filearch}.efi" ; fi
+ for fs in ${IUSE}; do
+ fs=${fs#+}
+ if use "${fs}"; then
+ doins "drivers_${filearch}/${fs}_${filearch}.efi"
+ fi
done
- for dir in images icons fonts banners ; do
- insinto "/usr/share/${P}/refind/${dir}"
- doins -r "${dir}"
- done
+ insinto "/usr/share/${P}/refind"
+ doins -r images icons fonts banners
insinto "/usr/share/${P}/keys"
doins keys/*
@@ -65,10 +68,10 @@ pkg_postinst() {
einfo ""
einfo "EFI executables have been built and installed into /usr/share/${P}"
einfo "You will need to use the provided install script 'install.sh' or"
- einfo "manually install the binaries into your EFI System Partition."
+ einfo "manually install the binaries into your EFI System Partition"
einfo ""
einfo "For key generation and binary signing for use with SecureBoot, the"
- einfo "package app-crypt/sbsigntool can be installed."
+ einfo "package app-crypt/sbsigntool can be installed"
einfo ""
einfo "A sample configration can be found at"
einfo "/usr/share/doc/${P}/refind.conf-sample.bz2"
diff --git a/sys-boot/refind/thiisthing b/sys-boot/refind/thiisthing
deleted file mode 100644
index e69de29..0000000
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
@ 2015-08-26 3:46 Ian Delaney
0 siblings, 0 replies; 57+ messages in thread
From: Ian Delaney @ 2015-08-26 3:46 UTC (permalink / raw
To: gentoo-commits
commit: 5ff4b13a46f5c8f2ea70aa227cb95b22b7a89d24
Author: Ian Delaney <idella4 <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 26 03:44:16 2015 +0000
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Wed Aug 26 03:46:03 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ff4b13a
sys-boot/refind: new package added by new proxy maintainer 'wraeth'
Source of ebuild and metadata from bug #435960, closes said bug.
Added under the proxy-maint herd.
Package-Manager: portage-2.2.20
sys-boot/refind/Manifest | 1 +
sys-boot/refind/metadata.xml | 20 ++++++++++
sys-boot/refind/refind-0.9.0.ebuild | 76 +++++++++++++++++++++++++++++++++++++
sys-boot/refind/thiisthing | 0
4 files changed, 97 insertions(+)
diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest
new file mode 100644
index 0000000..d2c33c7
--- /dev/null
+++ b/sys-boot/refind/Manifest
@@ -0,0 +1 @@
+DIST refind-src-0.9.0.zip 2939724 SHA256 842a01d7964bc8c8000a66e6d08f6fadb4c257d251b1277cebff0bf731e024aa SHA512 c49e3110e6b9f8d44dadae1ab828d3bf59bbce2da9170efed73db961135144ae9963b57d4cc39af2b15ecdf1f289359bda56c3d3e8f72d05be165ae5a3e2654d WHIRLPOOL 225a6b84ea7044e8fe0bab5e268c8c46a4523ab6f408d1bb2a94adfe54afe80c9c83ec0dc104945b332ae6c375c9d041972dee39baa43665588eb0dfc1fe4362
diff --git a/sys-boot/refind/metadata.xml b/sys-boot/refind/metadata.xml
new file mode 100644
index 0000000..3af998e
--- /dev/null
+++ b/sys-boot/refind/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>wraeth@wraeth.id.au</email>
+ <name>Sam Jorna</name>
+ <description>Proxy - Maintainer. Assign bugs to him</description>
+ </maintainer>
+ <longdescription>EFI Boot Manager</longdescription>
+ <use>
+ <flag name="ext2">Builds the EFI binary ext2 filesystem driver</flag>
+ <flag name="ext4">Builds the EFI binary ext4 filesystem driver</flag>
+ <flag name="reiserfs">Builds the EFI binary reiserfs filesystem driver</flag>
+ <flag name="iso9660">Builds the EFI binary iso9660 filesystem driver</flag>
+ <flag name="hfs">Builds the EFI binary hfs filesystem driver</flag>
+ <flag name="btrfs"> Builds the EFI binary btrfs filesystem driver</flag>
+ <flag name="ntfs">Builds the EFI binary ntfs filesystem driver</flag>
+ </use>
+</pkgmetadata>
diff --git a/sys-boot/refind/refind-0.9.0.ebuild b/sys-boot/refind/refind-0.9.0.ebuild
new file mode 100644
index 0000000..2b763a7
--- /dev/null
+++ b/sys-boot/refind/refind-0.9.0.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
+HOMEPAGE="http://www.rodsbooks.com/refind/index.html"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.zip"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
+
+DOCS="BUILDING.txt NEWS.txt README.txt refind.conf-sample {refind,Styles}"
+
+DEPEND=">=sys-boot/gnu-efi-3.0u"
+RDEPEND=""
+
+src_compile() {
+ emake gnuefi || die "Failed to build refind EFI binary"
+
+ cd "${S}/filesystems"
+ for fs in ext2 ext4 reiserfs iso9660 hfs btrfs ; do
+ if use "${fs}" ; then
+ einfo "Building ${fs} filesystem driver"
+ rm -f fsw_efi.o
+
+ # ARCH detection in the Makefile not working
+ use x86 && buildarch=ia32
+ use amd64 && buildarch=x86_64
+ emake DRIVERNAME=${fs} ARCH=${buildarch} -f Make.gnuefi || die "Failed building ${fs} filesystem EFI binary"
+ fi
+ done
+}
+
+src_install() {
+ exeinto "/usr/share/${P}"
+ doexe install.sh
+
+ dodoc -r ${DOCS}
+
+ insinto "/usr/share/${P}/refind"
+ use x86 && doins refind/refind_ia32.efi
+ use amd64 && doins refind/refind_x64.efi
+
+ use x86 && filearch=ia32
+ use amd64 && filearch=x64
+ insinto "/usr/share/${P}/refind/drivers_${filearch}"
+ for fs in ext2 ext4 reiserfs iso9660 hfs btrfs ; do
+ if use "${fs}" ; then doins "drivers_${filearch}/${fs}_${filearch}.efi" ; fi
+ done
+
+ for dir in images icons fonts banners ; do
+ insinto "/usr/share/${P}/refind/${dir}"
+ doins -r "${dir}"
+ done
+
+ insinto "/usr/share/${P}/keys"
+ doins keys/*
+}
+
+pkg_postinst() {
+ einfo ""
+ einfo "EFI executables have been built and installed into /usr/share/${P}"
+ einfo "You will need to use the provided install script 'install.sh' or"
+ einfo "manually install the binaries into your EFI System Partition."
+ einfo ""
+ einfo "For key generation and binary signing for use with SecureBoot, the"
+ einfo "package app-crypt/sbsigntool can be installed."
+ einfo ""
+ einfo "A sample configration can be found at"
+ einfo "/usr/share/doc/${P}/refind.conf-sample.bz2"
+ einfo ""
+}
diff --git a/sys-boot/refind/thiisthing b/sys-boot/refind/thiisthing
new file mode 100644
index 0000000..e69de29
^ permalink raw reply related [flat|nested] 57+ messages in thread
end of thread, other threads:[~2024-11-23 9:48 UTC | newest]
Thread overview: 57+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-15 8:53 [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/ Sam Jorna
-- strict thread matches above, loose matches on Subject: below --
2024-11-23 9:48 Viorel Munteanu
2024-10-15 4:54 Viorel Munteanu
2024-10-08 5:18 Viorel Munteanu
2024-09-30 14:06 Sam James
2024-09-30 14:06 Sam James
2024-08-28 15:14 Viorel Munteanu
2024-08-25 9:51 Arthur Zamarin
2024-08-25 9:51 Arthur Zamarin
2024-06-17 19:01 Viorel Munteanu
2024-06-05 4:47 Viorel Munteanu
2024-06-05 4:47 Viorel Munteanu
2024-06-05 4:47 Viorel Munteanu
2023-10-17 6:09 Joonas Niilola
2023-10-17 6:09 Joonas Niilola
2023-09-07 9:58 Viorel Munteanu
2023-07-20 11:33 Andrew Ammerlaan
2022-05-18 15:30 Joonas Niilola
2021-12-07 6:26 Agostino Sarubbo
2021-12-05 22:04 Sam James
2021-03-23 9:21 Joonas Niilola
2021-01-20 9:29 Sam James
2021-01-19 14:24 Sam James
2021-01-10 18:30 Sam James
2020-12-07 7:36 Joonas Niilola
2020-07-30 21:12 Marek Szuba
2020-04-30 12:00 Joonas Niilola
2020-04-30 12:00 Joonas Niilola
2019-11-12 10:45 Agostino Sarubbo
2019-11-12 10:05 Agostino Sarubbo
2018-09-02 0:46 Sam Jorna
2018-08-30 9:12 Sam Jorna
2018-08-30 9:12 Sam Jorna
2018-04-27 9:23 Sam Jorna
2018-04-23 13:01 Sam Jorna
2018-03-25 17:57 Mikle Kolyada
2018-01-03 13:43 Patrice Clement
2017-07-11 13:10 Michael Palimaka
2017-05-15 11:02 Sam Jorna
2017-04-28 0:36 Sam Jorna
2017-04-23 23:29 Sam Jorna
2016-12-22 5:10 Aaron Bauman
2016-12-14 22:38 Sam Jorna
2016-12-14 22:38 Sam Jorna
2016-12-14 22:38 Sam Jorna
2016-11-06 16:24 Göktürk Yüksek
2016-11-06 16:24 Göktürk Yüksek
2016-11-06 16:24 Göktürk Yüksek
2016-10-25 2:48 Göktürk Yüksek
2016-10-25 2:48 Göktürk Yüksek
2016-10-25 2:48 Göktürk Yüksek
2016-10-25 2:48 Göktürk Yüksek
2016-03-14 23:37 Sam Jorna
2015-09-21 3:54 Ian Delaney
2015-09-17 14:46 Ian Delaney
2015-08-26 5:15 Ian Delaney
2015-08-26 3:46 Ian Delaney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox