]> git.donarmstrong.com Git - debhelper.git/commitdiff
r157: Initial Import
authorjoey <joey>
Tue, 17 Aug 1999 05:07:14 +0000 (05:07 +0000)
committerjoey <joey>
Tue, 17 Aug 1999 05:07:14 +0000 (05:07 +0000)
13 files changed:
autoscripts/postinst-menu
autoscripts/postinst-menu-method
autoscripts/postinst-suid
autoscripts/postinst-wm
autoscripts/postrm-menu-method
autoscripts/postrm-suid
autoscripts/postrm-wm
debian/changelog
debian/control
debian/rules
dh_installdocs
dh_installdocs.1
dh_suidregister

index a73a169208ae9d6806d87cda985e805c66346ec5..49b2c5de2daa1ffcdfd2b993dd64b729c3952fe9 100644 (file)
@@ -1 +1 @@
-if [ -x /usr/bin/update-menus ] ; then update-menus ; fi
+if command -v update-menus >/dev/null 2>&1 ; then update-menus ; fi
index 0ea7959b1a93b5d8b8cbe1bd9d5e2d2d3bc4f0f7..7f7aaa967b5e6e4b6eaeb4539cb43e8d0f8130a3 100644 (file)
@@ -1,5 +1,5 @@
 inst=/etc/menu-methods/#PACKAGE#
-if [ -x /usr/bin/update-menus -a -f $inst -a -x /usr/sbin/install-menu ] ; then
+if command -v update-menus >/dev/null 2>&1 && [ -f $inst ] ; then
        chmod a+x $inst
        update-menus
 fi
index 1294d313a63dfa4d695d50264eaf3d301decc980..de638efe0fe5523476db030c568feea103f84f88 100644 (file)
@@ -1,4 +1,4 @@
-if [ -e /etc/suid.conf -a -x /usr/sbin/suidregister ]; then
+if command -v suidregister >/dev/null 2>&1 && [ -e /etc/suid.conf ]; then
         suidregister -s #PACKAGE# /#FILE# #OWNER# #GROUP# #PERMS#
 else
         chown #OWNER#.#GROUP# /#FILE#
index 94c052fc87d966c2b73f41e3da4f59b726615503..925c788334947c546b81f5618cd6da3c29def1b4 100644 (file)
@@ -1,3 +1,3 @@
-if [ -x /usr/sbin/register-window-manager ] ; then
+if command -v register-window-manager >/dev/null 2>&1; then
        register-window-manager --add #WM#
 fi
index 3e63f2f422585d9a8c995c059f12a2ebd12caef8..0c2baae9d73c838db62d38395389363fe3d359b3 100644 (file)
@@ -1,3 +1,3 @@
 inst=/etc/menu-methods/#PACKAGE#
 if [ "$1" = "remove" -a -f "$inst" ]; then chmod a-x $inst ; fi
-if [ -x /usr/bin/update-menus ] ; then update-menus; fi
+if command -v update-menus >/dev/null 2>&1 ; then update-menus; fi
index 9712d25646e4aa4cd6d1c20e39eece2648b609ee..d4a761996421cf1ee4fbb0e12374f10ea1f22c4b 100644 (file)
@@ -1,3 +1,3 @@
-if [ -e /etc/suid.conf -a -x /usr/sbin/suidunregister ]; then
+if command -v suidunregister >/dev/null 2>&1 && [ -e /etc/suid.conf ]; then
         suidunregister -s #PACKAGE# /#FILE#
 fi
index 6dc9f5da434a542cb716fe55ed4970bfdb3c88b8..8345aa97b9ca5877078de385d890d2d038f88079 100644 (file)
@@ -1,3 +1,4 @@
-if [ "$1" == "purge" -a -x /usr/sbin/register-window-manager ] ; then
+if [ "$1" == "purge" ] && command -v register-window-manager >/dev/null 2>&1
+then
        register-window-manager --remove #WM#
 fi
index 3db2cd84abbafa3a929c59d487490c96b93c0943..5cdf2f47c0b076eebe1ffbfee822fbd6277aaf65 100644 (file)
@@ -1,3 +1,17 @@
+debhelper (1.2.21) unstable; urgency=low
+
+  * dh_installdocs: Added doc-base support, if debian/<package>.doc-base
+    exists, it will be installed as a doc-base control file. If you use this,
+    you probably want to add "dh_testversion 1.2.21" to the rules file to make
+    sure your package is built with a new enough debhelper.
+  * dh_installdocs: now supports -n to make it not modify postinst/prerm.
+  * dh_suidregister: turned off leading 0/1 in permissions settings, until
+    suidregister actually supports it.
+  * autoscripts/*: instead of "text -x", use "command -v" to see if various
+    binaries exist. This gets rid of lots of hard-coded paths.
+
+ -- Joey Hess <joeyh@master.debian.org>  Wed, 30 Dec 1998 22:50:04 -0500
+
 debhelper (1.2.20) unstable; urgency=low
 
   * dh_compress: handle the hard link stuff properly, it was broken. Also
index 8edb5aa9a7c144d2dc930f09fe27e7a276b91cd1..7254be98f111e9fbd4824d184c8f8a4238c1fe47 100644 (file)
@@ -12,4 +12,5 @@ Description: helper programs for debian/rules
  A collection of programs that can be used in a debian/rules file to
  automate common tasks related to building binary 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, etc.
+ file permissions, integrate your package with the debian menu system,
+ suidmanager, doc-base, etc.
index 14b5e7f0d8f5455b435940341ae74e1392ec9e7e..0d9676f25e8f3206ffcb92ef21573d09478bf83d 100755 (executable)
@@ -73,4 +73,4 @@ dist:
         fi
 
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary localdist
+.PHONY: build clean binary-indep binary-arch binary dist
index 97117a344de1313ca9248a4337a774b459cc64ff..347881cc1461348ce036f3cc6aee463c06895cac 100755 (executable)
@@ -2,6 +2,7 @@
 #
 # Reads debian/docs, installs all files listed there into /usr/doc/$PACKAGE
 # Also installs the debian/copyright and debian/README.debian and debian/TODO
+# and handles debian/doc-base.
 
 BEGIN { push @INC, "debian", "/usr/lib/debhelper" }
 use Dh_Lib;
@@ -60,4 +61,18 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
        if ($copyright) {
                        doit("install","-m","644","-p",$copyright,"$TMP/usr/doc/$PACKAGE/copyright");
        }
+       
+       # Handle doc-base files.
+       $file=pkgfile($PACKAGE,"doc-base");
+       if ($file) {
+               if (! -d "$TMP/usr/share/doc-base/") {
+                       doit("install","-d","$TMP/usr/share/doc-base/");
+               }
+               doit("install","-p","-m644",$file,
+                    "$TMP/usr/share/doc-base/$PACKAGE");
+               if (! $dh{NOSCRIPTS}) {
+                       autoscript($PACKAGE,"postinst","postinst-doc-base");
+                       autoscript($PACKAGE,"postrm","postrm-doc-base")
+               }
+       }
 }
index f711492bbc4eda0e2eb9a56f819c27dc8c5a9577..abdef780367ccf57603ea8d7acb6bc41fea3fed6 100644 (file)
@@ -3,7 +3,7 @@
 dh_installdocs \- install documentation into package build directories
 .SH SYNOPSIS
 .B dh_installdocs
-.I "[debhelper options] [-A] [file ...]"
+.I "[debhelper options] [-A] [-n] [file ...]"
 .SH "DESCRIPTION"
 dh_installdocs is a debhelper program that is responsible for installing
 documentation into usr/doc/package in package build directories.
@@ -29,6 +29,15 @@ debian/package.TODO can be used to specify files for subpackages.
 .P
 A file named debian/package.docs (debian/docs may be used for the first
 binary package in debian/control) can list other files to be installed.
+.P
+A file named debian/package.doc-base (debian/doc-base may be used for the
+first binary package in debian/control), if it exists, will make
+dh_installdocs use that file as a doc-base control file, and will
+automatically generate the postinst and prerm commands needed to
+interface with the doc-base package. See
+.BR dh_installdeb (1)
+for an explanation of how this works. Note that the package name will be
+used as the doc-base document id.
 .SH OPTIONS
 .TP
 .B debhelper options
@@ -40,6 +49,9 @@ for a list of options common to all debhelper commands.
 Install all files specified by command line parameters in ALL packages
 acted on.
 .TP
+.B \-n, \--noscripts
+DO not modify postinst/prerm scripts.
+.TP
 .B file ...
 Install these files as documentation into the first package acted on. (Or in
 all packages if -A is specified).
@@ -53,6 +65,8 @@ See
 for a list of environment variables that affect all debhelper commands.
 .SH "SEE ALSO"
 .BR debhelper (1)
+.TP
+.BR install-docs (8)
 .SH BUGS
 It's impossible to specify filenames with spaces or other whitespace in them
 in debian/docs file. This is more a historical design flaw than a bug.
index d5b10ebd33ae05392bc40c474bff3c1e829a2b83..951984fe62c9dc8ce5f7ef1907cc70b0a8d36885 100755 (executable)
@@ -52,7 +52,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
                $group=getgrgid($gid);
                # Note that I have to print mode in ocal, stripping file type.
                $sedstr=sprintf("s:#FILE#:$file:;s/#PACKAGE#/$PACKAGE/;s/#OWNER#/$user/;s/#GROUP#/$group/;s/#PERMS#/%#o/",
-                               $mode & 07777);
+                               $mode & 00777);
 
                autoscript($PACKAGE,"postinst","postinst-suid",$sedstr);
                autoscript($PACKAGE,"postrm","postrm-suid","$sedstr");