File: rules

package info (click to toggle)
mmdebstrap 0.7.5-2.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,308 kB
  • sloc: perl: 4,479; sh: 4,067; python: 289; makefile: 19
file content (27 lines) | stat: -rwxr-xr-x 1,157 bytes parent folder | download
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
#!/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
	help2man --no-info --name "shift user and group id of a tarball" --version-string="$(DEB_VERSION_UPSTREAM)" debian/tmp/usr/bin/mmtaridshift > ./mmtaridshift.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 ./mmtaridshift.1 ./mmtarfilter.1
	rm ./mmdebstrap.1 ./mmtaridshift.1 ./mmtarfilter.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 taridshift debian/tmp/usr/bin/mmtaridshift
	cp -a tarfilter debian/tmp/usr/bin/mmtarfilter
	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
	dh_install