Mercurial > dropbear
comparison debian/implicit @ 284:eed26cff980b
propagate from branch 'au.asn.ucc.matt.ltm.dropbear' (head 6c790cad5a7fa866ad062cb3a0c279f7ba788583)
to branch 'au.asn.ucc.matt.dropbear' (head fff0894a0399405a9410ea1c6d118f342cf2aa64)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 08 Mar 2006 13:23:49 +0000 |
parents | 743fce568f49 |
children | 1857c2c551ea |
comparison
equal
deleted
inserted
replaced
283:bd240aa12ba7 | 284:eed26cff980b |
---|---|
1 # $Id: implicit,v 1.10 2004/07/03 15:20:00 pape 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 %.udeb: %.deb-DEBIAN | |
16 @rm -f $*.deb $*.deb-checkdir $*.deb-DEBIAN $*.deb-DEBIAN-dir \ | |
17 $*.deb-DEBIAN-scripts $*.deb-DEBIAN-md5sums | |
18 | |
19 %.deb-checkdir: | |
20 @test -d debian/$* || sh -cx '! : directory debian/$* missing' | |
21 @test "`id -u`" -eq 0 || sh -cx '! : need root privileges' | |
22 | |
23 %.deb-docs-base: | |
24 : implicit | |
25 @rm -f debian/$*/usr/share/doc/$*/* || : | |
26 @install -d -m0755 debian/$*/usr/share/doc/$* | |
27 : debian/$*/usr/share/doc/$*/ | |
28 @sh -cx 'install -m0644 debian/copyright debian/$*/usr/share/doc/$*/' | |
29 @sh -cx 'install -m0644 debian/changelog \ | |
30 debian/$*/usr/share/doc/$*/changelog.Debian' | |
31 @test ! -r changelog || \ | |
32 sh -cx 'install -m0644 changelog debian/$*/usr/share/doc/$*/' | |
33 @test -r debian/$*/usr/share/doc/$*/changelog || \ | |
34 sh -cx 'mv debian/$*/usr/share/doc/$*/changelog.Debian \ | |
35 debian/$*/usr/share/doc/$*/changelog' | |
36 @test -s debian/$*/usr/share/doc/$*/changelog || \ | |
37 sh -cx 'rm -f debian/$*/usr/share/doc/$*/changelog' | |
38 @gzip -9 debian/$*/usr/share/doc/$*/changelog* | |
39 %.deb-docs-docs: | |
40 @for i in `cat debian/$*.docs 2>/dev/null || :`; do \ | |
41 sh -cx "install -m0644 $$i debian/$*/usr/share/doc/$*/" || exit 1; \ | |
42 done | |
43 @test ! -r debian/$*.README.Debian || \ | |
44 sh -cx 'install -m0644 debian/$*.README.Debian \ | |
45 debian/$*/usr/share/doc/$*/README.Debian' | |
46 @if test -r debian/$*.NEWS.Debian; then \ | |
47 sh -cx 'install -m0644 debian/$*.NEWS.Debian \ | |
48 debian/$*/usr/share/doc/$*/NEWS.Debian && \ | |
49 gzip -9 debian/$*/usr/share/doc/$*/NEWS.Debian'; \ | |
50 fi | |
51 %.deb-docs-examples: | |
52 @rm -rf debian/$*/usr/share/doc/$*/examples | |
53 : debian/$*/usr/share/doc/$*/examples/ | |
54 @test ! -r debian/$*.examples || \ | |
55 install -d -m0755 debian/$*/usr/share/doc/$*/examples | |
56 @for i in `cat debian/$*.examples 2>/dev/null || :`; do \ | |
57 sh -cx "install -m0644 $$i debian/$*/usr/share/doc/$*/examples/" \ | |
58 || exit 1; \ | |
59 done | |
60 %.deb-docs: %.deb-checkdir %.deb-docs-base %.deb-docs-docs %.deb-docs-examples | |
61 : debian/$*/usr/share/doc/$*/ ok | |
62 | |
63 %.deb-DEBIAN-base: | |
64 @rm -rf debian/$*/DEBIAN | |
65 : debian/$*/DEBIAN/ | |
66 @install -d -m0755 debian/$*/DEBIAN | |
67 @for i in conffiles shlibs templates; do \ | |
68 test ! -r debian/$*.$$i || \ | |
69 sh -cx "install -m0644 debian/$*.$$i debian/$*/DEBIAN/$$i" \ | |
70 || exit 1; \ | |
71 done | |
72 %.deb-DEBIAN-scripts: | |
73 @for i in preinst prerm postinst postrm config; do \ | |
74 test ! -r debian/$*.$$i || \ | |
75 sh -cx "install -m0755 debian/$*.$$i debian/$*/DEBIAN/$$i" \ | |
76 || exit 1; \ | |
77 done | |
78 %.deb-DEBIAN-md5sums: | |
79 : debian/$*/DEBIAN/md5sums | |
80 @rm -f debian/$*/DEBIAN/md5sums | |
81 @cd debian/$* && find * -path 'DEBIAN' -prune -o \ | |
82 -type f -exec md5sum {} >>DEBIAN/md5sums \; | |
83 %.deb-DEBIAN: %.deb-checkdir %.deb-DEBIAN-base %.deb-DEBIAN-scripts \ | |
84 %.deb-DEBIAN-md5sums | |
85 : debian/$*/DEBIAN/ ok |