]>
code.delx.au - refind/blob - debian/debinstall
dec30a6d0779510a19501dc073910699fcb11f84
7 if [[ $UNAMEARCH == "x86_64" ]] ; then
9 elif [[ $UNAMEARCH == "i686" ||
$UNAMEARCH == "i586" ||
$UNAMEARCH == "i486" ||
$UNAMEARCH == "i386" ]] ; then
16 mkdir
-p $BUILD_ROOT/usr
/share
/refind
/refind
/
18 # Copy the rEFInd binaries (rEFInd proper and drivers) to /usr/share/refind,
19 # including signing the binaries if sbsign is installed and a $KEYDIR/refind.key file
21 declare SBSign
=`which sbsign 2> /dev/null`
22 if [[ -f $KEYDIR/refind.key
&& -x $SBSign ]] ; then
23 $SBSign --key $KEYDIR/refind.key
--cert $KEYDIR/refind.crt
--output $BUILD_ROOT/usr
/share
/refind
/refind
/refind_
$EFIARCH.efi refind
/refind_
$EFIARCH.efi
24 mkdir
-p $BUILD_ROOT/usr
/share
/refind
/refind
/drivers_
$EFIARCH
25 for File
in `ls drivers_$EFIARCH/*_$EFIARCH.efi` ; do
26 $SBSign --key $KEYDIR/refind.key
--cert $KEYDIR/refind.crt
--output $BUILD_ROOT/usr
/share
/refind
/refind
/$File $File
28 mkdir
-p $BUILD_ROOT/usr
/share
/refind
/refind
/tools_
$EFIARCH
29 $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
31 install -Dp -m0644 refind
/refind
*.efi
$BUILD_ROOT/usr
/share
/refind
/refind
/
32 mkdir
-p $BUILD_ROOT/usr
/share
/refind
/refind
/drivers_
$EFIARCH
33 cp -a drivers_
$EFIARCH/* $BUILD_ROOT/usr
/share
/refind
/refind
/drivers_
$EFIARCH/
34 mkdir
-p $BUILD_ROOT/usr
/share
/refind
/refind
/tools_
$EFIARCH
35 install -Dp -m0644 gptsync
/gptsync_
$EFIARCH.efi
$BUILD_ROOT/usr
/share
/refind
/refind
/tools_
$EFIARCH/gptsync_
$EFIARCH.efi
38 # Copy configuration and support files to /usr/share/refind
39 install -Dp -m0644 refind.conf-sample
$BUILD_ROOT/usr
/share
/refind
/refind
/
40 cp -a icons
$BUILD_ROOT/usr
/share
/refind
/refind
/
41 rm -rf $BUILD_ROOT/usr
/share
/refind
/refind
/icons
/svg
42 install -Dp -m0755 refind-install
$BUILD_ROOT/usr
/share
/refind
/
44 # Copy man pages to /usr/share/man/man8
45 mkdir
-p $BUILD_ROOT/usr
/share
/man
/man8
46 install -Dp -m0644 docs
/man
/mvrefind
.8 $BUILD_ROOT/usr
/share
/man
/man8
47 install -Dp -m0644 docs
/man
/mkrlconf
.8 $BUILD_ROOT/usr
/share
/man
/man8
48 install -Dp -m0644 docs
/man
/refind-install
.8 $BUILD_ROOT/usr
/share
/man
/man8
50 # Copy keys to /etc/refind.d/keys
51 mkdir
-p $BUILD_ROOT/etc
/refind.d
/keys
52 install -Dp -m0644 keys
/* $BUILD_ROOT/etc
/refind.d
/keys
54 # Copy scripts to /usr/sbin
55 mkdir
-p $BUILD_ROOT/usr
/sbin
56 install -Dp -m0755 mkrlconf
$BUILD_ROOT/usr
/sbin
/
57 install -Dp -m0755 mvrefind
$BUILD_ROOT/usr
/sbin
/
58 ln -sr refind-install
$BUILD_ROOT/usr
/sbin
60 # Copy banners and fonts to /usr/share/refind
61 cp -a banners
$BUILD_ROOT/usr
/share
/refind
/
62 cp -a fonts
$BUILD_ROOT/usr
/share
/refind
/
64 echo "*** Exiting debinstall! ***"