Disable shunit2 tests, failing in current Debian/unstable environments
[grml-autoconfig.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         # tests against shunit2 2.1.6-1 fail in unstable envs as of 2019-03-21
17         # (cd tests && ./run_tests.sh)
18         (cd doc && $(MAKE))
19
20         touch build-stamp
21
22 clean:
23         dh_testdir
24         dh_testroot
25         rm -f build-stamp
26         cd doc && $(MAKE) clean && cd ..
27
28         dh_clean
29
30 install: build
31         dh_testdir
32         dh_testroot
33         dh_clean -k
34         dh_installdirs etc/grml etc/init.d usr/sbin usr/bin usr/share/doc/grml-saveconfig
35
36         # Add here commands to install the package into debian/grml-autoconfig.
37         install -m 755 grml-autoconfig      debian/grml-autoconfig/etc/init.d/grml-autoconfig
38         install -m 644 autoconfig           debian/grml-autoconfig/etc/grml/autoconfig
39         install -m 644 autoconfig.local     debian/grml-autoconfig/etc/grml/autoconfig.local
40         install -m 755 autoconfig.functions debian/grml-autoconfig/etc/grml/autoconfig.functions
41         install -m 644 language-functions   debian/grml-autoconfig/etc/grml/language-functions
42         install -m 755 sbin/grml-autoconfig debian/grml-autoconfig/usr/sbin/grml-autoconfig
43
44         install -m 755 bin/restore-config debian/grml-autoconfig/usr/bin/restore-config
45         install -m 755 bin/save-config debian/grml-autoconfig/usr/bin/save-config
46
47         # just as a "backup" solution:
48         cp -a etc/* debian/grml-autoconfig/etc/
49
50 # Build architecture-dependent files here.
51 binary-arch: build install
52 # We have nothing to do by default.
53
54 # Build architecture-independent files here.
55 binary-indep: build install
56         dh_testdir
57         dh_testroot
58         dh_install
59         dh_installchangelogs
60         dh_installdocs doc/grml-autoconfig.1.html doc/grml-autoconfig.8.html \
61                         doc/restore-config.1.html doc/save-config.1.html
62         dh_installman doc/grml-autoconfig.1.gz doc/grml-autoconfig.8.gz \
63                         doc/restore-config.1.gz doc/save-config.1.gz
64         # backward compability:
65         dh_link /usr/share/doc/grml-autoconfig/grml-autoconfig.1.html /usr/share/doc/grml-saveconfig/grml-config.html
66         dh_strip
67         dh_compress
68         mkdir -p $(CURDIR)/debian/grml-autoconfig/usr/share/lintian/overrides/
69         cp -av debian/overrides $(CURDIR)/debian/grml-autoconfig/usr/share/lintian/overrides/grml-autoconfig
70         dh_fixperms
71         dh_installdeb
72         dh_shlibdeps
73         dh_gencontrol
74         dh_md5sums
75         dh_builddeb
76
77 binary: binary-indep binary-arch
78 .PHONY: build clean binary-indep binary-arch binary install