Hello community, here is the log from the commit of package wondershaper for openSUSE:Factory checked in at 2019-03-22 15:07:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/wondershaper (Old) and /work/SRC/openSUSE:Factory/.wondershaper.new.25356 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "wondershaper" Fri Mar 22 15:07:12 2019 rev:19 rq:686935 version:1.1a Changes: -------- --- /work/SRC/openSUSE:Factory/wondershaper/wondershaper.changes 2017-11-27 22:16:58.993744351 +0100 +++ /work/SRC/openSUSE:Factory/.wondershaper.new.25356/wondershaper.changes 2019-03-22 15:07:35.757482662 +0100 @@ -1,0 +2,6 @@ +Wed Mar 20 09:03:29 UTC 2019 - [email protected] + +- Added systemd support + [bsc#1116052, wondershaper.service] + +------------------------------------------------------------------- New: ---- wondershaper.service ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ wondershaper.spec ++++++ --- /var/tmp/diff_new_pack.uCTGcD/_old 2019-03-22 15:07:36.381482122 +0100 +++ /var/tmp/diff_new_pack.uCTGcD/_new 2019-03-22 15:07:36.385482120 +0100 @@ -1,7 +1,7 @@ # # spec file for package wondershaper # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -32,6 +32,7 @@ Source0: wondershaper-1.1a.tar.bz2 Source1: sysconfig.wondershaper Source2: rcwondershaper +Source3: wondershaper.service Patch0: %{name}-%{version}.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch @@ -62,26 +63,33 @@ mv wshaper wshaper.cbq install -m 755 -d $RPM_BUILD_ROOT/usr/sbin install -m 755 -d $RPM_BUILD_ROOT%{_fillupdir} -install -m 755 -d $RPM_BUILD_ROOT/etc/init.d +install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts +install -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts +install -d $RPM_BUILD_ROOT%{_unitdir} +install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_unitdir} +install -d $RPM_BUILD_ROOT/ install -m 750 wshaper.* $RPM_BUILD_ROOT/usr/sbin/ install -m 644 sysconfig.wondershaper $RPM_BUILD_ROOT%{_fillupdir}/ -install -m 755 rcwondershaper $RPM_BUILD_ROOT/etc/init.d/wondershaper -ln -sf ../../etc/init.d/wondershaper $RPM_BUILD_ROOT/usr/sbin/rcwondershaper +ln -sf service $RPM_BUILD_ROOT/usr/sbin/rcwondershaper + +%pre +%service_add_pre wondershaper.service %post +%service_add_post wondershaper.service %{fillup_only} %preun -%stop_on_removal wondershaper +%service_del_preun wondershaper.service %postun -%restart_on_update wondershaper -%insserv_cleanup +%service_del_postun wondershaper.service %files %defattr(-, root, root) %doc COPYING ChangeLog README TODO VERSION -%config /etc/init.d/wondershaper +%{_datadir}/%{name} +%{_unitdir} /usr/sbin/* %{_fillupdir}/* ++++++ wondershaper.service ++++++ # /run/systemd/generator.late/wondershaper.service # Automatically generated by systemd-sysv-generator [Unit] Documentation=man:systemd-sysv-generator(8) SourcePath=/usr/share/wondershaper/scripts/rcwondershaper Description=LSB: wondershaper providing QOS After=remote-fs.target After=network-online.target Wants=remote-fs.target Wants=network-online.target [Service] Type=forking Restart=no TimeoutSec=5min IgnoreSIGPIPE=no KillMode=process GuessMainPID=no RemainAfterExit=yes SuccessExitStatus=5 6 ExecStart=/usr/share/wondershaper/scripts/rcwondershaper start ExecStop=/usr/share/wondershaper/scripts/rcwondershaper stop ExecReload=/usr/share/wondershaper/scripts/rcwondershaper reload [Install] WantedBy=multi-user.target
