54f2f7d6c6
OSTree structure requires /usr to be readonly as OSTree's dracut hook creates a read-only bind mount over /usr. 1. deploy validate_postgresql_connection.sh directly to /usr/local/bin. It was copied to the location after installation. 2. move /usr/local/etc/ldapscripts to /etc/ldapscripts, files need writable. 3. move /usr/libexec/cni to /opt/cni/bin. Plugins are installed at runtime. TCs: provision aio-dx centos with /usr mount to readonly fs. unlocked host provision aio-sx debian and unlocked host. upgrade AIO-DX from 21.12 upgrade AIO-SX from 21.12 successfully apply cert-manager and nginx-ingress-controller Story: 2009101 Task: 44314 Change-Id: I99231f3f7db3d2d8eaceba137e13dea650370f71 Signed-off-by: Bin Qian <bin.qian@windriver.com>
72 lines
1.9 KiB
RPMSpec
72 lines
1.9 KiB
RPMSpec
Name: ldapscripts
|
|
Version: 2.0.8
|
|
Release: 0%{?_tis_dist}.%{tis_patch_ver}
|
|
Summary: ldapscripts
|
|
|
|
Group: base
|
|
License: GPLv2
|
|
URL: unknown
|
|
Source0: %{name}-%{version}.tgz
|
|
Source1: ldapscripts.conf.cgcs
|
|
Source2: ldapadduser.template.cgcs
|
|
Source3: ldapaddgroup.template.cgcs
|
|
Source4: ldapmoduser.template.cgcs
|
|
Source5: ldapaddsudo.template.cgcs
|
|
Source6: ldapmodsudo.template.cgcs
|
|
Source7: ldapscripts.passwd
|
|
|
|
Patch0: sudo-support.patch
|
|
Patch1: sudo-delete-support.patch
|
|
Patch2: log_timestamp.patch
|
|
Patch3: ldap-user-setup-support.patch
|
|
Patch4: allow-anonymous-bind-for-ldap-search.patch
|
|
Patch5: install-ldapscripts-files-to-etc.patch
|
|
|
|
%define debug_package %{nil}
|
|
|
|
# BuildRequires:
|
|
# Requires:
|
|
|
|
%description
|
|
Shell scripts that allow to manage POSIX accounts (users, groups, machines) in an LDAP directory.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
%patch5 -p1
|
|
|
|
%build
|
|
|
|
%install
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
rm -Rf %{buildroot}/usr/local/man
|
|
rm -f %{buildroot}/usr/local/sbin/*machine*
|
|
rm -f %{buildroot}/usr/local/etc/ldapscripts/ldapaddmachine.template.sample
|
|
install -d %{buildroot}/usr/local/etc/
|
|
install -d %{buildroot}/etc/ldapscripts/
|
|
install -m 644 %{SOURCE1} %{buildroot}/etc/ldapscripts/ldapscripts.conf
|
|
install -m 644 %{SOURCE2} %{buildroot}/etc/ldapscripts/ldapadduser.template.cgcs
|
|
install -m 644 %{SOURCE3} %{buildroot}/etc/ldapscripts/ldapaddgroup.template.cgcs
|
|
install -m 644 %{SOURCE4} %{buildroot}/etc/ldapscripts/ldapmoduser.template.cgcs
|
|
install -m 644 %{SOURCE5} %{buildroot}/etc/ldapscripts/ldapaddsudo.template.cgcs
|
|
install -m 644 %{SOURCE6} %{buildroot}/etc/ldapscripts/ldapmodsudo.template.cgcs
|
|
install -m 600 %{SOURCE7} %{buildroot}/etc/ldapscripts/ldapscripts.passwd
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%dir /etc/ldapscripts/
|
|
%dir /usr/local/lib/ldapscripts/
|
|
/usr/local/sbin/*
|
|
%config(noreplace) /etc/ldapscripts/ldapscripts.passwd
|
|
/etc/ldapscripts/*
|
|
/usr/local/lib/ldapscripts/*
|
|
|
|
|
|
%changelog
|
|
|