Mercurial > dropbear
annotate debian/rules @ 549:7f552ea5bf72 maemo
merge of '3450609f92928775614418f40dd44ed5393d9de4'
and '6a58c90036c543b4d992489843a999156f665e61'
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 01 Jul 2009 05:14:51 +0000 |
parents | b0668a7f76d9 9f5e2616c064 |
children |
rev | line source |
---|---|
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
1 #!/usr/bin/make -f |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
2 |
70
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
3 #export DH_OPTIONS |
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
4 DEB_HOST_GNU_TYPE ?=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) |
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
5 DEB_BUILD_GNU_TYPE ?=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
6 |
70
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
7 STRIP =strip |
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
8 ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) |
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
9 STRIP =: nostrip |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
10 endif |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
11 |
70
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
12 CFLAGS =-Wall -g |
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
13 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
14 CFLAGS +=-O0 |
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
15 else |
522 | 16 CFLAGS +=-Os |
70
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
17 endif |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
18 |
180
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
19 CONFFLAGS = |
70
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
20 CC =gcc |
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
21 ifneq (,$(findstring diet,$(DEB_BUILD_OPTIONS))) |
180
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
22 CONFFLAGS =--disable-zlib |
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
23 CC =diet -v -Os gcc -nostdinc |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
24 endif |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
25 |
70
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
26 patch: deb-checkdir patch-stamp |
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
27 patch-stamp: |
180
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
28 for i in `ls -1 debian/diff/*.diff || :`; do \ |
469
8c2d2edadf2a
Update to debian 0.50-4 diff
Matt Johnston <matt@ucc.asn.au>
parents:
220
diff
changeset
|
29 patch -p1 <$$i || exit 1; \ |
180
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
30 done |
70
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
31 touch patch-stamp |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
32 |
70
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
33 config.status: patch-stamp configure |
180
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
34 CC='$(CC)' \ |
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
35 CFLAGS='$(CFLAGS)'' -DSFTPSERVER_PATH="\"/usr/lib/sftp-server\""' \ |
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
36 ./configure --host='$(DEB_HOST_GNU_TYPE)' \ |
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
37 --build='$(DEB_BUILD_GNU_TYPE)' --prefix=/usr \ |
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
38 --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \ |
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
39 $(CONFFLAGS) |
527
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
40 $(MAKE) clean |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
41 |
70
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
42 build: deb-checkdir build-stamp |
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
43 build-stamp: config.status |
180
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
44 $(MAKE) CC='$(CC)' LD='$(CC)' |
70
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
45 touch build-stamp |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
46 |
522 | 47 clean: DIR=$(shell pwd)/debian/dropbear |
48 clean: deb-checkdir deb-checkuid | |
469
8c2d2edadf2a
Update to debian 0.50-4 diff
Matt Johnston <matt@ucc.asn.au>
parents:
220
diff
changeset
|
49 test ! -r Makefile || $(MAKE) distclean |
8c2d2edadf2a
Update to debian 0.50-4 diff
Matt Johnston <matt@ucc.asn.au>
parents:
220
diff
changeset
|
50 rm -f libtomcrypt/Makefile libtommath/Makefile |
180
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
51 test ! -e patch-stamp || \ |
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
52 for i in `ls -1r debian/diff/*.diff || :`; do \ |
469
8c2d2edadf2a
Update to debian 0.50-4 diff
Matt Johnston <matt@ucc.asn.au>
parents:
220
diff
changeset
|
53 patch -p1 -R <$$i; \ |
180
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
54 done |
70
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
55 rm -f patch-stamp build-stamp config.log config.status |
180
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
56 rm -rf '$(DIR)' |
522 | 57 rm -rf '$(DIR)'-client |
58 rm -rf '$(DIR)'-server | |
527
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
59 rm -rf '$(DIR)'-keyutils |
522 | 60 rm -rf '$(DIR)'-scp |
70
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
61 rm -f debian/files debian/substvars debian/copyright changelog |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
62 |
522 | 63 install-server: DIR=$(shell pwd)/debian/dropbear-server |
64 install-server: deb-checkdir deb-checkuid config.status | |
65 rm -f '$(DIR)' | |
527
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
66 rm *.o |
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
67 $(MAKE) CC='$(CC)' LD='$(LD)' PROGRAMS="dropbear dropbearkey dropbearconvert" MULTI=1 |
180
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
68 install -d -m0755 '$(DIR)'/etc/dropbear |
70
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
69 # programs |
527
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
70 install -d -m0755 '$(DIR)'/usr/bin |
180
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
71 install -d -m0755 '$(DIR)'/usr/sbin |
527
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
72 install -d -m0755 '$(DIR)'/usr/lib/dropbear |
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
73 install -m0755 dropbearmulti \ |
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
74 '$(DIR)'/usr/lib/dropbear/dropbearmulti |
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
75 ln -s ../lib/dropbear/dropbearmulti '$(DIR)'/usr/bin/dropbearkey |
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
76 ln -s ../lib/dropbear/dropbearmulti '$(DIR)'/usr/sbin/dropbear |
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
77 ln -s dropbearmulti '$(DIR)'/usr/lib/dropbear/dropbearconvert |
70
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
78 # init and run scripts |
180
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
79 install -d -m0755 '$(DIR)'/etc/init.d |
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
80 install -m0755 debian/dropbear.init '$(DIR)'/etc/init.d/dropbear |
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
81 install -m0755 debian/service/run '$(DIR)'/etc/dropbear/run |
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
82 install -d -m0755 '$(DIR)'/etc/dropbear/log |
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
83 install -m0755 debian/service/log '$(DIR)'/etc/dropbear/log/run |
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
84 ln -s /var/log/dropbear '$(DIR)'/etc/dropbear/log/main |
522 | 85 install -d -m0755 '$(DIR)'/usr/share/man/man8 |
86 for i in dropbear.8 ; do \ | |
87 install -m644 $$i '$(DIR)'/usr/share/man/man8/ || exit 1; \ | |
88 done | |
89 gzip -9 '$(DIR)'/usr/share/man/man8/*.8 | |
90 # copyright, changelog | |
91 cat debian/copyright.in LICENSE > debian/copyright | |
92 test -r changelog || ln -s CHANGES changelog | |
527
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
93 $(STRIP) -R .comment -R .note '$(DIR)'/usr/lib/dropbear/* |
522 | 94 |
95 install -d -m0755 '$(DIR)'/DEBIAN | |
96 test '$(CC)' != 'gcc' || \ | |
527
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
97 dpkg-shlibdeps '$(DIR)'/usr/lib/dropbear/* |
522 | 98 |
99 install-client: DIR=$(shell pwd)/debian/dropbear-client | |
100 install-client: deb-checkdir deb-checkuid config.status | |
101 rm -f '$(DIR)' | |
527
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
102 rm *.o |
522 | 103 $(MAKE) CC='$(CC)' LD='$(LD)' PROGRAMS=dbclient dbclient |
104 install -d -m0755 '$(DIR)'/usr/bin | |
105 install -m0755 dbclient '$(DIR)'/usr/bin/dbclient | |
106 install -d -m0755 '$(DIR)'/usr/share/man/man1 | |
107 install -m644 dbclient.1 '$(DIR)'/usr/share/man/man1/ | |
108 gzip -9 '$(DIR)'/usr/share/man/man1/*.1 | |
109 $(STRIP) -R .comment -R .note '$(DIR)'/usr/bin/* | |
110 | |
111 install -d -m0755 '$(DIR)'/DEBIAN | |
112 test '$(CC)' != 'gcc' || \ | |
113 dpkg-shlibdeps '$(DIR)'/usr/bin/* | |
114 | |
527
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
115 install-keyutils: DIR=$(shell pwd)/debian/dropbear-keyutils |
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
116 install-keyutils: deb-checkdir deb-checkuid config.status |
522 | 117 rm -f '$(DIR)' |
527
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
118 rm *.o |
522 | 119 $(MAKE) CC='$(CC)' LD='$(LD)' PROGRAMS="dropbearkey dropbearconvert" MULTI=1 |
120 install -d -m0755 '$(DIR)'/usr/bin | |
121 install -d -m0755 '$(DIR)'/usr/lib/dropbear | |
122 install -m0755 dropbearmulti \ | |
123 '$(DIR)'/usr/lib/dropbear/dropbearmulti | |
124 ln -s ../lib/dropbear/dropbearmulti '$(DIR)'/usr/bin/dropbearkey | |
125 ln -s dropbearmulti '$(DIR)'/usr/lib/dropbear/dropbearconvert | |
126 install -d -m0755 '$(DIR)'/usr/share/man/man8 | |
127 for i in dropbearkey.8; do \ | |
128 install -m644 $$i '$(DIR)'/usr/share/man/man8/ || exit 1; \ | |
129 done | |
130 gzip -9 '$(DIR)'/usr/share/man/man8/*.8 | |
131 $(STRIP) -R .comment -R .note \ | |
527
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
132 '$(DIR)'/usr/lib/dropbear/* |
522 | 133 |
134 install -d -m0755 '$(DIR)'/DEBIAN | |
135 test '$(CC)' != 'gcc' || \ | |
527
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
136 dpkg-shlibdeps '$(DIR)'/usr/lib/dropbear/* |
522 | 137 |
138 install-scp: DIR=$(shell pwd)/debian/dropbear-scp | |
139 install-scp: deb-checkdir deb-checkuid config.status | |
140 rm -f '$(DIR)' | |
527
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
141 rm *.o |
522 | 142 $(MAKE) CC='$(CC)' LD='$(LD)' PROGRAMS="scp" scp |
143 install -d -m0755 '$(DIR)'/usr/bin | |
144 install -m0755 scp '$(DIR)'/usr/bin/scp | |
145 $(STRIP) -R .comment -R .note '$(DIR)'/usr/bin/* | |
146 | |
147 install -d -m0755 '$(DIR)'/DEBIAN | |
148 test '$(CC)' != 'gcc' || \ | |
149 dpkg-shlibdeps '$(DIR)'/usr/bin/* | |
150 | |
151 install-multi: DIR=$(shell pwd)/debian/dropbear | |
152 install-multi: deb-checkdir deb-checkuid config.status | |
153 rm -f '$(DIR)' | |
527
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
154 rm *.o |
522 | 155 $(MAKE) CC='$(CC)' LD='$(LD)' PROGRAMS="dropbearkey dropbearconvert scp dropbear dbclient" MULTI=1 |
156 install -d -m0755 '$(DIR)'/etc/dropbear | |
157 # programs | |
158 install -d -m0755 '$(DIR)'/usr/bin | |
159 install -d -m0755 '$(DIR)'/usr/sbin | |
160 install -d -m0755 '$(DIR)'/usr/lib/dropbear | |
161 install -m0755 dropbearmulti \ | |
162 '$(DIR)'/usr/lib/dropbear/dropbearmulti | |
163 ln -s ../lib/dropbear/dropbearmulti '$(DIR)'/usr/bin/dropbearkey | |
164 ln -s ../lib/dropbear/dropbearmulti '$(DIR)'/usr/bin/dbclient | |
165 ln -s ../lib/dropbear/dropbearmulti '$(DIR)'/usr/bin/scp | |
166 ln -s ../lib/dropbear/dropbearmulti '$(DIR)'/usr/sbin/dropbear | |
167 ln -s dropbearmulti '$(DIR)'/usr/lib/dropbear/dropbearconvert | |
168 # init and run scripts | |
169 install -d -m0755 '$(DIR)'/etc/init.d | |
170 install -m0755 debian/dropbear.init '$(DIR)'/etc/init.d/dropbear | |
171 install -m0755 debian/service/run '$(DIR)'/etc/dropbear/run | |
172 install -d -m0755 '$(DIR)'/etc/dropbear/log | |
173 install -m0755 debian/service/log '$(DIR)'/etc/dropbear/log/run | |
174 ln -s /var/log/dropbear '$(DIR)'/etc/dropbear/log/main | |
180
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
175 install -d -m0755 '$(DIR)'/usr/share/man/man8 |
70
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
176 for i in dropbear.8 dropbearkey.8; do \ |
180
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
177 install -m644 $$i '$(DIR)'/usr/share/man/man8/ || exit 1; \ |
70
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
178 done |
180
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
179 gzip -9 '$(DIR)'/usr/share/man/man8/*.8 |
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
180 install -d -m0755 '$(DIR)'/usr/share/man/man1 |
220
9089929fb2b7
* preparing for 0.46 release
Matt Johnston <matt@ucc.asn.au>
parents:
219
diff
changeset
|
181 install -m644 dbclient.1 '$(DIR)'/usr/share/man/man1/ |
180
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
182 gzip -9 '$(DIR)'/usr/share/man/man1/*.1 |
527
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
183 $(STRIP) -R .comment -R .note '$(DIR)'/usr/lib/dropbear/* |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
184 |
522 | 185 install -d -m0755 '$(DIR)'/DEBIAN |
180
743fce568f49
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents:
76
diff
changeset
|
186 test '$(CC)' != 'gcc' || \ |
527
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
187 dpkg-shlibdeps '$(DIR)'/usr/lib/dropbear/* |
70
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
188 |
527
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
189 install: install-client install-server install-keyutils install-multi install-scp |
522 | 190 binary-indep: |
191 | |
527
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
192 binary-arch: install dropbear.deb dropbear-server.deb dropbear-keyutils.deb dropbear-scp.deb dropbear-client.deb |
524
3c3cef8a32e6
- Make it do the postinst files etc for dropbear-server
Matt Johnston <matt@ucc.asn.au>
parents:
523
diff
changeset
|
193 dpkg-gencontrol -isp -pdropbear -P'$(shell pwd)/debian'/dropbear |
3c3cef8a32e6
- Make it do the postinst files etc for dropbear-server
Matt Johnston <matt@ucc.asn.au>
parents:
523
diff
changeset
|
194 dpkg-gencontrol -isp -pdropbear-server -P'$(shell pwd)/debian'/dropbear-server |
3c3cef8a32e6
- Make it do the postinst files etc for dropbear-server
Matt Johnston <matt@ucc.asn.au>
parents:
523
diff
changeset
|
195 dpkg-gencontrol -isp -pdropbear-client -P'$(shell pwd)/debian'/dropbear-client |
527
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
196 dpkg-gencontrol -isp -pdropbear-keyutils -P'$(shell pwd)/debian'/dropbear-keyutils |
524
3c3cef8a32e6
- Make it do the postinst files etc for dropbear-server
Matt Johnston <matt@ucc.asn.au>
parents:
523
diff
changeset
|
197 dpkg-gencontrol -isp -pdropbear-scp -P'$(shell pwd)/debian'/dropbear-scp |
3c3cef8a32e6
- Make it do the postinst files etc for dropbear-server
Matt Johnston <matt@ucc.asn.au>
parents:
523
diff
changeset
|
198 dpkg -b '$(shell pwd)/debian'/dropbear .. |
3c3cef8a32e6
- Make it do the postinst files etc for dropbear-server
Matt Johnston <matt@ucc.asn.au>
parents:
523
diff
changeset
|
199 dpkg -b '$(shell pwd)/debian'/dropbear-server .. |
527
9f5e2616c064
- 0.52-2, put key utils into -server package
Matt Johnston <matt@ucc.asn.au>
parents:
524
diff
changeset
|
200 dpkg -b '$(shell pwd)/debian'/dropbear-keyutils .. |
524
3c3cef8a32e6
- Make it do the postinst files etc for dropbear-server
Matt Johnston <matt@ucc.asn.au>
parents:
523
diff
changeset
|
201 dpkg -b '$(shell pwd)/debian'/dropbear-scp .. |
3c3cef8a32e6
- Make it do the postinst files etc for dropbear-server
Matt Johnston <matt@ucc.asn.au>
parents:
523
diff
changeset
|
202 dpkg -b '$(shell pwd)/debian'/dropbear-client .. |
522 | 203 |
70
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
204 binary: binary-arch binary-indep |
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
205 |
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
206 .PHONY: patch build clean install binary-indep binary-arch binary |
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
207 |
b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
208 include debian/implicit |