Accepting request 516226 from home:eeich:branches:hardware

- This package should not provide the user/group powerman
  as it is the only user of this group: powermand runs as
  this user/group and writes its data as this user/group.
  This gives the sysadmin some control over who to give
  access. There is no other application requiring this 
  user/group.

- run systemd-tmpfiles --create ... before starting service (bsc#1053481).

OBS-URL: https://build.opensuse.org/request/show/516226
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=37
This commit is contained in:
Egbert Eich 2017-08-11 20:02:07 +00:00 committed by Git OBS Bridge
parent a550feb55a
commit e476545775
2 changed files with 16 additions and 4 deletions

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Fri Aug 11 19:47:51 UTC 2017 - eich@suse.com
- This package should not provide the user/group powerman
as it is the only user of this group: powermand runs as
this user/group and writes its data as this user/group.
This gives the sysadmin some control over who to give
access. There is no other application requiring this
user/group.
-------------------------------------------------------------------
Fri Aug 11 18:04:54 UTC 2017 - eich@suse.com
- run systemd-tmpfiles --create ... before starting service (bsc#1053481).
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jun 15 15:20:21 UTC 2017 - jjolly@suse.com Thu Jun 15 15:20:21 UTC 2017 - jjolly@suse.com

View File

@ -50,9 +50,6 @@ BuildRequires: pkgconfig(systemd)
Requires(pre): shadow Requires(pre): shadow
Provides: group(%powerman_g)
Provides: user(%powerman_u)
%description %description
PowerMan is a tool for manipulating remote power control (RPC) devices from a PowerMan is a tool for manipulating remote power control (RPC) devices from a
central location. Several RPC varieties are supported natively by PowerMan and central location. Several RPC varieties are supported natively by PowerMan and
@ -110,8 +107,8 @@ getent passwd %powerman_u >/dev/null || useradd -r -g %powerman_g -M -s /bin/fal
exit 0 exit 0
%post %post
%service_add_post %{name}.service
systemd-tmpfiles --create %{_tmpfilesdir}/powerman.conf systemd-tmpfiles --create %{_tmpfilesdir}/powerman.conf
%service_add_post %{name}.service
%preun %preun
%service_del_preun %{name}.service %service_del_preun %{name}.service