Hello community,

here is the log from the commit of package conman for openSUSE:Factory checked 
in at 2017-10-09 19:47:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/conman (Old)
 and      /work/SRC/openSUSE:Factory/.conman.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "conman"

Mon Oct  9 19:47:06 2017 rev:5 rq:532666 version:0.2.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/conman/conman.changes    2017-10-07 
17:51:36.060836558 +0200
+++ /work/SRC/openSUSE:Factory/.conman.new/conman.changes       2017-10-09 
19:48:45.662160219 +0200
@@ -1,0 +2,6 @@
+Mon Oct  9 06:39:12 UTC 2017 - [email protected]
+
+- Set usr/group for conman to root/root on SLE12 for backward
+  compatibility.
+
+-------------------------------------------------------------------

Old:
----
  conman.service

New:
----
  conman.service.in

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ conman.spec ++++++
--- /var/tmp/diff_new_pack.lMP7qf/_old  2017-10-09 19:48:46.298132268 +0200
+++ /var/tmp/diff_new_pack.lMP7qf/_new  2017-10-09 19:48:46.302132092 +0200
@@ -25,8 +25,13 @@
 %endif
 
 %if 0%{?have_systemd}
+ %if 0%{?sle_version} >= 150000 || 0%{?is_opensuse}
  %define conman_g %name
  %define conman_u %name
+ %else
+  %define conman_g root
+  %define conman_u root
+ %endif
 %else
  %define conman_g root
  %define conman_u daemon
@@ -49,7 +54,7 @@
 BuildRequires:  freeipmi-devel
 %endif
 Source0:        https://github.com/dun/conman/archive/%{name}-%{version}.tar.gz
-Source1:        %{name}.service
+Source1:        %{name}.service.in
 %if 0%{?have_systemd}
 BuildRequires:  systemd
 BuildRequires:  systemd-rpm-macros
@@ -95,7 +100,9 @@
 %make_install
 
 %if 0%{?have_systemd}
-install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
+mkdir -p %{buildroot}%{_unitdir}
+sed -e "s/@conman_u@/%conman_u/" -e "s/@conman_g@/%conman_g/" <%{SOURCE1} 
>%{buildroot}%{_unitdir}/%{name}.service
+chmod 0644 %{buildroot}%{_unitdir}/%{name}.service
 rm -rf %{buildroot}%{_sysconfdir}/init.d
 ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcconman
 %else

++++++ conman.service.in ++++++
[Unit]
Description=ConMan Console Management Daemon
After=network.target

[Service]
Type=forking
User=@conman_u@
Group=@conman_g@
ExecStart=/usr/sbin/conmand -c /etc/conman.conf

[Install]
WantedBy=multi-user.target

Reply via email to