dh-make/0000755000000000000000000000000012235031007007243 5ustar dh-make/dh_make0000755000000000000000000006040412235030775010600 0ustar #!/usr/bin/perl # # dh_make - Script to prepare Debian packaging for an original source archive # use Getopt::Long; use File::Basename; use Cwd; use strict; #Getopt::Long::Configure ("bundling"); #Getopt::Long::Configure ("bundling_override"); Getopt::Long::Configure ("no_ignore_case"); # Turns off autoabbrev to avoid mistakes with cdbs and copyright options. $Getopt::Long::autoabbrev = 0; # Some important parameters our $DHLIB="/usr/share/debhelper/dh_make"; our $POLICY_VERSION="3.9.4"; our $DH_MAKE_VERSION="0.63"; my %PACKAGE_CLASSES = ( 's' => 'Single', 'l' => 'Library', 'm' => 'Multi-Binary', 'k' => 'Kernel Module', 'n' => 'Kernel Patch', 'i' => 'Independent' ); my %RULES_FORMATS = ('dh7' => 'Debhelper v7+', 'old' => 'old debhelper', 'c' => 'cdbs'); our $DASHLINE=""; our $license=""; our $username=""; our $package_name=""; our $cap_package_name=""; our $version=""; our $fullname = ""; our $rules_format = "dh7"; our $source_file=""; our $debian_native = 0; our $create_orig_tar = 0; our $package_class=""; our $CHANGELOG=""; our $PRESERVE=""; our $add_missing = 0; our $custom = ""; our $no_defaults = 0; our $overlay = ""; our $forced_package_name=""; our $assume_yes = 0; our @filenames; our $filename; our $SOURCE_EXTRADOCS=""; our ($email, $date); our $with_emacs = 0; sub process_file(@) { my ($infile, $outfile) = @_; my $outfile2 = $outfile; my $line; $outfile2 =~ s/\.ex$//; if ( $main::overlay eq "" ) { if ( $main::add_missing && ( -f $outfile || -f $outfile2 )) { print "File $outfile exists, skipping.\n"; return; } } open IN, "<$infile" or die "Unable to open template file $infile for reading: $! \n"; open OUT, ">$outfile" or die "Unable to open file $outfile for writing: $! \n"; while (defined($line = )) { $line =~ s/#PACKAGE#/$main::package_name/g; $line =~ s/#UCPACKAGE#/$main::uc_package_name/g; $line =~ s/#VERSION#/$main::version/g; $line =~ s/#EMAIL#/$main::email/g; $line =~ s/#DATE#/$main::date/g; $line =~ s/#SHORTDATE#/$main::shortdate/g; $line =~ s/#YEAR#/$main::year/g; $line =~ s/#CHANGELOGS#/$main::CHANGELOG/g; $line =~ s/#PRESERVE#/ $main::PRESERVE/g; $line =~ s/#CONFIG_STATUS#/$main::CONFIG_STATUS/g; $line =~ s/#CONFIGURE#/$main::CONFIGURE/g; $line =~ s/#CONFIGURE_STAMP#/$main::CONFIGURE_STAMP/g; $line =~ s/#DPKG_ARCH#/$main::DPKG_ARCH/g; $line =~ s/#INSTALL#/$main::INSTALL/g; $line =~ s/#MAKE#/$main::MAKE/g; $line =~ s/#CLEAN#/$main::CLEAN/g; $line =~ s/#USERNAME#/$main::username/g; $line =~ s/#POLICY#/$main::POLICY_VERSION/g; $line =~ s/#DASHLINE#/$main::DASHLINE/g; $line =~ s/#PHONY_CONFIGURE#/$main::PHONY_CONFIGURE/g; $line =~ s/#CDBS_CLASS#/$main::CDBS_CLASS/g; $line =~ s/#PATCH_CLASS#/$main::PATCH_CLASS/g; $line =~ s/#PATCH_CLEAN#/$main::PATCH_CLEAN/g; $line =~ s/#PATCH_STAMP#/$main::PATCH_STAMP/g; $line =~ s/#BUILD_DEPS#/$main::BUILD_DEPS/g; $line =~ s/#SOURCE_FILE_BASE#/$main::source_file_base/g; $line =~ s/#DH7_ADDON#/$main::DH7_ADDON/g; $line =~ s/#SOURCE_EXTRADOCS#/$main::SOURCE_EXTRADOCS/g; print OUT $line; } close IN; close OUT; } sub output_source_format { my $outfile = "source/format"; if ( $main::overlay eq "" ) { if ( $main::add_missing && -f $outfile) { print "File $outfile exists, skipping.\n"; return; } } if ( ! -d 'source' ) { mkdir 'source', 0755 or die "Unable to make debian/source subdirectory: $! \n"; } open OUT, ">$outfile" or die "Unable to open file $outfile for writing: $! \n"; if ($debian_native) { print OUT "3.0 (native)\n"; } else { print OUT "3.0 (quilt)\n"; } close OUT; } sub show_version { print "dh_make - prepare Debian packaging for an original source archive, version $main::DH_MAKE_VERSION\n\n"; print "Copyright (C) 1998-2013 Craig Small \n"; print "This is free software; see the source for copying conditions. There is NO\n"; print "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"; } sub show_help { show_version(); print < use of license in copyright file (apache|artistic|bsd|gpl|gpl2|gpl3|lgpl|lgpl2| lgpl3|mit) -C, --packageclass set package class (s|i|k||l||m||n) -e, --email
use
as the maintainer e-mail address -n, --native the program is Debian native, don\'t generate .orig -f, --file specify file to use as the original source archive --createorig create orig.tar.xz file -s, --single set package class to single -i, --indep set package class to arch-independent -m, --multi set package class to multiple binary -l, --library set package class to library -k, --kmod set package class to kernel module --kpatch set package class to kernel patch --with-emacs add files for emacsen -a, --addmissing reprocess package and add missing files -t, --templates apply customizing templates in -d --defaultless skip the default debian and package class templates -o, --overlay reprocess package using template in -p, --packagename force package name to be -r, --rulesformat Set the format of debian/rules file (old|dh7|cdbs) -y, --yes Automatic yes to prompts and run non-interactively -h, --help display this help screen and exit -v, --version show the version and exit By Craig Small Based on deb-make by Christoph Lameter . Custom template support by Bruce Sass . EOF } sub parse_args { my ($dohelp,$doversion, $single,$indep,$multi,$library,$kmod,$kpatch); if (GetOptions( 'copyright|c=s' => \$main::license, 'packageclass|C=s' => \$main::package_class, 'email|e=s' => \$main::email, 'file|f=s' => \$main::source_file, 'createorig' => \$main::create_orig_tar, 'help|h' => \$dohelp, 'version|v' => \$doversion, 'native|n' => \$main::debian_native, 'single|s' => \$single, 'indep|i' => \$indep, 'multi|m' => \$multi, 'library|l' => \$library, 'kmod|k' => \$kmod, 'kpatch' => \$kpatch, 'with-emacs' => \$main::with_emacs, 'addmissing|a' => \$main::add_missing, 'rulesformat|r=s' => \$main::rules_format, 'templates|t=s' => \$main::custom, 'defaultless|d' => \$main::no_defaults, 'overlay|o=s' => \$main::overlay, 'packagename|p=s' => \$main::forced_package_name, 'yes|y' => \$main::assume_yes ) == 0) { show_help(); exit; } # Check for extra options, should be none! if ($#ARGV != -1) { print "Extra parameters on command line\n"; show_help(); exit; } if ($doversion) { show_version(); exit; } if ($dohelp) { show_help(); exit; } if ($single) { $main::package_class = 's'; } if ($indep) { $main::package_class = 'i'; } if ($multi) { $main::package_class = 'm'; } if ($library) { $main::package_class = 'l'; } if ($kmod) { $main::package_class = 'k'; } if ($kpatch) { $main::package_class = 'n'; } $main::license = lc $main::license; if ($main::license ne "" && !($main::license =~ /^(gpl|gpl2|gpl3|lgpl|lgpl2|lgpl3|artistic|bsd|blank|apache|mit)$/)) { print "Copyright type \"$main::license\" is not gpl, gpl2, gpl3, lgpl, lgpl2, lgpl3, apache, artistic, bsd, blank or mit.\n"; exit; } # Change the non-versioned into the latest version $main::license = "gpl3" if ($main::license eq "gpl"); $main::license = "lgpl3" if ($main::license eq "lgpl"); # Verifuly ruletype $main::rules_format = lc $main::rules_format; if ($main::rules_format eq "") { $main::rules_format = "dh7"; } else { if ($main::rules_format !~ /^(dh7|old|cdbs)$/) { print "Rules Format \"$main::rules_format\" is not dh7, old or cdbs.\n"; exit; } } } sub get_logname { # lightdm in Ubuntu 11.10 does not set LOGNAME # (https://bugs.launchpad.net/bugs/875705). Work around this by trying # USER instead. if (exists $ENV{LOGNAME}) { return $ENV{LOGNAME}; } elsif (exists $ENV{USER}) { return $ENV{USER}; } else { die "Cannot get username; neither LOGNAME nor USER is set in the environment!\n"; } } sub get_username { my $tmpusername = ''; if (exists($ENV{'DEBFULLNAME'})) { $tmpusername = $ENV{'DEBFULLNAME'}; } return $tmpusername if ($tmpusername ne ""); my $logname = get_logname(); if (-x '/usr/bin/getent') { $tmpusername = qx(/usr/bin/getent passwd $logname|awk -F: '\{ print \$5; \}' | cut -f1 -d,); } chomp($tmpusername); return $tmpusername if ($tmpusername ne ""); $tmpusername = qx(awk -F: -vUSER=$logname '\$1 == USER \{ print \$5; \}' /etc/passwd | cut -f1 -d,); chomp($tmpusername); return $tmpusername if ($tmpusername ne ""); if (-x '/usr/bin/ypmatch') { $tmpusername = qx(ypmatch $logname passwd.byname|awk -F: '\{ print \$5; \}' | cut -f1 -d,); } chomp($tmpusername); return $tmpusername if ($tmpusername ne ""); if (-x '/usr/bin/ldapsearch') { $tmpusername = [map {/^(?:gecos|cn): (.*)/} qx(ldapsearch -Q -LLL uid=$logname gecos cn)]->[0]; } chomp($tmpusername); return $tmpusername if ($tmpusername ne ""); return "unknown"; } sub get_email() { return $ENV{DEBEMAIL} if ($ENV{DEBEMAIL} ); return $ENV{EMAIL} if ($ENV{EMAIL} ); my $logname = get_logname(); if (-x '/usr/bin/ldapsearch') { my $mail; $mail = [map {/^mail: (.*)/ && $1} qx(ldapsearch -Q -LLL uid=$logname mail)]->[0]; return $mail if $mail; } if ($logname ) { my $mailhost; if ( -e '/etc/mailname') { $mailhost = qx(cat /etc/mailname); chomp($mailhost); } else { $mailhost='unknown'; } return ($logname . '@' . $mailhost); } } sub get_package { my $pwd = &Cwd::cwd(); my $forced_package_version = ""; # May split the version out of the name if ( ($main::forced_package_name) && ($main::forced_package_name =~ /(.*)_([0-9][0-9a-zA-Z+.~-]*)$/)) { $main::forced_package_name = $1; $forced_package_version = $2; } if ( ($forced_package_version ne "") || ( ($main::forced_package_name) && ($pwd =~ /.*\/($main::forced_package_name)-([0-9][0-9a-zA-Z+.~-]*)$/) ) || ( ($pwd =~ /.*\/(.*)-([0-9][0-9a-zA-Z+.~-]*)$/) )) { if ($main::forced_package_name) { $main::package_name = $main::forced_package_name; } else { $main::package_name = $1; } $main::uc_package_name = uc $main::package_name; if ($forced_package_version) { $main::fullname = $1 . "-" . $forced_package_version; $main::version = $forced_package_version; } else { # Fullname stays as the original dir $main::fullname = $1 . "-" . $2; $main::version = $2; } } else { print <<"EOF"; For dh_make to find the package name and version, the current directory needs to be in the format of -. Alternatively use the -p flag using the format _ to override it. I cannot understand the directory name or you have an invalid directory name! Your current directory is $pwd, perhaps you could try going to directory where the sources are? Please note that this change is necessary ONLY during the initial Debianization with dh_make. When building the package, dpkg-source will gracefully handle almost any upstream tarball. EOF exit 1; } if (! ($main::package_name =~ /^[a-z0-9+.-]+$/)) { print <<"EOF"; Package name "$main::package_name" is not in a valid format. Debian policy manual states: "Package names must only consist of lower case letters, digits (0-9), plus (+) or minus (-) signs, and periods (.)" EOF exit 1; } if ( ($main::package_name =~ /^[a-z0-9+.-]$/)) { print <<"EOF"; Package name "$main::package_name" is not in a valid format. You cannot create single-letter package names. EOF exit 1; } } sub get_date { my $tmpdate; if (-x "/bin/date") { $tmpdate = qx(/bin/date -R); chomp($tmpdate); return $tmpdate; } else { die "Unable to find date program in /bin!\n"; } } sub print_confirmation { # Print what we have found print "Maintainer name : $username\n"; print "Email-Address : $email \n"; print "Date : $date\n"; print "Package Name : $package_name\n"; print "Version : $version\n"; print "License : $license"; print 'blank' if $license eq ''; print "\n"; print "Type of Package : "; if (exists $PACKAGE_CLASSES{$package_class}) { print $PACKAGE_CLASSES{$package_class}; } else { print 'unknown'; } print "\nCustom template : $custom" if ( $custom ne "" ); print " (overlay)" if ( $overlay ne "" ); print "\nDefault debian and package class templates will not be applied." if ( $no_defaults ); if ($assume_yes == 0 ) { print "\nHit to confirm: "; my $dummy = ; } else { print "\n"; } } $username = get_username(); $email = get_email(); $date = get_date(); our $shortdate = qx(LC_ALL=C date '+%B %e, %Y'); chomp $shortdate; our $year = qx(LC_ALL=C date '+%Y'); chomp $year; parse_args(); our $source_file_base=basename($source_file); if ( ! $overlay eq "" ) { #setup for overlay mode $no_defaults = 1; $add_missing = 1; $custom = $overlay; } get_package(); # Generate a line of dashes, which is as long as '#PACKAGE# for Debian'. for (my $i=0; $i; chomp($type); print "\n"; $type = lc($type); $main::package_class = 's' if $type eq 's'; $main::package_class = 'i' if $type eq 'i'; $main::package_class = 'm' if $type eq 'm'; $main::package_class = 'l' if $type eq 'l'; $main::package_class = 'k' if $type eq 'k'; $main::package_class = 'n' if $type eq 'n'; } } # Debian native packages default to GPL v3, but it can be overwritten if ($debian_native && $main::license eq '') { $main::license = 'gpl3'; } print_confirmation; if (! $debian_native) { if ( -f "../$package_name\_$version.orig.tar.gz") { print "Skipping creating ../$package_name\_$version.orig.tar.gz because it already exists\n"; } elsif ( -f "../$package_name\_$version.orig.tar.bz2") { print "Skipping creating ../$package_name\_$version.orig.tar.bz2 because it already exists\n"; } elsif ( -f "../$package_name\_$version.orig.tar.lzma") { print "Skipping creating ../$package_name\_$version.orig.tar.lzma because it already exists\n"; } elsif ( -f "../$package_name\_$version.orig.tar.xz") { print "Skipping creating ../$package_name\_$version.orig.tar.xz because it already exists\n"; } else { if ($source_file) { if (-f $source_file) { if ($source_file =~ /gz$/ ) { system('cp', '-a', "$source_file", "../$package_name\_$version.orig.tar.gz"); } elsif ($source_file =~ /bz2$/ ) { system('cp', '-a', "$source_file", "../$package_name\_$version.orig.tar.bz2"); } elsif ($source_file =~ /lzma$/ ) { system('cp', '-a', "$source_file", "../$package_name\_$version.orig.tar.lzma"); } elsif ($source_file =~ /xz$/ ) { system('cp', '-a', "$source_file", "../$package_name\_$version.orig.tar.xz"); } } else { print "Source archive you specified ( $source_file ) was not found!\n"; exit 1; } } else { if ($create_orig_tar) { system('tar', 'cfJ', "../$package_name\_$version.orig.tar.xz", "."); } else { print "Could not find $package_name\_$version.orig.tar.xz\n"; print "Either specify an alternate file to use with -f,\n"; print "or add --createorig to create one.\n"; exit 1; } } } } # Figure out where documentation is our @DOCS= split / |\n/, qx(ls -1 N[Ee][Ww][Ss] *[Ff][Aa][Qq]* *.[Tt][Xx][Tt] README* *.README [rR]eadme* *.[rR]eadme [Bb][Uu][Gg][Ss] *[tT][oO][dD][oO]* 2>/dev/null | egrep -v '^CMakeLists?.txt'); # What are our info files our @INFOS= split / |\n/, qx(find . -regex '.*\\.info\\(-[0-9]+\\)?'); # Figure out where is the first changelog, assign other similar files to docs my @changelogs= split / |\n/, qx(ls *[cC][hH][aA][nN][gG][eE][lL][oO][gG]* [cC][hH][aA][nN][gG][eE][sS]* 2>/dev/null); $CHANGELOG = $changelogs[0] if ($#changelogs != -1); shift @changelogs; @DOCS = (@DOCS,@changelogs); # check whether emacs files exist or not our @EMACS= split / |\n/, qx(find . -regex '.*\\.el'); if (! @EMACS eq '') { $with_emacs = 1; } # Are there any .orig files in the upstream sources my @ORIG= split /[ \n]/, qx(find . -name '\*.orig'); my $orig; foreach $orig (@ORIG) { $PRESERVE="$PRESERVE --exclude $orig"; } our ($CONFIG_STATUS, $CONFIGURE_STAMP, $PHONY_CONFIGURE, $CONFIGURE, $DPKG_ARCH, $INSTALL, $CLEAN, $MAKE, $CDBS_CLASS ); our $BUILD_DEPS = 'debhelper (>= 8.0.0)'; our $DH7_ADDON = ''; if ($rules_format eq "cdbs") { $BUILD_DEPS = 'cdbs, '.$BUILD_DEPS; } our ($PATCH_CLASS,$PATCH_STAMP,$PATCH_CLEAN); # Setup debian/rules if (-x "./configure" ) { $CDBS_CLASS="include /usr/share/cdbs/1/class/autotools.mk"; $CONFIG_STATUS="config.status"; $CONFIGURE_STAMP=''; $PHONY_CONFIGURE=''; $CONFIGURE="config.status: configure\n". "\tdh_testdir\n". "\t# Add here commands to configure the package.\n". "ifneq \"\$(wildcard /usr/share/misc/config.sub)\" \"\"\n". "\tcp -f /usr/share/misc/config.sub config.sub\n". "endif\n". "ifneq \"\$(wildcard /usr/share/misc/config.guess)\" \"\"\n". "\tcp -f /usr/share/misc/config.guess config.guess\n". "endif\n". "\t".'./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"'."\n"; $DPKG_ARCH="# These are used for cross-compiling and for saving the configure script\n". "# from having to guess our platform (since we know it already)\n". 'DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)'."\n". 'DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)'."\n". 'ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))'."\n". 'CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)'."\n". 'else'."\n". 'CROSS= --build $(DEB_BUILD_GNU_TYPE)'."\n". 'endif'."\n"; $MAKE="\$(MAKE)"; # If it is automaked, use DESTDIR insteadof prefix if ( -f 'Makefile.am' ) { # If it is a library then install into tmp if ( $package_class eq "l") { $INSTALL="\$(MAKE) DESTDIR=\$(CURDIR)/debian/tmp install"; } else { $INSTALL="\$(MAKE) DESTDIR=\$(CURDIR)/debian/$package_name install"; } } else { if ( $package_class eq "l") { $INSTALL="\$(MAKE) prefix=\$(CURDIR)/debian/tmp/usr install"; } else { $INSTALL="\$(MAKE) prefix=\$(CURDIR)/debian/$package_name/usr install"; } } $CLEAN="[ ! -f Makefile ] || \$(MAKE) distclean\n". "\trm -f config.sub config.guess"; $BUILD_DEPS .= ', autotools-dev'; $DH7_ADDON .= ' --with autotools-dev'; } elsif (-f 'CMakeLists.txt') { $CDBS_CLASS="include /usr/share/cdbs/1/class/cmake.mk"; $CONFIG_STATUS="builddir/Makefile"; $CONFIGURE_STAMP=''; $PHONY_CONFIGURE=''; $CONFIGURE="builddir/Makefile:\n". "\tdh_testdir\n". "\t# Add here commands to configure the package.\n". "\t".'mkdir -p builddir'."\n". "\t".'cd builddir && cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_FLAGS="$(CFLAGS)" -DCMAKE_LD_FLAGS="-Wl,-z,defs" -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" -DCMAKE_SKIP_RPATH=ON -DCMAKE_VERBOSE_MAKEFILE=ON'."\n"; $MAKE="\$(MAKE) -C builddir"; # If it is a library then install into tmp if ( $package_class eq "l") { $INSTALL="\$(MAKE) -C builddir DESTDIR=\$(CURDIR)/debian/tmp install"; } else { $INSTALL="\$(MAKE) -C builddir DESTDIR=\$(CURDIR)/debian/$package_name install"; } $CLEAN="rm -rf builddir\n"; $BUILD_DEPS .= ', cmake'; } else { if (! -f 'Makefile' && ! -f 'makefile' && ! -f 'GNUmakefile') { print "Currently there is no top level Makefile. This may require additional tuning.\n"; } $CDBS_CLASS="include /usr/share/cdbs/1/class/makefile.mk"; $CONFIGURE_STAMP='configure-stamp'; $CONFIG_STATUS=''; $CONFIGURE="configure: configure-stamp\n". "configure-stamp:\n". "\tdh_testdir\n". "\t# Add here commands to configure the package.\n\n". "\ttouch configure-stamp\n"; $PHONY_CONFIGURE='configure'; $MAKE="\$(MAKE)"; $DPKG_ARCH=''; if ($package_class eq "l") { $INSTALL="\$(MAKE) DESTDIR=\$(CURDIR)/debian/tmp install"; } else { $INSTALL="\$(MAKE) DESTDIR=\$(CURDIR)/debian/$package_name install"; } $CLEAN='$(MAKE) clean'; } if ($package_class eq "k") { $BUILD_DEPS .= ', bzip2'; } if ($package_class eq "n") { $BUILD_DEPS .= ', dh-kpatches'; } # Customize files if ( $add_missing ) { if ( ! -d 'debian' ) { die "--addmissing or --overlay flag used but cannot find debian subdirectory\n"; } } else { if ( ! -d 'debian') { mkdir 'debian', 0755 or die "Unable to make debian subdirectory: $! \n"; } else { print "You already have a debian/ subdirectory in the source tree.\n"; print "dh_make will not try to overwrite anything.\n"; exit 1; } } chdir 'debian' or die "Unable to chdir to debian subdirectory: $! \n"; if ( ! -d $DHLIB ) { die "Unable to find dh_make's template directory: $! \n"; } if ( ! $no_defaults ) { # Source format output_source_format(); # General Files @filenames= split / |\n/, qx{(cd $DHLIB/debian && ls)}; foreach $filename (@filenames) { process_file("$DHLIB/debian/$filename", $filename); } # Copyright file if ($license eq '') { process_file("$DHLIB/licenses/blank", "copyright"); } else { if ( -r "$DHLIB/licenses/$license" ) { process_file("$DHLIB/licenses/$license", "copyright"); } else { die "Unable to find copyright template file $DHLIB/licenses/$license"; } } # Remove the README if a kernel package, we use the specific one if ( $package_class eq 'k') { unlink('README.Debian'); } # Special Files @filenames = split / |\n/, qx{(cd $DHLIB/debian$package_class && ls)}; foreach $filename (@filenames) { if ( $filename=~/^rules/ ) { if ( $filename ne "rules.$rules_format") { next; } } process_file("$DHLIB/debian$package_class/$filename", $filename); } # emacs files if ($with_emacs) { @filenames= split / |\n/, qx{(cd $DHLIB/emacs && ls)}; foreach $filename (@filenames) { process_file("$DHLIB/emacs/$filename", $filename); } } } # Custom template if ( $custom ne "" ) { if ( -d $custom ) { @filenames = split /[\n]/, qx{(cd $custom && ls)}; foreach $filename (@filenames) { process_file("$custom/$filename", $filename); } } else { print "Unable to find the customization directory, $custom\n"; } } if ( -f "rules") { print "File rules already exists, skipping.\n"; } else { if ( ! -f "rules.$rules_format") { print "Cannot find rules file for rules format \"$rules_format\".\n"; exit; } system('mv', "rules.$rules_format", "rules"); } # kernel-patch kpatch file name rename "kpatches", "$package_name.kpatches" if $package_class eq "n"; if ( -f "docs" ) { print "File docs already exists, skipping.\n"; } else { my $doc; open (DOCSFILE,">docs"); foreach $doc (@DOCS) { print DOCSFILE "$doc\n"; } close (DOCSFILE); } if ( -f "info" ) { print "File info already exists, skipping.\n"; } else { if ($#INFOS > -1 ) { my $info; open (INFOFILE,">info"); foreach $info (@INFOS) { $info =~ s/^\.\///; print INFOFILE "$info\n"; } close (INFOFILE); } } if ( ! $no_defaults ) { if ($debian_native) { @filenames = split / |\n/, qx{(cd $DHLIB/native && ls)}; foreach $filename (@filenames) { process_file("$DHLIB/native/$filename", $filename); } } } @filenames = split / |\n/, qx(ls package* 2>/dev/null); if ($#filenames != -1) { foreach $filename (@filenames) { my $oldname = $filename; $filename =~ s/^package/$package_name/; if ( -f $filename) { print "File $filename already exists, skipping.\n"; } else { system('mv', $oldname, $filename); } } } chmod 0755, 'rules'; if ($CONFIG_STATUS ne "") { print "Done. Please edit the files in the debian/ subdirectory now. $package_name\n"; print "uses a configure script, so you probably don't have to edit the Makefiles.\n"; } else { print "Done. Please edit the files in the debian/ subdirectory now. You should also\n"; print "check that the $package_name Makefiles install into \$DESTDIR and not in / .\n"; } if ($package_class eq 'l') { print "Make sure you change the package name from $package_name"."BROKEN to something\n". "else, such as $package_name"."1 in the debian/control file.\n"; } exit 0; # vim:noet:sw=4:ts=4 dh-make/dh_make.10000644000000000000000000002262011771716314010736 0ustar .\" (C) Copyright 1998-2012 Craig Small .\" This program is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation; either version 3 of the License, or .\" (at your option) any later version. .\" .TH DH_MAKE 8 2012-06-24 "Debian Project" .SH NAME dh_make \- prepare Debian packaging for an original source archive .SH SYNOPSIS .B dh_make [\-nlsmiadhry] [\-c license] [\-e address] [\-f file] [\-t directory] [\-o directory] [\-p name] [\-\-copyright license] [\-\-email address] [\-\-native] [\-\-file file] [\-\-library] [\-\-single] [\-\-indep] [\-\-multi] [\-\-kmod] [\-\-kpatch] [\-\-addmissing] [\-\-yes] [\-\-templates directory] [\-\-defaultless] [\-\-overlay directory] [\-\-packagename name] [\-\-rulesformat format] [\-\-help] [\-\-version] .SH DESCRIPTION .B dh_make is a tool to convert a regular source code package into one formatted according to the requirements of the Debian Policy. .B dh_make must be invoked within a directory containing the source code, which must be named \-. The must be all lowercase, digits and dashes. If the directory name does not conform to this scheme, you must rename it before using .B dh_make. Alternatively, you may be able to use the \fB\-\-packagename\fR option to force the package name. .br .SS PACKAGE CLASSES Classes can be set with the single direct options (such as \-\-s for single) or with the -C,--packageclass option (\-C=s for single). .TP .B Single binary (s) The package will generate a single binary .deb package. It is the standard case, so if you don't know what to do, choose this. .TP .B Arch-Independent (i) The package will generate a single package that is arch-independent. .TP .B Multiple binary (m) The package will generate multiple binary .deb packages from one source package. Choose this for larger packages that need to be split. .TP .B Library (l) The package will generate at least two binaries. One library package containing just the lib in \fI/usr/lib\fR and another *\-dev_*.deb package containing documentation and C headers. .TP .B Kernel module (k) The package will generate a binary\-all kernel module \-source package for use with the .BR make\-kpkg (1) command. It also generates a binary package for additional utilities, daemons, etc. that may come with the source. .TP .B Kernel patch The package will generate a package that can be used for kernel patches. .SS ACTIONS PERFORMED Unless \fB\-\-native\fR was given, .B dh_make makes sure a original source archive (_.orig.tar.gz) exists. The archive can either end with .gz or one of the other supported compression extensions such as bz2 or lzma. If no such file exists, the file specified with \fB\-f\fR is copied in place. If no \fB\-f\fR is supplied either but \fB\-\-createorig\fR is, the current directory is created into a news archive .I ../\-.orig.tar.gz The original archive is needed for other Debian tools to generate the diffs to the original sources required by the Debian packaging format. Unless there are reasons against it, this file should be the pristine upstream archive. .PP Then .B dh_make proceeds to generate a "debian" subdirectory and the necessary control files in the program source directory. Those control files are customized with the packagename and version extracted from the directory name. .B dh_make makes several attempts to obtain the username. It first checks for the environment variables \fB$DEBFULLNAME\fR, \fB$LOGNAME\fR is used to find a name in the \fI/etc/passwd\fR file, and through NIS, YP and LDAP. The e\-mail address can either be specified with the -fB\-\-email\fR option or .B dh_make will attempt to find it. It will first check the environment variables \fB$DEBEMAIL\fR and then \fB$EMAIL. If they are not set then .B dh_make will search an available LDAP directory using .BR ldapsearch (1) using \fB$LOGNAME\fR as the uid to search under. Finally it will use \fB$LOGNAME\fR and \fI/etc/mailname\fR to generate an email address. .B dh_make will also generate example files that are also customized for the package generated. You can remove all files with *.ex if you wish. You can also delete the README.Debian file if you don't have anything to put in it. Renaming the example files to their name without the .ex at the end (and editing them if necessary) will activate that feature of debhelper. .PP If the \fB\-\-templates\fR or \fB\-o\fR (\fB\-\-overlay\fR) option is used .B dh_make will apply a customizing template to the "debian" directory. See the templates described in the FILES section of this manpage for samples. .SH OPTIONS .TP .BR \-c ", " \-\-copyright\ \fIlicense\fR Use \fIlicense\fR type in copyright file. \fIlicense\fR can be gpl, gpl2, gpl3, lgpl, lgpl2 lgpl3, artistic, apache, bsd or mit. If this field is not specified the copyright file has a space to fill in which sort of license is used. The field is case-insensitive so \-c GPL works as well as \-c gpl. gpl and lgpl will give you version 3 of the corresponding license, apache implies Apache v2.0. If you need a different version, change the license file afterwards or use the gpl2 and lgpl2 options. .TP .BR \-e ", " \-\-email\ \fIaddress\fR Use \fIaddress\fR as the e\-mail address in the Maintainer: field of debian/control file. .TP .BR \-n ", " \-\-native Create a native Debian packages, i.e. do not generate a .orig archive, since it will be generated when building with dpkg-buildpackage. The version number will not have a Debian revision number (e.g. \-1) appended to it. .TP .BR \-f ", " \-\-file\ \fIfile\fR Use \fIfile\fR as the original source archive, and skip the copying of the current program tree to program.orig. .TP .BR \-l ", " \-\-library Automatically set the package class to Library, skipping the question. .TP .BR \-s ", " \-\-single Automatically set the package class to Single binary, skipping the question. .TP .BR \-i ", " \-\-indep Automatically set the package class to arch-independent binary, skipping the question. .TP .BR \-m ", " \-\-multi Automatically set the package class to Multiple binary, skipping the question. .TP .BR \-k ", " \-\-kmod Automatically set the package class to Kernel module, skipping the question. .TP .B \-\-kpatch Automatically set package class to kpatch, skipping the question. .TP .BR \-a ", " \-\-addmissing Adds missing example and control files on an existing debian source directory. .TP .BR \-t ", " \-\-templates\ \fIdirectory\fR Applies the customizing templates in \fIdirectory\fR to the debian directory. .TP .BR \-o ", " \-\-overlay\ \fIdirectory\fR Applies a customization template to an existing debian directory. .TP .BR \-p ", " \-\-packagename\ \fIname\fR Force the package name to be \fIname\fR, good for packages with hyphens in their name or other strangeness. You can also make the parameter .IR name \_ version which will set both the package name and version and bypass and directory checking. .TP .BR \-d ", " \-\-defaultless Skips applying the default templates to the target debian directory. .TP .BR \-h ", " \-\-help Display the name, version, available options and authors, and exit successfully. .TP .BR \-r ", " \-\-rulesformat\ \fIformat\fR Set the format for the debian/rules file to \fIformat\fR. The options are the default Debhelper v7 minimal rules (dh7), the old rules format (old) or CDBS format (cdbs). .TP .BR \-v ", " \-\-version Show the program name and version, and exit successfully. .TP .BR \-y ", " \-\-yes Automatic yes to prompts and run non-interactively. The package class needs to be set for \fBdh\_make\fR to run fully automatically. .SH ENVIRONMENT The following environment settings are used by \fBdh\_make\fR: .TP .B DEBEMAIL Email address to use in control and changelog entries. .TP .B DEBFULLNAME You full name, eg "John Doe" which will appear in the control and changelog entries. .TP .B EMAIL Email address to use in control and changelog entries, only used if \fBDEBEMAIL\fR is no set. .TP .B LOGNAME Default username used for looking up email and full name in other directories. .SH FILES .TP .I /usr/share/debhelper/dh_make Directory that contains all the template files, separated in six directories: .TP .I debian/ with files for all package classes, .TP .I debians/ with files specific to the Single binary class, .TP .I debianm/ with files specific to the Multiple binary class, .TP .I debianl/ with files specific to the Library class, and finally, .TP .I native/ with files specific to the native Debian packages. .TP .I licenses/ template files for the more common licenses used in Debian packages .SH EXAMPLES .PP To get \fBdh\_make\fR to use the defaults and ask you various questions about the package .in +4n .nf dh_make .fi .in .PP Create your single class package using the with the GPL license: .in +4n .nf dh_make \-s \-c gpl .fi .in .PP A more involved example where you set your name in the environment, contact \ email and license in the options and specify the upstream file: .in +4n .nf DEBFULLNAME="John Doe" .br dh_make \-\-email contact@example.com \-\-copyright=bsd \\ .br \ \-\-file ../foo.tar.gz .fi .in .SH BUGS .B dh_make may not detect your username and email address correctly when using sudo. .SH SEE ALSO .BR dpkg (1), dpkg\-buildpackage (1), dh (1), make\-kpkg (1), debhelper (7) .P You may also want to read the Debian Policy (in \fI/usr/share/doc/debian\-policy \fR) and the New Maintainers' Guide (in \fI/usr/share/doc/maint-guide\fR). dh-make/debian/0000755000000000000000000000000012235032506010472 5ustar dh-make/debian/README.Debian0000644000000000000000000000075711510601057012542 0ustar README for dh_make ================== License for generated files --------------------------- Please read /usr/share/doc/dh-make/copyright. Since 0.37 of dh-make the output files of the program are able to be used without restriction. The question is then, which license to use? The templates will default to GPL v3 but you are free to change it. The most likely best second option is to make the license of the generated and customised (by you) files the same as the main program's license. dh-make/debian/examples0000644000000000000000000000000011510601057012217 0ustar dh-make/debian/source/0000755000000000000000000000000011510601057011770 5ustar dh-make/debian/source/format0000644000000000000000000000001511510601057013177 0ustar 3.0 (native) dh-make/debian/changelog0000644000000000000000000010116712235032376012357 0ustar dh-make (0.63) unstable; urgency=low * Changed default priority to optional Closes: #706164 * README.source has timestamp Closes: #703910 * Removed boilerplate notice from rules Closes: #721849 * Update to debhelper compat 9 Closes: #721738 * Portable CWD, thanks Dominik George for patch Closes: #726653 * Merged init skeleton, thanks to Mathieu Parent Closes: #709479 * Added more lintian ignores -- Craig Small Sat, 02 Nov 2013 10:10:22 +1100 dh-make (0.62) unstable; urgency=low * MIT license uses MIT for debian/* files, to be consistent Closes: #683800 * options are case sensitive Closes: #684258 * Update to standard 3.9.4 Closes: 696728 * Added orig.tar.xz support Closes: #696729 * dh-make will use xz compression by default Closes: #696730 * don't install emacs by default Closes: #696793 * init.d template warns about interpreted daemons Closes: #643337 -- Craig Small Sat, 02 Feb 2013 18:14:21 +1100 dh-make (0.61) unstable; urgency=low * Update to standards version 3.9.3 * Update to debhelper version 9 * debhelper v9 uses dpkg-buildflags Closes: #644486 * Remove ldap-utils conflict as that version is not even in stable * Changed emacsen-startup script to debian-emacs-flavour Closes: #662163 * Fixed emacsen-install from SamBs patch Closes: #665312 * emacsen-install uses relative symlinks Closes: #670409 * emacsen-install uses debian-pkg-add-load-path Closes: #672478 * Man page doesnt have discouraged AUTHORS section Closes: #672543 * Final version of 1.0 copyright file changed Closes: #665770 * Minor tweaks to license files Closes: #662192 * Rename x11 to mit license to follow SPDX list, same bug as above * Add -y,--yes option to run non-interactively * Add --packageclass,-C option to set class instead of -s,-i,-m etc * Don't add missing when non .ex file exists Closes: #662888 -- Craig Small Fri, 13 Jul 2012 21:26:38 +1000 dh-make (0.60) unstable; urgency=low * Added logname check Closes: #646294 * emacsen-install uses symlinks Closes: #653854 * add --with autotools-dev in rules when using autotools-dev Closes: #633347 * Refer to dh not debhelper(1) in man page Closes: #640822 * Minor envioment typo in xml manpage Closes: #639630 * Permit package version 0 Closes: #638276 * Added avoid more restrictive license recommendation Closes: #598411 -- Craig Small Sun, 19 Feb 2012 15:04:09 +1100 dh-make (0.59) unstable; urgency=low * Uses debhelper version 8 Closes: #630537 * Fixed minor typo in dh_make.1 Closes: #611758 * Removed old clauses from license templates. Closes: #615924 * Output colons line up. Closes: #622245 * .la files not installed in libpackage-dev by default Closes: #620986 * License files use + on version to match text. Closes: #623305 * Update to policy version 3.9.2 - no changes -- Craig Small Sun, 19 Jun 2011 10:28:12 +1000 dh-make (0.58) unstable; urgency=low * Fixed v7/dh7 rulesformat problem Closes: #609260 * Changed licenses to DEP5 format -- Craig Small Mon, 17 Jan 2011 21:01:04 +1100 dh-make (0.57) unstable; urgency=low * Fixed createorig tar line to really make the file Closes: #580804 * x11 license option added Closes: #522897 * rulesformat option handling works Closes: #609260 * cdbs is a rules format not a package type, fixed options Closes: #609136 -- Craig Small Sat, 08 Jan 2011 18:49:28 +1100 dh-make (0.56) unstable; urgency=low * cdbs is no longer a package type but a rules format * New option rulesformat or -r which can be dh7, old or cdbs * Changed from svn to git maintenance * Updated to standards version 3.9.1 Closes: #599853 * make tar instead of directory for --createorig Closes: #580804 * CMakeLists.txt not added to docs Closes: #587144 * dpatch option removed Closes: #589264 * BSD license has full copy Closes: #598409 * Debian packaging defaults to same license as package, where possible Closes: #598411 * Updated man page to fit new/removed commands -- Craig Small Wed, 05 Jan 2011 14:11:03 +1100 dh-make (0.55) unstable; urgency=low * Put options last for dh $@ in rules file Closes: #583720 * Fixed load-path for emacsen-startup.ex Closes: #583529 * Changed docbook path from nwalsh to docbook-xsl Closes: #581846 * Added Independent package type description Closes: #581494 -- Craig Small Mon, 31 May 2010 21:54:35 +1000 dh-make (0.54) unstable; urgency=low * Fixed problem with checking debian/source not source Closes: #576523 * Changed debhelper dependency to 7.0.50~ Closes: #577537 -- Craig Small Sun, 25 Apr 2010 16:19:58 +1000 dh-make (0.53) unstable; urgency=low * Increased debhelper dependency to 7.0.50 * Removed quilt option and marked dpatch as deprecated * Recover if debian/source doesnt exist Closes: #574918 * init.d template follows skeleton Closes: #552461 * Vcs example lines in template control files Closes: #574005 -- Craig Small Fri, 26 Mar 2010 21:48:07 +1100 dh-make (0.52) unstable; urgency=low * Minor dh_make.1 improvements Closes: #572408 * fixed source/format output Closes: #572255 -- Craig Small Mon, 08 Mar 2010 12:59:29 +1100 dh-make (0.51) unstable; urgency=low * Fixed environment typo in manpage Closes:554392 * Put debian/source/format Closes: #562713 * Fixed minor typo in gpl2 license template Closes: #546716 * Canoncialize layout of license files Closes: #560593 * Fixed kdist_clean target Closes: #432816 * Put sudo warning in dh_make.1 Closes: #483662 * Added support for bz2 and lzma source packages * Removed check for name-version-orig.tar.gz Closes: #558373 * Updated debhelper dependency to 7 -- Craig Small Mon, 01 Feb 2010 22:51:10 +1100 dh-make (0.50) unstable; urgency=low * DH_ADDON had " and not # Closes: #546026 -- Craig Small Fri, 11 Sep 2009 07:44:49 +1000 dh-make (0.49) unstable; urgency=low [ Bernd Zeimetz ] * Fixing dhusername comment in manpage.xml.ex to use existing entities. [ أحمد المحمودي (Ahmed El-Mahmoudy) ] * Standards version now 3.8.3 * Simplified debhelper rules files. * Added DH7_ADDON substitution variable * For quilt patch system, BUILD_DEP on version 0.46-7~ to support debhelper 7 addon system. [ Craig Small ] * Removed example dirs file Closes: #540370 * LSB example init.d exits 0 Closes: #531602 * Applied Ben's 'Debianize' patches Closes: #522363 * Removed dh_python from debiank rules, others gone already due to simple rules Closes: #493888 * Fixed #PACKAGE typo in init.d.lsb.ex Closes: #531092 * SOURCE_FILE_BASE defined Closes: #446381 * Adjusted the notes in the license files and added README about it Closes: #540740 * Added README.source example Closes: #543395 -- Craig Small Sun, 06 Sep 2009 18:36:14 +1000 dh-make (0.48) unstable; urgency=low * Standards version now 3.8.1 * License will be version 3 of GPL/LGPL but has options to change it * Closes: #513989 * All other GPLed files, including dh_make itself now GPL v3 * Fixed gpl template file Closes: #507060, #518162 * Added apache license template Closes: #516624 * Adjusted -p option so you can set version too Closes: #226025 * Templates for arch-indep added Closes: #209231 -- Craig Small Sun, 15 Mar 2009 09:35:09 +1100 dh-make (0.47) unstable; urgency=low * Removed extra space out of dh_installdebconf line closes: #489193 * Man page changed but->and Closes: #490821 * tabs fixed in rules file Closes: #489193 * init.d.lsb.ex fixed start_daemon line Closes: #496639 * Removed trailing whitespace in example files Closes: #497731 * CMake support from Sune Vuorela Closes: #490940 * Added Quilt support from Sune Vuorela Closes: #390941 * Added support for kernel patch packages Closes: #491870, #304688 * License templates use copyright not (C) Closes: #497468 * Made package synposes lower case Closes: #465482 * kernel postinst uses invoke-rc.d Closes: #370494 * binary only depends on install Closes: #358722 * Replace dh_clean -k with dh_prep Closes: #502698 * dh_make.1 documents dpatch and other new options Closes: #497169 * Added Vcs fields to control file Closes: #502933 * Replace backtick with qx Closes: #502524 * Changed layout of GPL license template Closes: #502522 * Make the increment of version 2 GPL optional Closes: #400249 * Updated to standards version 3.8.0 -- Craig Small Tue, 04 Nov 2008 12:03:43 +1100 dh-make (0.46) unstable; urgency=low * dh_make.1 uses correct orig file Closes: #487808 * cron.d.ex now checks -x Closes: #436241 * watch example for googlepages Closes: #447680 * Removed trailing whitespace Closes: #451479 * Updated debhelper compat to 7 Closes: #464949 * Fixed some problems in init.d.lsb.ex Closes: #485625 * Making init.d.lsb.ex more lsb correct Closes: #450898 -- Craig Small Fri, 27 Jun 2008 20:47:50 +1000 dh-make (0.45) unstable; urgency=low [ Craig Small ] * Finally (I hope) fixed manpage.xml.ex Closes: #383495 * lib control uses binary:Version Closes: #428228 * Added Homepage: tag to control file Closes: #445678 * CMakeList.txt is not a document Closes: #422203 * Offering use of dpatch. Closes: #409694 * init.d.lsb fixes from JFS Closes: #445766, #445768, #445773 * Crosscompile patch added Closes: #423707 * init.d.lsb stop_server() errcode fixed Closes: #448854 * Fixed init.d.ex running Closes: #453896 * Typo in dh_make org -> orig Closes: #431316 * Changed package-default.ex to package.default.ex Closes: #424953 * Updated to debhelper version 6 in package and templates * Added examples to man page Closes: #352017 * Fixed distclean target Closes: #432667 [ Tobias Toedter ] * Fix typo in dh_make message. Closes: #431316 * Fix typo in init.d.lsb, thanks to Yauhen Kharuzhy. Closes: #448854 * Correct errors in init.d, thanks to Marcos Talau. Closes: #453896 * Ignore a missing Makefile in clean targets, but not other errors. Thanks to Sune Vuorela. Closes: #468774 * Update to Standards-Version 3.7.3 in generated templates, thanks to Nelson A. de Oliveira. Closes: #464948 * Use untranslated dates for manpages. Closes: #447752 -- Craig Small Fri, 09 May 2008 22:41:38 +1000 dh-make (0.44) unstable; urgency=low * Locates bzip in multiple directories Closes: #40887 * Remove unsuded CFLAGS defs Closes: #353520 * Fixed typo in debianm/rules Closes: #439758 * Fixed up init.d and added an lsb example from JFS Closes: #439561 * Updated menu example Closes: #438907 * Changed 822-date to date -R Closes: #415795 * Remove -- Craig Small Wed, 01 Aug 2007 09:56:02 +1000 dh-make (0.43) unstable; urgency=low * Used pwd environment so symlinks should be ok Closes: 311512, 328405 * debiank/rules target fixed Closes: 401069 * Naive packages can specify copyright Closes: #382336 * Removed duplicate author section from manpage.xml Closes: #376378 * watch examples use devscripts not debscripts as the name Closes: #384541 * Emacsen uses /usr/share/info directory Closes: #396509 * Fixed exta typo in debiank control Closes: #401032 * config.* targets moved to reduce diff size Closes: #405764 * Removed duplicate cdbs build dep Closes: #399887 * License templates reformatted nicely Closes: #399820 -- Craig Small Mon, 8 Jan 2007 10:22:39 +1100 dh-make (0.42) unstable; urgency=low * Stopped shiiping the kde examples (Closes: #372287) * debiank/rules is executable (Closes: #372768) * de-hypened man page (Closes: #372777) * templates changed to use compat level 5 (Closes: #370468) * Default priority extra in templates (Closes: #373603) * MAKE install var=xx => MAKE var=xx install (Closes: #374175) * Consitent formatting of maintainer script (Closes: #370488) * Kernel module name consistent (Closes: #384085) * bzip2 path was changed (Closes: #377523) * fixes for cdbs template (Closes: #382042) * Now supports ~ in upstream version number (Closes: #387465) * fixed force-reload behaviour of init.d template to follow LSB (Closes: #377292) * README.Debian the same author line as in changelog (Closes: #379773) -- Craig Small Wed, 1 Nov 2006 08:30:21 +1100 dh-make (0.41) unstable; urgency=low * Kernel module rules use sname Closes: #350938, #354883 * Typo removed from kernel rules on line 67 Closes: #348299 * Removed conffiles.ex Closes: #345109 * example pre/post inst/rm have space removed from first line Closes: #325221 * Checks and bombs if there are extra options Closes: #337114 * touch in rules file uses $@ variable Closes: #344971 * updated jrv's email address Closes: #351432 * Manual page points to debhelper man page and not readme Closes: #353204 * both my source and examples to debhelper v5 Closes: #340223 * kernel-module requires build-dep on bzip2 Closes: #350935 * multi rules file uses -s not -a Closes: #351035 * kernel module copies compat file Closes: #351241 * Removed year from native copyright Closes: #351278 * Better error message when sourcefile not found Closes: #355019 * Better emacs-setup example Closes: #355814 * kernel module postinst doesnt call update-modules Closes: #355962 * Removed escape characters out of version checking Closes: #343969 * Some CFLAGS moved to LDFLAGS Closes: #338990 * Added note that directory format is only for dh_make Closes: #330734 * dh_python before dh_installinit Closes: #334812 * kernel rules use kdist_configure Closes: #342050 * Bruce Sass email change and customer to custom. * Upgraded to standards version 3.7.2 Closes: #366697 * r option for creating orig file Closes: #364417 * example changelog changed Closes: #365953 * Updated copyright templates Closes: #360640 * Build-depends-indep is now build-depends -- Craig Small Fri, 2 Jun 2006 21:39:44 +1000 dh-make (0.40) unstable; urgency=low * Second time, first time died with my laptop disk drive * -c option for copyright, -b for cdbs closes: #312030 * gzip found in right location for bz2 files Closes: #314875, #317398 * Policy version changed to 3.6.2 Closes: #316019 * Location of FSF updated Closes: #318632 * Fixes for cdbs Closes: #320636 * KDE example menu now a menu and not a directory list Closes: #309633 * KDE control file better formatted * watch.ex uses new SF checking URL Closes: #319320, #316721 * Added CFLAGS="-Wl,-z,defs" for libraries Closes: #203035 -- Craig Small Fri, 26 Aug 2005 11:14:13 +1000 dh-make (0.39) unstable; urgency=low * Has cdbs support closes: #269423 * Removed local variable from native changelog Closes: #292484 * module-assistant migration Closes: #241098 * Library control template uses libdevel section Closes: #293311 * Uses pre-existing orig.tar.gz if it exists Closes: #166849 * Converts bz2 original files into gz ones Closes: #292390 * lower case Release in changelog template Closes: #294408 * watch has an example of SF support Closes: #299840 * watch files are now version 3 Closes: #307032 * pkgconfig files installed for lib-dev package types Closes: #308944 -- Craig Small Wed, 18 May 2005 21:39:50 +1000 dh-make (0.38) unstable; urgency=low * Now uses strict to be a bit cleaner, fixed some typos too! * Build-Deps are now dynamically created * Packages that use the autotools-dev will now build depend on the package Closes: #287103 * Typo (lincense) fixed Closes: #275625 * License files now say Copyright Holders to make it clearer it is the copyright. Closes: #286843 * Watch files have more examples and use new HTTP method Closes: #288681 * dh_make doesn't allow single letter package names Closes: #235460 * Removed -s option for stripping in debianl/rules Closes: #255463 * GPL template gives the option to use version > 2 Closes: #282839 * debiank/rules now refers to control.modules.in Closes: #284412 * Space at end of clean lines in rules file removed Closes: #286441 * debianl/control has Section line for source Closes: #290360 * Removed init call in preinst -- Craig Small Wed, 2 Mar 2005 08:32:57 +1100 dh-make (0.37) unstable; urgency=low * Copyright changed on output files to be bison-like. * Removed / from files so old .la files dont get pulled in Closes: #225966 * Closes: #230774: debiank/control missing build-dep * debiank/control now has build-dep on debhelper * Closes: #232480: debiank/rules should make use of $ROOT_CMD if present * debiank/rules uses ROOTCMD * Closes: #244878: Prepares debian/*.files but does not use dh_movefiles * *.files renamed to *.install * Closes: #255538: lib*-dev should be in libdevel now * debianl/control has section libdev * Standards version to 3.6.1 Closes: #265802, #270804, #271524 * Closes: #236186: should quote values in debian/menu * menu example has quotes * Closes: #254351: manpage template redundancy and suggestion * Example man page has upstream author and removed DEbian info from description * Closes: #255462: dh-make shouldn't use absolute path for binaries * Removed path from docbook-to-man * Closes: #242710: debian/copyright template should distinguish difference between copyright and license * License file has copyright and license lines in right places * Closes: #256095: Please change egrep to grep -E * egrep changed to grep -E -- Craig Small Thu, 23 Sep 2004 15:05:02 +1000 dh-make (0.36) unstable; urgency=low * Fixed CFLAGS problem Closes: #211287, #213118, #223448 * Added manpage.xml.ex Closes: #213167 * Rearranged so that DEBEMAIL is done before ldap search Closes: #212563 * Removed policy quote from postinst.ex Closes: #215545 * Put lintian overrides in -- Craig Small Thu, 15 Jan 2004 08:56:09 +1100 dh-make (0.35) unstable; urgency=low * Changed manpage.sgml template to be GPL no GFDL Closes: #210939 * Added -f to debiank/rules Closes: #205293 * Removed suspicous lines from rules Closes: #200987 * Changed d_python to dh_python in debianl/rules Closes: #205412 * Added CFLAGS=$(CFLAGS) to configure line Closes: #211287 * Changed debhelper depends version to >= in templates Closes: #211294 * added -*- makefile -*- to rules templates Closes: #211276 * Added feature for default files in init Closes: #200957 * Added comma to control templates Closes: #211292 * getent correctly looks for username Closes: #211807 -- Craig Small Wed, 24 Sep 2003 14:21:18 +1000 dh-make (0.34) unstable; urgency=low * changed -a flag to -s Closes: #194357 * build-indep/arch-stamp now makes the stamp Closes: #194835 * preserve .orig files in archive Closes: #197337 * config-stamp in debianm/rules change to configure-stamp Closes: #194372 * Changes emacsen.startup in case of remove package Closes: #193595 * debiank/control.modules.in updated debhelper version to 4 Closes: #190408 * Added missing dh_shlibdeps to debianm/rules Closes: #187744 * Bumped standards to 3.5.9 Closes: #187416 * Reworked the -p flag so you can have strange dir names Closes: #180732 -- Craig Small Thu, 26 Jun 2003 21:22:46 +1000 dh-make (0.33) unstable; urgency=low * Uses debian/compat and it is 4 Closes: #183067, #158537 * Uses dh_install instead of movefiles * Added newline to debiank/control Closes: #177512 * Uses getent to get users name Closes: #176838 * Conflicts with ancient ldap utils Closes: #173062 * doc-base example uses package.doc-base.EX Closes: #138785 * Uses DESTDIR instead of prefix for automaked packages Closes: #97811, #112548 * Better error messages Closes: #183053 * GNU/Linux has been removed, its just Debian now Closes: #182484 -- Craig Small Wed, 5 Mar 2003 08:32:52 +1100 dh-make (0.32) unstable; urgency=low * Upgraded standards version to 3.5.8 Closes: #175403 * Removed split loops, whatever the hell they are Closes: #165537 * changed DEB_BUILD_OPTIONS Closes: #161796 * Upgraded init.d.ex to latest version Closes: #160878 * Changed clean target for config.* Closes: #160712 * Bad directory name message fixed Closes: #158066 * You can choose the name of the package, so things like hyphens or other confusing stuff can be used Closes: #112821 * shlibs.local typo fixed Closes: #156069 * Message for library builds about renaming blahBROKEN was missing a newline Closes: #151287 * SGML manpage example now uses gnu entities Closes: #144070 * Multi rules file gets an overhaul Closes: #170582 * DH_COMPAT bumped to 4 Closes: #158537 * Library dev files have libtool and pkgconfig files support, if they exist. Closes: #153791 -- Craig Small Mon, 6 Jan 2003 09:24:57 +1100 dh-make (0.31) unstable; urgency=low * Fixed problem in clean target for multi Closes: #150469, #140021 * Added /usr for library installs Closes: #148145 * Changed init.d example so it prints daemon name first Closes: #139466 * Manual page uses correct -c and -t flags Closes: #135405 * Example manual.sgml updated to 2002 Closes: #143980 * Changed watch.ex to use version=2 Closes: #139416 * Added kernel-module type Closes: #149833 * Added warning about libfoo1 for library type Closes: #144757 * Added build-essential to Suggests (not Depends) Closes: #144532 -- Craig Small Thu, 20 Jun 2002 09:40:41 +1000 dh-make (0.30) unstable; urgency=low * Fixed expansion problem in clean target Closes: #134677 (Thanks to all submitters for clear reports and patches) * Now I remember why doc-base is back to front, change it back It has to be because dh_installdocs will install the ex file Closes: #138554 * Installs libraries in right packages Closes: #132421 * Lots of configure work to remove redundant target Closes: #125981 * Removed libc6-dev out out debianl control file Closes: #134126 * dpkg-architecture only called on configure sources Closes: #136805 -- Craig Small Mon, 18 Mar 2002 07:59:27 +1100 dh-make (0.29) unstable; urgency=low * For packages with configure, install into /usr not / Closes: #97811, #113226, #133639, #128944 * Uses dpkg-architecture Closes: #112032 * If available, uses autotools-dev which updates config.guess, config.sub if needed. * lgpg is now lgpl in dh_make.1 Closes: #113228 * Multi rules file has two build targets Closes: #115569 * postrm.ex has missing exit 0 Closes: #126900 * Removed citations of Debian Packaging Manual Closes: #94890 * Fixed spelling error in rules files Closes: #97399 * Updated native copyright to 2002 Closes: #132913 * Renamed ex.doc-base.package to package.doc-base.ex Closes: #130721 * More and better ldap searching for name and email Closes: #129634 * Fixed control file for libs Closes: #113784 * Manual example now just uses Debian distribution Closes: #115567 * sgml manual example updated to docbook 4.1 Closes: #88134 * sgml manual example reminds about build-depends Closes: #95874 * added DEB_BUILD_OPTIONS handling Closes: #126537 -- Craig Small Sat, 12 Jan 2002 08:50:51 +1100 dh-make (0.28) unstable; urgency=low * Changed custom option to templates also -c to -t so copyright option has short option -c Closes: #126807 * Fixed minor speeeling error in description Closes: #124547 * Minor fix in man page spacing Closes: #107906 -- Craig Small Sun, 30 Dec 2001 17:48:12 +1100 dh-make (0.27) unstable; urgency=low * Removed emacs stuff out of changelog template Closes: #93980 * Rules files can parellel make Closes: #95900 * -c means custom and -C copyright Closes: #97498, #113227 * INSTALL files do not get installed Closes: #101563 * init.d has an extra oknodo if daemon dies Closes: #109770, #111569 * pre/post example scripts exit1 with bad args Closes: #109836 * -e entry in dh_make.1 fixed Closes: #110815 -- Craig Small Mon, 8 Oct 2001 11:55:17 +1000 dh-make (0.26) unstable; urgency=low * debhelper sync 3.0.9 * path in init.d fixed. Closes: #85922 * Removed all references to dh_testversion Closes: #89627 * Watch is not in native packages Closes: #85112 * Changed copyright year in native to 2001 Closes: #85429 * Debian library packages first use tmp then movefiles as this is what debhelper wants. Closes: #75770, #85331 * Added generic template support Closes: #81120 * Use dh_installman Closes: #90097 -- Craig Small Thu, 15 Mar 2001 08:24:47 +1100 dh-make (0.25) unstable; urgency=low * rules build in right directory Closes: #83623 * commented our calls to dh_suidregister Closes: #83225 * Added the dash line to README Closes: #79986 * deleted add-mail-log info line in changelog as it did evil things. incidently Closes: #83040 -- Craig Small Tue, 6 Feb 2001 13:29:05 +1100 dh-make (0.24) unstable; urgency=low * New standards version * changed debian/tmp to debian/PACKAGE Closes: #74485, #80935 * doesn't die when no /etc/mailname Closes: #74841 * variable length dashline Closes: #79986 * added an example conffile Closes: #64223 * added license option Closes: #72848 * checks that package name conforms to policy manual Closes: #75286 -- Craig Small Sun, 31 Dec 2000 17:50:11 +1100 dh-make (0.23) unstable; urgency=low * Added configure to PHONY targets in makefiles, Closes: #64938 * Added Build-Depends lines to controls for 3.1.1, Closes: #64942, #65960 * Deleted update-menu line in postrm, Closes: #66168 * Fixed native copyright, and debianl.dirs to remove man3, Closes: #66637 * Created addmissing flag to re-add example files, Closes: #53111 * Adjusted emacs startup file Closes: #71774 * GECOS field is chopped when using NIS Closes: #72854 * Man page now says YP support is there Closes: #65003 * Man page now mentions the LOGNAME variable Closes: #67114 * Added an add-log-mailing-address to changelog example Closes: #72847 * DH_COMPAT version upped to 2 in rules templates, Closes: #72883 -- Craig Small Fri, 7 Jul 2000 09:27:17 +1000 dh-make (0.22) unstable; urgency=low * Fixed tab problem in library rules Closes: #53726, #62210, #64557 * Removed ypmatch or ldapsearch newline Closes: #61944 * Upped the standards version, added Build-Depends: Closes: #64221 * Removed # from $(MAKE) in rules files * Added configure-stamp Closes: #50221 * Added docbook manpage example Closes: #62951 * Changed native copyright to point to new place. * Did a lot of /usr/doc -> /usr/share/doc changes. * Tried to make a sensible Build-Depends line. -- Craig Small Wed, 24 May 2000 21:58:05 +1000 dh-make (0.21) unstable; urgency=low * Removed useless install-stamp Closes: #49576 * Added Jim's patch for infodir and example man page * Closes: #51350, #51755 * Added Jim's patch for libraries Closes: #51580 -- Craig Small Thu, 2 Dec 1999 09:58:31 +1100 dh-make (0.20) unstable; urgency=low * Fixed policy version Closes: #47152 * Changed mandir to /usr/share/man Closes: #46862 -- Craig Small Fri, 15 Oct 1999 09:27:07 +1000 dh-make (0.19) unstable; urgency=low * Fixed typo for native packages Closes: #45746 * Updated rules files so they follow debhelper closer -- Craig Small Fri, 1 Oct 1999 11:03:06 +1000 dh-make (0.18) unstable; urgency=low * Now depends on dpkg-dev Closes: #41439 * Looks at $EMAIL Closes: #42573 * Gets the right info files Closes: #42649 * manpage example consistently doesn't use quotes Closes: #43451 * Removed old README file Closes: #41769 * Fixed rules file Closes: #42651 * Removes the old perl dependency -- Craig Small Mon, 6 Sep 1999 14:18:39 +1000 dh-make (0.17) unstable; urgency=low * Moved files to /usr/share, updated debhelper dep Closes: #41174 * Fixed postinst.ex file Closes: #41190 * Finds more makefiles Closes: #40979 * Added doc-base example Closes: #36986 -- Craig Small Thu, 15 Jul 1999 12:34:59 +1000 dh-make (0.16) unstable; urgency=low * Fixed docs #DOCS# problem Closes: #40837 * changelog uses #DATE# Closes: #40865 * Now locates info files Closes: #35660 -- Craig Small Thu, 8 Jul 1999 11:02:50 +1000 dh-make (0.15) unstable; urgency=low * Changed Perl dependency to perl5 * Misc file changes using supplied patch (Bug #40680) * Added dh_perl lines to examples -- Craig Small Mon, 5 Jul 1999 08:57:42 +1000 dh-make (0.14) unstable; urgency=low * Fixed username guessing (Bug #40528 #40502) * PWD now uses `pwd` (Bug #40583) * Case insensitve checks on users input for package type * dh_shlibdeps before gencontrol in libs type (Bug #39131) -- Craig Small Fri, 2 Jul 1999 17:13:30 +1000 dh-make (0.13) unstable; urgency=low * Fixed how dh_make looks at GECOS field (Bug #40268) * Parse sample files properly (Bug #40272) * Reversed native check so non-native builds orig directories -- Craig Small Mon, 28 Jun 1999 10:16:30 +1000 dh-make (0.12) unstable; urgency=low * Totally re-wrote dh_make binary to use perl * dh_make less horribly broken (Bug #39985 ) * Updated man pages and other suggested files (Bug #37678 ) * Now use $LOGNAME instead of $USER (Bug #38797 ) * Swapped order of dh_gencontrol and dh_shlibdeps (Bug #39131 ) * Depends on debhelper >= 1.2.9 * Looks for makefile as well as Makefile (Bug #39763 ) * Added examples for {pre|post}{inst|rm} (Bug #36865 ) * Added sample emacsen scripts (Bug #36987 ) -- Craig Small Wed, 23 Jun 1999 12:01:12 +1000 dh-make (0.11) unstable; urgency=low * Fixed stupid syntax error (Bug #37048 #37156) * Added more patches to cleanup some code (Bug #37087 ) -- Craig Small Thu, 6 May 1999 23:44:05 +1000 dh-make (0.10) unstable; urgency=low * Added DEBEMAIL option * Fixed the DOCS problem (Bug #36057 #36142 #36605) * Moved suid files message on rules (Bug #36641) * Fixed the watch.ex file (Bug #36693 #36699) -- Craig Small Wed, 21 Apr 1999 11:31:26 +1000 dh-make (0.9) unstable; urgency=low * Changelog no longer adds emacs email address line (Bug #30649 ) * Added reminder to setuid some executables (Bug #33255 ) * Updated init.d scripts to new version (Bug #34540 ) * Added INSTALL and *.txt to documents (Bug #31456 ) * Added -*- makefile -*- to rules files for emacs people (Bug #31852 ) * Prettied up README and copyright (Bug #33253 ) * Dont install changelog twice (Bug #34232 ) * Added a LDAP search (Bug #33922 ) * Spelt Christoph's name correctly -- Craig Small Thu, 25 Mar 1999 15:03:11 +1100 dh-make (0.8) unstable; urgency=low * Remove examples of stuff that doesn't work with debhelper (Bug #29466 #31413 ) * Fixed typo in single rules file (Bug #27749 ) * rules templates now follow debhelper examples (Bug #26415 ) -- Craig Small Mon, 16 Nov 1998 10:13:24 +1100 dh-make (0.7) unstable; urgency=low * Fixed stupid (my stupidity) version bug (Bug #27113 #27177 ) * Changed make to $(MAKE) (Bug #27105 ) -- Craig Small Mon, 28 Sep 1998 08:05:42 +1000 dh-make (0.6) unstable; urgency=low * Fixed problems with multi packages not using the -i and -a flags. (Bug #26415) * Added upstream author into copyright template (Bug #25622 ) * Upstream changelogs handled by dh_installchangelogs rather than dh_installdocs (Bug #25961 ) * Attempted at another go at the version guessing (Bug #22689 ) -- Craig Small Wed, 12 Aug 1998 08:29:04 +1000 dh-make (0.5) unstable; urgency=low * New version as hamm is in the deep freeze -- Craig Small Tue, 16 Jun 1998 07:55:41 +1000 dh-make (0.4) frozen unstable; urgency=low * Fixed debianl/rules (Bug #22582) * Now depends on make (stops lintian complaints) -- Craig Small Tue, 19 May 1998 09:18:30 +1000 dh-make (0.3) frozen unstable; urgency=low * Changed 8 spaces into tab in debianl Makefile (Bug #22257 ) -- Craig Small Mon, 11 May 1998 11:33:09 +1000 dh-make (0.2) unstable; urgency=low * rules files now use O (oh) not 0 (zero) (Bug #20159 ) * Added a patch to fix some silly mistakes (Bug #19938 ) -- Craig Small Wed, 15 Apr 1998 08:03:12 +1000 dh-make (0.1) unstable; urgency=low * Initial Release. -- Craig Small Thu, 5 Mar 1998 12:18:10 +1100 dh-make/debian/compat0000644000000000000000000000000212212075016011666 0ustar 9 dh-make/debian/manpages0000644000000000000000000000001211510601057012177 0ustar dh_make.1 dh-make/debian/control0000644000000000000000000000144012212075046012075 0ustar Source: dh-make Section: devel Priority: optional Maintainer: Craig Small Build-Depends: debhelper (>= 9) Standards-Version: 3.9.4 Vcs-Git: git://git.debian.org/collab-maint/dh-make.git Vcs-Browser: http://git.debian.org/?p=collab-maint/dh-make.git;a=summary Package: dh-make Architecture: all Depends: debhelper (>= 9), make, ${perl:Depends}, dpkg-dev, ${misc:Depends} Suggests: build-essential Description: tool that converts source archives into Debian package source This package allows you to take a standard (or upstream) source package and convert it into a format that will allow you to build Debian packages. . After answering a few questions, dh_make will then provide a set of templates that, after some small editing, will allow you to create a Debian package. dh-make/debian/dh-make.install0000644000000000000000000000006211510601057013364 0ustar dh_make usr/bin lib/* usr/share/debhelper/dh_make dh-make/debian/copyright0000644000000000000000000000245211771464176012450 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: dh-make Source: http://git.debian.org/?p=collab-maint/dh-make.git;a=summary Files: * Copyright: 1998-2011 Craig Small License: GPL-3.0+ with template exception This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-3'. . As a special exception, when the template files are copied by dh-make into dh-make output files, you may use those output files without restriction. This special exception was added by Craig Small in version 0.37 of dh-make. dh-make/debian/lintian-overrides0000644000000000000000000000162112235031613014051 0ustar dh-make: script-not-executable ./usr/share/debhelper/dh_make/debian/preinst.ex dh-make: script-not-executable ./usr/share/debhelper/dh_make/debian/prerm.ex dh-make: script-not-executable ./usr/share/debhelper/dh_make/debian/postrm.ex dh-make: script-not-executable ./usr/share/debhelper/dh_make/debian/emacsen-install.ex dh-make: script-not-executable ./usr/share/debhelper/dh_make/debian/emacsen-remove.ex dh-make: script-not-executable ./usr/share/debhelper/dh_make/debian/postinst.ex dh-make: extra-license-file usr/share/debhelper/dh_make/licenses/artistic dh-make: extra-license-file usr/share/debhelper/dh_make/licenses/bsd dh-make: extra-license-file usr/share/debhelper/dh_make/licenses/gpl2 dh-make: extra-license-file usr/share/debhelper/dh_make/licenses/gpl3 dh-make: extra-license-file usr/share/debhelper/dh_make/licenses/lgpl2 dh-make: extra-license-file usr/share/debhelper/dh_make/licenses/lgpl3 dh-make/debian/rules0000755000000000000000000000007611510601057011553 0ustar #!/usr/bin/make -f # # Makefile for dh-make package %: dh $@ dh-make/lib/0000755000000000000000000000000012103141622010010 5ustar dh-make/lib/native/0000755000000000000000000000000011510601057011302 5ustar dh-make/lib/native/README0000644000000000000000000000017411510601057012164 0ustar The Debian Package #PACKAGE# ---------------------------- Comments regarding the Package -- #USERNAME# <#EMAIL#> #DATE# dh-make/lib/native/changelog0000644000000000000000000000014411510601057013153 0ustar #PACKAGE# (#VERSION#) unstable; urgency=low * Initial Release. -- #USERNAME# <#EMAIL#> #DATE# dh-make/lib/debiank/0000755000000000000000000000000012212073442011412 5ustar dh-make/lib/debiank/package-modules-_KVERS_.postinst.modules.in.ex0000755000000000000000000000255311510601057022144 0ustar #!/bin/sh # postinst script for modules package built from #PACKAGE# set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) if [ -x /usr/sbin/update-devfsd ] ; then /usr/sbin/update-devfsd 2>/dev/null || true fi # Install the modules below modprobe #PACKAGE#-foo 2>/dev/null || modprobe #PACKAGE#-bar 2>/dev/null || true # start or restart after install or upgrade # Tests to see if the binary exists first if test -x /usr/sbin/#PACKAGE# ; then invoke-rc.d #PACKAGE# start || true fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 dh-make/lib/debiank/README.Debian0000644000000000000000000000165411510601057013460 0ustar #PACKAGE# for Debian #DASHLINE# Please see ./README for a description of the #PACKAGE# software. The Debian #PACKAGE# source package provides two packages, 1) #PACKAGE#, which the provides the userspace daemon 2) #PACKAGE#-source, which provides the source for the kernel modules The #PACKAGE#-source package can be used in several ways, - Using the make-kpkg(1) command provided by the kernel-package Debian package. This will produce a corresponding #PACKAGE#-modules package for the Debian kernel-image package that you are using. This is "the Debian way". See the "modules_image" section of the make-kpkg(1) man page. - Changing to the /usr/src/modules/#PACKAGE#/ directory and building as the README file instructs using "make; make install". This will build and install a module specific to the system you are building on and is not under control of the packaging system. -- #USERNAME# <#EMAIL#> #DATE# dh-make/lib/debiank/rules.old0001755000000000000000000001305012212073442013247 0ustar #!/usr/bin/make -f # -*- makefile -*- # This version is for a hypothetical package that can build a kernel modules # architecture-dependant package via make-kpkg, as well as an # architecture-independent module source package, and other packages # either dep/indep for things like common files or userspace components # needed for the kernel modules. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 #DPKG_ARCH# # some default definitions, important! # # Name of the source package psource:=#PACKAGE#-source # The short upstream name, used for the module source directory sname:=#PACKAGE# ### KERNEL SETUP ### Setup the stuff needed for making kernel module packages ### taken from /usr/share/kernel-package/sample.module.rules # prefix of the target package name PACKAGE=#PACKAGE#-modules # modifieable for experiments or debugging m-a MA_DIR ?= /usr/share/modass # load generic variable handling -include $(MA_DIR)/include/generic.make # load default rules, including kdist, kdist_image, ... -include $(MA_DIR)/include/common-rules.make #PATCH_CLASS# # module assistant calculates all needed things for us and sets # following variables: # KSRC (kernel source directory), KVERS (kernel version string), KDREV # (revision of the Debian kernel-image package), CC (the correct # compiler), VERSION (the final package version string), PKGNAME (full # package name with KVERS included), DEB_DESTDIR (path to store DEBs) # The kdist_config target is called by make-kpkg modules_config and # by kdist* rules by dependency. It should configure the module so it is # ready for compilation (mostly useful for calling configure). # prep-deb-files from module-assistant creates the neccessary debian/ files kdist_config: prep-deb-files # the kdist_clean target is called by make-kpkg modules_clean and from # kdist* rules. It is responsible for cleaning up any changes that have # been made by the other kdist_commands (except for the .deb files created) kdist_clean: clean $(MAKE) $(MFLAGS) -f debian/rules clean # rm -f driver/*.o driver/*.ko # ### end KERNEL SETUP #CONFIGURE# build-arch: #CONFIGURE_STAMP# #CONFIG_STATUS# build-arch-stamp build-arch-stamp: #PATCH_STAMP# dh_testdir # Add here command to compile/build the package. $(MAKE) touch $@ #k = $(shell echo $(KVERS) | grep -q ^2.6 && echo k) # the binary-modules rule is invoked by module-assistant while processing the # kdist* targets. It is called by module-assistant or make-kpkg and *not* # during a normal build binary-modules: dh_testroot dh_prep dh_installdirs lib/modules/$(KVERS)/misc # Build the module $(MAKE) -C drivers KERNEL_DIR=$(KSRC) KVERS=$(KVERS) # Install the module cp drivers/slusb.$ko drivers/slamr.$ko debian/$(PKGNAME)/lib/modules/$(KVERS)/misc dh_installdocs dh_installchangelogs dh_compress dh_fixperms dh_installdeb dh_gencontrol -- -v$(VERSION) dh_md5sums dh_builddeb --destdir=$(DEB_DESTDIR) dh_prep build-indep: #CONFIG_STATUS# #CONFIGURE_STAMP# build-indep-stamp build-indep-stamp: #PATCH_STAMP# dh_testdir # Add here command to compile/build the arch indep package. # It's ok not to do anything here, if you don't need to build # anything for this package. #docbook-to-man debian/#PACKAGE#.sgml > #PACKAGE#.1 touch $@ build: build-arch build-indep clean: #PATCH_CLEAN# dh_testdir #dh_testroot rm -f build-arch-stamp build-indep-stamp #CONFIGURE_STAMP# # Add here commands to clean up after the build process. #CLEAN# dh_clean install: DH_OPTIONS= install: build dh_testdir dh_testroot dh_prep dh_installdirs # Create the directories to install the source into dh_installdirs -p$(psource) usr/src/modules/$(sname)/debian # Copy only the driver source to the proper location cp -s driver/* debian/$(psource)/usr/src/modules/$(sname) # Copy the needed debian/ pieces to the proper location cp debian/*modules.in* \ debian/$(psource)/usr/src/modules/$(sname)/debian cp debian/*_KVERS_* debian/rules debian/changelog debian/copyright \ debian/compat debian/$(psource)/usr/src/modules/$(sname)/debian/ cd debian/$(psource)/usr/src && tar c modules | bzip2 -9 > $(sname).tar.bz2 && rm -rf modules # Add here commands to install the package into debian/#PACKAGE#. #INSTALL# dh_install # Build architecture-independent files here. # Pass -i to all debhelper commands in this target to reduce clutter. binary-indep: build install dh_testdir -i dh_testroot -i dh_installchangelogs #CHANGELOGS# -i dh_installdocs -i dh_installexamples -i # dh_install -i # dh_installmenu -i # dh_installdebconf -i # dh_installlogrotate -i # dh_installemacsen -i # dh_installpam -i # dh_installmime -i # dh_installinit -i # dh_installcron -i # dh_installinfo -i dh_installman -i dh_link -i dh_compress -i dh_fixperms -i dh_installdeb -i # dh_perl -i # dh_python -i # dh_makeshlibs -i dh_installdeb -i dh_shlibdeps -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i # Build architecture-dependent files here. binary-arch: build install dh_testdir -s dh_testroot -s # dh_installdebconf -s dh_installdocs -s dh_installexamples -s dh_installmenu -s # dh_installlogrotate -s # dh_installemacsen -s # dh_installpam -s # dh_installmime -s # dh_installinit -s dh_installcron -s # dh_installman -s dh_installinfo -s dh_installchangelogs #CHANGELOGS# -s dh_strip -s dh_link -s dh_compress -s dh_fixperms -s # dh_makeshlibs -s dh_installdeb -s # dh_perl -s dh_shlibdeps -s dh_gencontrol -s dh_md5sums -s dh_builddeb -s binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install #PHONY_CONFIGURE# binary-modules kdist kdist_configure kdist_image kdist_clean dh-make/lib/debiank/control0000644000000000000000000000155412136335342013027 0ustar Source: #PACKAGE# Section: unknown Priority: optional Maintainer: #USERNAME# <#EMAIL#> Build-Depends: #BUILD_DEPS# Standards-Version: #POLICY# Homepage: #Vcs-Git: git://git.debian.org/collab-maint/#PACKAGE#.git #Vcs-Browser: http://git.debian.org/?p=collab-maint/#PACKAGE#.git;a=summary Package: #PACKAGE#-utils Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Package: #PACKAGE#-source Architecture: all Depends: module-assistant, debhelper (>= 7), make, bzip2 Description: source for the #PACKAGE# driver. This package provides the source code for the #PACKAGE# kernel modules. The #PACKAGE# package is also required in order to make use of these modules. Kernel source or headers are required to compile these modules. dh-make/lib/debiank/rules.dh70001755000000000000000000001303712212073432013157 0ustar #!/usr/bin/make -f # -*- makefile -*- # This version is for a hypothetical package that can build a kernel modules # architecture-dependant package via make-kpkg, as well as an # architecture-independent module source package, and other packages # either dep/indep for things like common files or userspace components # needed for the kernel modules. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 #DPKG_ARCH# # some default definitions, important! # # Name of the source package psource:=#PACKAGE#-source # The short upstream name, used for the module source directory sname:=#PACKAGE# ### KERNEL SETUP ### Setup the stuff needed for making kernel module packages ### taken from /usr/share/kernel-package/sample.module.rules # prefix of the target package name PACKAGE=#PACKAGE#-modules # modifieable for experiments or debugging m-a MA_DIR ?= /usr/share/modass # load generic variable handling -include $(MA_DIR)/include/generic.make # load default rules, including kdist, kdist_image, ... -include $(MA_DIR)/include/common-rules.make #PATCH_CLASS# # module assistant calculates all needed things for us and sets # following variables: # KSRC (kernel source directory), KVERS (kernel version string), KDREV # (revision of the Debian kernel-image package), CC (the correct # compiler), VERSION (the final package version string), PKGNAME (full # package name with KVERS included), DEB_DESTDIR (path to store DEBs) # The kdist_config target is called by make-kpkg modules_config and # by kdist* rules by dependency. It should configure the module so it is # ready for compilation (mostly useful for calling configure). # prep-deb-files from module-assistant creates the neccessary debian/ files kdist_config: prep-deb-files # the kdist_clean target is called by make-kpkg modules_clean and from # kdist* rules. It is responsible for cleaning up any changes that have # been made by the other kdist_commands (except for the .deb files created) kdist_clean: clean dh_testdir dh_clean $(MAKE) $(MFLAGS) clean # rm -f driver/*.o driver/*.ko # ### end KERNEL SETUP #CONFIGURE# build-arch: #CONFIGURE_STAMP# #CONFIG_STATUS# build-arch-stamp build-arch-stamp: #PATCH_STAMP# dh_testdir # Add here command to compile/build the package. $(MAKE) touch $@ #k = $(shell echo $(KVERS) | grep -q ^2.6 && echo k) # the binary-modules rule is invoked by module-assistant while processing the # kdist* targets. It is called by module-assistant or make-kpkg and *not* # during a normal build binary-modules: dh_testroot dh_prep dh_installdirs lib/modules/$(KVERS)/misc # Build the module $(MAKE) -C drivers KERNEL_DIR=$(KSRC) KVERS=$(KVERS) # Install the module cp drivers/slusb.$ko drivers/slamr.$ko debian/$(PKGNAME)/lib/modules/$(KVERS)/misc dh_installdocs dh_installchangelogs dh_compress dh_fixperms dh_installdeb dh_gencontrol -- -v$(VERSION) dh_md5sums dh_builddeb --destdir=$(DEB_DESTDIR) dh_prep build-indep: #CONFIG_STATUS# #CONFIGURE_STAMP# build-indep-stamp build-indep-stamp: #PATCH_STAMP# dh_testdir # Add here command to compile/build the arch indep package. # It's ok not to do anything here, if you don't need to build # anything for this package. #docbook-to-man debian/#PACKAGE#.sgml > #PACKAGE#.1 touch $@ build: build-arch build-indep clean: #PATCH_CLEAN# dh_testdir #dh_testroot rm -f build-arch-stamp build-indep-stamp #CONFIGURE_STAMP# # Add here commands to clean up after the build process. #CLEAN# dh_clean install: DH_OPTIONS= install: build dh_testdir dh_testroot dh_prep dh_installdirs # Create the directories to install the source into dh_installdirs -p$(psource) usr/src/modules/$(sname)/debian # Copy only the driver source to the proper location cp -s driver/* debian/$(psource)/usr/src/modules/$(sname) # Copy the needed debian/ pieces to the proper location cp debian/*modules.in* \ debian/$(psource)/usr/src/modules/$(sname)/debian cp debian/*_KVERS_* debian/rules debian/changelog debian/copyright \ debian/compat debian/$(psource)/usr/src/modules/$(sname)/debian/ cd debian/$(psource)/usr/src && tar c modules | bzip2 -9 > $(sname).tar.bz2 && rm -rf modules # Add here commands to install the package into debian/#PACKAGE#. #INSTALL# dh_install # Build architecture-independent files here. # Pass -i to all debhelper commands in this target to reduce clutter. binary-indep: build install dh_testdir -i dh_testroot -i dh_installchangelogs #CHANGELOGS# -i dh_installdocs -i dh_installexamples -i # dh_install -i # dh_installmenu -i # dh_installdebconf -i # dh_installlogrotate -i # dh_installemacsen -i # dh_installpam -i # dh_installmime -i # dh_installinit -i # dh_installcron -i # dh_installinfo -i dh_installman -i dh_link -i dh_compress -i dh_fixperms -i dh_installdeb -i # dh_perl -i # dh_makeshlibs -i dh_installdeb -i dh_shlibdeps -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i # Build architecture-dependent files here. binary-arch: build install dh_testdir -s dh_testroot -s # dh_installdebconf -s dh_installdocs -s dh_installexamples -s dh_installmenu -s # dh_installlogrotate -s # dh_installemacsen -s # dh_installpam -s # dh_installmime -s # dh_installinit -s dh_installcron -s # dh_installman -s dh_installinfo -s dh_installchangelogs #CHANGELOGS# -s dh_strip -s dh_link -s dh_compress -s dh_fixperms -s # dh_makeshlibs -s dh_installdeb -s # dh_perl -s dh_shlibdeps -s dh_gencontrol -s dh_md5sums -s dh_builddeb -s binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install #PHONY_CONFIGURE# binary-modules kdist kdist_configure kdist_image kdist_clean dh-make/lib/debiank/control.modules.in0000644000000000000000000000132111510601057015065 0ustar Source: #PACKAGE# Section: unknown Priority: optional Maintainer: #USERNAME# <#EMAIL#> Build-Depends: debhelper (>= 7) Standards-Version: #POLICY# Package: #PACKAGE#-modules-_KVERS_ Architecture: any Provides: #PACKAGE#-modules Description: #PACKAGE# modules for Linux (kernel _KVERS_). This package contains the set of loadable kernel modules for the . . This package contains the compiled kernel modules for _KVERS_ . If you have compiled your own kernel, you will most likely need to build your own #PACKAGE#-modules. The #PACKAGE#-source package has been provided for use with the Debian's module-assistant or kernel-package utilities to produce a version of #PACKAGE#-modules for your kernel. dh-make/lib/debians/0000755000000000000000000000000012212073707011426 5ustar dh-make/lib/debians/rules.cdbs0000755000000000000000000000022311510601057013410 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk #CDBS_CLASS# #PATCH_CLASS# # Add here any variable or target overrides you need. dh-make/lib/debians/watch.ex0000644000000000000000000000143111510601057013064 0ustar # Example watch control file for uscan # Rename this file to "watch" and then you can run the "uscan" command # to check for upstream updates and more. # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 # Uncomment to examine a Webpage # #http://www.example.com/downloads.php #PACKAGE#-(.*)\.tar\.gz # Uncomment to examine a Webserver directory #http://www.example.com/pub/#PACKAGE#-(.*)\.tar\.gz # Uncommment to examine a FTP server #ftp://ftp.example.com/pub/#PACKAGE#-(.*)\.tar\.gz debian uupdate # Uncomment to find new files on sourceforge, for devscripts >= 2.9 # http://sf.net/#PACKAGE#/#PACKAGE#-(.*)\.tar\.gz # Uncomment to find new files on GooglePages # http://example.googlepages.com/foo.html #PACKAGE#-(.*)\.tar\.gz dh-make/lib/debians/rules.old0000755000000000000000000000257512212073707013274 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 #DPKG_ARCH# #PATCH_CLASS# #CONFIGURE# build: build-stamp build-stamp: #CONFIGURE_STAMP# #CONFIG_STATUS# #PATCH_STAMP# dh_testdir # Add here commands to compile the package. #MAKE# #docbook-to-man debian/#PACKAGE#.sgml > #PACKAGE#.1 touch $@ clean: #PATCH_CLEAN# dh_testdir dh_testroot rm -f build-stamp #CONFIGURE_STAMP# # Add here commands to clean up after the build process. #CLEAN# dh_clean#PRESERVE# install: build dh_testdir dh_testroot dh_prep #PRESERVE# dh_installdirs # Add here commands to install the package into debian/#PACKAGE#. #INSTALL# # Build architecture-independent files here. binary-indep: install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: install dh_testdir dh_testroot dh_installchangelogs #CHANGELOGS# dh_installdocs dh_installexamples # dh_install # dh_installmenu # dh_installdebconf # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_python # dh_installinit # dh_installcron # dh_installinfo dh_installman dh_link dh_strip dh_compress dh_fixperms # dh_perl # dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install #PHONY_CONFIGURE# dh-make/lib/debians/control0000644000000000000000000000077212136335270013040 0ustar Source: #PACKAGE# Section: unknown Priority: optional Maintainer: #USERNAME# <#EMAIL#> Build-Depends: #BUILD_DEPS# Standards-Version: #POLICY# Homepage: #Vcs-Git: git://git.debian.org/collab-maint/#PACKAGE#.git #Vcs-Browser: http://git.debian.org/?p=collab-maint/#PACKAGE#.git;a=summary Package: #PACKAGE# Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: dh-make/lib/debians/rules.dh70000755000000000000000000000017512212073265013171 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ #DH7_ADDON# dh-make/lib/debianm/0000755000000000000000000000000012212073624011416 5ustar dh-make/lib/debianm/watch.ex0000644000000000000000000000143111510601057013056 0ustar # Example watch control file for uscan # Rename this file to "watch" and then you can run the "uscan" command # to check for upstream updates and more. # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 # Uncomment to examine a Webpage # #http://www.example.com/downloads.php #PACKAGE#-(.*)\.tar\.gz # Uncomment to examine a Webserver directory #http://www.example.com/pub/#PACKAGE#-(.*)\.tar\.gz # Uncommment to examine a FTP server #ftp://ftp.example.com/pub/#PACKAGE#-(.*)\.tar\.gz debian uupdate # Uncomment to find new files on sourceforge, for devscripts >= 2.9 # http://sf.net/#PACKAGE#/#PACKAGE#-(.*)\.tar\.gz # Uncomment to find new files on GooglePages # http://example.googlepages.com/foo.html #PACKAGE#-(.*)\.tar\.gz dh-make/lib/debianm/rules.old0000755000000000000000000000432612212073624013260 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS #DPKG_ARCH# #PATCH_CLASS# #CONFIGURE# #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: #CONFIGURE_STAMP# #CONFIG_STATUS# #PATCH_STAMP# # Add here commands to compile the arch part of the package. ##MAKE# touch $@ build-indep: build-indep-stamp build-indep-stamp: #CONFIGURE_STAMP# #CONFIG_STATUS# #PATCH_STAMP# # Add here commands to compile the indep part of the package. #$(MAKE) doc touch $@ clean: #PATCH_CLEAN# dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp #CONFIGURE_STAMP# # Add here commands to clean up after the build process. #CLEAN# dh_clean#PRESERVE# install: install-indep install-arch install-indep: dh_testdir dh_testroot dh_prep -i#PRESERVE# dh_installdirs -i # Add here commands to install the indep part of the package into # debian/-doc. #INSTALLDOC# dh_install -i install-arch: dh_testdir dh_testroot dh_prep -s#PRESERVE# dh_installdirs -s # Add here commands to install the arch part of the package into # debian/tmp. #INSTALL# dh_install -s # Must not depend on anything. This is to be called by # binary-arch/binary-indep # in another 'make' thread. binary-common: dh_testdir dh_testroot dh_installchangelogs #CHANGELOGS# dh_installdocs dh_installexamples # dh_installmenu # dh_installdebconf # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_python # dh_installinit # dh_installcron # dh_installinfo dh_installman dh_link dh_strip dh_compress dh_fixperms # dh_perl dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb # Build architecture independant packages using the common target. binary-indep: build-indep install-indep $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch #PHONY_CONFIGURE# dh-make/lib/debianm/control0000644000000000000000000000117612136335311013025 0ustar Source: #PACKAGE# Section: unknown Priority: optional Maintainer: #USERNAME# <#EMAIL#> Build-Depends: #BUILD_DEPS# Standards-Version: #POLICY# Homepage: #Vcs-Git: git://git.debian.org/collab-maint/#PACKAGE#.git #Vcs-Browser: http://git.debian.org/?p=collab-maint/#PACKAGE#.git;a=summary Package: #PACKAGE# Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Package: #PACKAGE#-doc Architecture: all Description: documentation for #PACKAGE# dh-make/lib/debianm/package-doc.install0000644000000000000000000000000711510601057015136 0ustar #DOCS# dh-make/lib/debianm/rules.dh70000755000000000000000000000031212212073613013151 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS %: dh $@ #DH7_ADDON# dh-make/lib/debianm/package-doc.docs0000644000000000000000000000000711510601057014420 0ustar #DOCS# dh-make/lib/debiann/0000755000000000000000000000000012212073657011425 5ustar dh-make/lib/debiann/README.Debian0000644000000000000000000000020711510601057013454 0ustar #PACKAGE# for Debian #DASHLINE# -- #USERNAME# <#EMAIL#> #DATE# dh-make/lib/debiann/kpatches0000644000000000000000000000013111510601057013134 0ustar Patch-name: Patch-id: Architecture: all Path-strip-level: 0 Patch-file: Kernel-version: dh-make/lib/debiann/rules.old0001755000000000000000000000107111510601057013251 0ustar #!/usr/bin/make -f build: build-stamp build-stamp: dh_testdir touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs dh_installkpatches # Build architecture-independent files here. binary-indep: install dh_testdir dh_testroot dh_installdocs dh_installchangelogs dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb binary-arch: binary-indep binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install dh-make/lib/debiann/control0000644000000000000000000000103412136335354013026 0ustar Source: #PACKAGE# Section: unknown Priority: optional Maintainer: #USERNAME# <#EMAIL#> Build-Depends: #BUILD_DEPS# Standards-Version: #POLICY# Homepage: #Vcs-Git: git://git.debian.org/collab-maint/#PACKAGE#.git #Vcs-Browser: http://git.debian.org/?p=collab-maint/#PACKAGE#.git;a=summary Package: #PACKAGE# Architecture: all Depends: ${kpatch:Depends} Recommends: linux-source Suggests: kernel-package Description: dh-make/lib/debiann/rules.dh70001755000000000000000000000003611510601057013155 0ustar #!/usr/bin/make -f %: dh $@ dh-make/lib/debiani/0000755000000000000000000000000012212073400011402 5ustar dh-make/lib/debiani/watch.ex0000644000000000000000000000143111510601057013052 0ustar # Example watch control file for uscan # Rename this file to "watch" and then you can run the "uscan" command # to check for upstream updates and more. # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 # Uncomment to examine a Webpage # #http://www.example.com/downloads.php #PACKAGE#-(.*)\.tar\.gz # Uncomment to examine a Webserver directory #http://www.example.com/pub/#PACKAGE#-(.*)\.tar\.gz # Uncommment to examine a FTP server #ftp://ftp.example.com/pub/#PACKAGE#-(.*)\.tar\.gz debian uupdate # Uncomment to find new files on sourceforge, for devscripts >= 2.9 # http://sf.net/#PACKAGE#/#PACKAGE#-(.*)\.tar\.gz # Uncomment to find new files on GooglePages # http://example.googlepages.com/foo.html #PACKAGE#-(.*)\.tar\.gz dh-make/lib/debiani/rules.old0000755000000000000000000000256012212073400013242 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 #DPKG_ARCH# #PATCH_CLASS# #CONFIGURE# build: build-stamp build-stamp: #CONFIGURE_STAMP# #CONFIG_STATUS# #PATCH_STAMP# dh_testdir # Add here commands to compile the package. #MAKE# #docbook-to-man debian/#PACKAGE#.sgml > #PACKAGE#.1 touch $@ clean: #PATCH_CLEAN# dh_testdir dh_testroot rm -f build-stamp #CONFIGURE_STAMP# # Add here commands to clean up after the build process. #CLEAN# dh_clean#PRESERVE# install: build dh_testdir dh_testroot dh_prep #PRESERVE# dh_installdirs # Add here commands to install the package into debian/#PACKAGE#. #INSTALL# # Build architecture-independent files here. binary-indep: install dh_testdir dh_testroot dh_installchangelogs #CHANGELOGS# dh_installdocs dh_installexamples # dh_install # dh_installmenu # dh_installdebconf # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_installinit # dh_installcron # dh_installinfo # dh_installwm # dh_installudev # dh_lintian # dh_undocumented dh_installman dh_link dh_compress dh_fixperms # dh_perl # dh_python dh_installdeb dh_gencontrol dh_md5sums dh_builddeb # Build architecture-dependent files here. binary-arch: install binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install #PHONY_CONFIGURE# dh-make/lib/debiani/control0000644000000000000000000000074712136335326013032 0ustar Source: #PACKAGE# Section: unknown Priority: optional Maintainer: #USERNAME# <#EMAIL#> Build-Depends: #BUILD_DEPS# Standards-Version: #POLICY# Homepage: #Vcs-Git: git://git.debian.org/collab-maint/#PACKAGE#.git #Vcs-Browser: http://git.debian.org/?p=collab-maint/#PACKAGE#.git;a=summary Package: #PACKAGE# Architecture: all Depends: ${misc:Depends} Description: dh-make/lib/debiani/rules.dh70000755000000000000000000000017512212073346013157 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ #DH7_ADDON# dh-make/lib/emacs/0000755000000000000000000000000012103141622011100 5ustar dh-make/lib/emacs/emacsen-remove.ex0000644000000000000000000000073512103141622014351 0ustar #!/bin/sh -e # /usr/lib/emacsen-common/packages/remove/#PACKAGE# FLAVOR=$1 PACKAGE=#PACKAGE# if [ ${FLAVOR} != emacs ]; then if test -x /usr/sbin/install-info-altdir; then echo remove/${PACKAGE}: removing Info links for ${FLAVOR} install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/share/info/#PACKAGE#.info.gz fi echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} fi dh-make/lib/emacs/emacsen-startup.ex0000644000000000000000000000236112103141622014553 0ustar ;; -*-emacs-lisp-*- ;; ;; Emacs startup file, e.g. /etc/emacs/site-start.d/50#PACKAGE#.el ;; for the Debian #PACKAGE# package ;; ;; Originally contributed by Nils Naumann ;; Modified by Dirk Eddelbuettel ;; Adapted for dh-make by Jim Van Zandt ;; The #PACKAGE# package follows the Debian/GNU Linux 'emacsen' policy and ;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, ;; xemacs19, emacs20, xemacs20...). The compiled code is then ;; installed in a subdirectory of the respective site-lisp directory. ;; We have to add this to the load-path: (let ((package-dir (concat "/usr/share/" (symbol-name debian-emacs-flavor) "/site-lisp/#PACKAGE#"))) ;; If package-dir does not exist, the #PACKAGE# package must have ;; removed but not purged, and we should skip the setup. (when (file-directory-p package-dir) (if (fboundp 'debian-pkg-add-load-path-item) (debian-pkg-add-load-path-item package-dir) (setq load-path (cons package-dir load-path))) (autoload '#PACKAGE#-mode "#PACKAGE#-mode" "Major mode for editing #PACKAGE# files." t) (add-to-list 'auto-mode-alist '("\\.#PACKAGE#$" . #PACKAGE#-mode)))) dh-make/lib/emacs/emacsen-install.ex0000644000000000000000000000241012103141622014512 0ustar #! /bin/sh -e # /usr/lib/emacsen-common/packages/install/#PACKAGE# # Written by Jim Van Zandt , borrowing heavily # from the install scripts for gettext by Santiago Vila # and octave by Dirk Eddelbuettel . FLAVOR=$1 PACKAGE=#PACKAGE# if [ ${FLAVOR} = emacs ]; then exit 0; fi echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} #FLAVORTEST=`echo $FLAVOR | cut -c-6` #if [ ${FLAVORTEST} = xemacs ] ; then # SITEFLAG="-no-site-file" #else # SITEFLAG="--no-site-file" #fi FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} ELRELDIR=../../../emacs/site-lisp/${PACKAGE} # Install-info-altdir does not actually exist. # Maybe somebody will write it. if test -x /usr/sbin/install-info-altdir; then echo install/${PACKAGE}: install Info links for ${FLAVOR} install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/share/info/${PACKAGE}.info.gz fi install -m 755 -d ${ELCDIR} cd ${ELDIR} FILES=`echo *.el` cd ${ELCDIR} ln -sf ${ELRELDIR}/*.el . cat << EOF > path.el (debian-pkg-add-load-path-item ".") (setq byte-compile-warnings nil) EOF ${FLAVOR} ${FLAGS} ${FILES} rm -f path.el exit 0 dh-make/lib/licenses/0000755000000000000000000000000012103170137011620 5ustar dh-make/lib/licenses/apache0000644000000000000000000000242311771464073013004 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: #PACKAGE# Source: Files: * Copyright: License: Apache-2.0 Files: debian/* Copyright: #YEAR# #USERNAME# <#EMAIL#> License: Apache-2.0 License: Apache-2.0 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. . On Debian systems, the complete text of the Apache version 2.0 license can be found in "/usr/share/common-licenses/Apache-2.0". # Please also look if there are files or directories which have a # different copyright/license attached and list them here. # Please avoid to pick license terms that are more restrictive than the # packaged work, as it may make Debian's contributions unacceptable upstream. dh-make/lib/licenses/mit0000644000000000000000000000317012103136277012344 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: #PACKAGE# Source: Files: * Copyright: License: MIT Files: debian/* Copyright: #YEAR# #USERNAME# <#EMAIL#> License: MIT License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # Please also look if there are files or directories which have a # different copyright/license attached and list them here. # Please avoid to pick license terms that are more restrictive than the # packaged work, as it may make Debian's contributions unacceptable upstream. dh-make/lib/licenses/gpl30000644000000000000000000000255611771464073012437 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: #PACKAGE# Source: Files: * Copyright: License: GPL-3.0+ Files: debian/* Copyright: #YEAR# #USERNAME# <#EMAIL#> License: GPL-3.0+ License: GPL-3.0+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". # Please also look if there are files or directories which have a # different copyright/license attached and list them here. # Please avoid to pick license terms that are more restrictive than the # packaged work, as it may make Debian's contributions unacceptable upstream. dh-make/lib/licenses/lgpl30000644000000000000000000000257511771464073012614 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: #PACKAGE# Source: Files: * Copyright: License: LGPL-3.0+ Files: debian/* Copyright: #YEAR# #USERNAME# <#EMAIL#> License: LGPL-3.0+ License: LGPL-3.0+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU Lesser General Public License can be found in "/usr/share/common-licenses/LGPL-3". # Please also look if there are files or directories which have a # different copyright/license attached and list them here. # Please avoid to pick license terms that are more restrictive than the # packaged work, as it may make Debian's contributions unacceptable upstream. dh-make/lib/licenses/lgpl20000644000000000000000000000257511771464073012613 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: #PACKAGE# Source: Files: * Copyright: License: LGPL-2.0+ Files: debian/* Copyright: #YEAR# #USERNAME# <#EMAIL#> License: LGPL-2.0+ License: LGPL-2.0+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU Lesser General Public License can be found in "/usr/share/common-licenses/LGPL-2". # Please also look if there are files or directories which have a # different copyright/license attached and list them here. # Please avoid to pick license terms that are more restrictive than the # packaged work, as it may make Debian's contributions unacceptable upstream. dh-make/lib/licenses/bsd0000644000000000000000000000406311771465625012341 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: #PACKAGE# Source: Files: * Copyright: License: BSD-3-Clause Files: debian/* Copyright: #YEAR# #USERNAME# <#EMAIL#> License: BSD-3-Clause License: BSD-3-Clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Please also look if there are files or directories which have a # different copyright/license attached and list them here. # Please avoid to pick license terms that are more restrictive than the # packaged work, as it may make Debian's contributions unacceptable upstream. dh-make/lib/licenses/blank0000644000000000000000000000320011771464073012644 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: #PACKAGE# Source: Files: * Copyright: License: . # If you want to use GPL v2 or later for the /debian/* files use # the following clauses, or change it to suit. Delete these two lines Files: debian/* Copyright: #YEAR# #USERNAME# <#EMAIL#> License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". # Please also look if there are files or directories which have a # different copyright/license attached and list them here. # Please avoid to pick license terms that are more restrictive than the # packaged work, as it may make Debian's contributions unacceptable upstream. dh-make/lib/licenses/gpl20000644000000000000000000000255511771464073012435 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: #PACKAGE# Source: Files: * Copyright: License: GPL-2.0+ Files: debian/* Copyright: #YEAR# #USERNAME# <#EMAIL#> License: GPL-2.0+ License: GPL-2.0+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". # Please also look if there are files or directories which have a # different copyright/license attached and list them here. # Please avoid to pick license terms that are more restrictive than the # packaged work, as it may make Debian's contributions unacceptable upstream. dh-make/lib/licenses/artistic0000644000000000000000000000210611771465301013376 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: #PACKAGE# Source: Files: * Copyright: License: Artistic Files: debian/* Copyright: #YEAR# #USERNAME# <#EMAIL#> License: Artistic-1.0 License: Artistic-1.0 This program is free software; you can redistribute it and/or modify it under the terms of the "Artistic License" which comes with Debian. . THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. . On Debian systems, the complete text of the Artistic License can be found in "/usr/share/common-licenses/Artistic". # Please also look if there are files or directories which have a # different copyright/license attached and list them here. # Please avoid to pick license terms that are more restrictive than the # packaged work, as it may make Debian's contributions unacceptable upstream. dh-make/lib/debianl/0000755000000000000000000000000012235030551011412 5ustar dh-make/lib/debianl/package-dev.dirs0000644000000000000000000000002411510601057014440 0ustar usr/lib usr/include dh-make/lib/debianl/watch.ex0000644000000000000000000000143111510601057013055 0ustar # Example watch control file for uscan # Rename this file to "watch" and then you can run the "uscan" command # to check for upstream updates and more. # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 # Uncomment to examine a Webpage # #http://www.example.com/downloads.php #PACKAGE#-(.*)\.tar\.gz # Uncomment to examine a Webserver directory #http://www.example.com/pub/#PACKAGE#-(.*)\.tar\.gz # Uncommment to examine a FTP server #ftp://ftp.example.com/pub/#PACKAGE#-(.*)\.tar\.gz debian uupdate # Uncomment to find new files on sourceforge, for devscripts >= 2.9 # http://sf.net/#PACKAGE#/#PACKAGE#-(.*)\.tar\.gz # Uncomment to find new files on GooglePages # http://example.googlepages.com/foo.html #PACKAGE#-(.*)\.tar\.gz dh-make/lib/debianl/shlibs.local.ex0000644000000000000000000000011711510601057014324 0ustar lib#PACKAGE# #VERSION# #PACKAGE# (>> #VERSION#-0), #PACKAGE# (<< #VERSION#-99) dh-make/lib/debianl/package1.install0000644000000000000000000000002211510601057014450 0ustar usr/lib/lib*.so.* dh-make/lib/debianl/rules.old0000755000000000000000000000325112212073566013260 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 #DPKG_ARCH# #PATCH_CLASS# # shared library versions, option 1 version=2.0.5 major=2 # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so #version=`ls src/.libs/lib*.so.* | \ # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` #major=`ls src/.libs/lib*.so.* | \ # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` #CONFIGURE# build: build-stamp build-stamp: #CONFIGURE_STAMP# #CONFIG_STATUS# #PATCH_STAMP# dh_testdir # Add here commands to compile the package. #MAKE# touch $@ clean: #PATCH_CLEAN# dh_testdir dh_testroot rm -f build-stamp #CONFIGURE_STAMP# # Add here commands to clean up after the build process. #CLEAN# dh_clean#PRESERVE# install: build dh_testdir dh_testroot dh_prep #PRESERVE# dh_installdirs # Add here commands to install the package into debian/tmp #INSTALL# # Build architecture-independent files here. binary-indep: install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: install dh_testdir dh_testroot dh_installchangelogs #CHANGELOGS# dh_installdocs dh_installexamples # dh_install # dh_installmenu # dh_installdebconf # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_installinit # dh_installcron # dh_installinfo dh_installman dh_link dh_strip dh_compress dh_fixperms # dh_perl # dh_python # dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install #PHONY_CONFIGURE# dh-make/lib/debianl/package1.dirs0000644000000000000000000000001011510601057013740 0ustar usr/lib dh-make/lib/debianl/control0000644000000000000000000000133012136335302013014 0ustar Source: #PACKAGE# Priority: optional Maintainer: #USERNAME# <#EMAIL#> Build-Depends: #BUILD_DEPS# Standards-Version: #POLICY# Section: libs Homepage: #Vcs-Git: git://git.debian.org/collab-maint/#PACKAGE#.git #Vcs-Browser: http://git.debian.org/?p=collab-maint/#PACKAGE#.git;a=summary Package: #PACKAGE#-dev Section: libdevel Architecture: any Depends: #PACKAGE#BROKEN (= ${binary:Version}) Description: Package: #PACKAGE#BROKEN Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: dh-make/lib/debianl/package-dev.install0000644000000000000000000000012711577240606015165 0ustar usr/include/* usr/lib/lib*.a usr/lib/lib*.so usr/lib/pkgconfig/* usr/share/pkgconfig/* dh-make/lib/debianl/rules.dh70000755000000000000000000000017512212073556013165 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ #DH7_ADDON# dh-make/lib/debian/0000755000000000000000000000000012235030511011232 5ustar dh-make/lib/debian/manpage.sgml.ex0000644000000000000000000001104311510601057014144 0ustar manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> FIRSTNAME"> SURNAME"> #SHORTDATE#"> SECTION"> #EMAIL#"> #UCPACKAGE#"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2003 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; program to do something &dhpackage; DESCRIPTION This manual page documents briefly the &dhpackage; and bar commands. This manual page was written for the &debian; distribution because the original program does not have a manual page. Instead, it has documentation in the &gnu; Info format; see below. &dhpackage; is a program that... OPTIONS These programs follow the usual &gnu; command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the Info files. Show summary of options. Show version of program. SEE ALSO bar (1), baz (1). The programs are documented fully by The Rise and Fall of a Fooish Bar available via the Info system. AUTHOR This manual page was written by &dhusername; &dhemail; for the &debian; system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
dh-make/lib/debian/menu.ex0000644000000000000000000000020411510601057012534 0ustar ?package(#PACKAGE#):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\ title="#PACKAGE#" command="/usr/bin/#PACKAGE#" dh-make/lib/debian/README.Debian0000644000000000000000000000020711510601057013276 0ustar #PACKAGE# for Debian #DASHLINE# -- #USERNAME# <#EMAIL#> #DATE# dh-make/lib/debian/postinst.ex0000644000000000000000000000167711510601057013472 0ustar #!/bin/sh # postinst script for #PACKAGE# # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 dh-make/lib/debian/package.default.ex0000644000000000000000000000036111510601057014612 0ustar # Defaults for #PACKAGE# initscript # sourced by /etc/init.d/#PACKAGE# # installed at /etc/default/#PACKAGE# by the maintainer scripts # # This is a POSIX shell fragment # # Additional options that are passed to the Daemon. DAEMON_OPTS="" dh-make/lib/debian/changelog0000644000000000000000000000023311510601057013106 0ustar #PACKAGE# (#VERSION#-1) unstable; urgency=low * Initial release (Closes: #nnnn) -- #USERNAME# <#EMAIL#> #DATE# dh-make/lib/debian/compat0000644000000000000000000000000212212075201012430 0ustar 9 dh-make/lib/debian/prerm.ex0000644000000000000000000000155711510601057012731 0ustar #!/bin/sh # prerm script for #PACKAGE# # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `upgrade' # * `failed-upgrade' # * `remove' `in-favour' # * `deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in remove|upgrade|deconfigure) ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 dh-make/lib/debian/README.source0000644000000000000000000000035612136336630013430 0ustar #PACKAGE# for Debian #DASHLINE# #SOURCE_EXTRADOCS# -- #USERNAME# <#EMAIL#> #DATE# dh-make/lib/debian/manpage.xml.ex0000644000000000000000000002537511720071101014011 0ustar .
will be generated. You may view the manual page with: nroff -man .
| less'. A typical entry in a Makefile or Makefile.am is: DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/manpages/docbook.xsl XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0" manpage.1: manpage.xml $(XP) $(DB2MAN) $< The xsltproc binary is found in the xsltproc package. The XSL files are in docbook-xsl. A description of the parameters you can use can be found in the docbook-xsl-doc-* packages. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include xsltproc and docbook-xsl in your Build-Depends control field. Alternatively use the xmlto command/package. That will also automatically pull in xsltproc and docbook-xsl. Notes for using docbook2x: docbook2x-man does not automatically create the AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as ... . To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be found in the docbook-xsl-doc-html package. Validation can be done using: `xmllint -''-noout -''-valid manpage.xml` General documentation about man-pages and man-page-formatting: man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ --> ]> &dhtitle; &dhpackage; &dhfirstname; &dhsurname; Wrote this manpage for the Debian system.
&dhemail;
2007 &dhusername; This manual page was written for the Debian system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
&dhucpackage; &dhsection; &dhpackage; program to do something &dhpackage; this this that &dhpackage; DESCRIPTION This manual page documents briefly the &dhpackage; and bar commands. This manual page was written for the Debian distribution because the original program does not have a manual page. Instead, it has documentation in the GNU info 1 format; see below. &dhpackage; is a program that... OPTIONS The program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the info 1 files. Does this and that. Show summary of options. Show version of program. FILES /etc/foo.conf The system-wide configuration file to control the behaviour of &dhpackage;. See foo.conf 5 for further details. ${HOME}/.foo.conf The per-user configuration file to control the behaviour of &dhpackage;. See foo.conf 5 for further details. ENVIRONMENT FOO_CONF If used, the defined file is used as configuration file (see also ). DIAGNOSTICS The following diagnostics may be issued on stderr: Bad configuration file. Exiting. The configuration file seems to contain a broken configuration line. Use the option, to get more info. &dhpackage; provides some return codes, that can be used in scripts: Code Diagnostic 0 Program exited successfully. 1 The configuration file seems to be broken. BUGS The program is currently limited to only work with the foobar library. The upstreams BTS can be found at . SEE ALSO bar 1 , baz 1 , foo.conf 5 The programs are documented fully by The Rise and Fall of a Fooish Bar available via the info 1 system.
dh-make/lib/debian/package.doc-base.EX0000644000000000000000000000103111510601057014536 0ustar Document: #PACKAGE# Title: Debian #PACKAGE# Manual Author: Abstract: This manual describes what #PACKAGE# is and how it can be used to manage online manuals on Debian systems. Section: unknown Format: debiandoc-sgml Files: /usr/share/doc/#PACKAGE#/#PACKAGE#.sgml.gz Format: postscript Files: /usr/share/doc/#PACKAGE#/#PACKAGE#.ps.gz Format: text Files: /usr/share/doc/#PACKAGE#/#PACKAGE#.text.gz Format: HTML Index: /usr/share/doc/#PACKAGE#/html/index.html Files: /usr/share/doc/#PACKAGE#/html/*.html dh-make/lib/debian/postrm.ex0000644000000000000000000000164411510601057013125 0ustar #!/bin/sh # postrm script for #PACKAGE# # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 dh-make/lib/debian/package.cron.d.ex0000644000000000000000000000021111510601057014343 0ustar # # Regular cron jobs for the #PACKAGE# package # 0 4 * * * root [ -x /usr/bin/#PACKAGE#_maintenance ] && /usr/bin/#PACKAGE#_maintenance dh-make/lib/debian/init.d.ex0000755000000000000000000001074612235025101012767 0ustar #!/bin/sh ### BEGIN INIT INFO # Provides: #PACKAGE# # Required-Start: $local_fs $network $remote_fs $syslog # Required-Stop: $local_fs $network $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: # Description: # <...> # <...> ### END INIT INFO # Author: #USERNAME# <#EMAIL#> # Do NOT "set -e" # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="#PACKAGE#" NAME=#PACKAGE# DAEMON=/usr/sbin/#PACKAGE# DAEMON_ARGS="" PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. # Depend on lsb-base (>= 3.2-14) to ensure that this file is present # and status_of_proc is working. . /lib/lsb/init-functions # # Function that starts the daemon/service # do_start() { # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ $DAEMON_ARGS \ || return 2 # The above code will not work for interpreted scripts, use the next # six lines below instead (Ref: #643337, start-stop-daemon(8) ) #start-stop-daemon --start --quiet --pidfile $PIDFILE --startas $DAEMON \ # --name $NAME --test > /dev/null \ # || return 1 #start-stop-daemon --start --quiet --pidfile $PIDFILE --startas $DAEMON \ # --name $NAME -- $DAEMON_ARGS \ # || return 2 # Add code here, if necessary, that waits for the process to be ready # to handle requests from services started subsequently which depend # on this one. As a last resort, sleep for some time. } # # Function that stops the daemon/service # do_stop() { # Return # 0 if daemon has been stopped # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Wait for children to finish too if this is a daemon that forks # and if the daemon is only ever run from this initscript. # If the above conditions are not satisfied then add some other code # that waits for the process to drop all resources that could be # needed by services started subsequently. A last resort is to # sleep for some time. start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON [ "$?" = 2 ] && return 2 # Many daemons don't delete their pidfiles when they exit. rm -f $PIDFILE return "$RETVAL" } # # Function that sends a SIGHUP to the daemon/service # do_reload() { # # If the daemon can reload its configuration without # restarting (for example, when it is sent a SIGHUP), # then implement that here. # start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME return 0 } case "$1" in start) [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; status) status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? ;; #reload|force-reload) # # If do_reload() is not implemented then leave this commented out # and leave 'force-reload' as an alias for 'restart'. # #log_daemon_msg "Reloading $DESC" "$NAME" #do_reload #log_end_msg $? #;; restart|force-reload) # # If the "reload" option is implemented then remove the # 'force-reload' alias # log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac : dh-make/lib/debian/preinst.ex0000644000000000000000000000126411510601057013263 0ustar #!/bin/sh # preinst script for #PACKAGE# # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `install' # * `install' # * `upgrade' # * `abort-upgrade' # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in install|upgrade) ;; abort-upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 dh-make/lib/debian/manpage.1.ex0000644000000000000000000000313711771462752013367 0ustar .\" Hey, EMACS: -*- nroff -*- .\" (C) Copyright #YEAR# #USERNAME# <#EMAIL#>, .\" .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH #UCPACKAGE# SECTION "#SHORTDATE#" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME #PACKAGE# \- program to do something .SH SYNOPSIS .B #PACKAGE# .RI [ options ] " files" ... .br .B bar .RI [ options ] " files" ... .SH DESCRIPTION This manual page documents briefly the .B #PACKAGE# and .B bar commands. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fB#PACKAGE#\fP is a program that... .SH OPTIONS These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the Info files. .TP .B \-h, \-\-help Show summary of options. .TP .B \-v, \-\-version Show version of program. .SH SEE ALSO .BR bar (1), .BR baz (1). .br The programs are documented fully by .IR "The Rise and Fall of a Fooish Bar" , available via the Info system.