dh-di-6/0000755000000000000000000000000012170177455007105 5ustar dh-di-6/lib/0000755000000000000000000000000011515465070007646 5ustar dh-di-6/lib/Debian/0000755000000000000000000000000011515465070011030 5ustar dh-di-6/lib/Debian/Debhelper/0000755000000000000000000000000011515465070012722 5ustar dh-di-6/lib/Debian/Debhelper/Sequence/0000755000000000000000000000000011515465070014472 5ustar dh-di-6/lib/Debian/Debhelper/Sequence/d_i.pm0000644000000000000000000000050411515465070015562 0ustar #!/usr/bin/perl # debhelper sequence file for d-i use warnings; use strict; use Debian::Debhelper::Dh_Lib; insert_after("dh_install", "dh_di_numbers"); add_command("dh_di_kernel_gencontrol", "update-control"); insert_before("dh_testdir", "dh_di_kernel_gencontrol"); insert_after("dh_install", "dh_di_kernel_install"); 1; dh-di-6/dh_di_numbers0000755000000000000000000000714012170177455011637 0ustar #!/usr/bin/perl -w =head1 NAME dh_di_numbers - install numbered scripts into package build directories =cut use strict; use Debian::Debhelper::Dh_Lib; =head1 SYNOPSIS B [S>] [S>] =head1 DESCRIPTION dh_di_numbers is a debhelper program that installs directories of numbered scripts into package build directories. Within each directory, there should be a C<_numbers> file in which each line contains at least two space-separated fields. The first field in each line is a two-digit number, which will be prefixed to the entry name to provide ordering within the directory; the second is the entry name, which must correspond to a file or directory alongside the C<_numbers> file; and the third field, if present, is another two-digit number which identifies another entry with the same entry name to which this entry should be a symlink. Any additional directory names specified as parameters will be installed in the package build directory of the first package dh_di_numbers is told to act on. By default, this is the first binary package in debian/control, but if you use -p, -i, or -a flags, it will be the first package specified by those flags. =head1 FILES =over 4 =item debian/I.di-numbers List the directories to install into each package and the directory they should be installed to. The format is a set of lines, where each line lists a directory or directories to install, and at the end of the line tells the directory they should be installed in. The name of the directories to install should be given relative to the current directory, while the installation directory is given relative to the package build directory. You may use wildcards in the names of the files to install (in v3 mode and above). =back =head1 OPTIONS =over 4 =item I Lists directories to install and where to install them to. The files will be installed into the first package dh_di_numbers acts on. =back =cut sub install_dir { my $tmp = shift; my $dir = shift; my $dest = shift; $dest = "$tmp/$dest/" . basename($dir); doit("install", "-d", $dest); my %numbers; my %links; local (*NUMBERS, $_); if (open NUMBERS, "$dir/_numbers") { while () { my @fields = split; if (@fields < 2) { next; } elsif (@fields == 2) { push @{$numbers{$fields[1]}}, $fields[0]; } else { push @{$links{$fields[1]}}, [@fields[0, 2]]; } } } close NUMBERS; foreach my $file (glob("$dir/*")) { my $base = basename($file); next if $base eq "_numbers"; if (exists $numbers{$base}) { for my $number (@{$numbers{$base}}) { doit("cp", "-r", $file, "$dest/$number$base"); } } else { doit("cp", "-r", $file, "$dest/$base"); } if (exists $links{$base}) { for my $linkpair (@{$links{$base}}) { my ($link, $target) = @$linkpair; doit("ln", "-s", "$target$base", "$dest/$link$base"); } } } } init(); # PROMISE: DH NOOP WITHOUT di-numbers foreach my $package (@{$dh{DOPACKAGES}}) { my $tmp = tmpdir($package); my $file = pkgfile($package,"di-numbers"); my @di_numbers; if ($file) { @di_numbers = filedoublearray($file, '.'); } if (($package eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) { push @di_numbers, [@ARGV]; } foreach my $set (@di_numbers) { if (@$set <= 1) { error("$file or parameters lists a directory without a destination."); } my $dest = pop @$set; foreach my $src (@$set) { if (-d $src) { install_dir($tmp, $src, $dest); } } } } =head1 SEE ALSO L This program is a part of dh-di. =head1 AUTHOR Colin Watson =cut dh-di-6/Makefile0000644000000000000000000000127511515465070010545 0ustar VERSION := $(shell dpkg-parsechangelog | awk '/Version:/ { print $$2 }') PERLLIBDIR := $(shell perl -MConfig -e 'print $$Config{vendorlib}')/Debian/Debhelper POD2MAN := pod2man -c Debhelper -r "$(VERSION)" build: $(POD2MAN) dh_di_numbers dh_di_numbers.1 $(POD2MAN) dh_di_kernel_gencontrol dh_di_kernel_gencontrol.1 $(POD2MAN) dh_di_kernel_install dh_di_kernel_install.1 clean: rm -f *.1 install: install -d $(DESTDIR)/usr/bin $(DESTDIR)$(PERLLIBDIR)/Sequence install dh_di_numbers $(DESTDIR)/usr/bin/ install dh_di_kernel_gencontrol $(DESTDIR)/usr/bin/ install dh_di_kernel_install $(DESTDIR)/usr/bin/ install -m 0644 lib/Debian/Debhelper/Sequence/*.pm $(DESTDIR)$(PERLLIBDIR)/Sequence/ dh-di-6/dh_di_kernel_install0000755000000000000000000000132711515465070013166 0ustar #!/usr/bin/perl -w =head1 NAME dh_di_kernel_install - install kernel udeb files =cut use strict; use Debian::Debhelper::Dh_Lib; =head1 SYNOPSIS B [S>] =head1 DESCRIPTION dh_di_kernel_install is a debhelper program that runs C and C to install files into package build directories for kernel udebs. It silently does nothing if the C file does not exist. =cut exit unless -f "kernel-versions"; doit("kernel-wedge", "install-files"); doit("kernel-wedge", "check"); =head1 SEE ALSO L, L This program is a part of dh-di. =head1 AUTHOR Colin Watson =cut dh-di-6/debian/0000755000000000000000000000000012261225376010324 5ustar dh-di-6/debian/manpages0000644000000000000000000000000411515465070012032 0ustar *.1 dh-di-6/debian/control0000644000000000000000000000121012261225350011711 0ustar Source: dh-di Section: devel Priority: optional Maintainer: Debian Install System Team Uploaders: Colin Watson , Christian Perrier Build-Depends: debhelper (>= 9), perl (>= 5.6.0-16) Standards-Version: 3.9.5 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=d-i/dh-di.git Vcs-Git: git://anonscm.debian.org/d-i/dh-di.git Package: dh-di Architecture: all Depends: ${misc:Depends}, ${perl:Depends} Description: Debhelper addon for debian-installer This debhelper addon automates various specialised tasks needed to build packages that form part of the Debian installer (d-i). dh-di-6/debian/copyright0000644000000000000000000000156012261224002012242 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: dh-di Files: * Copyright: 2009, Colin Watson License: GPL-2+ dh-di 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, or (at your option) any later version. . dh-di 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 dh-di; see the file COPYING. If not, see . . A copy of the GNU General Public License is available in /usr/share/common-licenses/GPL-2. dh-di-6/debian/source/0000755000000000000000000000000012170177455011627 5ustar dh-di-6/debian/source/format0000644000000000000000000000001512170177455013036 0ustar 3.0 (native) dh-di-6/debian/changelog0000644000000000000000000000322312261225376012176 0ustar dh-di (6) unstable; urgency=medium [ Colin Watson ] * Add Files field to licence paragraph in debian/copyright, as required by the current specification. [ Christian Perrier ] * Update Standards to 3.9.5 (checked) -- Christian Perrier Thu, 02 Jan 2014 10:01:50 +0100 dh-di (5) unstable; urgency=low [ Colin Watson ] * Tell dh to skip dh_di_numbers if a di-numbers file doesn't exist. [ Dmitrijs Ledkovs ] * Set debian source format to '3.0 (native)'. * Bump debhelper compat level to 9. * Set Vcs-* to canonical format. [ Christian Perrier ] * Add myself to Uploaders -- Christian Perrier Sun, 14 Jul 2013 12:46:29 +0200 dh-di (4) unstable; urgency=low * Team upload [ Colin Watson ] * Make debian/copyright non-executable. [ Christian Perrier ] * Use 1.0 as Format-Specification for debian/copyright * Policy version 3.9.4: no changes required. -- Christian Perrier Sun, 12 May 2013 14:10:16 +0200 dh-di (3) unstable; urgency=low * Policy version 3.8.3: no changes required. * Add FILES section to dh_di_numbers(1); compare debhelper 7.4.1. * Only append the basename of each source directory in di-numbers to the destination directory, not the whole source directory (LP: #430724). -- Colin Watson Wed, 16 Sep 2009 23:27:06 +0100 dh-di (2) unstable; urgency=low * Fix semantics of symlink creation in _numbers files. -- Colin Watson Wed, 26 Aug 2009 23:30:31 +0100 dh-di (1) unstable; urgency=low * Initial release. -- Colin Watson Thu, 13 Aug 2009 13:51:07 +0100 dh-di-6/debian/compat0000644000000000000000000000000212170177455011525 0ustar 9 dh-di-6/debian/rules0000755000000000000000000000003611515465070011401 0ustar #! /usr/bin/make -f %: dh $@ dh-di-6/dh_di_kernel_gencontrol0000755000000000000000000000130111515465070013662 0ustar #!/usr/bin/perl -w =head1 NAME dh_di_kernel_gencontrol - generate debian/control files for kernel udebs =cut use strict; use Debian::Debhelper::Dh_Lib; =head1 SYNOPSIS B [S>] =head1 DESCRIPTION dh_di_kernel_gencontrol is a debhelper program that runs C to generate C files for kernel udebs. It silently does nothing if the C file does not exist. =cut exit unless -f "kernel-versions"; complex_doit("kernel-wedge gen-control >debian/control"); =head1 SEE ALSO L, L This program is a part of dh-di. =head1 AUTHOR Colin Watson =cut