a1efbb60e114d696429972e8dd89a2c5265031cf
[grml-etc.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # GNU copyright 1997 to 1999 by Joey Hess.
5
6 # Uncomment this to turn on verbose mode.
7 #export DH_VERBOSE=1
8
9 build: build-stamp
10
11 build-stamp:
12         dh_testdir
13
14         touch build-stamp
15
16 clean:
17         dh_testdir
18         dh_testroot
19         rm -f build-stamp
20
21         dh_clean 
22         rm -rf debian/grml-etc/
23
24 install: build
25         dh_testdir
26         dh_testroot
27         dh_clean -k 
28         dh_installdirs
29
30         # Add here commands to install the package into debian/grml-etc.
31         cp -a etc/                       debian/grml-etc/
32
33 # Build architecture-dependent files here.
34 binary-arch: build install
35
36 # Build architecture-independent files here.
37 binary-indep: build install
38         dh_testdir
39         dh_testroot
40         dh_installchangelogs 
41         dh_installdocs
42         dh_link /etc/rcS.d/important_notice /etc/rc0.d/important_notice
43         dh_link /etc/rcS.d/important_notice /etc/rc1.d/important_notice
44         dh_link /etc/rcS.d/important_notice /etc/rc2.d/important_notice
45         dh_link /etc/rcS.d/important_notice /etc/rc3.d/important_notice
46         dh_link /etc/rcS.d/important_notice /etc/rc4.d/important_notice
47         dh_link /etc/rcS.d/important_notice /etc/rc5.d/important_notice
48         dh_link /etc/rcS.d/important_notice /etc/rc6.d/important_notice
49         dh_link /etc/init.d/grml-reboot     /etc/init.d/grml-halt
50         dh_link /usr/share/irssi/scripts/scriptassist.pl /etc/skel/.irssi/scripts/autorun/scriptassist.pl
51         dh_compress
52         mkdir -p debian/grml-etc/usr/share/lintian/overrides/ 
53         cp -av debian/overrides debian/grml-etc/usr/share/lintian/overrides/grml-etc
54         dh_fixperms
55         chmod 0600 debian/grml-etc/etc/mgetty/login.config
56         chmod 0755  debian/grml-etc/etc/skel/.config/rox.sourceforge.net/MIME-types/image
57         dh_installdeb
58         find debian/grml-etc/etc -type f ! -name \*.xpm ! -name \*.png -print | \
59         sed -e 's#^debian/grml-etc##g' > debian/grml-etc/DEBIAN/conffiles
60         dh_shlibdeps
61         dh_gencontrol
62         dh_md5sums
63         dh_builddeb
64
65 binary: binary-indep binary-arch
66 .PHONY: build clean binary-indep binary-arch binary install