commit insserv-compat for openSUSE:Factory

2020-02-04 Thread root
Hello community,

here is the log from the commit of package insserv-compat for openSUSE:Factory 
checked in at 2020-02-04 19:51:28

Comparing /work/SRC/openSUSE:Factory/insserv-compat (Old)
 and  /work/SRC/openSUSE:Factory/.insserv-compat.new.26092 (New)


Package is "insserv-compat"

Tue Feb  4 19:51:28 2020 rev:20 rq:768527 version:0.1

Changes:

--- /work/SRC/openSUSE:Factory/insserv-compat/insserv-compat.changes
2019-05-25 13:17:49.504390324 +0200
+++ /work/SRC/openSUSE:Factory/.insserv-compat.new.26092/insserv-compat.changes 
2020-02-04 19:51:50.253268557 +0100
@@ -1,0 +2,5 @@
+Tue Jan 28 14:28:09 UTC 2020 - Thorsten Kukuk 
+
+- Add chkconfig from aaa_base
+
+---

New:

  chkconfig
  chkconfig.8



Other differences:
--
++ insserv-compat.spec ++
--- /var/tmp/diff_new_pack.rdYcw2/_old  2020-02-04 19:51:50.961268970 +0100
+++ /var/tmp/diff_new_pack.rdYcw2/_new  2020-02-04 19:51:50.961268970 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package insserv-compat
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -23,11 +23,13 @@
 Group:  System/Base
 Version:0.1
 Release:0
-Url:
https://build.opensuse.org/package/show?package=%name=openSUSE%3AFactory
+URL:
https://build.opensuse.org/package/show?package=%name=openSUSE%3AFactory
 Source: insserv.pl
 Source1:init-functions
 Source2:rc.splash
 Source3:rc.status
+Source4:chkconfig
+Source5:chkconfig.8
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildArch:  noarch
 Obsoletes:  insserv <= 1.16.0
@@ -44,17 +46,20 @@
 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
+for i in /sbin %{_bindir} %{_sbindir} /usr/lib/lsb /lib/lsb %{_mandir}/man8 
%{_sysconfdir}; do
install -d -m 755 %{buildroot}$i
 done
 install -m755 %{SOURCE0} %{buildroot}%{_sbindir}/insserv
 install -m755 %{SOURCE1} %{buildroot}/lib/lsb/init-functions
 install -m755 %{SOURCE2} %{buildroot}%{_sysconfdir}/
 install -m755 %{SOURCE3} %{buildroot}%{_sysconfdir}/
+install -m755 %{SOURCE4} %{buildroot}%{_bindir}/
+install -m644 %{SOURCE5} %{buildroot}%{_mandir}/man8
 install -m644 insserv.8 %{buildroot}%{_mandir}/man8
 ln -s ../usr/sbin/insserv  %{buildroot}/sbin/insserv
 ln -s ../../sbin/insserv  %{buildroot}/usr/lib/lsb/install_initd
 ln -s ../../sbin/insserv  %{buildroot}/usr/lib/lsb/remove_initd
+ln -s ../usr/bin/chkconfig  %{buildroot}/sbin/chkconfig
 mkdir -p 
%{buildroot}/etc/init.d/{boot.d,rc0.d,rc1.d,rc2.d,rc3.d,rc4.d,rc5.d,rc6.d,rcS.d}
 ln -s init.d %{buildroot}/etc/rc.d
 
@@ -76,13 +81,16 @@
 %config /etc/rc.splash
 %config /etc/rc.status
 /etc/rc.d
+%{_bindir}/chkconfig
 %{_sbindir}/insserv
+/sbin/chkconfig
 /sbin/insserv
 %dir /lib/lsb
 /lib/lsb/init-functions
 %dir /usr/lib/lsb
 /usr/lib/lsb/install_initd
 /usr/lib/lsb/remove_initd
-%{_mandir}/man8/insserv.*
+%{_mandir}/man8/chkconfig.8*
+%{_mandir}/man8/insserv.8*
 
 %changelog

++ chkconfig ++
 864 lines (skipped)

++ chkconfig.8 ++
.\"
.\" SuSE man page for chkconfig
.\" Copyright (c) 2003-2006 SuSE Linux AG, Nuernberg, Germany.
.\" please send bugfixes or comments to http://www.suse.de/feedback.
.\"
.\" Author: Michael Schroeder 
.\"
.TH CHKCONFIG 8 "Oct 2006"
.SH NAME
chkconfig \- enable or disable system services

.SH SYNOPSIS
.B chkconfig
.B -t|--terse
.RI [ names ]
.br
.B chkconfig
.B -s|--set
.RI [ name
.IR state ]
.br
.B chkconfig
.B -e|--edit
.RI [ names ]
.br
.B chkconfig
.B -c|--check
.I name
.RI [ state ]
.br
.B chkconfig
.B -l|--list
.RB [ --deps ]
.RI [ names ]
.br
.B chkconfig
.B -A|--allservices
.br
.B chkconfig
.B -a|--add
.RI [ names ]
.br
.B chkconfig
.B -d|--del
.RI [ names ]

.SH DESCRIPTION
chkconfig is used to manipulate the runlevel links at boot time
(see
.IR init.d (7)).
It can be thought of as a frontend to
.IR insserv (8).
Chkconfig can run in six different modes: terse list mode, set mode,
edit mode, list mode, add mode and delete mode. The last three modes
were added for compatiblity reasons.
.SH TERSE LIST MODE
This mode lists the state of the specified services, or all known
services if no service name was provided. Every printed line
consists of the name of the service and the runlevels the
service is configured for at the moment. If it is configured in
no runlevel,
.B off
is used instead, if it is configured in the runlevels defined
as a 

commit insserv-compat for openSUSE:Factory

2019-05-25 Thread root
Hello community,

here is the log from the commit of package insserv-compat for openSUSE:Factory 
checked in at 2019-05-25 13:17:48

Comparing /work/SRC/openSUSE:Factory/insserv-compat (Old)
 and  /work/SRC/openSUSE:Factory/.insserv-compat.new.5148 (New)


Package is "insserv-compat"

Sat May 25 13:17:48 2019 rev:19 rq:704437 version:0.1

Changes:

--- /work/SRC/openSUSE:Factory/insserv-compat/insserv-compat.changes
2019-04-23 14:41:33.421658217 +0200
+++ /work/SRC/openSUSE:Factory/.insserv-compat.new.5148/insserv-compat.changes  
2019-05-25 13:17:49.504390324 +0200
@@ -1,0 +2,5 @@
+Thu May  9 15:19:24 UTC 2019 - Ludwig Nussel 
+
+- fix handling of ,start= parameters (bsc#1133306)
+
+---



Other differences:
--
++ insserv.pl ++
--- /var/tmp/diff_new_pack.9LH1Ts/_old  2019-05-25 13:17:50.140390087 +0200
+++ /var/tmp/diff_new_pack.9LH1Ts/_new  2019-05-25 13:17:50.144390086 +0200
@@ -242,7 +242,9 @@
 
 if (@ARGV) {
my $p = $ARGV[0] =~ /\// ? $ARGV[0] : "$init_d/$ARGV[0]";
-   if (!-e $p) {
+   # need to strip off potential extra parameters
+   my $script = $1 if $p =~ /([^,]+)/;
+   if (!-e $script) {
warn "$p doesn't exist";
usage(1) if @ARGV;
cleanup();




commit insserv-compat for openSUSE:Factory

2019-04-23 Thread root
Hello community,

here is the log from the commit of package insserv-compat for openSUSE:Factory 
checked in at 2019-04-23 14:41:31

Comparing /work/SRC/openSUSE:Factory/insserv-compat (Old)
 and  /work/SRC/openSUSE:Factory/.insserv-compat.new.5536 (New)


Package is "insserv-compat"

Tue Apr 23 14:41:31 2019 rev:18 rq:697107 version:0.1

Changes:

--- /work/SRC/openSUSE:Factory/insserv-compat/insserv-compat.changes
2018-02-14 09:16:58.351335660 +0100
+++ /work/SRC/openSUSE:Factory/.insserv-compat.new.5536/insserv-compat.changes  
2019-04-23 14:41:33.421658217 +0200
@@ -1,0 +2,10 @@
+Thu Apr 18 09:49:08 CEST 2019 - ku...@suse.de
+
+- Add rc.status and rc.splash from aaa_base [bsc#1132738]
+
+---
+Tue Dec  4 16:11:11 UTC 2018 - lnus...@suse.de
+
+- drop insserv.conf, it's no longer useful (boo#1052837)
+
+---

Old:

  insserv.conf

New:

  rc.splash
  rc.status



Other differences:
--
++ insserv-compat.spec ++
--- /var/tmp/diff_new_pack.T69djO/_old  2019-04-23 14:41:34.897658980 +0200
+++ /var/tmp/diff_new_pack.T69djO/_new  2019-04-23 14:41:34.901658982 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package insserv-compat
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 # icecream 0
 
@@ -26,7 +26,8 @@
 Url:
https://build.opensuse.org/package/show?package=%name=openSUSE%3AFactory
 Source: insserv.pl
 Source1:init-functions
-Source2:insserv.conf
+Source2:rc.splash
+Source3:rc.status
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildArch:  noarch
 Obsoletes:  insserv <= 1.16.0
@@ -48,7 +49,8 @@
 done
 install -m755 %{SOURCE0} %{buildroot}%{_sbindir}/insserv
 install -m755 %{SOURCE1} %{buildroot}/lib/lsb/init-functions
-install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/insserv.conf
+install -m755 %{SOURCE2} %{buildroot}%{_sysconfdir}/
+install -m755 %{SOURCE3} %{buildroot}%{_sysconfdir}/
 install -m644 insserv.8 %{buildroot}%{_mandir}/man8
 ln -s ../usr/sbin/insserv  %{buildroot}/sbin/insserv
 ln -s ../../sbin/insserv  %{buildroot}/usr/lib/lsb/install_initd
@@ -61,7 +63,6 @@
 
 %files
 %defattr(-,root,root)
-%config %{_sysconfdir}/insserv.conf
 %dir %attr(0755,root,root) /etc/init.d
 %dir %attr(0755,root,root) /etc/init.d/boot.d
 %dir %attr(0755,root,root) /etc/init.d/rc0.d
@@ -72,6 +73,8 @@
 %dir %attr(0755,root,root) /etc/init.d/rc5.d
 %dir %attr(0755,root,root) /etc/init.d/rc6.d
 %dir %attr(0755,root,root) /etc/init.d/rcS.d
+%config /etc/rc.splash
+%config /etc/rc.status
 /etc/rc.d
 %{_sbindir}/insserv
 /sbin/insserv

++ rc.splash ++
# /etc/rc.splash
# vim: syntax=sh
#
# Initialize bootsplash progressbar variables and
# define the bootsplash boot script functions.
#

SPLASHCFG=
   SPLASH=yes
SPLASHNUM=0
THEME=
export SPLASHCFG SPLASH

test -s /etc/sysconfig/bootsplash && . /etc/sysconfig/bootsplash
test -x /sbin/splash -a -w /proc/splash || SPLASH=no
test -n "$THEME" -a -d "/etc/bootsplash/themes/$THEME"  || SPLASH=no
case "$PREVLEVEL-$RUNLEVEL" in
[2-5]-[2-5]) SPLASH=no
esac

if test "$SPLASH" = yes -a -r /proc/splash ; then
read -t 1 splashstatus < /proc/splash
splashstatus="${splashstatus#*:}"
splashstatus="${splashstatus## }"
test "$splashstatus" = on   || SPLASH=no
unset splashstatus
else
SPLASH=no
fi

if test "$SPLASH" = yes -a -x /sbin/fbresolution ; then
fbresolution="$(/sbin/fbresolution 2> /dev/null)"

SPLASHCFG="/etc/bootsplash/themes/$THEME/config/bootsplash-${fbresolution}.cfg"
unset fbresolution
test -f "$SPLASHCFG"|| SPLASH=no
fi

if test "$SPLASH" = "yes" ; then
if test "$1" = "B" ; then
SPLASHSTART=100
SPLASHEND=2
for i in /etc/init.d/boot.d/S[0-9][0-9]*; do
test -x "$i" || continue
: $((SPLASHNUM++))
done
unset i
else
SPLASHSTART=0
SPLASHEND=65535
case "$PREVLEVEL-$RUNLEVEL" in
N-[3-5]) SPLASHSTART=2 ;;
esac
for i in /etc/init.d/rc${RUNLEVEL}.d/S[0-9][0-9]*; do
test -x "$i" || continue
: $((SPLASHNUM++))
done

commit insserv-compat for openSUSE:Factory

2018-02-14 Thread root
Hello community,

here is the log from the commit of package insserv-compat for openSUSE:Factory 
checked in at 2018-02-14 09:16:57

Comparing /work/SRC/openSUSE:Factory/insserv-compat (Old)
 and  /work/SRC/openSUSE:Factory/.insserv-compat.new (New)


Package is "insserv-compat"

Wed Feb 14 09:16:57 2018 rev:17 rq:574116 version:0.1

Changes:

--- /work/SRC/openSUSE:Factory/insserv-compat/insserv-compat.changes
2017-05-06 18:26:22.354987234 +0200
+++ /work/SRC/openSUSE:Factory/.insserv-compat.new/insserv-compat.changes   
2018-02-14 09:16:58.351335660 +0100
@@ -1,0 +2,6 @@
+Tue Feb  6 16:37:10 CET 2018 - ku...@suse.de
+
+- Own the lib/lsb directories, without this package, lsb init scripts
+  are not supported and nobody else is using them.
+
+---



Other differences:
--
++ insserv-compat.spec ++
--- /var/tmp/diff_new_pack.u23LkU/_old  2018-02-14 09:16:59.159306372 +0100
+++ /var/tmp/diff_new_pack.u23LkU/_new  2018-02-14 09:16:59.159306372 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package insserv-compat
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -75,7 +75,9 @@
 /etc/rc.d
 %{_sbindir}/insserv
 /sbin/insserv
+%dir /lib/lsb
 /lib/lsb/init-functions
+%dir /usr/lib/lsb
 /usr/lib/lsb/install_initd
 /usr/lib/lsb/remove_initd
 %{_mandir}/man8/insserv.*




commit insserv-compat for openSUSE:Factory

2017-05-06 Thread root
Hello community,

here is the log from the commit of package insserv-compat for openSUSE:Factory 
checked in at 2017-05-06 18:26:21

Comparing /work/SRC/openSUSE:Factory/insserv-compat (Old)
 and  /work/SRC/openSUSE:Factory/.insserv-compat.new (New)


Package is "insserv-compat"

Sat May  6 18:26:21 2017 rev:16 rq:492882 version:0.1

Changes:

--- /work/SRC/openSUSE:Factory/insserv-compat/insserv-compat.changes
2017-04-12 17:09:10.407080081 +0200
+++ /work/SRC/openSUSE:Factory/.insserv-compat.new/insserv-compat.changes   
2017-05-06 18:26:22.354987234 +0200
@@ -1,0 +2,5 @@
+Fri Apr 28 18:16:21 UTC 2017 - arvidj...@gmail.com
+
+- Also provide /etc/rc.d link which was provided by filesystem (bsc#1035062)
+
+---



Other differences:
--
++ insserv-compat.spec ++
--- /var/tmp/diff_new_pack.ZrtoMT/_old  2017-05-06 18:26:23.154874366 +0200
+++ /var/tmp/diff_new_pack.ZrtoMT/_new  2017-05-06 18:26:23.158873801 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package insserv-compat
 #
-# Copyright (c) 2017 SUSE LINUX Products 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
@@ -54,6 +54,7 @@
 ln -s ../../sbin/insserv  %{buildroot}/usr/lib/lsb/install_initd
 ln -s ../../sbin/insserv  %{buildroot}/usr/lib/lsb/remove_initd
 mkdir -p 
%{buildroot}/etc/init.d/{boot.d,rc0.d,rc1.d,rc2.d,rc3.d,rc4.d,rc5.d,rc6.d,rcS.d}
+ln -s init.d %{buildroot}/etc/rc.d
 
 %clean
 rm -rf %{buildroot}
@@ -71,6 +72,7 @@
 %dir %attr(0755,root,root) /etc/init.d/rc5.d
 %dir %attr(0755,root,root) /etc/init.d/rc6.d
 %dir %attr(0755,root,root) /etc/init.d/rcS.d
+/etc/rc.d
 %{_sbindir}/insserv
 /sbin/insserv
 /lib/lsb/init-functions




commit insserv-compat for openSUSE:Factory

2017-04-12 Thread root
Hello community,

here is the log from the commit of package insserv-compat for openSUSE:Factory 
checked in at 2017-04-12 17:09:09

Comparing /work/SRC/openSUSE:Factory/insserv-compat (Old)
 and  /work/SRC/openSUSE:Factory/.insserv-compat.new (New)


Package is "insserv-compat"

Wed Apr 12 17:09:09 2017 rev:15 rq:485031 version:0.1

Changes:

--- /work/SRC/openSUSE:Factory/insserv-compat/insserv-compat.changes
2016-01-26 10:14:14.0 +0100
+++ /work/SRC/openSUSE:Factory/.insserv-compat.new/insserv-compat.changes   
2017-04-12 17:09:10.407080081 +0200
@@ -1,0 +2,5 @@
+Wed Mar 29 13:05:40 UTC 2017 - ku...@suse.com
+
+- Add /etc/init.d hierachy from filesystem
+
+---



Other differences:
--
++ insserv-compat.spec ++
--- /var/tmp/diff_new_pack.V84UsH/_old  2017-04-12 17:09:11.098982135 +0200
+++ /var/tmp/diff_new_pack.V84UsH/_new  2017-04-12 17:09:11.102981568 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package insserv-compat
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -53,6 +53,7 @@
 ln -s ../usr/sbin/insserv  %{buildroot}/sbin/insserv
 ln -s ../../sbin/insserv  %{buildroot}/usr/lib/lsb/install_initd
 ln -s ../../sbin/insserv  %{buildroot}/usr/lib/lsb/remove_initd
+mkdir -p 
%{buildroot}/etc/init.d/{boot.d,rc0.d,rc1.d,rc2.d,rc3.d,rc4.d,rc5.d,rc6.d,rcS.d}
 
 %clean
 rm -rf %{buildroot}
@@ -60,6 +61,16 @@
 %files
 %defattr(-,root,root)
 %config %{_sysconfdir}/insserv.conf
+%dir %attr(0755,root,root) /etc/init.d
+%dir %attr(0755,root,root) /etc/init.d/boot.d
+%dir %attr(0755,root,root) /etc/init.d/rc0.d
+%dir %attr(0755,root,root) /etc/init.d/rc1.d
+%dir %attr(0755,root,root) /etc/init.d/rc2.d
+%dir %attr(0755,root,root) /etc/init.d/rc3.d
+%dir %attr(0755,root,root) /etc/init.d/rc4.d
+%dir %attr(0755,root,root) /etc/init.d/rc5.d
+%dir %attr(0755,root,root) /etc/init.d/rc6.d
+%dir %attr(0755,root,root) /etc/init.d/rcS.d
 %{_sbindir}/insserv
 /sbin/insserv
 /lib/lsb/init-functions




commit insserv-compat for openSUSE:Factory

2016-01-26 Thread h_root
Hello community,

here is the log from the commit of package insserv-compat for openSUSE:Factory 
checked in at 2016-01-26 10:14:13

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
2015-12-13 09:33:38.0 +0100
+++ /work/SRC/openSUSE:Factory/.insserv-compat.new/insserv-compat.changes   
2016-01-26 10:14:14.0 +0100
@@ -1,0 +2,5 @@
+Mon Jan 18 11:03:48 UTC 2016 - lnus...@suse.de
+
+- ntp was renamed to ntpd at some point (bsc#960820)
+
+---



Other differences:
--
++ insserv-compat.spec ++
--- /var/tmp/diff_new_pack.i18OWx/_old  2016-01-26 10:14:15.0 +0100
+++ /var/tmp/diff_new_pack.i18OWx/_new  2016-01-26 10:14:15.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package insserv-compat
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 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

++ insserv.conf ++
--- /var/tmp/diff_new_pack.i18OWx/_old  2016-01-26 10:14:15.0 +0100
+++ /var/tmp/diff_new_pack.i18OWx/_new  2016-01-26 10:14:15.0 +0100
@@ -2,4 +2,4 @@
 # It is parsed by systemd.
 $named +named +dnsmasq +lwresd
 $remote_fs $local_fs +nfs +cifs
-$time  +ntp
+$time  +ntpd




commit insserv-compat for openSUSE:Factory

2015-12-13 Thread h_root
Hello community,

here is the log from the commit of package insserv-compat for openSUSE:Factory 
checked in at 2015-12-13 09:33:37

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
2015-07-05 17:50:15.0 +0200
+++ /work/SRC/openSUSE:Factory/.insserv-compat.new/insserv-compat.changes   
2015-12-13 09:33:38.0 +0100
@@ -1,0 +2,5 @@
+Tue Dec  1 13:52:22 UTC 2015 - lnus...@suse.de
+
+- fix directory argument parsing (bnc#944903)
+
+---



Other differences:
--
++ insserv.pl ++
--- /var/tmp/diff_new_pack.tsvscH/_old  2015-12-13 09:33:39.0 +0100
+++ /var/tmp/diff_new_pack.tsvscH/_new  2015-12-13 09:33:39.0 +0100
@@ -65,6 +65,7 @@
 =cut
 
 use strict;
+use File::Basename qw/basename dirname/;
 use Getopt::Long;
 Getopt::Long::Configure("no_ignore_case");
 
@@ -237,19 +238,26 @@
) or usage(1);
 }
 
+$init_d = $options{'path'} if $options{'path'};
+
 if (@ARGV) {
-   if (-d $ARGV[0]) {
-   $init_d = shift @ARGV;
+   my $p = $ARGV[0] =~ /\// ? $ARGV[0] : "$init_d/$ARGV[0]";
+   if (!-e $p) {
+   warn "$p doesn't exist";
usage(1) if @ARGV;
cleanup();
}
+   if (-d _) {
+   $init_d = shift @ARGV;
+   } else {
+   $init_d = dirname($p);
+   $ARGV[0] = basename($p);
+   }
 }
 
 usage(1) if ($options{'remove'} && !@ARGV);
 usage(0) if ($options{'help'});
 
-$init_d = $options{'path'} if $options{'path'};
-
 if (@ARGV) {
for my $name (@ARGV) {
if ($name =~ s/^(\/.*)\/(.+)/$2/) {




commit insserv-compat for openSUSE:Factory

2015-07-05 Thread h_root
Hello community,

here is the log from the commit of package insserv-compat for openSUSE:Factory 
checked in at 2015-07-05 17:50:14

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-09-10 07:28:41.0 +0200
+++ /work/SRC/openSUSE:Factory/.insserv-compat.new/insserv-compat.changes   
2015-07-05 17:50:15.0 +0200
@@ -1,0 +2,5 @@
+Wed Jun 10 12:06:14 UTC 2015 - lnus...@suse.de
+
+- it's perl script so actually require perl(Getopt::Long)
+
+---



Other differences:
--
++ insserv-compat.spec ++
--- /var/tmp/diff_new_pack.CT1C7h/_old  2015-07-05 17:50:16.0 +0200
+++ /var/tmp/diff_new_pack.CT1C7h/_new  2015-07-05 17:50:16.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package insserv-compat
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 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
@@ -31,6 +31,7 @@
 BuildArch:  noarch
 Obsoletes:  insserv = 1.16.0
 Provides:   insserv = 1.16.1-1
+Requires:   perl(Getopt::Long)
 
 %description 
 insserv is used enable System V init scripts. This package only




commit insserv-compat for openSUSE:Factory

2014-09-09 Thread h_root
Hello community,

here is the log from the commit of package insserv-compat for openSUSE:Factory 
checked in at 2014-09-10 07:28:33

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-06-18 22:04:32.0 +0200
+++ /work/SRC/openSUSE:Factory/.insserv-compat.new/insserv-compat.changes   
2014-09-10 07:28:41.0 +0200
@@ -1,0 +2,9 @@
+Mon Sep  8 15:23:26 UTC 2014 - lnus...@suse.de
+
+- don't add dependency between named and $network as
+  systemd-insserv-generator translates them to nss-lookup.target and
+  network-online.target which results in an undesirable,
+  unconditional dependency of multi-user.target on
+  network-online.target (bnc#895611)
+
+---



Other differences:
--
++ insserv.conf ++
--- /var/tmp/diff_new_pack.WxKIXC/_old  2014-09-10 07:28:41.0 +0200
+++ /var/tmp/diff_new_pack.WxKIXC/_new  2014-09-10 07:28:41.0 +0200
@@ -1,5 +1,5 @@
 # insserv.conf is kept for backward compatibilty with old scripts.
 # It is parsed by systemd.
-$named +named +dnsmasq +lwresd $network
+$named +named +dnsmasq +lwresd
 $remote_fs $local_fs +nfs +cifs
 $time  +ntp

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit insserv-compat for openSUSE:Factory

2014-06-18 Thread h_root
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.0 +0100
+++ /work/SRC/openSUSE:Factory/.insserv-compat.new/insserv-compat.changes   
2014-06-18 22:04:32.0 +0200
@@ -1,0 +2,7 @@
+Tue Jun  3 08:31:52 UTC 2014 - lnus...@suse.de
+
+- 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.0 +0200
+++ /var/tmp/diff_new_pack.IMw8Ni/_new  2014-06-18 22:04:33.0 +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.0 +0200
+++ /var/tmp/diff_new_pack.IMw8Ni/_new  2014-06-18 22:04:33.0 +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: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit insserv-compat for openSUSE:Factory

2014-03-26 Thread h_root
Hello community,

here is the log from the commit of package insserv-compat for openSUSE:Factory 
checked in at 2014-03-27 06:13:07

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
2013-07-05 15:04:35.0 +0200
+++ /work/SRC/openSUSE:Factory/.insserv-compat.new/insserv-compat.changes   
2014-03-27 06:13:08.0 +0100
@@ -1,0 +2,5 @@
+Tue Mar 25 13:45:06 CET 2014 - jdelv...@suse.de
+
+- turn into a noarch package
+
+---



Other differences:
--
++ insserv-compat.spec ++
--- /var/tmp/diff_new_pack.NcXrrd/_old  2014-03-27 06:13:09.0 +0100
+++ /var/tmp/diff_new_pack.NcXrrd/_new  2014-03-27 06:13:09.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package insserv-compat
 #
-# Copyright (c) 2013 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
@@ -28,6 +28,7 @@
 Source1:init-functions
 Source2:insserv.conf
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+BuildArch:  noarch
 Obsoletes:  insserv = 1.16.0
 Provides:   insserv = 1.16.1-1
 

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit insserv-compat for openSUSE:Factory

2013-07-05 Thread h_root
Hello community,

here is the log from the commit of package insserv-compat for openSUSE:Factory 
checked in at 2013-07-05 15:04:35

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
2013-01-30 09:30:02.0 +0100
+++ /work/SRC/openSUSE:Factory/.insserv-compat.new/insserv-compat.changes   
2013-07-05 15:04:35.0 +0200
@@ -1,0 +2,6 @@
+Fri Jul  5 07:33:53 UTC 2013 - lnus...@suse.de
+
+- print warning if a sysv init script is masked by a systemd service
+  (bnc#798510, bnc#804273)
+
+---



Other differences:
--
++ insserv.pl ++
--- /var/tmp/diff_new_pack.RtkdWe/_old  2013-07-05 15:04:36.0 +0200
+++ /var/tmp/diff_new_pack.RtkdWe/_new  2013-07-05 15:04:36.0 +0200
@@ -127,9 +127,31 @@
}
 }
 
+
+sub get_systemd_service($)
+{
+   my $name = shift;
+   for my $file (/usr/lib/systemd/system/$name.service,
+   /run/systemd/system/$name.service,
+   /etc/systemd/system/$name.service) {
+   return $file if -e $file;
+   }
+   return undef;
+}
+sub warn_systemd_masked($$)
+{
+   return unless -t STDERR;
+   my $name = shift;
+   my $state = shift;
+   my $file = get_systemd_service($name);
+   return unless $file;
+   print STDERR Warning: $init_d/$name is masked by $file.\nTry 
'chkconfig $name $state' instead\n;
+}
+
 sub disable($)
 {
my $name = shift;
+   warn_systemd_masked($name, off);
for my $link (@{getlinks($name)||[]}) {
do_unlink($link);
}
@@ -154,6 +176,7 @@
$name =~ s/,(?:start|stop)=.*//;
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');

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit insserv-compat for openSUSE:Factory

2013-01-19 Thread h_root
Hello community,

here is the log from the commit of package insserv-compat for openSUSE:Factory 
checked in at 2013-01-20 07:50:05

Comparing /work/SRC/openSUSE:Factory/insserv-compat (Old)
 and  /work/SRC/openSUSE:Factory/.insserv-compat.new (New)


Package is insserv-compat, Maintainer is 

Changes:

--- /work/SRC/openSUSE:Factory/insserv-compat/insserv-compat.changes
2013-01-14 12:01:52.0 +0100
+++ /work/SRC/openSUSE:Factory/.insserv-compat.new/insserv-compat.changes   
2013-01-20 07:50:06.0 +0100
@@ -1,0 +2,5 @@
+Sat Jan 19 10:59:53 UTC 2013 - lnus...@suse.de
+
+- strip off extra start/stop overrides
+
+---



Other differences:
--
++ insserv.pl ++
--- /var/tmp/diff_new_pack.IiOiN3/_old  2013-01-20 07:50:07.0 +0100
+++ /var/tmp/diff_new_pack.IiOiN3/_new  2013-01-20 07:50:07.0 +0100
@@ -151,9 +151,11 @@
 sub enable($)
 {
my $name = shift;
+   $name =~ s/,(?:start|stop)=.*//;
my $links = getlinks($name);
return 0 if $links; # already enabled
my $h = parse($name);
+   return unless defined $h;
createlinks('S', $name, $h-{'default-start'} || '2 3 5');
# default stop is actually ignored in SUSE ... o_O
createlinks('K', $name, $h-{'default-start'} || '2 3 5');

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit insserv-compat for openSUSE:Factory

2013-01-14 Thread h_root
Hello community,

here is the log from the commit of package insserv-compat for openSUSE:Factory 
checked in at 2013-01-14 12:01:50

Comparing /work/SRC/openSUSE:Factory/insserv-compat (Old)
 and  /work/SRC/openSUSE:Factory/.insserv-compat.new (New)


Package is insserv-compat, Maintainer is 

Changes:

--- /work/SRC/openSUSE:Factory/insserv-compat/insserv-compat.changes
2013-01-10 07:16:51.0 +0100
+++ /work/SRC/openSUSE:Factory/.insserv-compat.new/insserv-compat.changes   
2013-01-14 12:01:52.0 +0100
@@ -1,0 +2,5 @@
+Mon Jan 14 10:21:13 UTC 2013 - lnus...@suse.de
+
+- don't hard require Pod::Usage (bnc#798316)
+
+---



Other differences:
--
++ insserv.pl ++
--- /var/tmp/diff_new_pack.ZVagfV/_old  2013-01-14 12:01:53.0 +0100
+++ /var/tmp/diff_new_pack.ZVagfV/_new  2013-01-14 12:01:53.0 +0100
@@ -161,8 +161,7 @@
 
 sub usage($) {
my $r = shift;
-   use Pod::Usage;
-   pod2usage($r);
+   eval use Pod::Usage; pod2usage($r);;
if ($@) {
die Pod::Usage missing\n;
}

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit insserv-compat for openSUSE:Factory

2013-01-09 Thread h_root
Hello community,

here is the log from the commit of package insserv-compat for openSUSE:Factory 
checked in at 2013-01-10 07:16:49

Comparing /work/SRC/openSUSE:Factory/insserv-compat (Old)
 and  /work/SRC/openSUSE:Factory/.insserv-compat.new (New)


Package is insserv-compat, Maintainer is 

Changes:

New Changes file:

--- /dev/null   2013-01-09 19:40:42.352580873 +0100
+++ /work/SRC/openSUSE:Factory/.insserv-compat.new/insserv-compat.changes   
2013-01-10 07:16:51.0 +0100
@@ -0,0 +1,5 @@
+---
+Tue Dec 18 16:49:43 UTC 2012 - lnus...@suse.de
+
+- new package
+

New:

  init-functions
  insserv-compat.changes
  insserv-compat.spec
  insserv.pl



Other differences:
--
++ insserv-compat.spec ++
#
# spec file for package insserv-compat
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An Open Source License is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# icecream 0


Name:   insserv-compat
Summary:Simple insserv replacement for systemd only systems
License:MIT
Group:  System/Base
Version:0.1
Release:0
Url:
https://build.opensuse.org/package/show?package=%nameproject=openSUSE%3AFactory
Source: insserv.pl
Source1:init-functions
BuildRoot:  %{_tmppath}/%{name}-%{version}-build
Obsoletes:  insserv = 1.16.0
Provides:   insserv = 1.16.1-1

%description 
insserv is used enable System V init scripts. This package only
contains a stub implemenation for use on systemd only systems.

%prep
%setup -q -c -T
%build
pod2man -s 8 -c 'The openSUSE boot concept' -r openSUSE 12.3 -u %SOURCE0 
insserv.8

%install
for i in /sbin %{_sbindir} /usr/lib/lsb /lib/lsb %{_mandir}/man8; do
install -d -m 755 %{buildroot}$i
done
install -m755 %{SOURCE0} %{buildroot}%{_sbindir}/insserv
install -m755 %{SOURCE1} %{buildroot}/lib/lsb/init-functions
install -m644 insserv.8 %{buildroot}%{_mandir}/man8
ln -s ../usr/sbin/insserv  %{buildroot}/sbin/insserv
ln -s ../../sbin/insserv  %{buildroot}/usr/lib/lsb/install_initd
ln -s ../../sbin/insserv  %{buildroot}/usr/lib/lsb/remove_initd

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_sbindir}/insserv
/sbin/insserv
/lib/lsb/init-functions
/usr/lib/lsb/install_initd
/usr/lib/lsb/remove_initd
%{_mandir}/man8/insserv.*

%changelog
++ init-functions ++
#
# Define init LSB shell functions
#

#
# Source SuSE's rc functions
#
. /etc/rc.status

#
# Be sure that  start_daemon, killproc, and
# pidofproc will be script functions.
#
function start_daemon ()
{
/sbin/start_daemon ${1+$@}
}

function killproc ()
{
/sbin/killproc ${1+$@}
}

function pidofproc ()
{
/sbin/pidofproc ${1+$@}
}

#
# Logging of succes messages
#
function log_success_msg ()
{
echo -en $@
echo -e  $rc_done
}

#
# Logging of failure messages
#
function log_failure_msg ()
{
echo -en $@
echo -e  $rc_failed
}

#
# Logging of warn messages
#
function log_warning_msg ()
{
echo -en $@
echo -e  ${stat}${attn} warning${norm}
}

++ insserv.pl ++
#!/usr/bin/perl -w
# Copyright (c) 2012,2013 SUSE Linux Products GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the Software), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR