3 # Integration with debconf.
5 use Debian::Debhelper::Dh_Lib;
8 foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
10 $config=pkgfile($PACKAGE,"config");
11 $templates=pkgfile($PACKAGE,"templates");
13 if (! -d "$TMP/DEBIAN") {
14 doit("install","-o",0,"-g",0,"-d","$TMP/DEBIAN");
18 doit("install", "-o", 0, "-g", 0, "-m", 755, "-p",
19 $config, "$TMP/DEBIAN/config");
22 if ($templates ne '') {
23 # Are there translated templates too?
24 my @trans=glob("$templates.??");
26 complex_doit("debconf-mergetemplate @trans $templates > $TMP/DEBIAN/templates");
27 chmod 0644, "$TMP/DEBIAN/templates";
28 chown 0, 0, "$TMP/DEBIAN/templates";
31 doit("install", "-o", 0, "-g", 0, "-m", 644, "-p",
32 $templates, "$TMP/DEBIAN/templates");
36 if (($config ne ''|| $templates ne '') && ! $dh{NOSCRIPTS}) {
37 autoscript($PACKAGE,"postrm","postrm-debconf");