Rework fm-mgr Makefile and spec
Move service installation out of the Makefile. This will let Debian build system control the service installation. Test on CentOS: PASS: build-pkgs && build-iso PASS: install iso & fminit service exists PASS: bootstrap & unlock Story: 2009101 Task: 44321 Change-Id: I244c078b19fb0817fcd9ac3c2b026a32024dd1c9 Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
This commit is contained in:
parent
30e9761ede
commit
be2ceec7a9
@ -41,6 +41,7 @@ make DESTDIR=%{buildroot} \
|
||||
UNITDIR=%{_unitdir} \
|
||||
MAJOR=$MAJOR MINOR=$MINOR \
|
||||
install
|
||||
install -m 644 fminit.service %{buildroot}%{_unitdir}/fminit.service
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
@ -12,7 +12,6 @@ MINOR ?= 0
|
||||
DESTDIR ?= /
|
||||
BINDIR ?= /usr/local/bin
|
||||
SYSCONFDIR ?= /etc
|
||||
UNITDIR ?= /usr/lib/systemd/system
|
||||
|
||||
|
||||
build: fmManager
|
||||
@ -35,4 +34,3 @@ install:
|
||||
install -m 755 fminit $(DESTDIR)$(SYSCONFDIR)/init.d/fminit
|
||||
install -m 755 fmManager $(DESTDIR)$(BINDIR)/fmManager
|
||||
install -m 644 fm.logrotate $(DESTDIR)$(SYSCONFDIR)/logrotate.d/fm.logrotate
|
||||
install -m 644 fminit.service $(DESTDIR)$(UNITDIR)/fminit.service
|
||||
|
Loading…
Reference in New Issue
Block a user