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

# for DEB_VERSION_UPSTREAM
include /usr/share/dpkg/pkg-info.mk

%:
	dh $@

override_dh_installman:
	pod2man debian/tmp/usr/bin/mmdebstrap > ./mmdebstrap.1
	pod2man debian/tmp/usr/bin/mmdebstrap-autopkgtest-build-qemu > ./mmdebstrap-autopkgtest-build-qemu.1
	help2man --no-info --name "filter a tarball like dpkg does" --version-string="$(DEB_VERSION_UPSTREAM)" debian/tmp/usr/bin/mmtarfilter > ./mmtarfilter.1
	dh_installman ./mmdebstrap.1 ./mmtarfilter.1 ./mmdebstrap-autopkgtest-build-qemu.1
	rm ./mmdebstrap.1 ./mmtarfilter.1 ./mmdebstrap-autopkgtest-build-qemu.1

# override dh_install instead of using debian/mmdebstrap.install because
# dh_install cannot rename files and dh-exec cannot copy directories
override_dh_install:
	mkdir -p debian/tmp/usr/bin
	cp -a mmdebstrap debian/tmp/usr/bin/mmdebstrap
	cp -a tarfilter debian/tmp/usr/bin/mmtarfilter
	cp -a mmdebstrap-autopkgtest-build-qemu debian/tmp/usr/bin/mmdebstrap-autopkgtest-build-qemu
	mkdir -p debian/tmp/usr/lib/apt/solvers
	cp -a proxysolver debian/tmp/usr/lib/apt/solvers/mmdebstrap-dump-solution
	mkdir -p debian/tmp/usr/share/mmdebstrap
	cp -a hooks debian/tmp/usr/share/mmdebstrap
	mkdir -p debian/tmp/usr/libexec/mmdebstrap
	cp -a gpgvnoexpkeysig debian/tmp/usr/libexec/mmdebstrap
	cp -a ldconfig.fakechroot debian/tmp/usr/libexec/mmdebstrap
	dh_install