Hello community,

here is the log from the commit of package network-autoconfig for 
openSUSE:Factory checked in at 2019-07-08 15:11:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/network-autoconfig (Old)
 and      /work/SRC/openSUSE:Factory/.network-autoconfig.new.4615 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "network-autoconfig"

Mon Jul  8 15:11:50 2019 rev:10 rq:713855 version:1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/network-autoconfig/network-autoconfig.changes    
2014-01-14 21:47:11.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.network-autoconfig.new.4615/network-autoconfig.changes
  2019-07-08 15:11:53.115394611 +0200
@@ -1,0 +2,12 @@
+Wed May  1 12:55:25 UTC 2019 - Jan Engelhardt <jeng...@inai.de>
+
+- Replace old $RPM_* shell vars.
+- Remove redundant %clean section.
+
+-------------------------------------------------------------------
+Thu Mar 21 15:52:48 UTC 2019 - josef.moell...@suse.com
+
+- Add systemd support
+  [bsc#1116057, network-autoconfig.service, boot.network-autoconfig]
+
+-------------------------------------------------------------------

Old:
----
  boot.network-autoconfig

New:
----
  network-autoconfig.service

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

Other differences:
------------------
++++++ network-autoconfig.spec ++++++
--- /var/tmp/diff_new_pack.QaRROL/_old  2019-07-08 15:11:56.731398081 +0200
+++ /var/tmp/diff_new_pack.QaRROL/_new  2019-07-08 15:11:56.751398100 +0200
@@ -22,7 +22,9 @@
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
 Requires:       wicked
-Requires(pre):  %insserv_prereq
+Requires:       /bin/bash
+BuildRequires:  systemd-rpm-macros
+%{?systemd_requires}
 Summary:        Find a connected eth interface and create an ifcfg for it
 License:        MIT
 Group:          System/Boot
@@ -30,7 +32,7 @@
 
 Source0:        README
 Source1:        network-autoconfig
-Source2:        boot.network-autoconfig
+Source2:        network-autoconfig.service
 
 %description
 All available Ethernet network interfaces will be cycled
@@ -46,22 +48,31 @@
 
 %install
 # install it to a directory where autoyast will run it once
-SBINDIR=$RPM_BUILD_ROOT/usr/sbin
-INITDIR=$RPM_BUILD_ROOT/etc/init.d
-mkdir -p $SBINDIR $INITDIR
+SBINDIR=%{buildroot}/%{_sbindir}
+mkdir -p $SBINDIR
 install %{SOURCE1} $SBINDIR
-install %{SOURCE2} $INITDIR
+install -d %{buildroot}/%{_unitdir}
+install %{SOURCE2} %{buildroot}/%{_unitdir}
+install -d %{buildroot}/etc/systemd/system/network-pre.target.wants
+ln -s %{_unitdir}/network-autoconfig.service 
%{buildroot}/etc/systemd/system/network-pre.target.wants
 
-%clean
-rm -rf "$RPM_BUILD_ROOT"
+%pre
+%service_add_pre network-autoconfig.service
 
 %post
-%{fillup_and_insserv boot.network-autoconfig}
+%service_add_post network-autoconfig.service
+
+%preun
+%service_del_preun network-autoconfig.service
+
+%postun
+%service_del_postun network-autoconfig.service
 
 %files
 %defattr(-,root,root)
 %doc README
-/etc/init.d/boot.network-autoconfig
+%{_unitdir}/network-autoconfig.service
 /usr/sbin/network-autoconfig
+/etc/systemd
 
 %changelog

++++++ network-autoconfig.service ++++++
[Unit]
Description=Find a connected eth interface and create an ifcfg for it

[Service]
ExecStart=/bin/bash -c "/usr/sbin/network-autoconfig >> 
/var/log/network-autoconfig 2>&1"
ExecStartPost=/usr/bin/systemctl disable network-autoconfig

[Install]
WantedBy=network-pre.target

Reply via email to