7 if [[ $UNAMEARCH == "x86_64" ]] ; then
9 elif [[ $UNAMEARCH == "i686" ||
$UNAMEARCH == "i586" ||
$UNAMEARCH == "i486" ||
$UNAMEARCH == "i386" ]] ; then
11 elif [[ $UNAMEARCH == "aarch64" ]] ; then
18 mkdir
-p $BUILD_ROOT/usr
/share
/refind
/refind
/
20 # Copy the rEFInd binaries (rEFInd proper and drivers) to /usr/share/refind,
21 # including signing the binaries if sbsign is installed and a $KEYDIR/refind.key file
23 declare SBSign
=`which sbsign 2> /dev/null`
24 if [[ -f $KEYDIR/refind.key
&& -x $SBSign ]] ; then
25 $SBSign --key $KEYDIR/refind.key
--cert $KEYDIR/refind.crt
--output $BUILD_ROOT/usr
/share
/refind
/refind
/refind_
$EFIARCH.efi refind
/refind_
$EFIARCH.efi
26 mkdir
-p $BUILD_ROOT/usr
/share
/refind
/refind
/drivers_
$EFIARCH
27 for File
in `ls drivers_$EFIARCH/*_$EFIARCH.efi` ; do
28 $SBSign --key $KEYDIR/refind.key
--cert $KEYDIR/refind.crt
--output $BUILD_ROOT/usr
/share
/refind
/refind
/$File $File
30 mkdir
-p $BUILD_ROOT/usr
/share
/refind
/refind
/tools_
$EFIARCH
31 $SBSign --key $KEYDIR/refind.key
--cert $KEYDIR/refind.crt
--output $BUILD_ROOT/usr
/share
/refind
/refind
/tools_
$EFIARCH/gptsync_
$EFIARCH.efi gptsync
/gptsync_
$EFIARCH.efi
33 install -Dp -m0644 refind
/refind
*.efi
$BUILD_ROOT/usr
/share
/refind
/refind
/
34 mkdir
-p $BUILD_ROOT/usr
/share
/refind
/refind
/drivers_
$EFIARCH
35 cp -a drivers_
$EFIARCH/* $BUILD_ROOT/usr
/share
/refind
/refind
/drivers_
$EFIARCH/
36 mkdir
-p $BUILD_ROOT/usr
/share
/refind
/refind
/tools_
$EFIARCH
37 install -Dp -m0644 gptsync
/gptsync_
$EFIARCH.efi
$BUILD_ROOT/usr
/share
/refind
/refind
/tools_
$EFIARCH/gptsync_
$EFIARCH.efi
40 # Copy configuration and support files to /usr/share/refind
41 install -Dp -m0644 refind.conf-sample
$BUILD_ROOT/usr
/share
/refind
/refind
/
42 cp -a icons
$BUILD_ROOT/usr
/share
/refind
/refind
/
43 rm -rf $BUILD_ROOT/usr
/share
/refind
/refind
/icons
/svg
44 install -Dp -m0755 refind-install
$BUILD_ROOT/usr
/share
/refind
/
46 # Copy documentation to /usr/share/doc/refind
47 mkdir
-p $BUILD_ROOT/usr
/share
/doc
/refind
48 cp -a docs
/Styles
$BUILD_ROOT/usr
/share
/doc
/refind
/
49 cp -a docs
/refind
$BUILD_ROOT/usr
/share
/doc
/refind
/
50 install -Dp -m0644 NEWS.txt COPYING.txt LICENSE.txt README.txt CREDITS.txt
$BUILD_ROOT/usr
/share
/doc
/refind
52 # Copy man pages to /usr/share/man/man8
53 mkdir
-p $BUILD_ROOT/usr
/share
/man
/man8
54 install -Dp -m0644 docs
/man
/mvrefind
.8 $BUILD_ROOT/usr
/share
/man
/man8
55 install -Dp -m0644 docs
/man
/mkrlconf
.8 $BUILD_ROOT/usr
/share
/man
/man8
56 install -Dp -m0644 docs
/man
/refind-install
.8 $BUILD_ROOT/usr
/share
/man
/man8
58 # Copy keys to /etc/refind.d/keys
59 mkdir
-p $BUILD_ROOT/etc
/refind.d
/keys
60 install -Dp -m0644 keys
/* $BUILD_ROOT/etc
/refind.d
/keys
62 # Copy scripts to /usr/sbin
63 mkdir
-p $BUILD_ROOT/usr
/sbin
64 install -Dp -m0755 mkrlconf
$BUILD_ROOT/usr
/sbin
/
65 install -Dp -m0755 mvrefind
$BUILD_ROOT/usr
/sbin
/
66 ln -sr refind-install
$BUILD_ROOT/usr
/sbin
68 # Copy banners and fonts to /usr/share/refind
69 cp -a banners
$BUILD_ROOT/usr
/share
/refind
/
70 cp -a fonts
$BUILD_ROOT/usr
/share
/refind
/
72 echo "*** Exiting debinstall! ***"