X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Frules;h=910523bade9a42175ebac6ec4f453d34aa245c35;hb=6ac1aac5fcd96ce1e986e64884bd8c16a7aa9ea8;hp=09d9e17f66b52b1cb20dac3b291c76a24cddb401;hpb=30a2472d1e59cbc937fac6862529214a8a5a41d6;p=live-boot-grml.git diff --git a/debian/rules b/debian/rules index 09d9e17..910523b 100755 --- a/debian/rules +++ b/debian/rules @@ -1,63 +1,35 @@ #!/usr/bin/make -f -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - -upstream: - cd .. && git clone git://git.debian.org/git/users/daniel/live-initramfs.git || true - rm -rf ../live-initramfs/.git - -build: build-stamp -build-stamp: - dh_testdir - - # Building package - $(MAKE) -C manpages - - touch build-stamp - -clean: - dh_testdir - dh_testroot - rm -f build-stamp - - # Cleaning package - $(MAKE) -C manpages clean - - dh_clean - -install: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - - # Installing package - $(MAKE) install DESTDIR=$(CURDIR)/debian/live-initramfs - - # Removing double files - rm -f debian/live-initramfs/usr/share/doc/live-initramfs/COPYING - rm -f debian/live-initramfs/usr/share/doc/live-initramfs/ChangeLog - mv debian/live-initramfs/usr/share/doc/live-initramfs/ChangeLog.casper debian/live-initramfs/usr/share/doc/live-initramfs/changelog.casper - - # Installing bug control - install -D -m 0755 debian/bug/script debian/live-initramfs/usr/share/bug/live-initramfs - -binary-arch: build install - -binary-indep: build install - dh_testdir - dh_testroot - dh_installchangelogs docs/ChangeLog - dh_installdocs - dh_install - dh_installinit --no-restart-on-upgrade --no-start -- start 89 0 6 . - dh_compress - dh_fixperms - dh_installdeb - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install +build: + # this is needed because dpatch doesn't do file modes on diffs. + chmod a+rx scripts/live-bottom/* + chmod a+rx hooks/* + # regular build. + dh build + +%: + dh ${@} --with quilt + +override_dh_auto_install: + dh_auto_install -- DESTDIR=debian/tmp + + # Removing useless files + rm -f debian/tmp/usr/share/doc/live-boot-grml/COPYING + # Some more useless files + rm -f debian/tmp/usr/share/initramfs-tools/scripts/live-bottom/12fstab + rm -f debian/tmp/usr/share/initramfs-tools/scripts/live-bottom/23networking + rm -f debian/tmp/usr/share/initramfs-tools/scripts/live-bottom/24preseed + rm -f debian/tmp/usr/share/initramfs-tools/scripts/live-bottom/30accessibility + + # live-boot-initramfs-tools + mkdir -p debian/live-boot-grml-initramfs-tools/usr/share + mv debian/tmp/usr/share/initramfs-tools debian/live-boot-grml-initramfs-tools/usr/share + +override_dh_builddeb: + dh_builddeb -- -Zgzip -z9 + +override_dh_install: + dh_install --fail-missing + +override_dh_installinit: + dh_installinit -p live-boot-grml --no-restart-on-upgrade --no-start --update-rcd-params='start 89 0 6 .'