Remove CentOS/OpenSUSE build support

StarlingX stopped supporting CentOS builds in the after release 7.0.
This update will strip CentOS from our code base.  It will also remove
references to the failed OpenSUSE feature as well.

Story: 2011110
Task: 49944

Change-Id: I8cd4e23ab83f2fe064fa1f88553eb32a69a67265
Signed-off-by: Scott Little <scott.little@windriver.com>
This commit is contained in:
Scott Little 2024-04-26 11:41:15 -04:00
parent 1b9c361c1b
commit 7c4d01df61
49 changed files with 0 additions and 1543 deletions

View File

@ -1 +0,0 @@
flock

View File

@ -1 +0,0 @@
tsconfig-wheels

View File

@ -1,41 +0,0 @@
# List of packages to be included/installed in ISO
# If these have dependencies, they will be pulled in automatically
#
# workerconfig
workerconfig
workerconfig-standalone
# controllerconfig
controllerconfig
# storageconfig
storageconfig
# cert-mon
cert-mon
# cert-alarm
cert-alarm
# cgts-client
cgts-client
# sysinv-agent
sysinv-agent
# sysinv
sysinv
# config-gate
config-gate
config-gate-worker
# Platform helm charts
# PM QoS cpu latency manager
# tsconfig
tsconfig

View File

@ -1,10 +0,0 @@
workerconfig
controllerconfig
storageconfig
sysinv/cert-mon
sysinv/cert-alarm
sysinv/cgts-client
sysinv/sysinv-agent
sysinv/sysinv
config-gate
tsconfig

View File

@ -1,4 +0,0 @@
cgts-client-wheels
controllerconfig-wheels
sysinv-wheels
tsconfig-wheels

View File

@ -1,2 +0,0 @@
SRC_DIR="files"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,52 +0,0 @@
Summary: config-gate
Name: config-gate
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
%define debug_package %{nil}
Requires: systemd
%description
Startup configuration gate
%package -n %{name}-worker
Summary: config-gate-worker
Group: base
%description -n %{name}-worker
Startup worker configuration gate
%define local_etc_systemd /etc/systemd/system/
%prep
%setup
%build
%install
make install SBINDIR=%{buildroot}%{_sbindir} SYSTEMDDIR=%{buildroot}%{local_etc_systemd}
%post
systemctl enable config.service
%post -n %{name}-worker
systemctl enable worker-config-gate.service
%clean
%files
%defattr(-,root,root,-)
%doc LICENSE
%{_sbindir}/wait_for_config_init.sh
%{local_etc_systemd}/config.service
%files -n %{name}-worker
%defattr(-,root,root,-)
%{_sbindir}/wait_for_worker_config_init.sh
%{local_etc_systemd}/worker-config-gate.service

View File

@ -1,15 +0,0 @@
-------------------------------------------------------------------
Mon Jun 17 21:44:05 UTC 2019 - felipe.de.jesus.ruiz.garcia@intel.com
- Add %changelog section
-------------------------------------------------------------------
Mon Jun 17 20:57:02 UTC 2019 - felipe.de.jesus.ruiz.garcia@intel.com
- Fix build issues
-------------------------------------------------------------------
Wed Jun 12 07:42:35 UTC 2019 - felipe.de.jesus.ruiz.garcia@intel.com
- Initial commit

View File

@ -1 +0,0 @@
setBadness('script-without-shebang', 2)

View File

@ -1,59 +0,0 @@
Summary: General config initialization gate
Name: config-gate
Version: 1.0.0
Release: 1
License: Apache-2.0
Group: Development/Tools/Other
URL: https://opendev.org/starlingx/config
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: systemd
%define debug_package %{nil}
%description
General configuration for the initialization gate
%package -n %{name}-worker
Summary: Startup configuration gate
BuildRequires: -devel
Group: Development/Tools/Other
%description -n %{name}-worker
General configuration for the initialization gate
%define local_etc_systemd /etc/systemd/system/
%prep
%setup -n %{name}-%{version}/files
%build
%install
make install SBINDIR=%{buildroot}%{_sbindir} SYSTEMDDIR=%{buildroot}%{local_etc_systemd}
%post
%service_add_post config.service config.target
%post -n %{name}-worker
systemctl enable worker-config-gate.service
%clean
%files
%defattr(-,root,root,-)
%doc LICENSE
%{_sbindir}/wait_for_config_init.sh
%{local_etc_systemd}/config.service
%dir %{_sysconfdir}/systemd
%dir %{_sysconfdir}/systemd/system
%files -n %{name}-worker
%defattr(-,root,root,-)
%{_sbindir}/wait_for_worker_config_init.sh
%{local_etc_systemd}/worker-config-gate.service
%dir %{_sysconfdir}/systemd
%dir %{_sysconfdir}/systemd/system
%changelog

View File

@ -1,2 +0,0 @@
SRC_DIR="controllerconfig"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,105 +0,0 @@
Summary: Controller node configuration
Name: controllerconfig
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
BuildRequires: python-setuptools
BuildRequires: python2-pip
BuildRequires: python2-wheel
Requires: fm-api
Requires: psmisc
Requires: sysinv
Requires: systemd
Requires: tsconfig
Requires: python-cryptography
Requires: python-iso8601
Requires: python-keyring
Requires: python-netaddr
Requires: python-netifaces
Requires: python-pyudev
Requires: python-six
Requires: python2-crypto
Requires: python2-oslo-utils
Requires: python2-pysnmp
Requires: python2-ruamel-yaml
%description
Controller node configuration
%define local_dir /usr/
%define local_bindir %{local_dir}/bin/
%define local_etc_initd /etc/init.d/
%define local_goenabledd /etc/goenabled.d/
%define local_etc_upgraded /etc/upgrade.d/
%define local_etc_systemd /etc/systemd/system/
%define pythonroot /usr/lib64/python2.7/site-packages
%define debug_package %{nil}
%prep
%setup
%build
%{__python} setup.py build
%py2_build_wheel
# TODO: NO_GLOBAL_PY_DELETE (see python-byte-compile.bbclass), put in macro/script
%install
%{__python} setup.py install --root=$RPM_BUILD_ROOT \
--install-lib=%{pythonroot} \
--prefix=/usr \
--install-data=/usr/share \
--single-version-externally-managed
mkdir -p $RPM_BUILD_ROOT/wheels
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
install -d -m 755 %{buildroot}%{local_bindir}
install -p -D -m 700 scripts/openstack_update_admin_password %{buildroot}%{local_bindir}/openstack_update_admin_password
install -p -D -m 700 scripts/upgrade_swact_migration.py %{buildroot}%{local_bindir}/upgrade_swact_migration.py
install -p -D -m 755 scripts/image-backup.sh %{buildroot}%{local_bindir}/image-backup.sh
install -d -m 755 %{buildroot}%{local_goenabledd}
install -p -D -m 700 scripts/config_goenabled_check.sh %{buildroot}%{local_goenabledd}/config_goenabled_check.sh
install -d -m 755 %{buildroot}%{local_etc_initd}
install -p -D -m 755 scripts/controller_config %{buildroot}%{local_etc_initd}/controller_config
# Install Upgrade scripts
install -d -m 755 %{buildroot}%{local_etc_upgraded}
install -p -D -m 755 upgrade-scripts/* %{buildroot}%{local_etc_upgraded}/
install -d -m 755 %{buildroot}%{local_etc_systemd}
install -p -D -m 664 scripts/controllerconfig.service %{buildroot}%{local_etc_systemd}/controllerconfig.service
%post
systemctl enable controllerconfig.service
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE
%{local_bindir}/*
%dir %{pythonroot}/%{name}
%{pythonroot}/%{name}/*
%dir %{pythonroot}/%{name}-%{version}.0-py2.7.egg-info
%{pythonroot}/%{name}-%{version}.0-py2.7.egg-info/*
%{local_goenabledd}/*
%{local_etc_initd}/*
%dir %{local_etc_upgraded}
%{local_etc_upgraded}/*
%{local_etc_systemd}/*
%package wheels
Summary: %{name} wheels
%description wheels
Contains python wheels for %{name}
%files wheels
/wheels/*

View File

@ -1,4 +0,0 @@
-------------------------------------------------------------------
Tue Oct 15 20:13:13 UTC 2019 - Saul Wold <sgw@linux.intel.com>
- 1.0.0 Initial commit

View File

@ -1,112 +0,0 @@
Summary: Controller node configuration
Name: controllerconfig
Version: 1.0.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: Development/Tools/Other
URL: https://opendev.org/starlingx/config
Source0: %{name}-%{version}.tar.gz
BuildRequires: python-setuptools
BuildRequires: python2-pip
BuildRequires: python2-wheel
BuildRequires: systemd-devel
Requires: fm-api
Requires: psmisc
Requires: sysinv
Requires: tsconfig
Requires: python-iso8601
Requires: python-keyring
Requires: python-netaddr
Requires: python-netifaces
Requires: python-pyudev
Requires: python-six
Requires: python2-oslo.utils
Requires: python2-pycrypto
Requires: python2-pysnmp
Requires: python2-ruamel.yaml
%description
Configuration for the Controller node.
%define local_bindir %{_bindir}
%define local_etc_initd /%{_sysconfdir}/init.d/
%define local_goenabledd /etc/goenabled.d/
%define local_etc_upgraded /etc/upgrade.d/
%define local_etc_systemd /etc/systemd/system/
%define pythonroot /usr/lib64/python2.7/site-packages
%define debug_package %{nil}
%prep
%setup -n %{name}-%{version}/%{name}
%build
%{__python} setup.py build
# TODO: NO_GLOBAL_PY_DELETE (see python-byte-compile.bbclass), put in macro/script
%install
%{__python} setup.py install --root=$RPM_BUILD_ROOT \
--install-lib=%{pythonroot} \
--prefix=/usr \
--install-data=/usr/share \
--single-version-externally-managed
#mkdir -p $RPM_BUILD_ROOT/wheels
#install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
install -d -m 755 %{buildroot}%{local_bindir}
install -p -D -m 700 scripts/openstack_update_admin_password %{buildroot}%{local_bindir}/openstack_update_admin_password
install -p -D -m 700 scripts/upgrade_swact_migration.py %{buildroot}%{local_bindir}/upgrade_swact_migration.py
install -d -m 755 %{buildroot}%{local_goenabledd}
install -p -D -m 700 scripts/config_goenabled_check.sh %{buildroot}%{local_goenabledd}/config_goenabled_check.sh
install -d -m 755 %{buildroot}%{local_etc_initd}
install -p -D -m 755 scripts/controller_config %{buildroot}%{local_etc_initd}/controller_config
# Install Upgrade scripts
install -d -m 755 %{buildroot}%{local_etc_upgraded}
# install -p -D -m 755 upgrade-scripts/* %{buildroot}%{local_etc_upgraded}/
install -p -D -m 664 scripts/controllerconfig.service %{buildroot}%{_unitdir}/controllerconfig.service
%pre
%service_add_pre controllerconfig.service controllerconfig.target
%post
%service_add_post controllerconfig.service controllerconfig.target
%preun
%service_del_preun controllerconfig.service controllerconfig.target
%postun
%service_del_postun controllerconfig.service controllerconfig.target
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE
%{local_bindir}/*
%dir %{pythonroot}/%{name}
%{pythonroot}/%{name}/*
%dir %{pythonroot}/%{name}-%{version}-py2.7.egg-info
%{pythonroot}/%{name}-%{version}-py2.7.egg-info/*
%dir %{local_goenabledd}
%{local_goenabledd}/*
%{local_etc_initd}/*
%dir %{local_etc_upgraded}
# %{local_etc_upgraded}/*
%{_unitdir}/*
#%%package wheels
#Summary: %%{name} wheels
#%%description wheels
#Contains python wheels for %%{name}
#%%files wheels
#/wheels/*
%changelog

View File

@ -1,2 +0,0 @@
SRC_DIR="storageconfig"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,51 +0,0 @@
Summary: Initial storage node configuration
Name: storageconfig
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
Requires: systemd
%description
Initial storage node configuration
%define local_etc_initd /etc/init.d/
%define local_etc_goenabledd /etc/goenabled.d/
%define debug_package %{nil}
%prep
%setup
%build
%install
make install \
INITDDIR=%{buildroot}%{local_etc_initd} \
GOENABLEDDIR=%{buildroot}%{local_etc_goenabledd} \
SYSTEMDDIR=%{buildroot}%{_unitdir}
%post
systemctl enable storageconfig.service
# TODO: Support different root partitions for small footprint (see --root)
# if [ -n "$D" ]; then
# OPT="-r $D"
# else
# OPT=""
# fi
# update-rc.d $OPT storage_config defaults 60
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE
%{local_etc_initd}/*
%{local_etc_goenabledd}/*
%{_unitdir}/*

View File

@ -1,4 +0,0 @@
-------------------------------------------------------------------
Thu Jun 13 08:14:42 UTC 2019 - xe1gyq@gmail.com
- 1.0 Initial Commit

View File

@ -1 +0,0 @@
setBadness('script-without-shebang', 2)

View File

@ -1,67 +0,0 @@
%define local_etc_initd /etc/init.d/
%define local_etc_goenabledd /etc/goenabled.d/
%define debug_package %{nil}
Name: storageconfig
Version: 1.0.0
Release: 1
License: Apache-2.0
Summary: Initial Storage Node Configuration
Url: https://opendev.org/starlingx/config
Group: Development/Tools/Other
Source: %{name}-%{version}.tar.gz
BuildRequires: systemd-devel
Requires: systemd
BuildRequires: insserv-compat
BuildArch: noarch
%description
StarlingX initial storage node configuration
%prep
%setup -n %{name}-%{version}/%{name}
%build
%install
make install \
INITDDIR=%{buildroot}%{local_etc_initd} \
GOENABLEDDIR=%{buildroot}%{local_etc_goenabledd} \
SYSTEMDDIR=%{buildroot}%{_unitdir}
install -dD -m 0755 %{buildroot}%{_sbindir}
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcstorageconfig
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcstorage_config
%pre
%service_add_pre storageconfig.service
%post
%service_add_post storageconfig.service
%preun
%stop_on_removal
%service_del_preun storageconfig.service
%postun
%restart_on_update
%insserv_cleanup
%service_del_postun storageconfig.service
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE
%dir %{local_etc_initd}/
%dir %{local_etc_goenabledd}/
%{local_etc_initd}/*
%{local_etc_goenabledd}/*
%{_sbindir}/rcstorageconfig
%{_sbindir}/rcstorage_config
%{_unitdir}/*
%changelog

View File

@ -1,2 +0,0 @@
SRC_DIR="files"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,50 +0,0 @@
Summary: StarlingX Certificate Alarm Package
Name: cert-alarm
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: systemd-devel
%define ocf_resourced /usr/lib/ocf/resource.d
%description
StarlingX Certificate Alarm Package
%define local_etc_initd /etc/init.d/
%define debug_package %{nil}
%prep
%setup
%build
%install
install -m 755 -p -D cert-alarm %{buildroot}/usr/lib/ocf/resource.d/platform/cert-alarm
install -m 644 -p -D cert-alarm.service %{buildroot}%{_unitdir}/cert-alarm.service
install -m 644 -p -D cert-alarm.syslog %{buildroot}%{_sysconfdir}/syslog-ng/conf.d/cert-alarm.conf
install -m 644 -p -D cert-alarm.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/cert-alarm.conf
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE
# SM OCF Start/Stop/Monitor Scripts
%{ocf_resourced}/platform/cert-alarm
# systemctl service files
%{_unitdir}/cert-alarm.service
# logfile config files
%{_sysconfdir}/syslog-ng/conf.d/cert-alarm.conf
%{_sysconfdir}/logrotate.d/cert-alarm.conf

View File

@ -1,2 +0,0 @@
SRC_DIR="files"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,50 +0,0 @@
Summary: StarlingX Certificate Monitor Package
Name: cert-mon
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: systemd-devel
%define ocf_resourced /usr/lib/ocf/resource.d
%description
StarlingX Certificate Monitor Package
%define local_etc_initd /etc/init.d/
%define debug_package %{nil}
%prep
%setup
%build
%install
install -m 755 -p -D cert-mon %{buildroot}/usr/lib/ocf/resource.d/platform/cert-mon
install -m 644 -p -D cert-mon.service %{buildroot}%{_unitdir}/cert-mon.service
install -m 644 -p -D cert-mon.syslog %{buildroot}%{_sysconfdir}/syslog-ng/conf.d/cert-mon.conf
install -m 644 -p -D cert-mon.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/cert-mon.conf
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE
# SM OCF Start/Stop/Monitor Scripts
%{ocf_resourced}/platform/cert-mon
# systemctl service files
%{_unitdir}/cert-mon.service
# logfile config files
%{_sysconfdir}/syslog-ng/conf.d/cert-mon.conf
%{_sysconfdir}/logrotate.d/cert-mon.conf

View File

@ -1,2 +0,0 @@
SRC_DIR="cgts-client"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,83 +0,0 @@
Summary: System Client and CLI
Name: cgts-client
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
BuildRequires: git
BuildRequires: python-setuptools
BuildRequires: python-pbr
BuildRequires: python2-pip
BuildRequires: python2-wheel
Requires: python-httplib2
Requires: python-prettytable
Requires: bash-completion
Requires: python-dateutil
Requires: python-keystoneclient
Requires: python2-oslo-i18n
Requires: python2-oslo-serialization
Requires: python2-oslo-utils
Requires: requests-toolbelt
# Needed for python2 and python3 compatible
Requires: python-six
%description
System Client and CLI
%define local_bindir /usr/bin/
%define local_etc_bash_completiond /etc/bash_completion.d/
%define pythonroot /usr/lib64/python2.7/site-packages
%define debug_package %{nil}
%prep
%autosetup -n %{name}-%{version} -S git
# Remove bundled egg-info
rm -rf *.egg-info
%build
export PBR_VERSION=%{version}
%{__python} setup.py build
%py2_build_wheel
%install
export PBR_VERSION=%{version}
%{__python} setup.py install --root=$RPM_BUILD_ROOT \
--install-lib=%{pythonroot} \
--prefix=/usr \
--install-data=/usr/share \
--single-version-externally-managed
mkdir -p $RPM_BUILD_ROOT/wheels
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
install -d -m 755 %{buildroot}%{local_etc_bash_completiond}
install -p -D -m 664 tools/system.bash_completion %{buildroot}%{local_etc_bash_completiond}/system.bash_completion
%clean
rm -rf $RPM_BUILD_ROOT
# Note: Package name is cgts-client but the import name is cgtsclient so
# can't use '%{name}'.
%files
%defattr(-,root,root,-)
%doc LICENSE
%{local_bindir}/*
%{local_etc_bash_completiond}/*
%{pythonroot}/cgtsclient
%{pythonroot}/cgtsclient-%{version}*.egg-info
%package wheels
Summary: %{name} wheels
%description wheels
Contains python wheels for %{name}
%files wheels
/wheels/*

View File

@ -1,5 +0,0 @@
-------------------------------------------------------------------
Wed Jun 26 20:18:01 UTC 2019 - Erich Cordoba <erich.cordoba.malibran@intel.com>
- Add initial commit for cgts-client

View File

@ -1 +0,0 @@
setBadness('script-without-shebang', 2)

View File

@ -1,65 +0,0 @@
Summary: System Client and CLI
Name: cgts-client
Version: 1.0.0
Release: 2
License: Apache-2.0
Group: System/Base
URL: https://www.starlingx.io
Source0: %{name}-%{version}.tar.gz
BuildRequires: python-setuptools
BuildRequires: python-pbr
BuildRequires: python2-pip
BuildRequires: fdupes
Requires: python-httplib2
Requires: python-prettytable
Requires: bash-completion
Requires: python-keystoneclient
Requires: python-dateutil
# Needed for python2 and python3 compatible
Requires: python-six
%description
System Client and command line interface
%define local_bindir /usr/bin/
%define local_etc_bash_completiond /etc/bash_completion.d/
%define pythonroot /usr/lib64/python2.7/site-packages
%define debug_package %{nil}
%prep
%setup -n %{name}-%{version}/%{name}
# Remove bundled egg-info
rm -rf *.egg-info
%build
export PBR_VERSION=%{version}
%{__python} setup.py build
%install
export PBR_VERSION=%{version}
%{__python} setup.py install --root=$RPM_BUILD_ROOT \
--install-lib=%{pythonroot} \
--prefix=/usr \
--install-data=/usr/share \
--single-version-externally-managed
install -d -m 755 %{buildroot}%{local_etc_bash_completiond}
install -p -D -m 664 tools/system.bash_completion %{buildroot}%{local_etc_bash_completiond}/system.bash_completion
%fdupes %{buildroot}%{pythonroot}/cgtsclient-1.0-py2.7.egg-info
%fdupes %{buildroot}%{pythonroot}/cgtsclient/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE
%{local_bindir}/*
%{local_etc_bash_completiond}/*
%{pythonroot}/cgtsclient
%{pythonroot}/cgtsclient-%{version}*.egg-info
%changelog

View File

@ -1,4 +0,0 @@
SRC_DIR="."
COPY_LIST_TO_TAR="LICENSE sysinv-agent sysinv-agent.conf"
EXCLUDE_LIST_FROM_TAR="centos sysinv-agent.bb"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,46 +0,0 @@
Summary: StarlingX Host Inventory Init Package
Name: sysinv-agent
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
BuildRequires: systemd-devel
%description
StarlingX Inventory Init Package
%define local_etc_initd /etc/init.d/
%define local_etc_pmond /etc/pmon.d/
%define debug_package %{nil}
%prep
%setup
%build
%install
# compute init scripts
install -d -m 755 %{buildroot}%{local_etc_initd}
install -p -D -m 755 sysinv-agent %{buildroot}%{local_etc_initd}/sysinv-agent
install -d -m 755 %{buildroot}%{local_etc_pmond}
install -p -D -m 644 sysinv-agent.conf %{buildroot}%{local_etc_pmond}/sysinv-agent.conf
install -p -D -m 644 sysinv-agent.service %{buildroot}%{_unitdir}/sysinv-agent.service
%post
/usr/bin/systemctl enable sysinv-agent.service >/dev/null 2>&1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE
%{local_etc_initd}/sysinv-agent
%{local_etc_pmond}/sysinv-agent.conf
%{_unitdir}/sysinv-agent.service

View File

@ -1,4 +0,0 @@
-------------------------------------------------------------------
Fri Jun 7 01:08:32 UTC 2019 - sgw@linux.intel.com
- 1.0 Initial Commit

View File

@ -1 +0,0 @@
setBadness('script-without-shebang', 2)

View File

@ -1,64 +0,0 @@
Summary: StarlingX Host Inventory Init Package
Name: sysinv-agent
Version: 1.0.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: Development/Tools/Other
URL: https://opendev.org/starlingx/config
Source0: %{name}-%{version}.tar.gz
BuildRequires: systemd-devel
Requires: python-django
Requires: python-oslo.messaging
Requires: python-retrying
BuildArch: noarch
%description
StarlingX Host Inventory Init Agent Package
%define local_etc_initd /etc/init.d/
%define local_etc_pmond /etc/pmon.d/
%define debug_package %{nil}
%prep
%setup
%build
%install
# compute init scripts
install -d -m 755 %{buildroot}%{local_etc_initd}
install -p -D -m 755 sysinv-agent %{buildroot}%{local_etc_initd}/sysinv-agent
install -d -m 755 %{buildroot}%{local_etc_pmond}
install -p -D -m 644 sysinv-agent.conf %{buildroot}%{local_etc_pmond}/sysinv-agent.conf
install -p -D -m 644 sysinv-agent.service %{buildroot}%{_unitdir}/sysinv-agent.service
%clean
rm -rf $RPM_BUILD_ROOT
%pre
%service_add_pre sysinv-agent.service sysinv-agent.target
%post
%service_add_post sysinv-agent.service sysinv-agent.target
%preun
%service_del_preun sysinv-agent.service sysinv-agent.target
%postun
%service_del_postun sysinv-agent.service sysinv-agent.target
%files
%defattr(-,root,root,-)
%doc LICENSE
%dir %{local_etc_pmond}
%{local_etc_initd}/sysinv-agent
%config %{local_etc_pmond}/sysinv-agent.conf
%{_unitdir}/sysinv-agent.service
%changelog

View File

@ -1,2 +0,0 @@
SRC_DIR="sysinv"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,174 +0,0 @@
Summary: System Inventory
Name: sysinv
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
BuildRequires: python-setuptools
BuildRequires: python-pbr
BuildRequires: python2-pip
BuildRequires: python2-wheel
BuildRequires: systemd
Requires: pyparted
Requires: python-boto3
Requires: python2-botocore >= 1.11.0
Requires: python-docker
Requires: python-eventlet
Requires: python-ipaddr
Requires: python-jsonpatch
Requires: python-keyring
Requires: python-keystoneauth1
Requires: python-keystonemiddleware
Requires: python-kubernetes
Requires: python-netaddr
Requires: python-paste
Requires: python-pathlib
Requires: python-pbr
Requires: python-pyudev
Requires: python-psutil
Requires: python-requests
Requires: python-retrying
Requires: python-sqlalchemy
Requires: python-stevedore
Requires: python-webob
Requires: python-webtest
Requires: python-wsme
Requires: python-six
Requires: python2-rfc3986
Requires: python2-oslo-i18n
Requires: python2-oslo-config
Requires: python2-oslo-concurrency
Requires: python2-oslo-db
Requires: python2-oslo-log
Requires: python2-oslo-policy
Requires: python2-oslo-rootwrap
Requires: python2-oslo-serialization
Requires: python2-oslo-service
Requires: python2-oslo-utils
Requires: python2-pecan
Requires: tsconfig
%description
System Inventory
%define local_bindir /usr/bin/
%define local_etc_goenabledd /etc/goenabled.d/
%define local_etc_sysinv /etc/sysinv/
%define local_etc_motdd /etc/motd.d/
%define pythonroot /usr/lib64/python2.7/site-packages
%define ocf_resourced /usr/lib/ocf/resource.d
%define stx_app_plugind /var/stx_app/plugins
%define debug_package %{nil}
%prep
%setup
# Remove bundled egg-info
rm -rf *.egg-info
%build
export PBR_VERSION=%{version}
%{__python} setup.py build
%py2_build_wheel
%install
export PBR_VERSION=%{version}
%{__python} setup.py install --root=%{buildroot} \
--install-lib=%{pythonroot} \
--prefix=/usr \
--install-data=/usr/share \
--single-version-externally-managed
mkdir -p $RPM_BUILD_ROOT/wheels
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
install -d -m 755 %{buildroot}%{local_etc_goenabledd}
install -p -D -m 755 etc/sysinv/sysinv_goenabled_check.sh %{buildroot}%{local_etc_goenabledd}/sysinv_goenabled_check.sh
install -d -m 755 %{buildroot}%{local_etc_sysinv}
install -p -D -m 755 etc/sysinv/policy.yaml %{buildroot}%{local_etc_sysinv}/policy.yaml
install -p -D -m 644 etc/sysinv/crushmap-storage-model.txt %{buildroot}%{local_etc_sysinv}/crushmap-storage-model.txt
install -p -D -m 644 etc/sysinv/crushmap-controller-model.txt %{buildroot}%{local_etc_sysinv}/crushmap-controller-model.txt
install -p -D -m 644 etc/sysinv/crushmap-aio-sx.txt %{buildroot}%{local_etc_sysinv}/crushmap-aio-sx.txt
install -d -m 755 %{buildroot}%{local_etc_motdd}
install -p -D -m 755 etc/sysinv/motd-system %{buildroot}%{local_etc_motdd}/10-system
install -d -m 755 %{buildroot}%{local_etc_sysinv}/upgrades
install -p -D -m 755 etc/sysinv/delete_load.sh %{buildroot}%{local_etc_sysinv}/upgrades/delete_load.sh
install -m 755 -p -D scripts/sysinv-api %{buildroot}/usr/lib/ocf/resource.d/platform/sysinv-api
install -m 755 -p -D scripts/sysinv-conductor %{buildroot}/usr/lib/ocf/resource.d/platform/sysinv-conductor
install -m 644 -p -D scripts/sysinv-api.service %{buildroot}%{_unitdir}/sysinv-api.service
install -m 644 -p -D scripts/sysinv-conductor.service %{buildroot}%{_unitdir}/sysinv-conductor.service
install -d -m 755 %{buildroot}%{stx_app_plugind}
#install -p -D -m 755 %{buildroot}/usr/bin/sysinv-api %{buildroot}/usr/bin/sysinv-api
#install -p -D -m 755 %{buildroot}/usr/bin/sysinv-agent %{buildroot}/usr/bin/sysinv-agent
#install -p -D -m 755 %{buildroot}/usr/bin/sysinv-conductor %{buildroot}/usr/bin/sysinv-conductor
install -d -m 755 %{buildroot}%{local_bindir}
install -p -D -m 755 scripts/partition_info.sh %{buildroot}%{local_bindir}/partition_info.sh
install -p -D -m 755 scripts/validate-platform-backup.sh %{buildroot}%{local_bindir}/validate-platform-backup.sh
install -p -D -m 755 scripts/manage-partitions %{buildroot}%{local_bindir}/manage-partitions
install -p -D -m 755 scripts/query_pci_id %{buildroot}%{local_bindir}/query_pci_id
install -p -D -m 700 scripts/kube-cert-rotation.sh %{buildroot}%{local_bindir}/kube-cert-rotation.sh
install -p -D -m 755 scripts/ceph_k8s_update_monitors.sh %{buildroot}%{local_bindir}/ceph_k8s_update_monitors.sh
%clean
echo "CLEAN CALLED"
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE
%{local_bindir}/*
%{pythonroot}/%{name}
%{pythonroot}/%{name}-%{version}*.egg-info
%{local_etc_goenabledd}/*
%{local_etc_sysinv}/*
%{local_etc_motdd}/*
%dir %{stx_app_plugind}
# SM OCF Start/Stop/Monitor Scripts
%{ocf_resourced}/platform/sysinv-api
%{ocf_resourced}/platform/sysinv-conductor
# systemctl service files
%{_unitdir}/sysinv-api.service
%{_unitdir}/sysinv-conductor.service
%{_bindir}/sysinv-agent
%{_bindir}/sysinv-api
%{_bindir}/sysinv-conductor
%{_bindir}/sysinv-dbsync
%{_bindir}/sysinv-dnsmasq-lease-update
%{_bindir}/sysinv-rootwrap
%{_bindir}/sysinv-upgrade
%{_bindir}/sysinv-puppet
%{_bindir}/sysinv-helm
%{_bindir}/sysinv-utils
%{_bindir}/cert-mon
%{_bindir}/cert-alarm
%package wheels
Summary: %{name} wheels
%description wheels
Contains python wheels for %{name}
%files wheels
/wheels/*

View File

@ -1,9 +0,0 @@
-------------------------------------------------------------------
Thu Jun 20 17:16:06 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com>
- Modify Requires: use python2-* for python packages
-------------------------------------------------------------------
Tue Jun 4 23:37:05 UTC 2019 - sgw@linux.intel.com
- Initial Commit

View File

@ -1 +0,0 @@
setBadness('script-without-shebang', 2)

View File

@ -1,193 +0,0 @@
Summary: System Inventory
Name: sysinv
Version: 1.0.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: Development/Tools/Other
URL: https://opendev.org/starlingx/update
Source0: %{name}-%{version}.tar.gz
BuildRequires: python-setuptools
BuildRequires: python-pbr
BuildRequires: python2-pip
BuildRequires: systemd
Requires: cgcs-patch
Requires: controllerconfig
Requires: platform-utils
Requires: python-boto3
Requires: python-cephclient
Requires: python-fmclient
Requires: python-parted
Requires: python2-coverage
Requires: python2-docker
Requires: python2-eventlet
Requires: python2-ipaddr
Requires: python2-jsonpatch
Requires: python2-keyring
Requires: python2-keystoneauth1
Requires: python2-keystonemiddleware
Requires: python2-kubernetes
Requires: python2-netaddr
Requires: python2-paste
Requires: python2-rfc3986
Requires: python2-pyudev
Requires: python2-pbr
Requires: python2-psutil
Requires: python2-requests
Requires: python2-retrying
Requires: python2-webob
Requires: python2-WebTest
Requires: python2-WSME
Requires: python2-six
Requires: python2-sqlalchemy
Requires: python2-stevedore
Requires: python2-oslo.i18n
Requires: python2-oslo.config
Requires: python2-oslo.concurrency
Requires: python2-oslo.db
Requires: python2-oslo.log
Requires: python2-oslo.policy
Requires: python2-oslo.rootwrap
Requires: python2-oslo.serialization
Requires: python2-oslo.service
Requires: python2-oslo.utils
Requires: python2-pecan
Requires: tsconfig
%description
StarlingX System Inventory
%define local_bindir /usr/bin/
%define local_etc_goenabledd /etc/goenabled.d/
%define local_etc_sysinv /etc/sysinv/
%define local_etc_motdd /etc/motd.d/
%define pythonroot /usr/lib64/python2.7/site-packages
%define ocf_resourced /usr/lib/ocf/resource.d
%define debug_package %{nil}
%prep
%setup -n %{name}-%{version}/%{name}
# Remove bundled egg-info
rm -rf *.egg-info
%build
export PBR_VERSION=%{version}
%{__python} setup.py build
%install
export PBR_VERSION=%{version}
%{__python} setup.py install --root=%{buildroot} \
--install-lib=%{pythonroot} \
--prefix=/usr \
--install-data=/usr/share \
--single-version-externally-managed
install -d -m 755 %{buildroot}%{local_etc_goenabledd}
install -p -D -m 755 etc/sysinv/sysinv_goenabled_check.sh %{buildroot}%{local_etc_goenabledd}/sysinv_goenabled_check.sh
install -d -m 755 %{buildroot}%{local_etc_sysinv}
install -p -D -m 644 etc/sysinv/policy.yaml %{buildroot}%{local_etc_sysinv}/policy.yaml
install -p -D -m 644 etc/sysinv/crushmap-storage-model.txt %{buildroot}%{local_etc_sysinv}/crushmap-storage-model.txt
install -p -D -m 644 etc/sysinv/crushmap-controller-model.txt %{buildroot}%{local_etc_sysinv}/crushmap-controller-model.txt
install -p -D -m 644 etc/sysinv/crushmap-aio-sx.txt %{buildroot}%{local_etc_sysinv}/crushmap-aio-sx.txt
install -d -m 755 %{buildroot}%{local_etc_motdd}
install -p -D -m 755 etc/sysinv/motd-system %{buildroot}%{local_etc_motdd}/10-system
install -d -m 755 %{buildroot}%{local_etc_sysinv}/upgrades
install -p -D -m 755 etc/sysinv/delete_load.sh %{buildroot}%{local_etc_sysinv}/upgrades/delete_load.sh
install -m 755 -p -D scripts/sysinv-api %{buildroot}/usr/lib/ocf/resource.d/platform/sysinv-api
install -m 755 -p -D scripts/sysinv-conductor %{buildroot}/usr/lib/ocf/resource.d/platform/sysinv-conductor
install -m 644 -p -D scripts/sysinv-api.service %{buildroot}%{_unitdir}/sysinv-api.service
install -m 644 -p -D scripts/sysinv-conductor.service %{buildroot}%{_unitdir}/sysinv-conductor.service
#install -p -D -m 755 %%{buildroot}/usr/bin/sysinv-api %%{buildroot}/usr/bin/sysinv-api
#install -p -D -m 755 %%{buildroot}/usr/bin/sysinv-agent %%{buildroot}/usr/bin/sysinv-agent
#install -p -D -m 755 %%{buildroot}/usr/bin/sysinv-conductor %%{buildroot}/usr/bin/sysinv-conductor
install -d -m 755 %{buildroot}%{local_bindir}
install -p -D -m 755 scripts/partition_info.sh %{buildroot}%{local_bindir}/partition_info.sh
install -p -D -m 755 scripts/manage-partitions %{buildroot}%{local_bindir}/manage-partitions
install -p -D -m 755 scripts/query_pci_id %{buildroot}%{local_bindir}/query_pci_id
# Add once she-bang is fixed
#chmod 755 %%{buildroot}%%{pythonroot}/sysinv/cmd/agent.py
#chmod 755 %%{buildroot}%%{pythonroot}/sysinv/cmd/conductor.py
#chmod 755 %%{buildroot}%%{pythonroot}/sysinv/cmd/dbsync.py
#chmod 755 %%{buildroot}%%{pythonroot}/sysinv/cmd/dnsmasq_lease_update.py
#chmod 755 %%{buildroot}%%{pythonroot}/sysinv/cmd/helm.py
#chmod 755 %%{buildroot}%%{pythonroot}/sysinv/cmd/puppet.py
#chmod 755 %%{buildroot}%%{pythonroot}/sysinv/cmd/sysinv_deploy_helper.py
#chmod 755 %%{buildroot}%%{pythonroot}/sysinv/cmd/upgrade.py
#chmod 755 %%{buildroot}%%{pythonroot}/sysinv/openstack/common/rootwrap/cmd.py
#chmod 755 %%{buildroot}%%{pythonroot}/sysinv/openstack/common/rpc/zmq_receiver.py
%clean
echo "CLEAN CALLED"
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE
%{local_bindir}/*
%{pythonroot}/%{name}
%{pythonroot}/%{name}-%{version}*.egg-info
%dir %{local_etc_goenabledd}
%{local_etc_goenabledd}/*
%dir %{local_etc_sysinv}
%config %{local_etc_sysinv}/*
%dir %{local_etc_motdd}
%{local_etc_motdd}/*
# SM OCF Start/Stop/Monitor Scripts
%dir /usr/lib/ocf
%dir %{ocf_resourced}
%dir %{ocf_resourced}/platform
%{ocf_resourced}/platform/sysinv-api
%{ocf_resourced}/platform/sysinv-conductor
# systemctl service files
%{_unitdir}/sysinv-api.service
%{_unitdir}/sysinv-conductor.service
%{_bindir}/sysinv-agent
%{_bindir}/sysinv-api
%{_bindir}/sysinv-conductor
%{_bindir}/sysinv-dbsync
%{_bindir}/sysinv-dnsmasq-lease-update
%{_bindir}/sysinv-rootwrap
%{_bindir}/sysinv-upgrade
%{_bindir}/sysinv-puppet
%{_bindir}/sysinv-helm
%{_bindir}/sysinv-utils
%pre
%service_add_pre sysinv-api.service sysinv-api.target
%service_add_pre sysinv-conductor.service sysinv-conductor.target
%post
%service_add_post sysinv-api.service sysinv-api.target
%service_add_post sysinv-conductor.service sysinv-conductor.target
%preun
%service_del_preun sysinv-api.service sysinv-api.target
%service_del_preun sysinv-conductor.service sysinv-conductor.target
%postun
%service_del_postun sysinv-api.service sysinv-api.target
%service_del_postun sysinv-conductor.service sysinv-conductor.target
%changelog

View File

@ -1,2 +0,0 @@
SRC_DIR="tsconfig"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,62 +0,0 @@
Summary: StarlingX Config Info
Name: tsconfig
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
%define debug_package %{nil}
BuildRequires: python-setuptools
BuildRequires: python2-pip
BuildRequires: python2-wheel
%description
StarlingX Config Info
%define local_dir /usr/
%define local_bindir %{local_dir}/bin/
%define pythonroot /usr/lib64/python2.7/site-packages
%prep
%setup
%build
%{__python} setup.py build
%py2_build_wheel
%install
%{__python} setup.py install --root=$RPM_BUILD_ROOT \
--install-lib=%{pythonroot} \
--prefix=/usr \
--install-data=/usr/share \
--single-version-externally-managed
mkdir -p $RPM_BUILD_ROOT/wheels
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
install -d -m 755 %{buildroot}%{local_bindir}
install -p -D -m 700 scripts/tsconfig %{buildroot}%{local_bindir}/tsconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE
%{local_bindir}/*
%dir %{pythonroot}/%{name}
%{pythonroot}/%{name}/*
%dir %{pythonroot}/%{name}-%{version}.0-py2.7.egg-info
%{pythonroot}/%{name}-%{version}.0-py2.7.egg-info/*
%package wheels
Summary: %{name} wheels
%description wheels
Contains python wheels for %{name}
%files wheels
/wheels/*

View File

@ -1,4 +0,0 @@
-------------------------------------------------------------------
Mon Jun 3 14:29:02 UTC 2019 - sgw@bigsur.com
- Initial Commit

View File

@ -1 +0,0 @@
setBadness('script-without-shebang', 2)

View File

@ -1,50 +0,0 @@
Summary: StarlingX Config Info
Name: tsconfig
Version: 1.0.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: Development/Languages/Python
URL: https://opendev.org/starlingx/update
Source0: %{name}-%{version}.tar.gz
%define debug_package %{nil}
BuildRequires: python-setuptools
BuildRequires: python2-pip
%description
StarlingX Project Config Info
%define local_dir /usr/
%define local_bindir %{local_dir}/bin/
%define pythonroot /usr/lib64/python2.7/site-packages
%prep
%setup -n %{name}-%{version}/%{name}
%build
%{__python} setup.py build
%install
%{__python} setup.py install --root=$RPM_BUILD_ROOT \
--install-lib=%{pythonroot} \
--prefix=/usr \
--install-data=/usr/share \
--single-version-externally-managed
install -d -m 755 %{buildroot}%{local_bindir}
install -p -D -m 700 scripts/tsconfig %{buildroot}%{local_bindir}/tsconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE
%{local_bindir}/*
%dir %{pythonroot}/%{name}
%{pythonroot}/%{name}/*
%dir %{pythonroot}/%{name}-%{version}-py2.7.egg-info
%{pythonroot}/%{name}-%{version}-py2.7.egg-info/*
%changelog

View File

@ -1,2 +0,0 @@
SRC_DIR="workerconfig"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,61 +0,0 @@
Summary: workerconfig
Name: workerconfig
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
%define debug_package %{nil}
Requires: systemd
%description
Initial worker node configuration
%package -n workerconfig-standalone
Summary: workerconfig
Group: base
%description -n workerconfig-standalone
Initial worker node configuration
%define initddir /etc/init.d/
%define goenableddir /etc/goenabled.d/
%define systemddir /etc/systemd/system/
%prep
%setup
%build
%install
make install INITDDIR=%{buildroot}%{initddir} GOENABLEDDIR=%{buildroot}%{goenableddir} SYSTEMDDIR=%{buildroot}%{systemddir}
%post -n workerconfig-standalone
if [ ! -e $D%{systemddir}/workerconfig.service ]; then
cp $D%{systemddir}/config/workerconfig-standalone.service $D%{systemddir}/workerconfig.service
else
cmp -s $D%{systemddir}/config/workerconfig-standalone.service $D%{systemddir}/workerconfig.service
if [ $? -ne 0 ]; then
rm -f $D%{systemddir}/workerconfig.service
cp $D%{systemddir}/config/workerconfig-standalone.service $D%{systemddir}/workerconfig.service
fi
fi
systemctl enable workerconfig.service
%clean
%files
%defattr(-,root,root,-)
%doc LICENSE
%{initddir}/*
%files -n workerconfig-standalone
%defattr(-,root,root,-)
%dir %{systemddir}/config
%{systemddir}/config/workerconfig-standalone.service
%{goenableddir}/*

View File

@ -1,9 +0,0 @@
-------------------------------------------------------------------
Wed Jun 12 08:03:51 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com>
- Add BuildArch and %config macro to specfile
-------------------------------------------------------------------
Mon Jun 10 12:10:39 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com>
- Initial Commit

View File

@ -1 +0,0 @@
setBadness('script-without-shebang', 2)

View File

@ -1,59 +0,0 @@
Summary: Worker config package
Name: workerconfig
Version: 1.0.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: System/Packages
URL: https://opendev.org/starlingx/config/
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
%define debug_package %{nil}
BuildRequires: systemd
Requires: pkgconfig(systemd)
%description
Initial worker node configuration package for StarlingX project.
%package -n workerconfig-standalone
Summary: The worker config standalone package
Group: System/Packages
%description -n workerconfig-standalone
Initial worker node configuration for StarlingX project.
%define initddir %{_sysconfdir}/init.d/
%define goenableddir %{_sysconfdir}/goenabled.d/
%define systemddir %{_sysconfdir}/systemd/system/
%prep
%setup -n %{name}-%{version}/%{name}
%build
%install
make install INITDDIR=%{buildroot}%{initddir} GOENABLEDDIR=%{buildroot}%{goenableddir} SYSTEMDDIR=%{buildroot}%{systemddir}
%post -n workerconfig-standalone
cp $D%{systemddir}/config/workerconfig-standalone.service $D%{systemddir}/workerconfig.service
systemctl enable workerconfig.service
%clean
%files
%defattr(-,root,root,-)
%doc LICENSE
%{initddir}/*
%files -n workerconfig-standalone
%defattr(-,root,root,-)
%dir %{systemddir}/config
%{systemddir}/config/workerconfig-standalone.service
%{goenableddir}/*
%dir %{_sysconfdir}/goenabled.d
%dir %{_sysconfdir}/systemd
%dir %{_sysconfdir}/systemd/system
%config %{systemddir}/config/workerconfig-standalone.service
%changelog