]> git.donarmstrong.com Git - debhelper.git/commitdiff
r559: * Added note to dh_installdebconf(1) about postinst sourcing debconf
authorjoey <joey>
Mon, 28 Oct 2002 16:28:35 +0000 (16:28 +0000)
committerjoey <joey>
Mon, 28 Oct 2002 16:28:35 +0000 (16:28 +0000)
     confmodule. (Cf #106070)
   * Added an example to dh_install(1). Closes: #166402

debian/changelog
dh_install
dh_installdebconf

index c11d28c33db40fb0a56f6ea34074b7defd9555ee..2549c768e0ce69be60565369b4f3552a810d1bd7 100644 (file)
@@ -1,3 +1,11 @@
+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?)
index 004e21f06c79c8660f496e345b169ceb6d14aef5..d6f1f1bc07fcd0b3b5b08de34204966c5eae0143 100755 (executable)
@@ -56,7 +56,7 @@ specified, you should not list destination directories in
 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 
@@ -81,9 +81,8 @@ warned about.
 
 =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
@@ -185,6 +184,27 @@ if ($dh{LIST_MISSING}) {
        }
 }
 
+=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)>
index be6fcabfa582b9fe83157158b6b33ab0388b85ce..b11ca7d8b8988929c320492b4b7606fc7e263539 100755 (executable)
@@ -28,6 +28,11 @@ installed into the DEBIAN directory in the package build directory.
 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