summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 7d9758831480769e73195e5b3abee897f260d96e (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:
	./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