3
0
forked from pool/system-users

Accepting request 492513 from home:sbrabec:branches:hardware

- Add upsd for UPS daemon packages.
This is exactly equal to rq#489349, just the home directory was changed to /var/lib/empty.

OBS-URL: https://build.opensuse.org/request/show/492513
OBS-URL: https://build.opensuse.org/package/show/Base:System/system-users?expand=0&rev=14
This commit is contained in:
Thorsten Kukuk 2017-05-03 07:26:23 +00:00 committed by Git OBS Bridge
parent 39c4be5109
commit db5fa1eafe
3 changed files with 27 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,8 @@
-------------------------------------------------------------------
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}
@ -172,6 +173,15 @@ Group: System/Fhs
%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 +202,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 +230,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 +247,7 @@ 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
%pre -n system-user-upsd -f upsd.pre
%files -n system-user-uucp
%defattr(-,root,root)
@ -305,4 +318,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