Don't copy any /etc/default files in dh_metainit, as creating them should be responsi...
authorurs <urs@nerd2nerd.org>
Sat, 16 Jun 2007 14:46:21 +0000 (14:46 +0000)
committerurs <urs@nerd2nerd.org>
Sat, 16 Jun 2007 14:46:21 +0000 (14:46 +0000)
debhelper/dh_metainit

index d98c495..480d9b7 100644 (file)
@@ -96,7 +96,6 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
        my $tmp=tmpdir($package);
 
        # Figure out what filename to install it as.
-       # TODO: get $script from the metainit file
        my $script;
        if (defined $dh{NAME}) {
                $script=$dh{NAME};
@@ -109,14 +108,6 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
        }       
        
        my $init=pkgfile($package,$script) || pkgfile($package,'metainit')
-       my $default=pkgfile($package,'default');
-
-       if ($default ne '' && ! $dh{ONLYSCRIPTS}) {
-               if (! -d "$tmp/etc/default") {
-                       doit("install","-d","$tmp/etc/default");
-               }
-               doit("install","-p","-m644",$default,"$tmp/etc/default/$script");
-       }
 
        if ($init ne '' || $dh{ONLYSCRIPTS}) {
                if (! $dh{ONLYSCRIPTS}) {