]> git.donarmstrong.com Git - debhelper.git/commitdiff
* dh_lintian: Finally added this since linda is gone and there's only
authorJoey Hess <joey@kodama.kitenet.net>
Thu, 6 Mar 2008 06:59:44 +0000 (01:59 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Thu, 6 Mar 2008 06:59:44 +0000 (01:59 -0500)
  lintian to worry about supporting. Closes: #109642, #166320, #206765
  (Thanks to Steve M. Robbins for the initial implementation.)

debian/changelog
debian/copyright
dh_lintian [new file with mode: 0755]
examples/rules
examples/rules.indep
examples/rules.multi
examples/rules.multi2

index 779cb248ed1a116f398c0cd93a1d49c00f770145..e70829f682fa1226921fdc24a0a8b2e3060754d2 100644 (file)
@@ -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.
index 889a7e2f25a5f0c6a4b6c98e6a82f2842e9fbc62..ca856872b735e350103df1ecc978382b818eebf3 100644 (file)
@@ -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 (executable)
index 0000000..0dcf60b
--- /dev/null
@@ -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
index 9fe997b073b1d90bbaf767a6ae93735ba1531a63..e461982888dfcfb430e7854c8f57e8e8f478195e 100755 (executable)
@@ -58,6 +58,7 @@ binary-arch: build install
 #      dh_installinfo
 #      dh_installwm
 #      dh_installudev
+#      dh_lintian
 #      dh_undocumented
        dh_installman
        dh_link
index 428f4e9ac5f91645946f8498d33a72fcdc82f31a..37c58e9fd50cd129083633204b854872d6d12f56 100755 (executable)
@@ -55,6 +55,7 @@ binary-indep: build install
 #      dh_installinfo
 #      dh_installwm
 #      dh_installudev
+#      dh_lintian
 #      dh_undocumented
        dh_installman
        dh_link
index 3ca9719b754646d258a12a29ba683f4dae44b200..11fc085ce22dd8e1026bf1f95f94781707bd54b9 100755 (executable)
@@ -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
index 4e84c53185e4bd3ef8f1d009ed76343373783507..4767c48fdca2db589fd1f8ba5fc3049733ee4091 100755 (executable)
@@ -66,6 +66,7 @@ binary-common:
 #      dh_installinfo
 #      dh_installwm
 #      dh_installudev
+#      dh_lintian
 #      dh_undocumented
        dh_strip
        dh_link