Hello community,

here is the log from the commit of package mipv6d for openSUSE:Factory checked 
in at 2017-03-18 20:50:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mipv6d (Old)
 and      /work/SRC/openSUSE:Factory/.mipv6d.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mipv6d"

Sat Mar 18 20:50:57 2017 rev:25 rq:479781 version:2.0.2.umip.0.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/mipv6d/mipv6d.changes    2016-02-17 
12:15:41.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.mipv6d.new/mipv6d.changes       2017-03-18 
20:50:58.542264636 +0100
@@ -1,0 +2,6 @@
+Wed Mar 15 17:48:31 UTC 2017 - [email protected]
+
+- Drop SysV init script, replaced with a systemd unit.
+- Add the relevant systemd macros to the scriptlets.
+
+-------------------------------------------------------------------

Old:
----
  mipv6d.init

New:
----
  mipv6d.service

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

Other differences:
------------------
++++++ mipv6d.spec ++++++
--- /var/tmp/diff_new_pack.lL2KRX/_old  2017-03-18 20:50:59.330153019 +0100
+++ /var/tmp/diff_new_pack.lL2KRX/_new  2017-03-18 20:50:59.330153019 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package mipv6d
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -17,15 +17,14 @@
 
 
 Name:           mipv6d
+Version:        2.0.2.umip.0.4
+Release:        0
 Summary:        MIPL - Mobile IPv6 for Linux
 License:        GPL-2.0
 Group:          Productivity/Networking/Other
-Version:        2.0.2.umip.0.4
-Release:        0
 Url:            http://umip.org/
-
 Source0:        mipv6-2.0.2-umip-0.4.tar.bz2
-Source1:        mipv6d.init
+Source1:        mipv6d.service
 BuildRequires:  automake
 BuildRequires:  bison
 BuildRequires:  flex
@@ -46,17 +45,6 @@
 the Helsinki University of Technology. See AUTHORS for core
 development team and THANKS for complete listing of contributors.
 
-
-
-Authors:
---------
-    Ville Nuorvala <[email protected]>
-    Antti J. Tuominen <[email protected]>
-    NEMO support:
-    Romain KUNTZ <[email protected]>
-    Sebastien DECUGIS
-    Arnaud EBALARD
-
 %prep
 %setup -q -n mipv6-2.0.2-umip-0.4
 
@@ -65,43 +53,47 @@
 autoheader
 automake --foreign --copy --add-missing
 autoconf
-export CFLAGS="$RPM_OPT_FLAGS"
-export CXXFLAGS="$RPM_OPT_FLAGS"
+export CFLAGS="%{optflags}"
+export CXXFLAGS="%{optflags}"
+# FIXME: you should use the %%configure macro
 ./configure \
        --disable-debug         \
-       --prefix=/usr           \
+       --prefix=%{_prefix}     \
        --sysconfdir=/etc
-make clean
-make
+make %{?_smp_mflags} clean
+make %{?_smp_mflags}
 
 %install
-make DESTDIR=$RPM_BUILD_ROOT install
-install -m0755 -d $RPM_BUILD_ROOT%{_sysconfdir}/init.d/
-install -m0755    $RPM_SOURCE_DIR/mipv6d.init \
-                  $RPM_BUILD_ROOT%{_sysconfdir}/init.d/mipv6d
-ln -sf            %{_sysconfdir}/init.d/mipv6d \
-                  $RPM_BUILD_ROOT%{_sbindir}/rcmipv6d
-touch             $RPM_BUILD_ROOT%{_sysconfdir}/mip6d.conf
+%make_install
+install -m0755 -d %{buildroot}%{_sysconfdir}
+install -m0755 -d %{buildroot}%{_unitdir}
+install -m0644    %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
+ln -sf            %{_sbindir}/service \
+                  %{buildroot}%{_sbindir}/rcmipv6d
+touch             %{buildroot}%{_sysconfdir}/mip6d.conf
+
+%pre
+%service_add_pre mipv6d.service
 
 %post
-%{?fillup_and_insserv:%fillup_and_insserv -f -n mipv6d}
+%service_add_post mipv6d.service
 
 %preun
-%{?stop_on_removal:%stop_on_removal mipv6d}
+%service_del_preun mipv6d.service
 
 %postun
-%{?insserv_cleanup:%insserv_cleanup}
+%service_del_postun mipv6d.service
 
 %files
 %defattr(-,root,root)
-%doc AUTHORS BUGS COPYING README INSTALL INSTALL.kernel README.IPsec NEWS
+%doc AUTHORS BUGS COPYING README INSTALL.kernel README.IPsec NEWS
 %doc extras/*
 %doc licenses/*
-%doc /usr/share/man/man1/mip6d.1.gz
-%doc /usr/share/man/man5/mip6d.conf.5.gz
-%doc /usr/share/man/man7/mipv6.7.gz
+%{_mandir}/man1/mip6d.1%{ext_man}
+%{_mandir}/man5/mip6d.conf.5%{ext_man}
+%{_mandir}/man7/mipv6.7%{ext_man}
 %ghost %config(noreplace) %attr(600,root,root) %{_sysconfdir}/mip6d.conf
-%{_sysconfdir}/init.d/mipv6d
+%{_unitdir}/%{name}.service
 %{_sbindir}/mip6d
 %{_sbindir}/rcmipv6d
 

++++++ mipv6d.service ++++++
[Unit]
Description=Mobile IPv6 Daemon
After=network.target

[Service]
ExecStart=/usr/sbin/mip6d

[Install]
WantedBy=multi-user.target

Reply via email to