summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 3252a9e1d4aaaa978f4d70da606b572e58a82b16 (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
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

SHELL := sh -e

export GRADLE_USER_HOME = .gradle
LIBEUFIN_HOME = /usr/share/libeufin
DEV =
FULLVER = $(DEB_VERSION_UPSTREAM)$(DEV)

%:
	dh ${@} --no-parallel

override_dh_auto_test:
	true

override_dh_auto_configure:
	./configure --prefix=/usr

# Since this step is run under fakeroot and gradle
# doesn't work under fakeroot, we must make sure
# that everything is built by gradle before.
# The install-nobuild target installs under the assumption
# that everything is already built.
override_dh_auto_install:
	make -j1 install-nobuild DESTDIR=$(CURDIR)/debian/tmp

# Override this step because it's very slow and likely
# unnecessary for us.
override_dh_strip_nondeterminism:
	true

override_dh_install:
	dh_install
# Needs to be called manually for debhelper-compat < 13
	dh_installtmpfiles

override_dh_installsystemd:
	# Need to specify units manually, since we have multiple
	# and dh_installsystemd by default only looks for "<package>.service".
	dh_installsystemd -plibeufin-bank --name=libeufin-bank --no-start --no-enable
	dh_installsystemd -plibeufin-bank --name=libeufin-bank-gc --no-start --no-enable
	dh_installsystemd -plibeufin-bank --name=libeufin-bank-gc.timer --no-start --no-enable
	dh_installsystemd -plibeufin-nexus --name=libeufin-nexus-ebics-submit --no-start --no-enable
	dh_installsystemd -plibeufin-nexus --name=libeufin-nexus-ebics-fetch --no-start --no-enable
	# final invocation to generate daemon reload
	dh_installsystemd

get-orig-source:
	uscan --force-download --rename