!41 [sync] PR-36: Repair the warning that the user and group do not exist during installation
From: @openeuler-sync-bot Reviewed-by: @duyiwei7w Signed-off-by: @duyiwei7w
This commit is contained in:
commit
f53400834a
@ -1,17 +1,19 @@
|
||||
%bcond_without check
|
||||
%global __cargo_skip_build 0
|
||||
%global crate zincati
|
||||
%global zcuid 986
|
||||
|
||||
Name: rust-%{crate}
|
||||
Version: 0.0.27
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Update agent for NestOS
|
||||
License: Apache-2.0
|
||||
URL: https://crates.io/crates/%{crate}
|
||||
Source0: %{crate}-%{version}.crate
|
||||
Source1: https://github.com/coreos/%{crate}/releases/download/v%{version}/%{crate}-%{version}-vendor.tar.gz
|
||||
Source2: zincati-systemd-sysusers.conf
|
||||
Patch1: 0001-modify-as-nestos-stream.patch
|
||||
Patch2: 0001-modify-cincinnati-url-for-nestos.patch
|
||||
Patch2: 0002-modify-cincinnati-url-for-nestos.patch
|
||||
|
||||
BuildRequires: rust-packaging
|
||||
BuildRequires: systemd openssl-devel
|
||||
@ -50,6 +52,10 @@ License: Apache-2.0 AND BSD-3-Clause AND MIT AND (Apache-2.0 OR BSL-1.0)
|
||||
%{_datadir}/polkit-1/rules.d/zincati.rules
|
||||
%{_datadir}/polkit-1/actions/org.coreos.zincati.*
|
||||
%{_datadir}/dbus-1/system.d/*.conf
|
||||
%{_sysusersdir}/zincati.conf
|
||||
|
||||
%pre -n %{crate}
|
||||
%sysusers_create_package %{crate} %{SOURCE2}
|
||||
|
||||
%post -n %{crate}
|
||||
%systemd_post zincati.service
|
||||
@ -113,6 +119,7 @@ install -Dpm0644 -t %{buildroot}%{_datadir}/polkit-1/actions \
|
||||
dist/polkit-1/actions/org.coreos.zincati.*
|
||||
install -Dpm0644 -t %{buildroot}%{_datadir}/dbus-1/system.d \
|
||||
dist/dbus-1/system.d/*.conf
|
||||
install -Dpm644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysusersdir}/zincati.conf
|
||||
|
||||
ln -snf /run/%{crate}/public/metrics.promsock %{buildroot}/run/%{crate}/private/metrics.promsock
|
||||
|
||||
@ -122,6 +129,9 @@ ln -snf /run/%{crate}/public/metrics.promsock %{buildroot}/run/%{crate}/private/
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Thu Aug 15 2024 duyiwei <duyiwei@kylinos.cn> - 0.0.27-2
|
||||
- Repair the warning that the user and group do not exist during installation
|
||||
|
||||
* Mon Apr 15 2024 lijian <lijian2@kylinos.cn> - 0.0.27-1
|
||||
- update to 0.0.27
|
||||
- update all dependencies to latest versions
|
||||
|
||||
1
zincati-systemd-sysusers.conf
Normal file
1
zincati-systemd-sysusers.conf
Normal file
@ -0,0 +1 @@
|
||||
u zincati - "Zincati user for auto-updates" /run/zincati
|
||||
Loading…
x
Reference in New Issue
Block a user