/usr/bin/dh_installdefoma is in defoma 0.11.12ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | #!/usr/bin/perl -w
#
# Registration with defoma.
use Debian::Debhelper::Dh_Lib;
init();
use FileHandle;
my $fh = new FileHandle("debian/control", "r");
my @l = $fh->getlines();
$fh->close();
foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
$TMP=tmpdir($PACKAGE);
my $defoma = pkgfile($PACKAGE, "defoma");
my $udefoma = pkgfile($PACKAGE, "udefoma");
my $hints = pkgfile($PACKAGE, "defoma-hints");
if ( $defoma ne '' ) {
if ( ! -d "$TMP/usr/share/defoma/scripts/") {
doit("install","-d","$TMP/usr/share/defoma/scripts/");
}
doit("install","-m0644","$defoma","$TMP/usr/share/defoma/scripts/$PACKAGE.defoma");
}
if ( $udefoma ne '' ) {
if ( ! -d "$TMP/usr/share/defoma/scripts/") {
doit("install","-d","$TMP/usr/share/defoma/scripts/");
}
doit("install","-m0644","$udefoma","$TMP/usr/share/defoma/scripts/$PACKAGE.udefoma");
}
if ( $hints ne '' ) {
if ( ! -d "$TMP/etc/defoma/hints/") {
doit("install","-d","$TMP/etc/defoma/hints/");
}
doit("install","-m0644","$hints","$TMP/etc/defoma/hints/$PACKAGE.hints");
}
if ($defoma) {
if (! $dh{NOSCRIPTS}) {
autoscript($PACKAGE,"postinst","postinst-defoma",
"s/#PACKAGE#/$PACKAGE/;");
autoscript($PACKAGE,"prerm","prerm-defoma",
"s/#PACKAGE#/$PACKAGE/;");
autoscript($PACKAGE,"postrm","postrm-defoma",
"s/#PACKAGE#/$PACKAGE/;");
}
}
if ($hints) {
if (! $dh{NOSCRIPTS}) {
autoscript($PACKAGE,"postinst","postinst-defoma-hints",
"s/#PACKAGE#/$PACKAGE/;");
autoscript($PACKAGE,"prerm","prerm-defoma-hints",
"s/#PACKAGE#/$PACKAGE/;");
}
}
}
|