Merge "Remove CentOS/OpenSUSE build support"

This commit is contained in:
Zuul 2024-04-29 13:17:17 +00:00 committed by Gerrit Code Review
commit 0d22cc457b
53 changed files with 0 additions and 1637 deletions

View File

@ -1 +0,0 @@
flock

View File

@ -1,2 +0,0 @@
ceph/ceph-manager
utilities/pci-irq-affinity-agent

View File

@ -1,2 +0,0 @@
python-cephclient-wheels
pci-irq-affinity-agent-wheels

View File

@ -1,3 +0,0 @@
# build-info
build-info

View File

@ -1,3 +0,0 @@
# build-info
build-info

View File

@ -1,37 +0,0 @@
# worker-utils
worker-utils
# python-cephclient
python-cephclient
# nfscheck
nfscheck
# logmgmt
logmgmt
# tpm2-openssl-engine
tpm2-openssl-engine
# stx-ssl
stx-ssl
# collector
collector
# build-info
build-info
# namespace-utils
namespace-utils
# platform-util
platform-util
platform-util-controller
platform-util-noncontroller
# stx-extensions
stx-extensions
# update-motd
update-motd

View File

@ -1,15 +0,0 @@
utilities/worker-utils
ceph/ceph-manager
ceph/python-cephclient
utilities/nfscheck
utilities/logmgmt
security/tpm2-openssl-engine
security/stx-ssl
tools/collector
tools/engtools/hostdata-collectors
utilities/build-info
utilities/namespace-utils
utilities/pci-irq-affinity-agent
utilities/platform-util
utilities/stx-extensions
utilities/update-motd

View File

@ -1,4 +0,0 @@
ceph/ceph-manager
tools/base-images/stx-centos-dev
tools/vran-tools/stx-centos-tools-dev
utilities/pci-irq-affinity-agent

View File

@ -1,2 +0,0 @@
python-cephclient-wheels
pci-irq-affinity-agent-wheels

View File

@ -1 +0,0 @@
python-cephclient-v0.1.0.5.tar.gz#python-cephclient-0.1.0.5#https://github.com/dmsimard/python-cephclient/archive/v0.1.0.5.tar.gz#http##

View File

@ -1,3 +0,0 @@
SRC_DIR="ceph-manager"
COPY_LIST_TO_TAR="files scripts"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,84 +0,0 @@
Summary: Handle Ceph API calls and provide status updates via alarms
Name: ceph-manager
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
BuildRequires: systemd-units
BuildRequires: systemd-devel
Requires: sysinv
%description
Handle Ceph API calls and provide status updates via alarms.
Handle sysinv RPC calls for long running Ceph API operations:
- cache tiering enable
- cache tiering disable
%define local_bindir /usr/bin/
%define local_etc_initd /etc/init.d/
%define local_etc_logrotated /etc/logrotate.d/
%define pythonroot /usr/lib64/python2.7/site-packages
%define debug_package %{nil}
%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_etc_initd}
install -p -D -m 700 scripts/init.d/ceph-manager %{buildroot}%{local_etc_initd}/ceph-manager
install -d -m 755 %{buildroot}%{local_bindir}
install -p -D -m 700 scripts/bin/ceph-manager %{buildroot}%{local_bindir}/ceph-manager
install -d -m 755 %{buildroot}%{local_etc_logrotated}
install -p -D -m 644 files/ceph-manager.logrotate %{buildroot}%{local_etc_logrotated}/ceph-manager.logrotate
install -d -m 755 %{buildroot}%{_unitdir}
install -m 644 -p -D files/%{name}.service %{buildroot}%{_unitdir}/%{name}.service
%clean
rm -rf $RPM_BUILD_ROOT
# Note: The package name is ceph-manager but the import name is ceph_manager so
# can't use '%{name}'.
%files
%defattr(-,root,root,-)
%doc LICENSE
%{local_bindir}/*
%{local_etc_initd}/*
%{_unitdir}/%{name}.service
%dir %{local_etc_logrotated}
%{local_etc_logrotated}/*
%dir %{pythonroot}/ceph_manager
%{pythonroot}/ceph_manager/*
%dir %{pythonroot}/ceph_manager-%{version}.0-py2.7.egg-info
%{pythonroot}/ceph_manager-%{version}.0-py2.7.egg-info/*
%package wheels
Summary: %{name} wheels
%description wheels
Contains python wheels for %{name}
%files wheels
/wheels/*

View File

@ -1,29 +0,0 @@
ARG BASE
FROM ${BASE}
ARG STX_REPO_FILE=/etc/yum.repos.d/stx.repo
RUN set -ex ; \
yum erase -y \
librados2 librbd1 ; \
yum install --disablerepo=* \
$(grep '^name=stx' ${STX_REPO_FILE} | awk -F '=' '{printf "--enablerepo=" $2 " "}') \
-y \
--setopt=skip_missing_names_on_install=False \
ceph-manager \
python-cephclient \
python-oslo-messaging \
python2-eventlet \
fm-api \
fm-rest-api \
python-fmclient \
fm-common \
librados2 \
librbd1 \
ceph-common \
ceph-mon \
ceph-osd \
ceph-mgr
CMD ["bash"]

View File

@ -1,2 +0,0 @@
BUILDER=docker
LABEL=stx-ceph-manager

View File

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

View File

@ -1,65 +0,0 @@
Summary: Handle Ceph API calls and provide status updates via alarms
Name: python-cephclient
Version: 13.2.2.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: https://github.com/openstack/stx-integ/tree/master/ceph/python-cephclient/python-cephclient'
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python
BuildRequires: python2-pip
BuildRequires: python2-wheel
Requires: python
Requires: python-ipaddress
Requires: python2-six
Requires: python2-requests
Provides: python-cephclient
%description
A client library in Python for Ceph Mgr RESTful plugin providing REST API
access to the cluster over an SSL-secured connection. Python API is compatible
with the old Python Ceph client at
https://github.com/dmsimard/python-cephclient that no longer works in Ceph
mimic because Ceph REST API component was removed.
%define debug_package %{nil}
%prep
%autosetup -p 1 -n %{name}-%{version}
rm -rf .pytest_cache
rm -rf python_cephclient.egg-info
rm -f requirements.txt
%build
%{__python} setup.py build
%py2_build_wheel
%install
%{__python2} setup.py install --skip-build --root %{buildroot}
mkdir -p $RPM_BUILD_ROOT/wheels
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%license LICENSE
%{python2_sitelib}/cephclient
%{python2_sitelib}/*.egg-info
%package wheels
Summary: %{name} wheels
%description wheels
Contains python wheels for %{name}
%files wheels
/wheels/*

View File

@ -1,2 +0,0 @@
COPY_LIST="$PKG_BASE/files/* $PKG_BASE/LICENSE"
TIS_PATCH_VER=PKG_GITREVCOUNT+8

View File

@ -1,34 +0,0 @@
Summary: stx-ssl version 1.0.0-r2
Name: stx-ssl
Version: 1.0.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: LICENSE
Source2: tpmdevice-setup
%description
Wind River Security
%install
rm -rf $RPM_BUILD_ROOT
RPM_BUILD_DIR_PKG="%{name}-%{version}"
mkdir -p $RPM_BUILD_DIR_PKG
PEMFILE="$RPM_BUILD_DIR_PKG/self-signed-server-cert.pem"
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/ssl/private
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
install -m 700 %{SOURCE2} $RPM_BUILD_ROOT/%{_sbindir}/tpmdevice-setup
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}-%{version}
install -m 644 %{SOURCE0} $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}-%{version}
%files
%defattr(-,root,root,-)
%{_sysconfdir}/*
%{_sbindir}/*
%{_defaultdocdir}/%{name}-%{version}

View File

@ -1,2 +0,0 @@
SRC_DIR="tpm2-openssl-engine"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,39 +0,0 @@
Name: tpm2-openssl-engine
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
Summary: TPM 2.0 Openssl Engine
License: openssl
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
BuildRequires: openssl-devel
BuildRequires: openssl
BuildRequires: tss2-devel
Requires: tss2
%description
TPM 2.0 OpenSSL engine. Leveraged by applications
to provide secure TLS Decryption and Signing capabilities
%prep
%setup -q
%build
make %{?_smp_mflags}
%install
make install ENGINEDIR=%{buildroot}/%{_libdir}/openssl/engines UTILDIR=%{buildroot}/usr/sbin
%files
%license LICENSE
%defattr(-,root,root,-)
%{_libdir}/openssl/engines/libtpm2.so
/usr/sbin/create_tpm2_key

View File

@ -1,36 +0,0 @@
ARG BASE
FROM ${BASE}
COPY stx-dev.repo /etc/yum.repos.d/stx.repo
RUN yum-config-manager --disable stx-local-build stx-mirror-distro \
&& yum -y install yum-plugin-priorities \
&& yum-config-manager --enableplugin=priorities
RUN set -ex \
&& yum upgrade -y \
&& yum install -y \
sudo \
bash \
python3-yaml \
git \
curl \
unzip \
wget \
make \
autogen \
automake \
autoconf-archive \
bc \
bison \
isomd5sum \
gettext \
mkisofs \
gcc \
gcc-c++ \
kernel-tools \
kernel-devel \
libcap-devel \
libuuid-devel \
&& yum clean all \
&& rm -rf \
/var/log/* \
/tmp/* \
/var/tmp/*

View File

@ -1,63 +0,0 @@
[stx-compiler-outputs-installer]
name=stx-compiler-outputs-installer
baseurl=https://mirror.starlingx.windriver.com/mirror/starlingx/master/centos/compiler/latest_build/outputs/RPMS/installer/
enabled=1
gpgcheck=0
metadata_expire=0
priority=1
[stx-compiler-outputs-rt]
name=stx-compiler-outputs-rt
baseurl=https://mirror.starlingx.windriver.com/mirror/starlingx/master/centos/compiler/latest_build/outputs/RPMS/rt/
enabled=1
gpgcheck=0
metadata_expire=0
priority=1
[stx-compiler-outputs-std]
name=stx-compiler-outputs-std
baseurl=https://mirror.starlingx.windriver.com/mirror/starlingx/master/centos/compiler/latest_build/outputs/RPMS/std/
enabled=1
gpgcheck=0
metadata_expire=0
priority=1
[stx-distro-outputs-installer]
name=stx-distro-outputs-installer
baseurl=https://mirror.starlingx.windriver.com/mirror/starlingx/master/centos/distro/latest_build/outputs/RPMS/installer/
enabled=1
gpgcheck=0
metadata_expire=0
priority=1
[stx-distro-outputs-rt]
name=stx-distro-outputs-rt
baseurl=https://mirror.starlingx.windriver.com/mirror/starlingx/master/centos/distro/latest_build/outputs/RPMS/rt/
enabled=1
gpgcheck=0
metadata_expire=0
priority=1
[stx-distro-outputs-std]
name=stx-distro-outputs-std
baseurl=https://mirror.starlingx.windriver.com/mirror/starlingx/master/centos/distro/latest_build/outputs/RPMS/std/
enabled=1
gpgcheck=0
metadata_expire=0
priority=1
[stx-flock-outputs-rt]
name=stx-flock-outputs-rt
baseurl=https://mirror.starlingx.windriver.com/mirror/starlingx/master/centos/flock/latest_build/outputs/RPMS/rt/
enabled=1
gpgcheck=0
metadata_expire=0
priority=1
[stx-flock-outputs-std]
name=stx-flock-outputs-std
baseurl=https://mirror.starlingx.windriver.com/mirror/starlingx/master/centos/flock/latest_build/outputs/RPMS/std/
enabled=1
gpgcheck=0
metadata_expire=0
priority=1

View File

@ -1,2 +0,0 @@
BUILDER=docker
LABEL=stx-centos-dev

View File

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

View File

@ -1,75 +0,0 @@
Summary: StarlingX Platform Data Collection Scripts Package
Name: collector
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
%description
This packages scripts that implement data and log collection that field
support can execute to gather current state and runtime history for off
platform analysis and debug.
%prep
%setup
%install
mkdir -p %{buildroot}
install -d 755 -d %{buildroot}%{_sysconfdir}/collect.d
install -d 755 -d %{buildroot}%{_sysconfdir}/collect
install -d 755 -d %{buildroot}/usr/local/sbin
install -d 755 -d %{buildroot}/usr/local/bin
install -d 755 -d %{buildroot}%{_sbindir}
install -m 755 collect %{buildroot}/usr/local/sbin/collect
install -m 755 collect_host %{buildroot}/usr/local/sbin/collect_host
install -m 755 collect_date %{buildroot}/usr/local/sbin/collect_date
install -m 755 collect_utils %{buildroot}/usr/local/sbin/collect_utils
install -m 755 collect_parms %{buildroot}/usr/local/sbin/collect_parms
install -m 755 collect_mask_passwords %{buildroot}/usr/local/sbin/collect_mask_passwords
install -m 755 expect_done %{buildroot}/usr/local/sbin/expect_done
install -m 755 mariadb-cli.sh %{buildroot}/usr/local/sbin/mariadb-cli
install -m 755 collect_sysinv.sh %{buildroot}%{_sysconfdir}/collect.d/collect_sysinv
install -m 755 collect_psqldb.sh %{buildroot}%{_sysconfdir}/collect.d/collect_psqldb
install -m 755 collect_mariadb.sh %{buildroot}%{_sysconfdir}/collect.d/collect_mariadb
install -m 755 collect_openstack.sh %{buildroot}%{_sysconfdir}/collect.d/collect_openstack
install -m 755 collect_networking.sh %{buildroot}%{_sysconfdir}/collect.d/collect_networking
install -m 755 collect_ceph.sh %{buildroot}%{_sysconfdir}/collect.d/collect_ceph
install -m 755 collect_sm.sh %{buildroot}%{_sysconfdir}/collect.d/collect_sm
install -m 755 collect_tc.sh %{buildroot}%{_sysconfdir}/collect.d/collect_tc
install -m 755 collect_nfv_vim.sh %{buildroot}%{_sysconfdir}/collect.d/collect_nfv_vim
install -m 755 collect_ovs.sh %{buildroot}%{_sysconfdir}/collect.d/collect_ovs
install -m 755 collect_patching.sh %{buildroot}%{_sysconfdir}/collect.d/collect_patching
install -m 755 collect_coredump.sh %{buildroot}%{_sysconfdir}/collect.d/collect_coredump
install -m 755 collect_crash.sh %{buildroot}%{_sysconfdir}/collect.d/collect_crash
install -m 755 collect_ima.sh %{buildroot}%{_sysconfdir}/collect.d/collect_ima
install -m 755 collect_fm.sh %{buildroot}%{_sysconfdir}/collect.d/collect_fm
install -m 755 collect_containerization.sh %{buildroot}%{_sysconfdir}/collect.d/collect_containerization
install -m 755 collect_dc.sh %{buildroot}%{_sysconfdir}/collect.d/collect_dc
install -m 755 collect_disk.sh %{buildroot}%{_sysconfdir}/collect.d/collect_disk
install -m 755 collect_interfaces.sh %{buildroot}%{_sysconfdir}/collect.d/collect_interfaces
install -m 755 collect_sysadmin.sh %{buildroot}%{_sysconfdir}/collect.d/collect_sysadmin
install -m 755 etc.exclude %{buildroot}%{_sysconfdir}/collect/etc.exclude
install -m 755 run.exclude %{buildroot}%{_sysconfdir}/collect/run.exclude
install -m 755 varlog.exclude %{buildroot}%{_sysconfdir}/collect/varlog.exclude
ln -sf /usr/local/sbin/collect %{buildroot}/usr/local/bin/collect
ln -sf /usr/local/sbin/collect %{buildroot}%{_sbindir}/collect
%clean
rm -rf %{buildroot}
%files
%license LICENSE
%defattr(-,root,root,-)
%{_sysconfdir}/collect/*
%{_sysconfdir}/collect.d/*
/usr/local/sbin/*
/usr/local/bin/collect
%{_sbindir}/collect

View File

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

View File

@ -1,103 +0,0 @@
Summary: Host performance data collection tools package
Name: engtools
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: Tools
Packager: Wind River <info@windriver.com>
URL: http://www.windriver.com/
BuildArch: noarch
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: systemd
Requires: iperf3
Requires: python36-six
Requires: python36-psutil
%description
This package contains data collection tools to monitor host performance.
Tools are general purpose engineering and debugging related. Includes
overall memory, cpu occupancy, per-task cpu, per-task scheduling, per-task
io.
# Don't try fancy stuff like debuginfo, which is useless on binary-only
# packages. Don't strip binary too
# Be sure buildpolicy set to do nothing
%define __spec_install_post %{nil}
%define debug_package %{nil}
%define __os_install_post %{_dbpath}/brp-compress
%define _binaries_in_noarch_packages_terminate_build 0
%define local_dir /usr/local
%define local_bindir %{local_dir}/bin/
%define local_initdir /etc/init.d/
%define local_confdir /etc/engtools/
%define local_systemddir /etc/systemd/system/
%prep
%setup -q
%build
# Empty section.
%install
mkdir -p %{buildroot}
install -d 755 %{buildroot}%{local_bindir}
# Installing additional tools, memtop, occtop and schedtop are already in the image
install -m 755 buddyinfo.py %{buildroot}%{local_bindir}
install -m 755 chewmem %{buildroot}%{local_bindir}
# Installing data collection scripts
install -m 755 ceph.sh %{buildroot}%{local_bindir}
install -m 755 cleanup-engtools.sh %{buildroot}%{local_bindir}
install -m 755 collect-engtools.sh %{buildroot}%{local_bindir}
install -m 755 diskstats.sh %{buildroot}%{local_bindir}
install -m 755 engtools_util.sh %{buildroot}%{local_bindir}
install -m 755 filestats.sh %{buildroot}%{local_bindir}
install -m 755 iostat.sh %{buildroot}%{local_bindir}
install -m 755 linux_benchmark.sh %{buildroot}%{local_bindir}
install -m 755 memstats.sh %{buildroot}%{local_bindir}
install -m 755 netstats.sh %{buildroot}%{local_bindir}
install -m 755 postgres.sh %{buildroot}%{local_bindir}
install -m 755 rabbitmq.sh %{buildroot}%{local_bindir}
install -m 755 remote/rbzip2-engtools.sh %{buildroot}%{local_bindir}
install -m 755 remote/rstart-engtools.sh %{buildroot}%{local_bindir}
install -m 755 remote/rstop-engtools.sh %{buildroot}%{local_bindir}
install -m 755 remote/rsync-engtools-data.sh %{buildroot}%{local_bindir}
install -m 755 slab.sh %{buildroot}%{local_bindir}
install -m 755 ticker.sh %{buildroot}%{local_bindir}
install -m 755 top.sh %{buildroot}%{local_bindir}
install -m 755 vswitch.sh %{buildroot}%{local_bindir}
install -m 755 live_stream.py %{buildroot}%{local_bindir}
# Installing conf file
install -d 755 %{buildroot}%{local_confdir}
install -m 644 -p -D cfg/engtools.conf %{buildroot}%{local_confdir}
# Installing init script
install -d 755 %{buildroot}%{local_initdir}
install -m 755 init.d/collect-engtools.sh %{buildroot}%{local_initdir}
# Installing service file
install -d 755 %{buildroot}%{local_systemddir}
install -m 644 -p -D collect-engtools.service %{buildroot}%{local_systemddir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%license LICENSE
%defattr(-,root,root,-)
%{local_bindir}/*
%{local_confdir}/*
%{local_initdir}/*
%{local_systemddir}/*
%post
/bin/systemctl enable collect-engtools.service > /dev/null 2>&1
/bin/systemctl start collect-engtools.service > /dev/null 2>&1
%preun
#/bin/systemctl --no-reload disable collect-engtools.sh.service > /dev/null 2>&1
#/bin/systemctl stop collect-engtools.sh.service > /dev/null 2>&1
%systemd_preun collect-engtools.service
%postun
%systemd_postun_with_restart collect-engtools.service

View File

@ -1,63 +0,0 @@
ARG BASE
FROM ${BASE}
COPY stx-dev.repo /etc/yum.repos.d/stx.repo
RUN yum-config-manager --disable stx-local-build stx-mirror-distro \
&& yum -y install yum-plugin-priorities \
&& yum-config-manager --enableplugin=priorities
RUN set -ex \
&& yum upgrade -y \
&& yum install -y \
sudo \
bash \
python3-yaml \
git \
curl \
unzip \
wget \
make \
autogen \
automake \
autoconf-archive \
bc \
bison \
isomd5sum \
gettext \
mkisofs \
gcc \
gcc-c++ \
kernel-tools \
kernel-devel \
libcap-devel \
libuuid-devel \
net-tools \
iproute \
ethtool \
tcpdump \
&& yum install -y \
pciutils \
which \
hwloc-libs \
sysvinit-tools \
epel-release \
dmidecode \
acpica-tools \
opae.admin \
opae-devel \
opae-libs \
opae-tools \
opae-tools-extra \
&& yum install -y python-pip \
&& pip install intelhex
# Install PCM
RUN TEMP_DIR=$(mktemp -d) \
&& pushd $TEMP_DIR \
&& wget https://download.opensuse.org/repositories/home:/opcm/CentOS_7/x86_64/pcm-0-395.1.x86_64.rpm \
&& yum install -y ./*.rpm \
&& popd \
&& yum clean all \
&& rm -rf \
/var/log/* \
/tmp/* \
/var/tmp/* \
/var/cache/yum

View File

@ -1,79 +0,0 @@
[stx-compiler-outputs-installer]
name=stx-compiler-outputs-installer
baseurl=https://mirror.starlingx.windriver.com/mirror/starlingx/master/centos/compiler/latest_build/outputs/RPMS/installer/
enabled=1
gpgcheck=0
metadata_expire=0
priority=1
[stx-compiler-outputs-rt]
name=stx-compiler-outputs-rt
baseurl=https://mirror.starlingx.windriver.com/mirror/starlingx/master/centos/compiler/latest_build/outputs/RPMS/rt/
enabled=1
gpgcheck=0
metadata_expire=0
priority=1
[stx-compiler-outputs-std]
name=stx-compiler-outputs-std
baseurl=https://mirror.starlingx.windriver.com/mirror/starlingx/master/centos/compiler/latest_build/outputs/RPMS/std/
enabled=1
gpgcheck=0
metadata_expire=0
priority=1
[stx-distro-outputs-installer]
name=stx-distro-outputs-installer
baseurl=https://mirror.starlingx.windriver.com/mirror/starlingx/master/centos/distro/latest_build/outputs/RPMS/installer/
enabled=1
gpgcheck=0
metadata_expire=0
priority=1
[stx-distro-outputs-rt]
name=stx-distro-outputs-rt
baseurl=https://mirror.starlingx.windriver.com/mirror/starlingx/master/centos/distro/latest_build/outputs/RPMS/rt/
enabled=1
gpgcheck=0
metadata_expire=0
priority=1
[stx-distro-outputs-std]
name=stx-distro-outputs-std
baseurl=https://mirror.starlingx.windriver.com/mirror/starlingx/master/centos/distro/latest_build/outputs/RPMS/std/
enabled=1
gpgcheck=0
metadata_expire=0
priority=1
[stx-distro-inputs]
name=stx-distro-inputs
baseurl=https://mirror.starlingx.windriver.com/mirror/starlingx/master/centos/distro/latest_build/inputs/RPMS
enabled=1
gpgcheck=0
metadata_expire=0
priority=1
[stx-flock-outputs-rt]
name=stx-flock-outputs-rt
baseurl=https://mirror.starlingx.windriver.com/mirror/starlingx/master/centos/flock/latest_build/outputs/RPMS/rt/
enabled=1
gpgcheck=0
metadata_expire=0
priority=1
[stx-flock-outputs-std]
name=stx-flock-outputs-std
baseurl=https://mirror.starlingx.windriver.com/mirror/starlingx/master/centos/flock/latest_build/outputs/RPMS/std/
enabled=1
gpgcheck=0
metadata_expire=0
priority=1
[stx-flock-inputs]
name=stx-flock-inputs
baseurl=https://mirror.starlingx.windriver.com/mirror/starlingx/master/centos/flock/latest_build/inputs/RPMS
enabled=1
gpgcheck=0
metadata_expire=0
priority=1

View File

@ -1,2 +0,0 @@
BUILDER=docker
LABEL=stx-centos-tools-dev

View File

@ -1,49 +0,0 @@
Summary: build-info version 1.0-r3
Name: build-info
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
Source1: LICENSE
%description
Build Info
%define local_etcdir /etc
%define local_incdir /usr/include
%define debug_package %{nil}
%package -n build-info-dev
Summary: build-info version 1.0-r3 - Development files
Group: devel
%description -n build-info-dev
Build Info This package contains symbolic links, header files, and related items necessary for software development.
%files
%license ../LICENSE
%defattr(-,root,root,-)
%{local_etcdir}/*
%prep
%setup
%build
%install
install -d -m 755 %{buildroot}%{local_etcdir}
install -m 644 build.info %{buildroot}/%{local_etcdir}
install -d -m 755 %{buildroot}%{local_incdir}
install -m 644 build_info.h %{buildroot}/%{local_incdir}
%clean
rm -rf $RPM_BUILD_ROOT
%files -n build-info-dev
%defattr(-,root,root,-)
%{local_incdir}/*

View File

@ -1,137 +0,0 @@
#
# Copyright (c) 2016 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
source "$SRC_BASE/build-tools/spec-utils"
if [ "x$DATA" == "x" ]; then
echo "ERROR: Environment variable 'DATA' not defined."
exit 1
fi
if [ ! -f "$DATA" ]; then
echo "ERROR: Couldn't find '$PWD/$DATA'"
exit 1
fi
unset TIS_PATCH_VER # Ensure there's nothing in the env already
source $DATA
if [ -z "$TIS_PATCH_VER" ]; then
echo "ERROR: TIS_PATCH_VER must be defined"
exit 1
fi
SRC_DIR="/build-info-1.0"
VERSION=$(grep '^Version:' PKG-INFO | awk -F ': ' '{print $2}' | sed -e 's/^[[:space:]]*//')
TAR_NAME=$(grep '^Name:' PKG-INFO | awk -F ': ' '{print $2}' | sed -e 's/^[[:space:]]*//')
CUR_DIR=`pwd`
BUILD_DIR="$RPMBUILD_BASE"
# Jenkins build file
if [ -f "$MY_WORKSPACE/BUILD" ]; then
JENKINS_BUILD_FILE="$MY_WORKSPACE/BUILD"
elif [ -f $MY_WORKSPACE/../BUILD ]; then
JENKINS_BUILD_FILE="$MY_WORKSPACE/../BUILD"
else
JENKINS_BUILD_FILE=
fi
# used by collect.sh
export JENKINS_BUILD_FILE
# Additional files to include in the archive (if they exist).
RELEASE_INFO_FILE="./release-info.inc"
EXTRA_FILES="$RELEASE_INFO_FILE"
[ x"$JENKINS_BUILD_FILE" = x ] || EXTRA_FILES+=" $JENKINS_BUILD_FILE"
mkdir -p $BUILD_DIR/SRPMS
TAR_UNCOMPRESSED="$TAR_NAME-$VERSION.tar"
TAR="${TAR_UNCOMPRESSED}.gz"
COMPRESS="gzip"
TAR_PATH="$BUILD_DIR/SOURCES"
# copy the LICENSE for rpm spec %license directive
cp .$SRC_DIR/LICENSE $BUILD_DIR/SOURCES/
# Check to see if our tarball needs updating
TAR_NEEDED=0
if [ -f $TAR_PATH/$TAR ]; then
n=`find . -cnewer $TAR_PATH/$TAR -and ! -path './.git*' \
-and ! -path './build/*' \
-and ! -path './.pc/*' \
-and ! -path './patches/*' \
-and ! -path "./$DISTRO/*" \
-and ! -path './pbr-*.egg/*' \
| wc -l`
if [ $n -gt 0 ]; then
TAR_NEEDED=1
fi
# check to see if any of our EXTRA_FILES are newer than the archive
for file in $EXTRA_FILES ".$SRC_DIR/collect.sh" ; do
if [ $file -nt $TAR_PATH/$TAR ]; then
TAR_NEEDED=1
fi
done
else
TAR_NEEDED=1
fi
if [ $TAR_NEEDED -gt 0 ]; then
tar cvf $TAR_PATH/$TAR_UNCOMPRESSED .$SRC_DIR \
--exclude '.git*' --exclude 'build' --exclude='.pc' \
--exclude='patches' --exclude="$DISTRO" --exclude='pbr-*.egg' \
--exclude='collect.sh' \
--transform "s,^\.$SRC_DIR/LICENSE,LICENSE," \
--transform "s,^\.$SRC_DIR,$TAR_NAME-$VERSION,"
# Add generated files
mkdir -p "${TAR_PATH}${SRC_DIR}" || exit 1
(
set -e
cd "${TAR_PATH}${SRC_DIR}"
RELEASE_INFO_FILE="${CUR_DIR}/${RELEASE_INFO_FILE}"
export RELEASE_INFO_FILE
"${CUR_DIR}${SRC_DIR}"/collect.sh
) || exit 1
tar rvf "$TAR_PATH/$TAR_UNCOMPRESSED" -C "$TAR_PATH" ".${SRC_DIR}" || exit 1
rm -rf "${TAR_PATH}${SRC_DIR}"
fi
$COMPRESS $TAR_PATH/$TAR_UNCOMPRESSED
for SPEC in `ls $BUILD_DIR/SPECS`; do
SPEC_PATH="$BUILD_DIR/SPECS/$SPEC"
RELEASE=`spec_find_tag Release "$SPEC_PATH" 2>> /dev/null`
if [ $? -ne 0 ]; then
echo "ERROR: 'Release' not found in '$SPEC_PATH'"
fi
NAME=`spec_find_tag Name "$SPEC_PATH" 2>> /dev/null`
if [ $? -ne 0 ]; then
echo "ERROR: 'Name' not found in '$SPEC_PATH'"
fi
SRPM="$NAME-$VERSION-$RELEASE.src.rpm"
SRPM_PATH="$BUILD_DIR/SRPMS/$SRPM"
BUILD_NEEDED=0
if [ -f $SRPM_PATH ]; then
n=`find . -cnewer $SRPM_PATH | wc -l`
if [ $n -gt 0 ]; then
BUILD_NEEDED=1
fi
else
BUILD_NEEDED=1
fi
if [ $BUILD_NEEDED -gt 0 ]; then
echo "SPEC file: $SPEC_PATH"
echo "SRPM build directory: $BUILD_DIR"
echo "TIS_PATCH_VER: $TIS_PATCH_VER"
sed -i -e "1 i%define tis_patch_ver $TIS_PATCH_VER" $SPEC_PATH
rpmbuild -bs $SPEC_PATH --define="%_topdir $BUILD_DIR" --define="_tis_dist .tis"
fi
done

View File

@ -1,3 +0,0 @@
TIS_PATCH_VER=4
COPY_LIST=release-info.inc
OPT_DEP_LIST="$MY_WORKSPACE_TOP/BUILD $MY_PATCH_WORKSPACE_TOP/BUILD"

View File

@ -1,4 +0,0 @@
SRC_DIR="logmgmt"
COPY_LIST_TO_TAR="scripts"
COPY_LIST="$SRC_DIR/LICENSE"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,88 +0,0 @@
Summary: Management of /var/log filesystem
Name: logmgmt
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
Source1: LICENSE
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: systemd-devel
BuildRequires: python3-devel
Requires: systemd
Requires: python3-daemon
%description
Management of /var/log filesystem
%define local_bindir /usr/bin/
%define local_etc_initd /etc/init.d/
%define local_etc_pmond /etc/pmon.d/
%define pythonroot %{python3_sitearch}
%define debug_package %{nil}
%prep
%setup
# Remove bundled egg-info
rm -rf *.egg-info
%build
%{__python3} setup.py build
%{__python3} setup.py bdist_wheel
%install
%{__python3} 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/bin/logmgmt %{buildroot}%{local_bindir}/logmgmt
install -p -D -m 700 scripts/bin/logmgmt_postrotate %{buildroot}%{local_bindir}/logmgmt_postrotate
install -p -D -m 700 scripts/bin/logmgmt_prerotate %{buildroot}%{local_bindir}/logmgmt_prerotate
install -d -m 755 %{buildroot}%{local_etc_initd}
install -p -D -m 700 scripts/init.d/logmgmt %{buildroot}%{local_etc_initd}/logmgmt
install -d -m 755 %{buildroot}%{local_etc_pmond}
install -p -D -m 644 scripts/pmon.d/logmgmt %{buildroot}%{local_etc_pmond}/logmgmt
install -p -D -m 644 scripts/etc/systemd/system/logmgmt.service %{buildroot}%{_unitdir}/logmgmt.service
%post
/usr/bin/systemctl enable logmgmt.service >/dev/null 2>&1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE
%{local_bindir}/*
%{local_etc_initd}/*
%dir %{local_etc_pmond}
%{local_etc_pmond}/*
%{_unitdir}/logmgmt.service
%dir %{pythonroot}/%{name}
%{pythonroot}/%{name}/*
%dir %{pythonroot}/%{name}-%{version}.0-py3.6.egg-info
%{pythonroot}/%{name}-%{version}.0-py3.6.egg-info/*
%package wheels
Summary: %{name} wheels
%description wheels
Contains python wheels for %{name}
%files wheels
/wheels/*

View File

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

View File

@ -1,35 +0,0 @@
%define _CC gcc
Summary: namespace utils
Name: namespace-utils
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
%description
StarlingX namespace utilities
%prep
%setup -q
%build
%{_CC} -o bashns bashns.c
%install
rm -rf ${RPM_BUILD_ROOT}
install -d -m 755 ${RPM_BUILD_ROOT}%{_sbindir}
install -m 500 bashns ${RPM_BUILD_ROOT}%{_sbindir}
install -m 500 umount-in-namespace ${RPM_BUILD_ROOT}%{_sbindir}
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%license LICENSE
%defattr(-,root,root,-)
%{_sbindir}/umount-in-namespace
%{_sbindir}/bashns

View File

@ -1,2 +0,0 @@
COPY_LIST="LICENSE files/*"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,43 +0,0 @@
Name: nfscheck
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
Summary: NFS Audit
Group: base
License: Apache-2.0
URL: unknown
Source0: nfscheck.sh
Source1: nfscheck.service
Source2: LICENSE
Requires: systemd
Requires: util-linux
%description
NFS Audit
%prep
%build
%install
install -d -m 755 %{buildroot}/usr/bin/
install -m 755 %{SOURCE0} %{buildroot}/usr/bin/nfscheck.sh
install -d -m 755 %{buildroot}/usr/lib/systemd/system/
install -m 664 %{SOURCE1} %{buildroot}/usr/lib/systemd/system/nfscheck.service
%post
/usr/bin/systemctl enable nfscheck.service >/dev/null 2>&1
%files
%license ../SOURCES/LICENSE
/usr/bin/*
/usr/lib/systemd/system/*
%changelog

View File

@ -1,3 +0,0 @@
SRC_DIR="pci_irq_affinity"
COPY_LIST_TO_TAR="files/*"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,24 +0,0 @@
BUILDER=loci
LABEL=stx-pci-irq-affinity-agent
PROJECT=infra
PROJECT_REPO=nil
DIST_PACKAGES="libvirt-python python-devel gcc"
PIP_PACKAGES="pci-irq-affinity-agent \
eventlet \
keyring \
keyrings.alt \
pycrypto \
keystoneauth1 \
pkgconfig \
libvirt-python \
oslo.concurrency \
oslo.config \
oslo.i18n \
oslo.log \
oslo.messaging \
oslo.service \
python-daemon \
python-novaclient \
retrying \
psutil"
PYTHON3=no

View File

@ -1,59 +0,0 @@
Summary: StarlingX PCI Interrupt Affinity Agent Package
Name: pci-irq-affinity-agent
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: StarlingX
URL: unknown
Source0: %{name}-%{version}.tar.gz
Requires: python-novaclient
BuildRequires: python-setuptools
BuildRequires: systemd-devel
BuildRequires: python2-wheel
%description
StarlingX PCI Interrupt Affinity Agent Package
%define local_etc_initd /etc/init.d/
%define local_etc_pmond /etc/pmon.d/
%define pythonroot /usr/lib64/python2.7/site-packages
%define debug_package %{nil}
%prep
%setup
# Remove bundled egg-info
rm -rf *.egg-info
%build
%{__python} setup.py build
%{__python} setup.py bdist_wheel
%install
mkdir -p $RPM_BUILD_ROOT/wheels
%{__install} -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
%{__install} -d %{buildroot}%{_bindir}
%{__install} -p -D -m 755 nova-sriov %{buildroot}%{_bindir}/nova-sriov
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE
%{_bindir}/nova-sriov
%package wheels
Summary: %{name} wheels
%description wheels
Contains python wheels for %{name}
%files wheels
/wheels/*

View File

@ -1,24 +0,0 @@
BUILDER=loci
LABEL=stx-pci-irq-affinity-agent
PROJECT=infra
PROJECT_REPO=nil
DIST_PACKAGES="libvirt-python python-devel gcc"
PIP_PACKAGES="pci-irq-affinity-agent \
eventlet \
keyring \
keyrings.alt \
pycrypto \
keystoneauth1 \
pkgconfig \
libvirt-python \
oslo.concurrency \
oslo.config \
oslo.i18n \
oslo.log \
oslo.messaging \
oslo.service \
python-daemon \
python-novaclient \
retrying \
psutil"
PYTHON3=no

View File

@ -1,4 +0,0 @@
SRC_DIR="platform-util"
COPY_LIST_TO_TAR="scripts"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,143 +0,0 @@
Summary: platform-util
Name: platform-util
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
BuildArch: noarch
Source: %name-%version.tar.gz
BuildRequires: python-setuptools
BuildRequires: python2-pip
BuildRequires: python2-wheel
%global _buildsubdir %{_builddir}/%{name}-%{version}
%description
Platform utilities
%package controller
Summary: Controller platform utilities
Requires: genisoimage
%description controller
Platform utilities installed only on controllers
%package noncontroller
Summary: non controller platform utilities
%description noncontroller
Platform utilities that don't get packaged on controller hosts
%define local_dir /usr/local
%define local_bindir %{local_dir}/bin
%define local_sbindir %{local_dir}/sbin
%define pythonroot /usr/lib64/python2.7/site-packages
%define local_etc_initd %{_sysconfdir}/init.d
%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 %{buildroot}%{local_bindir}
install %{_buildsubdir}/scripts/tc_setup.sh %{buildroot}%{local_bindir}
install %{_buildsubdir}/scripts/remotelogging_tc_setup.sh %{buildroot}%{local_bindir}
install %{_buildsubdir}/scripts/connectivity_test %{buildroot}%{local_bindir}
install -m 555 %{_buildsubdir}/scripts/is-rootdisk-device.sh %{buildroot}%{local_bindir}
install -m 555 %{_buildsubdir}/scripts/update-iso-centos.sh %{buildroot}%{local_bindir}/update-iso.sh
install -m 555 %{_buildsubdir}/scripts/gen-bootloader-iso-centos.sh %{buildroot}%{local_bindir}
install -m 555 %{_buildsubdir}/scripts/prepare-prestage-packages.sh %{buildroot}%{local_bindir}
install -m 555 %{_buildsubdir}/scripts/stx-iso-utils-centos.sh %{buildroot}%{local_bindir}/stx-iso-utils.sh
install -m 555 %{_buildsubdir}/scripts/show-certs.sh %{buildroot}%{local_bindir}
install -m 555 %{_buildsubdir}/scripts/update_docker_registry_auth.sh %{buildroot}%{local_bindir}
install -m 555 %{_buildsubdir}/scripts/change_system_private_registry.sh %{buildroot}%{local_bindir}
install -m 555 %{_buildsubdir}/scripts/local_starlingxrc %{buildroot}%{local_bindir}
install -m 555 %{_buildsubdir}/scripts/kubeconfig-setup %{buildroot}%{local_bindir}
install -d %{buildroot}%{local_etc_initd}
install %{_buildsubdir}/scripts/log_functions.sh %{buildroot}%{local_etc_initd}
install -d %{buildroot}%{local_sbindir}
install -m 700 -P -D %{_buildsubdir}/scripts/patch-restart-mtce %{buildroot}%{local_sbindir}
install -m 700 -p -D %{_buildsubdir}/scripts/patch-restart-processes %{buildroot}%{local_sbindir}
install -m 700 -p -D %{_buildsubdir}/scripts/patch-restart-haproxy %{buildroot}%{local_sbindir}
install -d %{buildroot}/etc/systemd/system
install -m 644 -p -D %{_buildsubdir}/scripts/opt-platform.mount %{buildroot}/etc/systemd/system
install -m 644 -p -D %{_buildsubdir}/scripts/opt-platform.service %{buildroot}/etc/systemd/system
install -m 750 %{_buildsubdir}/scripts/set_keystone_user_option.sh %{buildroot}%{local_bindir}
# Mask the systemd ctrl-alt-delete.target, to disable reboot on ctrl-alt-del
ln -sf /dev/null %{buildroot}/etc/systemd/system/ctrl-alt-del.target
%clean
rm -rf $RPM_BUILD_ROOT
%post noncontroller
mkdir -p /opt/platform
systemctl enable opt-platform.service
%files
%license LICENSE
%defattr(-,root,root,-)
/usr/bin/verify-license
%{local_bindir}/tc_setup.sh
%{local_bindir}/remotelogging_tc_setup.sh
%{local_bindir}/connectivity_test
%{local_bindir}/is-rootdisk-device.sh
%{local_bindir}/set_keystone_user_option.sh
%{local_sbindir}/patch-restart-mtce
%{local_sbindir}/patch-restart-processes
%{local_sbindir}/patch-restart-haproxy
/etc/systemd/system/ctrl-alt-del.target
%dir %{pythonroot}/platform_util
%{pythonroot}/platform_util/*
%dir %{pythonroot}/platform_util-%{version}.0-py2.7.egg-info
%{pythonroot}/platform_util-%{version}.0-py2.7.egg-info/*
%{local_etc_initd}/log_functions.sh
%files controller
%defattr(-,root,root,-)
%{local_bindir}/update-iso.sh
%{local_bindir}/gen-bootloader-iso-centos.sh
%{local_bindir}/prepare-prestage-packages.sh
%{local_bindir}/stx-iso-utils.sh
%{local_bindir}/show-certs.sh
%{local_bindir}/update_docker_registry_auth.sh
%{local_bindir}/change_system_private_registry.sh
%{local_bindir}/local_starlingxrc
%{local_bindir}/kubeconfig-setup
%files noncontroller
%defattr(-,root,root,-)
# This is necessary to mask opt-platform.mount, so that the version generated
# from parsing the fstab is not used by systemd.
/etc/systemd/system/opt-platform.mount
/etc/systemd/system/opt-platform.service
%package wheels
Summary: %{name} wheels
%description wheels
Contains python wheels for %{name}
%files wheels
/wheels/*

View File

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

View File

@ -1,53 +0,0 @@
#
# The tis-extensions group of packages is intended to allow us to
# add files to "extend" thirdparty packages, such as by packaging
# custom systemd files into /etc/systemd to override the originals
# without modifying or rebuilding the thirdparty package.
#
Name: stx-extensions
Version: 1.0
Summary: StarlingX Extensions to thirdparty pkgs
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
StarlingX Extensions to thirdparty pkgs
%define local_etc_systemd %{_sysconfdir}/systemd/system/
%define local_etc_coredump %{_sysconfdir}/systemd/coredump.conf.d
%define local_etc_initd %{_sysconfdir}/init.d
%define local_etc_sysctl %{_sysconfdir}/sysctl.d
%define local_etc_modload %{_sysconfdir}/modules-load.d
%prep
%setup
%build
%install
install -d -m 755 %{buildroot}%{local_etc_sysctl}
install -p -D -m 644 coredump-sysctl.conf %{buildroot}%{local_etc_sysctl}/50-coredump.conf
install -d -m 755 %{buildroot}%{local_etc_coredump}
install -p -D -m 644 coredump.conf %{buildroot}%{local_etc_coredump}/coredump.conf
install -d -m 755 %{buildroot}%{local_etc_modload}
install -p -D -m 644 modules-load-vfio.conf %{buildroot}%{local_etc_modload}/vfio.conf
%files
%defattr(-,root,root,-)
%{local_etc_sysctl}/50-coredump.conf
%{local_etc_coredump}/coredump.conf
%{local_etc_modload}/vfio.conf
%doc LICENSE

View File

@ -1,2 +0,0 @@
COPY_LIST="files/*"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,62 +0,0 @@
Name: update-motd
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
Summary: dynamic MOTD generation
Group: base
License: Apache-2.0
URL: unknown
Source0: motd-footer
Source1: motd-header
Source2: motd-update
Source3: motd-update.cron
Source4: customize-banner
Source5: apply_banner_customization
Source6: install_banner_customization
Source7: LICENSE
Source8: motd.head
Requires: crontabs
%description
dynamic MOTD generation
%prep
%build
%install
install -d %{buildroot}%{_sbindir}
install -m 700 %{SOURCE2} %{buildroot}%{_sbindir}/motd-update
install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_sysconfdir}/motd.d
install -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/motd.d/00-header
install -m 755 %{SOURCE0} %{buildroot}%{_sysconfdir}/motd.d/99-footer
install -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/motd.head
install -d %{buildroot}%{_sysconfdir}/cron.d
install -m 600 %{SOURCE3} %{buildroot}%{_sysconfdir}/cron.d/motd-update
install -m 700 %{SOURCE4} %{buildroot}%{_sbindir}/customize-banner
install -m 700 %{SOURCE5} %{buildroot}%{_sbindir}/apply_banner_customization
install -m 700 %{SOURCE6} %{buildroot}%{_sbindir}/install_banner_customization
%files
%license ../SOURCES/LICENSE
%dir %{_sysconfdir}/motd.d/
%{_sysconfdir}/motd.d/*
/usr/sbin/*
/etc/motd.d/*
%{_sysconfdir}/motd.head
/etc/cron.d/*
%{_sbindir}/motd-update
%{_sbindir}/customize-banner
%{_sbindir}/apply_banner_customization
%{_sbindir}/install_banner_customization
%changelog

View File

@ -1,3 +0,0 @@
SRC_DIR="worker-utils"
COPY_LIST="$SRC_DIR/LICENSE"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,58 +0,0 @@
Summary: Initial worker node resource reservation and misc. utilities
Name: worker-utils
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
Source1: LICENSE
BuildRequires: systemd-devel
Requires: systemd
Requires: python
Requires: /bin/systemctl
Requires: perl
%description
Initial worker node resource reservation and misc. utilities
%define local_bindir /usr/bin/
%define local_etc_initd /etc/init.d/
%define local_etc_platform /etc/platform/
%define local_etc_goenabledd /etc/goenabled.d/
%define debug_package %{nil}
%prep
%setup
%build
make
%install
make install BINDIR=%{buildroot}%{local_bindir} \
INITDDIR=%{buildroot}%{local_etc_initd} \
GOENABLEDDIR=%{buildroot}%{local_etc_goenabledd} \
PLATFORMCONFDIR=%{buildroot}%{local_etc_platform} \
SYSTEMDDIR=%{buildroot}%{_unitdir}
%post
/bin/systemctl enable affine-platform.sh.service >/dev/null 2>&1
/bin/systemctl enable affine-tasks.service >/dev/null 2>&1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{local_bindir}/*
%{local_etc_initd}/*
%{local_etc_goenabledd}/*
%config(noreplace) %{local_etc_platform}/worker_reserved.conf
%{_unitdir}/affine-platform.sh.service
%{_unitdir}/affine-tasks.service

View File

@ -1,4 +0,0 @@
-------------------------------------------------------------------
Tue Jun 11 10:27:25 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com>
- Initial Commit

View File

@ -1,74 +0,0 @@
Summary: Initial worker node resource reservation and misc. utilities
Name: worker-utils
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: System/Base
URL: https://opendev.org/starlingx/utilities
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: systemd
BuildRequires: systemd-sysvinit
BuildRequires: sysvinit-tools
BuildRequires: insserv-compat
BuildRequires: python
Requires: systemd
Requires: systemd-sysvinit
Requires: sysvinit-tools
Requires: insserv-compat
Requires: python
%description
Initial worker node resource reservation and miscellaneous utilities for StarlingX.
%define local_bindir /usr/bin/
%define local_etc_initd /etc/init.d/
%define local_etc_platform /etc/platform/
%define local_etc_goenabledd /etc/goenabled.d/
%define debug_package %{nil}
%prep
%setup -n %{name}-%{version}/%{name}
%build
make
%install
make install BINDIR=%{buildroot}%{local_bindir} \
INITDDIR=%{buildroot}%{local_etc_initd} \
GOENABLEDDIR=%{buildroot}%{local_etc_goenabledd} \
PLATFORMCONFDIR=%{buildroot}%{local_etc_platform} \
SYSTEMDDIR=%{buildroot}%{_unitdir}
%pre
%service_add_pre affine-platform.sh.service affine-tasks.service
%post
%service_add_post affine-platform.sh.service affine-tasks.service
systemctl enable affine-platform.sh.service #>/dev/null 2>&1
systemctl enable affine-tasks.service #>/dev/null 2>&1
%preun
%service_del_preun affine-platform.sh.service affine-tasks.service
%postun
%service_del_postun affine-platform.sh.service affine-tasks.service
%insserv_cleanup
%files
%defattr(-,root,root,-)
%{local_bindir}/*
%{local_etc_initd}/*
%{local_etc_goenabledd}/*
%dir %{_sysconfdir}/goenabled.d
%dir %{_sysconfdir}/platform
%config(noreplace) %{local_etc_platform}/worker_reserved.conf
%{_unitdir}/affine-platform.sh.service
%{_unitdir}/affine-tasks.service
%changelog