1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
#!/usr/bin/make -f
build:
clean:
dh_testdir
dh_testroot
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installman nslu2-flashkernel.8 files/leds.8
chmod +x initramfs-tools/hooks/nslu2 \
initramfs-tools/scripts/local-top/nslu2
dh_install initramfs-tools usr/share
dh_install files/leds usr/bin
dh_install nslu2-flashkernel usr/sbin
dh_install files/initscripts/rmrecovery etc/init.d
set -e ; tmpdir=debian/nslu2-utils; for runlvl in S 1 2 3 4 5 ; do \
startscript="etc/init.d/leds-lvl$$runlvl" ; \
stopscript="etc/init.d/zleds-stop-lvl$$runlvl" ; \
cp files/initscripts/leds $$tmpdir/$$startscript ; \
cp files/initscripts/zleds-stop $$tmpdir/$$stopscript ; \
for file in $$startscript $$stopscript ; do \
sed s/@LVL@/$$runlvl/ < $$tmpdir/$$file > foo \
&& mv foo $$tmpdir/$$file ; \
done ; \
dh_installinit --no-start --onlyscripts \
--name=leds-lvl$$runlvl -- start 1 $$runlvl . ; \
dh_installinit --no-start --onlyscripts \
--name=zleds-stop-lvl$$runlvl -- start 99 $$runlvl . ; \
done
dh_installdirs etc/default
cp files/initscripts/rmrecovery.default debian/nslu2-utils/etc/default/rmrecovery
dh_installinit --no-start --onlyscripts --name=rmrecovery \
-- start 99 1 2 3 4 5 .
dh_installudev --name=nslu2-rtc
dh_installudev --name=nslu2-led
binary-arch: build install
dh_testdir
dh_testroot
dh_installdocs
dh_installexamples
dh_installchangelogs
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
|