File: rules

package info (click to toggle)
mon 0.37h-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 336 kB
  • ctags: 72
  • sloc: perl: 2,167; sh: 138; makefile: 48
file content (65 lines) | stat: -rwxr-xr-x 1,533 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/make -f

# $Id: rules,v 1.3 1998/04/04 05:00:34 roderick Exp $

dt	:= debian/tmp
doc	:= usr/doc/mon

build:

clean:
	dh_testdir
	dh_testroot
	dh_clean

binary-indep: build
#	dh_testversion
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs usr/sbin usr/bin etc $(doc)/examples \
	    usr/lib/mon/alert.d usr/lib/mon/mon.d usr/lib/mon/cgi-bin \
	    var/run/mon

	install mon $(dt)/usr/sbin
	install clients/moncmd clients/monstatus clients/skymon/skymon \
	    $(dt)/usr/bin
	install alert.d/*.alert alert.d/alert.template \
	    $(dt)/usr/lib/mon/alert.d
	install mon.d/*.monitor $(dt)/usr/lib/mon/mon.d
	install cgi-bin/*.cgi $(dt)/usr/lib/mon/cgi-bin
	install -m 644 debian/mon.cf $(dt)/etc
	install -m 644 etc/example.cf $(dt)/$(doc)/examples/mon.cf
	install -m 644 clients/skymon/README $(dt)/$(doc)/README.skymon
	install -m 644 clients/skymon/allow $(dt)/$(doc)/examples/skymon.allow
	install -m 644 clients/skymon/procmail \
	    $(dt)/$(doc)/examples/skymon.procmail

	dh_installdocs CREDITS README TODO doc/README.*
	dh_installexamples `ls -d utils/* | grep -v '/CVS$$'`
	dh_installmenu
	dh_installinit
	dh_installcron
	dh_installmanpages
#	dh_undocumented
	dh_installchangelogs CHANGES
	dh_strip
	dh_compress

	dh_fixperms
	chown root.daemon $(dt)/var/run/mon
	chmod 2775 $(dt)/var/run/mon

	dh_suidregister
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol -u -isp
#	dh_makeshlibs
	dh_md5sums
	dh_builddeb

binary-arch: build

binary: binary-indep binary-arch

.PHONY: build clean binary-indep binary-arch binary