purge.
* Broke all debconf support off into a dh_installdebconf script. This
seems conceptually a little cleaner.
--- /dev/null
+if [ "$1" = purge -a -e /usr/share/debconf/confmodule.sh ]; then
+ . /usr/share/debconf/confmodule.sh
+ db_purge
+fi
+debhelper (2.0.54) unstable; urgency=low
+
+ * Enhanced debconf support -- the database is now cleaned up on package
+ purge.
+ * Broke all debconf support off into a dh_installdebconf script. This
+ seems conceptually a little cleaner.
+
+ -- Joey Hess <joeyh@master.debian.org> Tue, 28 Sep 1999 16:12:53 -0700
+
debhelper (2.0.53) unstable; urgency=low
* Minor changes to rules.multi2.
# Install debian install scripts.
# If any .debhelper files exist, add them into the scripts.
- foreach $file (qw{postinst preinst prerm postrm config}) {
+ foreach $file (qw{postinst preinst prerm postrm}) {
$f=pkgfile($PACKAGE,$file);
if ($f) {
if (-f "debian/$EXT$file.debhelper") {
}
# Install non-executable files
- foreach $file (qw{shlibs conffiles templates}) {
+ foreach $file (qw{shlibs conffiles}) {
$f=pkgfile($PACKAGE,$file);
if ($f) {
doit("install","-o","root","-g","root","-m",644,"-p",$f,"$TMP/DEBIAN/$file");
prerm
shlibs
conffiles
- config
- templates
.P
(For packages other than the first binary package listed in debian/control,
you must prefix these filenames with then name of the "package.", for example,
--- /dev/null
+#!/usr/bin/perl -w
+#
+# Integration with debconf.
+
+BEGIN { push @INC, "debian", "/usr/share/debhelper" }
+use Dh_Lib;
+init();
+
+foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
+ $TMP=tmpdir($PACKAGE);
+ $config=pkgfile($PACKAGE,"config");
+ $templates=pkgfile($PACKAGE,"templates");
+
+ if (! -d "$TMP/DEBIAN") {
+ doit("install","-o","root","-g","root","-d","$TMP/DEBIAN");
+ }
+
+ if ($config ne '') {
+ doit("install", "-o", "root", "-g", "root", "-m", 755, "-p",
+ $config, "$TMP/DEBIAN/config");
+ }
+
+ if ($templates ne '') {
+ doit("install", "-o", "root", "-g", "root", "-m", 644, "-p",
+ $templates, "$TMP/DEBIAN/templates");
+ }
+
+ if (($config ne ''|| $templates ne '') && ! $dh{NOSCRIPTS}) {
+ autoscript($PACKAGE,"postrm","postrm-debconf");
+ }
+}
--- /dev/null
+.TH DH_INSTALLDEBCONF 1 "" "Debhelper Commands" "Debhelper Commands"
+.SH NAME
+dh_installdebconf \- install debconf files into package build directories
+.SH SYNOPSIS
+.B dh_installdebconf
+.I "[debhelper options] [-n]"
+.SH "DESCRIPTION"
+dh_installdebconf is a debhelper program that is responsible for installing
+files used by the debconf package into package build directories.
+.P
+It also automatically generates the postrm commands needed to
+interface with debconf. See
+.BR dh_installdeb (1)
+for an explanation of how this works.
+.P
+Files named debian/package.config and debian/package.templates are installed
+into the DEBIAN directory in the package build directory.
+.P
+For the first first binary package listed in the control file, you may use
+debian/config and debian/templates instead.
+.P
+Note that if you use debconf, your package probably needs to depend on it.
+.SH OPTIONS
+.TP
+.B debhelper options
+See
+.BR debhelper (1)
+for a list of options common to all debhelper commands.
+.TP
+.B \-n, \--noscripts
+Do not modify postrm script.
+.SH ENVIRONMENT
+See
+.BR debhelper (1)
+for a list of environment variables that affect all debhelper commands.
+.SH "SEE ALSO"
+.TP
+.BR debhelper (1)
+.SH AUTHOR
+Joey Hess <joeyh@master.debian.org>
# dh_testversion
dh_testdir
dh_testroot
+# dh_installdebconf
dh_installdocs
dh_installexamples
dh_installmenu
# dh_testversion
dh_testdir
dh_testroot
+# dh_installdebconf
dh_installdocs
dh_installexamples
dh_installmenu
dh_testversion 1.1.17
dh_testdir
dh_testroot
+# dh_installdebconf
dh_installdocs
dh_installexamples
dh_installmenu
dh_testversion 1.1.17
dh_testdir
dh_testroot
+# dh_installdebconf
dh_installdocs
dh_installexamples
dh_installmenu
dh_testversion 1.1.17
dh_testdir
dh_testroot
+# dh_installdebconf
dh_installdocs
dh_installexamples
dh_installmenu