summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 0b985a0058a7851aaab49c47f64c8c1a8721c732 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

%:
	dh $@ 

override_dh_auto_build:
	HOME=$$(mktemp -d) ./rebar3 as prod release
	cp priv/ldapsp.service debian/

override_dh_install:
	dh_install
	rm -r debian/ldapsp/opt/ldapsp/lib/ldapsp-1/priv/

override_dh_installinit:
	dh_systemd_enable
	dh_systemd_start --restart-after-upgrade ldapsp.service

override_dh_auto_clean:
	dh_auto_clean
	rm -f debian/ldapsp.service