a526d1fb5f95ae13848bdde95fca57347d9b9718
[grml-udev-config.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 build: build-stamp
13
14 build-stamp:
15         dh_testdir
16         touch $@
17
18 clean:
19         dh_testdir
20         dh_testroot
21         rm -f build-stamp
22         dh_clean
23
24 install: build
25         dh_testdir
26         dh_testroot
27         dh_prep
28         dh_installdirs /etc/udev/scripts
29
30         install -m 755 scripts/forensic-mark-readonly debian/grml-udev-config/etc/udev/scripts/forensic-mark-readonly
31
32 # Build architecture-dependent files here.
33 binary-arch: install
34 # We have nothing to do by default.
35
36 # Build architecture-independent files here.
37 binary-indep: install
38         dh_testdir
39         dh_testroot
40         dh_installchangelogs
41         dh_installdocs
42         dh_installexamples
43         dh_installudev --name=grml-forensic     --priority 01
44         dh_installudev --name=grml-external     --priority 60
45         dh_installudev --name=grml-usbdev       --priority 60
46         dh_installudev --name=grml-blockdevices --priority 60
47         dh_installinit --no-start --name=grml-udev
48         # --update-rcd-params='start 2 S .'
49         dh_installman
50         dh_link
51         dh_strip
52         dh_compress
53         mkdir -p debian/grml-udev-config/usr/share/lintian/overrides/
54         cp -av debian/overrides debian/grml-udev-config/usr/share/lintian/overrides/grml-udev-config
55         dh_fixperms
56         dh_installdeb
57         dh_shlibdeps
58         dh_gencontrol
59         dh_md5sums
60         dh_builddeb
61
62 binary: binary-indep binary-arch
63 .PHONY: build clean binary-indep binary-arch binary install