diff options
author | Zhu Qun-Ying <zhu.qunying@gmail.com> | 2023-05-18 20:43:02 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-05-20 11:17:08 +0700 |
commit | 453043e9d30671735ec3aad29d25091d4affb336 (patch) | |
tree | 1c8b6b448a0b14bcfbfaadcb73f41ba0ba5399a8 /system | |
parent | 4cde8a6f08ab70825cbbbd17ec4ace1a211f6c5f (diff) |
system/refind-bin: Added (An EFI boot manager utility)
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r-- | system/refind-bin/README | 15 | ||||
-rw-r--r-- | system/refind-bin/refind-bin.SlackBuild | 116 | ||||
-rw-r--r-- | system/refind-bin/refind-bin.info | 10 | ||||
-rw-r--r-- | system/refind-bin/slack-desc | 19 | ||||
-rw-r--r-- | system/refind-bin/slackware-banner.png | bin | 0 -> 27832 bytes | |||
-rw-r--r-- | system/refind-bin/slackware-banner.svg | 136 |
6 files changed, 296 insertions, 0 deletions
diff --git a/system/refind-bin/README b/system/refind-bin/README new file mode 100644 index 0000000000000..e0a0f59854c92 --- /dev/null +++ b/system/refind-bin/README @@ -0,0 +1,15 @@ +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 script does not build the boot manager from source, instead it +repackages the official binary as a Slackware package. + +There is an another Sbo script "rEFInd", which builds from source. diff --git a/system/refind-bin/refind-bin.SlackBuild b/system/refind-bin/refind-bin.SlackBuild new file mode 100644 index 0000000000000..465f5fcf90d13 --- /dev/null +++ b/system/refind-bin/refind-bin.SlackBuild @@ -0,0 +1,116 @@ +#!/bin/bash + +# Slackware build script for refind + +# Copyright 2014-2023 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. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=refind-bin +SRCNAM=refind +VERSION=${VERSION:-0.14.0.2} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +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 + +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +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 $SRCNAM-bin-$VERSION +unzip $CWD/$SRCNAM-bin-${VERSION}.zip +cd $SRCNAM-bin-$VERSION +chown -R root:root . + +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 refind-install refind-mkdefault fonts banners $REFIND_SHARE_DIR +cp mkrlconf mvrefind mountesp $PKG/usr/sbin +cp -a docs/* *.txt $PKG/usr/doc/$PRGNAM-$VERSION + +(cd $PKG/usr/sbin + ln -sf /usr/share/$PRGNAM-$VERSION/refind-install + ln -sf /usr/share/$PRGNAM-$VERSION/refind-mkdefault) + +AA64_PKG="$REFIND_SHARE_DIR/refind/drivers_aa64 \ + $REFIND_SHARE_DIR/refind/tools_aa64 \ + $REFIND_SHARE_DIR/refind/refind_aa64.efi" +# remove unnecessary packages +if [ "$ARCH" = "x86_64" ]; then + rm -rf $REFIND_SHARE_DIR/refind/drivers_ia32 \ + $REFIND_SHARE_DIR/refind/tools_ia32 \ + $REFIND_SHARE_DIR/refind/refind_ia32.efi \ + $AA64_PKG +else + rm -rf $REFIND_SHARE_DIR/refind/drivers_x64 \ + $REFIND_SHARE_DIR/refind/tools_x64 \ + $REFIND_SHARE_DIR/refind/refind_x64.efi \ + $AA64_PKG +fi + +find $PKG/usr/doc -type d -exec chmod 0755 {} \; + +# 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 +find $PKG/usr/man -type f -exec chmod 0644 {} \; +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 diff --git a/system/refind-bin/refind-bin.info b/system/refind-bin/refind-bin.info new file mode 100644 index 0000000000000..d78996371ced2 --- /dev/null +++ b/system/refind-bin/refind-bin.info @@ -0,0 +1,10 @@ +PRGNAM="refind-bin" +VERSION="0.14.0.2" +HOMEPAGE="https://www.rodsbooks.com/refind" +DOWNLOAD="https://sourceforge.net/projects/refind/files/0.14.0.2/refind-bin-0.14.0.2.zip" +MD5SUM="541ad974824eec978f953bdee349bd5c" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Zhu Qun-Ying" +EMAIL="zhu.qunying@gmail.com" diff --git a/system/refind-bin/slack-desc b/system/refind-bin/slack-desc new file mode 100644 index 0000000000000..56aad68dfafe0 --- /dev/null +++ b/system/refind-bin/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-bin: refind-bin (An EFI boot manager utility) +refind-bin: +refind-bin: A graphical boot manager for EFI and UEFI-based computers, such as all +refind-bin: Intel-based Macs and recent (most 2011 and later) PCs. rEFInd presents +refind-bin: a boot menu showing all the EFI boot loaders on the EFI-accessible +refind-bin: partitions, and optionally BIOS-bootable partitions on Macs. +refind-bin: EFI-compatible OSes, including Linux, provide boot loaders that rEFInd +refind-bin: can detect and launch. rEFInd can launch Linux EFI boot loaders such +refind-bin: as ELILO, GRUB Legacy, GRUB 2, and 3.3.0 and later kernels with EFI +refind-bin: stub support. +refind-bin: Home page: http://www.rodsbooks.com/refind/ diff --git a/system/refind-bin/slackware-banner.png b/system/refind-bin/slackware-banner.png Binary files differnew file mode 100644 index 0000000000000..3458904c3dbbc --- /dev/null +++ b/system/refind-bin/slackware-banner.png diff --git a/system/refind-bin/slackware-banner.svg b/system/refind-bin/slackware-banner.svg new file mode 100644 index 0000000000000..78baf4d4d082e --- /dev/null +++ b/system/refind-bin/slackware-banner.svg @@ -0,0 +1,136 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="716.16858" + height="246.74951" + id="svg2" + version="1.1" + inkscape:version="0.48.4 r9939" + sodipodi:docname="slackware-banner.svg" + inkscape:export-filename="slackware-banner.png" + inkscape:export-xdpi="90" + inkscape:export-ydpi="90"> + <defs + id="defs4" /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="1" + inkscape:cx="397.44654" + inkscape:cy="94.748334" + inkscape:document-units="px" + inkscape:current-layer="layer1" + showgrid="true" + inkscape:window-width="960" + inkscape:window-height="1043" + inkscape:window-x="960" + inkscape:window-y="37" + inkscape:window-maximized="0" + showguides="false" + inkscape:snap-from-guide="false" + inkscape:object-paths="true" + inkscape:snap-global="true" + showborder="false" + inkscape:showpageshadow="false" + fit-margin-top="0" + fit-margin-left="0" + fit-margin-right="0" + fit-margin-bottom="0"> + <inkscape:grid + type="xygrid" + id="grid3005" + empspacing="5" + visible="true" + enabled="true" + snapvisiblegridlinesonly="true" + originx="226.53154px" + originy="8.6054773px" /> + </sodipodi:namedview> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title></dc:title> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1" + transform="translate(226.53154,-814.21814)"> + <rect + style="fill:#000000;stroke:#000000;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none" + id="rect2985" + width="716.16858" + height="246.74951" + x="-226.53154" + y="814.21814" + inkscape:export-filename="/root/slackware-banner.png" + inkscape:export-xdpi="90" + inkscape:export-ydpi="90" /> + <text + xml:space="preserve" + style="font-size:120px;font-style:normal;font-variant:normal;font-weight:500;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:CMU Typewriter Text Variable Width;-inkscape-font-specification:CMU Typewriter Text Variable Width Medium" + x="-133.22945" + y="931.62817" + id="text2991" + sodipodi:linespacing="125%" + inkscape:export-filename="/root/slackware-banner.png" + inkscape:export-xdpi="90" + inkscape:export-ydpi="90"><tspan + sodipodi:role="line" + id="tspan3003" + x="-133.22945" + y="931.62817">Slackware</tspan></text> + <text + xml:space="preserve" + style="font-size:48px;font-style:normal;font-variant:normal;font-weight:200;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:CMU Typewriter Text;-inkscape-font-specification:CMU Typewriter Text Ultra-Light" + x="168.72957" + y="968.2403" + id="text3023" + sodipodi:linespacing="125%" + inkscape:transform-center-x="36.42857" + inkscape:transform-center-y="-14.832038" + inkscape:export-filename="/root/slackware-banner.png" + inkscape:export-xdpi="90" + inkscape:export-ydpi="90"><tspan + sodipodi:role="line" + id="tspan3025" + x="168.72957" + y="968.2403">l i n u x</tspan></text> + <text + xml:space="preserve" + style="font-size:36px;font-style:italic;font-variant:normal;font-weight:500;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:CMU Typewriter Text;-inkscape-font-specification:CMU Typewriter Text Medium Italic" + x="-70.634323" + y="1068.5151" + id="text3063" + sodipodi:linespacing="125%" + transform="scale(1.0429907,0.95878132)"><tspan + sodipodi:role="line" + id="tspan3067" + x="-70.634323" + y="1068.5151">http://www.slackware.com</tspan></text> + <path + style="fill:none;stroke:#ffffff;stroke-width:2.50000000000000000;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" + d="m -152,909.3622 0,48 309,0" + id="path3783" + inkscape:connector-curvature="0" /> + </g> +</svg> |