integ/filesystem/iscsi-initiator-utils-config/centos/iscsi-initiator-utils-config.spec
zhipengl 920fcb818c Remove last patch of iscsi-initiator-utils
As we see in the patch, it changes %dir to %ghost to avoid RPM audit.
If we move the config file mod change to config package and use RPM
instead of SRPM, we have no audit issue anymore and can ignore related
change.
Deployment test pass and related file check pass!

Story: 2003768
Task: 28459
Depends-on: https://review.openstack.org/#/c/624584/

Change-Id: Ic23ccd740520e1942b3118a84cb03aef5f388332
Signed-off-by: zhipengl <zhipengs.liu@intel.com>
2018-12-12 23:09:56 +08:00

46 lines
1.3 KiB
RPMSpec

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