Hello community,

here is the log from the commit of package insserv-compat for openSUSE:Factory 
checked in at 2014-06-18 22:04:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/insserv-compat (Old)
 and      /work/SRC/openSUSE:Factory/.insserv-compat.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "insserv-compat"

Changes:
--------
--- /work/SRC/openSUSE:Factory/insserv-compat/insserv-compat.changes    
2014-03-27 06:13:08.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.insserv-compat.new/insserv-compat.changes       
2014-06-18 22:04:32.000000000 +0200
@@ -1,0 +2,7 @@
+Tue Jun  3 08:31:52 UTC 2014 - [email protected]
+
+- remove reference to openSUSE 12.3
+- add LSB init script header block as example (bnc#865018)
+- support runlevel override (bnc#869260)
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ insserv-compat.spec ++++++
--- /var/tmp/diff_new_pack.IMw8Ni/_old  2014-06-18 22:04:33.000000000 +0200
+++ /var/tmp/diff_new_pack.IMw8Ni/_new  2014-06-18 22:04:33.000000000 +0200
@@ -39,7 +39,7 @@
 %prep
 %setup -q -c -T
 %build
-pod2man -s 8 -c 'The openSUSE boot concept' -r "openSUSE 12.3" -u %SOURCE0 
insserv.8
+pod2man -s 8 -c 'The openSUSE boot concept' -r "" -u %SOURCE0 insserv.8
 
 %install
 for i in /sbin %{_sbindir} /usr/lib/lsb /lib/lsb %{_mandir}/man8 
%{_sysconfdir}; do

++++++ insserv.pl ++++++
--- /var/tmp/diff_new_pack.IMw8Ni/_old  2014-06-18 22:04:33.000000000 +0200
+++ /var/tmp/diff_new_pack.IMw8Ni/_new  2014-06-18 22:04:33.000000000 +0200
@@ -39,7 +39,28 @@
 
 =head1 DESCRIPTION
 
-This version of insserv is just a stub for compatibility.
+This version of insserv is just a stub for compatibility. It only reads the
+'Default-Start' property of LSB init script headers to enable init scripts.
+Anything else is handled by systemd.
+
+### BEGIN INIT INFO
+# Provides:          boot_facility_1 [ boot_facility_2 ...]
+# Required-Start:    boot_facility_1 [ boot_facility_2 ...]
+# Required-Stop:     boot_facility_1 [ boot_facility_2 ...]
+# Should-Start:      boot_facility_1 [ boot_facility_2 ...]
+# Should-Stop:       boot_facility_1 [ boot_facility_2 ...]
+# X-Start-Before:    boot_facility_1 [ boot_facility_2 ...]
+# X-Stop-After:      boot_facility_1 [ boot_facility_2 ...]
+# Default-Start:     run_level_1 [ run_level_2 ...]
+# Default-Stop:      run_level_1 [ run_level_2 ...]
+# X-Interactive:     true
+# Short-Description: single_line_description
+# Description:       multiline_description
+### END INIT INFO
+
+=head1 SEE ALSO
+
+systemd(1)
 
 =cut
 
@@ -173,15 +194,20 @@
 sub enable($)
 {
        my $name = shift;
-       $name =~ s/,(?:start|stop)=.*//;
+       ($name, my $override) = split(/,/, $name, 2);
+       if ($override && $override =~ s/.*start=([^s]+).*/$1/) {
+               $override =~ s/,/ /g;
+       } else {
+               $override = undef;
+       }
        my $links = getlinks($name);
        return 0 if $links; # already enabled
        warn_systemd_masked($name, "on");
        my $h = parse($name);
        return unless defined $h;
-       createlinks('S', $name, $h->{'default-start'} || '2 3 5');
+       createlinks('S', $name, $override || $h->{'default-start'} || '2 3 5');
        # default stop is actually ignored in SUSE ... o_O
-       createlinks('K', $name, $h->{'default-start'} || '2 3 5');
+       createlinks('K', $name, $override || $h->{'default-start'} || '2 3 5');
 }
 
 sub usage($) {

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to