summaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: 3fee41b8d30ac34b6bbee5c212c79348ab3e0412 (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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure --builddir=build-deb
	dh_auto_configure --builddir=build-udeb -- --disable-gssapi

override_dh_auto_build:
	dh_auto_build --builddir=build-deb
	dh_auto_build --builddir=build-udeb

override_dh_auto_install:
	dh_auto_install --builddir=build-deb
	dh_auto_install --builddir=build-udeb

override_dh_auto_install:
	dh_auto_install --builddir=build-deb
	dh_auto_install --builddir=build-udeb --destdir=debian/tmp-udeb

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
override_dh_install:
	dh_install -Nlibtirpc3-udeb
	dh_install -plibtirpc3-udeb --sourcedir=debian/tmp-udeb

override_dh_auto_clean:
	rm -rf build-deb build-udeb
	rm -rf debian/tmp-udeb

execute_before_dh_installdeb:
	sed -e"s/#DEB_HOST_MULTIARCH#/$(DEB_HOST_MULTIARCH)/" \
		debian/libtirpc3.preinst.in > debian/libtirpc3.preinst
	sed -e"s/#DEB_HOST_MULTIARCH#/$(DEB_HOST_MULTIARCH)/" \
		debian/libtirpc3.postrm.in > debian/libtirpc3.postrm