SHA256
1
0
forked from pool/system-users

Accepting request 492622 from Base:System

1

OBS-URL: https://build.opensuse.org/request/show/492622
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/system-users?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2017-05-10 18:32:40 +00:00 committed by Git OBS Bridge
commit 533b889926
3 changed files with 35 additions and 2 deletions

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

@ -0,0 +1,3 @@
# Type Name ID GECOS [HOME]
u upsd - "UPS daemon" /var/lib/empty
m upsd daemon

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed May 3 11:35:55 CEST 2017 - kukuk@suse.de
- /bin/bash is needed as shell for user nobody
-------------------------------------------------------------------
Tue May 2 17:51:52 CEST 2017 - sbrabec@suse.com
- Add upsd for UPS daemon packages.
-------------------------------------------------------------------
Sat Apr 1 10:58:04 UTC 2017 - kukuk@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package system-users
#
# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -37,6 +37,7 @@ Source12: system-user-mail.conf
Source13: system-user-ftp.conf
Source14: system-user-lp.conf
Source15: system-user-nobody.conf
Source16: system-user-upsd.conf
BuildRequires: systemd
BuildRequires: sysuser-tools
BuildArch: noarch
@ -46,8 +47,8 @@ This package provides various system users and their directories
%package -n system-user-bin
Summary: System user and group 'bin'
Group: System/Fhs
#!BuildIgnore: user(daemon)
Group: System/Fhs
Requires(pre): user(daemon)
%{sysusers_requires}
@ -167,11 +168,21 @@ This package provides the system account and group 'lp'.
%package -n system-user-nobody
Summary: System user and group nobody
Group: System/Fhs
Requires(pre): /usr/sbin/usermod
%{sysusers_requires}
%description -n system-user-nobody
This package provides the system account and group 'nobody'.
%package -n system-user-upsd
Summary: System user upsd
Group: System/Fhs
Requires(pre): group(daemon)
%{sysusers_requires}
%description -n system-user-upsd
This package provides the system account 'upsd'.
%prep
%setup -q -c -T
@ -192,6 +203,7 @@ This package provides the system account and group 'nobody'.
%sysusers_generate_pre %{SOURCE13} ftp
%sysusers_generate_pre %{SOURCE14} lp
%sysusers_generate_pre %{SOURCE15} nobody
%sysusers_generate_pre %{SOURCE16} upsd
%install
mkdir -p %{buildroot}%{_sysusersdir}
@ -219,6 +231,7 @@ install -m 644 %{SOURCE12} %{buildroot}%{_sysusersdir}/system-user-mail.conf
install -m 644 %{SOURCE13} %{buildroot}%{_sysusersdir}/system-user-ftp.conf
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
%pre -n system-user-uucp -f uucp.pre
%pre -n system-user-games -f games.pre
@ -235,6 +248,9 @@ install -m 644 %{SOURCE15} %{buildroot}%{_sysusersdir}/system-user-nobody.conf
%pre -n system-user-ftp -f ftp.pre
%pre -n system-user-lp -f lp.pre
%pre -n system-user-nobody -f nobody.pre
/usr/sbin/usermod -s /bin/bash nobody
%pre -n system-user-upsd -f upsd.pre
%files -n system-user-uucp
%defattr(-,root,root)
@ -305,4 +321,8 @@ install -m 644 %{SOURCE15} %{buildroot}%{_sysusersdir}/system-user-nobody.conf
%dir %attr(0755,nobody,root) %{_localstatedir}/lib/nobody
%{_sysusersdir}/system-user-nobody.conf
%files -n system-user-upsd
%defattr(-,root,root)
%{_sysusersdir}/system-user-upsd.conf
%changelog