|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
Name: insights-client
|
|
|
|
|
Summary: Uploads Insights information to Red Hat on a periodic basis
|
|
|
|
|
Version: 3.1.7
|
|
|
|
|
Release: 8%{?dist}
|
|
|
|
|
Release: 10%{?dist}
|
|
|
|
|
Source0: https://github.com/RedHatInsights/insights-client/releases/download/v%{version}/insights-client-%{version}.tar.gz
|
|
|
|
|
Epoch: 0
|
|
|
|
|
License: GPLv2+
|
|
|
|
@ -40,6 +40,7 @@ BuildRequires: binutils
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: systemd
|
|
|
|
|
BuildRequires: pam
|
|
|
|
|
Requires(post): policycoreutils-python-utils
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -62,6 +63,7 @@ Sends insightful information to Red Hat for automated analysis
|
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/log/insights-client/
|
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/insights/
|
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/cache/insights/
|
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/cache/insights-client/
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post %{name}.timer
|
|
|
|
@ -76,7 +78,7 @@ if [ -d %{_sysconfdir}/motd.d ]; then
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
semanage permissive --add insights_client_t
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun %{name}.timer
|
|
|
|
@ -88,6 +90,10 @@ fi
|
|
|
|
|
%systemd_postun %{name}.service
|
|
|
|
|
%systemd_postun %{name}-boot.service
|
|
|
|
|
|
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
|
%{_sbindir}/semanage permissive -d insights_client_t || true
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Clean up files created by insights-client that are unowned by the RPM
|
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
|
rm -f %{_sysconfdir}/cron.daily/insights-client
|
|
|
|
@ -118,6 +124,7 @@ rm -rf %{buildroot}
|
|
|
|
|
%{_defaultdocdir}/%{name}
|
|
|
|
|
%{_presetdir}/*.preset
|
|
|
|
|
%attr(700,root,root) %dir %{_localstatedir}/log/insights-client/
|
|
|
|
|
%attr(700,root,root) %dir %{_localstatedir}/cache/insights-client/
|
|
|
|
|
%attr(750,root,root) %dir %{_localstatedir}/cache/insights/
|
|
|
|
|
%attr(750,root,root) %dir %{_localstatedir}/lib/insights/
|
|
|
|
|
|
|
|
|
@ -128,6 +135,12 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Jan 04 2023 Gael Chamoulaud <gchamoul@redhat.com> 0:3.1.7-10
|
|
|
|
|
- Add /var/cache/insights-client/ directory in files directives (RHBZ#2158531)
|
|
|
|
|
|
|
|
|
|
* Fri Dec 16 2022 Alba Hita Catala <ahitacat@redhat.com> 0:3.1.7-9
|
|
|
|
|
- Set SELinux policy to permissive for insights_client_t module (RHBZ#2143307)
|
|
|
|
|
|
|
|
|
|
* Fri Apr 08 2022 Gael Chamoulaud <gchamoul@redhat.com> 0:3.1.7-8
|
|
|
|
|
- Add several insights /var directories in files directives
|
|
|
|
|
|
|
|
|
|