From f314791fa2fa3e6a557ca50ecb4a0cf7798fee79 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 23 Sep 2007 10:05:16 +0200 Subject: Adding live-helper 1.0~a20-1. --- debian/changelog | 6 ++++++ debian/control | 6 +----- debian/postinst | 28 ++++++++++++++++++++++++++++ debian/prerm | 23 +++++++++++++++++++++++ debian/rules | 4 ++++ 5 files changed, 62 insertions(+), 5 deletions(-) create mode 100644 debian/postinst create mode 100644 debian/prerm (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index e67f5b017..7cff06959 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +live-helper (1.0~a20-1) unstable; urgency=medium + + * New upstream release. + + -- Daniel Baumann Mon, 23 Jul 2007 00:00:00 +0200 + live-helper (1.0~a19-1) unstable; urgency=medium * New upstream release: diff --git a/debian/control b/debian/control index 04fa651a9..47c3255ab 100644 --- a/debian/control +++ b/debian/control @@ -12,9 +12,6 @@ Package: live-helper Architecture: all Depends: cdebootstrap (>= 0.3.15) | debootstrap (>= 0.3.3.2) Suggests: genisoimage | mkisofs, memtest86+ | memtest86, mtools, squashfs-tools | genext2fs, syslinux | grub -Conflicts: live-package -Replaces: live-package -Provides: make-live Description: Debian Live helper programs Live-helper is a collection of programs that can be used to build Debian Live system images. The philosophy behind live-helper is to provide a collection of @@ -22,7 +19,6 @@ Description: Debian Live helper programs to automate building of a Live system. . A typical program that uses live-helper will call several live-helper commands - in sequence. Live-helper commands are all named with a "lh_" prefix. Examples - of such a program that uses live-helper is make-live (included here). + in sequence. Live-helper commands are all named with a "lh_" prefix. . Homepage: diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 000000000..9137a2cc2 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +case "${1}" in + configure) + update-alternatives --install /usr/share/live-helper/templates \ + live-helper_templates \ + /usr/share/live-helper/templates.debian 100 + + update-alternatives --install /usr/share/live-helper/includes \ + live-helper_includes \ + /usr/share/live-helper/includes.debian 100 + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/prerm b/debian/prerm new file mode 100644 index 000000000..e30345b1f --- /dev/null +++ b/debian/prerm @@ -0,0 +1,23 @@ +#!/bin/sh + +set -e + +case "${1}" in + remove|upgrade|deconfigure) + update-alternatives --remove live-helper_includes /usr/share/live-helper/includes.debian + update-alternatives --remove live-helper_templates /usr/share/live-helper/templates.debian + ;; + + failed-upgrade) + + ;; + + *) + echo "prerm called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/rules b/debian/rules index 83011f507..92b7fff57 100755 --- a/debian/rules +++ b/debian/rules @@ -29,6 +29,10 @@ install: build install -D -m 0644 debian/default debian/live-helper/etc/default/live-helper + # Preparing alternatives + mv debian/live-helper/usr/share/live-helper/includes debian/live-helper/usr/share/live-helper/includes.debian + mv debian/live-helper/usr/share/live-helper/templates debian/live-helper/usr/share/live-helper/templates.debian + # Removing double files rm -f debian/live-helper/usr/share/doc/live-helper/COPYING rm -f debian/live-helper/usr/share/doc/live-helper/ChangeLog -- cgit v1.2.3