Mercurial > dropbear
comparison debian/implicit @ 70:b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 12 Aug 2004 16:41:58 +0000 |
parents | |
children | 743fce568f49 |
comparison
equal
deleted
inserted
replaced
69:59d16db56e9f | 70:b0316ce64e4b |
---|---|
1 # $Id: implicit,v 1.1 2004/06/16 05:08:32 matt Exp $ | |
2 | |
3 .PHONY: deb-checkdir deb-checkuid | |
4 | |
5 deb-checkdir: | |
6 @test -e debian/control || sh -cx '! : wrong directory' | |
7 deb-checkuid: | |
8 @test "`id -u`" -eq 0 || sh -cx '! : need root privileges' | |
9 | |
10 %.deb: %.deb-docs %.deb-DEBIAN | |
11 @rm -f $*.deb $*.deb-checkdir $*.deb-docs $*.deb-docs-base \ | |
12 $*.deb-docs-docs $*.deb-docs-examples $*.deb-DEBIAN \ | |
13 $*.deb-DEBIAN-dir $*.deb-DEBIAN-scripts $*.deb-DEBIAN-md5sums | |
14 | |
15 %.deb-checkdir: | |
16 @test -d debian/$* || sh -cx '! : directory debian/$* missing' | |
17 @test "`id -u`" -eq 0 || sh -cx '! : need root privileges' | |
18 | |
19 %.deb-docs-base: | |
20 : implicit | |
21 @rm -f debian/$*/usr/share/doc/$*/* || : | |
22 @install -d -m0755 debian/$*/usr/share/doc/$* | |
23 : debian/$*/usr/share/doc/$*/ | |
24 @sh -cx 'install -m0644 debian/copyright debian/$*/usr/share/doc/$*/' | |
25 @sh -cx 'install -m0644 debian/changelog \ | |
26 debian/$*/usr/share/doc/$*/changelog.Debian' | |
27 @test ! -r changelog || \ | |
28 sh -cx 'install -m0644 changelog debian/$*/usr/share/doc/$*/' | |
29 @test -r debian/$*/usr/share/doc/$*/changelog || \ | |
30 sh -cx 'mv debian/$*/usr/share/doc/$*/changelog.Debian \ | |
31 debian/$*/usr/share/doc/$*/changelog' | |
32 @gzip -9 debian/$*/usr/share/doc/$*/changelog* | |
33 %.deb-docs-docs: | |
34 @for i in `cat debian/$*.docs 2>/dev/null || :`; do \ | |
35 sh -cx "install -m0644 $$i debian/$*/usr/share/doc/$*/" || exit 1; \ | |
36 done | |
37 @test ! -r debian/$*.README.Debian || \ | |
38 sh -cx 'install -m0644 debian/$*.README.Debian \ | |
39 debian/$*/usr/share/doc/$*/README.Debian' | |
40 @if test -r debian/$*.NEWS.Debian; then \ | |
41 sh -cx 'install -m0644 debian/$*.NEWS.Debian \ | |
42 debian/$*/usr/share/doc/$*/NEWS.Debian && \ | |
43 gzip -9 debian/$*/usr/share/doc/$*/NEWS.Debian'; \ | |
44 fi | |
45 %.deb-docs-examples: | |
46 @rm -rf debian/$*/usr/share/doc/$*/examples | |
47 : debian/$*/usr/share/doc/$*/examples/ | |
48 @test ! -r debian/$*.examples || \ | |
49 install -d -m0755 debian/$*/usr/share/doc/$*/examples | |
50 @for i in `cat debian/$*.examples 2>/dev/null || :`; do \ | |
51 sh -cx "install -m0644 $$i debian/$*/usr/share/doc/$*/examples/" \ | |
52 || exit 1; \ | |
53 done | |
54 %.deb-docs: %.deb-checkdir %.deb-docs-base %.deb-docs-docs %.deb-docs-examples | |
55 : debian/$*/usr/share/doc/$*/ ok | |
56 | |
57 %.deb-DEBIAN-base: | |
58 @rm -rf debian/$*/DEBIAN | |
59 : debian/$*/DEBIAN/ | |
60 @install -d -m0755 debian/$*/DEBIAN | |
61 @for i in conffiles shlibs; do \ | |
62 test ! -r debian/$*.$$i || \ | |
63 sh -cx "install -m0644 debian/$*.$$i debian/$*/DEBIAN/$$i" \ | |
64 || exit 1; \ | |
65 done | |
66 %.deb-DEBIAN-scripts: | |
67 @for i in preinst prerm postinst postrm; do \ | |
68 test ! -r debian/$*.$$i || \ | |
69 sh -cx "install -m0755 debian/$*.$$i debian/$*/DEBIAN/$$i" \ | |
70 || exit 1; \ | |
71 done | |
72 %.deb-DEBIAN-md5sums: | |
73 : debian/$*/DEBIAN/md5sums | |
74 @rm -f debian/$*/DEBIAN/md5sums | |
75 @cd debian/$* && find * -path 'DEBIAN' -prune -o \ | |
76 -type f -exec md5sum {} >>DEBIAN/md5sums \; | |
77 %.deb-DEBIAN: %.deb-checkdir %.deb-DEBIAN-base %.deb-DEBIAN-scripts \ | |
78 %.deb-DEBIAN-md5sums | |
79 : debian/$*/DEBIAN/ ok |