exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

rules (4570B)


      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 
     31 override_dh_auto_install-indep:
     32 
     33 override_dh_auto_clean:
     34 	dh_auto_clean
     35 
     36 override_dh_installsystemd:
     37 	# Need to specify units manually, since we have multiple
     38 	# and dh_installsystemd by default only looks for "<package>.service".
     39 	dh_installsystemd -ptaler-exchange --name=taler-exchange-httpd --no-start --no-enable --no-stop-on-upgrade
     40 	dh_installsystemd -ptaler-exchange --name=taler-exchange-aggregator --no-start --no-enable --no-stop-on-upgrade
     41 	dh_installsystemd -ptaler-exchange --name=taler-exchange-expire --no-start --no-enable --no-stop-on-upgrade
     42 	dh_installsystemd -ptaler-exchange --name=taler-exchange-transfer --no-start --no-enable --no-stop-on-upgrade
     43 	dh_installsystemd -ptaler-exchange --name=taler-exchange-wirewatch --no-start --no-enable --no-stop-on-upgrade
     44 	dh_installsystemd -ptaler-exchange --name=taler-exchange-secmod-cs --no-start --no-enable --no-stop-on-upgrade
     45 	dh_installsystemd -ptaler-exchange --name=taler-exchange-secmod-eddsa --no-start --no-enable --no-stop-on-upgrade
     46 	dh_installsystemd -ptaler-exchange --name=taler-exchange-secmod-rsa --no-start --no-enable --no-stop-on-upgrade
     47 	dh_installsystemd -ptaler-exchange --name=taler-exchange-closer --no-start --no-enable --no-stop-on-upgrade
     48 	dh_installsystemd -ptaler-exchange --name=taler-exchange --no-start --no-enable --no-stop-on-upgrade
     49 	dh_installsystemd -ptaler-exchange --name=taler-exchange-sanctionscheck --no-start --no-enable --no-stop-on-upgrade
     50 	dh_installsystemd -ptaler-auditor --name=taler-auditor-httpd --no-start --no-enable --no-stop-on-upgrade
     51 	dh_installsystemd -ptaler-auditor --name=taler-helper-auditor-aggregation --no-start --no-enable --no-stop-on-upgrade
     52 	dh_installsystemd -ptaler-auditor --name=taler-helper-auditor-coins --no-start --no-enable --no-stop-on-upgrade
     53 	dh_installsystemd -ptaler-auditor --name=taler-helper-auditor-deposits --no-start --no-enable --no-stop-on-upgrade
     54 	dh_installsystemd -ptaler-auditor --name=taler-helper-auditor-purses --no-start --no-enable --no-stop-on-upgrade
     55 	dh_installsystemd -ptaler-auditor --name=taler-helper-auditor-reserves --no-start --no-enable --no-stop-on-upgrade
     56 	dh_installsystemd -ptaler-auditor --name=taler-helper-auditor-transfer --no-start --no-enable --no-stop-on-upgrade
     57 	dh_installsystemd -ptaler-auditor --name=taler-helper-auditor-wire-credit --no-start --no-enable --no-stop-on-upgrade
     58 	dh_installsystemd -ptaler-auditor --name=taler-helper-auditor-wire-debit --no-start --no-enable --no-stop-on-upgrade
     59 	dh_installsystemd -ptaler-auditor --name=taler-auditor --no-start --no-enable --no-stop-on-upgrade
     60 	dh_installsystemd -ptaler-exchange-offline --name=taler-exchange-offline --no-start --no-enable --no-stop-on-upgrade
     61 	dh_installsystemd -ptaler-exchange-offline --name=taler-exchange-offline.timer --no-start --no-enable --no-stop-on-upgrade
     62 	# final invocation to generate daemon reload
     63 	dh_installsystemd
     64 
     65 override_dh_install:
     66 	dh_install
     67 # With debhelper-compat=12, we still need to call this manually
     68 	dh_installtmpfiles
     69 # Remove files already present in libtalerexchange from main taler-exchange package
     70 	cd debian/libtalerexchange-dev; find . -type f,l -exec rm -f ../libtalerauditor/{} \;
     71 	cd debian/libtalerexchange-dev; find . -type f,l -exec rm -f ../taler-exchange/{} \;
     72 	cd debian/libtalerexchange-dev; find . -type f,l -exec rm -f ../taler-auditor/{} \;
     73 	cd debian/libtalerexchange-dev; find . -type f,l -exec rm -f ../libtalerexchange/{} \;
     74 	cd debian/libtalerexchange-dev; find . -type f,l -exec rm -f ../libtalerauditor/{} \;
     75 	cd debian/taler-auditor; find . -type f,l -exec rm -f ../libtalerauditor/{} \;
     76 	cd debian/taler-auditor; find . -type f,l -exec rm -f ../libtalerexchange/{} \;
     77 	cd debian/taler-auditor; find . -type f,l -exec rm -f ../taler-exchange/{} \;
     78 	cd debian/taler-exchange-database; find . -type f,l -exec rm -f ../taler-exchange/{} \;
     79 	cd debian/libtalerexchange; find . -type f,l -exec rm -f ../taler-exchange/{} \;