new keylookup closes #164750
[pgp-tools.git] / debian / rules
index 18e14bd27c66bdf28fd405079ebe2ac93aba021d..4c27780c2f828b69230645a5c33bce88c2caf840 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
@@ -26,14 +28,18 @@ install: build
        dh_install
        dh_installman */*.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/examples
+       install -m 644 gpgsigs/gpgsigs-lt2k5*.txt \
+               $(CURDIR)/debian/signing-party/usr/share/doc/signing-party/examples
        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
+       install -m 644 keylookup/NEWS \
+               $(CURDIR)/debian/signing-party/usr/share/doc/signing-party/keylookup
 
 binary-indep: build install
        dh_testdir
@@ -47,7 +53,8 @@ binary-indep: build install
        dh_fixperms
        dh_installdeb
        dh_shlibdeps
-       dh_gencontrol
+       dh_gencontrol -psigning-party
+       dh_gencontrol -pkeylookup -- -v3.0.$(VERSION)
        dh_md5sums
        dh_builddeb