Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Ismael Luceno (f81c042c0ed7b8cd8fd3f2eb96c70d332f6712cf)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (f81c042c0ed7b8cd8fd3f2eb96c70d332f6712cf)
  • Date: Sun, 27 Feb 2022 17:45:32 +0000

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

ChangeLog | 3 ++
disk/refind/BUILD | 4 +++
disk/refind/CONFIGURE | 6 ++++
disk/refind/DEPENDS | 1
disk/refind/DETAILS | 27 +++++++++++++++++++++
disk/refind/HISTORY | 3 ++
disk/refind/INSTALL | 42 +++++++++++++++++++++++++++++++++
disk/refind/PRE_BUILD | 4 +++
disk/refind/patches/gnu-efi.patch | 48
++++++++++++++++++++++++++++++++++++++
9 files changed, 138 insertions(+)

New commits:
commit f81c042c0ed7b8cd8fd3f2eb96c70d332f6712cf
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

refind: new spell, The rEFInd Boot Manager

diff --git a/ChangeLog b/ChangeLog
index 495a753..0fbda97 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2022-02-27 Ismael Luceno <ismael AT sourcemage.org>
+ * disk/refind: new spell, The rEFInd Boot Manager
+
2022-02-25 Ismael Luceno <ismael AT sourcemage.org>
* chat-irc/solanum: new spell, An IRCd for unified networks

diff --git a/disk/refind/BUILD b/disk/refind/BUILD
new file mode 100755
index 0000000..1ed61e1
--- /dev/null
+++ b/disk/refind/BUILD
@@ -0,0 +1,4 @@
+fs=($REFIND_FS) &&
+make -j"$MAKE_NJOBS" all_gnuefi \
+ FILESYSTEMS_GNUEFI="${fs[@]/%/_gnuefi}" \
+ CC="${CC:-cc}"
diff --git a/disk/refind/CONFIGURE b/disk/refind/CONFIGURE
new file mode 100755
index 0000000..43614f9
--- /dev/null
+++ b/disk/refind/CONFIGURE
@@ -0,0 +1,6 @@
+. "$GRIMOIRE"/FUNCTIONS &&
+all_fs=(btrfs ext2 ext4 hfs iso9660 reiserfs) &&
+config_query_multi REFIND_FS "Additional filesystem drivers:" \
+ none "${all_fs[@]}" all &&
+REFIND_FS="${REFIND_FS/none}" &&
+REFIND_FS="${REFIND_FS/all/${all_fs[*]}}"
diff --git a/disk/refind/DEPENDS b/disk/refind/DEPENDS
new file mode 100755
index 0000000..3747b4f
--- /dev/null
+++ b/disk/refind/DEPENDS
@@ -0,0 +1 @@
+depends gnu-efi
diff --git a/disk/refind/DETAILS b/disk/refind/DETAILS
new file mode 100755
index 0000000..fb17573
--- /dev/null
+++ b/disk/refind/DETAILS
@@ -0,0 +1,27 @@
+ SPELL=refind
+ VERSION=0.13.2
+ SOURCE="$SPELL-src-$VERSION.tar.gz"
+ SOURCE_URL[0]=$SOURCEFORGE_URL/project/$SPELL/$VERSION/$SOURCE
+
SOURCE_HASH=sha512:e671d44385297295c143824dd95593f2e7bc8e282745d127b041a645aa27003467a3a23f368fd30297f33faa06bd914540d7bdc3c71ec42f6b7a38d7ee8e0ddb
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+ WEB_SITE="https://www.rodsbooks.com/refind/";
+ LICENSE[0]="GPL-3.0"
+ GATHER_DOCS=off
+ ENTERED=20220226
+ KEYWORDS=""
+ SHORT="The rEFInd Boot Manager"
+cat << EOF
+rEFInd is a fork of the rEFIt boot manager for computers based on (U)EFI.
+
+rEFInd is a boot manager, meaning that it presents a menu of options to the
+user when the computer first starts up, as shown below. rEFInd is not a boot
+loader, which is a program that loads an OS kernel and hands off control
+to it. Many popular boot managers, such as the Grand Unified Bootloader
+(GRUB), are also boot loaders, which can blur the distinction in many users'
+minds. All EFI-capable OSes include boot loaders, so this limitation isn't
+a problem. If you're using Linux, you should be aware that several EFI boot
+loaders are available, so choosing between them can be a challenge. In fact,
+since version 3.3.0, the Linux kernel can function as an EFI boot loader
+for itself, which gives rEFInd characteristics similar to a boot loader for
+Linux.
+EOF
diff --git a/disk/refind/HISTORY b/disk/refind/HISTORY
new file mode 100644
index 0000000..ae9ed99
--- /dev/null
+++ b/disk/refind/HISTORY
@@ -0,0 +1,3 @@
+2022-02-27 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD, CONFIGURE, DEPENDS, DETAILS, INSTALL, PRE_BUILD,
+ patches/gnu-efi.patch: spell created
diff --git a/disk/refind/INSTALL b/disk/refind/INSTALL
new file mode 100755
index 0000000..4fe1465
--- /dev/null
+++ b/disk/refind/INSTALL
@@ -0,0 +1,42 @@
+prefix="$INSTALL_ROOT"/usr &&
+etcdir="$INSTALL_ROOT/etc/refind.d" &&
+datarootdir="$prefix/share" &&
+datadir="$datarootdir/$SPELL" &&
+docdir="$datarootdir"/doc/"$SPELL" &&
+mandir="$datarootdir"/man &&
+sbindir="$prefix"/sbin &&
+
+install -v -d \
+ "$datadir"/{icons/svg,images,fonts,banners} \
+ "$docdir"/{Styles,refind} \
+ "$etcdir"/keys \
+ "$mandir"/man8 \
+ "$sbindir" &&
+
+install -v -m444 docs/man/*.8 "$mandir"/man8/ &&
+install -v -m444 *.txt "$docdir"/ &&
+install -v -m444 docs/refind/* "$docdir"/refind/ &&
+install -v -m444 docs/Styles/*.css "$docdir"/Styles/ &&
+
+install -v -m555 mkrlconf mvrefind refind-mkdefault "$sbindir" &&
+install -v -m555 refind-install "$datadir"/ &&
+ln -v -r -s "$datadir"/refind-install "$sbindir"/ &&
+
+install -v -m444 icons/*.png icons/README "$datadir"/icons/ &&
+install -v -m444 icons/svg/*.svg "$datadir"/icons/svg/ &&
+install -v -m444 images/* "$datadir"/images/ &&
+install -v -m444 fonts/* "$datadir"/fonts/ &&
+install -v -m444 banners/* "$datadir"/banners/ &&
+
+install_drv() {
+ local d=drivers_"$1" &&
+ if [ -d "$d" ]; then
+ install -v -d "$datadir/$d" &&
+ install -v -m444 "$d"/*.efi "$datadir/$d/"
+ fi
+} &&
+install_drv x64 &&
+install_drv ia32 &&
+install -v -m444 refind/*.efi gptsync/*.efi refind.conf-sample "$datadir"/ &&
+
+install -v -m444 keys/* "$etcdir"/keys/
diff --git a/disk/refind/PRE_BUILD b/disk/refind/PRE_BUILD
new file mode 100755
index 0000000..c470014
--- /dev/null
+++ b/disk/refind/PRE_BUILD
@@ -0,0 +1,4 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+echo .NOTPARALLEL: >> filesystems/Makefile &&
+apply_patch_dir patches
diff --git a/disk/refind/patches/gnu-efi.patch
b/disk/refind/patches/gnu-efi.patch
new file mode 100644
index 0000000..85f25e9
--- /dev/null
+++ b/disk/refind/patches/gnu-efi.patch
@@ -0,0 +1,48 @@
+Origin:
https://sourceforge.net/p/refind/code/ci/10f838a4cd132a5595acaf3c54c15782151a61df
+Applied-Upstream: 0.13.3
+From 10f838a4cd132a5595acaf3c54c15782151a61df Mon Sep 17 00:00:00 2001
+From: Rod Smith <rodsmith AT rodsbooks.com>
+Date: Sat, 23 Oct 2021 10:17:23 -0400
+Subject: [PATCH] Fix compile problems with recent GNU-EFI versions
+
+---
+ EfiLib/DevicePathUtilities.h | 13 -------------
+ EfiLib/gnuefi-helper.c | 1 -
+ NEWS.txt | 3 +++
+ include/version.h | 2 +-
+ 4 files changed, 4 insertions(+), 15 deletions(-)
+
+diff --git a/EfiLib/DevicePathUtilities.h b/EfiLib/DevicePathUtilities.h
+index b559671..14ed797 100644
+--- a/EfiLib/DevicePathUtilities.h
++++ b/EfiLib/DevicePathUtilities.h
+@@ -217,17 +217,4 @@ EFIAPI
+ --*/
+ ;
+
+-typedef struct {
+- EFI_DEVICE_PATH_UTILS_GET_DEVICE_PATH_SIZE GetDevicePathSize;
+- EFI_DEVICE_PATH_UTILS_DUP_DEVICE_PATH DuplicateDevicePath;
+- EFI_DEVICE_PATH_UTILS_APPEND_PATH AppendDevicePath;
+- EFI_DEVICE_PATH_UTILS_APPEND_NODE AppendDeviceNode;
+- EFI_DEVICE_PATH_UTILS_APPEND_INSTANCE AppendDevicePathInstance;
+- EFI_DEVICE_PATH_UTILS_GET_NEXT_INSTANCE GetNextDevicePathInstance;
+- EFI_DEVICE_PATH_UTILS_IS_MULTI_INSTANCE IsDevicePathMultiInstance;
+- EFI_DEVICE_PATH_UTILS_CREATE_NODE CreateDeviceNode;
+-} EFI_DEVICE_PATH_UTILITIES_PROTOCOL;
+-
+-extern EFI_GUID gEfiDevicePathUtilitiesProtocolGuid;
+-
+ #endif
+diff --git a/EfiLib/gnuefi-helper.c b/EfiLib/gnuefi-helper.c
+index 246c261..8730403 100644
+--- a/EfiLib/gnuefi-helper.c
++++ b/EfiLib/gnuefi-helper.c
+@@ -20,7 +20,6 @@
+ #include "refit_call_wrapper.h"
+ #include "LegacyBios.h"
+
+-EFI_GUID gEfiDevicePathUtilitiesProtocolGuid = { 0x09576E91, 0x6D3F,
0x11D2, { 0x8E, 0x39, 0x00, 0xA0, 0xC9, 0x69, 0x72, 0x3B }};
+ EFI_GUID gEfiLegacyBiosProtocolGuid = { 0xdb9a1e3d, 0x45cb, 0x4abb, { 0x85,
0x3b, 0xe5, 0x38, 0x7f, 0xdb, 0x2e, 0x2d }};
+
+ /**



  • [SM-Commit] GIT changes to master grimoire by Ismael Luceno (f81c042c0ed7b8cd8fd3f2eb96c70d332f6712cf), Ismael Luceno, 02/27/2022

Archive powered by MHonArc 2.6.24.

Top of Page