diff options
Diffstat (limited to '')
-rwxr-xr-x | debian/rules | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..dc165e4 --- /dev/null +++ b/debian/rules @@ -0,0 +1,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 |