~ubuntu-branches/ubuntu/dapper/sup/dapper

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jochen Friedrich
  • Date: 2003-12-30 22:02:24 UTC
  • Revision ID: james.westby@ubuntu.com-20031230220224-g6rzexudlhhtk3nv
Tags: 1.8-10
* Bumped standards version to 3.6.1 (no changes required).
* Fixed errno handling (Thanks to Thorsten Sauter <tsauter@debian.org>
  for the patch) (Closes: #223422).
* Corrected debian/copyright.
* Documented IPv6 options in man page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /usr/bin/make -f
 
2
 
 
3
package=sup
 
4
d=$(shell pwd)/debian/tmp
 
5
STRIP=strip --strip-unneeded --remove-section=.note --remove-section=.comment
 
6
 
 
7
build:
 
8
        $(checkdir)
 
9
        pmake
 
10
 
 
11
clean:
 
12
        $(checkdir)
 
13
        pmake clean
 
14
        $(RM) -r debian/{files,substvars,tmp}
 
15
        find . -name \*~ -print0 | xargs -0 $(RM)
 
16
 
 
17
binary-indep:   checkroot build
 
18
 
 
19
binary-arch:    checkroot build
 
20
        $(RM) -r $(d)
 
21
 
 
22
        install -d $(d)/DEBIAN 
 
23
        install -d $(d)/usr/bin
 
24
        install -d $(d)/usr/share/man/man1
 
25
        install -d $(d)/usr/share/man/man8
 
26
        install -d $(d)/usr/share/doc/$(package)
 
27
 
 
28
        install -c debian/copyright $(d)/usr/share/doc/$(package)/
 
29
        install -c debian/changelog $(d)/usr/share/doc/$(package)/changelog.Debian
 
30
        install -c sup.doc $(d)/usr/share/doc/$(package)/
 
31
        install -c sup.1 $(d)/usr/share/man/man1/
 
32
        install -c supservers.8 $(d)/usr/share/man/man8/supfilesrv.8
 
33
        install -c supservers.8 $(d)/usr/share/man/man8/supscan.8
 
34
        install -c sup supfilesrv supscan $(d)/usr/bin/
 
35
        $(STRIP) $(d)/usr/bin/*
 
36
        
 
37
        gzip -9 $(d)/usr/share/doc/$(package)/sup.doc
 
38
        gzip -9 $(d)/usr/share/doc/$(package)/changelog.Debian
 
39
        find $(d)/usr/share/man -type f -print0 | xargs -0 gzip --best 
 
40
 
 
41
        chown -R root.root $(d)
 
42
        find $(d) -type f -print0 | xargs -0 chmod 644
 
43
        find $(d) -type d -print0 | xargs -0 chmod 755
 
44
 
 
45
        chmod a+x $(d)/usr/bin/*
 
46
 
 
47
        dpkg-shlibdeps $(d)/usr/bin/*
 
48
        dpkg-gencontrol -isp -p$(package) -P$(d)
 
49
        dpkg --build $(d) ..
 
50
 
 
51
define checkdir
 
52
        test -f debian/rules
 
53
endef
 
54
 
 
55
binary: binary-indep binary-arch
 
56
 
 
57
checkroot:
 
58
        $(checkdir)
 
59
        test root = "`whoami`"
 
60
 
 
61
.PHONY: configure build clean binary binary-indep binary-arch checkdir checkroot