]> git.donarmstrong.com Git - debhelper.git/commitdiff
r222: Initial Import
authorjoey <joey>
Tue, 17 Aug 1999 05:16:09 +0000 (05:16 +0000)
committerjoey <joey>
Tue, 17 Aug 1999 05:16:09 +0000 (05:16 +0000)
debian/changelog
dh_installinit
dh_perl

index e80107c13faaf0b683ef0b8e1e0c870bb3806f6a..04ba51a887d078c4617d317f93625b3a1efa29e1 100644 (file)
@@ -1,3 +1,12 @@
+debhelper (1.2.82) unstable; urgency=low
+
+  * dh_installinit: applied patch from Yann Dirson <ydirson@multimania.com>
+    to make it look for init.d scripts matching the --init-script parameter.
+    This is only useful if, like Yann, you have packages that need to install
+    more than 1 init script.
+
+ -- Joey Hess <joeyh@master.debian.org>  Fri, 25 Jun 1999 11:38:05 -0700
+
 debhelper (1.2.81) unstable; urgency=low
 
   * dh_link: fixed bug #40159 and added a regression test for it. It was
index d1de18075b4e3c39731e5257b027cd91e4249042..6432c513b2f491fc1542dee3a36d75a9e00dde02 100755 (executable)
@@ -9,34 +9,36 @@ init();
 
 foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
        $TMP=tmpdir($PACKAGE);
-       # Debstd used either name, so do we for back-compatability.
-       $init=pkgfile($PACKAGE,"init") || pkgfile($PACKAGE,"init.d");
+
+       # Figure out what filename to install it as.
+       my $script;
+       if ($dh{D_FLAG}) {
+               # -d on the command line sets D_FLAG. We will 
+               # remove a trailing 'd' from the package name and 
+               # use that as the name.
+               $script=$PACKAGE;
+               if ($script=~m/(.*)d$/) {
+                       $script=$1;
+               }
+               else {
+                       warning("\"$PACKAGE\" has no final d' in its name, but -d was specified.");
+               }
+       }       
+       elsif ($dh{INIT_SCRIPT}) {
+               $script=$dh{INIT_SCRIPT};
+       }
+       else {
+               $script=$PACKAGE;
+       }       
+
+       $init=pkgfile($PACKAGE,$script) || pkgfile($PACKAGE,"init") ||
+             pkgfile($PACKAGE,"init.d");
 
        if ($init ne '') {
                if (! -d "$TMP/etc/init.d") {
                        doit("install","-d","$TMP/etc/init.d");
                }
 
-               # Figure out what filename to install it as.
-               my $script;
-               if ($dh{D_FLAG}) {
-                       # -d on the command line sets D_FLAG. We will 
-                       # remove a trailing 'd' from the package name and 
-                       # use that as the name.
-                       $script=$PACKAGE;
-                       if ($script=~m/(.*)d$/) {
-                               $script=$1;
-                       }
-                       else {
-                               warning("\"$PACKAGE\" has no final `d' in its name, but -d was specified.");
-                       }
-               }       
-               elsif ($dh{INIT_SCRIPT}) {
-                       $script=$dh{INIT_SCRIPT};
-               }
-               else {
-                       $script=$PACKAGE;
-               }       
                doit("install","-p","-m755",$init,"$TMP/etc/init.d/$script");
 
                # This is set by the -u "foo" command line switch, it's
diff --git a/dh_perl b/dh_perl
index c8aa6a01770ed1d58de498a34b88ee8449293e82..d66dfce5d6cef6f2cf9fcf57837bf38b3db054b0 100755 (executable)
--- a/dh_perl
+++ b/dh_perl
@@ -74,14 +74,14 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
 
        next unless $dep;
 
-       if (-e "debian/$EXT\subtsvars") {
-               open (IN, "<debian/$EXT\subtsvars");
+       if (-e "debian/$EXT\substvars") {
+               open (IN, "<debian/$EXT\substvars");
                my @lines=grep { ! /^perl:Depends=/ } <IN>;
                close IN;
-               open (OUT, ">debian/$EXT\subtsvars");
+               open (OUT, ">debian/$EXT\substvars");
                print OUT @lines;
        } else {
-               open (OUT, ">debian/$EXT\subtsvars");
+               open (OUT, ">debian/$EXT\substvars");
        }
        print OUT "perl:Depends=$dep\n";
        close OUT;