/usr/bin/dh_click is in click-dev 0.4.43+16.04.20160203-0ubuntu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | #! /usr/bin/perl -w
=head1 NAME
dh_click - install system hooks for click
=cut
use strict;
use Debian::Debhelper::Dh_Lib;
=head1 SYNOPSIS
B<dh_click> [S<B<debhelper options>>]
=head1 DESCRIPTION
dh_click is a debhelper program that is responsible for installing system
hooks for B<click>.
It also automatically generates the F<postinst> and F<postrm> commands
needed to interface with the Ubuntu B<click> package. These commands are
inserted into the maintainer scripts by L<dh_installdeb(1)>.
=head1 FILES
=over 4
=item debian/I<package>.click-hook
Click package hook files, installed into
usr/share/click/hooks/I<package>.hook in the package build directory. See
F</usr/share/doc/click-doc/html/hooks.html> for their format.
=back
=head1 OPTIONS
=over 4
=item B<-n>, B<--noscripts>
Do not modify F<postinst>/F<postrm> scripts.
=item B<--name=>I<name>
Install the hook using the filename I<name> instead of the default filename,
which is the package name. When this parameter is used, B<dh_click> looks
for and installs files named F<debian/package.name.hook>, instead of the
usual F<debian/package.hook>.
=back
=head1 EXAMPLES
dh_click is usually called indirectly in a rules file via the dh command.
%:
dh $@ --with click
You must build-depend on at least debhelper (>= 7.0.8) to use this form, and
in any case you must build-depend on click-dev to use this program at all.
It can also be called directly at any time before C<dh_installdeb>, usually
in a binary-arch or binary-indep rule.
=cut
init();
# PROMISE: DH NOOP WITHOUT click-hook
foreach my $package (@{$dh{DOPACKAGES}}) {
my $tmp=tmpdir($package);
my $click_hook=pkgfile($package,"click-hook");
my $hookname=$package;
if (defined $dh{NAME}) {
$hookname=$dh{NAME};
}
if ($click_hook ne '') {
if (! -d "$tmp/usr/share/click/hooks") {
doit("install","-d","$tmp/usr/share/click/hooks");
}
doit("install","-p","-m644",$click_hook,"$tmp/usr/share/click/hooks/$hookname.hook");
if (! $dh{NOSCRIPTS}) {
autoscript($package,"postinst","postinst-click","s/#HOOK#/$hookname/");
autoscript($package,"prerm","prerm-click","s/#HOOK#/$hookname/");
}
}
}
=head1 SEE ALSO
L<debhelper(7)>
This program is a part of click.
=head1 AUTHOR
Colin Watson <cjwatson@ubuntu.com>
Copyright (C) 2013 Canonical Ltd., licensed under the GNU GPL v3.
=cut
|