summaryrefslogtreecommitdiff
path: root/debian/rules
blob: d33da7960b22fc50cc78f620a0cb8b8952f27b2d (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
#!/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)/sync/*.la \
		debian/tmp/usr/share/doc/sync/COPYING

override_dh_auto_install-indep:

override_dh_auto_clean:
	dh_auto_clean

override_dh_installsystemd:
	dh_installsystemd -psync-httpd --name=sync-httpd --no-start --no-enable
	# final invocation to generate daemon reload
	dh_installsystemd

override_dh_install:
	dh_install
# Done manually for debhelper-compat<13
	dh_installtmpfiles
# Remove files already present in libsync-dev from sync-httpd/libsync packages
	cd debian/libsync; find . -type f,l -exec rm -f ../sync-httpd/{} \;
	cd debian/libsync; find . -type f,l -exec rm -f ../libsync-dev/{} \;
	cd debian/sync-httpd; find . -type f,l -exec rm -f ../libsync-dev/{} \;
	cd debian/libsync-dev; find . -type f,l -exec rm -f ../libsync/{} \;