+debhelper (4.1.19) unstable; urgency=low
+
+ * Added note to dh_installdebconf(1) about postinst sourcing debconf
+ confmodule. (Cf #106070)
+ * Added an example to dh_install(1). Closes: #166402
+
+ -- Joey Hess <joeyh@debian.org> Sun, 27 Oct 2002 20:26:02 -0500
+
debhelper (4.1.18) unstable; urgency=low
* Use dpkg-architecture instead of dpkg --print-architecture (again?)
debian/package.install files or on the command line. Instead, dh_install
will guess as follows:
-Strip off debian/tmp from the front of the filename, of it is present, and
+Strip off debian/tmp from the front of the filename, if it is present, and
install into the dirname of the filename. So if the filename is
debian/tmp/usr/bin, then that directory will be copied to
debian/package/usr/. If the filename is debian/tmp/etc/passwd, it will be
=item B<--sourcedir=dir>
-Makes all source files relative to "dir". If this is specified, it is akin
-to all the source files having "dir" prepended to them. By default, "dir"
-is '.'.
+Makes all source files be found under dir. If this is specified, it is akin
+to all the source filenames having "dir/" prepended to them.
To make dh_install behave like the old dh_movefiles, move your
package.files file to package.install and call dh_install with
}
}
+=head1 EXAMPLE
+
+Suppose your package's upstream Makefile installs a binary, a man page, and
+a library into appropriate subdirectories of debian/tmp. You want to put
+the library into package libfoo, and the rest into package foo. Your rules
+file will run "dh_install --sourcedir=debian/tmp". Make debian/foo.install
+contain:
+
+ usr/bin
+ usr/share/man/man1
+
+While debian/libfoo.install contains:
+
+ usr/libfoo*.so.*
+
+If you want a libfoo-dev package too, debian/libfoo-dev.install might contain:
+
+ usr/include
+ usr/lib/libfoo*.so
+ usr/share/man/man3
+
=head1 SEE ALSO
L<debhelper(1)>
Note that if you use debconf, your package probably needs to depend on it
(it will be added to ${misc:Depends} by this program).
+Note that for your config script to be called by dpkg, your postinst
+needs to source debconf's confmodule. dh_installdebconf does not
+install this statement into postinst automatically as it it too hard to
+do it right.
+
=head1 LOCALIZED TEMPLATE FILES
Debconf also supports localized template files, and this program has some