/usr/bin/dh_pidgin is in pidgin-dev 1:2.10.9-0ubuntu3.4.
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 | #! /usr/bin/perl -w
=head1 NAME
dh_pidgin- depend on the appropriate version of pidgin
=cut
use strict;
use Debian::Debhelper::Dh_Lib;
=head1 SYNOPSIS
B<dh_pidgin> [S<I<debhelper options>>]
=head1 DESCRIPTION
dh_pidgin is a debhelper program that is responsible for generating
the ${misc:Depends} substitutions that depend on the correct versions of pidgin,
and adding them to substvars files.
To use this program, make sure it is executed in debian/rules at some point
during the build process (normally during the install), and make sure that
your Depends: field in debian/control contains ${misc:Depends}.
=cut
init();
my ($pidgin_epoch, $pidgin_version, $next_version, $pidgin_major, $pidgin_minor,
$pidgin_rest);
$pidgin_version = `dpkg -s pidgin`;
$pidgin_version =~ /^Version:\s*([\S]+)/m;
$pidgin_version = $1;
if (! defined $pidgin_version) {
error("pidgin is not installed. (Probably forgot to Build-Depend on pidgin)");
}
if ($pidgin_version =~ m/(\d+:)?(\d+)\.(\d+)\.(.*)/) {
$pidgin_epoch = $1 || "";
$pidgin_major = $2;
$pidgin_minor = $3;
$pidgin_rest = $4;
} else {
error("Unable to parse pidgin version out of '$pidgin_version'");
}
$next_version = $pidgin_epoch . ($pidgin_major + 1) . ".0";
$pidgin_version = $pidgin_epoch . $pidgin_major . "." .$pidgin_minor;
foreach my $package (@{$dh{DOPACKAGES}}) {
my $tmp=tmpdir($package);
addsubstvar($package, "misc:Depends", "pidgin", ">= $pidgin_version");
addsubstvar($package, "misc:Depends", "pidgin", "<< $next_version");
addsubstvar($package, "misc:Conflicts", "pidgin", ">= $next_version");
}
=head1 SEE ALSO
L<debhelper(7)>
=head1 AUTHOR
Written by Tollef Fog Heen <tfheen@debian.org>, based on various other
dh_* commands written by Joey Hess <joeyh@debian.org>.
=cut
|