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: 49945 Change-Id: I534a3812bc6454024514b204374cbcb09c68e50b Signed-off-by: Scott Little <scott.little@windriver.com>
This commit is contained in:
parent
6a7e681a11
commit
baa4b56a35
@ -1,45 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: StarlingX audit Configuration File
|
||||
Name: audit-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: config-files
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
Requires: audit
|
||||
Requires: audit-libs
|
||||
Requires: audit-libs-python
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
%description
|
||||
StarlingX audit configuration file
|
||||
|
||||
%prep
|
||||
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
install -d %{buildroot}%{_datadir}/starlingx
|
||||
install -m640 syslog.conf %{buildroot}%{_datadir}/starlingx/syslog.conf
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
cp -f %{_datadir}/starlingx/syslog.conf %{_sysconfdir}/audisp/plugins.d/syslog.conf
|
||||
chmod 640 %{_sysconfdir}/audisp/plugins.d/syslog.conf
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
%{_datadir}/starlingx/syslog.conf
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,48 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: centos-release-config
|
||||
Name: centos-release-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: base
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
BuildArch: noarch
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
Requires: centos-release
|
||||
Summary: package StarlingX configuration files of centos-release to system folder.
|
||||
|
||||
%description
|
||||
package StarlingX configuration files of centos-release to system folder.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
# Overwrite default issue files with cgcs related files.
|
||||
install -d %{buildroot}%{_datadir}/starlingx
|
||||
install -m 0644 issue %{buildroot}%{_datadir}/starlingx/stx.issue
|
||||
install -m 0644 issue.net %{buildroot}%{_datadir}/starlingx/stx.issue.net
|
||||
sed -i -e "s/@PLATFORM_RELEASE@/%{platform_release}/g" \
|
||||
%{buildroot}%{_datadir}/starlingx/stx.issue \
|
||||
%{buildroot}%{_datadir}/starlingx/stx.issue.net
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
# Initial installation
|
||||
cp -f %{_datadir}/starlingx/stx.issue %{_sysconfdir}/issue
|
||||
cp -f %{_datadir}/starlingx/stx.issue.net %{_sysconfdir}/issue.net
|
||||
chmod 644 %{_sysconfdir}/issue
|
||||
chmod 644 %{_sysconfdir}/issue.net
|
||||
fi
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_datadir}/starlingx/stx.issue
|
||||
%{_datadir}/starlingx/stx.issue.net
|
@ -1 +0,0 @@
|
||||
flock
|
@ -1,47 +0,0 @@
|
||||
rabbitmq-server-config
|
||||
|
||||
# centos-release-config
|
||||
centos-release-config
|
||||
dhcp-config
|
||||
dnsmasq-config
|
||||
haproxy-config
|
||||
initscripts-config
|
||||
lighttpd-config
|
||||
openssh-config
|
||||
setup-config
|
||||
systemd-config
|
||||
audit-config
|
||||
docker-config
|
||||
containerd-config
|
||||
multus-config
|
||||
tuned-config
|
||||
dmesg-config
|
||||
|
||||
# io-scheduler
|
||||
io-scheduler
|
||||
iptables-config
|
||||
memcached-custom
|
||||
ntp-config
|
||||
pam-config
|
||||
rsync-config
|
||||
shadow-utils-config
|
||||
sudo-config
|
||||
syslog-ng-config
|
||||
|
||||
# util-linux-config
|
||||
util-linux-config
|
||||
|
||||
# filesystem-scripts
|
||||
filesystem-scripts
|
||||
|
||||
# iscsi-initiator-utils-config
|
||||
iscsi-initiator-utils-config
|
||||
nfs-utils-config
|
||||
openldap-config
|
||||
logrotate-config
|
||||
|
||||
# openvswitch-config
|
||||
openvswitch-config
|
||||
|
||||
#python-siteconfig
|
||||
python-siteconfig
|
@ -1,33 +0,0 @@
|
||||
rabbitmq-server-config
|
||||
centos-release-config
|
||||
dhcp-config
|
||||
dnsmasq-config
|
||||
haproxy-config
|
||||
initscripts-config
|
||||
lighttpd-config
|
||||
openssh-config
|
||||
setup-config
|
||||
systemd-config
|
||||
audit-config
|
||||
docker-config
|
||||
containerd-config
|
||||
io-scheduler
|
||||
iptables-config
|
||||
memcached-custom
|
||||
ntp-config
|
||||
pam-config
|
||||
rsync-config
|
||||
shadow-utils-config
|
||||
sudo-config
|
||||
syslog-ng-config
|
||||
util-linux-config
|
||||
filesystem-scripts
|
||||
iscsi-initiator-utils-config
|
||||
nfs-utils-config
|
||||
openldap-config
|
||||
logrotate-config
|
||||
openvswitch-config
|
||||
multus-config
|
||||
tuned-config
|
||||
dmesg-config
|
||||
python-siteconfig
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="$PKG_BASE/files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,35 +0,0 @@
|
||||
Summary: StarlingX Containerd Configuration File
|
||||
Name: containerd-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: config-files
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
Requires: containerd
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
%description
|
||||
StarlingX containerd configuration file
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%install
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/pmon.d/
|
||||
install -p -m 644 containerd-pmon.conf %{buildroot}%{_sysconfdir}/pmon.d/containerd.conf
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/systemd/system/containerd.service.d/
|
||||
install -p -m 644 containerd-stx-override.conf %{buildroot}%{_sysconfdir}/systemd/system/containerd.service.d/
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
%dir %{_sysconfdir}/systemd/system/containerd.service.d
|
||||
%{_sysconfdir}/pmon.d/containerd.conf
|
||||
%{_sysconfdir}/systemd/system/containerd.service.d/containerd-stx-override.conf
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,42 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
# Where dhcp configuration files are stored
|
||||
%global dhcpconfdir %{_sysconfdir}/dhcp
|
||||
|
||||
Summary: dhcp-config
|
||||
Name: dhcp-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: base
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
BuildArch: noarch
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
Requires: dhclient
|
||||
Summary: package StarlingX configuration files of dhcp to system folder.
|
||||
|
||||
%description
|
||||
package StarlingX configuration files of dhcp to system folder.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
%{__install} -d %{buildroot}%{dhcpconfdir}
|
||||
%{__install} -p -m 0755 dhclient-enter-hooks %{buildroot}%{dhcpconfdir}/dhclient-enter-hooks
|
||||
%{__install} -p -m 0644 dhclient.conf %{buildroot}%{dhcpconfdir}/dhclient.conf
|
||||
ln -s %{dhcpconfdir}/dhclient-enter-hooks %{buildroot}%{_sysconfdir}/dhclient-enter-hooks
|
||||
|
||||
%post
|
||||
|
||||
%files
|
||||
%config(noreplace) %{dhcpconfdir}/dhclient.conf
|
||||
%{dhcpconfdir}/dhclient-enter-hooks
|
||||
%{_sysconfdir}/dhclient-enter-hooks
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="$PKG_BASE/files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,30 +0,0 @@
|
||||
Summary: StarlingX Dmesg Configuration File
|
||||
Name: dmesg-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: config-files
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
%description
|
||||
StarlingX dmesg configuration file
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%install
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/systemd/system/rhel-dmesg.service.d/
|
||||
install -p -m 644 rhel-dmesg-stx-override.conf %{buildroot}%{_sysconfdir}/systemd/system/rhel-dmesg.service.d/
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
%dir %{_sysconfdir}/systemd/system/rhel-dmesg.service.d
|
||||
%{_sysconfdir}/systemd/system/rhel-dmesg.service.d/rhel-dmesg-stx-override.conf
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,35 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: dnsmasq-config
|
||||
Name: dnsmasq-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: base
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
BuildArch: noarch
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
Requires: dnsmasq
|
||||
Summary: package StarlingX configuration files of dnsmasq to system folder.
|
||||
|
||||
%description
|
||||
package StarlingX configuration files of dnsmasq to system folder.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/init.d
|
||||
install -m 755 init %{buildroot}%{_sysconfdir}/init.d/dnsmasq
|
||||
|
||||
%post
|
||||
|
||||
%files
|
||||
%{_sysconfdir}/init.d/dnsmasq
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="$PKG_BASE/files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,32 +0,0 @@
|
||||
Summary: StarlingX Docker Configuration File
|
||||
Name: docker-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: config-files
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
Requires: docker-ce
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
%description
|
||||
StarlingX docker configuration file
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%install
|
||||
make DATADIR=%{buildroot}%{_datadir} SYSCONFDIR=%{buildroot}%{_sysconfdir} install
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
%dir %{_sysconfdir}/systemd/system/docker.service.d
|
||||
%{_sysconfdir}/pmon.d/docker.conf
|
||||
%{_sysconfdir}/systemd/system/docker.service.d/docker-stx-override.conf
|
||||
%{_sysconfdir}/logrotate.d/docker.logrotate
|
@ -1,3 +0,0 @@
|
||||
SRC_DIR="filesystem-scripts-1.0"
|
||||
COPY_LIST="$PKG_BASE/LICENSE"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,56 +0,0 @@
|
||||
Summary: File System Script Package
|
||||
Name: filesystem-scripts
|
||||
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: /bin/systemctl
|
||||
|
||||
%description
|
||||
File System Script Package
|
||||
|
||||
%define local_bindir /usr/bin/
|
||||
%define local_etc_initd /etc/init.d/
|
||||
%define local_ocfdir /usr/lib/ocf/resource.d/platform/
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
|
||||
install -d -m 755 %{buildroot}%{local_etc_initd}
|
||||
install -p -D -m 755 uexportfs %{buildroot}%{local_etc_initd}/uexportfs
|
||||
|
||||
install -d -m 755 %{buildroot}%{local_ocfdir}
|
||||
install -p -D -m 755 nfsserver-mgmt %{buildroot}%{local_ocfdir}/nfsserver-mgmt
|
||||
|
||||
install -d -m 755 %{buildroot}%{local_bindir}
|
||||
install -p -D -m 755 nfs-mount %{buildroot}%{local_bindir}/nfs-mount
|
||||
|
||||
install -p -D -m 644 uexportfs.service %{buildroot}%{_unitdir}/uexportfs.service
|
||||
|
||||
%post
|
||||
/bin/systemctl enable uexportfs.service
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%defattr(-,root,root,-)
|
||||
%{local_bindir}/*
|
||||
%{local_etc_initd}/*
|
||||
%dir %{local_ocfdir}
|
||||
%{local_ocfdir}/*
|
||||
%{_unitdir}/uexportfs.service
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,49 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: haproxy-config
|
||||
Name: haproxy-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: base
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
BuildArch: noarch
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
Requires: haproxy
|
||||
Summary: package StarlingX configuration files of haproxy to system folder.
|
||||
|
||||
%description
|
||||
package StarlingX configuration files of haproxy to system folder.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
%{__install} -d 755 %{buildroot}%{_sysconfdir}/haproxy/errors/
|
||||
%{__install} -m 755 503.http %{buildroot}%{_sysconfdir}/haproxy/errors/503.http
|
||||
|
||||
%{__install} -d %{buildroot}%{_sysconfdir}/systemd/system
|
||||
%{__install} -m 644 haproxy.service %{buildroot}%{_sysconfdir}/systemd/system
|
||||
|
||||
mkdir -p %{_sysconfdir}/init.d
|
||||
%{__install} -p -D -m 0755 haproxy.sh %{buildroot}%{_sysconfdir}/init.d/haproxy
|
||||
|
||||
%post
|
||||
/bin/systemctl disable haproxy.service
|
||||
if test -s %{_sysconfdir}/logrotate.d/haproxy ; then
|
||||
echo '#See /etc/logrotate.d/syslog for haproxy rules' > %{_sysconfdir}/logrotate.d/haproxy
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_sysconfdir}/haproxy/errors/
|
||||
%{_sysconfdir}/haproxy/errors/*
|
||||
%{_sysconfdir}/init.d/haproxy
|
||||
%{_sysconfdir}/systemd/system/haproxy.service
|
@ -1,2 +0,0 @@
|
||||
COPY_LIST="$FILES_BASE/*"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,89 +0,0 @@
|
||||
# This file contains the rules to customize io scheduler.
|
||||
|
||||
# Need nodetype environment variable
|
||||
IMPORT{file}="/etc/platform/platform.conf"
|
||||
|
||||
# 3.10 kernel
|
||||
# Heuristics:
|
||||
# 'deadline' io-scheduler tuned settings
|
||||
# - deadline generally recommended for databases, servers, and SSDs,
|
||||
# and for more deterministic latency
|
||||
# - note that read_expire is a key tuning parameter here
|
||||
# - the following is recommended by DRBD user guide
|
||||
# front_merges: 0 (from 1)
|
||||
# read_expire: 150 (from 500)
|
||||
# write_expire: 1500 (from 5000)
|
||||
#
|
||||
# 'cfq' io scheduler tuned settings
|
||||
# - recommended for HDD, and fairness (ionice)
|
||||
# - the following tuned values greatly improve parallelism,
|
||||
# and performance in large storage environments
|
||||
# slice_idle: 0 (from 8)
|
||||
# quantum: 32 (from 8)
|
||||
#
|
||||
# 'noop' io scheduler for variants of HW-RAID.
|
||||
# - RAID controller will do its own separate scheduling
|
||||
#
|
||||
# Overall:
|
||||
# - Historically we choose 'deadline' for low-latency, SSDs, and local storage;
|
||||
# 'cfq' for worker non-sda HDDs, 'noop' for all variants of HW-RAID.
|
||||
# - We prefer to guarantee latency more than fairness for all platform services,
|
||||
# especially under extreme read and write load, e.g, when creating/deleting
|
||||
# multiple heat stacks, or running disk intensive operations.
|
||||
# - Kubernetes etcd server has better latency with cfq as compared
|
||||
# to deadline even on SSDs.
|
||||
# - This setting requires re-evaluation with io-schedulers
|
||||
# (i.e., mq-deadline, bfq, kyber) available in new kernels.
|
||||
|
||||
# 5.10 kernel
|
||||
# Heuristics:
|
||||
# 'none'
|
||||
# - Implements a first-in first-out (FIFO) scheduling algorithm. It
|
||||
# merges requests at the generic block layer through a simple last-hit cache.
|
||||
# 'mq-deadline'
|
||||
# - Attempts to provide a guaranteed latency for requests from the point at
|
||||
# which requests reach the scheduler.
|
||||
# - This scheduler is suitable for most use cases, but particularly those in
|
||||
# which the write operations are mostly asynchronous.
|
||||
# 'bfq'
|
||||
# - Targets desktop systems and interactive tasks.
|
||||
# - The bfq scheduler ensures that a single application is never using all of
|
||||
# the bandwidth. In effect, the storage device is always as responsive as if
|
||||
# it was idle. In its default configuration, bfq focuses on delivering the
|
||||
# lowest latency rather than achieving the maximum throughput.
|
||||
# - bfq is based on cfq code. It does not grant the disk to each process for
|
||||
# a fixed time slice but assigns a budget measured in number of sectors to the process.
|
||||
# - This scheduler is suitable while copying large files and the system does not become
|
||||
# unresponsive in this case.
|
||||
# 'kyber'
|
||||
# - The scheduler tunes itself to achieve a latency goal by calculating the latencies
|
||||
# of every I/O request submitted to the block I/O layer. You can configure the target
|
||||
# latencies for read, in the case of cache-misses, and synchronous write requests.
|
||||
# - This scheduler is suitable for fast devices, for example NVMe, SSD, or other low
|
||||
# latency devices.
|
||||
#
|
||||
# Overall:
|
||||
# - Traditional HDD with a SCSI interface: Use mq-deadline or bfq
|
||||
# - High-performance SSD or a CPU-bound system with fast storage: Use none,
|
||||
# especially when running enterprise applications. Alternatively, use kyber.
|
||||
# - Desktop or interactive tasks: Use bfq.
|
||||
# - Virtual guest: Use mq-deadline. With a host bus adapter (HBA) driver that
|
||||
# is multi-queue capable, use none.
|
||||
|
||||
ACTION=="add|change", SUBSYSTEM=="block", KERNEL=="sd[a-z]", \
|
||||
ATTR{queue/scheduler}="mq-deadline", \
|
||||
ATTR{queue/iosched/front_merges}="0", \
|
||||
ATTR{queue/iosched/read_expire}="150", \
|
||||
ATTR{queue/iosched/write_expire}="1500"
|
||||
|
||||
|
||||
ACTION=="add|change", ENV{nodetype}=="controller", SUBSYSTEM=="block", KERNEL=="sd[a-z]", \
|
||||
PROGRAM="/usr/local/bin/is-rootdisk-device.sh %E{DEVNAME}", RESULT=="?*", \
|
||||
ATTR{queue/scheduler}="bfq", \
|
||||
ATTR{queue/iosched/strict_guarantees}="1"
|
||||
|
||||
# Set none io scheduler for variants of HW-RAID.
|
||||
# HP ProLiant DL360p Gen8; HP ProLiant DL380p Gen8
|
||||
ACTION=="add|change", SUBSYSTEM=="block", KERNEL=="sd[a-z]", ATTRS{raid_level}=="*RAID*", ATTR{queue/scheduler}="none"
|
||||
# Dell Inc. PowerEdge R720
|
||||
ACTION=="add|change", SUBSYSTEM=="block", KERNEL=="sd[a-z]", ATTRS{label}=="*RAID*", ATTR{queue/scheduler}="none"
|
@ -1,202 +0,0 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
@ -1,29 +0,0 @@
|
||||
Summary: CGCS IO Scheduler Configuration
|
||||
Name: io-scheduler
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: base
|
||||
Packager: Wind River <info@windriver.com>
|
||||
URL: unknown
|
||||
|
||||
Source0: 60-io-scheduler.rules
|
||||
Source1: LICENSE
|
||||
|
||||
%define udev_rules_d %{_sysconfdir}/udev/rules.d
|
||||
|
||||
%description
|
||||
CGCS io scheduler configuration and tuning.
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{udev_rules_d}
|
||||
install -m 644 %{SOURCE0} %{buildroot}%{udev_rules_d}/60-io-scheduler.rules
|
||||
|
||||
%post
|
||||
/bin/udevadm control --reload-rules
|
||||
/bin/udevadm trigger --type=devices --subsystem-match=block
|
||||
|
||||
%files
|
||||
%license ../SOURCES/LICENSE
|
||||
%defattr(-,root,root,-)
|
||||
%{_sysconfdir}/udev/rules.d
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,53 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: StarlingX iptables Configuration File
|
||||
Name: iptables-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: config-files
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
Requires: iptables
|
||||
Requires: iptables-services
|
||||
Requires: iptables-utils
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
%description
|
||||
StarlingX iptables configuration file
|
||||
|
||||
%prep
|
||||
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/sysconfig
|
||||
install -d %{buildroot}%{_datadir}/starlingx
|
||||
install -m 600 iptables.rules %{buildroot}%{_datadir}/starlingx/iptables.rules
|
||||
install -m 600 ip6tables.rules %{buildroot}%{_datadir}/starlingx/ip6tables.rules
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
cp -f %{_datadir}/starlingx/iptables.rules %{_sysconfdir}/sysconfig/iptables
|
||||
chmod 600 %{_sysconfdir}/sysconfig/iptables
|
||||
cp -f %{_datadir}/starlingx/ip6tables.rules %{_sysconfdir}/sysconfig/ip6tables
|
||||
chmod 600 %{_sysconfdir}/sysconfig/ip6tables
|
||||
fi
|
||||
|
||||
%{_bindir}/systemctl enable iptables.service ip6tables.service >/dev/null 2>&1
|
||||
exit 0
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
%{_datadir}/starlingx/iptables.rules
|
||||
%{_datadir}/starlingx/ip6tables.rules
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,50 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: iscsi-initiator-utils-config
|
||||
Name: iscsi-initiator-utils-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: base
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
BuildArch: noarch
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
Requires: iscsi-initiator-utils
|
||||
Requires: iscsi-initiator-utils-iscsiuio
|
||||
Summary: package StarlingX configuration files of iscsi-initiator-utils to system folder.
|
||||
|
||||
%description
|
||||
package StarlingX configuration files of iscsi-initiator-utils to system folder.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
%{__install} -d %{buildroot}%{_tmpfilesdir}
|
||||
%{__install} -d %{buildroot}%{_sysconfdir}/systemd/system
|
||||
%{__install} -d %{buildroot}%{_datadir}/starlingx
|
||||
|
||||
%{__install} -m 0644 iscsi-cache.volatiles %{buildroot}%{_tmpfilesdir}/iscsi-cache.conf
|
||||
%{__install} -m 0644 iscsi-shutdown.service %{buildroot}%{_sysconfdir}/systemd/system
|
||||
%{__install} -m 0644 iscsid.conf %{buildroot}%{_datadir}/starlingx/stx.iscsid.conf
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
# Initial installation
|
||||
cp -f %{_datadir}/starlingx/stx.iscsid.conf %{_sysconfdir}/iscsi/iscsid.conf
|
||||
chmod 0750 %{_sysconfdir}/iscsi
|
||||
chmod 0640 %{_sysconfdir}/iscsi/iscsid.conf
|
||||
fi
|
||||
/bin/systemctl disable iscsi-shutdown.service
|
||||
|
||||
%files
|
||||
%{_tmpfilesdir}/iscsi-cache.conf
|
||||
%{_sysconfdir}/systemd/system/iscsi-shutdown.service
|
||||
%{_datadir}/starlingx/stx.iscsid.conf
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,73 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: StarlingX lighttpd Configuration File
|
||||
Name: lighttpd-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: config-files
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
Requires: lighttpd
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
%description
|
||||
StarlingX lighttpd configuration file
|
||||
|
||||
%prep
|
||||
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
|
||||
CONFDIR=%{buildroot}%{_sysconfdir}/lighttpd
|
||||
ROOTDIR=%{buildroot}/var/www
|
||||
|
||||
install -d -m 1777 ${ROOTDIR}/tmp
|
||||
install -d ${CONFDIR}/ssl
|
||||
install -d ${ROOTDIR}/pages/dav
|
||||
install -d %{buildroot}%{_datadir}/starlingx
|
||||
install -m640 lighttpd.conf %{buildroot}%{_datadir}/starlingx/lighttpd.conf
|
||||
install -m755 lighttpd.init %{buildroot}%{_datadir}/starlingx/lighttpd.init
|
||||
install -m644 lighttpd-inc.conf ${CONFDIR}/lighttpd-inc.conf
|
||||
install -m644 index.html.lighttpd ${ROOTDIR}/pages/index.html
|
||||
|
||||
install -d %{buildroot}%{_sysconfdir}/logrotate.d
|
||||
install -m644 lighttpd.logrotate %{buildroot}%{_datadir}/starlingx/lighttpd.logrotate
|
||||
|
||||
chmod 02770 %{buildroot}%{_sysconfdir}/lighttpd
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
cp --preserve=xattr -f %{_datadir}/starlingx/lighttpd.conf %{_sysconfdir}/lighttpd/lighttpd.conf
|
||||
chmod 640 %{_sysconfdir}/lighttpd/lighttpd.conf
|
||||
cp --preserve=xattr -f %{_datadir}/starlingx/lighttpd.logrotate %{_sysconfdir}/logrotate.d/lighttpd
|
||||
chmod 644 %{_sysconfdir}/logrotate.d/lighttpd
|
||||
fi
|
||||
|
||||
# /etc/rc.d/init.d/lighttpd is not a config file, so replace it here if it doesn't match
|
||||
cmp --quiet %{_datadir}/starlingx/lighttpd.init %{_sysconfdir}/rc.d/init.d/lighttpd
|
||||
if [ $? -ne 0 ]; then
|
||||
cp --preserve=xattr -f %{_datadir}/starlingx/lighttpd.init %{_sysconfdir}/rc.d/init.d/lighttpd
|
||||
chmod 755 %{_sysconfdir}/rc.d/init.d/lighttpd
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
%{_datadir}/starlingx/lighttpd.conf
|
||||
%{_datadir}/starlingx/lighttpd.logrotate
|
||||
%{_datadir}/starlingx/lighttpd.init
|
||||
%dir /var/www/pages/
|
||||
/var/www/pages/*
|
||||
%config(noreplace) %{_sysconfdir}/lighttpd/lighttpd-inc.conf
|
||||
/var/www/pages/index.html
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,49 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: StarlingX logrotate Configuration File
|
||||
Name: logrotate-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: config-files
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
Requires: logrotate
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
%description
|
||||
StarlingX logrotate configuration file
|
||||
|
||||
%prep
|
||||
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/cron.d
|
||||
install -m 644 logrotate-cron.d %{buildroot}%{_sysconfdir}/cron.d/logrotate
|
||||
install -d %{buildroot}%{_datadir}/starlingx
|
||||
install -m 644 logrotate.conf %{buildroot}%{_datadir}/starlingx/logrotate.conf
|
||||
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
cp -f %{_datadir}/starlingx/logrotate.conf %{_sysconfdir}/logrotate.conf
|
||||
chmod 644 %{_sysconfdir}/logrotate.conf
|
||||
mv %{_sysconfdir}/cron.daily/logrotate %{_sysconfdir}/logrotate.cron
|
||||
chmod 700 %{_sysconfdir}/logrotate.cron
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
%{_sysconfdir}/cron.d/logrotate
|
||||
%{_datadir}/starlingx/logrotate.conf
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,36 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: memcached-custom
|
||||
Name: memcached-custom
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: base
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
BuildArch: noarch
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
Summary: package memcached service files to system folder.
|
||||
|
||||
%description
|
||||
package memcached service files to system folder.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
%{__install} -d %{buildroot}%{_sysconfdir}/systemd/system
|
||||
%{__install} -m 644 -p memcached.service %{buildroot}%{_sysconfdir}/systemd/system/memcached.service
|
||||
|
||||
%post
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_sysconfdir}/systemd/system/memcached.service
|
||||
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,31 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2020 Wind River Systems, Inc.
|
||||
#
|
||||
Summary: multus-config
|
||||
Name: multus-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: base
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
BuildArch: noarch
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
Summary: package StarlingX configuration files of multus to system folder.
|
||||
|
||||
%description
|
||||
package StarlingX configuration files of multus to system folder.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%install
|
||||
%{__install} -d %{buildroot}%{_sysconfdir}/logrotate.d
|
||||
%{__install} -m 0644 multus.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/multus.logrotate
|
||||
|
||||
|
||||
%files
|
||||
%{_sysconfdir}/logrotate.d/multus.logrotate
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,67 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: nfs-utils-config
|
||||
Name: nfs-utils-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: base
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
BuildArch: noarch
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
Requires: nfs-utils
|
||||
Summary: package customized configuration and service files of nfs-utils to system folder.
|
||||
|
||||
%description
|
||||
package customized configuration and service files of nfs-utils to system folder.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
install -d %{buildroot}%{_sysconfdir}/init.d
|
||||
install -d %{buildroot}%{_unitdir}
|
||||
install -d %{buildroot}%{_datadir}/starlingx
|
||||
install -m 755 -p -D nfscommon %{buildroot}%{_sysconfdir}/init.d
|
||||
install -m 644 -p -D nfscommon.service %{buildroot}%{_unitdir}
|
||||
install -m 755 -p -D nfsserver %{buildroot}%{_sysconfdir}/init.d
|
||||
install -m 644 -p -D nfsserver.service %{buildroot}%{_unitdir}
|
||||
install -m 644 -p -D nfsmount.conf %{buildroot}%{_datadir}/starlingx/stx.nfsmount.conf
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
# Initial installation
|
||||
cp -f %{_datadir}/starlingx/stx.nfsmount.conf %{_sysconfdir}/nfsmount.conf
|
||||
chmod 644 %{_sysconfdir}/nfsmount.conf
|
||||
fi
|
||||
# STX - disable these service files as rpc-statd is started by nfscommon
|
||||
%{_bindir}/systemctl disable rpc-statd.service
|
||||
%{_bindir}/systemctl disable rpc-statd-notify.service
|
||||
%{_bindir}/systemctl disable nfs-lock.service
|
||||
%{_bindir}/systemctl disable nfslock.service
|
||||
|
||||
%{_bindir}/systemctl enable nfscommon.service >/dev/null 2>&1 || :
|
||||
%{_bindir}/systemctl enable nfsserver.service >/dev/null 2>&1 || :
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
# pre uninstall
|
||||
%{_bindir}/systemctl disable nfscommon.service >/dev/null 2>&1 || :
|
||||
%{_bindir}/systemctl disable nfsserver.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_sysconfdir}/init.d/nfscommon
|
||||
%{_unitdir}/nfscommon.service
|
||||
%{_sysconfdir}/init.d/nfsserver
|
||||
%{_unitdir}/nfsserver.service
|
||||
%{_datadir}/starlingx/stx.nfsmount.conf
|
@ -1,2 +0,0 @@
|
||||
COPY_LIST="files/*"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,50 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: StarlingX ntp Configuration File
|
||||
Name: ntp-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: config-files
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
|
||||
Source0: LICENSE
|
||||
Source1: ntpd.sysconfig
|
||||
Source2: ntp.conf
|
||||
|
||||
BuildArch: noarch
|
||||
Requires: ntp
|
||||
Requires: ntpdate
|
||||
Requires: ntp-perl
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
%description
|
||||
StarlingX ntp configuration file
|
||||
|
||||
%install
|
||||
install -d %{buildroot}%{_datadir}/starlingx
|
||||
install -D -m644 %{SOURCE1} %{buildroot}%{_datadir}/starlingx/ntpd.sysconfig
|
||||
install -D -m644 %{SOURCE2} %{buildroot}%{_datadir}/starlingx/ntp.conf
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
cp -f %{_datadir}/starlingx/ntpd.sysconfig %{_sysconfdir}/sysconfig/ntpd
|
||||
cp -f %{_datadir}/starlingx/ntp.conf %{_sysconfdir}/ntp.conf
|
||||
chmod 644 %{_sysconfdir}/sysconfig/ntpd
|
||||
chmod 644 %{_sysconfdir}/ntp.conf
|
||||
fi
|
||||
|
||||
%preun
|
||||
|
||||
%postun
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license ../SOURCES/LICENSE
|
||||
%{_datadir}/starlingx/ntpd.sysconfig
|
||||
%{_datadir}/starlingx/ntp.conf
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,60 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: StarlingX openldap Configuration File
|
||||
Name: openldap-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: config-files
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
Requires: openldap-servers
|
||||
|
||||
%define debug_package %{nil}
|
||||
%define local_systemd_system %{_sysconfdir}/systemd/system
|
||||
|
||||
%description
|
||||
StarlingX openldap configuration file
|
||||
|
||||
%prep
|
||||
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
install -d %{buildroot}%{local_systemd_system}
|
||||
install -d %{buildroot}%{_sysconfdir}/rc.d/init.d
|
||||
install -m 755 initscript %{buildroot}%{_sysconfdir}/rc.d/init.d/openldap
|
||||
install -d -m 740 %{buildroot}%{_sysconfdir}/openldap
|
||||
install -m 600 slapd.conf %{buildroot}%{_sysconfdir}/openldap/slapd.conf
|
||||
install -m 600 initial_config.ldif %{buildroot}%{_sysconfdir}/openldap/initial_config.ldif
|
||||
install -m 600 certs.ldif %{buildroot}%{_sysconfdir}/openldap/certs.ldif
|
||||
install -p -D -m 644 slapd.syslog-ng.conf %{buildroot}%{_sysconfdir}/syslog-ng/conf.d/slapd.conf
|
||||
|
||||
install -d %{buildroot}%{_datadir}/starlingx
|
||||
install -m 644 slapd.service %{buildroot}%{local_systemd_system}/slapd.service
|
||||
install -m 644 slapd.sysconfig %{buildroot}%{_datadir}/starlingx/slapd.sysconfig
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
cp -f %{_datadir}/starlingx/slapd.sysconfig %{_sysconfdir}/sysconfig/slapd
|
||||
chmod 644 %{_unitdir}/slapd
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
%{_sysconfdir}/rc.d/init.d/openldap
|
||||
%{_sysconfdir}/openldap/slapd.conf
|
||||
%{_sysconfdir}/openldap/initial_config.ldif
|
||||
%{_sysconfdir}/openldap/certs.ldif
|
||||
%{_sysconfdir}/syslog-ng/conf.d/slapd.conf
|
||||
%{local_systemd_system}/slapd.service
|
||||
%{_datadir}/starlingx/slapd.sysconfig
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,48 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: openssh-config
|
||||
Name: openssh-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: base
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
BuildArch: noarch
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
Requires: %{_bindir}/systemctl
|
||||
Requires: openssh-clients
|
||||
Requires: openssh-server
|
||||
|
||||
Summary: package StarlingX configuration files of openssh to system folder.
|
||||
|
||||
%description
|
||||
package StarlingX configuration files of openssh to system folder.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
%{__install} -d %{buildroot}%{_datadir}/starlingx
|
||||
%{__install} -d %{buildroot}%{_sysconfdir}/systemd/system
|
||||
%{__install} -m 644 sshd.service %{buildroot}%{_sysconfdir}/systemd/system/sshd.service
|
||||
%{__install} -m 644 ssh_config %{buildroot}%{_datadir}/starlingx/ssh_config
|
||||
%{__install} -m 600 sshd_config %{buildroot}%{_datadir}/starlingx/sshd_config
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
# Initial installation
|
||||
cp -f %{_datadir}/starlingx/ssh_config %{_sysconfdir}/ssh/ssh_config
|
||||
cp -f %{_datadir}/starlingx/sshd_config %{_sysconfdir}/ssh/sshd_config
|
||||
fi
|
||||
|
||||
%files
|
||||
%{_sysconfdir}/systemd/system/sshd.service
|
||||
%{_datadir}/starlingx/ssh_config
|
||||
%{_datadir}/starlingx/sshd_config
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,48 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: StarlingX openvswitch Configuration File
|
||||
Name: openvswitch-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: config-files
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
Requires: openvswitch
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
%description
|
||||
StarlingX openvswitch configuration file
|
||||
|
||||
%prep
|
||||
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
install -d -m 0755 %{buildroot}%{_sysconfdir}/openvswitch
|
||||
install -m 0644 ovsdb-server.pmon.conf %{buildroot}%{_sysconfdir}/openvswitch/ovsdb-server.pmon.conf
|
||||
install -m 0644 ovs-vswitchd.pmon.conf %{buildroot}%{_sysconfdir}/openvswitch/ovs-vswitchd.pmon.conf
|
||||
install -d %{buildroot}%{_datadir}/starlingx
|
||||
install -m 0640 etc_logrotate.d_openvswitch %{buildroot}%{_datadir}/starlingx/etc_logrotate.d_openvswitch
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
cp -f %{_datadir}/starlingx/etc_logrotate.d_openvswitch %{_sysconfdir}/logrotate.d/openvswitch
|
||||
chmod 644 %{_sysconfdir}/logrotate.d/openvswitch
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
%config(noreplace) %{_sysconfdir}/openvswitch/ovsdb-server.pmon.conf
|
||||
%config(noreplace) %{_sysconfdir}/openvswitch/ovs-vswitchd.pmon.conf
|
||||
%{_datadir}/starlingx/etc_logrotate.d_openvswitch
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,58 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: pam-config
|
||||
Name: pam-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: base
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
BuildArch: noarch
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
Requires: pam
|
||||
Requires: openssh
|
||||
Summary: package StarlingX configuration files of pam to system folder.
|
||||
|
||||
%description
|
||||
package StarlingX configuration files of pam to system folder.
|
||||
|
||||
%define _pamconfdir %{_sysconfdir}/pam.d
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
%{__install} -d %{buildroot}%{_pamconfdir}
|
||||
%{__install} -d %{buildroot}%{_datadir}/starlingx
|
||||
%{__install} -m 644 sshd.pam %{buildroot}%{_datadir}/starlingx/sshd.pam
|
||||
%{__install} -m 644 common-account %{buildroot}%{_pamconfdir}/common-account
|
||||
%{__install} -m 644 common-auth %{buildroot}%{_pamconfdir}/common-auth
|
||||
%{__install} -m 644 common-password %{buildroot}%{_pamconfdir}/common-password
|
||||
%{__install} -m 644 common-session %{buildroot}%{_pamconfdir}/common-session
|
||||
%{__install} -m 644 common-session-noninteractive %{buildroot}%{_pamconfdir}/common-session-noninteractive
|
||||
%{__install} -m 644 system-auth.pamd %{buildroot}%{_datadir}/starlingx/stx.system-auth
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
# Initial installation
|
||||
cp -f %{_datadir}/starlingx/stx.system-auth %{_pamconfdir}/system-auth-local
|
||||
cp -f %{_datadir}/starlingx/sshd.pam %{_pamconfdir}/sshd
|
||||
cd %{_pamconfdir}
|
||||
ln -sf system-auth-local system-auth
|
||||
fi
|
||||
|
||||
%files
|
||||
%{_datadir}/starlingx/stx.system-auth
|
||||
%{_datadir}/starlingx/sshd.pam
|
||||
%config(noreplace) %{_pamconfdir}/common-account
|
||||
%config(noreplace) %{_pamconfdir}/common-auth
|
||||
%config(noreplace) %{_pamconfdir}/common-password
|
||||
%config(noreplace) %{_pamconfdir}/common-session
|
||||
%config(noreplace) %{_pamconfdir}/common-session-noninteractive
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,40 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2022 Wind River Systems, Inc.
|
||||
#
|
||||
Summary: python-siteconfig
|
||||
Name: python-siteconfig
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: base
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
BuildArch: noarch
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
%define pythonroot /usr/lib64/python2.7/site-packages
|
||||
%define stx_app_plugind /var/stx_app/plugins
|
||||
|
||||
Summary: package StarlingX configuration files for additional site-package.
|
||||
|
||||
%description
|
||||
package StarlingX configuration files for additional site-package.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{pythonroot}
|
||||
%{__install} -p -D -m 0755 sitecustomize.py %{buildroot}%{pythonroot}/sitecustomize.py
|
||||
|
||||
%post
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{pythonroot}/sitecustomize.py
|
||||
%{pythonroot}/sitecustomize.pyc
|
||||
%{pythonroot}/sitecustomize.pyo
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,47 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: rabbitmq-server-config
|
||||
Name: rabbitmq-server-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: base
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
BuildArch: noarch
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
Requires: %{_bindir}/systemctl
|
||||
Requires: rabbitmq-server
|
||||
Summary: package StarlingX configuration files of rabbitmq-server to system folder.
|
||||
|
||||
%description
|
||||
package StarlingX configuration files of rabbitmq-server to system folder.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
%{__install} -d %{buildroot}%{_exec_prefix}/lib/ocf/resource.d/rabbitmq
|
||||
%{__install} -d %{buildroot}%{_sysconfdir}/systemd/system
|
||||
%{__install} -d %{buildroot}%{_datadir}/starlingx
|
||||
|
||||
%{__install} -m 0755 rabbitmq-server.ocf %{buildroot}%{_exec_prefix}/lib/ocf/resource.d/rabbitmq/stx.rabbitmq-server
|
||||
%{__install} -m 0644 rabbitmq-server.service.example %{buildroot}%{_sysconfdir}/systemd/system/rabbitmq-server.service
|
||||
%{__install} -m 0644 rabbitmq-server.logrotate %{buildroot}%{_datadir}/starlingx/stx.rabbitmq-server.logrotate
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
# Initial installation
|
||||
cp -f %{_datadir}/starlingx/stx.rabbitmq-server.logrotate %{_sysconfdir}/logrotate.d/rabbitmq-server
|
||||
fi
|
||||
|
||||
%files
|
||||
%{_exec_prefix}/lib/ocf/resource.d/rabbitmq/stx.rabbitmq-server
|
||||
%{_sysconfdir}/systemd/system/rabbitmq-server.service
|
||||
%{_datadir}/starlingx/stx.rabbitmq-server.logrotate
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,39 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: rsync-config
|
||||
Name: rsync-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: base
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
BuildArch: noarch
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
Requires: rsync
|
||||
Summary: package StarlingX configuration files of rsync to system folder.
|
||||
|
||||
%description
|
||||
package StarlingX configuration files of rsync to system folder.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
%{__install} -d %{buildroot}%{_datadir}/starlingx/
|
||||
%{__install} -m 644 rsyncd.conf %{buildroot}%{_datadir}/starlingx/stx.rsyncd.conf
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
# Initial installation
|
||||
cp -f %{_datadir}/starlingx/stx.rsyncd.conf %{_sysconfdir}/rsyncd.conf
|
||||
fi
|
||||
|
||||
%files
|
||||
%{_datadir}/starlingx/stx.rsyncd.conf
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,46 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: setup-config
|
||||
Name: setup-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: base
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
BuildArch: noarch
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
Requires: setup
|
||||
Summary: package StarlingX configuration files of setup to system folder.
|
||||
|
||||
%description
|
||||
package StarlingX configuration files of setup to system folder.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
%{__install} -d %{buildroot}%{_sysconfdir}/profile.d
|
||||
%{__install} -d %{buildroot}%{_datadir}/starlingx
|
||||
%{__install} -m 644 motd %{buildroot}%{_datadir}/starlingx/stx.motd
|
||||
%{__install} -m 644 prompt.sh %{buildroot}%{_sysconfdir}/profile.d/prompt.sh
|
||||
%{__install} -m 644 custom.sh %{buildroot}%{_sysconfdir}/profile.d/custom.sh
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
# Initial installation
|
||||
cp -f %{_datadir}/starlingx/stx.motd %{_sysconfdir}/motd
|
||||
chmod 600 %{_sysconfdir}/{exports,fstab}
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_datadir}/starlingx/stx.motd
|
||||
%{_sysconfdir}/profile.d/prompt.sh
|
||||
%{_sysconfdir}/profile.d/custom.sh
|
@ -1,2 +0,0 @@
|
||||
COPY_LIST="files/*"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,55 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: StarlingX shadow-utils Configuration File
|
||||
Name: shadow-utils-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: config-files
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
|
||||
Source0: LICENSE
|
||||
Source1: login.defs
|
||||
Source2: clear_shadow_locks.service
|
||||
|
||||
BuildArch: noarch
|
||||
# systemd provides %{_unitdir}
|
||||
BuildRequires: systemd
|
||||
Requires: setup
|
||||
Requires: shadow-utils
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
%description
|
||||
StarlingX shadow-utils configuration file
|
||||
|
||||
%install
|
||||
install -d %{buildroot}%{_sysconfdir}
|
||||
install -d %{buildroot}%{_datadir}/starlingx
|
||||
install -D -m644 %{SOURCE1} %{buildroot}%{_datadir}/starlingx/login.defs
|
||||
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/init.d
|
||||
install -D -m644 %{SOURCE2} %{buildroot}%{_unitdir}/clear_shadow_locks.service
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
cp -f %{_datadir}/starlingx/login.defs %{_sysconfdir}/
|
||||
chmod 644 %{_sysconfdir}/login.defs
|
||||
fi
|
||||
%systemd_post clear_shadow_locks.service
|
||||
|
||||
%preun
|
||||
%systemd_preun clear_shadow_locks.service
|
||||
|
||||
%postun
|
||||
%systemd_postun_with_restart clear_shadow_locks.service
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license ../SOURCES/LICENSE
|
||||
%{_unitdir}/clear_shadow_locks.service
|
||||
%{_datadir}/starlingx/login.defs
|
@ -1,2 +0,0 @@
|
||||
COPY_LIST="files/*"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,36 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: StarlingX Sudo Configuration File
|
||||
Name: sudo-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: base
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
|
||||
Source0: sysadmin.sudo
|
||||
Source1: LICENSE
|
||||
|
||||
%define SYSADMIN_P 4SuW8cnXFyxsk
|
||||
|
||||
%description
|
||||
StarlingX sudo configuration file
|
||||
|
||||
%install
|
||||
install -d %{buildroot}/%{_sysconfdir}/sudoers.d
|
||||
install -m 440 %{SOURCE0} %{buildroot}/%{_sysconfdir}/sudoers.d/sysadmin
|
||||
|
||||
%pre
|
||||
getent group sys_protected >/dev/null || groupadd -f -g 345 sys_protected
|
||||
getent passwd sysadmin > /dev/null || \
|
||||
useradd -m -g sys_protected -G root \
|
||||
-d /home/sysadmin -p %{SYSADMIN_P} \
|
||||
-s /bin/sh sysadmin 2> /dev/null || :
|
||||
|
||||
%files
|
||||
%license ../SOURCES/LICENSE
|
||||
%config(noreplace) %{_sysconfdir}/sudoers.d/sysadmin
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,73 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: StarlingX syslog-ng Configuration File
|
||||
Name: syslog-ng-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: config-files
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
# systemd provides %{_unitdir}
|
||||
BuildRequires: systemd
|
||||
Requires: syslog-ng
|
||||
Requires: syslog-ng-libdbi
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
%description
|
||||
StarlingX syslog-ng configuration file
|
||||
|
||||
%prep
|
||||
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
install -d %{buildroot}%{_datadir}/starlingx
|
||||
install -D -m644 syslog-ng.conf %{buildroot}%{_datadir}/starlingx/syslog-ng.conf
|
||||
install -D -m644 syslog-ng.logrotate %{buildroot}%{_datadir}/starlingx/syslog-ng.logrotate
|
||||
install -D -m644 remotelogging.conf %{buildroot}%{_sysconfdir}/syslog-ng/remotelogging.conf
|
||||
|
||||
install -d %{buildroot}%{_sbindir}
|
||||
install -D -m700 fm_event_syslogger %{buildroot}%{_sbindir}/fm_event_syslogger
|
||||
install -D -m755 sshlog %{buildroot}%{_sbindir}/sshlog
|
||||
|
||||
install -D -m644 syslog-ng.service %{buildroot}%{_datadir}/starlingx/syslog-ng.service
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
cp -f %{_datadir}/starlingx/syslog-ng.conf %{_sysconfdir}/syslog-ng/syslog-ng.conf
|
||||
chmod 644 %{_sysconfdir}/syslog-ng/syslog-ng.conf
|
||||
cp -f %{_datadir}/starlingx/syslog-ng.logrotate %{_sysconfdir}/logrotate.d/syslog
|
||||
chmod 644 %{_sysconfdir}/logrotate.d/syslog
|
||||
cp -f %{_datadir}/starlingx/syslog-ng.service %{_unitdir}/syslog-ng.service
|
||||
chmod 644 %{_unitdir}/syslog-ng.service
|
||||
fi
|
||||
ldconfig
|
||||
%systemd_post syslog-ng.service
|
||||
|
||||
%preun
|
||||
%systemd_preun syslog-ng.service
|
||||
|
||||
%postun
|
||||
ldconfig
|
||||
%systemd_postun_with_restart syslog-ng.service
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
%config(noreplace) %{_sysconfdir}/syslog-ng/remotelogging.conf
|
||||
%{_datadir}/starlingx/syslog-ng.conf
|
||||
%{_datadir}/starlingx/syslog-ng.logrotate
|
||||
%{_datadir}/starlingx/syslog-ng.service
|
||||
%{_sbindir}/fm_event_syslogger
|
||||
%{_sbindir}/sshlog
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,61 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: StarlingX systemd Configuration File
|
||||
Name: systemd-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: config-files
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: systemd = 219-78.el7_9.3
|
||||
Requires: systemd
|
||||
|
||||
%define debug_package %{nil}
|
||||
%define local_udev_rules_d %{_sysconfdir}/udev/rules.d
|
||||
%define local_tmpfiles_d %{_sysconfdir}/tmpfiles.d
|
||||
%define local_systemd_system %{_sysconfdir}/systemd/system
|
||||
|
||||
%description
|
||||
StarlingX systemd configuration file
|
||||
|
||||
%prep
|
||||
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
install -d %{buildroot}%{_datadir}/starlingx
|
||||
install -d %{buildroot}%{local_udev_rules_d}
|
||||
install -d %{buildroot}%{local_tmpfiles_d}
|
||||
install -d %{buildroot}%{local_systemd_system}
|
||||
|
||||
install -m644 60-persistent-storage.rules %{buildroot}%{local_udev_rules_d}/60-persistent-storage.rules
|
||||
install -m644 journald.conf %{buildroot}%{_datadir}/starlingx/journald.conf
|
||||
install -m644 kubernetes.conf.tmpfiles.d %{buildroot}%{local_tmpfiles_d}/kubernetes.conf
|
||||
install -m644 systemd.conf.tmpfiles.d %{buildroot}%{local_tmpfiles_d}/systemd.conf
|
||||
install -m644 tmp.conf.tmpfiles.d %{buildroot}%{local_tmpfiles_d}/tmp.conf
|
||||
install -m644 tmp.mount %{buildroot}%{local_systemd_system}/tmp.mount
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
cp -f %{_datadir}/starlingx/journald.conf %{_sysconfdir}/systemd
|
||||
chmod 644 %{_sysconfdir}/systemd/journald.conf
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
%{local_udev_rules_d}/60-persistent-storage.rules
|
||||
%{_datadir}/starlingx/journald.conf
|
||||
%{local_tmpfiles_d}/kubernetes.conf
|
||||
%{local_tmpfiles_d}/systemd.conf
|
||||
%{local_tmpfiles_d}/tmp.conf
|
||||
%{local_systemd_system}/tmp.mount
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="$PKG_BASE/files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,41 +0,0 @@
|
||||
Summary: StarlingX Tuned Configuration File
|
||||
Name: tuned-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: config-files
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
Requires: tuned
|
||||
BuildArch: noarch
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
%description
|
||||
StarlingX tuned configuration file
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%install
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/systemd/system/tuned.service.d/
|
||||
install -p -m 644 tuned-stx-override.conf %{buildroot}%{_sysconfdir}/systemd/system/tuned.service.d/
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/tuned/starlingx/
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/tuned/starlingx-realtime/
|
||||
install -p -m 644 tuned.conf %{buildroot}%{_sysconfdir}/tuned/starlingx/
|
||||
install -p -m 644 tuned-realtime.conf %{buildroot}%{_sysconfdir}/tuned/starlingx-realtime/tuned.conf
|
||||
install -p -m 644 recommend.conf %{buildroot}%{_sysconfdir}/tuned/
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
%dir %{_sysconfdir}/systemd/system/tuned.service.d
|
||||
%{_sysconfdir}/systemd/system/tuned.service.d/tuned-stx-override.conf
|
||||
%dir %{_sysconfdir}/tuned/starlingx
|
||||
%config %{_sysconfdir}/tuned/starlingx/tuned.conf
|
||||
%dir %{_sysconfdir}/tuned/starlingx-realtime
|
||||
%config %{_sysconfdir}/tuned/starlingx-realtime/tuned.conf
|
||||
%config(noreplace) %{_sysconfdir}/tuned/recommend.conf
|
@ -1,2 +0,0 @@
|
||||
SRC_DIR="files"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
@ -1,47 +0,0 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
Summary: util-linux-config
|
||||
Name: util-linux-config
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: base
|
||||
Packager: StarlingX
|
||||
URL: unknown
|
||||
BuildArch: noarch
|
||||
Source: %name-%version.tar.gz
|
||||
|
||||
Requires: util-linux
|
||||
Summary: package StarlingX configuration files of util-linux to system folder.
|
||||
|
||||
%description
|
||||
package StarlingX configuration files of util-linux to system folder.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
%{__install} -d 644 %{buildroot}%{_datadir}/starlingx/
|
||||
%{__install} -m 644 stx.su %{buildroot}%{_datadir}/starlingx/stx.su
|
||||
%{__install} -m 644 stx.login %{buildroot}%{_datadir}/starlingx/stx.login
|
||||
|
||||
%post
|
||||
%define _pamconfdir %{_sysconfdir}/pam.d
|
||||
if [ $1 -eq 1 ] ; then
|
||||
cp -f %{_datadir}/starlingx/stx.su %{_pamconfdir}/su
|
||||
cp -f %{_datadir}/starlingx/stx.login %{_pamconfdir}/login
|
||||
fi
|
||||
|
||||
%preun
|
||||
|
||||
%postun
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/starlingx/stx.su
|
||||
%{_datadir}/starlingx/stx.login
|
Loading…
x
Reference in New Issue
Block a user