From: srs5694 Date: Fri, 16 May 2014 22:53:29 +0000 (-0400) Subject: Debian package-creation file changes to better support an Ubuntu PPA. X-Git-Url: https://code.delx.au/refind/commitdiff_plain/66399ecb73c894be4ce02e243477eaf539542c60?ds=sidebyside Debian package-creation file changes to better support an Ubuntu PPA. --- diff --git a/debian/changelog b/debian/changelog index 0fd540b..03838e3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,12 +1,18 @@ -refind (0.8.0-0ubuntu1) trusty; urgency=medium +refind (0.8.1-0ppa2) trusty; urgency=medium + + * Revised Debian package to not use version numbers in /usr/share directory names + + -- Rod Smith Fri, 16 May 2014 14:57:11 -0400 + +refind (0.8.0-0ppa1) trusty; urgency=medium * Updated for version 0.8.0 - -- Rod Smith Fri, 16 May 2014 09:01:45 -0400 + -- Rod Smith Fri, 16 May 2014 09:01:45 -0400 -refind (0.7.8-0ubuntu1) trusty; urgency=low +refind (0.7.8-0ppa1) trusty; urgency=low [ Roderick W. Smith ] * Initial release. (Closes: #1136112) - -- Rod Smith Sun, 9 Mar 2014 07:59:50 -0500 + -- Rod Smith Sun, 9 Mar 2014 07:59:50 -0500 diff --git a/debian/control b/debian/control index c0fe492..f20e4cd 100644 --- a/debian/control +++ b/debian/control @@ -2,21 +2,21 @@ Source: refind Maintainer: Rod Smith Section: misc Priority: optional -Standards-Version: 3.9.3 +Standards-Version: 3.9.5 Build-Depends: debhelper (>= 9), gnu-efi Package: refind Architecture: any -Depends: ${misc:Depends}, efibootmgr +Depends: ${misc:Depends}, efibootmgr, openssl, sbsigntool, util-linux, parted Description: boot manager for EFI-based computers 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-compatbile - 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. EFI - filesystem drivers for ext2/3/4fs, ReiserFS, HFS+, and ISO-9660 enable - rEFInd to read boot loaders from these filesystems, too. rEFInd's ability - to detect boot loaders at runtime makes it very easy to use, particularly - when paired with Linux kernels that provide EFI stub support. + partitions, and optionally BIOS-bootable partitions on Macs. + EFI-compatbile 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. + EFI filesystem drivers for ext2/3/4fs, ReiserFS, Btrfs, HFS+, and ISO-9660 + enable rEFInd to read boot loaders from these filesystems, too. rEFInd's + ability to detect boot loaders at runtime makes it very easy to use, + particularly when paired with Linux kernels that provide EFI stub support. diff --git a/debian/debinstall b/debian/debinstall index 6372a89..cdbd44f 100755 --- a/debian/debinstall +++ b/debian/debinstall @@ -1,7 +1,6 @@ #!/bin/bash BUILD_ROOT=$1 -VERSION=0.8.1 KEYDIR=/mnt/refind UNAMEARCH=`uname -m` @@ -14,37 +13,37 @@ else fi rm -rf $BUILD_ROOT -mkdir -p $BUILD_ROOT/usr/share/refind-$VERSION/refind/ +mkdir -p $BUILD_ROOT/usr/share/refind/refind/ -# Copy the rEFInd binaries (rEFInd proper and drivers) to /usr/share/refind-$VERSION, +# Copy the rEFInd binaries (rEFInd proper and drivers) to /usr/share/refind, # including signing the binaries if sbsign is installed and a $KEYDIR/refind.key file # is available declare SBSign=`which sbsign 2> /dev/null` if [[ -f $KEYDIR/refind.key && -x $SBSign ]] ; then - $SBSign --key $KEYDIR/refind.key --cert $KEYDIR/refind.crt --output $BUILD_ROOT/usr/share/refind-$VERSION/refind/refind_$EFIARCH.efi refind/refind_$EFIARCH.efi - mkdir -p $BUILD_ROOT/usr/share/refind-$VERSION/refind/drivers_$EFIARCH + $SBSign --key $KEYDIR/refind.key --cert $KEYDIR/refind.crt --output $BUILD_ROOT/usr/share/refind/refind/refind_$EFIARCH.efi refind/refind_$EFIARCH.efi + mkdir -p $BUILD_ROOT/usr/share/refind/refind/drivers_$EFIARCH for File in `ls drivers_$EFIARCH/*_x64.efi` ; do - $SBSign --key $KEYDIR/refind.key --cert $KEYDIR/refind.crt --output $BUILD_ROOT/usr/share/refind-$VERSION/refind/$File $File + $SBSign --key $KEYDIR/refind.key --cert $KEYDIR/refind.crt --output $BUILD_ROOT/usr/share/refind/refind/$File $File done - mkdir -p $BUILD_ROOT/usr/share/refind-$VERSION/refind/tools_$EFIARCH - $SBSign --key $KEYDIR/refind.key --cert $KEYDIR/refind.crt --output $BUILD_ROOT/usr/share/refind-$VERSION/refind/tools_$EFIARCH/gptsync_$EFIARCH.efi gptsync/gptsync_$EFIARCH.efi + mkdir -p $BUILD_ROOT/usr/share/refind/refind/tools_$EFIARCH + $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 else - install -Dp -m0644 refind/refind*.efi $BUILD_ROOT/usr/share/refind-$VERSION/refind/ - mkdir -p $BUILD_ROOT/usr/share/refind-$VERSION/refind/drivers_$EFIARCH - cp -a drivers_$EFIARCH/* $BUILD_ROOT/usr/share/refind-$VERSION/refind/drivers_$EFIARCH/ - mkdir -p $BUILD_ROOT/usr/share/refind-$VERSION/refind/tools_$EFIARCH - install -Dp -m0644 gptsync/gptsync_$EFIARCH.efi $BUILD_ROOT/usr/share/refind-$VERSION/refind/tools_$EFIARCH/gptsync_$EFIARCH.efi + install -Dp -m0644 refind/refind*.efi $BUILD_ROOT/usr/share/refind/refind/ + mkdir -p $BUILD_ROOT/usr/share/refind/refind/drivers_$EFIARCH + cp -a drivers_$EFIARCH/* $BUILD_ROOT/usr/share/refind/refind/drivers_$EFIARCH/ + mkdir -p $BUILD_ROOT/usr/share/refind/refind/tools_$EFIARCH + install -Dp -m0644 gptsync/gptsync_$EFIARCH.efi $BUILD_ROOT/usr/share/refind/refind/tools_$EFIARCH/gptsync_$EFIARCH.efi fi -# Copy configuration and support files to /usr/share/refind-$VERSION -install -Dp -m0644 refind.conf-sample $BUILD_ROOT/usr/share/refind-$VERSION/refind/ -cp -a icons $BUILD_ROOT/usr/share/refind-$VERSION/refind/ -install -Dp -m0755 install.sh $BUILD_ROOT/usr/share/refind-$VERSION/ +# Copy configuration and support files to /usr/share/refind +install -Dp -m0644 refind.conf-sample $BUILD_ROOT/usr/share/refind/refind/ +cp -a icons $BUILD_ROOT/usr/share/refind/refind/ +install -Dp -m0755 install.sh $BUILD_ROOT/usr/share/refind/ -# Copy documentation to /usr/share/doc/refind-$VERSION -mkdir -p $BUILD_ROOT/usr/share/doc/refind-$VERSION -cp -a docs/* $BUILD_ROOT/usr/share/doc/refind-$VERSION/ -install -Dp -m0644 NEWS.txt COPYING.txt LICENSE.txt README.txt CREDITS.txt $BUILD_ROOT/usr/share/doc/refind-$VERSION +# Copy documentation to /usr/share/doc/refind +mkdir -p $BUILD_ROOT/usr/share/doc/refind +cp -a docs/* $BUILD_ROOT/usr/share/doc/refind/ +install -Dp -m0644 NEWS.txt COPYING.txt LICENSE.txt README.txt CREDITS.txt $BUILD_ROOT/usr/share/doc/refind # Copy keys to /etc/refind.d/keys mkdir -p $BUILD_ROOT/etc/refind.d/keys @@ -55,7 +54,7 @@ mkdir -p $BUILD_ROOT/usr/sbin install -Dp -m0755 mkrlconf.sh $BUILD_ROOT/usr/sbin/ install -Dp -m0755 mvrefind.sh $BUILD_ROOT/usr/sbin/ -# Copy banners and fonts to /usr/share/refind-$VERSION -cp -a banners $BUILD_ROOT/usr/share/refind-$VERSION/ -cp -a fonts $BUILD_ROOT/usr/share/refind-$VERSION/ +# Copy banners and fonts to /usr/share/refind +cp -a banners $BUILD_ROOT/usr/share/refind/ +cp -a fonts $BUILD_ROOT/usr/share/refind/ diff --git a/debian/files b/debian/files deleted file mode 100644 index 9640fea..0000000 --- a/debian/files +++ /dev/null @@ -1 +0,0 @@ -refind_0.8.0-0ubuntu1_amd64.deb misc optional diff --git a/debian/postinst b/debian/postinst index 831c8db..76df587 100755 --- a/debian/postinst +++ b/debian/postinst @@ -10,7 +10,7 @@ if [[ -n $ExistingEntry ]] ; then efibootmgr --bootnum $ExistingEntry --delete-bootnum fi -cd /usr/share/refind-0.8.1 +cd /usr/share/refind declare VarFile=`ls -d /sys/firmware/efi/vars/SecureBoot* 2> /dev/null` # Note: Two find operations for ShimFile favors shim over PreLoader -- if both are diff --git a/debian/refind.substvars b/debian/refind.substvars deleted file mode 100644 index abd3ebe..0000000 --- a/debian/refind.substvars +++ /dev/null @@ -1 +0,0 @@ -misc:Depends= diff --git a/docs/refind/getting.html b/docs/refind/getting.html index ed43e16..dc989b5 100644 --- a/docs/refind/getting.html +++ b/docs/refind/getting.html @@ -15,7 +15,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com

Originally written: 3/14/2012; last Web page update: -5/15/2014, referencing rEFInd 0.8.1

+5/16/2014, referencing rEFInd 0.8.1

This Web page is provided free of charge and with no annoying outside ads; however, I did take time to prepare it, and Web hosting does cost money. If you find this Web page useful, please consider making a small donation to help keep this site up and running. Thanks!

@@ -250,6 +250,22 @@ computer.

    +
  • Ubuntu—Although an official Ubuntu package isn't + available, I've created a rEFInd PPA + for Ubuntu. To use it, type sudo + apt-add-repository ppa:rodsmith/refind, then sudo apt-get update. You can then type apt-get install refind to install the package. + Thereafter, the rEFInd version will update along with your other + software. This package is built with GNU-EFI and is not signed with a + Secure Boot key; however, the install script (which launches + automatically when you install the package) should sign the binary with + a locally-generated key if it detects that your system uses Secure + Boot. Thus, if you've previously installed one of my binaries on a + Secure Boot system and added its key as a MOK, you'll have to add your + local key when you reboot.
  • +
  • Arch Linux—You can obtain rEFInd from the Arch repositories, in both a stable version (the refind-efi package installable via pacman) and an experimental release built from