Package debhelper

Helper programs for Debian rules

http://kitenet.net/~joey/code/debhelper/

A collection of programs that can be used in a Debian rules file
to automate common tasks related to building Debian packages.
Programs are included to install various files into your package,
compress files, fix file permissions, integrate your package with
the Debian menu system, debconf, doc-base, etc. Most Debian
packages use debhelper as part of their build process.

General Commands (Section 1)
dh
dh runs a sequence of debhelper commands. The supported sequences correspond to the targets of a debian/rules file: build-arch, build-indep, build, clean...
dh_auto_build
dh_auto_build is a debhelper program that tries to automatically build a package. It does so by running the appropriate command for the build system it detects...
dh_auto_clean
dh_auto_clean is a debhelper program that tries to automatically clean up after a package build. It does so by running the appropriate command for the build...
dh_auto_configure
dh_auto_configure is a debhelper program that tries to automatically configure a package prior to building. It does so by running the appropriate command for...
dh_auto_install
dh_auto_install is a debhelper program that tries to automatically install built files. It does so by running the appropriate command for the build system it...
dh_auto_test
dh_auto_test is a debhelper program that tries to automatically run a package's test suite. It does so by running the appropriate command for the build system...
dh_bugfiles
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...
dh_builddeb
dh_builddeb simply calls dpkg-deb(1) to build a Debian package or packages. It will also build packages for ddebs when dh_strip(1) and dh_gencontrol(1) have...
dh_clean
dh_clean is a debhelper program that is responsible for cleaning up after a package is built. It removes the package build directories, and removes some other...
dh_compress
dh_compress is a debhelper program that is responsible for compressing the files in package build directories, and makes sure that any symlinks that pointed to...
dh_desktop
dh_desktop was a debhelper program that registers .desktop files. However, it no longer does anything, and is now deprecated. If a package ships desktop files...
dh_fixperms
dh_fixperms is a debhelper program that is responsible for setting the permissions of files and directories in package build directories to a sane state -- a...
dh_gconf
dh_gconf is a debhelper program that is responsible for installing GConf defaults files and registering GConf schemas. An appropriate dependency on gconf2 will...
dh_gencontrol
dh_gencontrol is a debhelper program that is responsible for generating control files, and installing them into the DEBIAN directory with the proper...
dh_icons
dh_icons is a debhelper program that updates caches of Freedesktop icons when needed, using the update-icon-caches program provided by GTK+2.12. Currently this...
dh_install
dh_install is a debhelper program that handles installing files into package build directories. There are many dh_install* commands that handle installing...
dh_installcatalogs
dh_installcatalogs is a debhelper program that installs and registers SGML catalogs. It complies with the Debian XML/SGML policy. Catalogs will be registered in...
dh_installchangelogs
dh_installchangelogs is a debhelper program that is responsible for installing changelogs into package build directories. An upstream changelog file may be...
dh_installcron
dh_installcron is a debhelper program that is responsible for installing cron scripts.
dh_installdeb
dh_installdeb is a debhelper program that is responsible for installing files into the DEBIAN directories in package build directories with the correct...
dh_installdebconf
dh_installdebconf is a debhelper program that is responsible for installing files used by debconf into package build directories. It also automatically...
dh_installdirs
dh_installdirs is a debhelper program that is responsible for creating subdirectories in package build directories.
dh_installdocs
dh_installdocs is a debhelper program that is responsible for installing documentation into usr/share/doc/package in package build directories.
dh_installemacsen
dh_installemacsen is a debhelper program that is responsible for installing files used by the Debian emacsen-common package into package build directories. It...
dh_installexamples
dh_installexamples is a debhelper program that is responsible for installing examples into usr/share/doc/package/examples in package build directories.
dh_installgsettings
dh_installgsettings is a debhelper program that is responsible for installing GSettings override files and generating appropriate dependencies on the GSettings...
dh_installifupdown
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...
dh_installinfo
dh_installinfo is a debhelper program that is responsible for installing info files into usr/share/info in the package build directory.
dh_installinit
dh_installinit is a debhelper program that is responsible for installing init scripts with associated defaults files, as well as upstart job files, and systemd...
dh_installlogcheck
dh_installlogcheck is a debhelper program that is responsible for installing logcheck rule files.
dh_installlogrotate
dh_installlogrotate is a debhelper program that is responsible for installing logrotate config files into etc/logrotate.d in package build directories. Files...
dh_installman
dh_installman is a debhelper program that handles installing man pages into the correct locations in package build directories. You tell it what man pages go in...
dh_installmanpages
dh_installmanpages is a debhelper program that is responsible for automatically installing man pages into usr/share/man/ in package build directories. This is a...
dh_installmenu
dh_installmenu is a debhelper program that is responsible for installing files used by the Debian menu package into package build directories. It also...
dh_installmime
dh_installmime is a debhelper program that is responsible for installing mime files into package build directories.
dh_installmodules
dh_installmodules is a debhelper program that is responsible for registering kernel modules. Kernel modules are searched for in the package build directory and...
dh_installpam
dh_installpam is a debhelper program that is responsible for installing files used by PAM into package build directories.
dh_installppp
dh_installppp is a debhelper program that is responsible for installing ppp ip-up and ip-down scripts into package build directories.
dh_installudev
dh_installudev is a debhelper program that is responsible for installing udev rules files. Code is added to the preinst and postinst to handle the upgrade from...
dh_installwm
dh_installwm is a debhelper program that is responsible for generating the postinst and prerm commands that register a window manager with...
dh_installxfonts
dh_installxfonts is a debhelper program that is responsible for registering X fonts, so their corresponding fonts.dir, fonts.alias, and fonts.scale be rebuilt...
dh_link
dh_link is a debhelper program that creates symlinks in package build directories. dh_link accepts a list of pairs of source and destination files. The source...
dh_lintian
dh_lintian is a debhelper program that is responsible for installing override files used by lintian into package build directories.
dh_listpackages
dh_listpackages is a debhelper program that outputs a list of all binary packages debhelper commands will act on. If you pass it some options, it will change...
dh_makeshlibs
dh_makeshlibs is a debhelper program that automatically scans for shared libraries, and generates a shlibs file for the libraries it finds. It also adds a call...
dh_md5sums
dh_md5sums is a debhelper program that is responsible for generating a DEBIAN/md5sums file, which lists the md5sums of each file in the package. These files are...
dh_movefiles
dh_movefiles is a debhelper program that is responsible for moving files out of debian/tmp or some other directory and into other package build directories...
dh_perl
dh_perl is a debhelper program that is responsible for generating the ${perl:Depends} substitutions and adding them to substvars files. The program will look at...
dh_prep
dh_prep is a debhelper program that performs some file cleanups in preparation for building a binary package. (This is what dh_clean -k used to do.) It removes...
dh_scrollkeeper
dh_scrollkeeper was a debhelper program that handled registering OMF files for ScrollKeeper. However, it no longer does anything, and is now deprecated.
dh_shlibdeps
dh_shlibdeps is a debhelper program that is responsible for calculating shared library dependencies for packages. This program is merely a wrapper around...
dh_strip
dh_strip is a debhelper program that is responsible for stripping executables, shared libraries, and static libraries that are not used for debugging. This...
dh_suidregister
This program used to register suid and sgid files with suidregister(1), but with the introduction of dpkg-statoverride(8), registration of files in this way is...
dh_testdir
dh_testdir tries to make sure that you are in the correct directory when building a Debian package. It makes sure that the file debian/control exists, as well...
dh_testroot
dh_testroot simply checks to see if you are root. If not, it exits with an error. Debian packages must be built as root, though you can use fakeroot(1)
dh_ucf
dh_ucf is a debhelper program that is responsible for generating the postinst and postrm commands that register files with ucf(1) and ucfr(1).
dh_undocumented
This program used to make symlinks to the undocumented.7 man page for man pages not present in a package. Debian policy now frowns on use of the undocumented.7...
dh_usrlocal
dh_usrlocal is a debhelper program that can be used for building packages that will provide a subdirectory in /usr/local when installed. It finds subdirectories...
Miscellanea (Section 7)
debhelper
Debhelper is used to help you build a Debian package. The philosophy behind debhelper is to provide a collection of small, simple, and easily understood tools...