* Import keyanalyze into signing-party. Thanks to Matthew Wilcox for the
[pgp-tools.git] / debian / rules
index 18e14bd27c66bdf28fd405079ebe2ac93aba021d..a592123becd0ac9ab6c61fc55b196e5444ebc9b6 100755 (executable)
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+VERSION := $(shell dpkg-parsechangelog | grep ^Version | cut -d' ' -f2)
+
 configure: configure-stamp
 configure-stamp:
        dh_testdir
@@ -23,17 +25,18 @@ install: build
        dh_testroot
        dh_clean -k
        dh_installdirs
+       $(MAKE) install DESTDIR=$(CURDIR)/debian/signing-party
        dh_install
-       dh_installman */*.1
+       dh_installman */*.1 */*/*.1
        install -d $(CURDIR)/debian/signing-party/usr/share/doc/signing-party/caff
-       install caff/README \
+       install -m 644 caff/README \
                caff/README.gpg-agent \
                caff/README.many-keys \
                caff/README.v3-keys \
                caff/caffrc.sample \
                        $(CURDIR)/debian/signing-party/usr/share/doc/signing-party/caff
-       install -d $(CURDIR)/debian/signing-party/usr/share/doc/signing-party/keylookup
-       install keylookup/NEWS $(CURDIR)/debian/signing-party/usr/share/doc/signing-party/keylookup
+       # ignore errors with older debhelper versions
+       -dh_lintian
 
 binary-indep: build install
        dh_testdir