Initial debian/
authorTianon Gravi <tianon@debian.org>
Wed, 25 Nov 2015 17:59:16 +0000 (09:59 -0800)
committerTianon Gravi <tianon@debian.org>
Wed, 25 Nov 2015 18:01:24 +0000 (10:01 -0800)
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/gbp.conf [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]
debian/watch [new file with mode: 0644]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..aaa3946
--- /dev/null
@@ -0,0 +1,5 @@
+refind (0.10.0-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #715426)
+
+ -- Tianon Gravi <tianon@debian.org>  Wed, 25 Nov 2015 09:07:15 -0800
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..8eb3deb
--- /dev/null
@@ -0,0 +1,27 @@
+Source: refind
+Maintainer: Tianon Gravi <tianon@debian.org>
+Uploaders: Rod Smith <rod.smith@canonical.com>
+Section: admin
+Priority: optional
+Standards-Version: 3.9.6
+Build-Depends: debhelper (>= 9), gnu-efi
+Homepage: http://www.rodsbooks.com/refind
+Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/refind.git
+Vcs-Git: git://anonscm.debian.org/collab-maint/refind.git
+
+Package: refind
+Architecture: amd64 i386
+Depends: efibootmgr, openssl, parted, sbsigntool, ${misc:Depends}
+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 and BIOS boot
+ entries on UEFI PCs with CSMs. 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, NTFS, 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..5da3488
--- /dev/null
@@ -0,0 +1,226 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: rEFInd
+Upstream-Contact: Roderick W. Smith <rodsmith@rodsbooks.com>
+Source: http://www.rodsbooks.com/refind
+
+Files: refind/*
+       libeg/image.c
+       libeg/screen.c
+Copyright: 2006-2010 Christoph Pfisterer
+           2012-2015 Roderick W. Smith
+License: BSD 3-clause & GPL-3+
+
+Files: refind/icns.c
+       libeg/*
+Copyright: 2006-2007 Christoph Pfisterer
+License BSD 3-clause
+
+Files: refind/gpt.[ch]
+       libeg/lodepng_xtra.c
+Copyright: 2014-2015 Roderick W. Smith
+License: GPL-3+
+
+Files: refind/crc32.[ch]
+Copyright: 1986 Gary S. Brown
+License: "You may use this program, or code or tables extracted from it, as
+          desired without restriction."
+
+Files: refind/driver_support.[ch]
+Copyright: 2006-2011 Intel Corporation
+License: BSD 2-clause
+
+Files: refind/line_edit.[ch]
+Copyright: 2012 Harald Hoyer <harald@redhat.com>
+           2012-2013 Kay Sievers <kay@vrfy.org>
+License: LGPL-2.1+
+
+Files: EfiLib/*
+Copyright: 2004-2011 Intel Corp.
+License: BSD 2-clause
+
+Files: libeg/lodepng.[ch]
+Copyright: 2005-2015 Lode Vandevenne
+License: zlib
+
+Files: mok/*
+Copyright: 2012 James Bottomley
+License: LGPL-2.1
+
+Files: mok/mok.[ch]
+Copyright: 2012 Red Hat, Inc. <mjg@redhat.com>
+           2009-2012 Intel Corporation
+License: BSD 2-clause
+
+Files: include/*
+Copyright: 2006-2010 Intel Corporation
+License: BSD 2-clause
+
+Files: include/syslinux_mbr.h
+Copyright: 2003-2004 H. Peter Anvin
+License: Expat
+
+Files: include/RemovableMedia.h
+Copyright: 2005 Apple Computer, Inc.
+License: See comments in file
+
+Files: gptsync/*
+Copyright: 2006 Christoph Pfisterer
+License: BSD 2-clause
+
+Files: gptsync/gptsync.c
+Copyright: 2006 Christoph Pfisterer
+           2013 Roderick W. Smith
+License: BSD 2-clause
+
+Files: filesystems/fsw_core.[ch]
+       filesystems/fsw_efi.[ch]
+       filesystems/fsw_efi_lib.c
+       filesystems/fsw_efi_base.h
+       filesystems/fsw_lib.c
+Copyright: 2006 Christoph Pfisterer
+License: BSD 3-clause
+
+Files: filesystems/fsw_efi_edk2_base.h
+Copyright: 2012 Stefan Agner
+License BSD 3-clause
+
+Files: filesystems/fsw_ext2.[ch]
+       filesystems/fsw_ext2_disk.h
+       filesystems/fsw_reiserfs.[ch]
+       filesystems/fsw_reiserfs_disk.h
+Copyright: 2006 Christoph Pfisterer
+License: GPL-2+
+
+Files: filesystems/fsw_ext4.c
+Copyright: 2012 Stefan Agner
+License: GPL-2+
+
+Files: filesystems/fsw_ext4.h
+Copyright: 2006 Christoph Pfisterer
+           2012 Stefan Agner
+License: GPL-2+
+
+Files: filesystems/fsw_ext4_disk.h
+Copyright: 2006 Christoph Pfisterer
+           2012 Stefan Agner
+           1991-2012 by various Linux kernel contributors
+License: GPL-2+
+
+Files: filesystems/fsw_ntfs.c
+Copyright: Samuel Liao
+License: GPL-2+
+
+Files: filesystems/crc32c.c
+       filesystems/gzio.c
+Copyright: 2008 Free Software Foundation, Inc.
+License: GPL-3+
+
+Files: filesystems/fsw_btrfs.c
+Copyright: 2010 Free Software Foundation, Inc.
+           2013 Tencent, Inc. (Samuel Liao)
+License: GPL-3+
+
+Files: filesystems/minilzo.[ch]
+Copyright: 1996-2011 Markus Franz Xaver Johannes Oberhumer
+License: GPL-2+
+
+Files: filesystems/scandisk.c
+Copyright: 2013 Tencent, Inc. (Samuel Liao)
+License: GPL-3+
+
+Files: filesystems/fsw_hfs.[ch]
+Copyright: 2010 Oracle Corporation
+License: GPL-2
+
+Files: filesystems/fsw_iso9660.[ch]
+Copyright: 2006 Christoph Pfisterer
+           2010 Oracle Corporation
+License: BSD 3-clause & GPL-2
+
+Files: net/*
+Copyright: 2009 Michael Brown
+License: GPL-2+
+
+Files: icons/arrow_left.png
+       icons/arrow_right.png
+       icons/boot_linux.png
+       icons/func_about.png
+       icons/func_exit.png
+       icons/func_firmware.png
+       icons/func_reset.png
+       icons/func_shutdown.png
+       icons/os_arch.png
+       icons/os_centos.png
+       icons/os_chakra.png
+       icons/os_chrome.png
+       icons/os_clover.png
+       icons/os_crunchbang.png
+       icons/os_fedora.png
+       icons/os_frugalware.png
+       icons/os_gentoo.png
+       icons/os_hwtest.png
+       icons/os_kubuntu.png
+       icons/os_linux.png
+       icons/os_linuxmint.png
+       icons/os_lubuntu.png
+       icons/os_mageia.png
+       icons/os_mandriva.png
+       icons/os_network.png
+       icons/os_opensuse.png
+       icons/os_slackware.png
+       icons/os_suse.png
+       icons/os_ubuntu.png
+       icons/os_unknown.png
+       icons/os_win8.png
+       icons/os_xubuntu.png
+       icons/tool_mok_tool.png
+       icons/tool_netboot.png
+       icons/tool_shell.png
+       icons/tool_windows_rescue.png
+       icons/vol_external.png
+       icons/vol_internal.png
+       icons/vol_net.png
+       icons/vol_optical.png
+Copyright: 2013 by Alessandro Roncone (aka alecive on DeviantArt)
+License: Creative Commons Attribution-Share Alike 3.0 (CC-SA 3.0)
+Note: tool_windows_rescue is combination of os_win8.png with
+      tool_rescue.png.
+
+Files: icons/boot_win.png
+       icons/func_csr_rotate.png
+       icons/os_clover.png
+       icons/os_freebsd.png
+       icons/os_gummiboot.png
+       icons/os_haiku.png
+       icons/os_legacy.png
+       icons/os_mac.png
+       icons/os_netbsd.png
+       icons/os_redhat.png
+       icons/os_refind.png
+       icons/os_refit.png
+       icons/os_win.png
+       icons/tool_apple_rescue.png
+       icons/tool_memtest.png
+       icons/tool_rescue.png
+       icons/tool_windows_rescue.png
+       icons/transparent.png
+Copyright: 2015 by Roderick W. Smith
+License: LGPLv3+ or Creative Commons Attribution-Share Alike 3.0
+         (CC-SA 3.0)
+Note: tool_windows_rescue is combination of os_win8.png with
+      tool_rescue.png.
+
+File: icons/os_debian.png
+Copyright: 1999 by Debian Project
+License: LGPLv3+ or Creative Commons Attribution-Share Alike 3.0
+         (CC-SA 3.0)
+
+File: icons/os_elementary.png
+Copyright: 2008 Dan Rabbit
+License: GPLv2
+
+Files: docs/*
+Copyright: 2012-2015 Roderick W. Smith
+License: FDL 1.3
+
+# TODO clean up names in "License:" headers and list all license texts here
diff --git a/debian/debinstall b/debian/debinstall
new file mode 100755 (executable)
index 0000000..fb64d18
--- /dev/null
@@ -0,0 +1,70 @@
+#!/bin/bash
+
+BUILD_ROOT=$1
+KEYDIR=/mnt/refind
+
+UNAMEARCH=`uname -m`
+if [[ $UNAMEARCH == "x86_64" ]] ; then
+   EFIARCH=x64
+elif [[ $UNAMEARCH == "i686" || $UNAMEARCH == "i586" || $UNAMEARCH == "i486" || $UNAMEARCH == "i386" ]] ; then
+   EFIARCH=ia32
+else
+   EFIARCH=$UNAMEARCH
+fi
+
+rm -rf $BUILD_ROOT
+mkdir -p $BUILD_ROOT/usr/share/refind/refind/
+
+# 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/refind/refind_$EFIARCH.efi refind/refind_$EFIARCH.efi
+   mkdir -p $BUILD_ROOT/usr/share/refind/refind/drivers_$EFIARCH
+   for File in `ls drivers_$EFIARCH/*_$EFIARCH.efi` ; do
+      $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/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/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
+install -Dp -m0644 refind.conf-sample $BUILD_ROOT/usr/share/refind/refind/
+cp -a icons $BUILD_ROOT/usr/share/refind/refind/
+rm -rf $BUILD_ROOT/usr/share/refind/refind/icons/svg
+install -Dp -m0755 refind-install $BUILD_ROOT/usr/share/refind/
+
+# Copy documentation to /usr/share/doc/refind
+mkdir -p $BUILD_ROOT/usr/share/doc/refind
+cp -a docs/Styles $BUILD_ROOT/usr/share/doc/refind/
+cp -a docs/refind $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 man pages to /usr/share/man/man8
+mkdir -p $BUILD_ROOT/usr/share/man/man8
+install -Dp -m0644 docs/man/mvrefind.8 $BUILD_ROOT/usr/share/man/man8
+install -Dp -m0644 docs/man/mkrlconf.8 $BUILD_ROOT/usr/share/man/man8
+install -Dp -m0644 docs/man/refind-install.8 $BUILD_ROOT/usr/share/man/man8
+
+# 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 $BUILD_ROOT/usr/sbin/
+install -Dp -m0755 mvrefind $BUILD_ROOT/usr/sbin/
+ln -sr refind-install $BUILD_ROOT/usr/sbin
+
+# Copy banners and fonts to /usr/share/refind
+cp -a banners $BUILD_ROOT/usr/share/refind/
+cp -a fonts $BUILD_ROOT/usr/share/refind/
+
+echo "*** Exiting debinstall! ***"
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644 (file)
index 0000000..68e4d73
--- /dev/null
@@ -0,0 +1,3 @@
+[DEFAULT]
+pristine-tar = True
+merge = False
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..89b59a2
--- /dev/null
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+
+export DH_VERBOSE := 1
+
+%:
+       dh $@
+
+override_dh_auto_clean:
+       $(MAKE) clean
+       rm -f drivers_*/*
+
+override_dh_auto_build:
+       $(MAKE) gnuefi
+       $(MAKE) fs_gnuefi
+
+override_dh_auto_install:
+       ./debian/debinstall $(CURDIR)/debian/refind
diff --git a/debian/source/format b/debian/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644 (file)
index 0000000..b753084
--- /dev/null
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/refind/refind-src-(\d\S*)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))