.so files of compressed manpages change to symlinks
-edit package scripts (??)
add all other functionality of debstd (??)
dh_fixperms: allow listing of files not to be touched (diffucult).
+add suidregister support
+debhelper (0.4) unstable; urgency=low
+
+ * Added dh_strip to strip binaries and libraries.
+ * Fixed several man pages.
+
+ -- Joey Hess <joeyh@master.debian.org> Sun, 28 Sep 1997 20:46:32 -0400
+
debhelper (0.3) unstable; urgency=low
* Added support for automatic generation of debian install scripts to
-.TH DH_INSTALLDOCS 1
+.TH DH_FIXPERMS 1
.SH NAME
dh_fixperms \- fix permissions of files in package build directories
.SH SYNOPSIS
--- /dev/null
+#!/bin/sh -e
+#
+# Install cron scripts into the appropriate places.
+
+PATH=debian:$PATH:/usr/lib/debhelper
+source dh_lib
+
+for PACKAGE in $DH_DOPACKAGES; do
+ TMP=`tmpdir $PACKAGE`
+ EXT=`pkgext $PACKAGE`
+
+ for type in daily weekly monthly; do
+ if [ -e debian/${EXT}cron.$type ]; then
+ if [ ! -d debian/$TMP/etc/cron.$type ]; then
+ doit "install -o root -g root -d debian/$TMP/etc/cron.$type"
+ fi
+ doit "install debian/${EXT}cron.$type debian/$TMP/etc/cron.$type/$PACKAGE"
+ fi
+ done
+done
--- /dev/null
+.TH DH_INSTALLCRON 1
+.SH NAME
+dh_installcron \- install cron scripts into etc/cron.*
+.SH SYNOPSIS
+.B dh_installcron
+.I "[-v] [-a] [-i] [-ppackage]"
+.SH "DESCRIPTION"
+dh_installcron is a debhelper program that is responsible for installing
+cron scripts into etc/cron.* in package build directories. The files
+debian/cron.daily, debian/cron.weekly, and debian/cron.monthly are
+installed. If your package generates multiple binary packages, you can also
+use filenames like debian/package.cron.daily, where "package" is replaced
+with the name of the binary package this cron script goes into.
+.SH OPTIONS
+.TP
+.B \-v
+Verbose mode; show all commands that modify the package build directory.
+.TP
+.B \-a
+Install cron files for all architecture dependent packages.
+.TP
+.B \-i
+Install cron files for all architecture independent packages.
+.TP
+.B \-ppackage
+Install cron files for the package named "package".
+.SH NOTES
+The
+.B \-a
+.B \-i
+and
+.B \-p
+arguments are cumulative. If none are specified, then all packages listed in
+the control file will be effected.
+.SH ENVIRONMENT
+.TP
+.I DH_VERBOSE
+Enables verbose mode
+.SH "SEE ALSO"
+.BR /usr/doc/debhelper/README
+.SH "CONFORMS TO"
+Debian policy, version 2.3.0.0
+.SH AUTHOR
+Joey Hess <joeyh@master.debian.org>
# Run dpkg-shlibdeps to generate dependancies.
filelist=""
- for file in `find debian/$TMP -type f \( -perm +111 \) -or -name "*.so.*" | tr "\n" " "` ; do
+ for file in `find debian/$TMP -type f \( -perm +111 -or -name "*.so*" \) | tr "\n" " "` ; do
case "`file $file`" in
*ELF*)
filelist="$file $filelist"
-.TH DH_INSTALLDOCS 1
+.TH DH_INSTALLDEBFILES 1
.SH NAME
dh_installdebfiles \- install files into the DEBIAN directory
.SH SYNOPSIS
-.TH DH_INSTALLDOCS 1
+.TH DH_INSTALLMANPAGES 1
.SH NAME
dh_installmanpages \- install man pages into package build directories
.SH SYNOPSIS
-.TH DH_INSTALLDOCS 1
+.TH DH_INSTALLMENU 1
.SH NAME
dh_installmenu \- install debian menu files into package build directories
.SH SYNOPSIS
--- /dev/null
+#!/bin/sh -e
+#
+# Strip files.
+
+PATH=debian:$PATH:/usr/lib/debhelper
+source dh_lib
+
+for PACKAGE in $DH_DOPACKAGES; do
+ TMP=`tmpdir $PACKAGE`
+
+ # Handle executables and shared libraries.
+ for file in `find debian/$TMP -type f \( -perm +111 -or -name "*.so*" \) 2>/dev/null` ; do
+ case "`file $file`" in
+ *ELF*shared*)
+ doit "strip --strip-unneeded $file"
+ ;;
+ *ELF*executable*)
+ doit "strip --remove-section=comment --remove-section=note $file"
+ ;;
+ esac
+ done
+
+ # Handle static libraries.
+ for file in `find debian/$TMP -type f -name "lib*.a" 2>/dev/null` ; do
+ # Don't strip debug libraries.
+ if ! expr "$file" : ".*_g\.a" >/dev/null ; then
+ doit "strip --strip-debug $file"
+ fi
+ done
+done
-.TH DH_INSTALLDOCS 1
+.TH DH_TESTDIR 1
.SH NAME
dh_testdir \- test directory before building debian package
.SH SYNOPSIS
-.TH DH_INSTALLDOCS 1
+.TH DH_TESTROOT 1
.SH NAME
dh_testroot \- ensure that a package is built as root
.SH SYNOPSIS
dh_installmenu
dh_installmanpages
dh_installchangelogs
+ dh_strip
dh_compress
dh_installdebfiles
dh_fixperms
dh_installmenu -a
dh_installmanpages -a
dh_installchangelogs -a
+ dh_strip -a
dh_compress -a
dh_installdebfiles -a
dh_fixperms -a