3 # Integration with debconf.
5 BEGIN { push @INC, "debian", "/usr/share/debhelper" }
9 foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
10 $TMP=tmpdir($PACKAGE);
11 $config=pkgfile($PACKAGE,"config");
12 $templates=pkgfile($PACKAGE,"templates");
14 if (! -d "$TMP/DEBIAN") {
15 doit("install","-o","root","-g","root","-d","$TMP/DEBIAN");
19 doit("install", "-o", "root", "-g", "root", "-m", 755, "-p",
20 $config, "$TMP/DEBIAN/config");
23 if ($templates ne '') {
24 doit("install", "-o", "root", "-g", "root", "-m", 644, "-p",
25 $templates, "$TMP/DEBIAN/templates");
28 if (($config ne ''|| $templates ne '') && ! $dh{NOSCRIPTS}) {
29 autoscript($PACKAGE,"postrm","postrm-debconf");