aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
blob: aef4bf5f8590d7b3f62d19b95438074e330aedb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/make -f

SHELL := sh -e

include /usr/share/dpkg/architecture.mk

%:
	dh ${@}

override_dh_builddeb:
	dh_builddeb -- -Zgzip

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 --no-start --no-enable
	dh_installsystemd -ptaler-exchange --name=taler-exchange-aggregator --no-start --no-enable
	dh_installsystemd -ptaler-exchange --name=taler-exchange-transfer --no-start --no-enable
	dh_installsystemd -ptaler-exchange --name=taler-exchange-wirewatch --no-start --no-enable
	dh_installsystemd -ptaler-exchange --name=taler-exchange-secmod-cs --no-start --no-enable
	dh_installsystemd -ptaler-exchange --name=taler-exchange-secmod-eddsa --no-start --no-enable
	dh_installsystemd -ptaler-exchange --name=taler-exchange-secmod-rsa --no-start --no-enable
	dh_installsystemd -ptaler-exchange --name=taler-exchange-closer --no-start --no-enable
	dh_installsystemd -ptaler-auditor --name=taler-auditor-httpd --no-start --no-enable
	dh_installsystemd -ptaler-exchange --name=taler-exchange --no-start --no-enable
	# final invocation to generate daemon reload
	dh_installsystemd

override_dh_install:
	dh_install
# With debhelper-compat=12, we still need to call this manually
	dh_installtmpfiles
# Remove files already present in libtalerexchange from main taler-exchange package
	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 ../taler-auditor/{} \;
	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/{} \;