]> code.delx.au - refind/commitdiff
Added "debian" directory to facilitate building Debian packages.
authorsrs5694 <srs5694@users.sourceforge.net>
Sun, 9 Mar 2014 17:22:39 +0000 (13:22 -0400)
committersrs5694 <srs5694@users.sourceforge.net>
Sun, 9 Mar 2014 17:22:39 +0000 (13:22 -0400)
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/debinstall [new file with mode: 0755]
debian/files [new file with mode: 0644]
debian/refind.substvars [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..5d29eb5
--- /dev/null
@@ -0,0 +1,5 @@
+refind (0.7.8-0ubuntu1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #1136112)
+
+ -- Roderick W. Smith <rod.smith@canonical.com>  Sun, 9 Mar 2014 07:59:50 -0500
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7ed6ff8
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..c0fe492
--- /dev/null
@@ -0,0 +1,22 @@
+Source: refind
+Maintainer: Rod Smith <rod.smith@canonical.com>
+Section: misc
+Priority: optional
+Standards-Version: 3.9.3
+Build-Depends: debhelper (>= 9), gnu-efi
+
+Package: refind
+Architecture: any
+Depends: ${misc:Depends}, efibootmgr
+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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..3a53c6c
--- /dev/null
@@ -0,0 +1,33 @@
+This package was debianized by Roderick W. Smith <rod.smith@canonical.com>  Wed,
+29 Jan 2014 10:25:54 -0500.
+
+It was downloaded from http://sourceforge.net/p/refind/code/ci/master/tree/
+
+Upstream Authors:
+    Roderick W. Smith <rodsmith@rodsbooks.com>
+    Christoph Pfisterer <cp@chrisp.de>
+    Dave Vasilevsky <dave@vasilevsky.ca>
+    John Bressler <jrb1327@gmail.com>
+    Stefan Agner <stefan@agner.ch>
+
+Copyright:
+    Copyright 2012 Roderick W. Smith
+    Copyright 2006 Christoph Pfisterer
+
+License:
+
+    This package is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
diff --git a/debian/debinstall b/debian/debinstall
new file mode 100755 (executable)
index 0000000..f057448
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/bash
+
+BUILD_ROOT=$1
+VERSION=0.7.7
+KEYDIR=/mnt/refind
+
+UNAMEARCH=`uname -m`
+if [[ $UNAMEARCH -eq "x86_64" ]] ; then
+   EFIARCH=x64
+elif [[ $UNAMEARCH -eq "i686" || $UNAMEARCH -eq "i586" || $UNAMEARCH -eq "i486" || $UNAMEARCH -eq "i386" ]] ; then
+   EFIARCH=ia32
+else
+   EFIARCH=$UNAMEARCH
+fi
+
+rm -rf $BUILD_ROOT
+mkdir -p $BUILD_ROOT/usr/share/refind-$VERSION/refind/
+
+# Copy the rEFInd binaries (rEFInd proper and drivers) to /usr/share/refind-$VERSION,
+# 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
+   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
+   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
+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
+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 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 keys to /etc/refind.d/keys
+mkdir -p $BUILD_ROOT/etc/refind.d/keys
+install -Dp -m0644 keys/* $BUILD_ROOT/etc/refind.d/keys
+
+# Copy scripts to /usr/sbin
+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/
+
diff --git a/debian/files b/debian/files
new file mode 100644 (file)
index 0000000..816caa1
--- /dev/null
@@ -0,0 +1 @@
+refind_0.7.8-0ubuntu1_amd64.deb misc optional
diff --git a/debian/refind.substvars b/debian/refind.substvars
new file mode 100644 (file)
index 0000000..abd3ebe
--- /dev/null
@@ -0,0 +1 @@
+misc:Depends=
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..ab1f351
--- /dev/null
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+DH_VERBOSE=1
+%:
+       dh $@
+
+override_dh_auto_clean:
+       rm -rf $$(pwd)/debian/files $$(pwd)/debian/refind.* $$(pwd)/debian/refind
+       $(MAKE) clean
+       rm -f $$(pwd)/drivers*/*
+
+override_dh_auto_build:
+       $(MAKE) gnuefi
+       $(MAKE) fs_gnuefi
+
+override_dh_auto_install:
+       $$(pwd)/debian/debinstall $$(pwd)/debian/refind