summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-03-06 01:59:44 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-03-06 01:59:44 -0500
commit56255dc8bf2cecc86871677b59298f4a63132e54 (patch)
treec034a0621e0d7a2dbf5f1d149fbd63de6b78eb99
parent1bdd3360f6a6b5339265e26be82d42c89e5ae87a (diff)
* dh_lintian: Finally added this since linda is gone and there's only
lintian to worry about supporting. Closes: #109642, #166320, #206765 (Thanks to Steve M. Robbins for the initial implementation.)
-rw-r--r--debian/changelog8
-rw-r--r--debian/copyright1
-rwxr-xr-xdh_lintian61
-rwxr-xr-xexamples/rules1
-rwxr-xr-xexamples/rules.indep1
-rwxr-xr-xexamples/rules.multi2
-rwxr-xr-xexamples/rules.multi21
7 files changed, 75 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 779cb24..e70829f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+debhelper (6.0.7) UNRELEASED; urgency=low
+
+ * dh_lintian: Finally added this since linda is gone and there's only
+ lintian to worry about supporting. Closes: #109642, #166320, #206765
+ (Thanks to Steve M. Robbins for the initial implementation.)
+
+ -- Joey Hess <joeyh@debian.org> Thu, 06 Mar 2008 01:43:13 -0500
+
debhelper (6.0.6) unstable; urgency=low
* dh_compress: Pass -n to gzip to yeild more reproducible file contents.
diff --git a/debian/copyright b/debian/copyright
index 889a7e2..ca85687 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -10,6 +10,7 @@ dh_scrollkeeper is by Ross Burton <ross@burtonini.com>.
dh_usrlocal is by Andrew Stribblehill <ads@debian.org>.
dh_installlogcheck is by Jon Middleton <jjm@debian.org>.
dh_installudev is by Marco d'Itri <md@Linux.IT>.
+dh_lintian is by Steve Robbins <smr@debian.org>.
Some of the dh_md5sums command is from a program by Charles
Briscoe-Smith <cpb4@ukc.ac.uk>.
diff --git a/dh_lintian b/dh_lintian
new file mode 100755
index 0000000..0dcf60b
--- /dev/null
+++ b/dh_lintian
@@ -0,0 +1,61 @@
+#!/usr/bin/perl -w
+
+=head1 NAME
+
+dh_lintian - install lintian override files into package build directories
+
+=cut
+
+use strict;
+use Debian::Debhelper::Dh_Lib;
+
+=head1 SYNOPSIS
+
+B<dh_lintian> [S<I<debhelper options>>]
+
+=head1 DESCRIPTION
+
+dh_lintian is a debhelper program that is responsible for installing
+override files used by lintian into package build directories.
+
+If a file named debian/package.lintian-overrides exists, then it is
+installed into usr/share/lintian/overrides/package in the package
+build directory. This file is used to suppress erroneous lintian
+diagnostics.
+
+Note that a file named debian/source.lintian-overrides will not be
+installed, but will be scanned by lintian to provide overrides for the
+source package.
+
+=cut
+
+init();
+
+foreach my $package (@{$dh{DOPACKAGES}}) {
+ next if is_udeb($package);
+
+ my $tmp=tmpdir($package);
+ my $or_dir = "$tmp/usr/share/lintian/overrides";
+ my $overrides=pkgfile($package,"lintian-overrides");
+
+ if ($overrides ne '') {
+ if (! -d "$or_dir") {
+ doit("install","-d","$or_dir");
+ }
+ doit("install","-p","-m644",$overrides,"$or_dir/$package");
+ }
+}
+
+=head1 SEE ALSO
+
+L<debhelper(1)>
+
+This program is a part of debhelper.
+
+L<lintian(1)>
+
+=head1 AUTHOR
+
+Steve Robbins <smr@debian.org>
+
+=cut
diff --git a/examples/rules b/examples/rules
index 9fe997b..e461982 100755
--- a/examples/rules
+++ b/examples/rules
@@ -58,6 +58,7 @@ binary-arch: build install
# dh_installinfo
# dh_installwm
# dh_installudev
+# dh_lintian
# dh_undocumented
dh_installman
dh_link
diff --git a/examples/rules.indep b/examples/rules.indep
index 428f4e9..37c58e9 100755
--- a/examples/rules.indep
+++ b/examples/rules.indep
@@ -55,6 +55,7 @@ binary-indep: build install
# dh_installinfo
# dh_installwm
# dh_installudev
+# dh_lintian
# dh_undocumented
dh_installman
dh_link
diff --git a/examples/rules.multi b/examples/rules.multi
index 3ca9719..11fc085 100755
--- a/examples/rules.multi
+++ b/examples/rules.multi
@@ -60,6 +60,7 @@ binary-indep: build install
# dh_installinfo -i
# dh_installwm -i
# dh_installudev -i
+# dh_lintian -i
# dh_undocumented -i
dh_installman -i
dh_link -i
@@ -91,6 +92,7 @@ binary-arch: build install
# dh_installinfo -a
# dh_installwm -a
# dh_installudev -a
+# dh_lintian -a
# dh_undocumented -a
dh_installman -a
dh_strip -a
diff --git a/examples/rules.multi2 b/examples/rules.multi2
index 4e84c53..4767c48 100755
--- a/examples/rules.multi2
+++ b/examples/rules.multi2
@@ -66,6 +66,7 @@ binary-common:
# dh_installinfo
# dh_installwm
# dh_installudev
+# dh_lintian
# dh_undocumented
dh_strip
dh_link