Hello community, here is the log from the commit of package smbtad for openSUSE:Factory checked in at 2019-03-20 13:20:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/smbtad (Old) and /work/SRC/openSUSE:Factory/.smbtad.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "smbtad" Wed Mar 20 13:20:59 2019 rev:22 rq:686482 version:1.2.6 Changes: -------- --- /work/SRC/openSUSE:Factory/smbtad/smbtad.changes 2015-03-18 13:05:45.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.smbtad.new.28833/smbtad.changes 2019-03-20 13:21:00.709318754 +0100 @@ -1,0 +2,6 @@ +Tue Mar 19 09:36:05 UTC 2019 - [email protected] + +- Added systemd support + [bsc#1116038, smbtad-add-systemd-support.patch] + +------------------------------------------------------------------- New: ---- smbtad.service ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ smbtad.spec ++++++ --- /var/tmp/diff_new_pack.W2Odc1/_old 2019-03-20 13:21:01.425318578 +0100 +++ /var/tmp/diff_new_pack.W2Odc1/_new 2019-03-20 13:21:01.433318576 +0100 @@ -1,7 +1,7 @@ # # spec file for package smbtad # -# Copyright (c) 2015 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 @@ -31,6 +31,7 @@ Group: Productivity/Networking/Samba Url: http://github.com/hhetter/smbtad Source0: %{name}-%{version}.tar.bz2 +Source1: smbtad.service BuildRoot: %{_tmppath}/%{name}-%{version}-build %define INITDIR %{_sysconfdir}/init.d @@ -73,7 +74,23 @@ %endif popd mkdir -p %{buildroot}/usr/sbin -ln -s /etc/init.d/smbtad %{buildroot}/usr/sbin/rcsmbtad +install -d %{buildroot}%{_datadir}/%{name}/scripts +mv %{buildroot}/etc/init.d/smbtad %{buildroot}%{_datadir}/%{name}/scripts +install -d %{buildroot}/%{_unitdir} +install -m 644 %{SOURCE1} %{buildroot}/%{_unitdir} +ln -s service %{buildroot}/usr/sbin/rcsmbtad + +%pre +%service_add_pre smbtad.service + +%post +%service_add_post smbtad.service + +%preun +%service_del_preun smbtad.service + +%postun +%service_del_postun smbtad.service %clean %__rm -rf %{buildroot} @@ -82,7 +99,9 @@ %defattr(-,root,root) %{_bindir}/smbtad %{_sbindir}/rcsmbtad -%attr(0754,root,root) %config %{INITDIR}/smbtad +%{_datadir}/%{name} +%{_datadir}/%{name}/scripts/smbtad +%{_unitdir}/smbtad.service %doc dist/smbtad.conf_example %changelog ++++++ smbtad.service ++++++ [Unit] Description=SMB Traffic Analyzer Daemon [Service] Type=forking ExecStart=/usr/share/smbtad/scripts/smbtad start ExecStop=/usr/share/smbtad/scripts/smbtad stop [Install] WantedBy=multi-user.target
