Hello community,

here is the log from the commit of package gnump3d for openSUSE:Factory checked 
in at 2013-06-05 14:30:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gnump3d (Old)
 and      /work/SRC/openSUSE:Factory/.gnump3d.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gnump3d"

Changes:
--------
--- /work/SRC/openSUSE:Factory/gnump3d/gnump3d.changes  2012-09-14 
12:23:17.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.gnump3d.new/gnump3d.changes     2013-06-05 
14:30:33.000000000 +0200
@@ -1,0 +2,5 @@
+Fri May 31 01:07:07 UTC 2013 - [email protected]
+
+- Add systemd support  
+
+-------------------------------------------------------------------

New:
----
  gnump3d.service

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

Other differences:
------------------
++++++ gnump3d.spec ++++++
--- /var/tmp/diff_new_pack.Olp4BC/_old  2013-06-05 14:30:34.000000000 +0200
+++ /var/tmp/diff_new_pack.Olp4BC/_new  2013-06-05 14:30:34.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package gnump3d
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -21,6 +21,7 @@
 BuildRequires:  fdupes
 BuildRequires:  perl-macros
 BuildRequires:  pwdutils
+BuildRequires:  pkgconfig(systemd)
 Version:        3.0
 Release:        0
 Summary:        GNU MP3 Streaming Server
@@ -35,9 +36,11 @@
 Source3:        gnump3d-rpmlintrc
 Source1:        gnump3d.init
 Source2:        gnump3d.logrotate
+Source4:        gnump3d.service
 Patch:          gnump3d-Makefile.patch
 Patch1:         avoidversion.diff
 %{perl_requires}
+%{?systemd_requires}
 
 %description
 gnump3d is a simple server that allows you to stream MP3s and OGG
@@ -66,6 +69,7 @@
 make PREFIX=/usr DESTDIR=$RPM_BUILD_ROOT install
 # Install inetd init script
 install -m 744 %SOURCE1 $RPM_BUILD_ROOT/etc/init.d/gnump3d
+install -D -m 0644 %SOURCE4 %{buildroot}%{_unitdir}/%{name}.service
 (cd $RPM_BUILD_ROOT && ln -sf /etc/init.d/gnump3d usr/sbin/rcgnump3d)
 (cd $RPM_BUILD_ROOT/usr/bin && ln -sfn gnump3d2 gnump3d)
 %fdupes -s $RPM_BUILD_ROOT%{_datadir}/%{name}
@@ -75,7 +79,7 @@
 
 %pre
 /usr/sbin/useradd -r -o -g nogroup -u 63 -s /bin/false -c "GNUMP3 daemon" -d 
/var/lib/nobody gnump3d 2> /dev/null || :
-
+%service_add_pre %{name}.service
 %post
 # if there is no access.log file, create one with correct permissions.
 # gnump3d does not do this.
@@ -84,13 +88,16 @@
   chmod 640 /var/log/gnump3d/access.log;
   chown gnump3d /var/log/gnump3d/access.log
 }
+%service_add_post %{name}.service
 
 %preun
 %stop_on_removal gnump3d
+%service_del_preun %{name}.service
 
 %postun
 %restart_on_update gnump3d
 %insserv_cleanup
+%service_del_postun %{name}.service
 
 %files
 %defattr(-,root,root)
@@ -133,5 +140,6 @@
 %attr(755,gnump3d,root) %dir %{_var}/cache/gnump3d
 %attr(755,gnump3d,root) %dir %{_var}/cache/gnump3d/serving
 %attr(755,root,root) %dir /srv/mp3
+%{_unitdir}/%{name}.service
 
 %changelog

++++++ gnump3d.service ++++++
[Unit]
Description=GNU MP3 Streaming Server
Wants=network.target remote-fs.target
After=network.target remote-fs.target

[Service]
ExecStart=/usr/bin/gnump3d
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