From 71f1cecf607f118756c8572580a26cac596af74c63b3b746401b3fe3db8a67b2 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 30 Jan 2021 08:19:22 +0000 Subject: [PATCH] Accepting request 865253 from home:kukuk:branches:network - Use system wide tftp user/group, don't create them again OBS-URL: https://build.opensuse.org/request/show/865253 OBS-URL: https://build.opensuse.org/package/show/network/atftp?expand=0&rev=46 --- atftp.changes | 5 +++++ atftp.spec | 12 ++---------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/atftp.changes b/atftp.changes index 3601439..3cb5c56 100644 --- a/atftp.changes +++ b/atftp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 21 08:30:09 UTC 2021 - Thorsten Kukuk + +- Use system wide tftp user/group, don't create them again + ------------------------------------------------------------------- Wed Oct 21 18:19:51 UTC 2020 - Pedro Monreal diff --git a/atftp.spec b/atftp.spec index b2b5237..706ad9b 100644 --- a/atftp.spec +++ b/atftp.spec @@ -1,7 +1,7 @@ # # spec file for package atftp # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -52,14 +52,13 @@ BuildRequires: pcre-devel BuildRequires: readline-devel BuildRequires: tcpd-devel Requires(pre): %fillup_prereq -Requires(pre): pwdutils +Requires(pre): user(tftp) group(tftp) Recommends: logrotate Conflicts: tftp Provides: tftp(client) Provides: tftp(server) BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: systemd-rpm-macros -%{?systemd_requires} %description atftp stands for Advanced Trivial File Transfer Protocol. It is called @@ -98,13 +97,6 @@ install -d -m 0755 %{buildroot}/srv/tftpboot install -d -m 0750 %{buildroot}%{_localstatedir}/log/atftpd %pre -# This group/user is shared with tftp, so please -# keep this in sync with tftp.spec -# add group -%{_sbindir}/groupadd -r tftp 2>/dev/null || : -# add user -%{_sbindir}/useradd -c "TFTP account" -d /srv/tftpboot -G tftp -g tftp \ - -r -s /bin/false tftp 2>/dev/null || : # fix sysconfig to get new defaults on Update if [ -f %{_sysconfdir}/sysconfig/atftpd ]; then sed -i -e "s@^\(ATFTPD_OPTIONS=\"--daemon \"\)@#\1@" %{_sysconfdir}/sysconfig/atftpd