Add makefile for config-gate
Story: 2004043 Task: 27551 Change-Id: I92d38ba07cafbf08f77df1235bb947bf1a9ca404 Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
This commit is contained in:
parent
1813918cf4
commit
0cfa34f45f
|
@ -30,13 +30,7 @@ Startup compute configuration gate
|
||||||
%build
|
%build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d -m 755 %{buildroot}%{_sbindir}
|
make install SBINDIR=%{buildroot}%{_sbindir} SYSTEMDDIR=%{buildroot}%{local_etc_systemd}
|
||||||
install -p -D -m 555 wait_for_config_init.sh %{buildroot}%{_sbindir}/
|
|
||||||
install -p -D -m 555 wait_for_compute_config_init.sh %{buildroot}%{_sbindir}/
|
|
||||||
|
|
||||||
install -d -m 755 %{buildroot}%{local_etc_systemd}
|
|
||||||
install -p -D -m 444 config.service %{buildroot}%{local_etc_systemd}/config.service
|
|
||||||
install -p -D -m 444 compute-config-gate.service %{buildroot}%{local_etc_systemd}/compute-config-gate.service
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
systemctl enable config.service
|
systemctl enable config.service
|
||||||
|
@ -45,7 +39,6 @@ systemctl enable config.service
|
||||||
systemctl enable compute-config-gate.service
|
systemctl enable compute-config-gate.service
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
# rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
|
SBINDIR ?= /usr/sbin
|
||||||
|
SYSTEMDDIR ?= /usr/lib/systemd/system/
|
||||||
|
|
||||||
|
install:
|
||||||
|
install -d -m 755 $(SBINDIR)
|
||||||
|
install -d -m 755 $(SYSTEMDDIR)
|
||||||
|
install -p -D -m 555 wait_for_config_init.sh $(SBINDIR)/wait_for_config_init.sh
|
||||||
|
install -p -D -m 555 wait_for_compute_config_init.sh $(SBINDIR)/wait_for_compute_config_init.sh
|
||||||
|
install -p -D -m 444 config.service $(SYSTEMDDIR)/config.service
|
||||||
|
install -p -D -m 444 compute-config-gate.service $(SYSTEMDDIR)/compute-config-gate.service
|
Loading…
Reference in New Issue