Added debian subdir for packaging and deleted TODO
authorAndreas "Jimmy" Gredler <jimmy@grml.org>
Sat, 11 Dec 2010 19:16:28 +0000 (20:16 +0100)
committerAndreas "Jimmy" Gredler <jimmy@grml.org>
Sat, 11 Dec 2010 19:16:28 +0000 (20:16 +0100)
TODO [deleted file]
debian/README [new file with mode: 0644]
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/postinst [new file with mode: 0644]
debian/postrm [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/TODO b/TODO
deleted file mode 100644 (file)
index 1e068b5..0000000
--- a/TODO
+++ /dev/null
@@ -1 +0,0 @@
-- Add debian subdir
diff --git a/debian/README b/debian/README
new file mode 100644 (file)
index 0000000..2adf493
--- /dev/null
@@ -0,0 +1,30 @@
+The Debian Package grml-rescueboot
+----------------------------------
+
+Usually systems are rescued with CD or usb stick. grml-rescueboot makes
+it possible to simply copy an ISO image onto harddisk and boot the
+rescue image. This eliminates the need to carry around a usb stick
+to rescue a system.
+grml-rescueboot includes the script 42_grml which is installed in
+/etc/grub.d and run when update-grub is executed. The script looks for
+ISO images in /boot/grml/ and adds an entry for each image found.
+
+Howto:
+------
+
+- Get a recent grml image from http://grml.org/download/
+- Copy the image to /boot/grml
+- Run update-grub
+- Reboot and enjoy your new rescue system
+
+Limitations:
+------------
+
+grml-rescueboot uses the loopback feature of grub2, so it won't work
+with legacy grub. Furthermore the ISO image needs to support
+loopback.cfg, a file which is placed in /boot/grub/. Grml supports
+loopback.cfg beginning with version 2010.04.
+More technical details can be found here: 
+http://www.supergrubdisk.org/wiki/Loopback.cfg
+
+ -- Andreas "Jimmy" Gredler <jimmy@grml.org>  Sat, 06 Nov 2010 12:28:45 +0100
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..db94953
--- /dev/null
@@ -0,0 +1,5 @@
+grml-rescueboot (0.1.0) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Andreas "Jimmy" Gredler <jimmy@grml.org>  Sat, 06 Nov 2010 12:28:45 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..3376f0c
--- /dev/null
@@ -0,0 +1,16 @@
+Source: grml-rescueboot
+Section: misc
+Priority: extra
+Maintainer: Andreas "Jimmy" Gredler <jimmy@grml.org>
+Build-Depends: debhelper (>= 7)
+Standards-Version: 3.8.3
+Homepage: http://git.grml.org/?p=grml-rescueboot.git
+
+Package: grml-rescueboot
+Architecture: any
+Depends: grub-pc, ${shlibs:Depends}, ${misc:Depends}
+Description: Integrates ISO-booting into grub
+ grml-rescueboot includes a script for update-grub which looks for grml
+ ISO images in /boot/grml and automatically adds an entry for each
+ image. The purpose is to use one of those images to boot a rescue
+ system without using a CD or usb stick.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..40740de
--- /dev/null
@@ -0,0 +1,44 @@
+This work was packaged for Debian by:
+
+    Andreas "Jimmy" Gredler <jimmy@grml.org> on Sat, 06 Nov 2010 12:28:45 +0100
+
+It was downloaded from:
+
+    http://grml.org/
+
+Copyright:
+
+    <Copyright (C) 2010++ Andreas "Jimmy" Gredler>
+
+License:
+
+    This program 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 package 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 version 3 can be found in `/usr/share/common-licenses/GPL-3'.
+
+The Debian packaging is:
+
+    Copyright (C) 2010 Andreas "Jimmy" Gredler <jimmy@grml.org>
+
+# Please chose a license for your packaging work. If the program you package
+# uses a mainstream license, using the same license is the safest choice.
+# Please avoid to pick license terms that are more restrictive than the
+# packaged work, as it may make Debian's contributions unacceptable upstream.
+# If you just want it to be GPL version 3, leave the following line in.
+
+and is licensed under the GPL version 3, see above.
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
diff --git a/debian/postinst b/debian/postinst
new file mode 100644 (file)
index 0000000..6442637
--- /dev/null
@@ -0,0 +1,40 @@
+#!/bin/sh
+# postinst script for grml-rescueboot
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    configure)
+      /usr/sbin/update-grub
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/postrm b/debian/postrm
new file mode 100644 (file)
index 0000000..a8fc883
--- /dev/null
@@ -0,0 +1,38 @@
+#!/bin/sh
+# postrm script for grml-rescueboot
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+      /usr/sbin/update-grub
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..917d9bf
--- /dev/null
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+       dh  $@