X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Frules;h=30652132243925e7511f025220456597dbe8c7b4;hb=1ff6cc29bb8dfd8424707703af45c1bea8f6daaa;hp=4173412622b25612c363d229af68dbaef9283023;hpb=8584244e3f6df22193e2d0313aa6da464efae1a4;p=live-boot-grml.git diff --git a/debian/rules b/debian/rules index 4173412..3065213 100755 --- a/debian/rules +++ b/debian/rules @@ -1,26 +1,33 @@ #!/usr/bin/make -f -%: - dh ${@} +include /usr/share/dpatch/dpatch.make -override_dh_auto_clean: - $(MAKE) -C manpages +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 -override_dh_auto_build: - $(MAKE) -C manpages - -override_dh_auto_install: - dh_auto_install +clean: unpatch + dh clean - $(MAKE) DESTDIR=$(CURDIR)/debian/live-initramfs install +%: + dh ${@} - mv debian/live-initramfs/usr/share/doc/live-initramfs/ChangeLog.casper debian/live-initramfs/usr/share/doc/live-initramfs/changelog.casper +override_dh_auto_install: + dh_auto_install -- DESTDIR=debian/live-boot - rm -f debian/live-initramfs/usr/share/doc/live-initramfs/COPYING - rm -f debian/live-initramfs/usr/share/doc/live-initramfs/ChangeLog + # Removing useless files + rm -f debian/live-boot/usr/share/doc/live-boot/COPYING -override_dh_installchangelogs: - dh_installchangelogs docs/ChangeLog + # 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 + # 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 --no-restart-on-upgrade --no-start -- start 89 0 6 . + dh_installinit -p live-boot --no-restart-on-upgrade --no-start --update-rcd-params='start 89 0 6 .'