Splitting out documentation so that it can be accesses separately from the initramfs...
authorDaniel Baumann <daniel@debian.org>
Wed, 13 Jul 2011 01:08:33 +0000 (03:08 +0200)
committerDaniel Baumann <daniel@debian.org>
Wed, 13 Jul 2011 01:11:43 +0000 (03:11 +0200)
debian/control
debian/live-boot-doc.install [new file with mode: 0644]
debian/live-boot.install [new file with mode: 0644]
debian/rules

index e335732..9068f4a 100644 (file)
@@ -12,7 +12,7 @@ Vcs-Git: git://live.debian.net/git/live-boot.git
 Package: live-boot
 Architecture: all
 Depends: ${misc:Depends}, live-boot-initramfs-tools | live-boot-backend
-Recommends: eject, file, rsync, uuid-runtime
+Recommends: live-boot-doc, eject, file, rsync, uuid-runtime
 Suggests: curlftpfs, cryptsetup, httpfs2, unionfs-fuse, wget
 Description: Debian Live - System Boot Scripts
  live-boot contains the scripts that configure a Debian Live system during the
@@ -21,6 +21,15 @@ Description: Debian Live - System Boot Scripts
  In addition to live-boot, a backend for the initrd generation is required, such
  as live-boot-initramfs-tools.
 
+Package: live-boot-doc
+Architecture: all
+Depends: ${misc:Depends}
+Description: Debian Live - System Boot Scripts (documentation)
+ live-boot contains the scripts that configure a Debian Live system during the
+ boot process (early userspace).
+ .
+ This package contains the documentation.
+
 Package: live-boot-initramfs-tools
 Architecture: all
 Depends:
diff --git a/debian/live-boot-doc.install b/debian/live-boot-doc.install
new file mode 100644 (file)
index 0000000..0e373be
--- /dev/null
@@ -0,0 +1,2 @@
+usr/share/doc
+usr/share/man
diff --git a/debian/live-boot.install b/debian/live-boot.install
new file mode 100644 (file)
index 0000000..79474ce
--- /dev/null
@@ -0,0 +1,2 @@
+sbin
+usr/share/live-boot
index 455ed48..2720264 100755 (executable)
@@ -4,14 +4,17 @@
        dh ${@}
 
 override_dh_auto_install:
-       dh_auto_install -- DESTDIR=debian/live-boot
+       dh_auto_install -- DESTDIR=debian/tmp
 
        # Removing useless files
-       rm -f debian/live-boot/usr/share/doc/live-boot/COPYING
+       rm -f debian/tmp/usr/share/doc/live-boot/COPYING
 
        # live-boot-initramfs-tools
        mkdir -p debian/live-boot-initramfs-tools/usr/share
-       mv debian/live-boot/usr/share/initramfs-tools debian/live-boot-initramfs-tools/usr/share
+       mv debian/tmp/usr/share/initramfs-tools debian/live-boot-initramfs-tools/usr/share
 
 override_dh_installinit:
        dh_installinit -p live-boot --no-restart-on-upgrade --no-start --update-rcd-params='start 89 0 6 .'
+
+override_dh_install:
+       dh_install --fail-missing