exchange/debian/rules

56 lines
2.1 KiB
Makefile
Executable File

#!/usr/bin/make -f
SHELL := sh -e
include /usr/share/dpkg/architecture.mk
%:
dh ${@}
override_dh_auto_configure-arch:
dh_auto_configure -- --disable-rpath --with-microhttpd=yes $(shell dpkg-buildflags --export=configure)
override_dh_auto_configure-indep:
override_dh_auto_build-indep:
override_dh_auto_test:
# Disabling test suite, incomplete
override_dh_auto_install-arch:
dh_auto_install
# Removing useless files
rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la \
debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/taler/*.la \
debian/tmp/usr/share/doc/taler/COPYING
override_dh_auto_install-indep:
override_dh_auto_clean:
dh_auto_clean
override_dh_installsystemd:
# Need to specify units manually, since we have multiple
# and dh_installsystemd by default only looks for "<package>.service".
dh_installsystemd -ptaler-exchange --name=taler-exchange-httpd
dh_installsystemd -ptaler-exchange --name=taler-exchange-aggregator
dh_installsystemd -ptaler-exchange --name=taler-exchange-transfer
dh_installsystemd -ptaler-exchange --name=taler-exchange-wirewatch
dh_installsystemd -ptaler-exchange --name=taler-exchange-secmod-eddsa
dh_installsystemd -ptaler-exchange --name=taler-exchange-secmod-rsa
dh_installsystemd -ptaler-auditor --name=taler-auditor-httpd
# Remove files already present in libtalerexchange from main taler-exchange package
override_dh_install:
dh_install
cd debian/libtalerexchange-dev; find . -type f,l -exec rm -f ../libtalerauditor/{} \;
cd debian/libtalerexchange-dev; find . -type f,l -exec rm -f ../taler-exchange/{} \;
cd debian/libtalerexchange-dev; find . -type f,l -exec rm -f ../libtalerexchange/{} \;
cd debian/libtalerexchange-dev; find . -type f,l -exec rm -f ../libtalerauditor/{} \;
cd debian/taler-auditor; find . -type f,l -exec rm -f ../libtalerauditor/{} \;
cd debian/taler-auditor; find . -type f,l -exec rm -f ../libtalerexchange/{} \;
cd debian/taler-auditor; find . -type f,l -exec rm -f ../taler-exchange/{} \;
cd debian/taler-exchange-database; find . -type f,l -exec rm -f ../taler-exchange/{} \;
cd debian/libtalerexchange; find . -type f,l -exec rm -f ../taler-exchange/{} \;