--- sysv-rc-conf-0.99.orig/sysv-rc-conf.8 +++ sysv-rc-conf-0.99/sysv-rc-conf.8 @@ -0,0 +1,366 @@ +.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.32 +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sh \" Subsection heading +.br +.if t .Sp +.ne 5 +.PP +\fB\\$1\fR +.PP +.. +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +'br\} +.\" +.\" If the F register is turned on, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. nr % 0 +. rr F +.\} +.\" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.hy 0 +.if n .na +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "SYSV-RC-CONF 8" +.TH SYSV-RC-CONF 8 "2005-05-11" "perl v5.8.8" " " +.SH "NAME" +\&\fBsysv\-rc\-conf\fR \- Run\-level configuration for SysV like init script links +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +\&\fBsysv-rc-conf\fR [ \fIoptions\fR ] +.PP +\&\fBsysv-rc-conf\fR \-\-list [ \fIservice\fR ] +.PP +\&\fBsysv-rc-conf\fR [ \-\-level \fIlevels\fR ] \fIservice\fR <\fIon|off\fR> +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fBsysv-rc-conf\fR gives an easy to use interface for managing +\&\f(CW\*(C`/etc/rc{runlevel}.d/\*(C'\fR symlinks. The interface comes in two different +flavors, one that simply allows turning services on or off and another that +allows for more fine tuned management of the symlinks. It's a replacement for +programs like \fB\f(BIntsysv\fB\|(8)\fR or \fB\f(BIrcconf\fB\|(8)\fR. +.PP +\&\fBsysv-rc-conf\fR can also be used at the command line when the desired changes +to the symlinks are already known. The syntax is borrowed from \fB\f(BIchkconfig\fB\|(8)\fR, +although it does not follow it exactly. +.SH "GENERAL OPTIONS" +.IX Header "GENERAL OPTIONS" +.IP "\fB\-c\fR \s-1DIRECTORY\s0, \fB\-\-cache=\fR\s-1DIRECTORY\s0" 4 +.IX Item "-c DIRECTORY, --cache=DIRECTORY" +The directory where the priority numbers, old runlevel configuration, etc. +should be stored. This defaults to \f(CW\*(C`/var/lib/sysv\-rc\-conf\*(C'\fR. See the \s-1FILES\s0 +section below and the \-\-Purge option. +.IP "\fB\-r\fR \s-1DIRECTORY\s0, \fB\-\-root=\fR\s-1DIRECTORY\s0" 4 +.IX Item "-r DIRECTORY, --root=DIRECTORY" +The root directory to use. This defaults to \f(CW\*(C`/\*(C'\fR. This comes in handy if the +root file system is mounted somewhere else, such as when using a rescue disk. +.IP "\fB\-P\fR, \fB\-\-Purge\fR" 4 +.IX Item "-P, --Purge" +Purge the information stored in the cache file. See the \s-1FILES\s0 section below +and the \-\-cache option. +.IP "\fB\-v\fR \s-1FILE\s0, \fB\-\-verbose=\fR\s-1FILE\s0" 4 +.IX Item "-v FILE, --verbose=FILE" +Print verbose information to \f(CW\*(C`FILE\*(C'\fR +.IP "\fB\-V\fR, \fB\-\-Version\fR" 4 +.IX Item "-V, --Version" +Print version information to \s-1STDOUT\s0 and exit +.SH "GUI RELATED OPTIONS" +.IX Header "GUI RELATED OPTIONS" +.IP "\fB\-o\fR [ see description ], \fB\-\-order=\fR[ see description ]" 4 +.IX Item "-o [ see description ], --order=[ see description ]" +Allows various sorting orders and ways to display the rows. The argument can be +made up of any of the following: +.RS 4 +.IP "\fBa\fR" 4 +.IX Item "a" +Sort the rows \fBa\fRlphabetically. This is the default if the \fB\-o\fR option isn't +specified. +.IP "\fBn\fR" 4 +.IX Item "n" +Show the priority numbers along with the name of the service. +.IP "\fBp\fR" 4 +.IX Item "p" +Sorts by the \fBp\fRriority numbers. +.IP "\fBlevel\fR" 4 +.IX Item "level" +\&\fIlevel\fR can be any runlevel, 0\-9 or S. This controls which runlevel the +priority numbers are sorted at. It only makes sense to use this in conjuntion +with \fBp\fR. If omitted the priority numbers are sorted by the current runlevel +the system is in. +.RE +.RS 4 +.RE +.IP "\fB\-p\fR, \fB\-\-priority\fR" 4 +.IX Item "-p, --priority" +Alternate layout. Instead of just showing a checkbox, the priority of the +service and the S or K are allowed to be edited. This is for more fine tuned +control then the default layout allows. +.IP "\fB\-s\fR \fIlevels\fR, \fB\-\-show=\fR\fIlevels\fR" 4 +.IX Item "-s levels, --show=levels" +Which runlevels to show. This defaults to up to 8 of the runlevels available +on the system. Usually this means it will show 1, 2, 3, 4, 5, 0, 6, and S. +The syntax calls for the runlevels to be allruntogether. For instance, to +show runlevels 3, 4, and 5 the syntax would be \f(CW\*(C`\-\-show=345\*(C'\fR. Also see +\&\fB\-\-order\fR. +.SH "CLI RELATED OPTIONS" +.IX Header "CLI RELATED OPTIONS" +.IP "\fB\-\-level\fR \fIlevels\fR" 4 +.IX Item "--level levels" +The runlevels this operation will affect. \fIlevels\fR can be any number from +0\-9 or S. For example, \fB\-\-level 135\fR will affect runlevels 1, 3, and 5. +If \fB\-\-level\fR is not set, the default is to affect runlevels 2, 3, 4, and 5. +This option is only used for the command line interface, see the section +below labled \s-1USING\s0 \s-1THE\s0 \s-1CLI\s0 for more information. +.IP "\fB\-\-list\fR [\fIname\fR]" 4 +.IX Item "--list [name]" +This option will list all of the services and if they are stopped or started +when entering each runlevel. If \fIname\fR is specified, only the information +for that service is displayed. +.SH "USING THE GUI" +.IX Header "USING THE GUI" +.Sh "Note" +.IX Subsection "Note" +When using either \s-1GUI\s0 layout described below, all configuration +changes to the symlinks will happen immediately, not when the program exits. +.Sh "Using the Default layout" +.IX Subsection "Using the Default layout" +The default (simple) layout shows in a grid fashion all of the services that +are in \f(CW\*(C`init.d\*(C'\fR and which runlevels they are turned on at. For example, where +the \f(CW\*(C`ssh\*(C'\fR row and \f(CW3\fR column intersect, if there is an 'X' in the box there +that means the ssh service will be turned on when entering runlevel 3. If there +is no checkbox it can mean that either there are no links to the service in +that specific runlevel, or that the service is turned off when entering that +runlevel. If more configuration detail is needed, see the next paragraph and +the \fB\-\-priority\fR option. +.Sh "Using the Priority layout" +.IX Subsection "Using the Priority layout" +The priority (advanced) layout also uses a grid fashion, but instead of +checkboxes there are text boxes that can have a few different values. If the +text box is blank, that means there isn't a symlink in that runlevel for that +service. This means that when changing into that runlevel that the service +will not be started or stopped, which is significant. If the text box starts +with the letter K that means that the service will be stopped when entering +that runlevel. If the text box starts with the letter S that means the service +will be started when entering that runlevel. The two digits following is the +order in which the services are started. That means that \f(CW\*(C`S08iptables\*(C'\fR would +start before \f(CW\*(C`S20ssh\*(C'\fR. For more information see your system documentation. +.Sh "Controls" +.IX Subsection "Controls" +To move around use the arrow keys, or if the terminal support it, the mouse. +Typically there is more then one page of services (unless the terminal screen +is large), to move between the pages use CTRL-n or CTRL\-p, or simply arrow key +down or up at the bottom or top of the screen, respectively. The bottom of the +screen also shows these movement commands for quick reference. To restore the +symlinks back to their original state before the \fBsysv-rc-conf\fR was run, +press the \fBr\fR key. The \fBh\fR key will display a quick reference help screen. +.Sh "Default layout" +.IX Subsection "Default layout" +When using the default layout use the space bar to toggle the service on / off. +An 'X' in the checkbox indicates that the service is on. +.Sh "Priority layout" +.IX Subsection "Priority layout" +The priority layout uses the default movement keys. In order to edit the fields +you can use CTRL-d to delete the character in front of the cursor or backspace +to backspace. Use CTRL-b or CTRL-f to move the cursor backwards or forwards +within the field. Note that only S, K, or any digit is allowed to be entered +into the field. +.Sh "Starting / Stopping Services" +.IX Subsection "Starting / Stopping Services" +To start a service now, press the \f(CW\*(C`+\*(C'\fR or \f(CW\*(C`=\*(C'\fR key. +To stop a service now, press the \f(CW\*(C`\-\*(C'\fR key. +.PP +This will call \f(CW\*(C`/etc/init.d/service start\*(C'\fR or \f(CW\*(C`/etc/init.d/service stop\*(C'\fR. +.SH "USING THE CLI" +.IX Header "USING THE CLI" +If the desired modifications to the symlinks are known and only one quick +change is needed, then you can use a \s-1CLI\s0 interface to \fBsysv-rc-conf\fR. +Examples: +.PP +.Vb 2 +\& # sysv\-rc\-conf \-\-level 35 ssh off +\& # sysv\-rc\-conf atd on +.Ve +.PP +The first example will turn ssh off on levels 3 and 5. The second example +turns atd on for runlevels 2, 3, 4, and 5. +.SH "FILES" +.IX Header "FILES" +\&\fBNote:\fR Feel free to skip this section +.PP +\&\fBsysv-rc-conf\fR stores a cache of all the symlink information from +\&\f(CW\*(C`/etc/rc{runlevel}.d/\*(C'\fR in \f(CW\*(C`/var/lib/sysv\-rc\-conf/services\*(C'\fR (See the \-\-cache +option to change the location of this file). It uses this cache to make an +intelligent decision on what priority number to give the K or S link when they +are changed in the simple layout. This cache is updated/created everytime the +program is launched. The program needs to run with root privileges in +order to update the cache. The format of the file is as follows: +.PP +.Vb 1 +\& RUNLEVEL S|K PRIORITY SERVICE +.Ve +.PP +Here's a few examples: +.PP +.Vb 4 +\& 2 K 74 ntpd +\& 2 K 50 xinetd +\& 3 S 08 iptables +\& 3 S 80 sendmail +.Ve +.PP +\&\fBsysv-rc-conf\fR will first see if it can get an exact match from the cache. +For example, if the symlink for \f(CW\*(C`cron\*(C'\fR in runlevel 3 is S89cron and you +uncheck it, \fBsysv-rc-conf\fR will first see if there is an entry in the cache +that looks like \f(CW\*(C`3 K nn cron\*(C'\fR, if so it will use nn for the priority number. +.PP +If there wasn't a match, \fBsysv-rc-conf\fR will then see if there is another S or +K (whichever you're switching to, so in this example, K) entry on a different +runlevel \- so an entry like \f(CW\*(C`i K nn cron\*(C'\fR, where i is any runlevel. If found, +the link will use nn. +.PP +If there still wasn't a match, \fBsysv-rc-conf\fR will look for the opposite of S +or K in any run level, and use 100 \- that priority. So in our example, +\&\f(CW\*(C`i S nn cron\*(C'\fR. If nn is 20, then it will use 80 (100 \- 20), since that is +typically the way that the priority numbers are used. +.PP +If there still isn't a match, the default priority of 20 for S links is used, +and the default priority of 80 for K links is used. +.SH "COMPATIBILITY" +.IX Header "COMPATIBILITY" +\&\fBsysv-rc-conf\fR should work on any Unix like system that manages services +when changing runlevels by using symlinks in \f(CW\*(C`/etc/rc{runlevel}.d/\*(C'\fR. Refer +to your system documentation to see if that's the case (usually there's a +\&\f(CW\*(C`/etc/init.d/README\*(C'\fR). +.SH "CAVEATS" +.IX Header "CAVEATS" +\&\fBsysv-rc-conf\fR only manages the symlinks in the \f(CW\*(C`rc{runlevel}.d\*(C'\fR +directories. It's possible that packages may have other ways of being +disabled or enabled. +.PP +Because Curses takes over the screen sometimes error messages won't be +seen on the terminal. If you run across any weird problems try redirecting +\&\s-1STDERR\s0 to a file when you execute the program. +.PP +For example: + # sysv-rc-conf 2> err.out +.SH "REPORTING BUGS" +.IX Header "REPORTING BUGS" +Report bugs to Joe Oppegaard +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fB\f(BIinit\fB\|(8)\fR, \fB\f(BIrunlevel\fB\|(8)\fR, \fB\f(BIchkconfig\fB\|(8)\fR, \f(CW\*(C`/etc/init.d/README\*(C'\fR +.PP +.Vb 2 +\& www: http://sysv\-rc\-conf.sourceforge.net +\& ftp: ftp://ftp.pidone.org/sysv\-rc\-conf +.Ve +.SH "AUTHOR" +.IX Header "AUTHOR" +Joe Oppegaard --- sysv-rc-conf-0.99.orig/debian/changelog +++ sysv-rc-conf-0.99/debian/changelog @@ -0,0 +1,138 @@ +sysv-rc-conf (0.99-7) unstable; urgency=low + + * QA upload. + * Maintainer field set to QA Group. + * Standards-Version bumped to 3.9.3. + * ${misc:Depends} added to the dependencies. + * Debhelper compatibility version set to 9. + + -- Emanuele Rocca Wed, 09 May 2012 09:45:20 +0000 + +sysv-rc-conf (0.99-6) unstable; urgency=low + + * Added patch that fix greedy names handling (thanks to Michael Mirold) + Closes: #408302 + + -- Francesco Pedrini Wed, 24 Jan 2007 23:19:08 +0100 + +sysv-rc-conf (0.99-5) unstable; urgency=low + + * Dropped dependency on sysvinit (Closes: #386130) + + -- Francesco Pedrini Tue, 5 Sep 2006 15:57:32 +0200 + +sysv-rc-conf (0.99-4) unstable; urgency=low + + * Updated Standards Version to 3.7.2 + * Ported package to CDBS architecture + * sysv-rc-conf now abort if a wrong option is given (thanks to Alex Manoussakis) + * Added -h/--help option (thanks to Alex Manoussakis) + + -- Francesco Pedrini Tue, 2 May 2006 10:54:19 +0200 + +sysv-rc-conf (0.99-3) unstable; urgency=low + + * New Maintainer (Closes: #335790) + * Updated Standards Version to 3.6.2 + + -- Francesco Pedrini Thu, 12 Jan 2006 01:19:34 +0100 + +sysv-rc-conf (0.99-2) unstable; urgency=low + + * QA Group upload orphaning this package + + -- Andrew Pollock Wed, 9 Nov 2005 15:01:35 +1100 + +sysv-rc-conf (0.99-1) unstable; urgency=low + + * Normal users can now --list services. Patch by Javier Fernandez-Sanguino + Peña . Closes: #307965 + * Manual page additions. Patch by Javier Fernandez-Sanguino Peña + . Closes: #307968 + * Added some more files types to not display to prevent users from + messing up with old dpkg configuration files. Patch by Javier + Fernandez-Sanguino Peña . Closes: #307970 + + -- Joe Oppegaard Wed, 11 May 2005 10:56:51 -0800 + +sysv-rc-conf (0.98-4) unstable; urgency=low + + * Properly support floating rc scripts (see #243159). Now if you had + a symlink that didn't exist and you checked and unchecked a box + it will go back to no symlink instead of adding a K link. + Closes: #285850 + + -- Joe Oppegaard Mon, 20 Dec 2004 11:21:30 -0800 + +sysv-rc-conf (0.98-3) unstable; urgency=low + + * Changed postrm to only delete /var/lib/sysv-rc-conf on purge. + Closes: #286019 + + -- Joe Oppegaard Thu, 16 Dec 2004 18:52:18 -0800 + +sysv-rc-conf (0.98-2) unstable; urgency=low + + * Fix upgrade dependency issue per Miquel van Smoorenburg. + Closes: #282549 + + -- Osamu Aoki Fri, 26 Nov 2004 22:44:53 +0100 + +sysv-rc-conf (0.98-1) unstable; urgency=low + + * New upstream release. + * Bug fix that caused scripts in init.d to not show up if there weren't + any links to it in any of the rc?.d directories. closes: #272024 + + -- Joe Oppegaard Sat, 2 Oct 2004 12:44:59 -0800 + +sysv-rc-conf (0.97-1) unstable; urgency=low + + * New upstream release. + * Bug fix that crashed the program if there was a service without a K + link in the cache and the S priority was above 90. closes: #254340 + + -- Joe Oppegaard Mon, 14 Jun 2004 15:00:49 -0800 + +sysv-rc-conf (0.96-1) unstable; urgency=low + + * New upstream release. Features include addition of chkconfig like syntax + and a much faster startup time. + + -- Joe Oppegaard Fri, 5 Jun 2004 14:58:52 -0800 + +sysv-rc-conf (0.95-1) unstable; urgency=low + + * New upstream release + * Update to Debian description. closes: #245939 + + -- Joe Oppegaard Sat, 15 May 2004 19:46:22 -0800 + +sysv-rc-conf (0.94-1) unstable; urgency=low + + * New upstream release + * Upload package to close ITP. closes: #243179 + * Sponsor changes by Osamu Aoki + + -- Joe Oppegaard Sun, 11 Apr 2004 09:40:30 -0800 + +sysv-rc-conf (0.93-1) unstable; urgency=low + + * New upstream release. + + -- Joe Oppegaard Fri, 2 Apr 2004 10:03:31 -0800 + +sysv-rc-conf (0.90-1) unstable; urgency=low + + * New upstream release. + * Project renamed to sysv-rc-conf from rc-sysv-conf + + -- Joe Oppegaard Mon, 8 Mar 2004 20:15:40 -0800 + +rc-sysv-conf (0.80-1) unstable; urgency=low + + * Initial Release. + * Adjusted Makefile to accept DESTDIR=... + + -- Joe Oppegaard Mon, 1 Mar 2004 17:05:08 -0800 + --- sysv-rc-conf-0.99.orig/debian/control +++ sysv-rc-conf-0.99/debian/control @@ -0,0 +1,16 @@ +Source: sysv-rc-conf +Section: admin +Priority: optional +Maintainer: Debian QA Group +Build-Depends: debhelper (>= 9), cdbs, patchutils +Standards-Version: 3.9.3 + +Package: sysv-rc-conf +Architecture: all +Depends: libcurses-ui-perl, sysv-rc, ${misc:Depends} +Description: SysV init runlevel configuration tool for the terminal + sysv-rc-conf provides a terminal GUI for managing "/etc/rc{runlevel}.d/" + symlinks. The interface comes in two different flavors, one that simply + allows turning services on or off and another that allows for more fine tuned + management of the symlinks. Unlike most runlevel config programs, you can + edit startup scripts for any runlevel, not just your current one. --- sysv-rc-conf-0.99.orig/debian/docs +++ sysv-rc-conf-0.99/debian/docs @@ -0,0 +1,2 @@ +README +TODO --- sysv-rc-conf-0.99.orig/debian/postrm +++ sysv-rc-conf-0.99/debian/postrm @@ -0,0 +1,6 @@ +#!/bin/sh +set -e +if [ "$1" = "purge" ] ; then + rm -rf /var/lib/sysv-rc-conf +fi +#DEBHELPER# --- sysv-rc-conf-0.99.orig/debian/rules +++ sysv-rc-conf-0.99/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/makefile.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +DEB_MAKE_INSTALL_TARGET := install DESTDIR=$(CURDIR)/debian/tmp/ + --- sysv-rc-conf-0.99.orig/debian/sysv-rc-conf.install +++ sysv-rc-conf-0.99/debian/sysv-rc-conf.install @@ -0,0 +1 @@ +debian/tmp/usr/sbin/sysv-rc-conf --- sysv-rc-conf-0.99.orig/debian/sysv-rc-conf.manpages +++ sysv-rc-conf-0.99/debian/sysv-rc-conf.manpages @@ -0,0 +1 @@ +sysv-rc-conf.8 --- sysv-rc-conf-0.99.orig/debian/watch +++ sysv-rc-conf-0.99/debian/watch @@ -0,0 +1,3 @@ +# Site Directory Pattern Version Script +version=2 +ftp://ftp.pidone.org/sysv-rc-conf/sysv-rc-conf-(.*)\.tar\.gz debian uupdate --- sysv-rc-conf-0.99.orig/debian/compat +++ sysv-rc-conf-0.99/debian/compat @@ -0,0 +1 @@ +9 --- sysv-rc-conf-0.99.orig/debian/copyright +++ sysv-rc-conf-0.99/debian/copyright @@ -0,0 +1,16 @@ +This package was first debianized by Joe Oppegaard on +Mon, 1 Mar 2004 17:05:08 -0800. + +This package was downloaded from ftp://ftp.pidone.org/sysv-rc-conf + +www: http://sysv-rc-conf.sourceforge.net +ftp: ftp://ftp.pidone.org/sysv-rc-conf + +Upstream Author: Joe Oppegaard + +This software is copyright (c) 2004 by Joe Oppegaard + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. --- sysv-rc-conf-0.99.orig/debian/patches/01_behavior_fix.patch +++ sysv-rc-conf-0.99/debian/patches/01_behavior_fix.patch @@ -0,0 +1,28 @@ +diff -Naur sysv-rc-conf-0.99.orig/sysv-rc-conf.pl sysv-rc-conf-0.99/sysv-rc-conf.pl +--- sysv-rc-conf-0.99.orig/sysv-rc-conf.pl 2006-07-12 09:20:07.000000000 +0200 ++++ sysv-rc-conf-0.99/sysv-rc-conf.pl 2006-07-12 09:53:24.000000000 +0200 +@@ -21,6 +21,7 @@ + # + use strict; + use Getopt::Long qw(:config no_ignore_case); ++use Pod::Usage; + + use Curses; + use Curses::UI; +@@ -54,6 +55,7 @@ + ); + + GetOptions("cache=s" => \$opts{cache_dir}, ++ "help" => sub { pod2usage(); }, + "level=s" => \$opts{chkcfg_levels}, + "list:s" => \$opts{chkcfg_list}, + "order=s" => \$opts{order}, +@@ -63,7 +65,7 @@ + "show=s" => \$opts{show}, + "verbose=s" => \$opts{verbose}, + "Version" => sub { print STDERR "$0 $VERSION\n"; exit; }, +- ); ++ ) or exit(1); + + my $runlevel_cmd = '/sbin/runlevel'; + --- sysv-rc-conf-0.99.orig/debian/patches/greedy_names.patch +++ sysv-rc-conf-0.99/debian/patches/greedy_names.patch @@ -0,0 +1,12 @@ +diff -Nur sysv-rc-conf-0.99/sysv-rc-conf.pl sysv-rc-conf-0.99.new/sysv-rc-conf.pl +--- sysv-rc-conf-0.99/sysv-rc-conf.pl 2007-01-24 22:49:56.000000000 +0100 ++++ sysv-rc-conf-0.99.new/sysv-rc-conf.pl 2007-01-24 22:51:06.000000000 +0100 +@@ -133,7 +133,7 @@ + + opendir (RL, "$etc_rc$rl.d") or die "$0: opendir $etc_rc$rl.d : $!"; + +- foreach (grep { /[SK]\d\d$sn/i } readdir(RL)) { ++ foreach (grep { /[SK]\d\d$sn$/i } readdir(RL)) { + verbose("rm $etc_rc$rl.d/$_"); + unlink "$etc_rc$rl.d/$_" + or die "Can't unlink $etc_rc$rl.d/$_ : $!";