add dsa-check-file_size
[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
10 install:
11         dh_testdir
12         dh_testroot
13         dh_clean -k
14         dh_installdirs
15
16         for f in `ls -1 checks/* | grep -v 'sample$$'`; do \
17                 install -m 755 $$f $(CURDIR)/debian/dsa-nagios-checks/usr/lib/nagios/plugins; \
18         done
19
20         for f in `ls -1 event_handlers/* | grep -v 'sample$$'`; do \
21                 install -m 755 $$f $(CURDIR)/debian/dsa-nagios-checks/usr/lib/nagios/plugins; \
22         done
23
24         for f in `ls -1 etc/*`; do \
25                 install -m 644 $$f $(CURDIR)/debian/dsa-nagios-checks/etc/nagios; \
26         done
27
28         for f in `ls -1 share/*`; do \
29                 install -m 755 $$f $(CURDIR)/debian/dsa-nagios-checks/usr/share/dsa; \
30         done
31
32         for f in `ls -1 sbin/*`; do \
33                 install -m 755 $$f $(CURDIR)/debian/dsa-nagios-checks/usr/sbin; \
34         done
35
36
37 binary-indep: install
38         dh_testdir
39         dh_testroot
40         dh_installchangelogs
41         dh_installdocs
42         dh_installcron
43         dh_compress
44         dh_fixperms
45         dh_installdeb
46         dh_shlibdeps
47         dh_gencontrol
48         dh_md5sums
49         dh_builddeb
50
51 binary-arch: install
52 binary: binary-indep binary-arch
53
54 .PHONY: clean binary-indep binary-arch binary install build