--- insserv-1.11.0.orig/debian/dirs +++ insserv-1.11.0/debian/dirs @@ -0,0 +1,3 @@ +usr/sbin +usr/share/insserv/examples +usr/share/insserv/overrides --- insserv-1.11.0.orig/debian/update-bootsystem-insserv +++ insserv-1.11.0/debian/update-bootsystem-insserv @@ -0,0 +1,233 @@ +#!/bin/sh +# +# Author: Petter Reinholdtsen +# Date: 2005-09-03 +# +# Update the boot order based on init.d script dependency info + +set -e + +now=`date +%Y%m%dT%H%M` +logdir=/var/lib/insserv +backupfile="$logdir/bootscripts-$now.tar.gz" +listfile="$logdir/bootscripts-$now-after.list" +logfile="$logdir/run-$now.log" +flagfile="$logdir/using-insserv" + +# Make sure insserv is in path +PATH=/sbin:$PATH + +convert_rc_s_to_k() { + runlevel=$1 + for link in $(cd $target/etc/rc$runlevel.d; ls S* || true); do + set `echo $link|sed "s%S\(..\)\(.*\)%\1 \2%"` + seq=$1 + service=$2 + mv $target/etc/rc$runlevel.d/$link $target/etc/rc$runlevel.d/K$seq$service + done +} + +# Recreate sysv boot sequence by calling the postinst for all packages +# with init.d scripts, to get them to call update-rc.d again. +regenerate_sysv_sequence() { + packages="$(dpkg -S $(find /etc/init.d -type f -perm /+x) 2>/dev/null | cut -d: -f1 | sort -u)" + + for p in $packages ; do + # Make sure it is installed + if dpkg --get-selections $p | grep -qw install ; then + # Only fix packages with init.d scripts + if dpkg -L $p | grep -q /etc/init.d/ ; then + brokenpackages="$brokenpackages $p" + fi + fi + done + + # Remove the old sequence + find /etc/rc[S0123456].d -type l -print0 | xargs -0 rm + + # As the sysv-rc update-rc.d script do not check dependencies, it + # is enough to run through these scripts once. + for p in $brokenpackages ; do + if [ -x /var/lib/dpkg/info/$p.postinst ] ; then + echo "info: running package $p postinst" + DEBCONF_FRONTEND=noninteractive \ + /var/lib/dpkg/info/$p.postinst configure < /dev/null || true + else + echo "error: package $p got init.d script but no postinst" + fi + done + + # Using postinst directly might mess up the terminal. Try to recover + reset || true +} + +# Based on code from dash postinst +check_divert() { + package=insserv + div=$(dpkg-divert --list $2) + distrib=${4:-$2.distrib} + case "$1" in + true) + if [ -z "$div" ]; then + dpkg-divert --package $package --divert $distrib --add $2 + cp -dp $2 $distrib + ln -sf $3 $2 + fi + ;; + false) + if [ -n "$div" ] && [ -z "${div%%*by $package}" ]; then + mv $distrib $2 + dpkg-divert --remove $2 + fi + ;; + status) # Return true if the divert is in effect + if [ -n "$div" ] && [ -z "${div%%*by $package}" ]; then + : + else + false + fi + esac +} + +deactivate_inserv() { + if check_divert status /usr/sbin/update-rc.d \ + /usr/sbin/update-rc.d-insserv ; then + # Undo divert + check_divert false /usr/sbin/update-rc.d \ + /usr/sbin/update-rc.d-insserv + fi + + if [ ! -f $flagfile ] ; then + echo "error: The boot system is not currently converted to insserv." + echo "error: Flag file $flagfile is missing." + echo "error: Unable to remove the use of insserv." + exit 1 + fi + + # Check if there has been changes, or if it is safe to restore + # from backup + + # Pick the last list of symlinks. + for file in $logdir/bootscripts-*-after.list ; do + listfile=$file + done + ls /etc/init.d /etc/rc*.d > "$logdir/current.list" + + # If the rc.d scripts order look like it did when we converted, it + # is safe to restore. + if [ -f $listfile ] && cmp $logdir/current.list $listfile ; then + rm "$logdir/current.list" + echo "info: Restoring using backed up copy of init.d/ and rc*.d/." + for backup in $logdir/bootscripts-*.tar.gz ; do + backupfile=$backup + done + if [ -f "$backupfile" ] ; then + (cd /etc; rm -rf init.d rc*.d; tar zxf $backupfile) + echo "info: successfully restored backup of init.d scripts" + rm $flagfile + else + echo "error: Unable to locate backup file" + exit 1 + fi + else + rm "$logdir/current.list" + echo "error: Unable to restore the boot sequence. Invalid backup." + echo "error: Trying to recover by reconfiguring all packages with init.d scripts." + regenerate_sysv_sequence + rm -f $flagfile + fi + + # Remove files generated by insserv + rm -f /etc/init.d/.depend.boot + rm -f /etc/init.d/.depend.start + rm -f /etc/init.d/.depend.stop +} + +is_unsafe_to_activate() { + # Refuse to convert when there are obsolete init.d scripts left + # behind, as these tend to confuse the boot sequence. + echo "info: Checking if it is safe to convert to dependency based boot." + retval=1 + for package in $(dpkg -S $(find /etc/init.d -type f -perm /+x) \ + 2>/dev/null | cut -d: -f1 | sort -u); do + obsolete_initscripts=$(dpkg-query -W -f='${Conffiles}\n' $package | \ + grep 'obsolete$' | grep -o '/etc/init.d/[^ ]\+') || : + if [ "$obsolete_initscripts" ]; then + for initscript in $obsolete_initscripts; do + if [ -e "$initscript" ]; then + echo "error: Obsolete conffile $initscript left behind by package $package" + retval=0 + fi + done + fi + done + + insserv -nv > $logfile 2>&1 || true + if egrep -q 'There is a loop between|already provided!|provides system facility' $logfile ; then + echo "error: Problems running insserv:" + egrep 'There is a loop between|loop involving service|already provided!|provides system facility' $logfile | sed 's/^/ /' + rm $logfile + retval=0 + fi + return $retval +} + +activate_insserv() { + if is_unsafe_to_activate ; then + cat < $logfile 2>&1 + + echo "info: Recording new boot sequence in $listfile" + ls /etc/init.d /etc/rc*.d > $listfile + + echo "info: Use '$0 restore' to restore the old boot sequence." + touch $flagfile + + # Divert update-rc.d to update-rc.d-insserv + check_divert true /usr/sbin/update-rc.d \ + /usr/sbin/update-rc.d-insserv +} + +case "$1" in + enable|'') + activate_insserv + ;; + disable|restore) + deactivate_inserv + ;; + check) + if is_unsafe_to_activate ; then + echo "warning: It is not safe to convert to dependency based boot." + exit 1 + else + echo "info: It is safe to convert to dependency based boot." + exit 0 + fi + ;; + *) + echo "error: Unknown argument '$1'" + exit 1 + ;; +esac + +exit 0 --- insserv-1.11.0.orig/debian/insserv.dirs +++ insserv-1.11.0/debian/insserv.dirs @@ -0,0 +1,3 @@ +/var/lib/insserv +/usr/share/insserv/overrides +/usr/sbin --- insserv-1.11.0.orig/debian/update-bootsystem-insserv.8 +++ insserv-1.11.0/debian/update-bootsystem-insserv.8 @@ -0,0 +1,29 @@ +.\" Copyright 2005 Petter Reinholdtsen +.\" May be distributed under the GNU General Public License +.TH "update-bootsystem-insserv" "8" "9 October 2005" "Petter Reinholdtsen" "" +.SH "NAME" +update\-bootsystem\-insserv \- reorder boot system based on dependency information +in the init.d scripts +.SH "SYNOPSIS" +.B update\-bootsystem\-insserv + +.B update\-bootsystem\-insserv restore +.SH "DESCRIPTION" +.B update\-bootsystem\-insserv +can be used to change the sysv\-rc boot order based on dependency +information available in LSB init.d format in the init.d scripts or +in override files in /usr/share/insserv/overrides/* and +/etc/insserv/overrides/*. +.SH "OPTIONS" +.TP +.I "restore" +Restore the boot order to the state it had before update\-bootsystem\-insserv +was executed the last time. +.SH "FILES" +/etc/insserv.conf +/etc/insserv/overrides/* +/usr/share/insserv/overrides/* +.SH "SEE ALSO" +update\-rc.d(8), insserv(8) +.SH "AUTHOR" +Petter Reinholdtsen, --- insserv-1.11.0.orig/debian/rules +++ insserv-1.11.0/debian/rules @@ -0,0 +1,124 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +PACKAGE = insserv + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +#CFLAGS += -DDEBUG=1 + +INSTALL = install +INSTALL_DATA = $(INSTALL) -m644 +DESTDIR = $(CURDIR)/debian/$(PACKAGE) + +pkgdatadir = /usr/share/$(PACKAGE) +sbindir = /usr/sbin + +include /usr/share/dpatch/dpatch.make + +build: build-stamp + +build-stamp: patch-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) COPTS="$(CFLAGS)" + + chmod a+rx debian/run-testsuite + debian/run-testsuite + + touch build-stamp + +clean: clean-extra + dh_testdir + rm -f build-stamp + + # Add here commands to clean up after the build process. + $(MAKE) clean + + # Remove patches after doing 'make clean', to allow patches to adjust the clean target + $(MAKE) -f debian/rules unpatch + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/$(PACKAGE). + $(MAKE) install DESTDIR=$(DESTDIR) + + $(INSTALL_DATA) debian/overrides/* $(DESTDIR)$(pkgdatadir)/overrides/. + $(INSTALL) debian/check-initd-order $(DESTDIR)$(pkgdatadir)/. + $(INSTALL) debian/seq-changes $(DESTDIR)$(pkgdatadir)/. + $(INSTALL) debian/make-testsuite $(DESTDIR)$(pkgdatadir)/. + $(INSTALL) debian/update-bootsystem-insserv $(DESTDIR)$(sbindir)/. + $(INSTALL) debian/update-rc.d-insserv $(DESTDIR)$(sbindir)/. + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs CHANGES + dh_installdocs + dh_installexamples + dh_installdebconf +# dh_install + dh_installman debian/update-bootsystem-insserv.8 debian/update-rc.d-insserv.8 + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install + +# List the init.d missing LSB headers and override files +missing-overrides: + @GET http://lintian.debian.org/reports/tags/init.d-script-missing-lsb-section.html | grep W: | rev | cut -d/ -f1 | rev | sort -u > missing + @(ls debian/overrides/; cut -d" " -f1 debian/headers-reported |grep -v '#' ) |sort -u > overrides + @echo -n "Init.d scripts missing overrides and BTS reports: "; comm -23 missing overrides|wc -l + @echo $$(comm -23 missing overrides) |fold -s | sed 's/^/ /' + @echo -n "Scripts with overrides or BTS reports and no LSB header: "; comm -12 missing overrides|wc -l + @echo $$(comm -12 missing overrides) |fold -s | sed 's/^/ /' + @echo -n "Scripts with overrides and not missing LSB header: "; comm -13 missing overrides|wc -l + @echo $$(comm -13 missing overrides) |fold -s | sed 's/^/ /' + @echo -n "Override files that need a bug report: "; sh debian/bts-lefttoreport|wc -l + @echo $$(sh debian/bts-lefttoreport | sort -u) |fold -s | sed 's/^/ /' + +.PHONY: phony +bin-by-inst.txt: phony + @GET http://popcon.debian.org/by_inst > bin-by-inst.txt +missingpkgs: phony + @GET http://lintian.debian.org/reports/tags/init.d-script-missing-lsb-section.html | grep W: | cut -d'<' -f 2 | cut -d'>' -f2 | sort -u > missingpkgs +missing-by-popcon: bin-by-inst.txt missingpkgs + @for pkg in $$(cat missingpkgs); do \ + if grep -q " $$pkg " debian/headers-reported ; then \ + grep " $$pkg " bin-by-inst.txt | sed 's/$$/ */'; \ + else \ + grep " $$pkg " bin-by-inst.txt ; \ + fi ; \ + done | sort -n + +clean-extra: + $(RM) missing overrides + $(RM) bin-by-inst.txt missingpkgs --- insserv-1.11.0.orig/debian/control +++ insserv-1.11.0/debian/control @@ -0,0 +1,21 @@ +Source: insserv +Section: misc +Priority: optional +Maintainer: Petter Reinholdtsen +Build-Depends: debhelper (>= 4.0.0), po-debconf, dpatch +Standards-Version: 3.7.3 +Vcs-Svn: svn://svn.debian.org/initscripts-ng/trunk/src/insserv +Vcs-Browser: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv + +Package: insserv +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, sysv-rc +Suggests: bootchart +Conflicts: initscripts (<< 2.86.ds1-48) +Description: boot sequence organizer using LSB init.d script dependencies + This utility reorders the init.d boot scripts based on dependencies + given in scripts' LSB comment headers, or in override files + included in this package or added in /etc/insserv. + . + This package should be used with care, as incorrect or missing dependencies + can lead to an unbootable system. --- insserv-1.11.0.orig/debian/check-initd-order +++ insserv-1.11.0/debian/check-initd-order @@ -0,0 +1,408 @@ +#!/usr/bin/perl +# +# Author: Petter Reinholdtsen +# Date: 2005-08-21 +# +# Read LSM init.d headers in SysV init.d scripts, and verify correct +# start order for all runlevels. It can also provide a graph. +# +# To generate a graph, run it like this +# +# check-initd-order -g > initorder.dotty && dotty initorder.dotty + +use strict; +use warnings; + +my $rcbase = "/etc"; +#$rcbase = "/opt/ltsp/i386/etc"; + +my $overridepath = "/usr/share/insserv/overrides"; +my $hostoverridepath = "/etc/insserv/overrides"; + +my $debug = 0; + +my %rcmap = + ( + 'B' => 'rc.boot', + 'S' => 'rcS.d', + '1' => 'rc1.d', + '2' => 'rc2.d', + '3' => 'rc3.d', + '4' => 'rc4.d', + '5' => 'rc5.d', + '6' => 'rc6.d', + ); + +my %sysmap; + +my %provideslist; +my %scriptorder; +my %opts; + +# Used to draw graphs +my %gotrevdeps; +my %allprovides; + +load_sysmap("/etc/insserv.conf"); + +while($#ARGV >= 0 && ($_ = $ARGV[0]) =~ /^-/) { + shift @ARGV; + if (/^-([cdgko])$/) { $opts{$1}++; next } + if (/^-h|--help$/) { &usage; } + &usage("unknown option"); +} + +$debug = $opts{'d'}; +my $useoverrides = $opts{'o'} ? 0 : 1; + +if ($opts{'g'}) { + graph_generate(); + exit 0; +} + +check_bootorder(); + +sub usage { + print STDERR "check-initd-order: error: @_\n" if ($#_ >= 0); + print STDERR <) { + chomp; + s/\#.*$//; + next if m/^\s*$/; + if (m/^(\$\S+)\s+(\S.*\S*)\S*$/) { + my $virt = $1; + for my $dep (split(/\s+/, $2)) { + $dep =~ s/^\+//g; + $sysmap{$dep} = $virt; + } + } + } + close(CONF); +} + +sub graph_addnode { + my ($isstopseq, $lsbinforef) = @_; + my %lsbinfo = %{$lsbinforef}; + + unless ($lsbinfo{'provides'}) { + print STDERR "error: File ". $lsbinfo{'file'} . " is missing the provides header\n"; + $lsbinfo{'provides'} = $lsbinfo{'file'}; + $lsbinfo{'provides'} =~ s/^[SK]\d{2}//; + } + + my $key = $opts{'k'} ? 'stop' : 'start'; + my $revkey = $opts{'k'} ? 'stop-after' : 'start-before'; + my @provides = split(/\s+/, $lsbinfo{'provides'}); + for my $name (@provides) { + if (exists $sysmap{$name}) { + graph_addnode($isstopseq, + {'provides' => $sysmap{$name}, + "required-$key" => $name}); + } + } + + if (1 < @provides) { + my @providescopy = @provides; + my $lastprovide = shift @providescopy; + for my $provide (@providescopy) { + graph_addnode($isstopseq, + {'provides' => $lastprovide, + "required-$key" => $provide}); + graph_addnode($isstopseq, + {'provides' => $provide, + "required-$key" => $lastprovide}); + } + } + + for my $provide (@provides) { + my %deps = + ( + "required-$key" => 'blue', + "should-$key" => 'springgreen', + "$revkey" => 'yellow' + ); + + for $key (keys %deps) { + if (exists $lsbinfo{$key} && $lsbinfo{$key}) { + my @depends = split(/\s+/, $lsbinfo{$key}); + + my $dependonall = 0; + for my $pkg (@depends) { + $dependonall = 1 if ($pkg eq '$all'); + } + + for my $pkg (@depends) { + my $color = $deps{$key}; + if ($revkey eq $key) { + print "\"$provide\" -> \"$pkg\"[color=$color] ;\n"; + $gotrevdeps{$pkg} = 1 unless $dependonall; + } else { + print "\"$pkg\" -> \"$provide\"[color=$color] ;\n"; + $gotrevdeps{$provide} = 1 unless $dependonall; + } + } + } + } + + print "\"$provide\" [shape=box];\n" unless $allprovides{$provide}; + $allprovides{$provide} = 1; + } +} + +sub graph_generate_mode { + my ($isstopseq) = @_; + my @dirs = $isstopseq ? $rcmap{6} : ($rcmap{S}, $rcmap{2}); + for my $rcdir (@dirs) { + chdir "$rcbase/$rcdir/."; + my @scripts = $isstopseq ? : ; + for my $script (@scripts) { + my $lsbinforef = load_lsb_tags("$rcbase/$rcdir/$script", + $useoverrides); + + unless (defined $lsbinforef) { + print STDERR "warning: LSB header missing in $rcbase/$rcdir/$script\n"; + $script =~ s/^[SK]\d{2}//; + $lsbinforef = {'provides' => $script, + 'required-start' => '$remote_fs $syslog', + 'required-stop' => '$remote_fs $syslog'}; + } + graph_addnode($isstopseq, $lsbinforef); + } + } + # Mark all packages without any reverse dependencies as depending + # on $all + for my $provide (keys %allprovides) { + next unless (exists $gotrevdeps{$provide}); + my $lsbinforef = {'provides' => '$all', + 'required-start' => "$provide", + 'required-stop' => "$provide"}; + graph_addnode($isstopseq, $lsbinforef); + } +} + +sub graph_generate { + print "# Generating graph\n"; + print < $bootorder)) { + my $deporder; + if (exists $scriptorder{$tag}{$dep}) { + $deporder = $scriptorder{$tag}{$dep} + } else { + $deporder = exists $provideslist{$dep} ? $provideslist{$dep} : "?"; + } + printf("Incorrect order %s@%s %s %s%s\n", + $dep, $deporder, 'S' eq $tag ? '>' : '<', + $name, $order); + } + } + } + } +} + +sub check_bootorder { + my $bootorder = 0; + my @dirs = $opts{'k'} ? $rcmap{6} : ($rcmap{S}, $rcmap{2}); + my @scripts; + for my $rcdir (@dirs) { +# chdir "$rcbase/$rcdir/."; + push(@scripts, $opts{'k'} ? <$rcbase/$rcdir/K*> : <$rcbase/$rcdir/S*>); + } + + if ($opts{'k'}) { + $scriptorder{'K'}{'$all'} = 1; + } else { + # Calculate script order for the script before the scripts + # with the last boot sequence number. + my $tmpbootorder = 0; + my $allorder = 0; + my $maxorder = 0; + my $maxbootorder = 0; + for my $scriptpath (@scripts) { + my $script = $scriptpath; + $script =~ s%^.*/([^/]+)$%$1%; + $tmpbootorder++; + my ($tag, $order, $name) = $script =~ m/^(.)(\d{2})(.+)$/; + if ($order > $maxorder) { + $allorder = $maxbootorder; + $maxbootorder = $tmpbootorder; + $maxorder = $order; + } + + my $lsbinforef = load_lsb_tags($scriptpath, + $useoverrides); + + if (exists $lsbinforef->{'provides'}) { + for my $provide (split(/\s+/, $lsbinforef->{'provides'})) { + $provideslist{$provide} = $order; + } + } else { + $provideslist{$script} = $order; + } + } + $scriptorder{'S'}{'$all'} = $allorder; + } + for my $scriptpath (@scripts) { + my $script = $scriptpath; + $script =~ s%^.*/([^/]+)$%$1%; + $bootorder++; + my ($tag, $order, $name) = $script =~ m/^(.)(\d{2})(.+)$/; + + $scriptorder{$tag}{$name} = $bootorder; + $scriptorder{$tag}{$sysmap{$name}} = $bootorder + if (exists $sysmap{$name}); + +# print "$script\n"; +# print "T: $tag O: $order N: $name\n"; + my $lsbinforef = load_lsb_tags($scriptpath, + $useoverrides); + + unless (defined $lsbinforef) { + print STDERR "LSB header missing in $scriptpath\n"; + next; + } + my %lsbinfo = %{$lsbinforef}; + + for my $provide (split(/\s+/, $lsbinfo{'provides'})) { + $scriptorder{$tag}{$provide} = $bootorder; + $scriptorder{$tag}{$sysmap{$provide}} = $bootorder + if (exists $sysmap{$provide}); + } + + if ('S' eq $tag) { + check_deps($lsbinforef, $tag, $order, $bootorder, 'required-start', 1); + check_deps($lsbinforef, $tag, $order, $bootorder, 'should-start', 0); +# check_deps($lsbinforef, 'K', $order, $bootorder, 'start-before', 0); + } + if ('K' eq $tag) { + check_deps($lsbinforef, $tag, $order, $bootorder, 'required-stop', 1); + check_deps($lsbinforef, $tag, $order, $bootorder, 'should-stop', 0); +# check_deps($lsbinforef, 'S', $order, $bootorder, 'stop-after', 0); + } + } +} + +sub load_lsb_tags { + my ($initfile, $useoverrides) = @_; + my $lsbinforef = load_lsb_tags_from_file($initfile); + + if ($useoverrides) { + # Try override file + $initfile = readlink($initfile) if (-l $initfile); + my $basename = basename($initfile); + + # Only read shipped override file when initscript does not + # contain LSB tags. + if (! defined($lsbinforef) && -f "$overridepath/$basename") { + print STDERR "Override $overridepath/$basename\n" if $debug; + $lsbinforef = load_lsb_tags_from_file("$overridepath/$basename"); + } + + # Always read the host override in $hostoverridepath. + if (-f "$hostoverridepath/$basename") { + print STDERR "Override $hostoverridepath/$basename\n" if $debug; + $lsbinforef = load_lsb_tags_from_file("$hostoverridepath/$basename"); + } + + } + return $lsbinforef; +} + +sub load_lsb_tags_from_file { + my ($file) = @_; + print STDERR "Loading $file\n" if $debug; + ### BEGIN INIT INFO + # Provides: xdebconfigurator + # Required-Start: $syslog + # Required-Stop: $syslog + # Default-Start: 2 3 4 5 + # Default-Stop: 1 6 + # Short-Description: Genererate xfree86 configuration at boot time + # Description: Preseed X configuration and use dexconf to + # genereate a new configuration file. + ### END INIT INFO + unless (open(FILE, "<$file")) { + warn "error: Unable to read $file"; + return; + } + my $found = 0; + my ($provides, $requiredstart, $requiredstop, $shouldstart, $shouldstop); + my ($startbefore, $stopafter); + while () { + chomp; + $found = 1 if (m/\#\#\# BEGIN INIT INFO/); + next unless $found; + last if (m/\#\#\# END INIT INFO/); + + $provides = $1 if (m/^\# provides:\s+(\S*.*\S+)\s*$/i); + $requiredstart = $1 if (m/^\# required-start:\s+(\S*.*\S+)\s*$/i); + $requiredstop = $1 if (m/^\# required-stop:\s+(\S*.*\S+)\s*$/i); + $shouldstart = $1 if (m/^\# should-start:\s+(\S*.*\S+)\s*$/i); + $shouldstop = $1 if (m/^\# should-stop:\s+(\S*.*\S+)\s*$/i); + $startbefore = $1 if (m/^\# X-Start-Before:\s+(\S*.*\S+)\s*$/i); + $stopafter = $1 if (m/^\# X-Stop-After:\s+(\S*.*\S+)\s*$/i); + } + close(FILE); + + return undef unless ($found); + +# print "Provides: $provides\n" if $provides; + return { + 'provides' => $provides, + 'required-start' => $requiredstart, + 'required-stop' => $requiredstop, + 'should-start' => $shouldstart, + 'should-stop' => $shouldstop, + 'start-before' => $startbefore, + 'stop-after' => $stopafter, + 'file' => $file, + }; +} --- insserv-1.11.0.orig/debian/insserv.templates +++ insserv-1.11.0/debian/insserv.templates @@ -0,0 +1,24 @@ +# These templates have been reviewed by the debian-l10n-english +# team +# +# If modifications/additions/rewording are needed, please ask +# debian-l10n-english@lists.debian.org for advice. +# +# Even minor modifications require translation updates and such +# changes should be coordinated with translators and reviewers. + +Template: insserv/enable +Type: boolean +_Description: Enable (or keep enabled) the dependency-based boot sequence? + If you choose to enable the dependency-based boot sequence the + scripts in /etc/rc*.d/ will be reordered using dependency information + provided by LSB comment headers (or defaults where these are not + present). All S* symlinks in rc0.d/ and rc6.d/ will be turned into K* + symlinks, to make sure the way they are used (with the argument 'stop') + matches their names. The change will only be done after it is + verified that it is safe to convert. Disabling it when enabled will + try to revert the change. + . + Please note that this feature is experimental. Attempting to revert + from dependency-based boot sequencing is not guaranteed to be safe, + and may require the reinstallation of the system. --- insserv-1.11.0.orig/debian/po/pt.po +++ insserv-1.11.0/debian/po/pt.po @@ -0,0 +1,57 @@ +# translation of insserv debconf to Portuguese +# Copyright (C) 2008 Américo Monteiro +# This file is distributed under the same license as the insserv package. +# +# Américo Monteiro , 2008. +msgid "" +msgstr "" +"Project-Id-Version: insserv 1.10.0-4\n" +"Report-Msgid-Bugs-To: pere@debian.org\n" +"POT-Creation-Date: 2008-02-17 13:56+0100\n" +"PO-Revision-Date: 2008-02-12 00:09+0000\n" +"Last-Translator: Américo Monteiro \n" +"Language-Team: Portuguese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "Enable (or keep enabled) the dependency-based boot sequence?" +msgstr "" +"Activar (ou manter activa) a sequência de arranque baseada em dependências?" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"If you choose to enable the dependency-based boot sequence the scripts in /" +"etc/rc*.d/ will be reordered using dependency information provided by LSB " +"comment headers (or defaults where these are not present). All S* symlinks " +"in rc0.d/ and rc6.d/ will be turned into K* symlinks, to make sure the way " +"they are used (with the argument 'stop') matches their names. The change " +"will only be done after it is verified that it is safe to convert. Disabling " +"it when enabled will try to revert the change." +msgstr "" +"Se você escolher activar a sequência de arranque baseada em dependências, os " +"scripts em /etc/rc*.d/ serão reordenados usando informação disponibilizada " +"pelos comentários de cabeçalho do LSB (ou pré-definições quando estes não " +"estiverem presentes). Todos os symlinks S* em rc0.d/ e rc6.0 serão " +"convertidos em symlinks K*, para garantir que a maneira que são usados (com " +"o argumento 'stop') coincide com os seus nomes. A alteração só será feita " +"após ter sido verificado que é seguro fazê-la. Desactivando-a quando activa " +"irá tentar reverter a alteração." + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"Please note that this feature is experimental. Attempting to revert from " +"dependency-based boot sequencing is not guaranteed to be safe, and may " +"require the reinstallation of the system." +msgstr "" +"Por favor note que esta funcionalidade é experimental. A tentativa de " +"reverter de sequência de arranque baseada em dependências não é " +"garantidamente segura, e poderá necessitar da re-instalação do sistema." --- insserv-1.11.0.orig/debian/po/templates.pot +++ insserv-1.11.0/debian/po/templates.pot @@ -0,0 +1,45 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: pere@debian.org\n" +"POT-Creation-Date: 2008-02-17 13:56+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "Enable (or keep enabled) the dependency-based boot sequence?" +msgstr "" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"If you choose to enable the dependency-based boot sequence the scripts in /" +"etc/rc*.d/ will be reordered using dependency information provided by LSB " +"comment headers (or defaults where these are not present). All S* symlinks " +"in rc0.d/ and rc6.d/ will be turned into K* symlinks, to make sure the way " +"they are used (with the argument 'stop') matches their names. The change " +"will only be done after it is verified that it is safe to convert. Disabling " +"it when enabled will try to revert the change." +msgstr "" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"Please note that this feature is experimental. Attempting to revert from " +"dependency-based boot sequencing is not guaranteed to be safe, and may " +"require the reinstallation of the system." +msgstr "" --- insserv-1.11.0.orig/debian/po/es.po +++ insserv-1.11.0/debian/po/es.po @@ -0,0 +1,85 @@ +# insserv translation to spanish +# Copyright (C) 2007 Software in the Public Interest, SPI Inc. +# This file is distributed under the same license as the insserv package. +# +# Changes: +# - Initial translation +# Steve Lord Flaubert , 2008 +# +# +# Traductores, si no conoce el formato PO, merece la pena leer la +# documentación de gettext, especialmente las secciones dedicadas a este +# formato, por ejemplo ejecutando: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Equipo de traducción al español, por favor lean antes de traducir +# los siguientes documentos: +# +# - El proyecto de traducción de Debian al español +# http://www.debian.org/intl/spanish/ +# especialmente las notas y normas de traducción en +# http://www.debian.org/intl/spanish/notas +# +# - La guía de traducción de po's de debconf: +# /usr/share/doc/po-debconf/README-trans +# o http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Si tiene dudas o consultas sobre esta traducción consulte con el último +# traductor (campo Last-Translator) y ponga en copia a la lista de +# traducción de Debian al español () +# +# +msgid "" +msgstr "" +"Project-Id-Version: insserv 1.10.0-4\n" +"Report-Msgid-Bugs-To: pere@debian.org\n" +"POT-Creation-Date: 2008-02-17 13:56+0100\n" +"PO-Revision-Date: 2008-02-18 17:18-0500\n" +"Last-Translator: Steve Lord Flaubert \n" +"Language-Team: Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "Enable (or keep enabled) the dependency-based boot sequence?" +msgstr "" +"¿Activar (o mantener activada) la secuencia de arranque basada en " +"dependencias?" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"If you choose to enable the dependency-based boot sequence the scripts in /" +"etc/rc*.d/ will be reordered using dependency information provided by LSB " +"comment headers (or defaults where these are not present). All S* symlinks " +"in rc0.d/ and rc6.d/ will be turned into K* symlinks, to make sure the way " +"they are used (with the argument 'stop') matches their names. The change " +"will only be done after it is verified that it is safe to convert. Disabling " +"it when enabled will try to revert the change." +msgstr "" +"Si escoge activar una secuencia de arranque basada en dependencias, los " +"scripts en «/etc/rc*.d/» serán reordenados mediante información de " +"dependencia proporcionadas por los comentarios de cabecera de LSB (o valores " +"por omisión donde estos no estén presentes). Todos los enlaces simbólicos S* " +"en «rc0.d/ y rc6.d/» serán convertidos en enlaces simbólicos K*, para " +"asegurarse que la forma con que se usan (con el argumento «stop») coincidan " +"con sus nombres. El cambio sólo se hará después de que se compruebe que la " +"conversión es segura. Si está activo al desactivarlo se intentará revertir " +"el cambio. " + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"Please note that this feature is experimental. Attempting to revert from " +"dependency-based boot sequencing is not guaranteed to be safe, and may " +"require the reinstallation of the system." +msgstr "" +"Por favor tenga en cuenta que esta característica es experimental. No está " +"garantizado que se pueda revertir desde una secuencia de arranque basada en " +"dependencias y puede necesitar la reinstalación del sistema." --- insserv-1.11.0.orig/debian/po/it.po +++ insserv-1.11.0/debian/po/it.po @@ -0,0 +1,56 @@ +# Italian translation of the insserv debconf template +# This file is distributed under the same license as the insserv package +# Copyright (C) 2008 Free Software Foundation, Inc. +# Luca Monducci , 2008. +# +msgid "" +msgstr "" +"Project-Id-Version: insserv 1.10.0\n" +"Report-Msgid-Bugs-To: pere@debian.org\n" +"POT-Creation-Date: 2008-02-17 13:56+0100\n" +"PO-Revision-Date: 2008-02-25 14:23+0100\n" +"Last-Translator: Luca Monducci \n" +"Language-Team: Italian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "Enable (or keep enabled) the dependency-based boot sequence?" +msgstr "Attivare (o tenere attiva) la sequenza d'avvio basata su dipendenze?" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"If you choose to enable the dependency-based boot sequence the scripts in /" +"etc/rc*.d/ will be reordered using dependency information provided by LSB " +"comment headers (or defaults where these are not present). All S* symlinks " +"in rc0.d/ and rc6.d/ will be turned into K* symlinks, to make sure the way " +"they are used (with the argument 'stop') matches their names. The change " +"will only be done after it is verified that it is safe to convert. Disabling " +"it when enabled will try to revert the change." +msgstr "" +"Se si sceglie di attivare la sequenza di avvio basata sulle dipendenze, gli " +"script in /etc/rc*.d/ verranno riordinati in base alle informazioni sulle " +"dipendenze presenti nei commenti delle intestazioni LSB (o in base ai valori " +"predefiniti in caso di mancanza di queste informazioni). Tutti i link " +"simbolici S* in rc0.d/ e rc6.d/ verranno trasformati in link simbolici K* in " +"modo che il loro utilizzo (con l'argomento \"stop\") sia coerente con il " +"loro nome. La modifica verrà effettuata solo dopo aver verificato che la " +"conversione sia sicura. Una volta attivata, la disattivazione cerca di " +"ricreare la configurazione preesistente." + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"Please note that this feature is experimental. Attempting to revert from " +"dependency-based boot sequencing is not guaranteed to be safe, and may " +"require the reinstallation of the system." +msgstr "" +"Notare che questa funzionalità è sperimentale. Non si garantisce che il " +"ripristino della configurazione precedente funzioni correttamente e potrebbe " +"richiedere la reinstallazione del sistema." --- insserv-1.11.0.orig/debian/po/vi.po +++ insserv-1.11.0/debian/po/vi.po @@ -0,0 +1,55 @@ +# Vietnamese translation for INS Serv. +# Copyright © 2008 Free Software Foundation, Inc. +# Clytie Siddall , 2008. +# +msgid "" +msgstr "" +"Project-Id-Version: insserv 1.10.0-4\n" +"Report-Msgid-Bugs-To: pere@debian.org\n" +"POT-Creation-Date: 2008-02-17 13:56+0100\n" +"PO-Revision-Date: 2008-02-12 23:06+1030\n" +"Last-Translator: Clytie Siddall \n" +"Language-Team: Vietnamese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: LocFactoryEditor 1.7b3\n" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "Enable (or keep enabled) the dependency-based boot sequence?" +msgstr "Bật (hoặc cứ bật) dãy khởi động dựa vào quan hệ phụ thuộc không?" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"If you choose to enable the dependency-based boot sequence the scripts in /" +"etc/rc*.d/ will be reordered using dependency information provided by LSB " +"comment headers (or defaults where these are not present). All S* symlinks " +"in rc0.d/ and rc6.d/ will be turned into K* symlinks, to make sure the way " +"they are used (with the argument 'stop') matches their names. The change " +"will only be done after it is verified that it is safe to convert. Disabling " +"it when enabled will try to revert the change." +msgstr "" +"Bật tùy chọn này thì các văn lệnh trong thư mục « /etc/rc*.d/ » sẽ được sắp " +"xếp lại tùy theo thông tin về quan hệ phụ thuộc mà được cung cấp bởi phần " +"đầu chú thích LSB (không có thì dùng các giá trị mặc định). Mọi liên kết mềm " +"« S* » đều trong hai thư mục « rc0.d/ » và « rc6.d/ » sẽ được chuyển đổi " +"sang liên kết mềm « K* », để đảm bảo cách dùng chúng tương ứng với tên nó. " +"Thay đổi này sẽ chỉ xảy ra một khi thẩm tra tiến trình chuyển đổi sẽ chạy an " +"toàn. Sau khi bật tùy chọn này, tắt nó sẽ hoàn nguyên thay đổi." + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"Please note that this feature is experimental. Attempting to revert from " +"dependency-based boot sequencing is not guaranteed to be safe, and may " +"require the reinstallation of the system." +msgstr "" +"Ghi chú rằng tính năng này vẫn còn thực nghiệm. Không thể đảm bảo tính an " +"toàn khi thử hoàn nguyên khỏi chức năng tạo dãy dựa vào quan hệ phụ thuộc: " +"nó có thể cần thiết cài đặt lại hệ thống." --- insserv-1.11.0.orig/debian/po/fi.po +++ insserv-1.11.0/debian/po/fi.po @@ -0,0 +1,55 @@ +msgid "" +msgstr "" +"Project-Id-Version: insserv\n" +"Report-Msgid-Bugs-To: pere@debian.org\n" +"POT-Creation-Date: 2008-02-17 13:56+0100\n" +"PO-Revision-Date: 2008-02-15 00:51+0200\n" +"Last-Translator: Esko Arajärvi \n" +"Language-Team: Finnish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Finnish\n" +"X-Poedit-Country: FINLAND\n" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "Enable (or keep enabled) the dependency-based boot sequence?" +msgstr "" +"Aktivoidaanko (tai pidetäänkö aktivoituna) riippuvuuspohjainen " +"käynnistyssekvenssi?" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"If you choose to enable the dependency-based boot sequence the scripts in /" +"etc/rc*.d/ will be reordered using dependency information provided by LSB " +"comment headers (or defaults where these are not present). All S* symlinks " +"in rc0.d/ and rc6.d/ will be turned into K* symlinks, to make sure the way " +"they are used (with the argument 'stop') matches their names. The change " +"will only be done after it is verified that it is safe to convert. Disabling " +"it when enabled will try to revert the change." +msgstr "" +"Jos riippuvuuspohjainen käynnistyssekvenssi aktivoidaan, hakemistoissa /etc/" +"rc*.d/ olevien komentosarjojen käynnistysjärjestystä muutetaan LSB-" +"kommenttiotsakkeissa annettujen riippuvuustietojen mukaan (tai säilytetään " +"oletusjärjestyksessä, jos otsakkeita ei ole). Kaikki S*-tyypin symboliset " +"linkit hakemistoissa rc0.d ja rc6.d muutetaan K*-tyypin symbolisiksi " +"linkeiksi, sen varmistamiseksi, että niiden käyttötapa (argumentin ”stop” " +"kanssa) täsmää niiden nimiin. Muutos tehdään vasta, kun on varmistettu, että " +"se on turvallista tehdä. Jos riippuvuuspohjainen käynnistyssekvenssi " +"poistetaan käytöstä, muutokset yritetään perua." + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"Please note that this feature is experimental. Attempting to revert from " +"dependency-based boot sequencing is not guaranteed to be safe, and may " +"require the reinstallation of the system." +msgstr "" +"Tämä ominaisuus on kokeellinen. Riippuvuuspohjaisen käynnistyssekvenssin " +"purkaminen ei välttämättä ole turvallista ja saattaa johtaa siihen, että " +"järjestelmä on asennettava uudelleen." --- insserv-1.11.0.orig/debian/po/ru.po +++ insserv-1.11.0/debian/po/ru.po @@ -0,0 +1,61 @@ +# translation of ru.po to Russian +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# +# Yuri Kozlov , 2008. +msgid "" +msgstr "" +"Project-Id-Version: insserv 1.10.0-4\n" +"Report-Msgid-Bugs-To: pere@debian.org\n" +"POT-Creation-Date: 2008-02-17 13:56+0100\n" +"PO-Revision-Date: 2008-02-18 21:53+0300\n" +"Last-Translator: Yuri Kozlov \n" +"Language-Team: Russian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" +"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "Enable (or keep enabled) the dependency-based boot sequence?" +msgstr "" +"Включить (или оставить включённым) порядок загрузки, основанный на " +"зависимостях?" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"If you choose to enable the dependency-based boot sequence the scripts in /" +"etc/rc*.d/ will be reordered using dependency information provided by LSB " +"comment headers (or defaults where these are not present). All S* symlinks " +"in rc0.d/ and rc6.d/ will be turned into K* symlinks, to make sure the way " +"they are used (with the argument 'stop') matches their names. The change " +"will only be done after it is verified that it is safe to convert. Disabling " +"it when enabled will try to revert the change." +msgstr "" +"Если вы выберете включение порядка загрузки, основанного на зависимостях, то " +"сценарии в /etc/rc*.d/ будут переупорядочены согласно информации о " +"зависимостях, предоставляемых в LSB закомментированных заголовках (или " +"согласно значениям по умолчанию, если их нет). Все символические ссылки S* в " +"rc0.d/ и rc6.d/ будут обращены в символические ссылки K*, чтобы " +"удостовериться, что то, для чего они используются (с параметром 'stop'), " +"совпадает с их именами. Изменения выполнятся только после того, как будет " +"проверено, что преобразование безопасно. При выключение порядка будет " +"произведена попытка откатить сделанные изменения." + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"Please note that this feature is experimental. Attempting to revert from " +"dependency-based boot sequencing is not guaranteed to be safe, and may " +"require the reinstallation of the system." +msgstr "" +"Обратите внимание, что это пока эксперимент. Возвращение назад с порядка " +"загрузки, основанного на зависимостях не гарантируется и может потребоваться " +"переустановка системы." --- insserv-1.11.0.orig/debian/po/gl.po +++ insserv-1.11.0/debian/po/gl.po @@ -0,0 +1,56 @@ +# Galician translation of insserv's debconf templates +# This file is distributed under the same license as the insserv package. +# Jacobo Tarrio , 2008. +# +msgid "" +msgstr "" +"Project-Id-Version: insserv\n" +"Report-Msgid-Bugs-To: pere@debian.org\n" +"POT-Creation-Date: 2008-02-17 13:56+0100\n" +"PO-Revision-Date: 2008-02-10 13:40+0000\n" +"Last-Translator: Jacobo Tarrio \n" +"Language-Team: Galician \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "Enable (or keep enabled) the dependency-based boot sequence?" +msgstr "" +"¿Activar (ou manter activada) a secuencia de inicio baseada en dependencias?" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"If you choose to enable the dependency-based boot sequence the scripts in /" +"etc/rc*.d/ will be reordered using dependency information provided by LSB " +"comment headers (or defaults where these are not present). All S* symlinks " +"in rc0.d/ and rc6.d/ will be turned into K* symlinks, to make sure the way " +"they are used (with the argument 'stop') matches their names. The change " +"will only be done after it is verified that it is safe to convert. Disabling " +"it when enabled will try to revert the change." +msgstr "" +"Se quere activar a secuencia de inicio baseada en dependencias hanse " +"reordear os scripts de /etc/rc*.d/ empregando a información de depencencias " +"fornecida nas cabeceiras LSB dos comentarios (ou empregando valores por " +"defecto cando estas cabeceiras non estean presentes). Hanse convertir " +"tódalas ligazóns S* de rc0.d/ e rc6.d/ en ligazóns K*, para asegurarse de " +"que a maneira en que se empregan (co argumento \"stop\") coincida cos seus " +"nomes. Só se ha facer o cambio despois de verificar que é seguro realizar a " +"conversión. Ao desactivala cando estea activada hase tentar desfacer o " +"cambio." + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"Please note that this feature is experimental. Attempting to revert from " +"dependency-based boot sequencing is not guaranteed to be safe, and may " +"require the reinstallation of the system." +msgstr "" +"Teña en conta que esta característica é experimental. Non se pode garantir " +"que reverter a secuencia de inicio baseada en dependencias sexa unha " +"operación segura, e pode facer necesario reinstalar o sistema." --- insserv-1.11.0.orig/debian/po/cs.po +++ insserv-1.11.0/debian/po/cs.po @@ -0,0 +1,55 @@ +# Czech translation of insserv debconf messages. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the insserv package. +# Miroslav Kure , 2008 +# +msgid "" +msgstr "" +"Project-Id-Version: insserv\n" +"Report-Msgid-Bugs-To: pere@debian.org\n" +"POT-Creation-Date: 2008-02-17 13:56+0100\n" +"PO-Revision-Date: 2008-02-23 12:52+0100\n" +"Last-Translator: Miroslav Kure \n" +"Language-Team: Czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "Enable (or keep enabled) the dependency-based boot sequence?" +msgstr "Povolit (nebo nechat povolené) zavádění založené na závislostech?" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"If you choose to enable the dependency-based boot sequence the scripts in /" +"etc/rc*.d/ will be reordered using dependency information provided by LSB " +"comment headers (or defaults where these are not present). All S* symlinks " +"in rc0.d/ and rc6.d/ will be turned into K* symlinks, to make sure the way " +"they are used (with the argument 'stop') matches their names. The change " +"will only be done after it is verified that it is safe to convert. Disabling " +"it when enabled will try to revert the change." +msgstr "" +"Povolíte-li zavádění založené na závislostech, budou skripty v /etc/rc*.d/ " +"přeskládány na základě informací zapsaných v LSB hlavičkách těchto skriptů. " +"(Pokud LSB informace chybí, použijí se výchozí hodnoty.) Všechny symbolické " +"odkazy S* v rc0.d/ a rc6.d/ budou přejmenovány na K*, aby byly jejich názvy " +"konzistentní se způsobem použití (volání s argumentem „stop“). Změna se " +"provede pouze poté, co se ověří, že je převod bezpečný. Pokud je zavádění " +"založené na závislostech povoleno, způsobí jeho vypnutí návrat do původního " +"stavu." + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"Please note that this feature is experimental. Attempting to revert from " +"dependency-based boot sequencing is not guaranteed to be safe, and may " +"require the reinstallation of the system." +msgstr "" +"Mějte prosím na paměti, že se jedná o experimentální vlastnost. Není " +"zaručeno, že se pokus o návrat k původnímu systému zavádění podaří. V " +"krajním případě bude možná nutné přeinstalovat celý systém." --- insserv-1.11.0.orig/debian/po/POTFILES.in +++ insserv-1.11.0/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] insserv.templates --- insserv-1.11.0.orig/debian/po/nl.po +++ insserv-1.11.0/debian/po/nl.po @@ -0,0 +1,59 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: insserv\n" +"Report-Msgid-Bugs-To: pere@debian.org\n" +"POT-Creation-Date: 2008-02-17 13:56+0100\n" +"PO-Revision-Date: 2008-02-18 19:18+0100\n" +"Last-Translator: Bart Cornelis \n" +"Language-Team: debian-l10n-dutch \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Dutch\n" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "Enable (or keep enabled) the dependency-based boot sequence?" +msgstr "" +"Wilt u de op vereisten gebaseerde opstartvolgorde activeren (of geactiveerd " +"laten)?" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"If you choose to enable the dependency-based boot sequence the scripts in /" +"etc/rc*.d/ will be reordered using dependency information provided by LSB " +"comment headers (or defaults where these are not present). All S* symlinks " +"in rc0.d/ and rc6.d/ will be turned into K* symlinks, to make sure the way " +"they are used (with the argument 'stop') matches their names. The change " +"will only be done after it is verified that it is safe to convert. Disabling " +"it when enabled will try to revert the change." +msgstr "" +"Wanneer u kiest om de op vereisten gebaseerde opstartvolgorde te activeren " +"worden de scripts in /etc/rc*.d/ geordend op basis van de vereisten die " +"voorzien zijn in de LSB-commentaar-kopteksten (of standaardwaarden wanneer " +"deze afwezig zijn). Alle S*-koppelingen in rc0.d/ en rc6.d/ worden omgezet " +"in K*-symbolische koppelingen; dit zorgt ervoor dat de manier waarop ze " +"gebruikt worden (met het argument 'stop') gereflecteerd wordt in hun naam. " +"Deze aanpassing wordt pas uitgevoerd eens nagegaan is dat deze omzetting " +"veilig is. De-activatie probeert deze aanpassing ongedaan te maken (wanneer " +"deze keuze actief was)." + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"Please note that this feature is experimental. Attempting to revert from " +"dependency-based boot sequencing is not guaranteed to be safe, and may " +"require the reinstallation of the system." +msgstr "" +"Opgelet: deze functionaliteit is experimenteel. De veiligheid van teruggaan " +"van de op vereisten gebaseerde opstartvolgorde naar de huidige situatie is " +"niet gegarandeerd en kan de herinstallatie van het systeem vereisen." --- insserv-1.11.0.orig/debian/po/fr.po +++ insserv-1.11.0/debian/po/fr.po @@ -0,0 +1,61 @@ +# Translation of insserv debconf templates to French +# Copyright (C) 2008 Christian Perrier +# This file is distributed under the same license as the insserv package. +# +# Christian Perrier , 2008. +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: pere@debian.org\n" +"POT-Creation-Date: 2008-02-17 13:56+0100\n" +"PO-Revision-Date: 2008-02-13 07:22+0100\n" +"Last-Translator: Christian Perrier \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "Enable (or keep enabled) the dependency-based boot sequence?" +msgstr "" +"Faut-il activer (ou laisser activée) la gestion des dépendances dans la " +"séquence de démarrage ?" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"If you choose to enable the dependency-based boot sequence the scripts in /" +"etc/rc*.d/ will be reordered using dependency information provided by LSB " +"comment headers (or defaults where these are not present). All S* symlinks " +"in rc0.d/ and rc6.d/ will be turned into K* symlinks, to make sure the way " +"they are used (with the argument 'stop') matches their names. The change " +"will only be done after it is verified that it is safe to convert. Disabling " +"it when enabled will try to revert the change." +msgstr "" +"Si vous choisissez d'activer la gestion des dépendances pour la séquence de " +"démarrage, les scripts placés dans /etc/rc*.d/ seront remis dans un ordre " +"qui utilise les informations de dépendances fournies par les en-têtes LSB " +"(ou des valeurs par défaut si ceux-ci ne sont pas présents). Tous les liens " +"symboliques de démarrage (liens S*) de rc0.d/ et rc6.d/ seront transformés " +"en lien d'arrêt des services (liens K*) pour garantir que leur mode " +"d'utilisation (avec le paramètre « stop ») correspond à leurs noms. Cette " +"modification ne sera effectuée qu'après contrôle qu'elle peut se faire de " +"façon sûre. Si vous désactivez la gestion des dépendances alors qu'elle est " +"active, ces modifications seront abandonnées." + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"Please note that this feature is experimental. Attempting to revert from " +"dependency-based boot sequencing is not guaranteed to be safe, and may " +"require the reinstallation of the system." +msgstr "" +"Veuillez noter que cette fonctionnalité est expérimentale. Le retour en " +"arrière depuis une séquence de démarrage avec gestion des dépendances n'est " +"pas entièrement garanti et un échec peut imposer la réinstallation de " +"l'ensemble du système." --- insserv-1.11.0.orig/debian/po/de.po +++ insserv-1.11.0/debian/po/de.po @@ -0,0 +1,76 @@ +# translation of insserv_1.10.0-6_de.po to German +# Copyright (C) 2008, Erik Schanze +# This file is distributed under the same license as the insserv package. +# +# Erik Schanze , 2008. +msgid "" +msgstr "" +"Project-Id-Version: insserv_1.10.0-6_de\n" +"Report-Msgid-Bugs-To: pere@debian.org\n" +"POT-Creation-Date: 2008-02-17 13:56+0100\n" +"PO-Revision-Date: 2008-02-25 21:02+0100\n" +"Last-Translator: Erik Schanze \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +#, fuzzy +msgid "Enable (or keep enabled) the dependency-based boot sequence?" +msgstr "" +"Abhängigkeitsgestützte Reihenfolge beim Hochfahren aktivieren (oder " +"aktiviert lassen)?" + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +#, fuzzy +msgid "" +"If you choose to enable the dependency-based boot sequence the scripts in /" +"etc/rc*.d/ will be reordered using dependency information provided by LSB " +"comment headers (or defaults where these are not present). All S* symlinks " +"in rc0.d/ and rc6.d/ will be turned into K* symlinks, to make sure the way " +"they are used (with the argument 'stop') matches their names. The change " +"will only be done after it is verified that it is safe to convert. Disabling " +"it when enabled will try to revert the change." +msgstr "" +"Wenn Sie hier zustimmen, werden alle Skripte im Verzeichnis /etc/rc*.d " +"anhand der in jedem Skript enthaltenen Informationen über die Abhängigkeiten " +"neu sortiert. Wenn diese Information fehlt, wird die Standardinformation " +"über Abhängigkeiten benutzt. Es werden auch alle symbolischen Links »S*« in " +"den Verzeichnissen rc0.d/ und rc6.d/ in symbolische Links »K*« umgewandelt, " +"um sicher zu stellen, dass ihre Aufrufe (mit dem Argument »stop«) zu ihren " +"Namen passen. Die Änderung wird nur vorgenommen, nachdem überprüft wurde, " +"dass die Umwandlung sicher ist. Wenn Sie hier ablehnen, nachdem Sie schon " +"einmal zugestimmt haben, wird versucht, die Änderungen zurückzunehmen." + +#. Type: boolean +#. Description +#: ../insserv.templates:2001 +msgid "" +"Please note that this feature is experimental. Attempting to revert from " +"dependency-based boot sequencing is not guaranteed to be safe, and may " +"require the reinstallation of the system." +msgstr "" + +#~ msgid "" +#~ "WARNING: It is very hard to revert from dependency based boot sequencing " +#~ "to the non-dependency based boot sequencing. Reinstallation might be " +#~ "required." +#~ msgstr "" +#~ "WARNUNG: Es ist sehr schwierig, von einer abhängigkeitsgestützten zu " +#~ "einer nicht abhängigkeitsgestützten Reihenfolge des Hochfahrens " +#~ "zurückzukehren. Eine Neuinstallation könnte erforderlich werden." + +#~ msgid "" +#~ "This is an experimental feature, and is at the moment only intended for " +#~ "testing of insserv and the LSB style dependecy information in init.d " +#~ "scripts." +#~ msgstr "" +#~ "Das ist eine experimentelle Funktionalität und momentan nur zum Testen " +#~ "von Insserv und den LSB-konformen Abhängigkeitsinformationen in Init.d-" +#~ "Skripten vorgesehen." --- insserv-1.11.0.orig/debian/compat +++ insserv-1.11.0/debian/compat @@ -0,0 +1 @@ +4 --- insserv-1.11.0.orig/debian/overrides/mountfix +++ insserv-1.11.0/debian/overrides/mountfix @@ -0,0 +1,9 @@ +### BEGIN INIT INFO +# Provides: mountfix +# Required-Start: $remote_fs +# Required-Stop: +# Should-Start: $network +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #458859 --- insserv-1.11.0.orig/debian/overrides/exim4 +++ insserv-1.11.0/debian/overrides/exim4 @@ -0,0 +1,10 @@ +### BEGIN INIT INFO +# Provides: exim4 +# Required-Start: $remote_fs $syslog $network $time +# Required-Stop: $remote_fs $syslog $network +# Should-Start: $named postgresql mysql clamav-daemon greylist spamassassin +# Should-Stop: $named postgresql mysql clamav-daemon greylist spamassassin +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO +# Reported to BTS as #376953 --- insserv-1.11.0.orig/debian/overrides/gom +++ insserv-1.11.0/debian/overrides/gom @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: gom +# Required-Start: $remote_fs +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #? --- insserv-1.11.0.orig/debian/overrides/initrd-tools.sh +++ insserv-1.11.0/debian/overrides/initrd-tools.sh @@ -0,0 +1,7 @@ +### BEGIN INIT INFO +# Provides: initrd-tools +# Required-Start: mountdevsubfs +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO --- insserv-1.11.0.orig/debian/overrides/libdevmapper1.02 +++ insserv-1.11.0/debian/overrides/libdevmapper1.02 @@ -0,0 +1,10 @@ +### BEGIN INIT INFO +# Provides: libdevmapper +# Required-Start: +# Required-Stop: +# Should-Start: modutils module-init-tools hotplug discover udev devfsd +# Should-Stop: modutils module-init-tools +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #361358 --- insserv-1.11.0.orig/debian/overrides/anacron +++ insserv-1.11.0/debian/overrides/anacron @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: anacron +# Required-Start: $syslog $time +# Required-Stop: $syslog $time +# Default-Start: 1 2 3 4 5 +# Default-Stop: 0 6 +### END INIT INFO +# Reported to BTS as #448223 --- insserv-1.11.0.orig/debian/overrides/setkey +++ insserv-1.11.0/debian/overrides/setkey @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: setkey +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #458488 --- insserv-1.11.0.orig/debian/overrides/libdevmapper1.01 +++ insserv-1.11.0/debian/overrides/libdevmapper1.01 @@ -0,0 +1,10 @@ +### BEGIN INIT INFO +# Provides: libdevmapper +# Required-Start: +# Required-Stop: +# Should-Start: modutils module-init-tools hotplug discover udev devfsd +# Should-Stop: modutils module-init-tools +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #361358 --- insserv-1.11.0.orig/debian/overrides/laptop-netconf +++ insserv-1.11.0/debian/overrides/laptop-netconf @@ -0,0 +1,7 @@ +### BEGIN INIT INFO +# Provides: laptop-netconf +# Required-Start: $remote_fs $network +# Required-Stop: $remote_fs $network +# Default-Start: S 1 2 3 4 5 +# Default-Stop: 0 6 +### END INIT INFO --- insserv-1.11.0.orig/debian/overrides/hotplug +++ insserv-1.11.0/debian/overrides/hotplug @@ -0,0 +1,7 @@ +### BEGIN INIT INFO +# Provides: hotplug +# Required-Start: mountdevsubfs checkroot $local_fs +# Required-Stop: $local_fs +# Default-Start: S +# Default-Stop: 0 6 +### END INIT INFO --- insserv-1.11.0.orig/debian/overrides/nstxcd +++ insserv-1.11.0/debian/overrides/nstxcd @@ -0,0 +1,10 @@ +### BEGIN INIT INFO +# Provides: nstxcd +# Required-Start: $network +# Required-Stop: $network +# Should-Start: nstxd +# Should-Stop: nstxd +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO +# Reported to BTS as #457756 --- insserv-1.11.0.orig/debian/overrides/ltsp-client +++ insserv-1.11.0/debian/overrides/ltsp-client @@ -0,0 +1,9 @@ +### BEGIN INIT INFO +# Provides: ltsp-client +# Required-Start: ltsp-client-setup $network $syslog +# Required-Stop: ltsp-client-setup $network $syslog +# Should-Start: xdebconfigurator +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO +# Already present in package --- insserv-1.11.0.orig/debian/overrides/laptop-net +++ insserv-1.11.0/debian/overrides/laptop-net @@ -0,0 +1,7 @@ +### BEGIN INIT INFO +# Provides: laptop-net +# Required-Start: $remote_fs $network laptop-netconf +# Required-Stop: $remote_fs $network laptop-netconf +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO --- insserv-1.11.0.orig/debian/overrides/whitelister +++ insserv-1.11.0/debian/overrides/whitelister @@ -0,0 +1,10 @@ +### BEGIN INIT INFO +# Provides: whitelister +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# X-Start-Before: postfix +# X-Stop-After: postfix +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO +# Reported to the BTS as #466659 --- insserv-1.11.0.orig/debian/overrides/atm +++ insserv-1.11.0/debian/overrides/atm @@ -0,0 +1,10 @@ +### BEGIN INIT INFO +# Provides: atm +# Required-Start: $local_fs +# Required-Stop: $local_fs +# X-Start-Before: ifupdown networking +# X-Stop-After: ifupdown networking +# Default-Start: S +# Default-Stop: 0 6 +### END INIT INFO +# Reported to BTS as #468459 --- insserv-1.11.0.orig/debian/overrides/raid2 +++ insserv-1.11.0/debian/overrides/raid2 @@ -0,0 +1,9 @@ +### BEGIN INIT INFO +# Provides: raid2 +# Required-Start: +# Required-Stop: +# Should-Start: modutils module-init-tools devfsd udev +# Should-Stop: modutils module-init-tools +# Default-Start: S 1 2 3 4 5 +# Default-Stop: 0 6 +### END INIT INFO --- insserv-1.11.0.orig/debian/overrides/libdevmapper1.00 +++ insserv-1.11.0/debian/overrides/libdevmapper1.00 @@ -0,0 +1,10 @@ +### BEGIN INIT INFO +# Provides: libdevmapper +# Required-Start: +# Required-Stop: +# Should-Start: modutils module-init-tools hotplug discover udev devfsd +# Should-Stop: modutils module-init-tools +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #361358 --- insserv-1.11.0.orig/debian/overrides/check-network-interfaces +++ insserv-1.11.0/debian/overrides/check-network-interfaces @@ -0,0 +1,9 @@ +### BEGIN INIT INFO +# Provides: check-network-interfaces +# Required-Start: $local_fs +# X-Start-Before: ifupdown +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #459872 --- insserv-1.11.0.orig/debian/overrides/mountvar +++ insserv-1.11.0/debian/overrides/mountvar @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: mountvar +# Required-Start: $local_fs +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #459872 --- insserv-1.11.0.orig/debian/overrides/xfree86-common +++ insserv-1.11.0/debian/overrides/xfree86-common @@ -0,0 +1,9 @@ +### BEGIN INIT INFO +# Provides: xfree86-common +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Should-Start: $named +# Should-Stop: $named +# Default-Start: S +# Default-Stop: 0 6 +### END INIT INFO --- insserv-1.11.0.orig/debian/overrides/screen-cleanup +++ insserv-1.11.0/debian/overrides/screen-cleanup @@ -0,0 +1,7 @@ +### BEGIN INIT INFO +# Provides: screen-cleanup +# Required-Start: $remote_fs +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO --- insserv-1.11.0.orig/debian/overrides/guarddog +++ insserv-1.11.0/debian/overrides/guarddog @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: guarddog +# Required-Start: $remote_fs +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #460298 --- insserv-1.11.0.orig/debian/overrides/hostname.dhcp +++ insserv-1.11.0/debian/overrides/hostname.dhcp @@ -0,0 +1,10 @@ +### BEGIN INIT INFO +# Provides: hostname.dhcp +# Required-Start: $local_fs hostname +# Required-Stop: +# Should-Start: $network +# X-Start-Before: $remote_fs +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #458859 --- insserv-1.11.0.orig/debian/overrides/libdevmapper1.02.1 +++ insserv-1.11.0/debian/overrides/libdevmapper1.02.1 @@ -0,0 +1,10 @@ +### BEGIN INIT INFO +# Provides: libdevmapper +# Required-Start: +# Required-Stop: +# Should-Start: modutils module-init-tools hotplug discover udev devfsd +# Should-Stop: modutils module-init-tools +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #361358 --- insserv-1.11.0.orig/debian/overrides/hotplug-net +++ insserv-1.11.0/debian/overrides/hotplug-net @@ -0,0 +1,7 @@ +### BEGIN INIT INFO +# Provides: hotplug-net +# Required-Start: $local_fs ifupdown +# Required-Stop: $local_fs +# Default-Start: S +# Default-Stop: 0 6 +### END INIT INFO --- insserv-1.11.0.orig/debian/overrides/scsitools-pre.sh +++ insserv-1.11.0/debian/overrides/scsitools-pre.sh @@ -0,0 +1,9 @@ +### BEGIN INIT INFO +# Provides: scsitool-pre +# Required-Start: mountdevsubfs +# Required-Stop: +# X-Start-Before: checkroot +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #458649 --- insserv-1.11.0.orig/debian/overrides/guidedog +++ insserv-1.11.0/debian/overrides/guidedog @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: guidedog +# Required-Start: $remote_fs +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #462714 --- insserv-1.11.0.orig/debian/overrides/ltsp-client-setup +++ insserv-1.11.0/debian/overrides/ltsp-client-setup @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: ltsp-client-setup +# Required-Start: $local_fs +# Required-Stop: $local_fs +# Default-Start: S +# Default-Stop: 0 6 +### END INIT INFO +# Already present in package --- insserv-1.11.0.orig/debian/overrides/autofs +++ insserv-1.11.0/debian/overrides/autofs @@ -0,0 +1,9 @@ +### BEGIN INIT INFO +# Provides: autofs +# Required-Start: $local_fs +# Required-Stop: $local_fs +# Should-Start: $network $named slapd +# Should-Stop: $network $named slapd +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO --- insserv-1.11.0.orig/debian/overrides/dmraid +++ insserv-1.11.0/debian/overrides/dmraid @@ -0,0 +1,10 @@ +### BEGIN INIT INFO +# Provides: dmraid +# Required-Start: mountkernfs udev +# Required-Stop: umountroot +# X-Start-Before: checkroot mdadm-raid lvm +# X-Stop-After: umountfs mdadm-raid lvm +# Default-Start: S +# Default-Stop: 0 6 +### END INIT INFO +# Reported to BTS as #458626 --- insserv-1.11.0.orig/debian/overrides/bastille-firewall +++ insserv-1.11.0/debian/overrides/bastille-firewall @@ -0,0 +1,9 @@ +### BEGIN INIT INFO +# Provides: bastille-firewall +# Required-Start: $local_fs ifupdown +# Required-Stop: $local_fs ifupdown +# Default-Start: S +# Default-Stop: 0 6 +# Short-Description: Load/unload ipchains rulesets +### END INIT INFO +# Reported to BTS as #? --- insserv-1.11.0.orig/debian/overrides/libnss-ldap +++ insserv-1.11.0/debian/overrides/libnss-ldap @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: libnss-ldap +# Required-Start: mountkernfs +# Required-Stop: $local_fs +# Default-Start: S +# Default-Stop: 0 6 +### END INIT INFO +# Reported to BTS as #448222 --- insserv-1.11.0.orig/debian/overrides/lvm2 +++ insserv-1.11.0/debian/overrides/lvm2 @@ -0,0 +1,12 @@ +### BEGIN INIT INFO +# Provides: lvm2 lvm +# Required-Start: mountdevsubfs +# Required-Stop: +# Should-Start: udev devfsd raid2 mdadm cryptdisks-early +# Should-Stop: reboot halt umountroot +# X-Start-Before: checkfs mountall +# X-Stop-after: umountfs +# Default-Start: S +# Default-Stop: 0 6 +### END INIT INFO +# Reported to BTS as #426108 and #468697 --- insserv-1.11.0.orig/debian/overrides/dns-clean +++ insserv-1.11.0/debian/overrides/dns-clean @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: dns-clean +# Required-Start: $local_fs +# Required-Stop: $local_fs +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as bug #332857 --- insserv-1.11.0.orig/debian/overrides/alsa +++ insserv-1.11.0/debian/overrides/alsa @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: alsa +# Required-Start: $local_fs +# Required-Stop: $local_fs +# Default-Start: S +# Default-Stop: 0 1 6 +### END INIT INFO +# Reported to Debian BTS as #337638, updated deps after reporting --- insserv-1.11.0.orig/debian/overrides/nstxd +++ insserv-1.11.0/debian/overrides/nstxd @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: nstxd +# Required-Start: $network +# Required-Stop: $network +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO +# Reported to BTS as #457756 --- insserv-1.11.0.orig/debian/overrides/ifupdown-scripts-zg2 +++ insserv-1.11.0/debian/overrides/ifupdown-scripts-zg2 @@ -0,0 +1,9 @@ +### BEGIN INIT INFO +# Provides: ifupdown-scripts-zg2 +# Required-Start: $local_fs +# Required-Stop: +# X-Start-Before: ifupdown +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #467491 --- insserv-1.11.0.orig/debian/overrides/freevo +++ insserv-1.11.0/debian/overrides/freevo @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: freevo +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Should-Start: xdm kdm gdm +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO --- insserv-1.11.0.orig/debian/overrides/puppet +++ insserv-1.11.0/debian/overrides/puppet @@ -0,0 +1,9 @@ +### BEGIN INIT INFO +# Provides: puppet +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: puppetmaster +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO +# Reported to BTS as #? --- insserv-1.11.0.orig/debian/overrides/libpam-devperm +++ insserv-1.11.0/debian/overrides/libpam-devperm @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: libpam-devperm +# Required-Start: $remote_fs +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #458466 --- insserv-1.11.0.orig/debian/overrides/smartmontools +++ insserv-1.11.0/debian/overrides/smartmontools @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: smartmontools +# Required-Start: $local_fs +# Required-Stop: $local_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO +# Reported to BTS as #458391 --- insserv-1.11.0.orig/debian/overrides/console-cyrillic +++ insserv-1.11.0/debian/overrides/console-cyrillic @@ -0,0 +1,9 @@ +### BEGIN INIT INFO +# Provides: console-cyrillic +# Required-Start: $remote_fs +# Required-Stop: +# Should-Start: console-screen console-setup +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #459878 --- insserv-1.11.0.orig/debian/overrides/pppd-dns +++ insserv-1.11.0/debian/overrides/pppd-dns @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: pppd-dns +# Required-Start: $local_fs +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #466273 --- insserv-1.11.0.orig/debian/overrides/modutils +++ insserv-1.11.0/debian/overrides/modutils @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: modutils +# Required-Start: checkroot +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #335311 --- insserv-1.11.0.orig/debian/overrides/hpoj +++ insserv-1.11.0/debian/overrides/hpoj @@ -0,0 +1,10 @@ +### BEGIN INIT INFO +# Provides: hpoj +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# X-Start-Before cupsys +# X-Stop-after cupsys +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO +# Reported to BTS as #459450 --- insserv-1.11.0.orig/debian/overrides/slashem-common +++ insserv-1.11.0/debian/overrides/slashem-common @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: slashem-common +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #465433 --- insserv-1.11.0.orig/debian/overrides/update-finalize +++ insserv-1.11.0/debian/overrides/update-finalize @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: update-finalize +# Required-Start: $remote_fs +# Required-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: +### END INIT INFO +# Reported to BTS as #459872 --- insserv-1.11.0.orig/debian/overrides/lvm +++ insserv-1.11.0/debian/overrides/lvm @@ -0,0 +1,9 @@ +### BEGIN INIT INFO +# Provides: lvm +# Required-Start: mountdevsubfs +# Required-Stop: +# Should-Start: udev devfsd raid2 mdadm +# Should-Stop: reboot halt +# Default-Start: S +# Default-Stop: 0 6 +### END INIT INFO --- insserv-1.11.0.orig/debian/overrides/racoon +++ insserv-1.11.0/debian/overrides/racoon @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: racoon +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Default-Start: S +# Default-Stop: 1 +### END INIT INFO +# Reported to BTS as #458488 --- insserv-1.11.0.orig/debian/overrides/postfix +++ insserv-1.11.0/debian/overrides/postfix @@ -0,0 +1,9 @@ +### BEGIN INIT INFO +# Provides: postfix +# Required-Start: $network $syslog +# Required-Stop: $network $syslog +# Should-Start: spampd amavis postgrey +# Should-Stop: spampd amavis postgrey +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO --- insserv-1.11.0.orig/debian/overrides/ddns3-client +++ insserv-1.11.0/debian/overrides/ddns3-client @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: ddns3-client +# Required-Start: $network +# Required-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: +### END INIT INFO +# Reported to BTS as #469141 --- insserv-1.11.0.orig/debian/overrides/setup-unconfigured.sh +++ insserv-1.11.0/debian/overrides/setup-unconfigured.sh @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: setup-unconfigured +# Required-Start: $remote_fs +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #459872 --- insserv-1.11.0.orig/debian/overrides/digitools +++ insserv-1.11.0/debian/overrides/digitools @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: digitools +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Default-Start: +# Default-Stop: 0 1 6 +### END INIT INFO +# Reported to BTS as #? --- insserv-1.11.0.orig/debian/overrides/unmount-initrd +++ insserv-1.11.0/debian/overrides/unmount-initrd @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: unmount-initrd +# Required-Start: $remote_fs +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #459872 --- insserv-1.11.0.orig/debian/overrides/courier-ldap +++ insserv-1.11.0/debian/overrides/courier-ldap @@ -0,0 +1,10 @@ +### BEGIN INIT INFO +# Provides: courier-ldap +# Required-Start: $network $syslog +# Required-Stop: $network $syslog +# Should-Start: slapd +# Should-Stop: slapd +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO +# Reported to BTS as #458433 --- insserv-1.11.0.orig/debian/overrides/fiaif +++ insserv-1.11.0/debian/overrides/fiaif @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: fiaif +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Default-Start: S +# Default-Stop: 0 6 +### END INIT INFO +# Reported to BTS as #468895 --- insserv-1.11.0.orig/debian/overrides/hibernate +++ insserv-1.11.0/debian/overrides/hibernate @@ -0,0 +1,7 @@ +### BEGIN INIT INFO +# Provides: hibernate +# Required-Start: checkfs +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO --- insserv-1.11.0.orig/debian/overrides/installation-report +++ insserv-1.11.0/debian/overrides/installation-report @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: installation-report +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Should-start: x11-common xserver-xorg +# Default-Start: S +# Default-Stop: 0 6 +### END INIT INFO --- insserv-1.11.0.orig/debian/overrides/unlock-cddrive +++ insserv-1.11.0/debian/overrides/unlock-cddrive @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: unlock-cddrive +# Required-Start: +# Required-Stop: $local_fs +# Default-Start: +# Default-Stop: 0 6 +### END INIT INFO +# Reported to BTS as #459872 --- insserv-1.11.0.orig/debian/overrides/tspc +++ insserv-1.11.0/debian/overrides/tspc @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: tspc +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Default-Start: S +# Default-Stop: 0 6 +### END INIT INFO +# Reported to BTS as #467540 --- insserv-1.11.0.orig/debian/overrides/scsitools.sh +++ insserv-1.11.0/debian/overrides/scsitools.sh @@ -0,0 +1,9 @@ +### BEGIN INIT INFO +# Provides: scsitool +# Required-Start: checkroot +# Required-Stop: +# X-Start-Before: checkfs +# Default-Start: S +# Default-Stop: +### END INIT INFO +# Reported to BTS as #458649 --- insserv-1.11.0.orig/debian/overrides/devfsd +++ insserv-1.11.0/debian/overrides/devfsd @@ -0,0 +1,8 @@ +### BEGIN INIT INFO +# Provides: devfsd +# Required-Start: mountdevsubfs +# Required-Stop: reboot +# Default-Start: S 1 2 3 4 5 +# Default-Stop: 0 6 +### END INIT INFO +# Reported to BTS as bug #324671 --- insserv-1.11.0.orig/debian/testsuite-common +++ insserv-1.11.0/debian/testsuite-common @@ -0,0 +1,306 @@ +# +# Common test suite definitions, declarations, and functions +# +set -eC +set +o posix +unset ${!LC@} +export LANG=POSIX + +: ${insserv:=${PWD}/insserv} +: ${tmpdir:=${PWD}/root} +: ${initddir:=${tmpdir}/etc/init.d} +: ${insconf:=${tmpdir}/etc/insserv.conf} +: ${overridedir:=${tmpdir}/etc/insserv/override} +: ${issuse=""} +: ${debug:=""} + +declare -i retval=0 +declare -i checkfailed=0 +declare -i testcount=0 +declare -i testfailed=0 +finish_test () +{ + if test 0 -ne $retval ; then + echo "error: $testcount test executed, $checkfailed fatal tests failed, $testfailed nonfatal test failed." + else + echo "success: $testcount test executed, $testfailed nonfatal tests failed." + fi + rm -rf ${tmpdir} + return $retval +} +trap 'finish_test' EXIT + +mkdir -p $initddir + +if test -n "${issuse}" ; then + runlevel_path () + { + local -a level=($@) + level=(${level[@]/%s/S}) + level=(${level[@]/#/rc}) + level=(${level[@]/rc[bB]*/boot}) + printf "${initddir}/%s.d\n" ${level[@]} + } + list_rclinks() + { + pushd $initddir/ &> /dev/null + echo ${initddir##*/}: + ls ${1+"$@"} * + popd &> /dev/null + } + cat <<-'EOF' > $insconf + $local_fs boot.localfs +boot.crypto + $network network + $named +named +dnsmasq +lwresd $network + $remote_fs $local_fs +nfs +smbfs + $syslog syslog + $portmap portmap + $time boot.clock +ntp + boot.crypto boot.clock boot.localfs boot.rootfsck apache apache2 kdump ntp + EOF +else + runlevel_path () + { + printf "${initddir}/../rc%s.d\n" ${1+"$@"} + } + list_rclinks() + { + pushd $initddir/../ &> /dev/null + ls ${1+"$@"} * + popd &> /dev/null + } + cat <<-'EOF' > $insconf + $local_fs +mountall +umountfs + $network +networking +ifupdown + $named +named +dnsmasq +lwresd +bind9 $network + $remote_fs $local_fs +mountnfs +mountnfs-bootclean +umountnfs +sendsigs + $syslog +syslog +sysklogd + $portmap portmap + $time hwclock + udev mountdevsubfs checkroot checkfs console-screen + EOF +fi +chmod u+w,a+r $insconf + +insserv_reg () +{ + script=$(printf "${initddir}/%s\n" ${1+"$@"}) + $insserv $debug -c $insconf -p $initddir -o $overridedir $script +} + +insserv_del () +{ + script=$(printf "${initddir}/%s\n" ${1+"$@"}) + $insserv $debug -c $insconf -p $initddir -o $overridedir -r $script +} + +relpath () +{ + local OLDIFS IFS + local -a orgwords + local -a locwords + local -i relp=0 + local -i deep=0 + local p l + local path="" + + OLDIFS="$IFS"; IFS=/ + eval orgwords=(${1// /\\\\ }) ; shift + eval locwords=(${1// /\\\\ }) ; shift + IFS="$OLDIFS" + unset OLDIFS + + deep=0 + relp=0 + for l in "${locwords[@]}" ; do + if test "$l" = ".." ; then + ((deep++)) + continue + elif test $deep -gt 0 ; then + while ((deep-- > 0)) ; do + unset locwords[$((relp+deep))] + (((relp-1)-deep < 0)) || unset locwords[$(((relp-1)-deep))] + done + continue + fi + ((relp++)) + done + locwords=(${locwords[@]}) + + deep=0 + relp=0 + for p in "${orgwords[@]}" ; do + if test "$p" = ".." ; then + ((deep++)) + continue + elif test $deep -gt 0 ; then + while ((deep-- > 0)) ; do + unset orgwords[$((relp+deep))] + (((relp-1)-deep < 0)) || unset orgwords[$(((relp-1)-deep))] + done + continue + fi + ((relp++)) + done + orgwords=(${orgwords[@]}) + + deep=0 + relp=0 + for p in "${orgwords[@]}" ; do + eval l="\${locwords[$((deep++))]}" + if test "$l" != "$p" -o $relp -ne 0 ; then + ((relp++)) + path="${path}/$p" + test -n "$l" || continue + if test $relp -eq 1 ; then + path="..${path}" + else + path="../${path}" + fi + fi + done + unset orgwords p l + + if test $deep -lt ${#locwords[@]} ; then + relp=0 + while test $relp -lt $deep; do + unset locwords[$((relp++))] + done + while test ${#locwords[@]} -gt 0 ; do + path="../${path}" + unset locwords[$((relp++))] + done + fi + + echo "$path" +} + +counttest () +{ + testcount=$(expr $testcount + 1) +} + +error () +{ + echo error: $@ + checkfailed=$(expr $checkfailed + 1) + retval=1 +} + +warning () +{ + echo warning: $@ + testfailed=$(expr $testfailed + 1) +} + +addscript () +{ + local scriptname=$1 + local script=${initddir}/$scriptname + cat > $script + chmod u+w,a+rx $script +} + +insertscript () +{ + local scriptname=$1 + addscript $scriptname + insserv_reg $scriptname +} + +present_ok () +{ + local rcdpath=$(runlevel_path $1); shift + local script=$1; shift + local ret=0 + test -L ${rcdpath}/[KS][0-9][0-9]$script || ret=1 + counttest + return $ret +} + +check_script_present () +{ + local runlevel=$1; shift + local script=$1; shift + present_ok $runlevel $script && return 0 + error "script $script not present in runlevel $runlevel" +} + +test_script_present () +{ + local runlevel=$1; shift + local script=$1; shift + present_ok $runlevel $script && return 0 + warning "script $script not present in runlevel $runlevel" +} + +check_script_not_present () +{ + local runlevel=$1; shift + local script=$1; shift + if present_ok $runlevel $script ; then + error "script $script present in runlevel $runlevel" + fi + return 0 +} + +test_script_not_present () +{ + local runlevel=$1; shift + local script=$1; shift + if present_ok $runlevel $script ; then + warning "script $script present in runlevel $runlevel" + fi + return 0 +} + +order_ok () +{ + local rcdpath=$(runlevel_path $1); shift + local script1=$1; shift + local script2=$1; shift + local ret=0 scr order="" + pushd $rcdpath &> /dev/null + if test -n "${issuse}" ; then + for scr in S[0-9][0-9]* ; do + test -e "${scr}" || continue + test -L "${scr}" || continue + case "${scr#S[0-9][0-9]}" in + ${script1}) order="${order:+$order }${script1}" ;; + ${script2}) order="${order:+$order }${script2}" ;; + esac + done + else + for scr in [SK][0-9][0-9]* ; do + test -e "${scr}" || continue + test -L "${scr}" || continue + case "${scr#[SK][0-9][0-9]}" in + ${script1}) order="${order:+$order }${script1}" ;; + ${script2}) order="${order:+$order }${script2}" ;; + esac + done + fi + popd &> /dev/null + test "$order" = "$script1 $script2" || ret=1 + counttest + return $ret +} + +# Fatal check +check_order () +{ + local runlevel=$1 + local script1=$2 + local script2=$3 + order_ok ${1+"$@"} || error "incorrect $runlevel sequence $script1 not before $script2" || true +} + +# Non-fatal check +test_order () +{ + local runlevel=$1 + local script1=$2 + local script2=$3 + order_ok ${1+"$@"} || warning "incorrect $runlevel sequence $script1 not before $script2" || true +} + --- insserv-1.11.0.orig/debian/copyright +++ insserv-1.11.0/debian/copyright @@ -0,0 +1,20 @@ +This package was debianized by Petter Reinholdtsen on +Sun, 21 Aug 2005 11:20:54 +0200. + +It was downloaded from + +Copyright Holder: Werner Fink and SuSE LINUX AG. + +License: + + Copyright 2000-2004 Werner Fink, 2000 SuSE GmbH Nuernberg, Germany, + 2003 SuSE Linux AG, Germany. + 2004 SuSE LINUX AG, Germany. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +On Debian systems, a copy of the GNU General Public License version 2 +may be found in the file /usr/share/common-licenses/GPL-2. --- insserv-1.11.0.orig/debian/update-rc.d-insserv.8 +++ insserv-1.11.0/debian/update-rc.d-insserv.8 @@ -0,0 +1,14 @@ +.\" Copyright 2008 Petter Reinholdtsen +.\" May be distributed under the GNU General Public License +.TH "update-bootsystem-insserv" "8" "5 January 2008" "Petter Reinholdtsen" "" +.SH "NAME" +update\-rc.d\-insserv \- insert init.d scripts into boot system using dependency information in the init.d scripts +.SH "DESCRIPTION" +.B update\-rc.d\-insserv +is an implementation of the update-rc.d interface for the dependency +based boot sequencing system insserv. It is enabled using +update-bootsystem-insserv. +.SH "SEE ALSO" +update\-rc.d(8), insserv(8), update-bootsystem-insserv(8) +.SH "AUTHOR" +Petter Reinholdtsen, --- insserv-1.11.0.orig/debian/headers-reported +++ insserv-1.11.0/debian/headers-reported @@ -0,0 +1,235 @@ +# List of scripts missing LSB header that are reported to BTS. Used +# to track which scripts and packages are missing a bug report. +# Format: +# scriptname bin-pkgname src-pkgname btsnumber +alamin-server alamin-server alamin #460051 +anacron anacron anacron #448223 +and and and #460052 +aprsd aprsd aprsd #469217 +apt-proxy apt-proxy apt-proxy 460908 +arpwatch arpwatch arpwatch #460248 +atm atm-tools linux-atm #468459 +ax25spyd ax25spyd ax25spyd #469367 +battery-stats battery-stats battery-stats #468299 +binkd binkd binkd #469268 +bird bird bird #469618 +bitlbee bitlbee bitlbee #472567 +bld bld bld #468374 +blootbot blootbot blootbot #469623 +bnetd bnetd bnetd #469121 +bootparamd bootparamd netkit-bootparamd #468917 +bopm bopm bopm #469631 +bpalogin bpalogin bpalogin #469624 +buildbot buildbot buildbot #468236 +capisuite capisuite capisuite #469740 +capiutils capiutils isdnutils #464677 +check-network-interfaces gibraltar-bootsupport gibraltar-bootcd #459872 +clamsmtp clamsmtp clamsmtp #466648 +cnewsclean cnews cnews #469746 +console-cyrillic console-cyrillic console-cyrillic #459878 +courier-authdaemon courier-authdaemon courier-authlib #460221 +couriergraph couriergraph couriergraph #468134 +cpudyn cpudyn cpudyn #459553 +cwdaemon cwdaemon cwdaemon #468863 +dancer-ircd dancer-ircd dancer-ircd #468881 +dancer-services dancer-services dancer-services #469368 +danted dante-server dante #469750 +das-watchdog das-watchdog das-watchdog #469025 +ddns3-client ddns3-client ddns3-client #469141 +dhttpd dhttpd dhttpd #468461 +dictd dictd dictd #460201 +dictd serpento serpento #468576 +didiwiki didiwiki didiwiki #468458 +digitools digitools digitools #469116 +distmp3 distmp3 distmp3 #466937 +dmraid dmraid dmraid #458626 +drbdlinksclean drbdlinks drbdlinks #468835 +dropbear dropbear dropbear #466257 +elog elog elog #469429 +fai-abort fai-nfsroot fai #469716 +fcron fcron fcron #466982 +fiaif fiaif fiaif #468895 +filterproxy filterproxy filterproxy #469700 +fireflier-server fireflier-server fireflier #468884 +freewnn-cserver freewnn-cserver freewnn #468293 +freewnn-jserver freewnn-jserver freewnn #468293 +freewnn-kserver freewnn-kserver freewnn #468293 +freewnn-tserver freewnn-cserver freewnn #468293 +fwlogwatch fwlogwatch fwlogwatch #466255 +ganglia-monitor ganglia-monitor ganglia-monitor #467489 +gdomap gnustep-base-runtime gnustep-base #460224 +genpower genpower genpower #466203 +gld postfix-gld postfix-gld #468135 +gmetad gmetad ganglia-monitor #467489 +gnudip gnudip gnudip #469632 +gom gom gom #468312 +gsm-utils gsm-utils gsmlib #464061 +guarddog guarddog guarddog #460298 +guidedog guidedog guidedog #462714 +heimdal-kcm heimdal-kcm heimdal #468189 +heimdal-kdc heimdal-kdc heimdal #468189 +honeyd honeyd honeyd #462454 +hostname.dhcp nfsbooted nfsbooted #458859 +hpoj hpoj hpoj #459450 +hpsockd hpsockd hpsockd #462716 +hyperestraier hyperestraier hyperestraier #462713 +icecast2 icecast2 icecast2 #460853 +ifupdown-scripts-zg2 ifupdown-scripts-zg2 ifupdown-scripts-zg2 #467491 +iiimf-server iiimf-server im-sdk #469026 +inputlirc inputlirc inputlirc #468162 +interchange interchange interchange #469718 +ipband ipband ipband #469609 +ipfm ipfm ipfm #466653 +ipmasq ipmasq ipmasq #466151 (no patch) +ipmasq-kmod ipmasq ipmasq #466151 (no patch) +iptotal iptotal iptotal #468185 +ipvsadm ipvsadm ipvsadm #466256 +ipx ipx ncpfs #466936 +ircd-irc2 ircd-irc2 ircd-irc2 #469605 +irmp3 irmp3 irmp3 #469762 +isakmpd isakmpd isakmpd #469555 +isdneurofile isdneurofile isdnutils #469702 +isdnutils isdnutils-base isdnutils #464677 +ixbiff ixbiff ixbiff #469741 +jabber jabber jabber #460855 +jftpgw jftpgw jftpgw #469636 +jmon jmon jmon #468364 +karrigell karrigell karrigell #469805 +l2tpns l2tpns l2tpns #468889 +ldapdns ldapdns ldapdns #464059 +ldirectord ldirectord heartbeat #469764 +ledd ledcontrol ledcontrol #469569 +ledstats ledstats ledstats #469714 +libpam-devperm libpam-devperm pam-devperm #458466 +linesrv linesrv linesrv #469742 +linesrv-mysql linesrv-mysql linesrv #469742 +lirc lirc lirc #460212 +log2mail log2mail log2mail #469808 +lokkit lokkit gnome-lokkit #462754 +mbmon mbmon xmbmon #460243 +memlockd memlockd memlockd #468888 +mgetty-fax mgetty-fax mgetty #464067 +mimedefang mimedefang mimedefang #469747 +mopd mopd mopd #469705 +mordor mordor mordor #469140 +mountfix nfsbooted nfsbooted #458859 +mountvar gibraltar-bootsupport gibraltar-bootcd #459872 +muddleftpd muddleftpd muddleftpd #469427 +mudnames mudnames mudnames #468581 +mzscheme mzscheme drscheme #463491 +net-acct net-acct net-acct #468892 +netatalk netatalk netatalk #459442 +nethack-common nethack-common nethack #458465 +nsca nsca nsca #466261 +nsd nsd nsd #465060 +nstxcd nstx nstx #457756 +nstxd nstx nstx #457756 +ntop ntop ntop #460225 +nws nws nws #469806 +oidentd oidentd oidentd #462212 +openhpid openhpid openhpi #460216 +oss-preserve oss-preserve oss-preserve #469749 +p3scan p3scan p3scan #469763 +pads pads pads #468882 +pathfinderd pathfinderd pathfinder #471593 +pcapdump pcaputils pcaputils #468368 +perdition perdition perdition #469760 +pimd pimd pimd #469226 +pingpong pingpong pingpong #469697 +pipsecd pipsecd pipsecd #469606 +plptools plptools plptools #468890 +pop-before-smtp pop-before-smtp pop-before-smtp #466975 +popfile popfile popfile #468883 +portsentry portsentry portsentry #462220 +postfix-policyd postfix-policyd postfix-policyd #467141 +powerfail genpower genpower #466203 +pptpd pptpd pptp #458476 +psad psad psad #465412 +puppet puppet puppet #462915 +puppetmaster puppetmaster puppet #462915 +pure-ftpd pure-ftpd pure-ftpd #460303 +pure-ftpd-ldap pure-ftpd-ldap pure-ftpd #460303 +pure-ftpd-mysql pure-ftpd-mysql pure-ftpd #460303 +pure-ftpd-postgresql pure-ftpd-postgresql pure-ftpd #460303 +pygopherd pygopherd pygopherd #469619 +pymsnt pymsnt pymsnt #468903 +quickml quickml quickml #469707 +racoon racoon racoon #458488 +radiusd xtradius xtradius #469264 +rarpd rarpd rarpd #466973 +rbldnsd rbldnsd rbldnsd #468886 +rbootd rbootd rbootd #469713 +reaim reaim reaim #469617 +realtime realtime-lsm realtime-lsm #462918 +rinetd rinetd rinetd #466976 +roxen4 roxen4 roxen4 #469615 +rplay rplay-server rplay #468571 +rpld rpld rpld #469628 +rrdcollect rrdcollect rrdcollect #468166 +rtpproxy rtpproxy rtpproxy #469111 +samhain samhain samhain #468167 +sauce sauce sauce #469630 +scanlogd scanlogd scanlogd #468133 +scsitools-pre.sh scsitools scsitools #458649 +scsitools.sh scsitools scsitools #458649 +secvpnmon secvpn secvpn #469753 +setkey ipsec-tools ipsec-tools #458488 +setmixer setmixer setmixer #468432 +setup-unconfigured.sh gibraltar-bootsupport gibraltar-bootcd #459872 +sfs-client sfs-client sfs #469372 +sfs-server sfs-server sfs #469372 +shaperd shaperd shaperd #468750 +siproxd siproxd siproxd #468136 +slpd slpd openslp #462219 +smail smail smail #469119 +smtpd smtpd smtpd #468887 +smtpfeed smtpfeed smtpfeed #469709 +smtpguard smtpguard smtpguard #468242 +spamass-milter spamass-milter spamass-milter #467145 +spamassassin spamassassin spamassassin #451762 +specter specter specter #469613 +sqcwa sqcwa sqcwa #469804 +squid-prefetch squid-prefetch squid-prefetch #467407 +squidtaild squidtaild squidtaild #468306 +swapd swapd swapd #458624 +swapspace swapspace swapspace #468748 +sympa sympa sympa #468746 +systune systune systune #466651 +tama tama tama #469608 +tcpspy tcpspy tcpspy #467408 +teapop teapop teapop #468373 +teapop-ldap teapop-ldap teapop #468373 +teapop-mysql teapop-mysql teapop #468373 +teapop-pgsql teapop-pgsql teapop #468373 +termnetd termnetd termpkg #469694 +tetrinetx tetrinetx tetrinetx #467487 +timeoutd timeoutd timeoutd #468919 +tinyproxy tinyproxy tinyproxy #466149 +tleds tleds tleds #469757 +totd totd totd #469620 +tpconfig tpconfig tpconfig #462214 +transproxy transproxy transproxy #469610 +tspc tspc tspc #467540 +ttyd ttyd termpkg #469694 +udhcpd udhcpd udhcp #468168 +uif uif uif #469112 +ulog-acctd ulog-acctd ulog-acctd #468752 +umlrun-uml umlrun-uml umlrun #468749 +unlock-cddrive gibraltar-bootsupport gibraltar-bootcd #459872 +unmount-initrd gibraltar-bootsupport gibraltar-bootcd #459872 +update-finalize gibraltar-bootsupport gibraltar-bootcd #459872 +ups-monitor genpower genpower #466203 +upsd upsd upsd #469611 +userv userv userv #469216 +vsftpd vsftpd vsftpd #460211 +vtun vtun vtun #464069 +wackamole wackamole wackamole #469708 +wdm wdm wdm #462213 +whitelister whitelister whitelister #466659 +wipl-daemon wipl-daemon wipl #469638 +wmaloader wmaloader wmaloader #469426 +xpilot-ng-server xpilot-ng-server xpilot-ng #460522 +xringd xringd xringd #469710 +xtell xtell xtell #469807 +zoneminder zoneminder zoneminder #468856 +zorp zorp zorp #469115 --- insserv-1.11.0.orig/debian/changelog +++ insserv-1.11.0/debian/changelog @@ -0,0 +1,808 @@ +insserv (1.11.0-8) unstable; urgency=low + + * Make sure the consistency check in update-bootsystem-insserv + report all problems and not only the first one. + + -- Petter Reinholdtsen Mon, 24 Mar 2008 23:32:22 +0100 + +insserv (1.11.0-7) unstable; urgency=low + + * Added override files for digitools and ddns3-client. + * Make sure the dependency based update-rc.d check the argument list + slightly, to avoid bugs like #470062. + + -- Petter Reinholdtsen Thu, 13 Mar 2008 13:54:31 +0100 + +insserv (1.11.0-6) unstable; urgency=low + + [ Petter Reinholdtsen ] + * Added override files for at, fiaif, gom, ifupdown-scripts-zg2 and tspc. + * Correct typo in override file for lvm2. + * Changed postinst and update-bootsystem-insserv to remove the + generated files /etc/init.d/.depend.* when disabled or removed. + * Implemented better support in check-initd-orderfor graphing $all + relations. + * Restructure update-bootsystem-insserv slightly to make it possible + to check if it is safe to convert to dependency based boot + sequencing without doing the conversion. + * Updated 31_debian_conf to list glibc, hostname and keymap as interactive + scripts, as none of them can use a pseudoterminal. + * Add two new tests to verify that x-start-before and x-stop-after + work as they should. + * Debconf translations: + - Added Spanish from Steve Lord Flaubert (Closes: #467391). + - Added German from Erik Schanze (Closes: #467483). + - Added Dutch from Bart Cornelis (Closes: #467418). + + [ Kel Modderman ] + * Modify debian/insserv.config debconf script to honour a preseeded debconf + value enabling dependency based boot on first installation only. + + -- Petter Reinholdtsen Sun, 2 Mar 2008 18:00:02 +0100 + +insserv (1.11.0-5) unstable; urgency=low + + * Add test to verify that introducing a loop will not change the boot + sequence, but make insserv exit with an error. + * Added patch 42_loopnochangemsg to change the message printed when + a loop is detected, to let the user know that the boot sequence is + untouched. + * Added patch 52_shutdown_links to fix incorrecly inserted stop + symlinks (Closes: #464017). + * Added patch 53_debugoutput to provide more useful debug output + used to track down the stop symlink issues. Not enabled by default. + * Debconf translations: + - Added Russian from Yuri Kozlov (Closes: #467164). + - Added Czech from Miroslav Kure (Closes: #467170). + - Added Italian from Luca Monducci (Closes: #467295). + + -- Petter Reinholdtsen Sun, 24 Feb 2008 23:49:12 +0100 + +insserv (1.11.0-4) unstable; urgency=low + + * Added override file for whitelister. + * Reinsert previously removed override file for lvm2 and others + while we wait for the packages in testing to be fixed (Closes: + #466700). These should be removed when lenny is verified to have + headers in place. + * Debconf translations: + - Added French from Christian Perrier (Closes: #466345). + + -- Petter Reinholdtsen Thu, 21 Feb 2008 09:27:34 +0100 + +insserv (1.11.0-3) unstable; urgency=low + + * Rewrote patch debian/patches/40_segfault_virtprov.dpatch with a + solution provided by upstream. + * Added script debian/seq-changes from Frans Pop installed in + /usr/share/insserv/ to extract the sequence changes done by + insserv. + * New testsuite check to detect incorrectly inserted stop symlinks + when scripts with incorrect headers are encountered. + * Removed override file for snmptrapfmt, as the package now include + the LSB header. + * Removed override file save-etc-disk. It is not present in Debian. + * Update the package description and debconf question text (Closes: #464109). + * New patch 11_more_warnings to activate more warning flags during + build. Obsoletes setting the same flags in debian/rules. + * New patch 50_sign_warning getting rid of some signed/unsigned + compare issues. + * Update test suite to the one provided by Werner Fink. + * Extended test suite to report status at the end. + * New patch 32_debug_option to add new option -D to print debug + output. + * New patch 33_nosuse_scripts to disable some SUSE specific settings. + * New patch 51_overwrite_output to improve output when symlinks on + disk do not match the default-* headers. + * Added override file for slashem-common. + * New patch 41_cleansystem to clean the .system file. Changed rules + file to make sure it take effect. + * Change test suite to use /bin/bash, as it uses bash-features. + * Debconf translations: + - Added Galician from Jacobo Tarrio (Closes: #465067). + - Added Vietnamese from Clytie Siddall (Closes: #465437). + - Added Portugese from Américo Monteiro (Closes: #465519). + - Added Finnish from Esko Arajärvi (Closes: #465800). + + -- Petter Reinholdtsen Sun, 17 Feb 2008 13:54:03 +0100 + +insserv (1.11.0-2) unstable; urgency=low + + * Changed patch 31_debian_conf to accept rsyslog and syslog-ng as + implementations for the $syslog facility. + * Added test case to detect insserv crashing when it find scripts + providing virtual system facilities. + * Changed update-bootsystem-insserv to refuse to enable dependency + based boot sequencing when a script provide a virtual system + facility. + * Changed patch 10_nosuse.dpatch to make sure we build with -g. + * Added patch debian/patches/40_segfault_virtprov.dpatch to avoid + segfault when finding an enabled script that provide a virtual + system facility. + + -- Petter Reinholdtsen Fri, 1 Feb 2008 09:24:10 +0100 + +insserv (1.11.0-1) unstable; urgency=low + + * New upstream version. + - Drop patches 20_path_at_runtime, 21_overrides, 32_debian_nolsb, + 33_debian_localok, 38_debuginfo, 40_nosusescript, + 41_debiandefault, 42_redundantlvl, 43_shutdown, + 44_reportloopmemb, 45_loopsarefatal and 46_complete_removal + merged upstream. + - Updated insserv(8) manual page for Debian (Closes: #462064). + - Correct path to insserv.conf in test suite to keep it working. + - A lot faster (Closes: #462211). + * New example script make-testsuite useful to generate a test script + demonstrating a problem. + * Added override files for guidedog and puppet. + * Removed override file for atd and lvm2, as the packages now include + the LSB header. + + -- Petter Reinholdtsen Thu, 31 Jan 2008 09:05:07 +0100 + +insserv (1.10.0-6) unstable; urgency=low + + * Implement support for preseeding insserv, to make it possible to + enable it at install time. This only work the first time the + package is installed and config is executed when + /usr/sbin/update-rc.d-insserv does not exist yet. + * Changed check-initd-order to load virtual facilities from + /etc/insserv.conf (Closes: #459522) + * Extended testsuite to more closely match real Debian for the + shutdown sequence. + * New patch 46_complete_removal.dpatch to make sure all symlinks are + removed on removal (Closes: #460034). Based on patch from Kel + Modderman. Made failing removal test fatal. + + -- Petter Reinholdtsen Sat, 19 Jan 2008 14:45:27 +0100 + +insserv (1.10.0-5) unstable; urgency=low + + * Made sure to initialize the badstate variable before it is used in + update-bootsystem-insserv. + * Removed override files for uptimed and uptimed.sh, as the uptimed + package now include the LSB headers. + * Make sure to give a proper error message when failing to enable + dependency based boot system and insserv return an error code + (Closes: #461141). + + -- Petter Reinholdtsen Wed, 16 Jan 2008 23:29:09 +0100 + +insserv (1.10.0-4) unstable; urgency=low + + * Made problematic test cases for bug #460034 and #458582 fatal + in testing and non-fatal when uploading. + * Added override files for bastille-firewall. + * Do not warn about obsolete init.d scripts that have been removed + (Closes: #461073). Patch from Kel Modderman. + * Provide more information when convertion to dependency based boot + sequencing can not be done. + + -- Petter Reinholdtsen Wed, 16 Jan 2008 22:00:50 +0100 + +insserv (1.10.0-3) unstable; urgency=low + + * Added test case for problem with symlink removal, bug #460034. + * Added override files for uptimed, uptimed.sh and guarddog. + * Removed override file nfs-user-server as the compiled in defaults + are better than the proposed overrides. + * Add mountoverflowtmp to virtual facility $local_fs, to make sure + /tmp/ is always mounted before the scripts needing /tmp/ is + started. Conflict with initscripts before 2.86.ds1-48, to avoid a + dependency loop with this change. + * Make debconf question translatable (Closes: #386703). + + -- Petter Reinholdtsen Sun, 13 Jan 2008 19:32:34 +0100 + +insserv (1.10.0-2) unstable; urgency=low + + * Implement new check-initd-order option -c to be used with -g to + generate a combined graph for boot and shutdown dependencies. + * Split test suite into two files, one generic part + (testsuite-common) and one Debian specific part (run-testsuite). + * Remove ntpdate and ntp-server as optional dependencies for $time + as both are obsolete, and changing them to the current 'ntp' would + make a loop. + * Removed override file for resolvconf and laptop-netconf, as the + unstable packages got the header now. + * Removed override file for devmapper, as the unstable packages no + longer include a init.d script + * Remove reference to lwresd in headers-reported, as the unstable + package got the header now. + * Added override files for the console-cyrillic and + gibraltar-bootsupport package. + + -- Petter Reinholdtsen Wed, 9 Jan 2008 22:42:31 +0100 + +insserv (1.10.0-1) unstable; urgency=low + + * New upstream version released 2007-10-10. + - Updated patches 10_nosuse, 20_path_at_runtime, 21_overrides and + 43_shutdown to apply on the new version. + - Removed patch 11_revdepend as it is included upstream. + * In graphs, name scripts without provides header, and scripts + without LSB header, using the name of the file in /etc/init.d/. + This make it easier to spot loops involving these scripts. + * Added override file for hpoj. + * Ask if insserv should be activated at install time, using a medium + priority debconf question. The default is no. + * Restructure test script to work with new test feature implemented + in version 1.10. + * Update patch 42_redundantlvl to get rid of two compiler warnings. + + -- Petter Reinholdtsen Mon, 7 Jan 2008 23:37:53 +0100 + +insserv (1.09.0-14) unstable; urgency=low + + * Changed patch 21_overrides to only warn once about scripts without + LSB header, to reduce the noise. + * Changed patch 21_overrides to speed up processing by only reading + override default files only when the script is lacking an LSB header. + * Moved default dependency values from patch 21_overrides to + 41_debiandefault where it belong. + * New test to check that scripts introducing a loop (or a fake loop, + see bug #458582) will refuse to install. + * New patch 45_loopsarefatal to make sure insserv considering all + kind of loops fatal, to not mess up the script sequences. + * Introduce very simple manual page for update-rc.d-insserv. + * Make failing 'make clean' fatal, as it should always work. + * Change debconf template text to make it easier to understand. + + -- Petter Reinholdtsen Sun, 6 Jan 2008 09:37:43 +0100 + +insserv (1.09.0-13) unstable; urgency=low + + * Update patch 21_overrides to fix bug in override handling. Now a + header in a script or override file complete replaces previously + loaded headers. + * Add test to check and verify that override files in + /etc/insserv/override replaces headers in the scripts in + /etc/init.d/, and made previously failing loop breaking test + fatal, as it is working with the fixed override patch. + + -- Petter Reinholdtsen Fri, 4 Jan 2008 12:25:55 +0100 + +insserv (1.09.0-12) unstable; urgency=low + + * New patch 34_debian_fixedscripts to hardcode a few script sequence + numbers, to let the generated boot sequence be more like the + original one. Modified 40_nonsusescripts to no longer disable the + setlsb() function. This patch is not enabled by default, as it is + not obvious that it is a good idea. + * Added override files for hostname.dhcp and mountfix. + * Adjust override file for lvm2, to provide both lvm2 and lvm, to + make it easier until the lvm provide is dropped. + * Adjust override file for lvm2 to use reverse depend on checkfs, + mountall and umountfs to make it possible to drop lvm relations + from initscripts. + + -- Petter Reinholdtsen Fri, 4 Jan 2008 01:38:00 +0100 + +insserv (1.09.0-11) unstable; urgency=low + + * Added test to demonstrate the fake loop warning issue (bug + #458582). + * Implemented support for non-fatal tests in the testsuite. + * Added override file for dmraid, scsitools-pre.sh and scsitools.sh. + * Added patch 44_reportloopmemb to make loop reporting code in + insserv more helpful, and make sure to report the extended loop + output in update-bootsystem-insserv when refusing to switch to + dependency based boot (Closes: #458683). + * Move code to divert update-rc.d from postinst to + update-bootsystem-insserv, to make sure both ways to activate + insserv are equivalent. + * Extended check-initd-order to graph services with multiple + provides as two nodes that depend on each other, and which ahve + the same dependencies. + * Changed update-bootsystem-insserv to call 'reset' after looping + over packages postinst scripts, in case the terminal is messed up + as it is when I test it. + * Disabled check for reverse dependencies in check-initd-order. It + does not to work properly, and gave false error reports. + * Removed flag file /etc/update-rc.d-insserv and use the update-rc.d + diversion as the flag to detect if insserv is enabled. Adjustd + package removal and update-rc.d-insserv to reflect this. + * Added Vcs-Svn and Vcs-Browser info in control file, pointing to + the Debian packaging project. + + -- Petter Reinholdtsen Wed, 2 Jan 2008 18:41:31 +0100 + +insserv (1.09.0-10) unstable; urgency=low + + * Make sure to exit with an error code if it isn't safe to remove + the package. + + -- Petter Reinholdtsen Tue, 1 Jan 2008 21:12:24 +0100 + +insserv (1.09.0-9) unstable; urgency=low + + * Removed override file pptpd as the compiled in defaults are better + than the proposed overrides. + * Correct override file for laptop-netconf after checking the script + and the package. + * Added override file for racoon, and corrected override file for + setkey, after checking the scripts in the package. + * Try to make recovery routine more robust by not trying to run + non-existing postinst scripts, and only run postinst scripts for + packages with executable scripts in /etc/init.d/. + * Extended check-initd-order to check optional start dependencies, + and implement check of the shutdown sequence. + * Extended to check reverse dependencies too. + * Changed enabling code to refuse to convert to dependency based + boot sequence when obsolete init.d scripts are found, as these + tend to mess up the boot sequence. + * Changed enabling code to refuse to convert to dependency based + boot sequence if several scripts provide the same service. + * Added prerm code to refuse to be removed while enabled, to avoid + messing up the boot system completely. + + -- Petter Reinholdtsen Tue, 1 Jan 2008 21:08:14 +0100 + +insserv (1.09.0-8) unstable; urgency=low + + [ Petter Reinholdtsen ] + * Removed override files cpqarrayd, hotkey-setup and spamassassin as + they are equivalent with the defaults compiled into insserv. + * Removed override files courier-ldap, courier-authdaemon, + courier-imap-ssl and courier-imap, irqbalance and nethack-common + as the compiled in defaults are better than the proposed + overrides. + * Extended check-initd-order to graph reverse dependencies + (X-Start-Before and X-Stop-AFter). Draw reverse dependencies in + yellow. + * Added patch 11_revdepend fetched from a review copy of version + 1.10. Modified 20_override to cope with the change. Based on + changes from Werner Fink. + * Renamed patches 20_overrides to 21_overrides and + 44_path_at_runtime to 20_path_at_runtime, to prepare for Otavios + extensions. + + [ Otavio Salvador ] + * Extended patch 21_override to allow override path changing so the + unit test can use it. + + -- Petter Reinholdtsen Mon, 31 Dec 2007 19:26:00 +0100 + +insserv (1.09.0-7) unstable; urgency=low + + * Try to make it it easier to disabling the dependency based boot + sequencing by calling the postinst of all packages with init.d + scripts to register the scripts again. + * Extend check-initd-order to handle the virtual dependecy $all. + * Reword the debconf question to try to make it clearer and + easier to understand. + * Minor cleanup in irqbalance and atd override file, only depend + on $remote_fs, no need to also depend on $local_fs. + * Update check-initd-order to use the same default dependencies + ($remote_fs $syslog) and the same virtual dependencies as insserv + when generating dotty graphs. + * Update check-initd-order to draw left-to-right dotty graphs. + Based on tip from Frans Pop and Trent Buck. + * Update lvm2 override to stop before umountroot. + + -- Petter Reinholdtsen Sun, 30 Dec 2007 18:48:47 +0100 + +insserv (1.09.0-6) unstable; urgency=low + + * Update patch 20_overrides to let scripts without an LSB header + depend on $syslog as well as $remote_fs. + * Add test case to check that scripts without LSB header is ordered + after syslog + + -- Petter Reinholdtsen Sun, 30 Dec 2007 12:39:33 +0100 + +insserv (1.09.0-5) unstable; urgency=low + + * Update patch 44_path_at_runtime to include support for -c to point + to a local config file. It is required for a proper test suite. + * Fix typo in test suite and extend it to check more scenarios. + * Use local config file when running test suite. + * Change $syslog virtual facility to depend on either syslog or + sysklogd. The sysklogd script provide syslog and not the sysklogd + string that was requested in bug #324679. + * Update patch 31_debian_conf to list udev mountdevsubfs checkroot + checkfs console-screen as interactive scripts that should run + alone. + + -- Petter Reinholdtsen Sun, 30 Dec 2007 09:23:22 +0100 + +insserv (1.09.0-4) unstable; urgency=low + + * Update patch 20_overrides to add useful default values for scripts + without LSB header (Closes: #431697). + * Update patch 43_shutdown to handle scripts with both start and + stop levels. (Closes: #452462). + * New patch 44_path_at_runtime to add new option -p to make it + possible to replace /etc/init.d with another path for testing. + * Add script debian/run-testsuite to test the generated order, and + use it during the build. + + -- Petter Reinholdtsen Sat, 29 Dec 2007 16:00:31 +0100 + +insserv (1.09.0-3) unstable; urgency=low + + * Update patch 40_nosusescript to disable unused function setlsb(). + * Add sendsigs to the $remote_fs virtual facility, to make sure the + services depending on $remote_fs for the shutdown sequence are not + killed before their init.d script get a chance to stop them. + * New patch 43_shutdown to fix the handling of stop scripts and thus + the shutdown sequence (Closes: #452462). Thanks to Otavio + Salvador for help with debugging and part of the patch. + + -- Petter Reinholdtsen Sat, 29 Dec 2007 00:20:04 +0100 + +insserv (1.09.0-2) unstable; urgency=low + + * New patch 10_nosuse to disable SUSE specific build. This make + it easier to debug insserv. + * Update patch 40_nosusescript to remove SUSE-specific handling + of the halt and reboot script. + * Remove all override files for init.d scripts with LSB style + dependency headers (Closes: #386544). + * Update snmptrapfmt override file, making it more accurate. + * Updated standards-version from 3.7.2 to 3.7.3. No changes needed. + + -- Petter Reinholdtsen Tue, 25 Dec 2007 14:24:26 +0100 + +insserv (1.09.0-1) unstable; urgency=low + + * New upstream release. (Closes: #426091) + - Support X-Start-Before and X-Stop-After (Closes: #326120) + - Building with DEB_BUILD_OPTIONS=nostrip no longer strip the + binary. (Closes: #437210) + * Let /usr/share/insserv/check-initd-order read override files in + /etc/insserv/overrides/ just like insserv does. Patch from Arjan + Oosting. (Closes: #429398) + * Correct the dependencies for nbd-client and libnss-ldap. + * Add override file for spamassassin. + * Update watch file with new upstream URL. (Closes: #450044) + + -- Petter Reinholdtsen Sat, 17 Nov 2007 21:17:20 +0100 + +insserv (1.08.0-14) unstable; urgency=low + + * Correct the dependencies for hwclock.sh. + * Update libdevmapper*, raid2 and mdadm-raid by adding + module-init-tools as an alternative to modutils, and move + both from required-start to should-start, as either or both + might be available. (Closes: #432072) + + -- Petter Reinholdtsen Mon, 9 Jul 2007 13:40:36 +0200 + +insserv (1.08.0-13) unstable; urgency=low + + * Add override files for sysfsutils and hplip. + * Add cryptdisks-early as should-start to the lvm2 override + file (Closes: 429402) + + -- Petter Reinholdtsen Mon, 18 Jun 2007 17:32:50 +0100 + +insserv (1.08.0-12) unstable; urgency=low + + * Add override files for nbd-server and libdevmapper1.02.1. + * Update override files for atd, atftpd, discover, enable-nat, + keymap.sh, klogd, mplayer, networking, open-backdoor, + openbsd-inetd, report-reboot, rsync and start-wlan + based on the headers in the packages themselves. + * Add override file for lvm2 (Closes: #426104). + + -- Petter Reinholdtsen Sat, 26 May 2007 12:42:38 +0200 + +insserv (1.08.0-11) unstable; urgency=low + + * Add override file for timidity. + * Add override file for powernowd. + * Add override file for laptop-mode. + * Update override file for libnss-ldap. + + -- Petter Reinholdtsen Thu, 2 Nov 2006 13:36:10 +0100 + +insserv (1.08.0-10) unstable; urgency=low + + * Add override file for cpqarrayd. + * Add override file for libpam-devperm. + * Add override file for screen-cleanup. + + -- Petter Reinholdtsen Sat, 14 Oct 2006 21:00:31 +0200 + +insserv (1.08.0-9) unstable; urgency=low + + * Change bind9 override file to avoid dependency loop involving + $syslog->sysklogd->$named->bind9. Remove $syslog dependency and + insert $remote_fs dependency instead. Make the $network dependency + conditional to work when netbase is not installed. + * Add override file for resolvconf. + * Add override file for installation-report. + * Minor cleanup in nviboot override file, only depend on $remote_fs, no need + to also depend on $local_fs. + + -- Petter Reinholdtsen Sat, 7 Oct 2006 10:08:04 +0200 + +insserv (1.08.0-8) unstable; urgency=low + + * Add override files for festival, hotkey-setup and lisa. + * New patch 41_debiandefault to set the default runlevels for start (2345) + and stop (016) on Debian. + + -- Petter Reinholdtsen Sat, 16 Sep 2006 17:32:24 +0200 + +insserv (1.08.0-7) unstable; urgency=low + + * Remove override file console-screen.sh. The info is now present in the + file itself. + * Modify override file for lvm to document that it should stop just + before halt and reboot. + * Modify override file for exim4 to only conditional depend on $named. + * Rewrite check-initd-order to avoid the dependency on perl-modules, + to make it easier to run in systems with small disks. + * Remove override files for aumix, cfengine2, cryptdisk, hdparm, + ifupdown, ifupdown-clean, kdm, nfs-common, nfs-kernel-server, + pcmcia, portmap, sudo, udev, udev-mtab, x11-common, + xdebconfigurator. It is good enough in the scripts themselves + now. + * Modify override file for atd to avoid redundant dependencies and + drop runlevel 'S' from the stop list. Reported as bug #376780. + + -- Petter Reinholdtsen Thu, 14 Sep 2006 15:15:49 +0200 + +insserv (1.08.0-6) unstable; urgency=low + + * Minor change to the template text, explaining that the S* symlinks + are renamed to K* symlinks in rc0.d/ and rc6.d/. + * Correct override file for sysklogd and klogd. These should not + start in runlevel S, and should stop in runlevel 1. + * Add $syslog to the dependency list for openbsd-inetd, to make sure + it can log its start to syslog. Drop $local_fs, as it is a + dependency for $remote_fs. + * New patch debian/patches/40_nosusescript to avoid inserting the + 'single' script showing up in runlevel S, and also avoid fixing + the sequence number to the values used by SuSe. + * Correct override file for hotplug-net, it should depend on $local_fs. + * Correct override file for hotplug, it should stop before $local_fs. + * Modify patch 31_debian_conf to also list ifupdown as part of the + $network facility, to make $network available in runlevel 0 and 6. + * Try to make update-bootsystem-insserv more robust on restores. + Move conversion logs and related files to /var/lib/insserv. + + -- Petter Reinholdtsen Sun, 10 Sep 2006 20:17:15 +0200 + +insserv (1.08.0-5) unstable; urgency=low + + * New flag -k for check-initd-order to look at the stop sequence instead + of the start sequence. + * Correct override files for acpid, alsa, alsa-utils, apmd, + hwclockfirst.sh, ifupdown, modutils, networking, nullmailer, + openbsd-inetd, pcmcia, procps.sh, and update-hostname. + * Remove override files for bootlogd, bootmisc.sh, checkfs.sh, + checkroot.sh, glibc.sh, halt, hostname.sh, module-init-tools, + mountall.sh, mountdevsubfs.sh, mountnfs.sh, reboot, rmnologin, + sendsigs, single, stop-bootlogd, umountfs umountnfs.sh and urandom + as the scripts themselves now have correct dependency information + in them. + * With the current patches and dependency info, insserv generate + correct shutdown order. (Closes: #350188) + + -- Petter Reinholdtsen Sat, 9 Sep 2006 20:23:28 +0200 + +insserv (1.08.0-4) unstable; urgency=low + + * Change update-bootsystem-insserv to refuse to convert the boot + system if there are dependency loops. + * New patch 37_consistent_path to make more consistent log output. + * Adjust the the rules file to make sure we build using the compiler options + specified there. + * New patch 33_debian_localok making .local a valid ending, + to accept script names like 'rc.local'. + * New patch 38_debuginfo to improve the debug output. + * New patch 39_debianlvl.dpatch to handle rcS.d/ a bit better. + * Add override for mountdevsubfs.sh, documenting its + relation to udev. + * Add override for stop-bootlogd, documenting that it should come late, + after rmnologin. + * Make it easier to enable the dependency based boot system by + adding a fairly well hidden debconf question to activate it. + * Adjust the override files for dns-clean, hotplug, hotplug-net, + hwclock.sh, keymap.sh, libdevmapper1.00, libdevmapper1.01, + libdevmapper1.02, modutils, nviboot and procps.sh to make sure + they only start in runlevel S. + * Adjust override file for acpid, nstxd and nstxcd, to make sure + they are not started in runlevel S. + * Adjust override file for makedev and rmnologin, there is + no reason to add stop links for them. + * Remove 'S' from all override files listing it in should-stop. It + never make sense to add stop scripts in rcS.d/. + * Allow check-initd-order to continue even if one file is unreadable. + * Add override files for apt-index-watcher, vbesave, acpi-support + and libnss-ldap. + * Correct the definition of $remote_fs to include mountnfs, + mountnfs-bootclean and umountnfs. + * Correct the definition of $local_fs to include mountfs, + mountfs-bootclean and umountfs. + * Adjust the override file for openbsd-inetd, to make sure it start + after /usr/ is mounted. + + -- Petter Reinholdtsen Fri, 8 Sep 2006 19:14:15 +0200 + +insserv (1.08.0-3) unstable; urgency=low + + * Extend check-initd-order to accept a new argument -o, to not load + the override files. + + -- Petter Reinholdtsen Thu, 7 Sep 2006 11:59:17 +0200 + +insserv (1.08.0-2) unstable; urgency=low + + * New patch 35_fixunused removing incorrect 'unused' flagg from a + few functions, to avoid compile warning on s390. + * New patch 36_memleak fixing a minor memory leak. + * Updated override file for libdevmapper1.00. + * Added override file for libdevmapper1.02. + * Sync override files with the unstable init.d scripts for + alsa,alsa-utils, atd, bootlogd, bootmisc.sh, cfengine2, + checkfs.sh, checkroot.sh, console-screen.sh, cryptdisk, exim4, + fam, halt, hdparm, kdm, keymap.sh, makedev, module-init-tools, + mountall.sh, mountnfs.sh, networking, nfs-common, + nfs-kernel-server, pcmcia, portmap, pppd-dns, procps.sh, reboot, + rmnologin, single, sudo, udev, udev-mtab, umountfs, umountnfs.sh, + urandom and xdebconfigurator. I assume the package maintainer + know the scripts best, and use their values. + * Added override file for usplash. + * Modify update-bootsystem-insserv to report dependency loop + problems. (Closes: #386301) + * Add recommend on perl-modules. (Closes: #386300) + * Update standards-version to 2.7.2. No changes needed. + * Do not include 'klogd' in the $syslog facility, to avoid + dependency loop. + * Change mountvirtfs to mountdevsubfs in all override files, to + use the new name instead of the obsolete name. + * The keymap override should not depend on $syslog, and neither should + keymap.sh itself (bug #386338). + * Update 20_overrides.dpatch to new version of the source. + + -- Petter Reinholdtsen Thu, 7 Sep 2006 00:45:18 +0200 + +insserv (1.08.0-1) unstable; urgency=low + + * New upstream release. + * Correct name of logfile, moving the stderr redirect to the insserv + call. (Closes: #349494) + * Add code in update-bootsystem-insserv to convert all S* symlinks + in rc1.d and rc6.d to K* symlinks before insserv is executed. to + reflect the argument passed on to these scripts in debian. + Addresses part of bug #350188. + + -- Petter Reinholdtsen Sun, 1 Apr 2006 17:30:35 +0100 + +insserv (1.04.0-2) unstable; urgency=low + + * Modify 20_override.dpatch based on input from upstream author + Werner Fink, to add more error handling. + + -- Petter Reinholdtsen Fri, 11 Nov 2005 15:35:27 +0100 + +insserv (1.04.0-1) unstable; urgency=low + + * New upstream release. + - Start building without -DSUSE, to enable processing of *-stop headers. + * Updated upstream URL in copyright file to match the latest location. + * Remove 40_dryrunmore.dpatch, applied upstream. + * Remove 41_dryrun_msg.dpatch, applied upstream. + * Remove 50_cfgfilter.dpatch, applied upstream. + * Merged 20_overrides.dpatch and 25_overrides.dpatch into one patch + 20_overrides.dpatch. + * New 34_debian.dpatch modifying the paths from rc#.d/, getting + non-SUSE case working on Debian. + * New patch 30_non_suse.dpatch fixing segfault in the non-SUSE case. + * Updated init.d override files for hwclockfirst, ifupdown, + ifupdwon-clean, initrd-tools, keymap, networking, procps and + udev-mtab. + + -- Petter Reinholdtsen Thu, 10 Nov 2005 22:50:14 +0100 + +insserv (1.02.0-3) unstable; urgency=low + + * Added init.d override files for acct, apache2, snmpd and snmptrapfmt. + * Updated and corrected override file for alsa, apache, atd, cron, + gdm, gpsd, initrd-tools, udev-mtab and xdm. + * Wrote graphviz dotty graph generation support for check-init-order (-g). + * Updated README.Debian to reflect the current status in Debian, and + included some instructions on how to use this package. + * Documented in the override files which dependency information I've + reported to BTS. + * Add 'ntpdate' as a optional dependency for the $time virtual + facility, to make sure NTP update is done on machines without + their own NFS server + * Wrote manual page for update-bootsystem-insserv(8). + + -- Petter Reinholdtsen Thu, 10 Nov 2005 00:18:49 +0100 + +insserv (1.02.0-2) unstable; urgency=low + + * Added init.d override files for hibernate, mdadm-raid, start-wlan + and x11-common. + * Corrected sysklogd override file, to only provide sysklogd. + * Document BTS bug numbers in the override file for the init.d + dependency headers I've submitted to the package maintainer. + + -- Petter Reinholdtsen Wed, 5 Oct 2005 17:04:01 +0200 + +insserv (1.02.0-1) unstable; urgency=low + + * New upstream version. + - Rewritten to handle non-SuSe systems better. + - Patches 05_verbose_doc, 10_dryrun, and 50_lsb_shold_std removed, + as they are included upstream. + - Updated patch 40_dryrunmore to match new version, and extend it to + also cover SuSe code. + * Still building with -DSUSE as the new non-SuSe features are still + buggy. + * Changed download URL in copyright file to + . + * Removed rc and rcS, as a version of sysvinit + with equivalent patches is in sid and etch now. + * Added and updated init.d dependency info override files. + The provided dependencies is tested to work on my test machines + with 2.4 and 2.6 installs. (Closes: #325798) + * New script update-bootsystem-insserv to reorder + the boot scripts with a backup. + * Avoid initscripts with .dpkg* in the name. + (51_cfgfilter_dpkg.dpatch) (Closes: #326445) + * Add dependency on sysv-rc. (Closes: #329279) + + -- Petter Reinholdtsen Sat, 3 Sep 2005 13:18:51 +0200 + +insserv (1.00.8-5) unstable; urgency=low + + * Updated dependency info for (module-init-tools, modutils, raid2, mdadm) + * Added dependency override files (noflushd, laptop-net, whereami, pcscd) + + -- Petter Reinholdtsen Fri, 2 Sep 2005 09:21:25 +0200 + +insserv (1.00.8-4) unstable; urgency=low + + * Added dependecy override files (xdm, irqbalance). + * Updated dependency info for a few override files (devfsd, + discover, hotplug, hotplug-net, hwclock.sh, keymap.sh, rmnologin, + sudo, gdm, lvm, ntpdate, xfs, aumix, freevo, laptop-netconf, + report-reboot, open-backdoor). + * New patch to avoid warning about missing override files if the + init.d file already contain LSB tags. (25_override.dpatch) + * Correct header example in the insserv(8) manual page. + (50_lsb_should_std.dpatch) + + -- Petter Reinholdtsen Thu, 1 Sep 2005 22:24:51 +0200 + +insserv (1.00.8-3) unstable; urgency=low + + * Added dependecy override files (nullmailer, binfmt-support). + * Add suggests on bootchart, a great tool to debug the boot + sequence. + * New patch to get dryrun mode working also when /etc/rc.boot is + missing. (40_dryrunmore.dpatch) + * Added more information about the dangers of reorganizing the boot + sequence in README.Debian. + * Some package cleanup. + + -- Petter Reinholdtsen Fri, 30 Aug 2005 00:20:16 +0200 + +insserv (1.00.8-2) unstable; urgency=low + + * Updated and added dependecy override files. + * Added script check-initd-order, trying to check the current boot + sequence in debian based on the LSB headers present. + + -- Petter Reinholdtsen Fri, 26 Aug 2005 00:20:16 +0200 + +insserv (1.00.8-1) unstable; urgency=low + + * Initial Release. (Closes: #324926) + * Document the -v (--verbose) flag. (05_verbose_doc.dpatch) + * Implement new option -n (--dryrun). (10_dryrun.dpatch) + * Implement support for reading LSB init.d header info from override + files. (20_overrides.dpatch) + * Adjust some paths and avoid installing LSB install scripts to + match Debian policy. (30_debian.dpatch) + * Add README.Debian explaining how to test this. + + -- Petter Reinholdtsen Fri, 26 Aug 2005 00:19:16 +0200 --- insserv-1.11.0.orig/debian/watch +++ insserv-1.11.0/debian/watch @@ -0,0 +1,6 @@ +# Run the "uscan" command to check for upstream updates and more. +# See uscan(1) for format + +version=2 + +ftp://ftp.suse.com/pub/projects/init/insserv-(.*).tar.gz debian uupdate --- insserv-1.11.0.orig/debian/bts-lefttoreport +++ insserv-1.11.0/debian/bts-lefttoreport @@ -0,0 +1,8 @@ +#!/bin/sh + +basedir=$(dirname $0) + +ls $basedir/overrides |sort > bts-total.txt +(cd $basedir/overrides ; egrep -l 'BTS|Already present' *) |sort> bts-reported.txt +comm -23 bts-total.txt bts-reported.txt +rm bts-total.txt bts-reported.txt --- insserv-1.11.0.orig/debian/README.Debian +++ insserv-1.11.0/debian/README.Debian @@ -0,0 +1,43 @@ +To test dependency based reordering of the boot sequence, install the +package, enable parallel booting, and run update-bootsystems-insserv +to make a backup of the boot sequence and reorder the boot scripts. +Be careful to verify the boot sequence before rebooting, as an +incorrect boot sequence can render the system completely unbootable. + +In short: + + # Enable parallel booting + echo CONCURRENCY=shell >> /etc/default/rcS + + # Update boot sequence + update-bootsystem-insserv + + # At this point, I recommend examining the order in /etc/rcS.d/ and + # /etc/rc2.d/ carefully, to verify that the configuration actually + # will boot. Update /etc/insserv/overrides/ or + # /usr/share/insserv/overrides/ with better dependency information + # if the boot order is incorrect, and run insserv -v to update the + # boot order. + + # Ready to reboot + shutdown -r now + +The next boot should then start services in parallel, as early as +possible during the boot process based on the dependency information +provided. + +To monitor the boot sequence, the bootchart project is a good choice. +Debian packages are available in etch and sid. The project itself is +available from . + +Background info on alternative boot systems in Debian is available from +. + +Information on the LSB initscript comment convention is available from +, + and +. + +Information on an alternative approach to parallelism during boot is +available from +. --- insserv-1.11.0.orig/debian/insserv.postrm +++ insserv-1.11.0/debian/insserv.postrm @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +case "$1" in + remove) + # Remove files generated by insserv + rm -f /etc/init.d/.depend.boot + rm -f /etc/init.d/.depend.start + rm -f /etc/init.d/.depend.stop + ;; + *) + ;; +esac + +#DEBHELPER# --- insserv-1.11.0.orig/debian/insserv.config +++ insserv-1.11.0/debian/insserv.config @@ -0,0 +1,69 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_version 2.0 + +# Based on code from dash postinst +check_divert() { + package=insserv + div=$(dpkg-divert --list $2) + distrib=${4:-$2.distrib} + case "$1" in + status) # Return true if the divert is in effect + if [ -n "$div" ] && [ -z "${div%%*by $package}" ]; then + : + else + false + fi + esac +} + + +if [ "$1" = configure ] && [ -z "$2" ]; then + set +e + db_fget insserv/enable seen + err=$? + set -e + + case $err in + 0) + if [ true = "$RET" ]; then + db_get insserv/enable + if [ true = "$RET" ] && \ + ! check_divert status /usr/sbin/update-rc.d \ + /usr/sbin/update-rc.d-insserv ; then + # debconf value has been seen and the value is true, but the + # on disk state is false. No previous package version has + # given as second argument, therefore the value must have + # been preseeded before initial installation. Exit. + exit + fi + fi + ;; + 10) + # insserv/enable seen does not exist + ;; + *) + echo "db_fget exited with $err" >&2 + exit $err + ;; + esac +fi + + +# Only update the default from the status on disk if we are already +# installed, and not on first time install, to allow preseeding. +if [ -e /usr/sbin/update-rc.d-insserv ] ; then + if check_divert status /usr/sbin/update-rc.d \ + /usr/sbin/update-rc.d-insserv ; then + db_set insserv/enable true + else + db_set insserv/enable false + fi +fi + +db_input medium insserv/enable || [ $? -eq 30 ] +db_go || true --- insserv-1.11.0.orig/debian/insserv.prerm +++ insserv-1.11.0/debian/insserv.prerm @@ -0,0 +1,41 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +flagfile=/var/lib/insserv/using-insserv + +# Based on code from dash postinst +check_divert() { + package=insserv + div=$(dpkg-divert --list $2) + distrib=${4:-$2.distrib} + case "$1" in + status) # Return true if the divert is in effect + if [ -n "$div" ] && [ -z "${div%%*by $package}" ]; then + : + else + false + fi + esac +} + +case "$1" in + remove) + # Refuse to be uninstalled while enabled + if check_divert status /usr/sbin/update-rc.d \ + /usr/sbin/update-rc.d-insserv || [ -f $flagfile ] ; then + echo "error: insserv must be disabled before it is removed, to" + echo "error: make sure the boot system is still usable." + echo "error: To disable, run dpkg-reconfigure insserv" + exit 1 + fi + ;; + *) + ;; +esac + +db_stop + +#DEBHELPER# --- insserv-1.11.0.orig/debian/update-rc.d-insserv +++ insserv-1.11.0/debian/update-rc.d-insserv @@ -0,0 +1,40 @@ +#!/usr/bin/perl + +use strict; +use warnings; + +my @opts; +while($#ARGV >= 0 && ($_ = $ARGV[0]) =~ /^-/) { + shift @ARGV; + if (/^-n$/) { push(@opts, $_); next } + if (/^-f$/) { push(@opts, $_); next } + if (/^-h|--help$/) { &usage; } + &usage("unknown option"); +} +my $scriptname = $ARGV[0]; +if ("remove" eq $ARGV[1]) { + if ( -f "/etc/init.d/$scriptname" ) { + exec "insserv", @opts, "-r", $scriptname; + } else { + # insserv remove all dangling symlinks, no need to tell it + # what to look for. + exec "insserv", @opts; + } +} elsif ("defaults" eq $ARGV[1] || "start" eq $ARGV[1] || "stop" eq $ARGV[1]) { + # Ignore start/stop/defaults arguments, just add it + exec "insserv", @opts, $scriptname; +} else { + usage(); +} + +sub usage { + print STDERR "update-rc.d: error: @_\n" if ($#_ >= 0); + print STDERR < remove + update-rc.d [-n] defaults [NN | sNN kNN] + update-rc.d [-n] start|stop NN runlvl [runlvl] [...] . + -n: not really + -f: force +EOF + exit (1); +} --- insserv-1.11.0.orig/debian/docs +++ insserv-1.11.0/debian/docs @@ -0,0 +1 @@ +README --- insserv-1.11.0.orig/debian/seq-changes +++ insserv-1.11.0/debian/seq-changes @@ -0,0 +1,54 @@ +#! /bin/bash +# Script from Frans Pop + +set -e + +if [ -z "$1" ]; then + echo "Usage: insserv-seq-changes /var/lib/insserv/" + exit 1 +fi + +oldtar="$(tar tzf $1)" +for i in S $(seq 0 6); do + echo "Runlevel $i" + new="$(cd /etc/rc$i.d; ls -1 [KS]* | sort | nl)" + old="$(echo "$oldtar" | grep "^rc$i.d/[KS]" | cut -d/ -f2 | sort | nl)" + case $i in + S|0|6) + old="$(echo "$old" | sed -r "s/[KS][0-9]+//")" + new="$(echo "$new" | sed -r "s/[KS][0-9]+//")" + ;; + *) + old="$(echo "$old" | sed -r "s/([KS])[0-9]+/\1_/")" + new="$(echo "$new" | sed -r "s/([KS])[0-9]+/\1_/")" + ;; + esac + echo "$new" | while read num cmd; do + oldnum=$(echo "$old" | grep "[[:space:]]$cmd$" | awk '{print $1}') + if [ "$oldnum" ]; then + diff=$(($num - $oldnum)) + else + oldnum="---" + diff="" + fi + if [ ${#cmd} -ge 16 ]; then + echo -e "$cmd\t$num\t$oldnum\t$diff" + elif [ ${#cmd} -ge 8 ]; then + echo -e "$cmd\t\t$num\t$oldnum\t$diff" + else + echo -e "$cmd\t\t\t$num\t$oldnum\t$diff" + fi + done + echo "$old" | while read num cmd; do + if ! echo "$new" | grep -q "[[:space:]]$cmd$"; then + if [ ${#cmd} -ge 16 ]; then + echo -e "$cmd\t---\t$oldnum" + elif [ ${#cmd} -ge 8 ]; then + echo -e "$cmd\t\t---\t$oldnum" + else + echo -e "$cmd\t\t\t---\t$oldnum" + fi + fi + done + echo +done --- insserv-1.11.0.orig/debian/make-testsuite +++ insserv-1.11.0/debian/make-testsuite @@ -0,0 +1,33 @@ +#!/bin/sh +# +# Extract key information from the current to try to generate a test +# suite script to demonstrate detected bugs. + +echo "cat <<'EOF' > \$tmpdir\$insconf" +grep -v '#' /etc/insserv.conf |grep -v '^$' +echo "EOF" + +for f in /etc/init.d/*; do + name=$(basename $f) + case $name in + README|rc|rcS|skeleton) + ;; + *) + echo "addscript $name < + +Disable some suse specific code. + +@DPATCH@ +diff -u insserv-1.11.0/insserv.c insserv-1.11.0/insserv.c +--- insserv-1.11.0/insserv.c ++++ insserv-1.11.0/insserv.c +@@ -2655,6 +2665,7 @@ + if (is_loop_detected() && !ignore) + error("exiting now!\n"); + ++#ifdef SUSE + /* + * Re-order some well known scripts to get + * a more stable order collection. +@@ -2663,6 +2674,7 @@ + */ + setorder("route", (getorder("network") + 2), true); + setorder("single", (getorder("kbd") + 2), true); ++#endif /* SUSE */ + + /* + * Be sure that interactive scripts are the only member of --- insserv-1.11.0.orig/debian/patches/51_overwrite_output.dpatch +++ insserv-1.11.0/debian/patches/51_overwrite_output.dpatch @@ -0,0 +1,33 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 51_overwrite_output.dpatch by Petter Reinholdtsen + +Include more information when overwriting the provide LSB defaults. + +@DPATCH@ +diff -u insserv-1.11.0/insserv.c insserv-1.11.0/insserv.c +--- insserv-1.11.0/insserv.c ++++ insserv-1.11.0/insserv.c +@@ -2460,8 +2460,9 @@ + */ + if (!defaults && (deflvls != service->lvls)) { + if (!del && chkfor(d->d_name, argv, argc) && !(argr[curr_argc])) +- warn("Warning, current runlevel(s) of script `%s' overwrites defaults.\n", +- d->d_name); ++ warn("Warning, current start runlevel(s) of script `%s' (%s) overwrites defaults (%s).\n", ++ d->d_name, lvl2str(service->lvls), ++ lvl2str(deflvls)); + } + } else + /* +@@ -2500,8 +2509,9 @@ + */ + if (!defaults && (deflvlk != service->lvlk)) { + if (!del && chkfor(d->d_name, argv, argc) && !(argr[curr_argc])) +- warn("Warning, current runlevel(s) of script `%s' overwrites defaults.\n", +- d->d_name); ++ warn("Warning, current stop runlevel(s) of script `%s' (%s) overwrites defaults (%s).\n", ++ d->d_name, lvl2str(service->lvlk), ++ lvl2str(deflvlk)); + } + } else + /* --- insserv-1.11.0.orig/debian/patches/34_debian_fixedscripts.dpatch +++ insserv-1.11.0/debian/patches/34_debian_fixedscripts.dpatch @@ -0,0 +1,35 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 34_debian_fixedscripts.dpatch by Petter Reinholdtsen + +Provide default sequence numbers for a few well known scripts, to make +the generated boot sequence more closely match the original one. + +It is not obvious that this is a good idea. It might make the boot +sequence less optimal (as in less scripts can run in parallel), and +might affect the runtime complexity. The rationale for doing this is +that it might make the boot sequence more familiar for those that knew +the old sequence, and that Petter Reinholdtsen claim to have seen some +Debian documentation stating where in the boot sequence some scripts +are expected to be located. The document referense is yet to be +recovered. + +@DPATCH@ +--- insserv-1.09.0.orig/insserv.c ++++ insserv-1.09.0/insserv.c +@@ -2110,6 +2110,16 @@ + setorder("boot.setup", 20, false); + + /* ++ * Debian scripts with well known sequence numbers. Not sure if ++ * we want to fix all of these. ++ */ ++ setorder("checkroot.sh", 10, false); setlsb("checkroot.sh"); ++ setorder("checkfs.sh", 30, false); setlsb("checkfs.sh"); ++ setorder("networking", 40, false); setlsb("networking.sh"); ++ setorder("mountnfs.sh", 45, false); setlsb("mountnfs.sh"); ++ setorder("single", 90, false); setlsb("single"); ++ ++ /* + * Set virtual dependencies for already enabled none LSB scripts. + */ + nonlsb_script(); --- insserv-1.11.0.orig/debian/patches/10_nosuse.dpatch +++ insserv-1.11.0/debian/patches/10_nosuse.dpatch @@ -0,0 +1,28 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 10_nosuse.dpatch by Petter Reinholdtsen +## Updated for insserv v1.10 by PEtter Reinholdtsen + +Disable the SUSE specific parts and make sure to build with debugging. + +@DPATCH@ +diff -urNad insserv-1.10.0~/Makefile insserv-1.10.0/Makefile +--- insserv-1.10.0~/Makefile 2008-01-07 17:21:15.000000000 +0100 ++++ insserv-1.10.0/Makefile 2008-01-07 17:21:18.000000000 +0100 +@@ -11,7 +11,7 @@ + #DEBUG = -DDEBUG=1 + #LOOPS = -DIGNORE_LOOPS=1 + DEBUG = +-ISSUSE = -DSUSE ++#ISSUSE = -DSUSE + DESTDIR = + VERSION = 1.10.0 + DATE = $(shell date +'%d%b%y' | tr '[:lower:]' '[:upper:]') +@@ -25,7 +25,7 @@ + ifeq ($(ARCH),i386) + COPTS = -O2 -mcpu=i586 -mtune=i686 + else +- COPTS = -O2 ++ COPTS = -O2 -g + endif + endif + CFLAGS = -Wall $(COPTS) $(DEBUG) $(LOOPS) -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \ --- insserv-1.11.0.orig/debian/patches/53_debugoutput.dpatch +++ insserv-1.11.0/debian/patches/53_debugoutput.dpatch @@ -0,0 +1,30 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 53_debugoutput.dpatch by Petter Reinholdtsen + +Provide more debug output to help finding bugs in insserv. + +@DPATCH@ +--- insserv-1.11.0.orig/listing.h ++++ insserv-1.11.0/listing.h +@@ -136,7 +136,7 @@ + #define xsymlink(x,y) ({ if ((dryrun ? 0 : (symlink(x, y) < 0))) \ + warn ("can not symlink(%s, %s%s): %s\n", x, rcd, y, strerror(errno)); \ + else \ +- info("enable service %s -> %s/%s%s\n", x, path, rcd, y); }) ++ info("enable service %s -> %s/%s%s %d\n", x, path, rcd, y, __LINE__); }) + + /* + * Bits of the runlevels +--- insserv-1.11.0.orig/insserv.c ++++ insserv-1.11.0/insserv.c +@@ -2911,6 +2914,10 @@ + if ((serv->lvls & lvl) == 0 && (serv->lvlk & lvl) == 0) + continue; /* We aren't suppose to be on this runlevel */ + ++ if (verbose) ++ printf("S: %s K: %s\n", lvl2str(serv->lvls), ++ lvl2str(serv->lvlk)); ++ + sprintf(olink, "../init.d/%s", script); + sprintf(nlink, "%c%.2d%s", mode, order, script); + --- insserv-1.11.0.orig/debian/patches/11_more_warnings.dpatch +++ insserv-1.11.0/debian/patches/11_more_warnings.dpatch @@ -0,0 +1,17 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 11_more_warnings.dpatch by Petter Reinholdtsen + +Make more issues visible by using -W in addition to -Wall. + +@DPATCH@ +--- insserv-1.11.0.orig/Makefile ++++ insserv-1.11.0/Makefile +@@ -28,7 +28,7 @@ + COPTS = -O2 + endif + endif +- CFLAGS = -Wall $(COPTS) $(DEBUG) $(LOOPS) -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \ ++ CFLAGS = -W -Wall $(COPTS) $(DEBUG) $(LOOPS) -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \ + $(ISSUSE) -DINITDIR=\"$(INITDIR)\" -DINSCONF=\"$(INSCONF)\" -pipe + CLOOP = -falign-loops=0 + CC = gcc --- insserv-1.11.0.orig/debian/patches/42_loopnochangemsg.dpatch +++ insserv-1.11.0/debian/patches/42_loopnochangemsg.dpatch @@ -0,0 +1,20 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 40_loopnochangemsg.dpatch by Petter Reinholdtsen + +Make it more obvious that introducing a loop will not change the +existing boot sequence. Thanks to Frans Pop for the rationale for +this change. + +@DPATCH@ + +--- insserv-1.11.0.orig/insserv.c ++++ insserv-1.11.0/insserv.c +@@ -2647,7 +2647,7 @@ + follow_all(); + + if (is_loop_detected() && !ignore) +- error("exiting now!\n"); ++ error("exiting without changing boot order!\n"); + + /* + * Re-order some well known scripts to get --- insserv-1.11.0.orig/debian/patches/52_shutdown_links.dpatch +++ insserv-1.11.0/debian/patches/52_shutdown_links.dpatch @@ -0,0 +1,29 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 52_dshutdown_links.dpatch by Petter Reinholdtsen + +Make sure to not not insert unwanted stop symlinks for scripts that +are already configured. BTS issue #464017. + +@DPATCH@ +--- insserv-1.11.0.orig/insserv.c ++++ insserv-1.11.0/insserv.c +@@ -2582,11 +2582,14 @@ + * default_stop arn't used in SuSE Linux. + */ + if (script_inf.default_stop && script_inf.default_stop != empty) { +- if (service && !del) +- { +- service->lvlk = str2lvl(script_inf.default_stop); +- runlevels(token, script_inf.default_stop); +- } ++ if (service) { ++ if (service->lvlk) { ++ runlevels(token, lvl2str(service->lvlk)); ++ } else if (!del) { ++ service->lvlk = str2lvl(script_inf.default_stop); ++ runlevels(token, script_inf.default_stop); ++ } ++ } + } + #endif /* USE_STOP_TAGS */ + } --- insserv-1.11.0.orig/debian/patches/32_debug_option.dpatch +++ insserv-1.11.0/debian/patches/32_debug_option.dpatch @@ -0,0 +1,104 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 32_debug_option.dpatch by Petter Reinholdtsen + +Implement new option -D instead of the compile time option DEBUG to +ease debugging. + +@DPATCH@ +--- insserv-1.11.0.orig/insserv.c ++++ insserv-1.11.0/insserv.c +@@ -107,6 +107,9 @@ + /* When to be verbose */ + static boolean verbose = false; + ++/* Enable debug output */ ++static int debug = 0; ++ + /* When to be verbose */ + static boolean dryrun = false; + +@@ -1946,6 +1949,7 @@ + {"config", 1, (int*)0, 'c'}, + {"dryrun", 0, (int*)0, 'n'}, + {"default", 0, (int*)0, 'd'}, ++ {"debug", 0, (int*)0, 'D'}, + {"remove", 0, (int*)0, 'r'}, + {"force", 0, (int*)0, 'f'}, + {"path", 1, (int*)0, 'p'}, +@@ -1993,7 +1997,7 @@ + for (c = 0; c < argc; c++) + argr[c] = (char*)0; + +- while ((c = getopt_long(argc, argv, "c:dfrhvno:p:", long_options, (int *)0)) != -1) { ++ while ((c = getopt_long(argc, argv, "c:dDfrhvno:p:", long_options, (int *)0)) != -1) { + switch (c) { + case 'c': + insconf = optarg; +@@ -2002,6 +2006,9 @@ + case 'd': + defaults = true; + break; ++ case 'D': ++ debug++; ++ break; + case 'r': + del = true; + break; +@@ -2121,11 +2128,10 @@ + } + } + +-#if defined(DEBUG) && (DEBUG > 0) +- for (c = 0; c < argc; c++) +- if (argr[c]) +- printf("Overwrite argument for %s is %s\n", argv[c], argr[c]); +-#endif /* DEBUG */ ++ if (debug > 0) ++ for (c = 0; c < argc; c++) ++ if (argr[c]) ++ printf("Overwrite argument for %s is %s\n", argv[c], argr[c]); + + /* + * Scan and set our configuration for virtual services. +@@ -2675,10 +2693,10 @@ + if (maxorder > 99) + error("Maximum of 99 in ordering reached\n"); + +-#if defined(DEBUG) && (DEBUG > 0) +- printf("Maxorder %d\n", maxorder); +- show_all(); +-#else ++ if (debug > 0) { ++ printf("Maxorder %d\n", maxorder); ++ show_all(); ++ } else { + # ifdef SUSE /* SuSE's SystemV link scheme */ + pushd(path); + for (runlevel = 0; runlevel < RUNLEVLES; runlevel++) { +@@ -2957,7 +2975,7 @@ + closedir(rcdir); + } + # endif /* !SUSE, standard SystemV link scheme */ +-#endif /* !DEBUG */ ++ } + + /* + * Do the makedep +--- insserv-1.11.0.orig/listing.c ++++ insserv-1.11.0/listing.c +@@ -454,7 +454,6 @@ + /* + * For debuging: show all services + */ +-#if defined(DEBUG) && (DEBUG > 0) + void show_all() + { + list_t *tmp; +@@ -468,7 +467,6 @@ + dir->start, dir->name, dir->lvl, lvl2str(dir->lvl), *dir->name == '$' ? "system" : "guessed"); + } + } +-#endif + + /* + * Used within loops to get names not included in this runlevel. --- insserv-1.11.0.orig/debian/patches/50_sign_warning.dpatch +++ insserv-1.11.0/debian/patches/50_sign_warning.dpatch @@ -0,0 +1,52 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 50_sign_warning.dpatch by Petter Reinholdtsen + +Get rid of signed/unsigned compare warnings visible with gcc option +-W. + +@DPATCH@ +--- insserv-1.11.0.orig/insserv.c ++++ insserv-1.11.0/insserv.c +@@ -1350,7 +1350,7 @@ + int n; + + n = snprintf(&fullpath[0], sizeof(fullpath), "%s%s/%s", (root && !set_override) ? root : "", dir, name); +- if (n >= sizeof(fullpath) || n < 0) ++ if (n >= (int)sizeof(fullpath) || n < 0) + error("snprintf(): %s\n", strerror(errno)); + + if (stat(fullpath, &statbuf) == 0 && S_ISREG(statbuf.st_mode)) +@@ -1456,7 +1456,7 @@ + #endif /* not SUSE */ + }; + +-#define RUNLEVLES (sizeof(runlevel_locations)/sizeof(runlevel_locations[0])) ++#define RUNLEVLES (int)(sizeof(runlevel_locations)/sizeof(runlevel_locations[0])) + + int map_has_runlevels(void) + { +@@ -1847,13 +1847,13 @@ + regcompiler(&creg.isactive, CONFLINE2, REG_EXTENDED|REG_ICASE); + + n = snprintf(&path[0], sizeof(path), "%s%s", (root && !set_insconf) ? root : "", file); +- if (n >= sizeof(path) || n < 0) ++ if (n >= (int)sizeof(path) || n < 0) + error("snprintf(): %s\n", strerror(errno)); + + scan_conf_file(path); + + n = snprintf(&path[0], sizeof(path), "%s%s.d", (root && !set_insconf) ? root : "", file); +- if (n >= sizeof(path) || n < 0) ++ if (n >= (int)sizeof(path) || n < 0) + error("snprintf(): %s\n", strerror(errno)); + + n = scandir(path, &namelist, cfgfile_filter, alphasort); +@@ -1863,7 +1863,7 @@ + int r; + + r = snprintf(&buf[0], sizeof(buf), "%s/%s", path, namelist[n]->d_name); +- if (r >= sizeof(buf) || r < 0) ++ if (r >= (int)sizeof(buf) || r < 0) + error("snprintf(): %s\n", strerror(errno)); + + scan_conf_file(buf); --- insserv-1.11.0.orig/debian/patches/41_cleansystem.dpatch +++ insserv-1.11.0/debian/patches/41_cleansystem.dpatch @@ -0,0 +1,16 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run + +Remove the generated .system file when cleaning. + +@DPATCH@ +--- insserv-1.11.0.orig/Makefile ++++ insserv-1.11.0/Makefile +@@ -81,7 +81,7 @@ + .force: + + clean: +- $(RM) *.o *~ $(TODO) .depend.* ++ $(RM) *.o *~ $(TODO) .depend.* .system + + -include .depend.listing .depend.insserv + --- insserv-1.11.0.orig/debian/patches/40_segfault_virtprov.dpatch +++ insserv-1.11.0/debian/patches/40_segfault_virtprov.dpatch @@ -0,0 +1,89 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 40_segfault_virtprov.dpatch by Petter Reinholdtsen + +Avoid segfault when an enabled service provide a virtual system +facility. + +@DPATCH@ +--- insserv/insserv.c ++++ insserv/insserv.c 2008-02-01 11:43:45.634618329 +0100 +@@ -166,7 +166,7 @@ typedef struct pwd_struct { + + static list_t pwd = { &(pwd), &(pwd) }, * topd = &(pwd); + +-static void pushd(const char *const __restrict path); ++static void pushd(const char *const __restrict path) __attribute__((nonnull(1))); + static void pushd(const char *const path) + { + pwd_t * dir; +@@ -305,13 +305,13 @@ out: + return getserv(ptr); + } + +-static serv_t * findserv(const char *const __restrict serv) __attribute__((nonnull(1))); ++static serv_t * findserv(const char *const __restrict serv); + static serv_t * findserv(const char *const serv) + { + list_t * ptr; + serv_t * ret = (serv_t*)0; + +- if (!serv) ++ if (serv == (const char*)0) + goto out; + + list_for_each(ptr, serv_start) { +@@ -334,6 +334,9 @@ static void rememberreq(serv_t *serv, ui + list_t * ptr; + uint old = bit; + ++ if (!tmp) ++ error("%s", strerror(errno)); ++ + while ((token = strsep(&tmp, delimeter))) { + boolean found = false; + req_t * this; +@@ -399,6 +402,9 @@ static void reversereq(const serv_t * se + char * rev = strdupa(list); + uint old = bit; + ++ if (!rev) ++ error("%s", strerror(errno)); ++ + while ((dep = strsep(&rev, delimeter)) && *dep) { + serv_t * tmp; + list_t * ptr; +@@ -437,7 +443,7 @@ static void reversereq(const serv_t * se + /* + * Check required services for name + */ +-static boolean chkrequired(const char *const __restrict name) __attribute__((nonnull(1))); ++static boolean chkrequired(const char *const __restrict name); + static boolean chkrequired(const char *const name) + { + serv_t * serv = findserv(name); +--- insserv/listing.h ++++ insserv/listing.h 2008-02-01 11:40:45.347748072 +0100 +@@ -97,11 +97,11 @@ extern int makeprov(const char *__restri + extern void setorder(const char *__restrict script, const int order, boolean recursive) __attribute__((nonnull(1))); + extern int getorder(const char *__restrict script) __attribute__((nonnull(1))); + extern boolean notincluded(const char *__restrict script, const int runlevel) __attribute__((nonnull(1))); +-extern boolean foreach(const char **__restrict script, int *__restrict order, const int runlevel) __attribute__((nonnull(1,2))); +-extern void virtprov(const char *__restrict virt, const char *__restrict real) __attribute__((nonnull(1,2))); ++extern boolean foreach(const char **__restrict script, int *__restrict order, const int runlevel) __attribute__((nonnull(2))); ++extern void virtprov(const char *__restrict virt, const char *__restrict real) __attribute__((nonnull(1))); + extern const char * getscript(const char *__restrict prov) __attribute__((nonnull(1))); + extern const char * getprovides(const char *__restrict script) __attribute__((nonnull(1))); +-extern boolean listscripts(const char **__restrict script, const int lvl) __attribute__((nonnull(1))); ++extern boolean listscripts(const char **__restrict script, const int lvl); + extern int maxorder; + extern boolean is_loop_detected(void); + +@@ -116,7 +116,7 @@ extern int map_has_runlevels(void); + extern int map_runlevel_to_lvl (const int runlevel); + extern int map_key_to_lvl(const char key); + +-static inline char * xstrdup(const char *__restrict s) __attribute__((always_inline,nonnull(1))); ++static inline char * xstrdup(const char *__restrict s) __attribute__((always_inline)); + static inline char * xstrdup(const char * s) + { + char * r; --- insserv-1.11.0.orig/debian/patches/31_debian_conf.dpatch +++ insserv-1.11.0/debian/patches/31_debian_conf.dpatch @@ -0,0 +1,59 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 31_debian_conf_doc.dpatch +## by Petter Reinholdtsen +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Adjust the insserv configuration to match the debian init.d +## DP: script names. + +@DPATCH@ +diff -urNad insserv~/insserv.conf insserv/insserv.conf +--- insserv~/insserv.conf 2008-01-04 11:19:42.000000000 +0100 ++++ insserv/insserv.conf 2008-01-04 11:21:59.000000000 +0100 +@@ -1,29 +1,29 @@ + # + # All local filesystems are mounted (done during boot phase) + # +-$local_fs boot.localfs ++$local_fs +mountall +mountoverflowtmp +umountfs + + # + # Low level networking (ethernet card) + # +-$network network +pcmcia +hotplug ++$network +networking +ifupdown + + # + # Named is operational + # +-$named +named +dnsmasq +lwresd $network ++$named +named +dnsmasq +lwresd +bind9 $network + + # + # All remote filesystems are mounted (note in some cases /usr may + # be remote. Most applications that care will probably require + # both $local_fs and $remote_fs) + # +-$remote_fs $local_fs +nfs ++$remote_fs $local_fs +mountnfs +mountnfs-bootclean +umountnfs +sendsigs + + # + # System logger is operational + # +-$syslog syslog ++$syslog +syslog +sysklogd +rsyslog +syslog-ng + + # + # SunRPC portmapper available +@@ -33,9 +33,9 @@ + # + # The system time has been set correctly + # +-$time boot.clock +xntpd ++$time hwclock + + # + # Services which need to be interactive + # +- boot.crypto boot.localfs boot.rootfsck apache apache2 kdump ++ glibc hostname mountkernfs udev mountdevsubfs checkroot checkfs console-screen keymap --- insserv-1.11.0.orig/debian/run-testsuite +++ insserv-1.11.0/debian/run-testsuite @@ -0,0 +1,951 @@ +#!/bin/bash + +basedir=$(dirname $0) +. $basedir/testsuite-common + +if head -1 debian/changelog | grep -q UNRELEASED ; then + severity=check +else + severity=test +fi + +update_conf() { +set +C +cat <<'EOF' > $insconf +$local_fs +mountall +umountfs +$network +networking +ifupdown +$named +named +dnsmasq +lwresd +bind9 $network +$remote_fs $local_fs +mountnfs +mountnfs-bootclean +umountnfs +sendsigs +$syslog +syslog +sysklogd +$portmap portmap +$time hwclock + udev mountdevsubfs checkroot checkfs console-screen +EOF +set -C +} +test_normal_sequence() { +echo +echo "info: test normal boot sequence scripts, and their order" +echo + +insertscript mountkernfs.sh < $overridedir/mover +### BEGIN INIT INFO +# Provides: mover +# Required-Start: +# Required-Stop: +# X-Start-Before: base +# Default-Start: S +# Default-Stop: +### END INIT INFO +EOF + +insserv_reg mover + +list_rclinks + +# Make sure the override file moved mover before base +check_order S mover base +} + +test_override_loop() { +echo +echo "info: testing to insert scripts with a loop, and the effect of an override file" +echo +rm -rf $initddir +mkdir -p $initddir + +# Two scripts with a loop between them +if insertscript loop1 <<'EOF' ; then +### BEGIN INIT INFO +# Provides: loop1 +# Required-Start: loop2 +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO +EOF + error "inserting script with missing dependencies did not fail" +fi + +insertscript loop2 <<'EOF' || true +### BEGIN INIT INFO +# Provides: loop2 +# Required-Start: loop1 +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO +EOF + +# Test if override file can be used to break the loop +mkdir -p $overridedir +cat <<'EOF' > $overridedir/loop1 +### BEGIN INIT INFO +# Provides: loop1 +# Required-Start: +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO +EOF + +check_script_not_present S loop1 +check_script_not_present S loop2 + +insserv_reg loop1 || true +insserv_reg loop2 || true + +check_order S loop1 loop2 +} + + +test_long_loop() { +echo +echo "info: testing to insert scripts with a longer loop, making sure it fail" +echo +rm -rf $initddir +mkdir -p $initddir + +# Three scripts with a loop between them, make sure introducing the +# loop fail, as it will make insserv generate a unstable and broken +# boot and shutdown sequence. +insertscript loop1 <<'EOF' +### BEGIN INIT INFO +# Provides: loop1 +# Required-Start: +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO +EOF + +insertscript loop2 <<'EOF' || true +### BEGIN INIT INFO +# Provides: loop2 +# Required-Start: loop1 +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO +EOF + +if insertscript loop3 <<'EOF' ; then +### BEGIN INIT INFO +# Provides: loop3 +# Required-Start: loop2 +# Required-Stop: +# X-Start-Before: loop1 +# Default-Start: S +# Default-Stop: +### END INIT INFO +EOF + error "inserting script causing a loop did not fail" +fi +} + +test_combined_loop() { +# Test real loop in the combined start and stop sequence. There is no +# loop in the start sequence, and no loop in the stop sequence, but in +# the combined graph insserv is creating internally, there is a loop. +# This make sense, as scripts need to be installed in dependency +# order, and there is no way to install these scripts that make sure +# both start and stop dependencies are fulfilled. +echo +echo "info: test handling of loops in the combination of start and stop sequences" +echo + +rm -rf $initddir +mkdir -p $initddir + +insertscript startfirst <<'EOF' || true +### BEGIN INIT INFO +# Provides: startfirst +# Required-Start: +# Required-Stop: startsecond +# Default-Start: S +# Default-Stop: 6 +### END INIT INFO +EOF + +insertscript startsecond <<'EOF' || true +### BEGIN INIT INFO +# Provides: startsecond +# Required-Start: startfirst +# Required-Stop: +# Default-Start: S +# Default-Stop: 6 +### END INIT INFO +EOF + +list_rclinks + +test_order S startfirst startsecond +test_order 6 startsecond startfirst +} + +test_fake_loop() { +# Test another fake loop. This one should work, as it is possible to +# install the two scripts in sequence because one of the dependencies +# are optional. It does not with insserv today. +echo +echo "info: test handling of 'fake' loops in the combination of start and stop sequences" +echo + +rm -rf $initddir +mkdir -p $initddir + +insertscript startfirst_stopfirst <<'EOF' || true +### BEGIN INIT INFO +# Provides: startfirst_stopfirst +# Required-Start: +# Required-Stop: +# Should-Stop: startsecond_stoplast +# Default-Start: S +# Default-Stop: 6 +### END INIT INFO +EOF + +insertscript startsecond_stoplast <<'EOF' || true +### BEGIN INIT INFO +# Provides: startsecond_stoplast +# Required-Start: startfirst_stopfirst +# Required-Stop: +# Default-Start: S +# Default-Stop: 6 +### END INIT INFO +EOF + +list_rclinks +} + +test_fake_loop_reverse() { +# Test another fake loop using reverse dependencies to document that +# it can happen based on information provided in one package only. +# This should work, as it is possible to install the two scripts in +# sequence because one of the dependencies are optional. It does not +# with insserv today. Note thought that the generated order is +# different from the one above. + +echo +echo "info: test handling of 'fake' loops using reverse depends" +echo "warning: This test should be fatal, but is non-fatal until a fix is found." +echo + +rm -rf $initddir +mkdir -p $initddir + +insertscript startfirst_stopfirst <<'EOF' || true +### BEGIN INIT INFO +# Provides: startfirst_stopfirst +# Required-Start: +# Required-Stop: +# Default-Start: S +# Default-Stop: 6 +### END INIT INFO +EOF + +insertscript startsecond_stoplast <<'EOF' || true +### BEGIN INIT INFO +# Provides: startsecond_stoplast +# Required-Start: startfirst_stopfirst +# Required-Stop: +# X-Stop-After: startfirst_stopfirst +# Default-Start: S +# Default-Stop: 6 +### END INIT INFO +EOF + +list_rclinks + +# These are checking real bugs, but until bug #458582 is fixed, they +# will fail. Making the tests non-fatal because of this. +${severity}_order S startfirst_stopfirst startsecond_stoplast +${severity}_order 6 startfirst_stopfirst startsecond_stoplast +} + +test_badscript() { +echo +echo "info: test if bad script in init.d/ with no symlinks in rc*.d/ make problems" +echo + +rm -rf $initddir +mkdir -p $initddir + +addscript sitelocal <<'EOF' || true +### BEGIN INIT INFO +# Provides: duplicate +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Default-Start: S +# Default-Stop: 6 +### END INIT INFO +EOF + +insertscript distroglobal <<'EOF' || true +### BEGIN INIT INFO +# Provides: dublicate +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Default-Start: S +# Default-Stop: 6 +### END INIT INFO +EOF + +list_rclinks + +check_script_present S distroglobal +} + +test_onlystop() { +echo +echo "info: check that it work to insert scripts with only stop runlevels" +echo +# This test check that the common way to update the runlevels used by +# a given script is working. It simulates these calls to update-rc.d: +# update-rc.d oldscript default +# update-rc.d -f oldscript remove +# update-rc.d oldscript start 20 2 3 4 5 . stop 20 1 . + +rm -rf $initddir +mkdir -p $initddir + +insertscript onlystop <<'EOF' || true +### BEGIN INIT INFO +# Provides: onlystop +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Default-Start: +# Default-Stop: 0 6 +### END INIT INFO +EOF + +list_rclinks + +check_script_present 0 onlystop +check_script_present 6 onlystop + +check_script_not_present 1 onlystop +check_script_not_present 2 onlystop +check_script_not_present 3 onlystop +check_script_not_present 4 onlystop +check_script_not_present 5 onlystop +check_script_not_present S onlystop +} + +test_removal() { +echo +echo "info: test if script removal removes all symlinks." +echo +# This test check that the common way to update the runlevels used by +# a given script is working. It simulates these calls to update-rc.d: +# update-rc.d oldscript default +# update-rc.d -f oldscript remove +# update-rc.d oldscript start 20 2 3 4 5 . stop 20 1 . + +rm -rf $initddir +mkdir -p $initddir + +insertscript oldscript <<'EOF' || true +### BEGIN INIT INFO +# Provides: oldscript +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO +EOF + +# Check that the problematic symlinks are presend, as well as one that +# is OK. +check_script_present 0 oldscript +check_script_present 1 oldscript +check_script_present 3 oldscript +check_script_present 6 oldscript + +set +C +addscript oldscript <<'EOF' || true +### BEGIN INIT INFO +# Provides: oldscript +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Default-Start: 2 4 5 +# Default-Stop: 1 +### END INIT INFO +EOF +set -C + +# Remove old symlinks +insserv_del oldscript +# Insert new ones, this time without runlevel 0 and 6 +insserv_reg oldscript + +list_rclinks + +check_script_not_present 0 oldscript +check_script_present 1 oldscript +check_script_present 2 oldscript +check_script_not_present 3 oldscript +check_script_not_present 6 oldscript +} + +########################################################################## +test_segfault_virtfac() { +echo +echo "info: detect segfault caused by script providing virtual facility." +echo + +rm -rf $initddir +mkdir -p $initddir + +insertscript badheaderscript <<'EOF' || true +### BEGIN INIT INFO +# Provides: $syslog +# Required-Start: +# Required-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO +EOF + +# Problem is only triggered if there are start or stop symlinks for +# the script present. +mkdir -p $initddir/../rc2.d +ln -s ../init.d/badheaderscript $initddir/../rc2.d/S02badheaderscript + +# This one segfaults +insertscript okscript <<'EOF' || true +### BEGIN INIT INFO +# Provides: okscript +# Required-Start: $syslog +# Required-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO +EOF + +list_rclinks + +check_script_present 2 okscript +} + +########################################################################## +test_incorrect_stopscripts() { +echo +echo "info: Check if insserv add stop symlinks for scripts that" +echo "info: currently do not have them." +echo + +rm -rf $initddir/../rc*.d/* +rm -rf $initddir/* +mkdir -p $initddir + +list_rclinks +insertscript script <<'EOF' || true +### BEGIN INIT INFO +# Provides: script +# Required-Start: +# Required-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO +EOF +list_rclinks + +check_script_present 2 script +check_script_present 5 script +check_script_not_present S script +check_script_present 1 script + +rm $initddir/../rc0.d/K??script +rm $initddir/../rc1.d/K??script + +# Update symlinks, see if it add stop symlinks +insserv_reg . + +list_rclinks + +check_script_present 2 script +check_script_present 5 script +check_script_not_present S script +${severity}_script_not_present 0 script +${severity}_script_not_present 1 script +check_script_not_present 1 nostopscript +} +########################################################################## +test_newbug_keepoldorder() { +echo +echo "info: Verify that introducing a loop in a working system do" +echo "info: not change the order of the scripts currently on disk." +echo + +rm -rf $initddir +mkdir -p $initddir + +insertscript mountall <<'EOF' || true +### BEGIN INIT INFO +# Provides: mountall +# Required-Start: +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO +EOF + +insertscript needlocal <<'EOF' || true +### BEGIN INIT INFO +# Provides: needlocal +# Required-Start: $local_fs +# Required-Stop: $local_fs +# Default-Start: S +# Default-Stop: 6 +### END INIT INFO +EOF + +insertscript needremote <<'EOF' || true +### BEGIN INIT INFO +# Provides: needremote +# Required-Start: $remote_fs needlocal +# Required-Stop: $remote_fs needlocal +# Default-Start: S +# Default-Stop: 6 +### END INIT INFO +EOF + +insertscript needboth <<'EOF' || true +### BEGIN INIT INFO +# Provides: needboth +# Required-Start: needlocal needremote +# Required-Stop: needlocal needremote +# Default-Start: S +# Default-Stop: 6 +### END INIT INFO +EOF + +list_rclinks + +check_order S mountall needlocal +check_order S mountall needremote +check_order S mountall needboth +check_order S needlocal needremote +check_order S needlocal needboth +check_order S needremote needboth + +# Then introduce buggy dependencies in an existing script +set +C +addscript needboth <<'EOF' || true +### BEGIN INIT INFO +# Provides: needboth +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# X-Start-Before: $local_fs +# Default-Start: S +# Default-Stop: 6 +### END INIT INFO +EOF +set -C + +echo "info: calling insserv after introducing a bug in script needboth" +insserv_reg needboth || true + +check_order S mountall needlocal +check_order S mountall needremote +check_order S mountall needboth +check_order S needlocal needremote +check_order S needlocal needboth +check_order S needremote needboth +} +########################################################################## +test_start_before() { +echo +echo "info: Verify that X-start-before work as it should." +echo + +rm -rf $initddir +mkdir -p $initddir + +insertscript startlast <<'EOF' || true +### BEGIN INIT INFO +# Provides: startlast +# Required-Start: +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO +EOF + +insertscript startfirst <<'EOF' || true +### BEGIN INIT INFO +# Provides: startfirst +# Required-Start: +# Required-Stop: +# X-Start-Before: startlast +# Default-Start: S +# Default-Stop: +### END INIT INFO +EOF + +list_rclinks + +check_order S startfirst startlast +} +########################################################################## +test_stop_after() { +echo +echo "info: Verify that X-stop-after work as it should." +echo + +rm -rf $initddir +mkdir -p $initddir + +insertscript stopfirst <<'EOF' || true +### BEGIN INIT INFO +# Provides: stopfirst +# Required-Start: +# Required-Stop: +# Default-Start: +# Default-Stop: 0 6 +### END INIT INFO +EOF + +insertscript stopafter <<'EOF' || true +### BEGIN INIT INFO +# Provides: stopafter +# Required-Start: +# Required-Stop: +# X-Stop-After: stopfirst +# Default-Start: +# Default-Stop: 0 6 +### END INIT INFO +EOF + +list_rclinks + +check_order 0 stopfirst stopafter +} +########################################################################## + +update_conf +test_normal_sequence +test_override_files +test_override_loop +test_long_loop +test_combined_loop +test_fake_loop +test_fake_loop_reverse +test_badscript +test_onlystop +test_removal +test_segfault_virtfac +test_incorrect_stopscripts +test_newbug_keepoldorder +test_start_before +test_stop_after