Skip to content

Commit 428e1d0

Browse files
committed
Ship the cmk-agent-ctl with vanilla deb and rpm
Change-Id: I532915faeb2256fc90c9d12685038373d061a6ec
1 parent 9e7ed26 commit 428e1d0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

agents/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ usage:
2020
@echo "make rpm -- create RPM package of Linux agent"
2121
@echo "make deb -- create DEB package of Linux agent"
2222
@echo "make packages -- create RPM and DEB package of Linux agent"
23-
@echo "make cmk-agent-ctl --r"
23+
@echo "make cmk-agent-ctl -- build the agent controller binary"
2424

2525
waitmax: waitmax.c
2626
@if type diet >/dev/null ; then \
@@ -67,7 +67,7 @@ $(CONTROLLER):
6767
&& mkdir -p linux \
6868
&& cp cmk-agent-ctl/target/release/cmk-agent-ctl linux
6969

70-
$(RPM_PACKAGE): waitmax
70+
$(RPM_PACKAGE): $(CONTROLLER) waitmax
7171
rm -rf $(RPM_TOPDIR)
7272
mkdir -p $(RPM_TOPDIR)/RPMS
7373
mkdir -p $(RPM_TOPDIR)/SRPMS
@@ -81,6 +81,7 @@ $(RPM_PACKAGE): waitmax
8181
scripts \
8282
check_mk_agent.linux \
8383
check_mk_caching_agent.linux \
84+
linux/cmk-agent-ctl \
8485
waitmax \
8586
mk-job
8687
rm -f *.rpm

agents/check-mk-agent.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ install -m 755 check_mk_agent.linux $R/usr/bin/check_mk_agent
5050
install -m 755 check_mk_caching_agent.linux $R/usr/bin/check_mk_caching_agent
5151
install -m 755 waitmax $R/usr/bin
5252
install -m 755 mk-job $R/usr/bin
53+
install -m 755 linux/cmk-agent-ctl $R/usr/bin
5354
mkdir -p $R/usr/lib/check_mk_agent/plugins
5455
mkdir -p $R/usr/lib/check_mk_agent/local
5556
mkdir -p $R/var/lib/check_mk_agent

0 commit comments

Comments
 (0)