summaryrefslogtreecommitdiff
path: root/dh_installdeb
diff options
context:
space:
mode:
Diffstat (limited to 'dh_installdeb')
-rwxr-xr-xdh_installdeb10
1 files changed, 10 insertions, 0 deletions
diff --git a/dh_installdeb b/dh_installdeb
index 6eddb38f..1447ebfe 100755
--- a/dh_installdeb
+++ b/dh_installdeb
@@ -51,4 +51,14 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
doit("install","-o",0,"-g",0,"-m",644,"-p",$f,"$TMP/DEBIAN/$file");
}
}
+
+ # Automatic conffiles registration: If it is in /etc, it is a
+ # conffile.
+ if (! Debian::Debhelper::Dh_Lib::compat(2) && -d "$TMP/etc") {
+ complex_doit("find $TMP/etc -type f |sed 's~^$TMP~~' >> $TMP/DEBIAN/conffiles");
+ # Anything found?
+ if (-z "$TMP/DEBIAN/conffiles") {
+ doit("rm", "-f", "$TMP/DEBIAN/conffiles");
+ }
+ }
}