- dh_compress -a
- dh_fixperms -a
-
- dh_installdeb -p yaz-runtime
- dh_installdeb -p yaz-devel
- dh_installman -p yaz-devel doc/yaz-config.1
- dh_undocumented -p yaz-devel yaz-comp.1
- dh_installman -p yaz-runtime doc/yaz-client.1 doc/yaz-ztest.8 doc/yaz.7 doc/zoomsh.1
- echo "libyaz 1 yaz-runtime" > debian/yaz-runtime/DEBIAN/shlibs
- echo "libyazthread 1 yaz-runtime" >> debian/yaz-runtime/DEBIAN/shlibs
- echo "libyazmalloc 1 yaz-runtime" >> debian/yaz-runtime/DEBIAN/shlibs
- chmod 644 debian/yaz-runtime/DEBIAN/shlibs
- dh_shlibdeps -p yaz-runtime $(LOCAL_LINK)
-ifeq ($(YAZ_WITH_SSL),1)
- dh_installdeb -p yaz-ssl
- dh_installman -p yaz-ssl doc/yaz-client-ssl.1 doc/yaz-ztest-ssl.8
- echo "libyazssl 1 yaz-ssl" >> debian/yaz-ssl/DEBIAN/shlibs
- chmod 644 debian/yaz-ssl/DEBIAN/shlibs
- dh_shlibdeps -p yaz-ssl $(LOCAL_LINK)
- cat debian/postinst >> debian/yaz-ssl/DEBIAN/postinst
-endif
- cat debian/postinst >> debian/yaz-runtime/DEBIAN/postinst
-
- dh_gencontrol -p yaz-runtime
- dh_md5sums -p yaz-runtime
-
- dh_gencontrol -p yaz-devel
- dh_md5sums -p yaz-devel
-
-ifeq ($(YAZ_WITH_SSL),1)
- dh_gencontrol -p yaz-ssl
- dh_md5sums -p yaz-ssl
-endif
- # Go kill those CVS-dirs before build
- -find debian/tmp -type d -name CVS | xargs rm -rf
- # For some reason it is necessary to remove empty-dirs in yaz-doc
- -rm -rf debian/tmp/usr/include debian/tmp/usr/share/aclocal debian/tmp/usr/lib debian/tmp/usr/bin \
- debian/tmp/usr/share/yaz
-
- dh_builddeb -p yaz-runtime
- dh_builddeb -p yaz-devel
-ifeq ($(YAZ_WITH_SSL),1)
- dh_builddeb -p yaz-ssl
-endif
-