Merge commit 'v0.1' into debian
authorAntonio Ospite <ospite@studenti.unina.it>
Thu, 22 Sep 2011 11:04:21 +0000 (13:04 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Thu, 22 Sep 2011 11:04:21 +0000 (13:04 +0200)
15 files changed:
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/dirs [new file with mode: 0644]
debian/docs [new file with mode: 0644]
debian/install [new file with mode: 0644]
debian/kernel/zz-update-kboot [new file with mode: 0755]
debian/manpages [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]
debian/source/format [new file with mode: 0644]
debian/update-kboot [new file with mode: 0755]
debian/update-kboot.8 [new file with mode: 0644]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..e2790ca
--- /dev/null
@@ -0,0 +1,5 @@
+kboot-utils (0.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
+
+ -- Antonio Ospite <ospite@studenti.unina.it>  Tue, 13 Sep 2011 10:34:48 +0200
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..7e4d1a1
--- /dev/null
@@ -0,0 +1,19 @@
+Source: kboot-utils
+Section: admin
+Priority: extra
+Maintainer: Antonio Ospite <ospite@studenti.unina.it>
+Build-Depends: debhelper (>= 7.0.50~)
+Standards-Version: 3.9.1
+Homepage: http://git.ao2.it/kboot-utils.git
+Vcs-Git: git://git.ao2.it/kboot-utils.git
+Vcs-Browser: http://git.ao2.it/kboot-utils.git
+
+Package: kboot-utils
+Architecture: all
+Depends: ${misc:Depends}
+Description: Helper tools to generate a kboot.conf file
+ Helper tools to automatically generate a kboot.conf from entries in /boot
+ .
+ The kboot.conf file can be read by the petitboot  bootloader which is used
+ for instance on the Sony Playstation 3 in OtherOS mode in order to list
+ kernels to boot.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..b19103c
--- /dev/null
@@ -0,0 +1,16 @@
+Format: http://dep.debian.net/deps/dep5
+Upstream-Name: kboot-utils
+Source: http://git.ao2.it/kboot-utils.git
+
+Files: *
+Copyright: 2011 Antonio Ospite <ospite@studenti.unina.it>
+License: GPL-3.0+
+
+Files: debian/*
+Copyright: 2011 Antonio Ospite <ospite@studenti.unina.it>
+License: GPL-3.0+
+
+License: GPL-3.0+
+ On Debian systems the full text of the GNU General Public
+ License can be found in the `/usr/share/common-licenses/GPL'
+ file.
diff --git a/debian/dirs b/debian/dirs
new file mode 100644 (file)
index 0000000..f6bf4e2
--- /dev/null
@@ -0,0 +1,2 @@
+/etc/default
+/usr/sbin
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..c8bc46b
--- /dev/null
@@ -0,0 +1,2 @@
+README
+doc/kboot.conf.sample
diff --git a/debian/install b/debian/install
new file mode 100644 (file)
index 0000000..47bc794
--- /dev/null
@@ -0,0 +1,3 @@
+debian/update-kboot            usr/sbin
+debian/kernel/zz-update-kboot  etc/kernel/postinst.d
+debian/kernel/zz-update-kboot  etc/kernel/postrm.d
diff --git a/debian/kernel/zz-update-kboot b/debian/kernel/zz-update-kboot
new file mode 100755 (executable)
index 0000000..3247acf
--- /dev/null
@@ -0,0 +1,19 @@
+#! /bin/sh
+set -e
+
+which update-kboot >/dev/null 2>&1 || exit 0
+
+set -- $DEB_MAINT_PARAMS
+mode="${1#\'}"
+mode="${mode%\'}"
+case $0:$mode in
+    # Only run on postinst configure and postrm remove, to avoid wasting
+    # time by calling update-grub multiple times on upgrade and removal.
+    # Also run if we have no DEB_MAINT_PARAMS, in order to work with old
+    # kernel packages.
+    */postinst.d/*:|*/postinst.d/*:configure|*/postrm.d/*:|*/postrm.d/*:remove)
+       exec update-kboot
+       ;;
+esac
+
+exit 0
diff --git a/debian/manpages b/debian/manpages
new file mode 100644 (file)
index 0000000..764213f
--- /dev/null
@@ -0,0 +1,2 @@
+man/kboot-mkconfig.8
+debian/update-kboot.8
diff --git a/debian/postinst b/debian/postinst
new file mode 100644 (file)
index 0000000..5eae712
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/sh
+# postinst script for kboot-utils
+#
+# see: dh_installdeb(1)
+
+set -e
+
+case "$1" in
+    configure)
+      # Update the kboot.conf on install
+      update-kboot 3>&-
+    ;;
+
+    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..fe32e58
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/sh
+# postrm script for kboot-utils
+#
+# see: dh_installdeb(1)
+
+set -e
+
+case "$1" in
+    purge)
+        rm -f /etc/kboot.conf
+    ;;
+
+    remove|upgrade|failed-upgrade|abort-upgrade|abort-install)
+    ;;
+
+    *)
+        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..b760bee
--- /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 $@ 
diff --git a/debian/source/format b/debian/source/format
new file mode 100644 (file)
index 0000000..89ae9db
--- /dev/null
@@ -0,0 +1 @@
+3.0 (native)
diff --git a/debian/update-kboot b/debian/update-kboot
new file mode 100755 (executable)
index 0000000..0a34ec1
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+exec kboot-mkconfig -o /etc/kboot.conf "$@"
diff --git a/debian/update-kboot.8 b/debian/update-kboot.8
new file mode 100644 (file)
index 0000000..94a92cb
--- /dev/null
@@ -0,0 +1,14 @@
+.\" Copyright 2011 Antonio Ospite
+.\" Lincensed under GPL3+
+.TH UPDATE-KBOOT "8" "April 2011"
+.SH NAME
+update-kboot \- stub for kboot-mkconfig
+.SH SYNOPSIS
+.B update-kboot
+.SH DESCRIPTION
+.B update-kboot
+is a stub for running
+.B kboot-mkconfig -o /etc/kboot.cfg
+to generate a kboot config file.
+.SH "SEE ALSO"
+.BR kboot-mkconfig (8)