5
dh_installapport - install apport package hooks
11
use Debian::Debhelper::Dh_Lib;
15
B<dh_apport> [S<B<debhelper options>>]
19
dh_apport is a debhelper program that installs apport package hooks into
20
package build directories.
26
=item debian/I<package>.apport
28
Installed into /usr/share/apport/package-hooks/I<package>.py in the package
29
build directory. This file is used to control apport's bug filing for this
32
=item debian/source.apport
34
Installed into /usr/share/apport/package-hooks/source_I<src>.py (where
35
I<src> is the current source package name) in the package build directory of
36
the first package dh_apport is told to act on. By default, this is the first
37
binary package in debian/control, but if you use -p, -i, or -a flags, it
38
will be the first package specified by those flags. This file is used to
39
control apport's bug filing for all binary packages built by this source
48
foreach my $package (@{$dh{DOPACKAGES}}) {
49
next if is_udeb($package);
51
my $tmp=tmpdir($package);
52
my $hooksdir="$tmp/usr/share/apport/package-hooks";
53
my $file=pkgfile($package,"apport");
57
doit("install","-d",$hooksdir);
59
doit("install","-p","-m644",$file,"$hooksdir/$package.py");
62
if (-e "debian/source.apport") {
64
doit("install","-d",$hooksdir);
66
my $src=sourcepackage();
67
doit("install","-p","-m644","debian/source.apport","$hooksdir/source_$src.py");
75
This program is a part of apport.
79
Colin Watson <cjwatson@ubuntu.com>
81
Copyright (C) 2009 Canonical Ltd., licensed under the GNU GPL v2 or later.