From 73d42be80424e5d68e9627882eca370879cd8123 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sun, 22 Jul 2018 14:02:41 +0200 Subject: [PATCH] Switch from debian/install to Makefile approach --- Makefile | 14 ++++++++++++++ debian/grml-rescueboot.manpages | 2 +- debian/install | 4 ---- debian/rules | 10 ++++++++++ man/update-grml-rescueboot.8 | 25 +++++++++++++++++++++++++ 5 files changed, 50 insertions(+), 5 deletions(-) create mode 100644 Makefile delete mode 100644 debian/install create mode 100644 man/update-grml-rescueboot.8 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0ce68d5 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +all: build + +build: + xmltoman man/update-grml-rescueboot.xml > man/update-grml-rescueboot.8 + +install: + mkdir -p $(DESTDIR)/etc/grub.d $(DESTDIR)/usr/share/doc/grml-rescueboot/ $(DESTDIR)/etc/default $(DESTDIR)/usr/sbin/ + install -m 755 42_grml $(DESTDIR)/etc/grub.d/ + install -m 644 debian/README $(DESTDIR)/usr/share/doc/grml-rescueboot/ + install -m 644 etc/default/grml-rescueboot $(DESTDIR)/etc/default/grml-rescueboot + install -m 755 update-grml-rescueboot $(DESTDIR)/usr/sbin/ + +clean: + rm -f man/update-grml-rescueboot.en.8 diff --git a/debian/grml-rescueboot.manpages b/debian/grml-rescueboot.manpages index a09becb..17e59fe 100644 --- a/debian/grml-rescueboot.manpages +++ b/debian/grml-rescueboot.manpages @@ -1 +1 @@ -man/update-grml-rescueboot.en.8 +man/update-grml-rescueboot.8 diff --git a/debian/install b/debian/install deleted file mode 100644 index 9fba87d..0000000 --- a/debian/install +++ /dev/null @@ -1,4 +0,0 @@ -42_grml etc/grub.d/ -debian/README usr/share/doc/grml-rescueboot/ -etc/default etc/ -update-grml-rescueboot usr/sbin/ diff --git a/debian/rules b/debian/rules index 917d9bf..308745e 100755 --- a/debian/rules +++ b/debian/rules @@ -11,3 +11,13 @@ %: dh $@ + +#drwxr-xr-x root/root 0 2017-01-24 21:42 ./boot/grml/ +#-rw-r--r-- root/root 271 2014-08-31 19:30 ./etc/default/grml-rescueboot +#-rwxr-xr-x root/root 3280 2015-06-19 09:21 ./etc/grub.d/42_grml +#-rwxr-xr-x root/root 4346 2017-01-24 21:42 ./usr/sbin/update-grml-rescueboot +#-rw-r--r-- root/root 1290 2014-08-31 19:30 ./usr/share/doc/grml-rescueboot/README +#-rw-r--r-- root/root 1880 2017-01-24 21:42 ./usr/share/doc/grml-rescueboot/changelog.gz +#-rw-r--r-- root/root 1315 2017-01-24 21:42 ./usr/share/doc/grml-rescueboot/copyright +#-rw-r--r-- root/root 114 2014-08-31 19:30 ./usr/share/lintian/overrides/grml-rescueboot +#-rw-r--r-- root/root 959 2017-01-24 21:42 ./usr/share/man/en/man8/update-grml-rescueboot.8.gz diff --git a/man/update-grml-rescueboot.8 b/man/update-grml-rescueboot.8 new file mode 100644 index 0000000..1e2be34 --- /dev/null +++ b/man/update-grml-rescueboot.8 @@ -0,0 +1,25 @@ +.TH update-grml-rescueboot 8 User Manuals +.SH NAME +update-grml-rescueboot \- Script to integrate Grml ISO for booting via GRUB +.SH SYNOPSIS +\fBupdate-grml-rescueboot [-f] [-a \fI32|64|96\fB] [-t \fIsmall|full\fB] +\f1 +.SH DESCRIPTION +grml-rescueboot integrates Grml ISO booting into GRUB. It provides a script for update-grub which looks for Grml ISO images in \fI/boot/grml\f1, and automatically adds an entry for each image. The purpose is to use one of those images to boot a Grml rescue system without using a CD, USB stick or network boot (PXE). \fIupdate-grml-rescueboot\f1 is a script which checks for the latest stable version of Grml (via download.grml.org), ensures there's enough free disk space in \fI/boot/grml\f1 and downloads the ISO to \fI/boot/grml\f1. It verifies the ISO signature and upon success executes update-grub then. Everything should be ready for booting a Grml ISO via GRUB then. This script makes integration of a Grml ISO into GRUB via grml-rescueboot even easier. All that needs to be done is install grml-rescueboot and invoke update-grml-rescueboot afterwards. Using the \fI-a\f1 and \fI-t\f1 options it's possible to use specific Grml ISOs. If none of those options is specific it defaults to the grml-full flavour, matching the currently running hardware architecture (i?86 or x86_64). +.SH OPTIONS +.TP +\fB-a \fIarg\fB\f1 +Choose Grml architecture, specified via \fIarg\f1. Supported flavours are '32', '64' and '96'. If unset defaults to the currently running architecture. +.TP +\fB-f\f1 +Force execution, ignoring, e.g. existing ISO files and disk space checks for \fI/boot/grml\f1. +.TP +\fB-h\f1 +Display usage information and exit script. +.TP +\fB-t \fIarg\fB\f1 +Choose Grml flavour, specified via \fIarg\f1. Supported flavours are 'small' and 'full'. If unset defaults to 'full'. +.SH AUTHOR +update-grml-rescueboot was written by Michael Prokop, based on a script by Felipe Sateler. +.SH BUGS +Please report them towards Debian's BTS, see https://bugs.debian.org/grml-rescueboot. -- 2.1.4