Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package etcd for openSUSE:Factory checked in at 2021-08-12 09:01:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/etcd (Old) and /work/SRC/openSUSE:Factory/.etcd.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "etcd" Thu Aug 12 09:01:09 2021 rev:28 rq:911064 version:3.4.16 Changes: -------- --- /work/SRC/openSUSE:Factory/etcd/etcd.changes 2021-05-19 17:49:03.405615999 +0200 +++ /work/SRC/openSUSE:Factory/.etcd.new.1899/etcd.changes 2021-08-12 09:01:59.862119288 +0200 @@ -1,0 +2,10 @@ +Mon Aug 9 14:22:24 UTC 2021 - Thorsten Kukuk <[email protected]> + +- Don't require systemd (works without, too) + +------------------------------------------------------------------- +Sun Aug 8 19:17:44 UTC 2021 - Callum Farmer <[email protected]> + +- Change to sysuser-tools to create system user + +------------------------------------------------------------------- New: ---- system-user-etcd.conf ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ etcd.spec ++++++ --- /var/tmp/diff_new_pack.8w46vJ/_old 2021-08-12 09:02:00.414118408 +0200 +++ /var/tmp/diff_new_pack.8w46vJ/_new 2021-08-12 09:02:00.418118401 +0200 @@ -33,14 +33,15 @@ Source11: %{name}.conf Source12: %{name}.service Source15: README.security +Source16: system-user-etcd.conf BuildRequires: golang(API) = 1.14 BuildRequires: golang-packaging -BuildRequires: shadow +BuildRequires: sysuser-tools BuildRequires: systemd-rpm-macros BuildRequires: xz Requires(post): %fillup_prereq ExcludeArch: s390 %ix86 -%{?systemd_requires} +%sysusers_requires %{go_provides} # Make sure that the binary is not getting stripped. %{go_nostrip} @@ -74,6 +75,8 @@ go build -v -buildmode=pie -mod=vendor -o ./bin/etcd go build -v -buildmode=pie -mod=vendor -o ./bin/etcdctl ./etcdctl +%sysusers_generate_pre %{SOURCE16} %{name} system-user-etcd.conf + %install install -d %{buildroot}/%{_sbindir} install -D -m 0755 ./bin/etcd %{buildroot}/%{_sbindir}/etcd @@ -95,9 +98,9 @@ # Additional install -d -m 750 %{buildroot}%{_localstatedir}/lib/%{name} -%pre -getent group %{name} >/dev/null || %{_sbindir}/groupadd -r %{name} -getent passwd %{name} >/dev/null || %{_sbindir}/useradd -r -g %{name} -d %{_localstatedir}/lib/%{name} -s /bin/false -c "etcd daemon" %{name} +install -Dm0644 %{SOURCE16} %{buildroot}%{_sysusersdir}/system-user-etcd.conf + +%pre -f %{name}.pre %service_add_pre %{name}.service %post @@ -114,6 +117,7 @@ %license LICENSE %doc CONTRIBUTING.md README.md DCO NOTICE README.security %{_sbindir}/%{name} +%{_sysusersdir}/system-user-etcd.conf # Service %{_unitdir}/%{name}.service ++++++ system-user-etcd.conf ++++++ #Type Name ID GECOS Home directory Shell u etcd - "etcd daemon" /var/lib/etcd -
