r8: Initial Import
authorjoey <joey>
Tue, 17 Aug 1999 04:24:34 +0000 (04:24 +0000)
committerjoey <joey>
Tue, 17 Aug 1999 04:24:34 +0000 (04:24 +0000)
14 files changed:
TODO
debian/changelog
dh_fixperms.1
dh_installcron [new file with mode: 0755]
dh_installcron.1 [new file with mode: 0644]
dh_installdebfiles
dh_installdebfiles.1
dh_installmanpages.1
dh_installmenu.1
dh_strip [new file with mode: 0755]
dh_testdir.1
dh_testroot.1
examples/rules
examples/rules.multi

diff --git a/TODO b/TODO
index 078a1d4e882684399b7fd3917cb8d8fbccf136a6..8bf234fd83a67682756c48d586c197c55e92edad 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,4 +1,4 @@
 .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
index f90410213eae2d60e2f599ea48bdd7b6c179e09d..27594de99d4d8c7dafa8fe7677755da6b8742c3a 100644 (file)
@@ -1,3 +1,10 @@
+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
index 6722bd117e0dadbf512075d2ee5dbc20f0371de3..b5cb4e138f553dc5c9be7fd68a71f8ae4020d021 100644 (file)
@@ -1,4 +1,4 @@
-.TH DH_INSTALLDOCS 1
+.TH DH_FIXPERMS 1
 .SH NAME
 dh_fixperms \- fix permissions of files in package build directories
 .SH SYNOPSIS
diff --git a/dh_installcron b/dh_installcron
new file mode 100755 (executable)
index 0000000..7db8cdc
--- /dev/null
@@ -0,0 +1,20 @@
+#!/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
diff --git a/dh_installcron.1 b/dh_installcron.1
new file mode 100644 (file)
index 0000000..2819958
--- /dev/null
@@ -0,0 +1,44 @@
+.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>
index a09cd1282c5e2698f6d4ca705ad73090120f390d..37c630890c2babd85a5adbcfed4e51ba5a72316a 100755 (executable)
@@ -50,7 +50,7 @@ for PACKAGE in $DH_DOPACKAGES; do
 
        # 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"
index 3f63986892eda9eeb1fc75336a8972d138e08dd2..3a7e93c5964f6e03113a11dcf4c97e637081b11c 100644 (file)
@@ -1,4 +1,4 @@
-.TH DH_INSTALLDOCS 1
+.TH DH_INSTALLDEBFILES 1
 .SH NAME
 dh_installdebfiles \- install files into the DEBIAN directory
 .SH SYNOPSIS
index 5fbad2b1947325648988d836c69cf703c551f302..bb08181bcf20b85dc091a84f07dadf432a68b116 100644 (file)
@@ -1,4 +1,4 @@
-.TH DH_INSTALLDOCS 1
+.TH DH_INSTALLMANPAGES 1
 .SH NAME
 dh_installmanpages \- install man pages into package build directories
 .SH SYNOPSIS
index f3eba625225c18671827192e165fec002eb99bf5..e26c84e58ad6f014981a007db6d15cb5bcbf0a82 100644 (file)
@@ -1,4 +1,4 @@
-.TH DH_INSTALLDOCS 1
+.TH DH_INSTALLMENU 1
 .SH NAME
 dh_installmenu \- install debian menu files into package build directories
 .SH SYNOPSIS
diff --git a/dh_strip b/dh_strip
new file mode 100755 (executable)
index 0000000..2ecdcd2
--- /dev/null
+++ b/dh_strip
@@ -0,0 +1,30 @@
+#!/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
index 569a580b7f5efc22e00efb5d52aa8f0eb6c9219e..da2455420fb4a226720b10827254d49b0b4b9a60 100644 (file)
@@ -1,4 +1,4 @@
-.TH DH_INSTALLDOCS 1
+.TH DH_TESTDIR 1
 .SH NAME
 dh_testdir \- test directory before building debian package
 .SH SYNOPSIS
index f4dca2e592f77324be09e9dbdac50c1264b40767..78caa7e974786eebf66eee266fe0a43745f00912 100644 (file)
@@ -1,4 +1,4 @@
-.TH DH_INSTALLDOCS 1
+.TH DH_TESTROOT 1
 .SH NAME
 dh_testroot \- ensure that a package is built as root
 .SH SYNOPSIS
index b18213c3ee6a4d1ebdfadc579213dfc5449b5f6a..efd4b76c7496e0b4ad4542fc40387328cc7304a9 100755 (executable)
@@ -35,6 +35,7 @@ binary-arch: build
        dh_installmenu
        dh_installmanpages
        dh_installchangelogs
+       dh_strip
        dh_compress
        dh_installdebfiles
        dh_fixperms
index 118737cb5462d8dae87a42a0f1cd410fe313c0c8..b31578e6b7f3846f85f18b71d5d852f9a650fe80 100755 (executable)
@@ -51,6 +51,7 @@ binary-arch: build
        dh_installmenu -a
        dh_installmanpages -a
        dh_installchangelogs -a
+       dh_strip -a
        dh_compress -a
        dh_installdebfiles -a
        dh_fixperms -a