From c08d61e0e87e5e8f58295a0e20f7461f7126f70f Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 28 Jul 2003 18:46:00 +0000 Subject: [PATCH] r954: This commit was manufactured by cvs2svn to create tag 'upstream_version_0_6'. --- .foo | 0 BUGS | 0 debian/debhelper2.substvars | 0 debian/debhelperfoo.substvars | 0 dh_du | 11 ------ dh_du.1 | 16 -------- dh_gencontrol | 30 -------------- dh_gencontrol.1 | 36 ----------------- dh_getopt.pl | 57 --------------------------- dh_installdeb | 55 -------------------------- dh_installdeb.1 | 50 ----------------------- dh_installdirs | 42 -------------------- dh_installdirs.1 | 46 ---------------------- dh_installinit | 74 ----------------------------------- dh_installinit.1 | 62 ----------------------------- dh_makeshlibs | 49 ----------------------- dh_makeshlibs.1 | 63 ----------------------------- dh_md5sums | 46 ---------------------- dh_md5sums.1 | 36 ----------------- dh_movefiles.1 | 49 ----------------------- dh_shlibdeps | 28 ------------- dh_shlibdeps.1 | 37 ------------------ dh_suidregister | 72 ---------------------------------- dh_suidregister.1 | 62 ----------------------------- dh_testversion.1 | 51 ------------------------ dh_testversion.in | 23 ----------- dh_undocumented | 54 ------------------------- dh_undocumented.1 | 62 ----------------------------- 28 files changed, 1111 deletions(-) delete mode 100644 .foo delete mode 100644 BUGS delete mode 100644 debian/debhelper2.substvars delete mode 100644 debian/debhelperfoo.substvars delete mode 100755 dh_du delete mode 100644 dh_du.1 delete mode 100755 dh_gencontrol delete mode 100644 dh_gencontrol.1 delete mode 100755 dh_getopt.pl delete mode 100755 dh_installdeb delete mode 100644 dh_installdeb.1 delete mode 100755 dh_installdirs delete mode 100644 dh_installdirs.1 delete mode 100755 dh_installinit delete mode 100644 dh_installinit.1 delete mode 100755 dh_makeshlibs delete mode 100644 dh_makeshlibs.1 delete mode 100755 dh_md5sums delete mode 100644 dh_md5sums.1 delete mode 100644 dh_movefiles.1 delete mode 100755 dh_shlibdeps delete mode 100644 dh_shlibdeps.1 delete mode 100755 dh_suidregister delete mode 100644 dh_suidregister.1 delete mode 100644 dh_testversion.1 delete mode 100644 dh_testversion.in delete mode 100755 dh_undocumented delete mode 100644 dh_undocumented.1 diff --git a/.foo b/.foo deleted file mode 100644 index e69de29..0000000 diff --git a/BUGS b/BUGS deleted file mode 100644 index e69de29..0000000 diff --git a/debian/debhelper2.substvars b/debian/debhelper2.substvars deleted file mode 100644 index e69de29..0000000 diff --git a/debian/debhelperfoo.substvars b/debian/debhelperfoo.substvars deleted file mode 100644 index e69de29..0000000 diff --git a/dh_du b/dh_du deleted file mode 100755 index d035899..0000000 --- a/dh_du +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/perl -w -# -# Generate a DEBIAN/du file, that lists the disk usage of the directories in -# the package. -# -# No longer - it was decided these files are a bad idea. - -BEGIN { push @INC, "debian", "/usr/share/debhelper" } -use Dh_Lib; - -warning("this program does nothing and is deprecated. Remove it from debian/rules."); diff --git a/dh_du.1 b/dh_du.1 deleted file mode 100644 index aa3849e..0000000 --- a/dh_du.1 +++ /dev/null @@ -1,16 +0,0 @@ -.TH DH_DU 1 "" "Debhelper Commands" "Debhelper Commands" -.SH NAME -dh_du \- generate DEBIAN/du file (deprecated) -.SH SYNOPSIS -.B dh_du -.SH "DESCRIPTION" -dh_du is a debhelper program that was responsible for generating -a DEBIAN/du file, which listed the disk usage of directories in the package. -.P -This program is now deprecated, and does nothing, after a decision by the -debian developers that du control files should not exit. It will simply -output a warning message now. -.SH "SEE ALSO" -.BR debhelper (1) -.SH AUTHOR -Joey Hess diff --git a/dh_gencontrol b/dh_gencontrol deleted file mode 100755 index a2d152c..0000000 --- a/dh_gencontrol +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/perl -w -# -# Generate and install the control file. Simple dpkg-gencontrol wrapper. - -BEGIN { push @INC, "debian", "/usr/share/debhelper" } -use Dh_Lib; -init(); - -foreach $PACKAGE (@{$dh{DOPACKAGES}}) { - $TMP=tmpdir($PACKAGE); - $EXT=pkgext($PACKAGE); - - $changelog=pkgfile($PACKAGE,'changelog'); - if (! $changelog) { - $changelog='debian/changelog'; - } - - if ( ! -d '$TMP/DEBIAN' ) { - doit("install","-o","root","-g","root","-d","$TMP/DEBIAN"); - } - - # Generate and install control file. - doit("dpkg-gencontrol","-l$changelog","-isp","-p$PACKAGE", - "-Tdebian/$EXT\substvars","-P$TMP",@{$dh{U_PARAMS}}); - - # This chmod is only necessary if the user sets the umask to something odd. - doit("chmod","644","$TMP/DEBIAN/control"); - - doit("chown","root.root","$TMP/DEBIAN/control"); -} diff --git a/dh_gencontrol.1 b/dh_gencontrol.1 deleted file mode 100644 index 7918261..0000000 --- a/dh_gencontrol.1 +++ /dev/null @@ -1,36 +0,0 @@ -.TH DH_GENCONTROL 1 "" "Debhelper Commands" "Debhelper Commands" -.SH NAME -dh_gencontrol \- generate and install control file -.SH SYNOPSIS -.B dh_gencontrol -.I "[debhelper options] [-uparams]" -.SH "DESCRIPTION" -dh_gencontrol is a debhelper program that is responsible for generating -control files, and installing them into the DEBIAN directory with the proper -permissions. -.P -This program is merely a wrapper around -.BR dpkg-gencontrol (1) -.SH OPTIONS -.TP -.B debhelper options -See -.BR debhelper (1) -for a list of options common to all debhelper commands. -.TP -.B \-uparams, \--dpkg-gencontrol-params=params -Pass "params" to -.BR dpkg-gencontrol (1) -.SH ENVIRONMENT -See -.BR debhelper (1) -for a list of environment variables that affect all debhelper commands. -.SH "SEE ALSO" -.TP -.BR debhelper (1) -.TP -.BR dpkg-shlibdeps (1) -.SH "CONFORMS TO" -Debian policy, version 2.5.0.0 -.SH AUTHOR -Joey Hess diff --git a/dh_getopt.pl b/dh_getopt.pl deleted file mode 100755 index 4d1d390..0000000 --- a/dh_getopt.pl +++ /dev/null @@ -1,57 +0,0 @@ -#!/usr/bin/perl -# -# Because the getopt() program is so horribly broken, I wrote my own argument -# processer that uses the find Getopt::Long module. This is used by all -# debhelper shell scripts. -# -# Joey Hess, GPL copyright 1998. - -BEGIN { push @INC, "debian", "/usr/lib/debhelper" } -use strict; -use Dh_Getopt; - -# This is a tricky (and nasty) bit: override the error() function, which -# comes from Dh_Lib, with one of our own so we print out the list of errors -# to the shell, which can do what it wants with them. -sub Dh_Getopt::error { my $message=shift; - print "DH_PARSE_ERROR='$message'\n"; - exit 1; -} - -# Parse options. -my %options=Dh_Getopt::parseopts(); - -# Change a few lists in %options into strings, -# generate some options that only need to be visible to the -# shell scripts so Dh_Getopt doesn't bother generating. -$options{DOPACKAGES}=join " ",@{$options{DOPACKAGES}}; -if ($#{$options{EXCLUDE}} > -1) { - $options{EXCLUDE_GREP}=join '|', @{$options{EXCLUDE}}; -} -$options{EXCLUDE}=join " ",@{$options{EXCLUDE}}; - -# Check to see if DH_VERBOSE environment variable was set, if so, -# make sure verbose is on. -if (defined $main::ENV{DH_VERBOSE}) { - if ($main::ENV{DH_VERBOSE} ne undef) { - $options{VERBOSE}=1; - } -} - -# Check to see if DH_NO_ACT environment variable was set, if so, -# make sure no act mode is on. -if (defined $main::ENV{DH_NO_ACT}) { - if ($main::ENV{DH_NO_ACT} ne undef) { - $options{NO_ACT}=1; - } -} - -# Now output everything, in a format suitable for a shell to eval it. -foreach (keys(%options)) { - if (defined $options{$_}) { - print "DH_$_='$options{$_}'\n"; - } -} - -# This sets $@ in the shell to whatever arguements remain. -print "set -- @ARGV\n" diff --git a/dh_installdeb b/dh_installdeb deleted file mode 100755 index d3eebe7..0000000 --- a/dh_installdeb +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/perl -w -# -# Install files from debian/ into the package's DEBIAN directory. - -BEGIN { push @INC, "debian", "/usr/share/debhelper" } -use Dh_Lib; -init(); - -foreach $PACKAGE (@{$dh{DOPACKAGES}}) { - $TMP=tmpdir($PACKAGE); - $EXT=pkgext($PACKAGE); - - if (! -d "$TMP/DEBIAN") { - doit("install","-o","root","-g","root","-d","$TMP/DEBIAN"); - } - - # Install debian install scripts. - # If any .debhelper files exist, add them into the scripts. - foreach $file (qw{postinst preinst prerm postrm}) { - $f=pkgfile($PACKAGE,$file); - if ($f) { - if (-f "debian/$EXT$file.debhelper") { - # Add this into the script, where it has - # #DEBHELPER# - # TODO: do internally, no perl fork? - complex_doit("perl -pe 's~#DEBHELPER#~qx{cat debian/$EXT$file.debhelper}~eg' < $f > $TMP/DEBIAN/$file"); - } - else { - # Just get rid of any #DEBHELPER# in the - # script. - complex_doit("sed s/#DEBHELPER#// < $f > $TMP/DEBIAN/$file"); - } - doit("chown","root.root","$TMP/DEBIAN/$file"); - doit("chmod",755,"$TMP/DEBIAN/$file"); - } - else { - # Auto-generate script header and add .debhelper - # content to it. - if (-f "debian/$EXT$file.debhelper") { - 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"); - } - } - } - - # Install non-executable files - foreach $file (qw{shlibs conffiles}) { - $f=pkgfile($PACKAGE,$file); - if ($f) { - doit("install","-o","root","-g","root","-m",644,"-p",$f,"$TMP/DEBIAN/$file"); - } - } -} diff --git a/dh_installdeb.1 b/dh_installdeb.1 deleted file mode 100644 index 1d17b96..0000000 --- a/dh_installdeb.1 +++ /dev/null @@ -1,50 +0,0 @@ -.TH DH_INSTALLDEB 1 "" "Debhelper Commands" "Debhelper Commands" -.SH NAME -dh_installdeb \- install files into the DEBIAN directory -.SH SYNOPSIS -.B dh_installdeb -.I "[debhelper options]" -.SH "DESCRIPTION" -dh_installdeb is a debhelper program that is responsible for installing -files into the DEBIAN directory in package build directories with the -correct permissions. -.P -dh_installdeb automatically installs the following files from debian/ into -the DEBIAN directory: - postinst - preinst - postrm - prerm - shlibs - conffiles -.P -(For packages other than the first binary package listed in debian/control, -you must prefix these filenames with then name of the "package.", for example, -"foo.postinst". You can also prefix the filenames the same way for the first -binary package, for consitency.) -.P -The files postinst, preinst, postrm, and prerm are handled specially: If a -corresponding file named debian/script.debhelper exists, the contents of that -file are merged into the script as follows: If the script exists, then -anywhere in it that "#DEBHELPER#" appears, the text of the .debhelper file is -inserted. If the script does not exist, then a script is generated from -the .debhelper file. The .debhelper files are created by other debhelper -programs, such as -.BR dh_installmenu (1) -, and are shell script fragments. -.SH OPTIONS -.TP -.B debhelper options -See -.BR debhelper (1) -for a list of options common to all debhelper commands. -.SH ENVIRONMENT -See -.BR debhelper (1) -for a list of environment variables that affect all debhelper commands. -.SH "SEE ALSO" -.BR debhelper (1) -.SH "CONFORMS TO" -Debian policy, version 2.5.0.0 -.SH AUTHOR -Joey Hess diff --git a/dh_installdirs b/dh_installdirs deleted file mode 100755 index 7d5e49c..0000000 --- a/dh_installdirs +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/perl -w -# -# Reads debian/dirs, creates the directories listed there - -BEGIN { push @INC, "debian", "/usr/share/debhelper" } -use Dh_Lib; -init(); - -foreach $PACKAGE (@{$dh{DOPACKAGES}}) { - $TMP=tmpdir($PACKAGE); - $file=pkgfile($PACKAGE,"dirs"); - - if (! -e $TMP) { - doit("install","-d",$TMP); - } - - undef @dirs; - - if ($file) { - @dirs=filearray($file) - } - - if (($PACKAGE eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) { - push @dirs, @ARGV; - } - - if (@dirs) { - # Stick the $TMP onto the front of all the dirs. - # This is necessary, for 2 reasons, one to make them - # be in the right directory, but more importantly, it - # protects against the danger of absolute dirs being - # specified. - @dirs=map { - $_="$TMP/$_"; - tr:/:/:s; # just beautification. - $_ - } @dirs; - - # Create dirs. - doit("install","-d",@dirs); - } -} diff --git a/dh_installdirs.1 b/dh_installdirs.1 deleted file mode 100644 index 95be715..0000000 --- a/dh_installdirs.1 +++ /dev/null @@ -1,46 +0,0 @@ -.TH DH_INSTALLDIRS 1 "" "Debhelper Commands" "Debhelper Commands" -.SH NAME -dh_installdirs \- create subdirectories in package build directories -.SH SYNOPSIS -.B dh_installdirs -.I "[debhelper options] [-A] [dir ...]" -.SH "DESCRIPTION" -dh_installdirs is a debhelper program that is responsible for creating -subdirectories in package build directories. -.P -Any directory names specified as parameters will be created in the package -build directory of the first package dh_installdirs is told to act on. By -default, this is the first binary package in debian/control, but if you use --p, -i, or -a flags, it will be the first package specified by those flags. -.P -A file named debian/package.dirs (debian/dirs may be used for the first -binary package in debian/control) can list other directories to be created. -Separate the directory names with whitespace. -.P -Be sure to only use directory names relative to the package build -directory. Ie, "/usr/bin" should not be used, use "usr/bin" instead. -.SH OPTIONS -.TP -.B debhelper options -See -.BR debhelper (1) -for a list of options common to all debhelper commands. -.TP -.B \-A, \--all -Create any directories specified by command line parameters in ALL packages -acted on, not just the first. -.TP -.B dir ... -Create these directories in the package build directory of the first package -acted on. (Or in all packages if -A is specified.) -.SH ENVIRONMENT -See -.BR debhelper (1) -for a list of environment variables that affect all debhelper commands. -.SH "SEE ALSO" -.BR debhelper (1) -.SH BUGS -It's impossible to specify filenames with spaces or other whitespace in them -in debian/dirs file. This is more a historical design flaw than a bug. -.SH AUTHOR -Joey Hess diff --git a/dh_installinit b/dh_installinit deleted file mode 100755 index c43d24d..0000000 --- a/dh_installinit +++ /dev/null @@ -1,74 +0,0 @@ -#!/usr/bin/perl -w -# -# Install debian/init[.d], and set up the postinst and postrm for init -# scripts. - -BEGIN { push @INC, "debian", "/usr/share/debhelper" } -use Dh_Lib; -init(); - -foreach $PACKAGE (@{$dh{DOPACKAGES}}) { - $TMP=tmpdir($PACKAGE); - - # Figure out what filename to install it as. - my $script; - if ($dh{D_FLAG}) { - # -d on the command line sets D_FLAG. We will - # remove a trailing 'd' from the package name and - # use that as the name. - $script=$PACKAGE; - if ($script=~m/(.*)d$/) { - $script=$1; - } - else { - warning("\"$PACKAGE\" has no final d' in its name, but -d was specified."); - } - } - elsif ($dh{INIT_SCRIPT}) { - $script=$dh{INIT_SCRIPT}; - } - else { - $script=$PACKAGE; - } - - $init=pkgfile($PACKAGE,$script) || pkgfile($PACKAGE,"init") || - pkgfile($PACKAGE,"init.d"); - - if ($init ne '') { - if (! -d "$TMP/etc/init.d") { - doit("install","-d","$TMP/etc/init.d"); - } - - doit("install","-p","-m755",$init,"$TMP/etc/init.d/$script"); - - # This is set by the -u "foo" command line switch, it's - # the parameters to pass to update-rc.d. If not set, - # we have to say "defaults". - my $params=''; - if (defined($dh{U_PARAMS})) { - $params=join(' ',@{$dh{U_PARAMS}}); - } - if ($params eq '') { - $params="defaults"; - } - - if (! $dh{NOSCRIPTS}) { - # -r on the command line sets R_FLAG. If it's set, there - # is no restart on upgrade. - if ($dh{R_FLAG}) { - autoscript($PACKAGE,"postinst","postinst-init-norestart", - "s/#SCRIPT#/$script/;s/#INITPARMS#/$params/"); - autoscript($PACKAGE,"postrm","postrm-init", - "s/#SCRIPT#/$script/;s/#INITPARMS#/$params/"); - } - else { - autoscript($PACKAGE,"postinst","postinst-init", - "s/#SCRIPT#/$script/;s/#INITPARMS#/$params/"); - autoscript($PACKAGE,"postrm","postrm-init", - "s/#SCRIPT#/$script/;s/#INITPARMS#/$params/"); - autoscript($PACKAGE,"prerm","prerm-init", - "s/#SCRIPT#/$script/;s/#INITPARMS#/$params/"); - } - } - } -} diff --git a/dh_installinit.1 b/dh_installinit.1 deleted file mode 100644 index cbb4b44..0000000 --- a/dh_installinit.1 +++ /dev/null @@ -1,62 +0,0 @@ -.TH DH_INSTALLINIT 1 "" "Debhelper Commands" "Debhelper Commands" -.SH NAME -dh_installinit \- install init scripts into package build directories -.SH SYNOPSIS -.B dh_installinit -.I "[debhelper options] [--init-script=scriptname] [-n] [-r] [-d] [-uparams]" -.SH "DESCRIPTION" -dh_installinit is a debhelper program that is responsible for installing -init scripts into package build directories. -.P -It also automatically generates the postinst and postrm and prerm commands -needed to set up the symlinks in /etc/rc*.d/ and to start and stop the init -scripts. -.P -If a file named debian/package.init (or debian/package.init.d for backwards -compatibility with debstd) exists, then it is installed into -etc/init.d/package in the package build directory, with "package" replaced -by the packagename. (You may use debian/init for the first binary package -listed in the control file.) -.SH OPTIONS -.TP -.B debhelper options -See -.BR debhelper (1) -for a list of options common to all debhelper commands. -.TP -.B \-n, \--noscripts -Do not modify postinst/postrm/prerm scripts. -.TP -.B \-r, \--no-restart-on-upgrade -Do not restart daemon on upgrade. -.TP -.B \-d, \--remove-d -Remove trailing "d" from the name of the package, and use the result for the -filename the init script is installed as in etc/init.d/ . This may be useful -for daemons with names ending in "d". (Note: this takes precedence over -the --init-script parameter described below.) -.TP -.B \-uparams, \--update-rcd-params=params -Pass "params" to -.BR update-rc.d (8) -If not specified, "defaults" will be passed to -.BR update-rc.d (8) -.TP -.B \--init-script=scriptname -Use "scriptname" as for the filename the init script is installed as in -etc/init.d/ . This is useful if you need to have an init script with a name -different from the package's name. Note that if you use this parameter, -dh_installinit will look to see if a file in the debian/ directory exists -that looks like "scriptname" or "package.scriptname" and if so will install -it as the inist script in preference to the files it normally installs. This -feature is really only useful if you need a single package to install more -than one init script. -.SH ENVIRONMENT -See -.BR debhelper (1) -for a list of environment variables that affect all debhelper commands. -.SH "SEE ALSO" -.BR debhelper (1), -.BR update_rc.d (8) -.SH AUTHOR -Joey Hess diff --git a/dh_makeshlibs b/dh_makeshlibs deleted file mode 100755 index 41bf161..0000000 --- a/dh_makeshlibs +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/perl -w -# -# Automatically generate shlibs files. - -BEGIN { push @INC, "debian", "/usr/share/debhelper" } -use Dh_Lib; -init(); - -foreach $PACKAGE (@{$dh{DOPACKAGES}}) { - $TMP=tmpdir($PACKAGE); - - if (-e "$TMP/DEBIAN/shlibs") { - error("$TMP/DEBIAN/shlibs already exists."); - } - - open (FIND, "find $TMP -type f -name '*.so.*' |"); - while () { - chomp; - ($library, $major)=m#.*/(.*)\.so\.(\d*)\.?#; - if (defined($dh{M_PARAMS}) && $dh{M_PARAMS} ne '') { - $major=$dh{M_PARAMS}; - } - if (! -d "$TMP/DEBIAN") { - doit("install","-d","$TMP/DEBIAN"); - } - $deps=$PACKAGE; - if ($dh{V_FLAG_SET}) { - if ($dh{V_FLAG} ne '') { - $deps=$dh{V_FLAG}; - } - else { - # Call isnative becuase it sets $dh{VERSION} - # as a side effect. - isnative($PACKAGE); - $deps="$PACKAGE (>= $dh{VERSION})"; - } - } - if (defined($library) && defined($major) && defined($deps) && - $library ne '' && $major ne '' && $deps ne '') { - complex_doit("echo '$library $major $deps' >>$TMP/DEBIAN/shlibs"); - } - } - close FIND; - - if (-e "$TMP/DEBIAN/shlibs") { - doit("chmod",644,"$TMP/DEBIAN/shlibs"); - doit("chown","root.root","$TMP/DEBIAN/shlibs"); - } -} diff --git a/dh_makeshlibs.1 b/dh_makeshlibs.1 deleted file mode 100644 index 282d54f..0000000 --- a/dh_makeshlibs.1 +++ /dev/null @@ -1,63 +0,0 @@ -.TH DH_MAKESHLIBS 1 "" "Debhelper Commands" "Debhelper Commands" -.SH NAME -dh_makeshlibs \- automatically create shlibs file -.SH SYNOPSIS -.B dh_makeshlibs -.I "[debhelper options] [-mmajor] [-V[dependancies]]" -.SH "DESCRIPTION" -dh_makeshlibs is a debhelper program that automatically scans for shared -libraries, and generates a shlibs file for the libraries it finds. -.P -For this program to work, you cannot have already installed a DEBIAN/shlibs -file. If such a file exits, the program will exit with an error. -.SH OPTIONS -.TP -.B debhelper options -See -.BR debhelper (1) -for a list of options common to all debhelper commands. -.TP -.B \-mmajor, \--major=major -Instead of trying to guess the major number of the library from the filename -of the library, use the major number specified after the -m parameter. -.TP -.B \-V[dependancies], \--version-info, \--version-info=dependancies -By default, the shlibs file generated by this program does not make packages -depend on any particular version of the package containing the shared -library. It may be necessary for you to add some version dependancy -information to the shlibs file. If -V is specified with no dependancy -information, the current version of the package is plugged into a dependancy -that looks like "packagename (>= packageversion)". If -V is specified with -parameters, the parameters can be used to specify the exact dependancy -information needed (be sure to include the package name). -.SH EXAMPLES -.TP -.B dh_makeshlibs -Assuming this is a package named libfoobar1, generates a shlibs file that -looks something like: - libfoobar 1 libfoobar1 -.TP -.B dh_makeshlibs \-V -Assuming the current version of the package is 1.0-3, generates a shlibs -file that looks something like: - libfoobar 1 libfoobar1 (>= 1.0-3) -.TP -.B dh_makeshlibs \-V "'libfoobar1 (>= 1.0)'" -Generates a shlibs file that looks something like: - libfoobar 1 libfoobar1 (>= 1.0) -.SH ENVIRONMENT -See -.BR debhelper (1) -for a list of environment variables that affect all debhelper commands. -.SH "SEE ALSO" -.BR debhelper (1) -.SH BUGS -There is no guarantee that the program will get the shlibs file right. For -example, it may not correctly guess the major number of your package. In -cases like these (and perhaps in general, just to be safe), it is better to -create a debian/shlibs file by hand, or force it to use the correct major -number by specifying the -m parameter. -.P -This is a "do what I Mean" type program - you have been warned! -.SH AUTHOR -Joey Hess diff --git a/dh_md5sums b/dh_md5sums deleted file mode 100755 index 80b5f47..0000000 --- a/dh_md5sums +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/perl -w -# -# Generate a DEBIAN/md5sums file, that lists the md5sums of all files in the -# package. - -use Cwd; -BEGIN { push @INC, "debian", "/usr/share/debhelper" } -use Dh_Lib; -init(); - -foreach $PACKAGE (@{$dh{DOPACKAGES}}) { - $TMP=tmpdir($PACKAGE); - - if (! -d "$TMP/DEBIAN") { - doit("install","-d","$TMP/DEBIAN"); - } - - # Check if we should exclude conffiles. - my $exclude=""; - if (! $dh{INCLUDE} && -r "$TMP/DEBIAN/conffiles") { - # Generate exclude regexp. - open (CONFF,"$TMP/DEBIAN/conffiles"); - while () { - chomp; - s/^\///; - $exclude.="! -path \"$_\" "; - } - close CONFF; - } - - # See if we should exclude other files. - if (defined($dh{EXCLUDE_FIND}) && $dh{EXCLUDE_FIND} ne '') { - $exclude.="! \\( $dh{EXCLUDE_FIND} \\) "; - } - - $olddir=getcwd(); - complex_doit("cd $TMP >/dev/null ; find * -type f $exclude ! -regex '^DEBIAN/.*' -print0 | xargs -r0 md5sum > DEBIAN/md5sums ; cd $olddir >/dev/null"); - # If the file's empty, no reason to waste inodes on it. - if (-z "$TMP/DEBIAN/md5sums") { - doit("rm","-f","$TMP/DEBIAN/md5sums"); - } - else { - doit("chmod",644,"$TMP/DEBIAN/md5sums"); - doit("chown","root.root","$TMP/DEBIAN/md5sums"); - } -} diff --git a/dh_md5sums.1 b/dh_md5sums.1 deleted file mode 100644 index b044077..0000000 --- a/dh_md5sums.1 +++ /dev/null @@ -1,36 +0,0 @@ -.TH DH_MD5SUMS 1 "" "Debhelper Commands" "Debhelper Commands" -.SH NAME -dh_md5sums \- generate DEBIAN/md5sums file -.SH SYNOPSIS -.B dh_md5sums -.I "[debhelper options] [-x] [-Xitem]" -.SH "DESCRIPTION" -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. -.P -All files in DEBIAN/ are omitted from the md5sums file, as are all conffiles -(unless you use the -x switch). -.P -The md5sums file is installed with proper permissions and ownerships. -.SH OPTIONS -.TP -.B debhelper options -See -.BR debhelper (1) -for a list of options common to all debhelper commands. -.TP -.B \-x, \--include-conffiles -Include conffiles in the md5sums list. Note that this information is -redundant since it is included elsewhere in debian packages. -.TP -.B \-Xitem, --exclude=item -Exclude files that contain "item" anywhere in their filename from -being listed in the md5sums file. -.SH ENVIRONMENT -See -.BR debhelper (1) -for a list of environment variables that affect all debhelper commands. -.SH "SEE ALSO" -.BR debhelper (1) -.SH AUTHOR -Joey Hess diff --git a/dh_movefiles.1 b/dh_movefiles.1 deleted file mode 100644 index 45b84a6..0000000 --- a/dh_movefiles.1 +++ /dev/null @@ -1,49 +0,0 @@ -.TH DH_MOVEFILES 1 "" "Debhelper Commands" "Debhelper Commands" -.SH NAME -dh_movefiles \- move files out of debian/tmp into subpackages -.SH SYNOPSIS -.B dh_movefiles -.I "[debhelper options] [--sourcedir=dir] [file ..]" -.SH "DESCRIPTION" -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. This may be useful if your package has a Makefile that installs -everything into debian/tmp, and you need to break that up into subpackages. -.P -Files named debian/package.files list the files to be moved, separated by -whitespace. The filenames listed should be relative to debian/tmp/. You can -also list directory names, and the whole directory will be moved. You can -even use wildcards if you like. If you prefer, you can list the files to -move on the command line and this will apply to the first package -dh_movefiles is told to act on. -.P -The files will be moved in a special order: first all normal files, then all -symlinks. This is done because it tends to be a good thing to have symlinks -last in debian packages, particularly in shared library packages. -.SH OPTIONS -.TP -.B debhelper options -See -.BR debhelper (1) -for a list of options common to all debhelper commands. -.TP -.B --sourcedir=dir -Instead of moveing files out of debian/tmp (the default), this option makes -it move files out of some other directory. Since the entire contents of -the sourcedir is moved, specifiying something like --sourcedir=/ is very -unsafe, so to prevent mistakes, the sourcedir must be a relative filename; it -cannot begin with a `/'. -.TP -.B file .. -Lists files to move. The filenames listed should be relative to debian/tmp/. -You can also list directory names, and the whole directory will be moved. You -can even use wildcards if you like. It is an error to list files here unless -you use -p, -i, or -a to tell dh_movefiles which subpackage to put them in. -.SH ENVIRONMENT -See -.BR debhelper (1) -for a list of environment variables that affect all debhelper commands. -.SH "SEE ALSO" -.BR debhelper (1) -.SH AUTHOR -Joey Hess diff --git a/dh_shlibdeps b/dh_shlibdeps deleted file mode 100755 index 69047dc..0000000 --- a/dh_shlibdeps +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/perl -w -# -# Find dependancies. Simple dpkg-shlibdeps wrapper. - -BEGIN { push @INC, "debian", "/usr/share/debhelper" } -use Dh_Lib; -init(); - -foreach $PACKAGE (@{$dh{DOPACKAGES}}) { - $TMP=tmpdir($PACKAGE); - $EXT=pkgext($PACKAGE); - - my @filelist; - my $ff; - - # Generate a list of all ELF binaries in the package. - foreach $file (split(/\n/,`find $TMP -type f \\( -perm +111 -or -name "*.so*" \\)`)) { - # TODO: this is slow, optimize. Ie, file can run once on multiple files.. - $ff=`file $file`; - if ($ff=~m/ELF/) { - push @filelist,$file; - } - } - - if (@filelist) { - doit("dpkg-shlibdeps","-Tdebian/$EXT\substvars",@{$dh{U_PARAMS}},@filelist); - } -} diff --git a/dh_shlibdeps.1 b/dh_shlibdeps.1 deleted file mode 100644 index b414965..0000000 --- a/dh_shlibdeps.1 +++ /dev/null @@ -1,37 +0,0 @@ -.TH DH_SHLIBDEPS 1 "" "Debhelper Commands" "Debhelper Commands" -.SH NAME -dh_shlibdeps \- calculate shared library dependancies -.SH SYNOPSIS -.B dh_shlibdeps -.I "[debhelper options] [-uparams]" -.SH "DESCRIPTION" -dh_shlibdeps is a debhelper program that is responsible for calculating -shared library dependancies for all executables found in the package build -directory. -.P -This program is merely a wrapper around -.BR dpkg-shlibdeps (1) -that calls it once for each package listed in the control file. -.SH OPTIONS -.TP -.B debhelper options -See -.BR debhelper (1) -for a list of options common to all debhelper commands. -.TP -.B \-uparams, \--dpkg-shlibdeps-params=params -Pass "params" to -.BR dpkg-shlibdeps (1) -.SH ENVIRONMENT -See -.BR debhelper (1) -for a list of environment variables that affect all debhelper commands. -.SH "SEE ALSO" -.TP -.BR debhelper (1) -.TP -.BR dpkg-shlibdeps (1) -.SH "CONFORMS TO" -Debian policy, version 2.5.0.0 -.SH AUTHOR -Joey Hess diff --git a/dh_suidregister b/dh_suidregister deleted file mode 100755 index dd01c2c..0000000 --- a/dh_suidregister +++ /dev/null @@ -1,72 +0,0 @@ -#!/usr/bin/perl -w -# -# If no parameters are given, and no debian/suid files exists, scan for -# suid/sgid files and suidregister them. -# -# If there are parameters, or there is a debian/suid, register the files -# listed there. - -BEGIN { push @INC, "debian", "/usr/share/debhelper" } -use Dh_Lib; -init(); - -foreach $PACKAGE (@{$dh{DOPACKAGES}}) { - $TMP=tmpdir($PACKAGE); - $suid=pkgfile($PACKAGE,"suid"); - - @files=(); - if ($suid) { - @files=filearray($suid); - } - - if (($PACKAGE eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) { - push @files, @ARGV; - } - - if (! @files && ! $suid) { - # No files specified (and no empty debian/suid file), so - # guess what files to process. - @files=split(/\n/,`find $TMP -type f -perm +6000`); - - # We will strip the debian working directory off of the - # filenames. - $tostrip="$TMP/"; - } - else { - # We will strip leading /'s, so the user can feed this - # program either absolute filenames, or relative filenames, - # and it will do the right thing either way. - $tostrip="/"; - } - - foreach $file (@files) { - # Strip leading $tostrip from $file. - $file=~s/^$tostrip//; - - # Create the sed string that will be used to - # fill in the blanks in the autoscript files. - # Fill with the owner, group, and perms of the file. - (undef,undef,$mode,undef,$uid,$gid,undef) = stat("$TMP/$file"); - # Now come up with the user and group names for the uid and gid. - $user=getpwuid($uid); - if (! defined $user) { - warning("$file has odd uid $uid, not in /etc/passwd"); - $user=$uid; - } - $group=getgrgid($gid); - if (! defined $group) { - warning("$file has odd gid $gid not in /etc/group"); - $group=$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); - - autoscript($PACKAGE,"postinst","postinst-suid",$sedstr); - autoscript($PACKAGE,"postrm","postrm-suid","$sedstr"); - - if ( -e "$TMP/$file") { - doit("chmod","a-s","$TMP/$file"); - } - } -} diff --git a/dh_suidregister.1 b/dh_suidregister.1 deleted file mode 100644 index 4e0984b..0000000 --- a/dh_suidregister.1 +++ /dev/null @@ -1,62 +0,0 @@ -.TH DH_SUIDREGISTER 1 "" "Debhelper Commands" "Debhelper Commands" -.SH NAME -dh_suidregister \- set up package to register files with suidregister -.SH SYNOPSIS -.B dh_suidregister -.I "[debhelper options] [-A] [file ...]" -.SH "DESCRIPTION" -dh_suidregister is a debhelper program that is responsible for modifying the -postinst and postrm scripts of a package so the package will register files -with -.BR suidregister (1) -when it is installed. -.P -Any filenames specified as parameters will be registered in the first -package dh_suidregister is told to act on. By default, this is the first -binary package in debian/control, but if you use -p, -i, or -a flags, -it will be the first package specified by those flags. -.P -Files named debian/package.suid (or debian/suid for the first binary package -in debian/control) can list other files to be registered. -.P -If neither of these methods is used to specify files, dh_suidregister will -scan the package build directory for files that have suid permissions, and -will automatically register all files it finds. -.P -Note that this program modifies your postinst and postrm files. See -.BR dh_installdeb (1) -for an explanation of how this works. -.P -Also note that all files registered by this program will *not* be suid in the -resulting .deb file. The postinst of the package will set their permissions -(even if the user doesn't have suidmanager installed). -.SH OPTIONS -.TP -.B debhelper options -See -.BR debhelper (1) -for a list of options common to all debhelper commands. -.TP -.B \-A, \--all -Register any files specified by command line parameters in ALL packages -acted on. I doubt anyone will find this useful, it's here for consitency -with other debhelper programs. -.TP -.B file ... -Register these files in the first package acted on. (Or in all packages if --A is specified.) -.SH NOTES -dh_suidregister does not make anything suid. It merely records the -permissions binaries already have. If you need to make something suid, you -must do so manually before calling dh_suidregister. -.SH ENVIRONMENT -See -.BR debhelper (1) -for a list of environment variables that affect all debhelper commands. -.SH "SEE ALSO" -.TP -.BR debhelper (1) -.TP -.BR suidregister (8) -.SH AUTHOR -Joey Hess diff --git a/dh_testversion.1 b/dh_testversion.1 deleted file mode 100644 index 19ded26..0000000 --- a/dh_testversion.1 +++ /dev/null @@ -1,51 +0,0 @@ -.TH DH_TESTVERSION 1 "" "Debhelper Commands" "Debhelper Commands" -.SH NAME -dh_testversion \- ensure that the correct version of debhelper is installed -.SH SYNOPSIS -.B dh_testversion [debhelper options] [operator] [version] -.SH "DESCRIPTION" -dh_testversion compares the version of debhelper against the version you -specify, and if the condition is not met, exits with an error message. -.P -You should use this in your debian/rules files if a new debhelper feature is -introduced, and your package requires that feature to build correctly. Use -debhelper's changelog to figure out the version you need. -.P -Be sure not to overuse dh_testversion. If debhelper version 9.5 -introduces a new dh_autofixbugs command, and your package uses it, then if -someone tries to build it with debhelper 1.0, the build will fail anyway when -dh_autofixbugs cannot be found, so there is no need for you to use -dh_testversion. -.SH OPTIONS -.TP -.B debhelper options -See -.BR debhelper (1) -for a list of options common to all debhelper commands. -.TP -.B operator -Optional comparison operator used in comparing the versions. If not -specified, ">=" is used. For descriptions of the comparison operators, see -dpkg --help. -.TP -.B version -Version number to compare against the current version of debhelper. If not -specified, dh_testversion does nothing. -.SH EXAMPLES -.TP -.I dh_testversion 1.0 -Make sure debhelper version 1.0 or higher is installed. -.TP -.I dh_testversion ge 1.0 -Another way to make sure debhelper version 1.0 or higher is installed. -.TP -.I dh_testversion lt 1.0 -Make sure a version of debhelper less than version 1.0 is installed. -.SH ENVIRONMENT -See -.BR debhelper (1) -for a list of environment variables that affect all debhelper commands. -.SH "SEE ALSO" -.BR debhelper (1) -.SH AUTHOR -Joey Hess diff --git a/dh_testversion.in b/dh_testversion.in deleted file mode 100644 index 9e2f14e..0000000 --- a/dh_testversion.in +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -e -# -# Debhelper version check. - -# Current version of debhelper is: -DH_VERSION=#DEBHELPER_VERSION# - -PATH=debian:$PATH:/usr/lib/debhelper -. dh_lib - -if [ "$1" -a "$2" ]; then - compare=$1 - ver=$2 -elif [ "$1" ]; then - compare=">=" - ver=$1 -fi - -if [ "$compare" -a "$ver" ] ; then - if ! dpkg --compare-versions $DH_VERSION $compare $ver; then - error "debhelper version $DH_VERSION is installed, but a version $compare $ver is needed to build this package." - fi -fi diff --git a/dh_undocumented b/dh_undocumented deleted file mode 100755 index 77ee3f5..0000000 --- a/dh_undocumented +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/perl -w -# -# Passed a list of undocumented man pages, generates symlinks to -# undocumented.7.gz for those man pages. -# -# Also, it looks for debian/undocumented files for more lists of -# undocumented man pages. - -BEGIN { push @INC, "debian", "/usr/share/debhelper" } -use Dh_Lib; -init(); - -foreach $PACKAGE (@{$dh{DOPACKAGES}}) { - $TMP=tmpdir($PACKAGE); - $undocumented=pkgfile($PACKAGE,"undocumented"); - - @undoc=(); - if ($undocumented) { - @undoc=filearray($undocumented); - } - - if (($PACKAGE eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) { - push @undoc, @ARGV; - } - - foreach $file (@undoc) { - $file=~s/.gz$//; # .gz extention is optional in input. - - # Determine what directory the file belongs in, - # /usr/man, or /usr/X11R6/man, and how the link to - # the undocuemtned.7 man page will look. - ($section)=$file=~m/^.*\.(\d)/; - if (!$section) { - error("\"$file\" does not have an extention."); - } - if ($file=~/.*\.\dx/) { - $dir="usr/X11R6/man/man$section"; - $reldir="../../../man/man7/"; - } - elsif ($section != 7) { - $dir="usr/man/man$section"; - $reldir="../man7/"; - } - else { - $dir="usr/man/man$section"; - $reldir=""; - } - - if (! -d "$TMP/$dir") { - doit("install","-d","$TMP/$dir"); - } - doit("ln","-sf","${reldir}undocumented.7.gz","$TMP/$dir/$file.gz"); - } -} diff --git a/dh_undocumented.1 b/dh_undocumented.1 deleted file mode 100644 index 63a8397..0000000 --- a/dh_undocumented.1 +++ /dev/null @@ -1,62 +0,0 @@ -.TH DH_UNDOCUMENTED 1 "" "Debhelper Commands" "Debhelper Commands" -.SH NAME -dh_undocumented \- make symlinks to undocumented.7.gz man page -.SH SYNOPSIS -.B dh_undocumented -.I "[debhelper options [-A] [manpage ...]" -.SH "DESCRIPTION" -dh_undocumented is a debhelper program that is responsible for making -symlinks to the -.BR undocumented (7) -man page for man pages that are not present in your package. -.P -The program takes a list of man pages that should be symlinked to -.BR undocumented (7) -It determines what directory the man pages should be placed in by examining -their extensions - pages ending in "x" go into /usr/X11R6/man/, while pages -that end in anything else go in /usr/man/. It also examines the extention to -see what section the man page belongs in. After figuring this out, it -generates the necessary symlinks to -.BR undocumented (7) -, placing the sylinks in the package build directory. -.P -The lists of man pages that need -.BR undocumented (7) -symlinks can be specified in two ways. Any man page names specified as -parameters will be set up in the first package dh_undocumented is told -to act on. By default, this is the first binary package in debian/control, -but if you use -p, -i, or -a flags, it will be the first package specified -by those flags. -Also, a file named debian/package.undocumented (or debian/undocumented, for -the first binary package in debian/control) can list other man page names to -set up. -.SH OPTIONS -.TP -.TP -.B debhelper options -See -.BR debhelper (1) -for a list of options common to all debhelper commands. -.TP -.B \-A, \--all -Install undocumented man page symlinks for any man pages specified by -command line parameters in ALL packages acted on. I doubt anyone will find -this useful, it's here for consitency with other debhelper programs. -.TP -.B manpage ... -Install undocumented man page symlinks for each of these man pages -into the first package acted on. (Or in all packages acted on if -A is -specified.) -.SH ENVIRONMENT -See -.BR debhelper (1) -for a list of environment variables that affect all debhelper commands. -.SH "SEE ALSO" -.TP -.BR debhelper (1) -.TP -.BR undocumented (7) -.SH "CONFORMS TO" -Debian policy, version 2.5.0.0 -.SH AUTHOR -Joey Hess -- 2.39.2