dh_compress
dh_fixperms
dh_suidregister
- dh_installdebfiles
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
dh_makeshlibs
dh_md5sums
dh_builddeb
scripts. If you want these automatically generated things included in your
debian install scripts, then you need to add "#DEBHELPER#" to your scripts,
in the place the code should be added. "#DEBHELPER#" will be replaced by any
-autogenerated code when you run dh_installdebfiles.
+autogenerated code when you run dh_installdeb.
All scripts that automatically generate code in this way let it be disabled
by the -n parameter.
#!/bin/sh -e
#
-# Install files from debian/ into the package's DEBIAN directory.
-# Also generates the control file.
+# This program is depricated, but left in the package for backwards
+# compatability. It simply calls the 3 programs that replaced it.
PATH=debian:$PATH:/usr/lib/debhelper
-. dh_lib
-for PACKAGE in $DH_DOPACKAGES; do
- TMP=`tmpdir $PACKAGE`
- EXT=`pkgext $PACKAGE`
+echo "* Note: dh_installdebfiles is depricated." >&2
- if [ ! -d $TMP/DEBIAN ]; then
- doit "install -o root -g root -d $TMP/DEBIAN"
- fi
-
- # Install debian install scripts.
- # If any .debhelper files exist, add them into the scripts.
- for file in postinst preinst prerm postrm; do
- if [ -f debian/$EXT$file ]; then
- # Add this into the script, where it has #DEBHELPER#
- if [ -f debian/$EXT$file.debhelper ]; then
- complex_doit "perl -pe 's~#DEBHELPER#~qx{cat debian/$EXT$file.debhelper}~eg' < debian/$EXT$file > $TMP/DEBIAN/$file"
- doit "chown root.root $TMP/DEBIAN/$file"
- doit "chmod 755 $TMP/DEBIAN/$file"
- else
- doit "install -o root -g root -p debian/$EXT$file $TMP/DEBIAN/$file"
- fi
- else
- # Auto-generate script header and add .debhelper
- # content to it.
- if [ -f debian/$EXT$file.debhelper ]; then
- complex_doit "echo '#!/bin/sh -e' > $TMP/DEBIAN/$file"
- complex_doit "cat debian/$EXT$file.debhelper >> $TMP/DEBIAN/$file"
- doit "chown root.root $TMP/DEBIAN/$file"
- doit "chmod 755 $TMP/DEBIAN/$file"
- fi
- fi
- done
-
- # Install non-executable files
- for file in shlibs conffiles; do
- if [ -f debian/$EXT$file ]; then
- doit "install -o root -g root -m 644 -p debian/$EXT$file $TMP/DEBIAN/$file"
- fi
- done
-
- # Run dpkg-shlibdeps to generate dependancies.
- filelist=""
- for file in `find $TMP -type f \( -perm +111 -or -name "*.so*" \) | tr "\n" " "` ; do
- case "`file $file`" in
- *ELF*)
- filelist="$file $filelist"
- ;;
- esac
- done
- if [ "$filelist" ]; then
- doit "dpkg-shlibdeps -Tdebian/${EXT}substvars $filelist"
- fi
-
- # Generate and install control file.
- doit "dpkg-gencontrol -p$PACKAGE -Tdebian/${EXT}substvars -P$TMP"
- doit "chown root.root $TMP/DEBIAN/control"
-done
+dh_installdeb $*
+dh_shlibdeps $*
+dh_gencontrol $*
dh_installinit \- install init scripts into package build directories
.SH SYNOPSIS
.B dh_installinit
-.I "[-v] [-a] [-i] [-ppackage] [-Ptmpdir] [-n] [-r] [-d] [-u params]"
+.I "[-v] [-a] [-i] [-ppackage] [-Ptmpdir] [-n] [-r] [-d] [-uparams]"
.SH "DESCRIPTION"
dh_installinit is a debhelper program that is responsible for installing
init scripts into package build directories.
filename the init script is installed as in etc/init.d/ . This may be useful
for daemons with named ending in "d".
.TP
-.B \-u params
+.B \-uparams
Pass "params" to
.BR update-rc.d (8)
If not specified, "default" will be passed to