Hello community,

here is the log from the commit of package ipxrip for openSUSE:Factory checked 
in at 2014-07-21 21:39:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ipxrip (Old)
 and      /work/SRC/openSUSE:Factory/.ipxrip.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ipxrip"

Changes:
--------
--- /work/SRC/openSUSE:Factory/ipxrip/ipxrip.changes    2011-09-23 
02:03:41.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.ipxrip.new/ipxrip.changes       2014-07-21 
22:34:18.000000000 +0200
@@ -1,0 +2,7 @@
+Fri Jul 18 13:37:32 UTC 2014 - [email protected]
+
+- Drop sysvinit dependency
+- Use systemd instead of sysvinit
+- Clean up spec file
+
+-------------------------------------------------------------------

Old:
----
  ipxrip.init

New:
----
  ipxd.service

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

Other differences:
------------------
++++++ ipxrip.spec ++++++
--- /var/tmp/diff_new_pack.O8fbQ9/_old  2014-07-21 22:34:19.000000000 +0200
+++ /var/tmp/diff_new_pack.O8fbQ9/_new  2014-07-21 22:34:19.000000000 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package ipxrip (Version 0.7)
+# spec file for package ipxrip
 #
-# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 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
@@ -15,37 +15,28 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
-
 
 Name:           ipxrip
 License:        GPL-2.0+
 Group:          Productivity/Networking/Routing
-PreReq:         %insserv_prereq %fillup_prereq
 Provides:       ipxripd 
-AutoReqProv:    on
 Version:        0.7
-Release:        994
+Release:        0
 Summary:        IPX Routing Daemon
 Source:         ipxripd-%{version}.tar.bz2
-Source1:        ipxrip.init
+Source1:        ipxd.service
 Patch:          ipxripd-%{version}.dif
 Patch1:         ipxripd-%{version}-axp.dif
 Patch2:         ipxripd-%{version}-secfix.dif
 Patch3:         ipxripd-%{version}-2.6kernel-fix.diff
+%{?systemd_requires}
+BuildRequires:  systemd-rpm-macros
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
 This is an RIP/SAP daemon for Linux. With this daemon, you can turn
 your Linux machine into an IPX router.
 
-
-
-Authors:
---------
-    Ales Dryak <[email protected]>
-    Volker Lendecke <[email protected]>
-
 %prep
 %setup -n ipxripd
 %patch
@@ -57,31 +48,31 @@
 make
 
 %install
-make DESTDIR=$RPM_BUILD_ROOT install
-install -d $RPM_BUILD_ROOT/etc/init.d
-install -m 744 %{S:1} $RPM_BUILD_ROOT/etc/init.d/ipxrip
-ln -sf ../../etc/init.d/ipxrip $RPM_BUILD_ROOT/usr/sbin/rcipxrip
-install -m 644 ipx_ticks $RPM_BUILD_ROOT/etc/
+make DESTDIR=%{buildroot} install
+install -d %{buildroot}/%{_unitdir}
+install -m 744 %{S:1} %{buildroot}/%{_unitdir}/ipxrip.service
+ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
+install -d %{buildroot}%{_sysconfdir}
+install -m 644 ipx_ticks %{buildroot}/%{_sysconfdir}
+
+%pre 
+%service_add_pre ipxrip.service
 
 %post
-%{fillup_and_insserv ipxrip}
+%service_add_post ipxrip.service
 
 %preun
-%stop_on_removal ipxrip
+%service_del_preun ipxrip.service
 
 %postun
-%restart_on_update ipxrip
-%{insserv_cleanup}
-
-%clean
-[ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf  %{buildroot}
+%service_del_postun ipxrip.service
 
 %files
 %defattr(-,root,root)
 %doc README COPYING
 %doc %{_mandir}/man?/*
-/usr/sbin/*
-%config /etc/init.d/*
-%config(noreplace) /etc/ipx_ticks
+%{_sbindir}/*
+%{_unitdir}/ipxrip.service
+%config(noreplace) %{_sysconfdir}/ipx_ticks
 
 %changelog

++++++ ipxd.service ++++++
[Unit]
Description=IPX RIP/SAP daemon

[Service]
Type=forking
ExecStart=/usr/sbin/ipxd
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