
Modified mtce-guest to address the following failing services on Debian: guestAgent.service guestServer.service (the service provides a means of guest heartbeat orchestration under VIM (system management) control) Applied fix: - Included modified .service files for debian directly into the deb_folder. - Included "override_dh_installsystemd" section to rules in order to start guestServer at boot and guestAgent with --no-enable option - Removed guestAgent.service and guestServer.service install from Makefile to spec, in order to override (for CentOS build) - Modified service scripts to fork for Daemon location - Move binaries to usr/local/bin PASS: Package installed and ISO built on Debian successfully PASS: Services are running correctly after loading the image: guestServer is started automatically, guestAgent (--no-enable) runs correctly when started via systemctl PASS: guestServer runs as expected after bootstrap PASS: Package installed and ISO built on CentOS successfully PASS: Services are running on CentOS after bootstrap and unlock correctly Story: 2009101 Task: 44323 Change-Id: I856fcc78c41953ae37e7c2cf1361b4466b15720b
45 lines
1.3 KiB
Makefile
45 lines
1.3 KiB
Makefile
#!/usr/bin/make -f
|
|
# export DH_VERBOSE = 1
|
|
|
|
export ROOT=debian/tmp
|
|
|
|
export BINDIR=/usr/local/bin
|
|
export INITDIR=$(ROOT)/etc/init.d
|
|
export LOGDIR=$(ROOT)/etc/logrotate.d
|
|
export MTCDIR=$(ROOT)/etc/mtc
|
|
export PMONDIR=$(ROOT)/etc/pmon.d
|
|
export SYSCONFDIR=/etc
|
|
export UNITDIR=/lib/systemd/system
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_install:
|
|
make DESTDIR=$(ROOT) \
|
|
PREFIX=$(ROOT)/usr/local \
|
|
SYSCONFIGDIR=$(ROOT)/$(SYSCONFDIR) \
|
|
LOCALBINDIR=$(ROOT)/$(BINDIR) \
|
|
UNITDIR=$(ROOT)/$(UNITDIR) install
|
|
install -d -m 755 $(INITDIR)
|
|
install -p -D -m 700 scripts/guestAgent $(INITDIR)/guestAgent
|
|
install -p -D -m 700 scripts/guestServer $(INITDIR)/guestServer
|
|
install -d -m 755 $(LOGDIR)
|
|
install -p -D -m 644 scripts/guestAgent.logrotate $(LOGDIR)/guestAgent.logrotate
|
|
install -p -D -m 644 scripts/guestServer.logrotate $(LOGDIR)/guestServer.logrotate
|
|
install -d -m 755 $(MTCDIR)
|
|
install -d -m 755 $(MTCDIR)/tmp
|
|
install -p -D -m 644 scripts/guest.ini $(MTCDIR)/guestAgent.ini
|
|
install -p -D -m 644 scripts/guest.ini $(MTCDIR)/guestServer.ini
|
|
install -d -m 755 $(PMONDIR)
|
|
install -p -D -m 644 scripts/guestServer.pmon $(PMONDIR)/guestServer.conf
|
|
|
|
override_dh_installsystemd:
|
|
dh_installsystemd --name guestServer
|
|
dh_installsystemd --no-enable --name guestAgent
|
|
|
|
override_dh_fixperms:
|
|
dh_fixperms -XguestAgent -XguestServer
|
|
|
|
override_dh_usrlocal:
|
|
echo "SKIPPING DH USRLOCAL"
|