don't mess around with kernel/initramfs-tools' ip=
[live-boot-grml.git] / debian / rules
index bcd2d2d..e2bbc18 100755 (executable)
@@ -1,5 +1,16 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpatch/dpatch.make
+
+build: patch-stamp
+       # this is needed because dpatch doesn't do file modes on diffs.
+       chmod a+rx scripts/live-bottom/*
+       # regular build.
+       dh build
+
+clean: unpatch
+       dh clean
+
 %:
        dh ${@}
 
@@ -15,5 +26,11 @@ override_dh_auto_install:
        # Removing useless files
        rm -f debian/live-boot/usr/share/doc/live-boot/COPYING
 
+       # Some more useless files
+       rm -f debian/live-boot-initramfs-tools/usr/share/initramfs-tools/scripts/live-bottom/12fstab
+       rm -f debian/live-boot-initramfs-tools/usr/share/initramfs-tools/scripts/live-bottom/23networking
+       rm -f debian/live-boot-initramfs-tools/usr/share/initramfs-tools/scripts/live-bottom/24preseed
+       rm -f debian/live-boot-initramfs-tools/usr/share/initramfs-tools/scripts/live-bottom/30accessibility
+
 override_dh_installinit:
        dh_installinit -p live-boot --no-restart-on-upgrade --no-start --update-rcd-params='start 89 0 6 .'