Make the keylookup package's changelog be a symlink to signing-party's
[pgp-tools.git] / debian / rules
index 4966b434fd4b13d34d15f900923f8198260552c5..93d7b94621163e974c70e3025d399ba48aa6326e 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
@@ -25,21 +27,37 @@ install: build
        dh_installdirs
        dh_install
        dh_installman */*.1
+       install -d $(CURDIR)/debian/signing-party/usr/share/doc/signing-party/caff
+       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/gpgsigs/examples
+       install -m 644 gpgsigs/gpgsigs-lt2k5*.txt \
+               $(CURDIR)/debian/signing-party/usr/share/doc/signing-party/gpgsigs/examples
+       install -d $(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
+
+       install -d $(CURDIR)/debian/keylookup/usr/share/doc/keylookup
+       ln -s ../signing-party/changelog.Debian.gz $(CURDIR)/debian/keylookup/usr/share/doc/keylookup/
 
 binary-indep: build install
        dh_testdir
        dh_testroot
        dh_installdocs
-       dh_installexamples
        dh_installmenu
        dh_installcron
        dh_installinfo
-       dh_installchangelogs
+       dh_installchangelogs -psigning-party
        dh_compress
        dh_fixperms
        dh_installdeb
        dh_shlibdeps
-       dh_gencontrol
+       dh_gencontrol -psigning-party
+       dh_gencontrol -pkeylookup -- -v3.0-$(VERSION)
        dh_md5sums
        dh_builddeb