rules (2242B)
1 #!/usr/bin/make -f 2 3 SHELL := sh -e 4 5 include /usr/share/dpkg/architecture.mk 6 7 %: 8 dh ${@} 9 10 override_dh_builddeb: 11 dh_builddeb -- -Zgzip 12 13 override_dh_auto_configure-arch: 14 dh_auto_configure -- --disable-rpath --with-microhttpd=yes $(shell dpkg-buildflags --export=configure) 15 16 override_dh_auto_configure-indep: 17 18 override_dh_auto_build-indep: 19 20 override_dh_auto_test: 21 # Disabling test suite, incomplete 22 23 override_dh_auto_install-arch: 24 dh_auto_install 25 26 # Removing useless files 27 rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la \ 28 debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/taler/*.la \ 29 debian/tmp/usr/share/doc/taler/COPYING \ 30 debian/tmp/usr/lib/x86_64-linux-gnu/libmustach.a 31 32 override_dh_auto_install-indep: 33 34 override_dh_auto_clean: 35 dh_auto_clean 36 37 override_dh_installsystemd: 38 # Need to specify units manually, since we have multiple 39 # and dh_installsystemd by default only looks for "<package>.service". 40 dh_installsystemd -ptaler-merchant --name=taler-merchant-depositcheck --no-start --no-enable 41 dh_installsystemd -ptaler-merchant --name=taler-merchant-httpd --no-start --no-enable 42 dh_installsystemd -ptaler-merchant --name=taler-merchant-exchangekeyupdate --no-start --no-enable 43 dh_installsystemd -ptaler-merchant --name=taler-merchant-donaukeyupdate --no-start --no-enable 44 dh_installsystemd -ptaler-merchant --name=taler-merchant-kyccheck --no-start --no-enable 45 dh_installsystemd -ptaler-merchant --name=taler-merchant-reconciliation --no-start --no-enable 46 dh_installsystemd -ptaler-merchant --name=taler-merchant-webhook --no-start --no-enable 47 dh_installsystemd -ptaler-merchant --name=taler-merchant-wirewatch --no-start --no-enable 48 dh_installsystemd -ptaler-merchant --name=taler-merchant --no-start --no-enable 49 # final invocation to generate daemon reload 50 dh_installsystemd 51 52 override_dh_install: 53 dh_install 54 # Must be done manually for debhelper-compat<13 55 dh_installtmpfiles 56 # Remove files already present in libtalermerchant from main taler-merchant package 57 cd debian/libtalermerchant-dev; find . -type f -exec rm -f ../taler-merchant/{} \; 58 cd debian/libtalermerchant-dev; find . -type f -exec rm -f ../libtalermerchant/{} \; 59 cd debian/libtalermerchant; find . -type f -exec rm -f ../taler-merchant/{} \;