Hello community,

here is the log from the commit of package openslp for openSUSE:Factory checked 
in at 2012-02-08 15:33:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/openslp (Old)
 and      /work/SRC/openSUSE:Factory/.openslp.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "openslp", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/openslp/openslp.changes  2011-11-16 
17:20:27.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.openslp.new/openslp.changes     2012-02-08 
15:33:54.000000000 +0100
@@ -1,0 +2,5 @@
+Thu Dec 22 23:42:12 UTC 2011 - [email protected]
+
+- Add native systemd unit 
+
+-------------------------------------------------------------------

New:
----
  slpd.service

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

Other differences:
------------------
++++++ openslp.spec ++++++
--- /var/tmp/diff_new_pack.UaNUsU/_old  2012-02-08 15:33:55.000000000 +0100
+++ /var/tmp/diff_new_pack.UaNUsU/_new  2012-02-08 15:33:55.000000000 +0100
@@ -19,6 +19,11 @@
 
 Name:           openslp
 BuildRequires:  bison flex libtool openssl-devel
+%if 0%{?suse_version} > 1140
+BuildRequires:  systemd
+%{?systemd_requires}
+%define has_systemd 1
+%endif
 Summary:        An OpenSLP Implementation of Service Location Protocol V2
 Version:        1.2.0
 Release:        186
@@ -40,6 +45,7 @@
 Source6:        slpd.xml
 Source7:        openslp.SuSEfirewall2
 Source8:        baselibs.conf
+Source9:        slpd.service
 Patch1:         openslp.diff
 Patch2:         openslp.audit.diff
 Patch3:         extensions.diff
@@ -225,7 +231,9 @@
 install -D -m 644 %{S:7} 
$RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/openslp
 %endif
 
-nm -C -D %{buildroot}%_libdir/libslp.so
+%if 0%{?has_systemd}
+install -D -m 644 %{S:9} %{buildroot}%{_unitdir}/slpd.service
+%endif
 
 %post   -p /sbin/ldconfig
 
@@ -233,6 +241,9 @@
 
 %pre server
 /usr/sbin/useradd -r -g daemon -d /var/lib/empty -s /sbin/nologin -c "openslp 
daemon" openslp 2>/dev/null || :
+%if 0%{?has_systemd}
+%service_add_pre slpd.service
+%endif
 
 %post server
 %if 0%{?sles_version} == 9 || 0%{?sles_version} == 10
@@ -240,13 +251,22 @@
 %else
 %{fillup_and_insserv slpd}
 %endif
+%if 0%{?has_systemd}
+%service_add_post slpd.service
+%endif
 
 %postun server
 %restart_on_update slpd
 %insserv_cleanup
+%if 0%{?has_systemd}
+%service_del_postun slpd.service
+%endif
 
 %preun server
 %stop_on_removal slpd
+%if 0%{?has_systemd}
+%service_del_preun slpd.service
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -287,6 +307,9 @@
 %if 0%{?suse_version} > 0
 %config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/openslp
 %endif
+%if 0%{?has_systemd}
+%{_unitdir}/slpd.service
+%endif
 
 %files devel
 %defattr(-,root,root)

++++++ slpd.service ++++++
[Unit]
Description=OpenSLP daemon for the Service Location Protocol
After=network.target nss-lookup.target

[Service]
ExecStart=/usr/sbin/slpd -d
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to