Hello community, here is the log from the commit of package siproxd for openSUSE:Factory checked in at 2019-03-18 10:40:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/siproxd (Old) and /work/SRC/openSUSE:Factory/.siproxd.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "siproxd" Mon Mar 18 10:40:53 2019 rev:35 rq:685417 version:0.8.2 Changes: -------- --- /work/SRC/openSUSE:Factory/siproxd/siproxd.changes 2017-07-06 00:04:00.809109359 +0200 +++ /work/SRC/openSUSE:Factory/.siproxd.new.28833/siproxd.changes 2019-03-18 10:40:59.755299609 +0100 @@ -1,0 +2,6 @@ +Fri Mar 15 12:33:50 UTC 2019 - [email protected] + +- Added systemd support + [bsc#1116037, siproxd.service] + +------------------------------------------------------------------- New: ---- siproxd.service ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ siproxd.spec ++++++ --- /var/tmp/diff_new_pack.riGqrH/_old 2019-03-18 10:41:03.675294818 +0100 +++ /var/tmp/diff_new_pack.riGqrH/_new 2019-03-18 10:41:03.699294789 +0100 @@ -1,7 +1,7 @@ # # spec file for package siproxd # -# 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 @@ -38,6 +38,7 @@ Source3: %name.logrotate Source4: %name.8.gz Source5: syslog-ng.conf.addon +Source6: siproxd.service # PATCH-FIX-FOR-UPSTREAM -- http://sourceforge.net/tracker/?func=detail&aid=3086321&group_id=60374&atid=493974 #Code to detect libltdl was placed before the code that populates the library locations. #This caused libltdl to be undetected even after it was installed locally. @@ -121,17 +122,19 @@ %{__install} -d %buildroot/%{_sysconfdir}/logrotate.d/ %{__install} -m 0644 %{S:3} %buildroot/%{_sysconfdir}/logrotate.d/%{name} -%{__install} -d %buildroot/%{_sysconfdir}/init.d -%{__install} %{S:2} %buildroot/%{_sysconfdir}/init.d/%{name} -%{__sed} -i "s#@%{name}_PIDDIR@#%{_rundir}/%{name}#" %buildroot/%{_sysconfdir}/init.d/%{name} +%{__install} -d %{buildroot}%{_datadir}/%{name}/scripts +%{__install} %{S:2} %{buildroot}%{_datadir}/%{name}/scripts/%{name} +%{__install} -d %{buildroot}%{_unitdir} +%{__install} -m 644 %{S:6} %{buildroot}%{_unitdir} +%{__sed} -i "s#@%{name}_PIDDIR@#%{_rundir}/%{name}#" %{buildroot}%{_datadir}/%{name}/scripts/%{name} %{__install} -d %buildroot/%{_sbindir} -%{__ln_s} /%{_sysconfdir}/init.d/%{name} %buildroot/%{_sbindir}/rc%{name} +%{__ln_s} %{_sbindir}/service %buildroot/%{_sbindir}/rc%{name} %{__mkdir} -p %buildroot%_mandir/man8 %__install -m 0644 %{S:4} %{buildroot}%{_mandir}/man8/%name.8.gz # sed -i -e "s@nobody@%{siproxduser}@" %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf -sed -i -e "s@nobody@%{siproxduser}@" %buildroot/%{_sysconfdir}/init.d/%{name} +sed -i -e "s@nobody@%{siproxduser}@" %{buildroot}%{_datadir}/%{name}/scripts/%{name} # # Directory needs to exist for packaging %if %suse_version > 1120 @@ -146,19 +149,21 @@ %clean %{__rm} -rf %{buildroot} -%post -p /sbin/ldconfig +%post +/sbin/ldconfig +%service_add_post siproxd.service %pre +%service_add_pre siproxd.service %{_sbindir}/groupadd -r %{sipproxdgroup} 2> /dev/null || : %{_sbindir}/useradd -r -g %{sipproxdgroup} -s /bin/false -c "Siproxd user" -d %{_rundir}/%{name} %{siproxduser} 2> /dev/null || : %postun +%service_del_postun siproxd.service /sbin/ldconfig -%restart_on_update %{name} -%insserv_cleanup %preun -%stop_on_removal %{name} +%service_del_preun siproxd.service %files %defattr(-,root,root) @@ -167,9 +172,12 @@ %attr(0755,root,root) %{_libdir}/%{name}/ %{_sbindir}/rc%name %{_sbindir}/%name -%attr(0755,root,root) %{_sysconfdir}/init.d/%name +%{_datadir}/%{name} +%attr(0755,root,root) %{_datadir}/%{name}/scripts/%{name} %config %{_sysconfdir}/logrotate.d/%{name} %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf +%{_unitdir} +%{_unitdir}/siproxd.service %config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name} ++++++ siproxd.service ++++++ # Automatically generated by systemd-sysv-generator [Unit] Documentation=man:systemd-sysv-generator(8) SourcePath=/usr/share/siproxd/scripts/siproxd Description=LSB: siproxd provedes proxy functionality for sip After=network-online.target After=remote-fs.target Wants=network-online.target Wants=remote-fs.target [Service] Type=forking Restart=no TimeoutSec=5min IgnoreSIGPIPE=no KillMode=process GuessMainPID=no RemainAfterExit=yes SuccessExitStatus=5 6 ExecStart=/usr/share/siproxd/scripts/siproxd start ExecStop=/usr/share/siproxd/scripts/siproxd stop ExecReload=/usr/share/siproxd/scripts/siproxd reload [Install] WantedBy=multi-user.target
