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.
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
16 configure: configure-stamp
17 configure-stamp:
18 dh_testdir
19 # Add here commands to configure the package.
20 mkdir agents
21 tar -xzf agents.tar.gz -C agents
22 mkdir docs
23 tar -xzf doc.tar.gz -C docs
24 mkdir config
25 tar -xzf conf.tar.gz -C config
27 touch configure-stamp
30 build: build-stamp
32 build-stamp: configure-stamp
33 dh_testdir
35 # Add here commands to compile the package.
36 #cd agents ; $(MAKE)
37 #docbook-to-man debian/check-mk.sgml > check-mk.1
39 touch $@
41 clean:
42 dh_testdir
43 dh_testroot
44 rm -f build-stamp configure-stamp
46 # Add here commands to clean up after the build process.
47 rm -rf agents docs config livestatus.src livestatus.log
49 dh_clean
51 install: build
52 dh_testdir
53 dh_testroot
54 dh_prep
55 dh_installdirs
56 mkdir -p debian/tmp
57 DESTDIR=debian/tmp ./setup.sh --yes
58 cp -a livestatus.src/debian/tmp/* debian/tmp/
59 rm debian/tmp/usr/share/check_mk/modules/defaults
60 mkdir -p debian/check-mk-server-icinga/usr/share/check_mk/modules/
61 cp debian/defaults.icinga debian/check-mk-server-icinga/usr/share/check_mk/modules/defaults
62 cp debian/tmp/usr/share/check_mk/agents/check_mk_agent.linux debian/check-mk-agent/usr/bin/check_mk_agent
63 chmod +x debian/check-mk-agent/usr/bin/check_mk_agent
64 cp debian/tmp/usr/share/check_mk/agents/xinetd.conf debian/check-mk-agent/etc/xinetd.d/check_mk
68 # Build architecture-independent files here.
69 binary-indep: build install
70 dh_testdir
71 dh_install
73 # We have nothing to do by default.
75 # Build architecture-dependent files here.
76 binary-arch: build install
77 dh_testdir
78 dh_testroot
79 dh_installchangelogs ChangeLog
80 dh_installdocs
81 dh_installexamples
82 dh_install
83 # dh_installmenu
84 # dh_installdebconf
85 # dh_installlogrotate
86 # dh_installemacsen
87 # dh_installpam
88 # dh_installmime
89 # dh_python
90 # dh_installinit
91 # dh_installcron
92 # dh_installinfo
93 dh_installman
94 dh_link
95 dh_strip
96 dh_compress
97 dh_fixperms
98 # dh_perl
99 # dh_makeshlibs
100 dh_installdeb
101 dh_shlibdeps
102 dh_gencontrol
103 dh_md5sums
104 dh_builddeb
106 binary: binary-indep binary-arch
107 .PHONY: build clean binary-indep binary-arch binary install configure