summaryrefslogtreecommitdiff
path: root/dh_installdebconf
diff options
context:
space:
mode:
Diffstat (limited to 'dh_installdebconf')
-rwxr-xr-xdh_installdebconf11
1 files changed, 8 insertions, 3 deletions
diff --git a/dh_installdebconf b/dh_installdebconf
index ebf6a131..85772144 100755
--- a/dh_installdebconf
+++ b/dh_installdebconf
@@ -24,6 +24,12 @@ that works.
Files named debian/package.config and debian/package.templates are
installed into the DEBIAN directory in the package build directory.
+If a file named debian/package.script.debhelper exists, the contents
+of that file are merged into the config script as follows: If the script
+exists, then anywhere in it that "#DEBHELPER#" appears, the text of the
+.debhelper file is inserted. If the script does not exist, then a script
+is generated from the .debhelper file. The .debhelper filesmay be created
+by other debhelper programs, and are shell script fragments.
Note that if you use debconf, your package probably needs to depend on it
(it will be added to ${misc:Depends} by this program).
@@ -83,9 +89,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
doit("install","-o",0,"-g",0,"-d","$tmp/DEBIAN");
}
- if (! is_udeb($package) && $config ne '') {
- doit("install", "-o", 0, "-g", 0, "-m", 755, "-p",
- $config, "$tmp/DEBIAN/config");
+ if (! is_udeb($package)) {
+ debhelper_script_subst($package, "config");
}
if ($templates ne '') {