~ubuntu-branches/ubuntu/saucy/mime-support/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2013-05-13 12:49:12 UTC
  • mfrom: (5.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130513124912-dxt3lycmzrk6j6a2
Tags: 3.54ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Add "cautious-launcher" for handling execution of files that are
    outside /usr and /opt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
clean:
16
16
        test -f debian/rules
17
 
        rm -f debian/substvars debian/files
 
17
        rm -f debian/substvars debian/files debian/debhelper.log build-stamp
18
18
        -rm -rf debian/tmp debian/*~ *~
19
19
 
20
 
build:
21
 
        @true
 
20
# Do nothing in build, build-arch and build-indep, but provide those targets.
 
21
build: build-arch build-indep
 
22
build-arch: build-stamp
 
23
build-indep: build-stamp
 
24
build-stamp:
 
25
        touch build-stamp
22
26
 
23
27
binary-indep:
24
28
        test -f debian/rules
25
29
        test root = "`whoami`"
26
30
        -rm -rf debian/tmp
27
31
        mkdir -p debian/tmp/DEBIAN debian/tmp/etc debian/tmp/usr/lib/mime/packages
 
32
        mkdir -p debian/tmp/usr/share/bug/$(package)
28
33
        mkdir -p debian/tmp/usr/share/doc/$(package) debian/tmp/usr/sbin debian/tmp/usr/bin
29
34
        mkdir -p debian/tmp/usr/share/man/man1 debian/tmp/usr/share/man/man5 debian/tmp/usr/share/man/man8
30
35
        chmod -R 755 debian/tmp
36
41
        install -m 755 update-mime              debian/tmp/usr/sbin/
37
42
        install -m 644 update-mime.man          debian/tmp/usr/share/man/man8/update-mime.8
38
43
        install -m 755 run-mailcap              debian/tmp/usr/bin/
 
44
        install -m 644 run-mailcap.man          debian/tmp/usr/share/man/man1/run-mailcap.1
39
45
        install -m 755 debian/cautious-launcher debian/tmp/usr/bin/
40
 
        install -m 644 run-mailcap.man          debian/tmp/usr/share/man/man1/run-mailcap.1
41
 
        install -m 644 rfcs/*                   debian/tmp/usr/share/doc/$(package)/
42
 
        install -m 644 debian/changelog         debian/tmp/usr/share/doc/$(package)/changelog.Debian
43
 
        install -m 644 debian/README            debian/tmp/usr/share/doc/$(package)/copyright
 
46
        install -m 644 debian/bug-presubj       debian/tmp/usr/share/bug/$(package)/presubj
 
47
        install -m 644 debian/changelog         debian/tmp/usr/share/doc/$(package)/changelog
 
48
        install -m 644 debian/copyright         debian/tmp/usr/share/doc/$(package)/copyright
44
49
        install -m 755 debian-view              debian/tmp/usr/lib/mime/
45
50
#       install -m 755 playaudio                debian/tmp/usr/lib/mime/
46
51
#       install -m 755 playdsp                  debian/tmp/usr/lib/mime/
60
65
        cd debian/tmp/usr/share/man/man1; ln -s run-mailcap.1.gz edit.1.gz
61
66
        cd debian/tmp/usr/share/man/man1; ln -s run-mailcap.1.gz compose.1.gz
62
67
        cd debian/tmp/usr/share/man/man1; ln -s run-mailcap.1.gz print.1.gz
63
 
        dh_md5sums
 
68
        # Generate DEBIAN/md5sums, excluding conffiles.  Code pasted from dh_md5sums.
 
69
        (cd debian/tmp >/dev/null ; find . -type f ! -path "./etc/mime.types" ! -path "./etc/mailcap.order"  ! -regex './DEBIAN/.*' -printf '%P\0' | LC_ALL=C sort -z | xargs -r0 md5sum > DEBIAN/md5sums) >/dev/null
 
70
        chmod 644 debian/tmp/DEBIAN/md5sums
 
71
        chown 0:0 debian/tmp/DEBIAN/md5sums
64
72
        dpkg-gencontrol -is -ip
65
73
        chown -R root.root debian/tmp
66
74
        chmod -R go=rX     debian/tmp
68
76
        dpkg-name -o -s .. debian/tmp.deb
69
77
 
70
78
binary-arch:
71
 
        @echo "No architecture-specific binaries"
72
79
 
73
80
binary: binary-indep
74
81
        @echo "Binaries made"