From a47ce1147712779f3c8477ca908f91f14bedd3f0 Mon Sep 17 00:00:00 2001 From: Zhu Qun-Ying Date: Sat, 18 Jan 2020 08:05:11 +0700 Subject: system/rEFInd: Added (An EFI boot manager utility). Signed-off-by: Willy Sudiarto Raharjo --- system/rEFInd/README | 13 ++++ system/rEFInd/rEFInd.SlackBuild | 101 +++++++++++++++++++++++++++ system/rEFInd/rEFInd.info | 10 +++ system/rEFInd/slack-desc | 19 ++++++ system/rEFInd/slackware-banner.png | Bin 0 -> 27832 bytes system/rEFInd/slackware-banner.svg | 136 +++++++++++++++++++++++++++++++++++++ 6 files changed, 279 insertions(+) create mode 100644 system/rEFInd/README create mode 100644 system/rEFInd/rEFInd.SlackBuild create mode 100644 system/rEFInd/rEFInd.info create mode 100644 system/rEFInd/slack-desc create mode 100644 system/rEFInd/slackware-banner.png create mode 100644 system/rEFInd/slackware-banner.svg diff --git a/system/rEFInd/README b/system/rEFInd/README new file mode 100644 index 0000000000..2909b3d5d2 --- /dev/null +++ b/system/rEFInd/README @@ -0,0 +1,13 @@ +rEFInd (An EFI boot manager utility) + +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. +EFI-compatible 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. + +This package is optionally depends on python3 if you want to run the +refind-mkdefault script, otherwise you don't need python3. diff --git a/system/rEFInd/rEFInd.SlackBuild b/system/rEFInd/rEFInd.SlackBuild new file mode 100644 index 0000000000..4fc3ad577f --- /dev/null +++ b/system/rEFInd/rEFInd.SlackBuild @@ -0,0 +1,101 @@ +#!/bin/sh + +# Slackware build script for refind + +# Copyright 2020 Zhu Qun-Ying All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=rEFInd +SRCNAME=refind +VERSION=${VERSION:-0.11.4} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ "$ARCH" != "x86_64" ] && [ "$ARCH" != "i586" ] && [ "$ARCH" != "i686" ]; then + echo "Platform $ARCH not supported." + exit +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAME-$VERSION +tar xvf $CWD/$SRCNAME-src-$VERSION.tar.gz +cd $SRCNAME-$VERSION +chown -R root:root . + +if [ "$ARCH" == "x86_64" ]; then + sed -i -s 's/usr\/lib/usr\/lib64/' Make.common + REFIND_SUFFIX=x64 +else + REFIND_SUFFIX=ia32 +fi +sed -i '/^EFICRT0/ s/$/\/gnuefi/' Make.common +make all_gnuefi +REFIND_SHARE_DIR=$PKG/usr/share/$PRGNAM-$VERSION +mkdir -p $PKG/usr/sbin +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $REFIND_SHARE_DIR + +# copy keys +cp -ra keys refind-install refind-mkdefault fonts banners $REFIND_SHARE_DIR +mkdir $REFIND_SHARE_DIR/refind +cp refind/*.efi $REFIND_SHARE_DIR/refind +cp refind.conf-sample $REFIND_SHARE_DIR/refind +cp refind-install refind-mkdefault $REFIND_SHARE_DIR/ +cp -ra icons $REFIND_SHARE_DIR/refind +mkdir $REFIND_SHARE_DIR/refind/drivers_$REFIND_SUFFIX +cp ./filesystems/*.efi $REFIND_SHARE_DIR/refind/drivers_$REFIND_SUFFIX +cp ./filesystems/LICENSE* $REFIND_SHARE_DIR/refind/drivers_$REFIND_SUFFIX +mkdir $REFIND_SHARE_DIR/refind/tools_$REFIND_SUFFIX +cp ./gptsync/*.efi $REFIND_SHARE_DIR/refind/tools_$REFIND_SUFFIX + +cp mkrlconf mvrefind mountesp $PKG/usr/sbin +cp -a docs/* *.txt $PKG/usr/doc/$PRGNAM-$VERSION + +# include a slackware banner made by me, including the svg version +cp $CWD/slackware-banner.* $REFIND_SHARE_DIR/banners + +mkdir -p $PKG/usr/man/man8 +mv $PKG/usr/doc/$PRGNAM-$VERSION/man/*.8 $PKG/usr/man/man8 +rmdir $PKG/usr/doc/$PRGNAM-$VERSION/man +gzip $PKG/usr/man/man8/* + +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/system/rEFInd/rEFInd.info b/system/rEFInd/rEFInd.info new file mode 100644 index 0000000000..2b459a32c1 --- /dev/null +++ b/system/rEFInd/rEFInd.info @@ -0,0 +1,10 @@ +PRGNAM="rEFInd" +VERSION="0.11.4" +HOMEPAGE="http://www.rodsbooks.com/refind/index.html" +DOWNLOAD="https://sourceforge.net/projects/refind/files/0.11.4/refind-src-0.11.4.tar.gz" +MD5SUM="70cc2d59670aa842c295894342bd7ddc" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Zhu Qun-Ying" +EMAIL="zhu.qunying@gmail.com" diff --git a/system/rEFInd/slack-desc b/system/rEFInd/slack-desc new file mode 100644 index 0000000000..9110c5da70 --- /dev/null +++ b/system/rEFInd/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +rEFInd: rEFInd (An EFI boot manager utility) +rEFInd: +rEFInd: A graphical boot manager for EFI and UEFI-based computers, such as all +rEFInd: Intel-based Macs and recent (most 2011 and later) PCs. rEFInd presents +rEFInd: a boot menu showing all the EFI boot loaders on the EFI-accessible +rEFInd: partitions, and optionally BIOS-bootable partitions on Macs. +rEFInd: EFI-compatible OSes, including Linux, provide boot loaders that rEFInd +rEFInd: can detect and launch. rEFInd can launch Linux EFI boot loaders such +rEFInd: as ELILO, GRUB Legacy, GRUB 2, and 3.3.0 and later kernels with EFI +rEFInd: stub support. +rEFInd: Home page: http://www.rodsbooks.com/refind/ diff --git a/system/rEFInd/slackware-banner.png b/system/rEFInd/slackware-banner.png new file mode 100644 index 0000000000..3458904c3d Binary files /dev/null and b/system/rEFInd/slackware-banner.png differ diff --git a/system/rEFInd/slackware-banner.svg b/system/rEFInd/slackware-banner.svg new file mode 100644 index 0000000000..78baf4d4d0 --- /dev/null +++ b/system/rEFInd/slackware-banner.svg @@ -0,0 +1,136 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + Slackware + l i n u x + http://www.slackware.com + + + -- cgit v1.2.3