From: Antonio Ospite Date: Sun, 24 Nov 2013 18:05:17 +0000 (+0100) Subject: Merge tag 'v0.4' into debian X-Git-Tag: debian/0.4-1~1 X-Git-Url: https://git.ao2.it/kboot-utils.git/commitdiff_plain/d0994bb6ab2f9fe5e0753d5b1f0c7890df91aaff?hp=853a2b7d26e075e481a03bed4e01acc13b6b424f Merge tag 'v0.4' into debian Release v0.4 --- diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..3474368 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,27 @@ +kboot-utils (0.3-1) unstable; urgency=low + + * debian/dirs: remove entries already created by the upstream Makefile + + -- Antonio Ospite Tue, 19 Nov 2013 15:14:16 +0100 + +kboot-utils (0.2-2) unstable; urgency=low + + * debian/copyright: use Copyright Format 1.0 + * debian/rules: remove unneeded comments + * debian/control: switch to debhelper >= 9 + * debian/control: bump Standards-Version to 3.9.5 + * debian/control: specify the debian package branch in Vcs-Git + * debian/gbp.conf: explicitly disable pristine-tar + * debian/control: fix short and long descriptions. + Thanks to gregor herrmann + * debian/watch: add a watchfile + * debian/control: fix the long description again + + -- Antonio Ospite Tue, 19 Nov 2013 13:53:38 +0100 + +kboot-utils (0.2-1) unstable; urgency=low + + * Initial release (Closes: #641465) + Thanks to Gergely Nagy for reviewing the package + + -- Antonio Ospite Sun, 02 Oct 2011 11:24:42 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..c4bcd51 --- /dev/null +++ b/debian/control @@ -0,0 +1,20 @@ +Source: kboot-utils +Section: admin +Priority: extra +Maintainer: Antonio Ospite +Build-Depends: debhelper (>= 9) +Standards-Version: 3.9.5 +Homepage: http://git.ao2.it/kboot-utils.git +Vcs-Git: git://git.ao2.it/kboot-utils.git -b debian +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 + kboot-utils provides helper tools to automatically generate a kboot.conf file + from entries in /boot. + . + kboot.conf is used for instance by the petitboot bootloader, which is used on + the Sony PlayStation 3 in OtherOS mode; petitboot reads the file from the root + filesystem in order to list kernels to boot. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..e25e45e --- /dev/null +++ b/debian/copyright @@ -0,0 +1,29 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: kboot-utils +Source: http://git.ao2.it/kboot-utils.git + +Files: * +Copyright: 2011 Antonio Ospite +License: GPL-3.0+ + +Files: debian/* +Copyright: 2011-2013 Antonio Ospite +License: GPL-3.0+ + +License: GPL-3.0+ + 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 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 . + . + On Debian systems the full text of the GNU General Public + License version 3 can be found in the `/usr/share/common-licenses/GPL-3' + file. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..c8bc46b --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +README +doc/kboot.conf.sample diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..7ac6ffb --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,5 @@ +[DEFAULT] +debian-branch = debian +upstream-branch = master +upstream-tag = v%(version)s +pristine-tar = False diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..47bc794 --- /dev/null +++ b/debian/install @@ -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 index 0000000..3247acf --- /dev/null +++ b/debian/kernel/zz-update-kboot @@ -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 index 0000000..764213f --- /dev/null +++ b/debian/manpages @@ -0,0 +1,2 @@ +man/kboot-mkconfig.8 +debian/update-kboot.8 diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..5eae712 --- /dev/null +++ b/debian/postinst @@ -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 index 0000000..fe32e58 --- /dev/null +++ b/debian/postrm @@ -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 index 0000000..4067ba0 --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/update-kboot b/debian/update-kboot new file mode 100755 index 0000000..0a34ec1 --- /dev/null +++ b/debian/update-kboot @@ -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 index 0000000..94a92cb --- /dev/null +++ b/debian/update-kboot.8 @@ -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) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..ba5ec6e --- /dev/null +++ b/debian/watch @@ -0,0 +1,5 @@ +version=3 + +opts=downloadurlmangle=s/shortlog\/refs\/tags\/(v[\d\.]+)/snapshot\/$1.tar.gz/,\ +filenamemangle=s/.*v([\d\.]+)$/kboot-utils-$1.tar.gz/ \ + http://git.ao2.it/kboot-utils.git/tags ^.*v([\d\.]+)