2 # Sample debian/rules that uses debhelper.
3 # This file is public domain software, originally written by Joey Hess.
5 # This version is for packages that are architecture dependent.
7 # Uncomment this to turn on verbose mode.
15 build
: patch build-stamp
18 $(MAKE
) EDITION
=$(EDITION
) -j
4 build
21 clean: clean-patched unpatch
26 $(MAKE
) EDITION
=$(EDITION
) clean
27 rm -f
$(_PWD
)/debian
/postinst
28 rm -f
$(_PWD
)/debian
/preinst
29 rm -f
$(_PWD
)/debian
/prerm
30 rm -f
$(_PWD
)/debian
/postrm
31 rm -f
$(_PWD
)/debian
/init
32 rm -f
$(_PWD
)/debian
/links
33 rm -f
$(_PWD
)/debian
/*.debhelper
34 rm -rf
$(_PWD
)/debian
/check-mk-
*-[0-9].
[0-9.
]*
35 rm -rf
$(_PWD
)/debian
/check-mk-
*-[1-9][0-9].
[0-9.
]*
42 ${MAKE} EDITION
=$(EDITION
) clean
47 dpatch cat-all
>patch-stamp
51 rm -rf patch-stamp debian
/patched
59 $(MAKE
) EDITION
=$(EDITION
) DESTDIR
=$(_PWD
)/debian
/`dh_listpackages` pack
60 # -- remove version independent dirs, will be created later by postinst
61 rm -f
$(_PWD
)/debian
/`dh_listpackages`/usr
/bin
/omd
62 rmdir
$(_PWD
)/debian
/`dh_listpackages`/usr
/bin
63 rm -f
$(_PWD
)/debian
/`dh_listpackages`/usr
/share
/man
/man8
/omd
.8.gz
64 rm -f
$(_PWD
)/debian
/`dh_listpackages`/omd
65 rmdir
$(_PWD
)/debian
/`dh_listpackages`/opt
/omd
/apache
66 rmdir
$(_PWD
)/debian
/`dh_listpackages`/opt
/omd
/sites
67 rm -f
$(_PWD
)/debian
/`dh_listpackages`/opt
/omd
/versions
/default
68 rm -rf
$(_PWD
)/debian
/`dh_listpackages`/etc
/apache2
69 rm -f
$(_PWD
)/debian
/`dh_listpackages`/etc
/init.d
/omd
70 rm -f
$(_PWD
)/debian
/`dh_listpackages`/etc
/systemd
/system
/omd.service
71 mv
-f
$(_PWD
)/check-mk-
$(EDITION
)-bin-
$(OMD_VERSION
).
tar.gz
$(_PWD
)/..
73 sed
-e
's/###OMD_VERSION###/$(OMD_VERSION)/g' \
74 -e
's/###OMD_SERIAL###/$(OMD_SERIAL)/g' \
75 $(_PWD
)/debian
/postinst.in
> $(_PWD
)/debian
/postinst
76 sed
-e
's/###OMD_VERSION###/$(OMD_VERSION)/g' \
77 $(_PWD
)/debian
/preinst.in
> $(_PWD
)/debian
/preinst
78 sed
-e
's/###OMD_VERSION###/$(OMD_VERSION)/g' \
79 $(_PWD
)/debian
/prerm.in
> $(_PWD
)/debian
/prerm
80 sed
-e
's/###OMD_VERSION###/$(OMD_VERSION)/g' \
81 $(_PWD
)/debian
/postrm.in
> $(_PWD
)/debian
/postrm
82 sed
-e
's/###OMD_VERSION###/$(OMD_VERSION)/g' \
83 $(_PWD
)/debian
/init.in
> $(_PWD
)/debian
/init
84 sed
-e
's/###OMD_VERSION###/$(OMD_VERSION)/g' \
85 $(_PWD
)/debian
/links.in
> $(_PWD
)/debian
/links
87 # Build architecture-independent files here.
89 # We have nothing to do by default.
91 # Build architecture-dependent files here.
101 # dh_installlogrotate
116 dh_strip
--exclude
=wkhtmltopdf
--exclude
=cmc
--exclude
=waitmax
--exclude agent_modbus
127 binary
: binary-indep binary-arch
128 .PHONY
: build
clean binary-indep binary-arch binary
install