SHA256
1
0
forked from pool/system-users
Dominique Leuenberger 2019-08-15 10:27:04 +00:00 committed by Git OBS Bridge
commit a3cd2c3cc9
4 changed files with 33 additions and 20 deletions

View File

@ -1,4 +0,0 @@
# Type Name ID GECOS [HOME]
g cpacfstats -
g ts-shell -
g zkeyadm -

3
system-user-tftp.conf Normal file
View File

@ -0,0 +1,3 @@
# Type Name ID GECOS [HOME]
g tftp -
u tftp - "TFTP Account" /srv/tftpboot

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Tue Aug 13 07:07:19 UTC 2019 - Michal Suchanek <msuchanek@suse.com>
- Remove s390 groups again. The s390-tools maintainer wants to add groups in
s390-tools manually.
-------------------------------------------------------------------
Wed Jul 31 09:55:15 UTC 2019 - Reinhard Max <max@suse.com>
- Add system-user-tftp subpackage with tftp user and group and
/srv/tftpboot as home directory [bsc#1143454].
-------------------------------------------------------------------
Thu Jan 31 13:33:05 UTC 2019 - Michal Suchanek <msuchanek@suse.de>

View File

@ -38,7 +38,7 @@ Source14: system-user-lp.conf
Source15: system-user-nobody.conf
Source16: system-user-upsd.conf
Source17: system-user-uuidd.conf
Source18: system-group-s390-tools.conf
Source19: system-user-tftp.conf
BuildRequires: sysuser-shadow
BuildRequires: sysuser-tools
BuildArch: noarch
@ -128,14 +128,6 @@ Group: System/Fhs
%description -n system-group-wheel
This package provides the system group 'wheel'.
%package -n system-group-s390-tools
Summary: System group 's390-tools'
Group: System/Fhs
%{sysusers_requires}
%description -n system-group-s390-tools
This package provides the system group 's390-tools' for s390-tools.
%package -n system-user-wwwrun
Summary: System user wwwrun and group www
Group: System/Fhs
@ -197,6 +189,14 @@ Group: System/Fhs
%description -n system-user-uuidd
This package provides the system account and group 'uuidd'.
%package -n system-user-tftp
Summary: System user and group tftp
Group: System/Fhs
%{sysusers_requires}
%description -n system-user-tftp
This package provides the system account and group 'tftp'.
%prep
%setup -q -c -T
@ -217,7 +217,7 @@ This package provides the system account and group 'uuidd'.
%sysusers_generate_pre %{SOURCE15} nobody
%sysusers_generate_pre %{SOURCE16} upsd
%sysusers_generate_pre %{SOURCE17} uuidd
%sysusers_generate_pre %{SOURCE18} s390-tools
%sysusers_generate_pre %{SOURCE19} tftp
%install
mkdir -p %{buildroot}%{_sysusersdir}
@ -230,6 +230,7 @@ mkdir -p %{buildroot}%{_localstatedir}/spool/lpd
mkdir -p %{buildroot}%{_localstatedir}/run/uuidd
mkdir -p %{buildroot}/srv/ftp
mkdir -p %{buildroot}%{_localstatedir}/lib/nobody
mkdir -p %{buildroot}/srv/tftpboot
install -m 644 %{SOURCE1} %{buildroot}%{_sysusersdir}/system-user-uucp.conf
install -m 644 %{SOURCE2} %{buildroot}%{_sysusersdir}/system-user-games.conf
install -m 644 %{SOURCE3} %{buildroot}%{_sysusersdir}/system-user-bin.conf
@ -246,7 +247,7 @@ install -m 644 %{SOURCE14} %{buildroot}%{_sysusersdir}/system-user-lp.conf
install -m 644 %{SOURCE15} %{buildroot}%{_sysusersdir}/system-user-nobody.conf
install -m 644 %{SOURCE16} %{buildroot}%{_sysusersdir}/system-user-upsd.conf
install -m 644 %{SOURCE17} %{buildroot}%{_sysusersdir}/system-user-uuidd.conf
install -m 644 %{SOURCE18} %{buildroot}%{_sysusersdir}/system-group-s390-tools.conf
install -m 644 %{SOURCE19} %{buildroot}%{_sysusersdir}/system-user-tftp.conf
%pre -n system-user-uucp -f uucp.pre
%pre -n system-user-games -f games.pre
@ -257,7 +258,6 @@ install -m 644 %{SOURCE18} %{buildroot}%{_sysusersdir}/system-group-s390-tools.c
%pre -n system-group-obsolete -f obsolete.pre
%pre -n system-group-hardware -f hardware.pre
%pre -n system-group-wheel -f wheel.pre
%pre -n system-group-s390-tools -f s390-tools.pre
%pre -n system-user-wwwrun -f wwwrun.pre
%pre -n system-user-mail -f mail.pre
%pre -n system-user-ftp -f ftp.pre
@ -268,6 +268,7 @@ install -m 644 %{SOURCE18} %{buildroot}%{_sysusersdir}/system-group-s390-tools.c
%pre -n system-user-upsd -f upsd.pre
%pre -n system-user-uuidd -f uuidd.pre
%pre -n system-user-tftp -f tftp.pre
%files -n system-user-uucp
%defattr(-,root,root)
@ -308,10 +309,6 @@ install -m 644 %{SOURCE18} %{buildroot}%{_sysusersdir}/system-group-s390-tools.c
%defattr(-,root,root)
%{_sysusersdir}/system-group-wheel.conf
%files -n system-group-s390-tools
%defattr(-,root,root)
%{_sysusersdir}/system-group-s390-tools.conf
%files -n system-user-wwwrun
%defattr(-,root,root)
%dir %attr(0755,wwwrun,root) %{_localstatedir}/lib/wwwrun
@ -345,4 +342,9 @@ install -m 644 %{SOURCE18} %{buildroot}%{_sysusersdir}/system-group-s390-tools.c
%defattr(-,root,root)
%{_sysusersdir}/system-user-uuidd.conf
%files -n system-user-tftp
%defattr(-,root,root)
%dir %attr(0755,tftp,tftp) /srv/tftpboot
%{_sysusersdir}/system-user-tftp.conf
%changelog