2
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 by Joey Hess.
5
# This version is for a hypothetical package that builds an
6
# architecture-dependant package, as well as an architecture-independent
9
# Uncomment this to turn on verbose mode.
12
# This is the debhelper compatability version to use.
15
# This has to be exported to make some magic below work.
20
# Add here commands to configure the package.
25
# Add here commands to compile the package.
32
# Add here commands to clean up after the build process.
44
# Add here commands to install the package into debian/tmp.
45
$(MAKE) install BASEDIR=`pwd`/debian/tmp
47
dh_movefiles -p iputils-tracepath usr/sbin/trace{path,path6,route6}
48
dh_movefiles -p iputils-arping usr/sbin/arping
49
#dh_movefiles -p iputils-ping bin/ping bin/ping6 usr/bin/arping
51
# Build architecture-independent files here.
52
# Pass -i to all debhelper commands in this target to reduce clutter.
53
binary-indep: DH_OPTIONS=
54
binary-indep: build install
69
# Build architecture-dependent files here.
70
# Pass -a to all debhelper commands in this target to reduce clutter.
71
binary-arch: DH_OPTIONS=
72
binary-arch: build install
79
dh_installmanpages -piputils-tracepath ping6.8 ping.8 arping.8 clockdiff.8 in.rdisc.8c
80
dh_installmanpages -piputils-ping tracepath.8 tracepath6.8 clockdiff.8 in.rdisc.8c traceroute6.8 arping.8
81
dh_installmanpages -piputils-arping ping6.8 ping.8 clockdiff.8 in.rdisc.8c tracepath.8 tracepath6.8 traceroute6.8
87
chmod 4755 debian/tmp/bin/ping
88
chmod 4755 debian/tmp/bin/ping6
89
chmod 4755 debian/iputils-tracepath/usr/sbin/traceroute6
90
chmod 4755 debian/iputils-arping/usr/sbin/arping
91
ln -sf ping.8.gz debian/tmp/usr/share/man/man8/ping6.8.gz
98
binary: binary-arch # no binary-indep
99
.PHONY: build configure clean binary-indep binary-arch binary install