]> git.donarmstrong.com Git - debhelper.git/commitdiff
Add FILES sections to man pages. Closes: #545041
authorJoey Hess <joey@gnu.kitenet.net>
Fri, 4 Sep 2009 20:50:49 +0000 (16:50 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Fri, 4 Sep 2009 20:50:49 +0000 (16:50 -0400)
31 files changed:
debian/changelog
dh_bugfiles
dh_clean
dh_compress
dh_gconf
dh_install
dh_installcatalogs
dh_installchangelogs
dh_installcron
dh_installdeb
dh_installdebconf
dh_installdirs
dh_installdocs
dh_installemacsen
dh_installexamples
dh_installifupdown
dh_installinfo
dh_installinit
dh_installlogcheck
dh_installman
dh_installmenu
dh_installmime
dh_installmodules
dh_installpam
dh_installppp
dh_installudev
dh_installwm
dh_link
dh_lintian
dh_makeshlibs
dh_movefiles

index 25cfce20aab34921191a88ebda6c7495e12896be..38923d55794cfb624535bae0c3944487e8aa546b 100644 (file)
@@ -1,8 +1,12 @@
 debhelper (7.4.1) UNRELEASED; urgency=low
 
+  [ Steve Langasek ]
   * dh_installinit: Support upstart job files, and provide compatibility
     symlinks in /etc/init.d for sysv-rc implementations.  Closes: #536035.
 
+  [ Joey Hess ]
+  * Add FILES sections to man pages. Closes: #545041 
+
  -- Steve Langasek <vorlon@debian.org>  Thu, 06 Aug 2009 03:01:43 -0700
 
 debhelper (7.4.0) unstable; urgency=low
index 58220ad9d0d9c44304731e790d4666ebcb7ac249..a5a72a915083c232561091e87c0ae14ab4b3655d 100755 (executable)
@@ -19,26 +19,26 @@ dh_bugfiles is a debhelper program that is responsible for installing
 bug reporting customization files (bug scripts and/or bug control files
 and/or presubj files) into package build directories.
 
-This helper program installs the following files if they are found:
+=head1 FILES
 
-=over 3
+=over 4
 
-=item B<debian/package.bug-script>
+=item debian/I<package>.bug-script
 
-It is the script to be run by the bug reporting program for generating a bug
+This is the script to be run by the bug reporting program for generating a bug
 report template. This file is installed as F<usr/share/bug/package> in the
 package build directory if no other types of bug reporting customization
 files are going to be installed for the package in question. Otherwise,
 this file is installed as F<usr/share/bug/package/script>. Finally, the
 installed script is given execute permissions.
 
-=item B<debian/package.bug-control>
+=item debian/I<package>.bug-control
 
 It is the bug control file containing some directions for the bug reporting
 tool. This file is installed as F<usr/share/bug/package/control> in the
 package build directory.
 
-=item B<debian/package.bug-presubj>
+=item debian/I<package>.bug-presubj
 
 The contents of this file are displayed to the user by the bug reporting
 tool before allowing the user to write a bug report on the package to the
index 1213f6ca82355f887c9f9a7995ff4b15c7835b46..bc5bc579074873f3fcc3fb3f6c9b4887a3818277 100755 (executable)
--- a/dh_clean
+++ b/dh_clean
@@ -22,14 +22,22 @@ debhelper commands. It also removes common files that should not appear in a
 debian diff:
   #*# *~ DEADJOE *.orig *.rej *.SUMS TAGS .deps/* *.P *-stamp
 
-The debian/clean file can list other files to be removed.
-
 It does not run "make clean" to clean up after the build process. Use
 L<dh_auto_clean(1)> to do things like that.
 
 dh_clean (or "dh clean") should be the last debhelper command run in the
 clean target in debian/rules.
 
+=head1 FILES
+
+=over 4
+
+=item debian/clean
+
+Can list other files to be removed.
+
+=back
+
 =head1 OPTIONS
 
 =over 4
index 3d6c1b696c5b09efbdfbe0753983ce437563c54d..f624a175393585dad3cedfbb9184c45d54ddddc0 100755 (executable)
@@ -29,12 +29,18 @@ that appear to be already compressed based on their extensions), and all
 changelog files. Plus PCF fonts underneath usr/X11R6/lib/X11/fonts/ and
 usr/share/fonts/X11/
 
-If a debian/package.compress file exists, the default files are not
-compressed. Instead, the debian/packages.compress is ran as a shell
-script, and all filenames that the shell script outputs will be compressed.
-The shell script will be run from inside the package build directory. Note
-though that using -X is a much better idea in general; you should only use a
-debian/package.compress file if you really need to.
+=head1 FILES
+
+=over 4
+
+=item debian/I<package>.compress
+
+If this file exists, the default files are not compressed. Instead, the
+file is ran as a shell script, and all filenames that the shell script
+outputs will be compressed. The shell script will be run from inside the
+package build directory. Note though that using -X is a much better idea in
+general; you should only use a debian/package.compress file if you really
+need to.
 
 =head1 OPTIONS
 
index df8573a31696ffd6e2fbeb2408886f9f20a890ed..514aae7972ba2d32db07214412a59b13cad586fe 100755 (executable)
--- a/dh_gconf
+++ b/dh_gconf
@@ -22,19 +22,25 @@ It automatically generates the postinst and prerm fragments needed
 to register and unregister the schemas in usr/share/gconf/schemas, using
 gconf-schemas.
 
-If a file named debian/package.gconf-defaults exists, then it is
-installed into usr/share/gconf/defaults/10_package in the package build
-directory, with "package" replaced by the package name. Some postinst and
-postrm fragments will be generated to launch update-gconf-defaults.
-
-If a file named debian/package.gconf-mandatory exists, then it is
-installed into usr/share/gconf/mandatory/10_package in the package build
-directory, with "package" replaced by the package name, and similar
+An appropriate dependency on gconf2 will be generated in ${misc:Depends}.
+
+=head1 FILES
+
+=over 4
+
+=item debian/I<package>.gconf-defaults
+
+Installed into usr/share/gconf/defaults/10_package in the package build
+directory, with "I<package>" replaced by the package name. Some postinst
+and postrm fragments will be generated to run update-gconf-defaults.
+
+=item debian/I<package>.gconf-mandatory
+
+Installed into usr/share/gconf/mandatory/10_package in the package build
+directory, with "I<package>" replaced by the package name, and similar
 postinst and postrm fragments will be generated.
 
-The gconf-schemas and update-gconf-defaults scripts are provided by the
-gconf2 package. An appropriate dependency will be generated in
-${misc:Depends}.
+=back
 
 =head1 OPTIONS
 
index 292837b4a0594165ac208ea198f6d1cf8a16e32c..875f80bfe45d3be04e07525799ec98b45105d0f8 100755 (executable)
@@ -24,15 +24,6 @@ those particular tasks. dh_install, then, is useful for installing everything
 else, for which no particular intelligence is needed. It is a replacement for
 the old dh_movefiles command.
 
-Files named debian/package.install list the files to install into each
-package and the directory they should be installed to. The format is a set
-of lines, where each line lists a file or files to install, and at the end
-of the line tells the directory it should be installed in. The name of the
-files (or directories) to install should be given relative to the current
-directory, while the installation directory is given relative to the
-package build directory. You may use wildcards in the names of the files to
-install (in v3 mode and above).
-
 This program may be used in one of two ways. If you just have a file or two
 that the upstream Makefile does not install for you, you can run dh_install
 on them to move them into place. On the other hand, maybe you have a large
@@ -44,6 +35,22 @@ From debhelper compatibility level 7 on, dh_install will fall back to
 looking in debian/tmp for files, if it doesn't find them in the current
 directory (or whereever you've told it to look using --sourcedir).
 
+=head1 FILES
+
+=over 4
+
+=item debian/I<package>.install
+
+List the files to install into each package and the directory they should be
+installed to. The format is a set of lines, where each line lists a file or
+files to install, and at the end of the line tells the directory it should be
+installed in. The name of the files (or directories) to install should be given
+relative to the current directory, while the installation directory is given
+relative to the package build directory. You may use wildcards in the names of
+the files to install (in v3 mode and above).
+
+=back
+
 =head1 OPTIONS
 
 =over 4
index 510a2bb316918a3382150ddd1de8d2a3adb36acc..f991a7c26b292f3c3a89f55e18c4e7466621bc1c 100755 (executable)
@@ -20,18 +20,11 @@ B<dh_installcatalogs> [S<I<debhelper options>>] [B<-n>]
 dh_installcatalogs is a debhelper program that installs and
 registers SGML catalogs. It complies with the Debian XML/SGML policy.
 
-The file F<debian/I<package>.sgmlcatalogs> contains the catalogs to be
-installed per package.  Each line in that file should be of the form
-C<source dest>, where C<source> indicates where the catalog resides in
-the source tree, and C<dest> indicates the destination location for
-the catalog under the package build area.  C<dest> should start with
-F</usr/share/sgml/>.
-
 Catalogs will be registered in a supercatalog, in
 F</etc/sgml/I<package>.cat>.
 
 This command automatically adds maintainer script snippets for
-registering and unregistering the catalogs and "supercatalogs" (unless
+registering and unregistering the catalogs and supercatalogs (unless
 B<-n> is used). These snippets are inserted into the maintainer scripts
 by dh_installdeb; see L<dh_installdeb(1)> for an explanation of
 Debhelper maintainer script snippets.
@@ -39,6 +32,20 @@ Debhelper maintainer script snippets.
 A dependency on B<sgml-base> will be added to C<${misc:Depends}>, so be
 sure your package uses that variable in F<debian/control>.
 
+=head1 FILES
+
+=over 4
+
+=item debian/I<package>.sgmlcatalogs
+
+Lists the catalogs to be installed per package.  Each line in that file
+should be of the form C<source dest>, where C<source> indicates where the
+catalog resides in the source tree, and C<dest> indicates the destination
+location for the catalog under the package build area.  C<dest> should
+start with F</usr/share/sgml/>.
+
+=back
+
 =head1 OPTIONS
 
 =over 4
index 3749d523104d59555f4a167558c77ae95e2d293d..27e433c00f92e254ddeb3c0358f2fdde6aa6e35f 100755 (executable)
@@ -18,18 +18,6 @@ B<dh_installchangelogs> [S<I<debhelper options>>] [B<-k>] [B<-X>I<item>] [I<upst
 dh_installchangelogs is a debhelper program that is responsible for
 installing changelogs into package build directories.
 
-dh_installchangelogs determines if the package is a debian native package,
-and if so, it installs debian/changelog into usr/share/doc/package/changelog
-in the package build directory. Otherwise, it installs debian/changelog
-into usr/share/doc/package/changelog.Debian in the package build directory. (If
-files named debian/package.changelog exist, they will be used in preference
-to debian/changelog.)
-
-Parallelling the debian changelog handling, this program also takes care of
-NEWS.Debian files. If there is a debian/NEWS file, it is installed as
-usr/share/doc/package/NEWS.Debian. debian/package.NEWS files can also be
-used.
-
 An upstream changelog file may be specified as an option. If none is
 specified, a few common filenames are tried. (In compatibility level 7 and
 above.)
@@ -41,6 +29,30 @@ installed as usr/share/doc/package/changelog.html instead, and will be
 converted to plain text with html2text to generate
 usr/share/doc/package/changelog.
 
+=head1 FILES
+
+=over 4
+
+=item debian/changelog
+
+=item debian/NEWS
+
+=item debian/I<package>.changelog
+
+=item debian/I<package>.NEWS
+
+Automatically installed into usr/share/doc/I<package>/
+in the package build directory.
+
+Use the package specific name if I<package> needs a different
+NEWS or changelog file.
+
+The changelog file is installed with a name of changelog
+for native packages, and changelog.Debian for non-native packages.
+The NEWS file is always installed with a name of NEWS.Debian.
+
+=back
+
 =head1 OPTIONS
 
 =over 4
index 409b59ea742892a3e201d6ed2ad337a848226555..52248e6e6f341695308fc7ba91efcac5e2686613 100755 (executable)
@@ -16,10 +16,26 @@ B<dh_installcron> [S<B<debhelper options>>] [B<--name=>I<name>]
 =head1 DESCRIPTION
 
 dh_installcron is a debhelper program that is responsible for installing
-cron scripts into etc/cron.*/ in package build directories. The files
-debian/package.cron.daily, debian/package.cron.weekly,
-debian/package.cron.monthly, debian/package.cron.hourly, and
-debian/package.cron.d are installed.
+cron scripts.
+
+=head1 FILES
+
+=over 4
+
+=item debian/I<package>.cron.daily
+
+=item debian/I<package>.cron.weekly
+
+=item debian/I<package>.cron.monthly
+
+=item debian/I<package>.cron.hourly
+
+=item debian/I<package>.cron.d
+
+Installed into the appropriate etc/cron.*/ directory in the package
+build directory.
+
+=back
 
 =head1 OPTIONS
 
index 93198ae5c0e589fc06e71c6183be6a406d2cdfa2..386640b7ed6250ac8d0a3cfe046459423294b635 100755 (executable)
@@ -19,27 +19,38 @@ dh_installdeb is a debhelper program that is responsible for installing
 files into the DEBIAN directories in package build directories with the
 correct permissions.
 
-dh_installdeb automatically installs the following files from debian/ into
-the DEBIAN directory:
-  package.postinst
-  package.preinst
-  package.postrm
-  package.prerm
-  package.shlibs
-  package.conffiles
-  package.triggers
-
-The postinst, preinst, postrm, and prerm are handled specially: If a
-corresponding file named debian/package.script.debhelper exists, the contents
-of that file are merged into the script as follows: If the script exists,
-then anywhere in it that "#DEBHELPER#" appears, the text of the .debhelper
-file is inserted. If the script does not exist, then a script is generated
-from the .debhelper file. The .debhelper files are created by other debhelper
-programs, such as L<dh_installmenu(1)>, and are shell script fragments.
+=head1 FILES
+
+=over 4
+
+=item I<package>.postinst
+
+=item I<package>.preinst
+
+=item I<package>.postrm
+
+=item I<package>.prerm
+
+These maintainer scripts are installed into the DEBIAN directory.
+
+Inside the scripts, the token B<#DEBHELPER#> is replaced with
+shell script snippets generated by other debhelper commands.
+
+=item I<package>.triggers
+
+=item I<package>.shlibs
+
+These control files are installed into the DEBIAN directory.
+
+=item I<package>.conffiles
+
+This control file will be installed into the DEBIAN directory.
 
 In V3 compatibility mode and higher, all files in the etc/ directory in a
 package will automatically be flagged as conffiles by this program, so
-there is no need to list them manually in package.conffiles.
+there is no need to list them manually here.
+
+=back
 
 =cut
 
index f12c7dad9d4e351e6d6515c7d037d69caf198846..ff49f8ea132bdf9f603df60425c819e12d8cb1b1 100755 (executable)
@@ -16,36 +16,47 @@ B<dh_installdebconf> [S<I<debhelper options>>] [B<-n>] [S<B<--> I<params>>]
 =head1 DESCRIPTION
 
 dh_installdebconf is a debhelper program that is responsible for installing
-files used by the debconf package into package build directories.
+files used by debconf into package build directories.
 
 It also automatically generates the postrm commands needed to interface
 with debconf. The commands are added to the maintainer scripts by
 dh_installdeb. See L<dh_installdeb(1)> for an explanation of how that
 works.
 
-Files named debian/package.config and debian/package.templates are
-installed into the DEBIAN directory in the package build directory.
-If a file named debian/package.config.debhelper exists, the contents
-of that file are merged into the config script as follows: If the script 
-exists, then anywhere in it that "#DEBHELPER#" appears, the text of the 
-.debhelper file is inserted. If the script does not exist, then a script 
-is generated from the .debhelper file. The .debhelper files may be created 
-by other debhelper programs, and are shell script fragments.
-
 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.
+install this statement into the postinst automatically as it it too
+hard to do it right.
+
+=head1 FILES
+
+=over 4
+
+=item debian/I<package>.config
+
+This is the debconf config script, and is installed into the DEBIAN
+directory in the package build directory.
 
-=head1 LOCALIZED TEMPLATE FILES
+Inside the script, the token B<#DEBHELPER#> is replaced with
+shell script snippets generated by other debhelper commands.
 
-This program will look to see if you have a debian/po directory and if so
-will automatically call L<po2debconf(1)> to generate a merged templates
-file containing the translations. For this to work, your package should
-build-depend on po-debconf.
+=item debian/I<package>.templates
+
+This is the debconf templates file, and is installed into the DEBIAN
+directory in the package build directory.
+
+=item debian/po/
+
+If this directory is present, this program will automatically use
+L<po2debconf(1)> to generate merged templates
+files that include the translations from there.
+
+For this to work, your package should build-depend on po-debconf.
+
+=back
 
 =head1 OPTIONS
 
index 7e9a17837c1a9d9bfd0167b32fb5bef477538931..f48989ad0fb8fe8b5fd4c83809ce8bab185c8628 100755 (executable)
@@ -18,12 +18,15 @@ B<dh_installdirs> [S<I<debhelper options>>] [B<-A>] [S<I<dir ...>>]
 dh_installdirs is a debhelper program that is responsible for creating
 subdirectories in package build directories.
 
-A file named debian/package.dirs can list directories to be created.
+=head1 FILES
 
-Any directory names specified as parameters will be created in the package
-build directory of the first package dh_installdirs is told to act on. By
-default, this is the first binary package in debian/control, but if you use
--p, -i, or -a flags, it will be the first package specified by those flags.
+=over 4
+
+=item debian/I<package>.dirs
+
+Lists directories to be created in I<package>.
+
+=back
 
 =head1 OPTIONS
 
index 1226cf8fabe4bebd5ccc1d9a4ae009c81e3507af..465693bcedbe540933cbd180a22149a08ae94d40 100755 (executable)
@@ -18,33 +18,44 @@ B<dh_installdocs> [S<I<debhelper options>>] [B<-A>] [B<-X>I<item>] [S<I<file ...
 dh_installdocs is a debhelper program that is responsible for installing
 documentation into usr/share/doc/package in package build directories.
 
-dh_installdocs automatically installs debian/copyright if it exists. If
-dh_installdocs is acting on multiple packages, debian/copyright files will be
-installed into all packages. However, if you need to have separate copyright
-files for different binary packages, you can use files named
-debian/package.copyright.
-
-Any filenames specified as parameters will be installed into the first
-package dh_installdocs is told to act on. By default, this is the first
-binary package in debian/control, but if you use B<-p>, B<-i>, or B<-a> flags, it
-will be the first package specified by those flags.
-
-Also, debian/README.Debian (or debian/README.debian) and debian/TODO, if
-they exist, will be installed into the first binary package listed in
-debian/control, if dh_installdocs is acting on that package. Note that
-debian/TODO will be installed named TODO.Debian, if the package is not a
-debian native package. Also note that README.debian is installed as
-README.Debian, for consistency. Note that debian/package.README.Debian and
-debian/package.TODO can be used to specify files for subpackages.
-
-Files named debian/package.docs can list other files to be installed.
-
-Files named debian/package.doc-base, will be installed as doc-base control
-files. Note that the doc-id will be determined from the "Document:" entry
-in the doc-base control file in question.
+=head1 FILES
+
+=over 4
+
+=item debian/I<package>.docs
+
+List documentaton files to be installed into I<package>.
+
+=item debian/copyright
+
+=item debian/README.Debian
+
+=item debian/TODO
+
+=item debian/I<package>.copyright
+
+=item debian/I<package>.README.Debian
+
+=item debian/I<package>.TODO
+
+Each of these files is automatically installed if present. Use the package
+specific name if I<package> needs a different version of the file.
+
+Note that debian/README.debian is also installed as README.Debian,
+and debian/TODO will be installed as TODO.Debian in non-native packages.
+
+=item debian/I<package>.doc-base
+
+Installed as doc-base control files. Note that the doc-id will be
+determined from the "Document:" entry in the doc-base control file in
+question.
+
+=item debian/I<package>.doc-base.*
 
 If your package needs to register more than one document, you need multiple
-files. To accomplish this, you can use files named debian/package.doc-base.*
+doc-base files, and can name them like this.
+
+=back
 
 =head1 OPTIONS
 
index d8fa65741932257999d8f325f44a4caa184f0dd0..08dd97a4b663b2e05c1d35b03f2211c5017a9d2b 100755 (executable)
@@ -24,13 +24,26 @@ register a package as an emacs add on package. The commands are added to
 the maintainer scripts by dh_installdeb. See L<dh_installdeb(1)>
 for an explanation of how this works.
 
-If a file named debian/package.emacsen-install exists, then it is installed
-into
-usr/lib/emacsen-common/packages/install/package in the package build
-directory. Similarly, debian/package.emacsen-remove is installed into
-usr/lib/emacsen-common/packages/remove/package . And similarly,
-debian/package.emacsen-startup is installed into
-etc/emacs/site-start.d/50<package>.el (by default).
+=head1 FILES
+
+=over 4
+
+=item debian/I<package>.emacsen-install
+
+Installed into usr/lib/emacsen-common/packages/install/package in the
+package build directory.
+
+=item debian/I<package>.emacsen-remove
+
+Installed into usr/lib/emacsen-common/packages/remove/package in the
+package build directory.
+
+=item debian/I<package>.emacsen-startup
+
+Installed into etc/emacs/site-start.d/50I<package>.el in the package
+build directory. Use --priority to use a different priority than 50.
+
+=back
 
 =head1 OPTIONS
 
index 3e5e0893faac5e17d390661a6363ecaf10e42232..d210f4f28e3c91f3798d7016c987f194a835dff4 100755 (executable)
@@ -19,12 +19,15 @@ dh_installexamples is a debhelper program that is responsible for
 installing examples into usr/share/doc/package/examples in package
 build directories.
 
-Any file names specified as parameters will be installed into the first
-package dh_installexamples is told to act on. By default, this is the first
-binary package in debian/control, but if you use -p, -i, or -a flags, it
-will be the first package specified by those flags.
+=head1 OPTIONS
+
+=over 4
 
-Files named debian/package.examples can list other files to be installed.
+=item debian/I<package>.examples
+
+Lists example files or directories to be installed.
+
+=back
 
 =head1 OPTIONS
 
@@ -35,16 +38,16 @@ Files named debian/package.examples can list other files to be installed.
 Install any files specified by command line parameters in ALL packages
 acted on.
 
-=item I<file ...>
-
-Install these files as examples into the first package acted on. (Or into
-all packages if -A is specified.)
-
 =item B<-Xitem>, B<--exclude=item>
 
 Exclude files that contain "item" anywhere in their filename from
 being installed.
 
+=item I<file ...>
+
+Install these files (or directories) as examples into the first package
+acted on. (Or into all packages if -A is specified.)
+
 =back
 
 =head1 NOTES
index 35e39eee1293efe910d8d1391a1689f6cd9116a4..e394e3fa4cbbb6aea73d2dca886224914b5e61a4 100755 (executable)
@@ -19,9 +19,22 @@ dh_installifupdown is a debhelper program that is responsible for installing
 if-up, if-down, if-pre-up, and if-post-down hook scripts into package build
 directories.
 
-If a file named debian/package.if-up exists, then it is installed into
-etc/network/if-up.d/package in the package build directory. Similar is done
-for if-down, if-pre-up, and if-post-down.
+=head1 FILES
+
+=over 4
+
+=item debian/I<package>.if-up
+
+=item debian/I<package>.if-down
+
+=item debian/I<package>.if-pre-up
+
+=item debian/I<package>.if-post-down
+
+These files are installed into etc/network/if-*.d/I<package> in
+the package build directory.
+
+=back
 
 =head1 OPTIONS
 
index a7f5d914fc05b628491723c152bbe448fdc89568..6afe34073c1aa3818ef7093559fb0fbc13f31ebe 100755 (executable)
@@ -18,12 +18,15 @@ B<dh_installinfo> [S<I<debhelper options>>] [B<-A>] [S<I<file ...>>]
 dh_installinfo is a debhelper program that is responsible for installing
 info files into usr/share/info in the package build directory.
 
-Any filenames specified as parameters will be installed into the first
-package dh_installinfo is told to act on. By default, this is the first
-binary package in debian/control, but if you use -p, -i, or -a flags, it
-will be the first package specified by those flags.
+=head1 FILES
 
-Files named debian/package.info can list other files to be installed.
+=over 4
+
+=item debian/I<package>.info
+
+List info files to be installed.
+
+=back
 
 =head1 OPTIONS
 
index f870e99d60fb2b17d016eab53cf382133463b404..7b1d2e201dfa4c6d24fb65253dea4b63701ac010 100755 (executable)
@@ -24,17 +24,26 @@ It also automatically generates the postinst and postrm and prerm commands
 needed to set up the symlinks in /etc/rc*.d/ and to start and stop the init
 scripts.
 
-If a file named debian/package.upstart exists, then it is installed into
-etc/init/package.conf in the package build directory, with "package" replaced
-by the package name.
+=head1 FILES
 
-Otherwise, if a file named debian/package.init exists, then it is installed
-into etc/init.d/package in the package build directory, with "package"
-replaced by the package name.
+=over 4
+
+=item debian/I<package>.upstart
+
+If this exists, it is installed into etc/init/I<package>.conf in the package
+build directory.
+
+=item debian/I<package>.init
 
-If a file named debian/package.default exists, then it is installed into
-etc/default/package in the package build directory, with "package" replaced
-by the package name.
+Otherwise, if this exists, it is installed
+into etc/init.d/I<package> in the package build directory.
+
+=item debian/I<package>.default
+
+If this exists, it is installed into etc/default/I<package> in the package
+build directory.
+
+=back
 
 =head1 OPTIONS
 
index 1f352de7bd570a8576357d9c7f32a1d33372ec88..4b9a42dd3657b01f1c20c4bf4a25a5d91e639cb5 100755 (executable)
@@ -16,13 +16,26 @@ B<dh_installlogcheck> [S<B<debhelper options>>]
 =head1 DESCRIPTION
 
 dh_installlogcheck is a debhelper program that is responsible for
-installing logcheck rule files into subdirectories of etc/logcheck/ in
-package build directories. The files debian/package.logcheck.cracking,
-debian/package.logcheck.violations,
-debian/package.logcheck.violations.ignore,
-debian/package.logcheck.ignore.workstation,
-debian/package.logcheck.ignore.server and
-debian/package.logcheck.ignore.paranoid are installed if present.
+installing logcheck rule files.
+
+=head1 FILES
+
+=over 4
+
+=item debian/I<package>.logcheck.cracking
+
+=item debian/I<package>.logcheck.violations
+
+=item debian/I<package>.logcheck.violations.ignore
+
+=item debian/I<package>.logcheck.ignore.workstation
+
+=item debian/I<package>.logcheck.ignore.server
+
+=item debian/I<package>.logcheck.ignore.paranoid
+
+Each of these files, if present, are installed into corresponding
+subdirectories of etc/logcheck/ in package build directories.
 
 =cut
 
index a167cc3a5e8ddf4eabd61ee60a2890f5fb60d514..30168cb28fe778bcfa0a4b94bb351207c9ef32b1 100755 (executable)
@@ -38,14 +38,6 @@ like /usr/share/man/pl/man1/, that is because your program has a
 name like "foo.pl", and dh_installman assumes that means it is translated
 into Polish. Use --language=C to avoid this.
 
-Any man page filenames specified as parameters will be installed into the
-first package dh_installman is told to act on. By default, this is the
-first binary package in debian/control, but if you use -p, -i, or -a flags,
-it will be the first package specified by those flags.
-
-Files named debian/package.manpages can list other man pages to be
-installed.
-
 After the man page installation step, dh_installman will check to see if
 any of the man pages in the temporary directories of any of the packages it
 is acting on contain ".so" links. If so, it changes them to symlinks.
@@ -55,6 +47,14 @@ manual page and convert it to UTF-8. If the guesswork fails for some
 reason, you can override it using an encoding declaration. See
 L<manconv(1)> for details.
 
+=head1 FILES
+
+=over 4
+
+=item debian/I<package>.manpages
+
+Lists man pages to be installed.
+
 =head1 OPTIONS
 
 =over 4
index 327fac0fc31cd23b98edc615c0a3ef17536ed154..c1a609a9cbe0e99694eab3a1ca28054f6bec682d 100755 (executable)
@@ -20,16 +20,23 @@ files used by the debian menu package into package build directories.
 
 It also automatically generates the postinst and postrm commands needed to
 interface with the debian menu package. These commands are inserted into
-the maintainer scripts by dh_installdeb. See L<dh_installdeb(1)> for an
-explanation of how this works.
+the maintainer scripts by L<dh_installdeb(1)>.
 
-If a file named debian/package.menu exists, then it is installed into
-usr/share/menu/package in the package build directory. This is a debian menu
-file. See L<menufile(5)> for its format.
+=head1 FILES
 
-If a file named debian/package.menu-method exits, then it is installed into
-etc/menu-methods/package in the package build directory. This is a debian
-menu method file.
+=over 4
+
+=item debian/I<package>.menu
+
+Debian menu files, installed into usr/share/menu/I<package> in the package
+build directory. See L<menufile(5)> for its format.
+
+=item debian/I<package>.menu-method
+
+Debian menu method files, installed into etc/menu-methods/I<package>
+in the package build directory.
+
+=back
 
 =head1 OPTIONS
 
index 18abe162ac3556198e5a20cf04ee6ca158b237cd..6886975ec9a5290473d0997bd4af7ce84e3dde8f 100755 (executable)
@@ -20,14 +20,24 @@ mime files into package build directories.
 
 It also automatically generates the postinst and postrm commands needed to
 interface with the debian mime-support and shared-mime-info packages. These
-commands are inserted into the maintainer scripts by dh_installdeb. See
-L<dh_installdeb(1)> for an explanation of how this works.
+commands are inserted into the maintainer scripts by L<dh_installdeb(1)>.
 
-If files named debian/package.mime or debian/package.sharedmimeinfo exist, then
-they are installed into usr/lib/mime/packages/package and
-/usr/share/mime/packages/package.xml (respectively) in the package build
+=head1 FILES
+
+=over 4
+
+=item debian/I<package>.mime
+
+Installed into usr/lib/mime/packages/I<package> in the package build
 directory.
 
+=item debian/I<package>.sharedmimeinfo
+
+Installed into /usr/share/mime/packages/I<package>.xml in the package build
+directory.
+
+=back
+
 =head1 OPTIONS
 
 =over 4
index 475d83886e6ade8960afdff0c2b18ffebe15d436..6799a122bb1e6d13396176764ad6cf81c099e289 100755 (executable)
@@ -20,25 +20,26 @@ B<dh_installmodules> [S<I<debhelper options>>] [B<-n>] [B<--name=>I<name>]
 dh_installmodules is a debhelper program that is responsible for
 registering kernel modules.
 
-Files named debian/package.modprobe will be installed in
-etc/modprobe.d/package.conf in the package build directory, to be used by
-module-init-tools's version of modprobe.
-
 Kernel modules are searched for in the package build directory and if
 found, postinst and postrm commands are automatically generated to 
 run depmod and register the modules when the package is installed. 
-These commands are inserted into the maintainer scripts by dh_installdeb.
-See L<dh_installdeb(1)> for an explanation of how this works.
+These commands are inserted into the maintainer scripts by
+L<dh_installdeb(1)>.
+
+=head1 FILES
+
+=over 4
 
-Previous versions of dh_installmodules installed files named
-etc/modprobe.d/package, code is added to the preinst and postinst to
-handle the upgrade from the old location.
+=item debian/I<package>.modprobe
 
-Previous versions of dh_installmodules also supported 
-files named debian/package.modules, which were installed into 
-etc/modutils/package in the package build directory. This was for use by
-modutils, which is no longer in Debian. dh_installmodules will warn about
-such files now.
+Installed to etc/modprobe.d/I<package>.conf in the package build directory.
+
+=item debian/I<package>.modules
+
+These files were installed for use by modutils, but are now not used
+and dh_installmodules will warn if these files are present.
+
+=back
 
 =head1 OPTIONS
 
@@ -51,9 +52,8 @@ Do not modify postinst/postrm scripts.
 =item B<--name=>I<name>
 
 When this parameter is used, dh_installmodules looks for and
-installs files named debian/package.name.modules and
-debian/package.name.modprobe instead of the usual
-debian/package.modules and debian/package.modprobe
+installs files named debian/I<package>.I<name>.modprobe instead
+of the usual debian/I<package>.modprobe
 
 =back
 
index 68678f87f9d20a8b742e839012c8992b861039bc..90e31b2fd91c5d7f6fbc15b048aae5177629e9ee 100755 (executable)
@@ -18,8 +18,15 @@ B<dh_installpam> [S<I<debhelper options>>] [B<--name=>I<name>]
 dh_installpam is a debhelper program that is responsible for installing
 files used by PAM into package build directories.
 
-If a file named debian/package.pam exists, then it is installed into
-etc/pam.d/package in the package build directory.
+=head1 FILES
+
+=over 4
+
+=item debian/I<package>.pam
+
+Installed into etc/pam.d/I<package> in the package build directory.
+
+=back
 
 =head1 OPTIONS
 
@@ -27,9 +34,9 @@ etc/pam.d/package in the package build directory.
 
 =item B<--name=>I<name>
 
-Look for files named debian/package.name.pam and install them as
-etc/pam.d/name, instead of using the usual files and installing them as
-the package name.
+Look for files named debian/I<package>.I<name>.pam and install them as
+etc/pam.d/I<name>, instead of using the usual files and installing them
+using the package name.
 
 =back
 
index 950470f33c9e0767a2f2a70b1bf5ebb69fc373ea..60c5cccdc2af3a63c4f33e094af6acd5bac3229d 100755 (executable)
@@ -16,12 +16,21 @@ B<dh_installppp> [S<I<debhelper options>>] [B<--name=>I<name>]
 =head1 DESCRIPTION
 
 dh_installppp is a debhelper program that is responsible for installing
-ppp ip-up and ip-down scripts. into package build directories.
+ppp ip-up and ip-down scripts into package build directories.
 
-If a file named debian/package.ppp.ip-up exists, then it is installed into
-etc/ppp/ip-up.d/package in the package build directory. 
-Files named debian/package.ppp.ip-down are installed to
-etc/ppp/ip-down.d/package
+=head1 FILES
+
+=over 4
+
+=item debian/I<package>.ppp.ip-up
+
+Installed into etc/ppp/ip-up.d/I<package> in the package build directory. 
+
+=item debian/I<package>.ppp.ip-down
+
+Installed into etc/ppp/ip-down.d/I<package> in the package build directory.
+
+=back
 
 =head1 OPTIONS
 
index 0d38cf569bb87b3da3a237cb0facea8cbed5e219..7193ebd4e4717b5b9764a018a4800a97631a7ccb 100755 (executable)
@@ -19,12 +19,19 @@ B<dh_installudev> [S<I<debhelper options>>] [B<-n>] [B<--name=>I<name>] [B<--pri
 dh_installudev is a debhelper program that is responsible for
 installing udev rules files.
 
-Files named debian/package.udev will be installed in
-lib/udev/rules.d/ in the package build directory.
-
 Code is added to the preinst and postinst to handle the upgrade from the
 old udev rules file location.
 
+=head1 FILES
+
+=over 4
+
+=item debian/I<package>.udev
+
+Installed into lib/udev/rules.d/ in the package build directory.
+
+=back
+
 =head1 OPTIONS
 
 =over 4
@@ -32,8 +39,8 @@ old udev rules file location.
 =item B<--name=>I<name>
 
 When this parameter is used, dh_installudev looks for and
-installs files named debian/package.name.udev instead of the usual
-debian/package.udev.
+installs files named debian/I<package>.I<name>.udev instead of the usual
+debian/I<package>.udev.
 
 =item B<--priority=>I<priority>
 
index e07b7299a4a212b41f59b9d4f5d1563738bc0cd1..43f561d136ac4d19a2b209458dab09b6f5eac6f2 100755 (executable)
@@ -21,13 +21,15 @@ with L<update-alternatives(8)>. The window manager's man page is also
 registered as a slave symlink (in v6 mode and up), if it is found in 
 usr/share/man/man1/ in the package build directory.
 
-Any window manager programs specified as parameters will be registered in
-the first package dh_installwm is told to act on. By default, this is the
-first binary package in debian/control, but if you use -p, -i, or -a flags,
-it will be the first package specified by those flags.
+=head1 FILES
 
-Files named debian/package.wm can list other window manager programs to
-register.
+=over 4
+
+=item debian/I<package>.wm
+
+List window manager programs to register.
+
+=back
 
 =head1 OPTIONS
 
@@ -45,8 +47,7 @@ Do not modify postinst/postrm scripts. Turns this command into a no-op.
 
 =item I<wm ...>
 
-The commands used to run the window manager or window managers you want to
-register.
+Window manager programs to register.
 
 =back
 
diff --git a/dh_link b/dh_link
index dc396dd597fbae1516a9c7657e56c0a7f41dc9e1..35f4371798c4f5fe8277e462cba6c849f7f5b393 100755 (executable)
--- a/dh_link
+++ b/dh_link
@@ -24,15 +24,6 @@ files are the already existing files that will be symlinked from. The
 destination files are the symlinks that will be created. There B<must> be
 an equal number of source and destination files specified.
 
-The list can be specified in two ways. A file named debian/package.links
-can list pairs of files. If you use this file, you should put each pair
-of files on its own line, and separate the files within the pair with
-whitespace. Also, pairs of files can be specified as parameters - these
-pairs will only be created in the package build directory of the first
-package dh_link is told to act on. By default, this is the first binary
-package in debian/control, but if you use -p, -i, or -a flags, it will be
-the first package specified by those flags.
-
 Be sure you B<do> specify the full filename to both the source and
 destination files (unlike you would do if you were using something like
 L<ln(1)>).
@@ -45,6 +36,16 @@ the symlinks in.
 dh_link also scans the package build tree for existing symlinks which do not
 conform to debian policy, and corrects them (v4 or later).
 
+=head1 FILES
+
+=over 4
+
+=item debian/I<package>.links
+
+Lists pairs of source and destination files to be symlinked. Each pair
+should be put on its own line, with the source and destination separated by
+whitespace.
+
 =head1 OPTIONS
 
 =over 4
index 0dcf60be4a0dca8e36a95cb698b3d38bb136b3f8..4e77373029691980b64aab2c9b33db5810790d44 100755 (executable)
@@ -18,14 +18,22 @@ B<dh_lintian> [S<I<debhelper options>>]
 dh_lintian is a debhelper program that is responsible for installing
 override files used by lintian into package build directories.
 
-If a file named debian/package.lintian-overrides exists, then it is
-installed into usr/share/lintian/overrides/package in the package
+=head1 FILES
+
+=over 4
+
+=item debian/I<package>.lintian-overrides
+
+Installed into usr/share/lintian/overrides/I<package> in the package
 build directory. This file is used to suppress erroneous lintian
 diagnostics.
 
-Note that a file named debian/source.lintian-overrides will not be
-installed, but will be scanned by lintian to provide overrides for the
-source package.
+=item debian/I<source>.lintian-overrides
+
+These files are not installed, but will be scanned by lintian to provide
+overrides for the source package.
+
+=back
 
 =cut
 
index 776e66f0b8b5f229259d87cb6a5d6ce0c1e0ec03..03a54f95420d3d990f39ef14c962863730608f18 100755 (executable)
@@ -21,9 +21,19 @@ libraries, and generates a shlibs file for the libraries it finds.
 It also adds a call to ldconfig in the postinst and postrm scripts (in
 V3 mode and above only) to any packages in which it finds shared libraries.
 
-If a L<dpkg-gensymbols(1)> symbol file is found in debian/package.symbols
-(or debian/package.symbols.arch), dpkg-gensymbols will be called
-to process and install the symbols file.
+=head1 FILES
+
+=over 4
+
+=item debian/I<package>.symbols
+
+=item debian/I<package>.symbols.I<arch>
+
+These symbols files, if present, are passed to L<dpkg-gensymbols(1)> to
+be processed and installed. Use the I<arch> specific names if you need
+to provide different symbols files for different architectures.
+
+=back
 
 =head1 OPTIONS
 
index 5e1db0fc74f531ce2449c0dd50c03238ded3e839..03957a03ef99a335ef783d8de86bb9cc5dac7d90 100755 (executable)
@@ -20,15 +20,21 @@ out of debian/tmp or some other directory and into other package build
 directories. This may be useful if your package has a Makefile that installs
 everything into debian/tmp, and you need to break that up into subpackages.
 
-Files named debian/package.files list the files to be moved, separated by
-whitespace. The filenames listed should be relative to debian/tmp/. You can
-also list directory names, and the whole directory will be moved. If you
-prefer, you can list the files to move on the command line and this will
-apply to the first package dh_movefiles is told to act on.
-
 Note: dh_install is a much better program, and you are recommended to use
 it instead of dh_movefiles.
 
+=head1 FILES
+
+=over 4
+
+=item debian/I<package>.files
+
+Lists the files to be moved into a package, separated by whitespace. The
+filenames listed should be relative to debian/tmp/. You can also list
+directory names, and the whole directory will be moved.
+
+=back
+
 =head1 OPTIONS
 
 =over 4