Stop claiming that the Debian package ships cron jobs
[mirror/dsa-nagios.git] / dsa-nagios-checks / debian / rules
1 #!/usr/bin/make -f
2
3 clean:
4         dh_testdir
5         dh_testroot
6         dh_clean
7
8 build:
9 build-arch:
10 build-indep:
11
12 install:
13         dh_testdir
14         dh_testroot
15         dh_clean -k
16         dh_installdirs
17
18         for f in `ls -1 checks/* | grep -v 'sample$$'`; do \
19                 install -m 755 $$f $(CURDIR)/debian/dsa-nagios-checks/usr/lib/nagios/plugins; \
20         done
21
22         for f in `ls -1 event_handlers/* | grep -v 'sample$$'`; do \
23                 install -m 755 $$f $(CURDIR)/debian/dsa-nagios-checks/usr/lib/nagios/plugins; \
24         done
25
26         for f in `ls -1 etc/*`; do \
27                 install -m 644 $$f $(CURDIR)/debian/dsa-nagios-checks/etc/nagios; \
28         done
29
30         for f in `ls -1 share/*`; do \
31                 install -m 755 $$f $(CURDIR)/debian/dsa-nagios-checks/usr/share/dsa; \
32         done
33
34         for f in `ls -1 sbin/*`; do \
35                 install -m 755 $$f $(CURDIR)/debian/dsa-nagios-checks/usr/sbin; \
36         done
37
38
39 binary-indep: install
40         dh_testdir
41         dh_testroot
42         dh_installchangelogs
43         dh_installdocs
44         dh_installcron
45         dh_compress
46         dh_fixperms
47         dh_installdeb
48         dh_shlibdeps
49         dh_gencontrol
50         dh_md5sums
51         dh_builddeb
52
53 binary-arch: install
54 binary: binary-indep binary-arch
55
56 .PHONY: clean binary-indep binary-arch binary install build