comparison debian/implicit @ 180:743fce568f49

Merge in Debian package changes from 0.45-3, grab the dbclient manpage
author Matt Johnston <matt@ucc.asn.au>
date Sun, 13 Mar 2005 16:22:36 +0000
parents b0316ce64e4b
children 1857c2c551ea
comparison
equal deleted inserted replaced
177:2098857ab826 180:743fce568f49
1 # $Id: implicit,v 1.1 2004/06/16 05:08:32 matt Exp $ 1 # $Id: implicit,v 1.10 2004/07/03 15:20:00 pape Exp $
2 2
3 .PHONY: deb-checkdir deb-checkuid 3 .PHONY: deb-checkdir deb-checkuid
4 4
5 deb-checkdir: 5 deb-checkdir:
6 @test -e debian/control || sh -cx '! : wrong directory' 6 @test -e debian/control || sh -cx '! : wrong directory'
9 9
10 %.deb: %.deb-docs %.deb-DEBIAN 10 %.deb: %.deb-docs %.deb-DEBIAN
11 @rm -f $*.deb $*.deb-checkdir $*.deb-docs $*.deb-docs-base \ 11 @rm -f $*.deb $*.deb-checkdir $*.deb-docs $*.deb-docs-base \
12 $*.deb-docs-docs $*.deb-docs-examples $*.deb-DEBIAN \ 12 $*.deb-docs-docs $*.deb-docs-examples $*.deb-DEBIAN \
13 $*.deb-DEBIAN-dir $*.deb-DEBIAN-scripts $*.deb-DEBIAN-md5sums 13 $*.deb-DEBIAN-dir $*.deb-DEBIAN-scripts $*.deb-DEBIAN-md5sums
14
15 %.udeb: %.deb-DEBIAN
16 @rm -f $*.deb $*.deb-checkdir $*.deb-DEBIAN $*.deb-DEBIAN-dir \
17 $*.deb-DEBIAN-scripts $*.deb-DEBIAN-md5sums
14 18
15 %.deb-checkdir: 19 %.deb-checkdir:
16 @test -d debian/$* || sh -cx '! : directory debian/$* missing' 20 @test -d debian/$* || sh -cx '! : directory debian/$* missing'
17 @test "`id -u`" -eq 0 || sh -cx '! : need root privileges' 21 @test "`id -u`" -eq 0 || sh -cx '! : need root privileges'
18 22
27 @test ! -r changelog || \ 31 @test ! -r changelog || \
28 sh -cx 'install -m0644 changelog debian/$*/usr/share/doc/$*/' 32 sh -cx 'install -m0644 changelog debian/$*/usr/share/doc/$*/'
29 @test -r debian/$*/usr/share/doc/$*/changelog || \ 33 @test -r debian/$*/usr/share/doc/$*/changelog || \
30 sh -cx 'mv debian/$*/usr/share/doc/$*/changelog.Debian \ 34 sh -cx 'mv debian/$*/usr/share/doc/$*/changelog.Debian \
31 debian/$*/usr/share/doc/$*/changelog' 35 debian/$*/usr/share/doc/$*/changelog'
36 @test -s debian/$*/usr/share/doc/$*/changelog || \
37 sh -cx 'rm -f debian/$*/usr/share/doc/$*/changelog'
32 @gzip -9 debian/$*/usr/share/doc/$*/changelog* 38 @gzip -9 debian/$*/usr/share/doc/$*/changelog*
33 %.deb-docs-docs: 39 %.deb-docs-docs:
34 @for i in `cat debian/$*.docs 2>/dev/null || :`; do \ 40 @for i in `cat debian/$*.docs 2>/dev/null || :`; do \
35 sh -cx "install -m0644 $$i debian/$*/usr/share/doc/$*/" || exit 1; \ 41 sh -cx "install -m0644 $$i debian/$*/usr/share/doc/$*/" || exit 1; \
36 done 42 done
56 62
57 %.deb-DEBIAN-base: 63 %.deb-DEBIAN-base:
58 @rm -rf debian/$*/DEBIAN 64 @rm -rf debian/$*/DEBIAN
59 : debian/$*/DEBIAN/ 65 : debian/$*/DEBIAN/
60 @install -d -m0755 debian/$*/DEBIAN 66 @install -d -m0755 debian/$*/DEBIAN
61 @for i in conffiles shlibs; do \ 67 @for i in conffiles shlibs templates; do \
62 test ! -r debian/$*.$$i || \ 68 test ! -r debian/$*.$$i || \
63 sh -cx "install -m0644 debian/$*.$$i debian/$*/DEBIAN/$$i" \ 69 sh -cx "install -m0644 debian/$*.$$i debian/$*/DEBIAN/$$i" \
64 || exit 1; \ 70 || exit 1; \
65 done 71 done
66 %.deb-DEBIAN-scripts: 72 %.deb-DEBIAN-scripts:
67 @for i in preinst prerm postinst postrm; do \ 73 @for i in preinst prerm postinst postrm config; do \
68 test ! -r debian/$*.$$i || \ 74 test ! -r debian/$*.$$i || \
69 sh -cx "install -m0755 debian/$*.$$i debian/$*/DEBIAN/$$i" \ 75 sh -cx "install -m0755 debian/$*.$$i debian/$*/DEBIAN/$$i" \
70 || exit 1; \ 76 || exit 1; \
71 done 77 done
72 %.deb-DEBIAN-md5sums: 78 %.deb-DEBIAN-md5sums: