~arky/ubuntu/lucid/iputils/fix-512227

« back to all changes in this revision

Viewing changes to debian/.#rules.1.3

  • Committer: Bazaar Package Importer
  • Author(s): Noah Meyerhans
  • Date: 2002-04-21 02:07:55 UTC
  • Revision ID: james.westby@ubuntu.com-20020421020755-ttbj5lnh9l137vct
Tags: upstream-20020124
ImportĀ upstreamĀ versionĀ 20020124

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Sample debian/rules that uses debhelper. 
 
3
# GNU copyright 1997 by Joey Hess.
 
4
#
 
5
# This version is for a hypothetical package that builds an
 
6
# architecture-dependant package, as well as an architecture-independent
 
7
# package.
 
8
 
 
9
# Uncomment this to turn on verbose mode. 
 
10
export DH_VERBOSE=1
 
11
 
 
12
# This is the debhelper compatability version to use.
 
13
export DH_COMPAT=1
 
14
 
 
15
# This has to be exported to make some magic below work.
 
16
export DH_OPTIONS
 
17
 
 
18
configure:
 
19
        dh_testdir
 
20
        # Add here commands to configure the package.
 
21
 
 
22
build: configure
 
23
        dh_testdir
 
24
 
 
25
        # Add here commands to compile the package.
 
26
        $(MAKE)
 
27
 
 
28
clean:
 
29
        dh_testdir
 
30
        dh_testroot
 
31
 
 
32
        # Add here commands to clean up after the build process.
 
33
        -$(MAKE) clean
 
34
 
 
35
        dh_clean
 
36
 
 
37
install: DH_OPTIONS=
 
38
install: build
 
39
        dh_testdir
 
40
        dh_testroot
 
41
        dh_clean -k
 
42
        dh_installdirs 
 
43
 
 
44
        # Add here commands to install the package into debian/tmp.
 
45
        $(MAKE) install BASEDIR=`pwd`/debian/tmp
 
46
 
 
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
 
50
 
 
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
 
55
        dh_testdir
 
56
        dh_testroot
 
57
        dh_installdocs
 
58
        dh_installexamples
 
59
        dh_installmenu
 
60
        dh_installchangelogs 
 
61
        dh_link
 
62
        dh_compress
 
63
        dh_fixperms
 
64
        dh_installdeb
 
65
        dh_gencontrol
 
66
        dh_md5sums
 
67
        dh_builddeb
 
68
 
 
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
 
73
        dh_testdir
 
74
        dh_testroot
 
75
        dh_installdocs
 
76
        dh_installexamples
 
77
        dh_installmenu
 
78
        dh_installcron
 
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
 
82
        dh_installchangelogs 
 
83
        dh_strip
 
84
        dh_link
 
85
        dh_compress
 
86
        dh_fixperms
 
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
 
92
        dh_installdeb
 
93
        dh_shlibdeps
 
94
        dh_gencontrol
 
95
        dh_md5sums
 
96
        dh_builddeb
 
97
 
 
98
binary: binary-arch # no binary-indep
 
99
.PHONY: build configure clean binary-indep binary-arch binary install