annotate debian/rules @ 526:b4ed271dc08a maemo

- Set section to user/network
author Matt Johnston <matt@ucc.asn.au>
date Wed, 19 Nov 2008 12:03:57 +0000
parents 3c3cef8a32e6
children 9f5e2616c064
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
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)
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
40
70
b0316ce64e4b Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
41 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
42 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
43 $(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
44 touch build-stamp
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
45
522
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
46 clean: DIR=$(shell pwd)/debian/dropbear
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
47 clean: deb-checkdir deb-checkuid
469
8c2d2edadf2a Update to debian 0.50-4 diff
Matt Johnston <matt@ucc.asn.au>
parents: 220
diff changeset
48 test ! -r Makefile || $(MAKE) distclean
8c2d2edadf2a Update to debian 0.50-4 diff
Matt Johnston <matt@ucc.asn.au>
parents: 220
diff changeset
49 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
50 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
51 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
52 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
53 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
54 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
55 rm -rf '$(DIR)'
522
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
56 rm -rf '$(DIR)'-client
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
57 rm -rf '$(DIR)'-server
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
58 rm -rf '$(DIR)'-common
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
59 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
60 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
61
522
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
62 install-server: DIR=$(shell pwd)/debian/dropbear-server
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
63 install-server: deb-checkdir deb-checkuid config.status
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
64 rm -f '$(DIR)'
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
65 $(MAKE) clean
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
66 $(MAKE) CC='$(CC)' LD='$(LD)' PROGRAMS=dropbear dropbear
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
67 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
68 # programs
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
69 install -d -m0755 '$(DIR)'/usr/sbin
743fce568f49 Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents: 76
diff changeset
70 install -m0755 dropbear '$(DIR)'/usr/sbin/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
71 # 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
72 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
73 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
74 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
75 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
76 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
77 ln -s /var/log/dropbear '$(DIR)'/etc/dropbear/log/main
522
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
78 install -d -m0755 '$(DIR)'/usr/share/man/man8
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
79 for i in dropbear.8 ; do \
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
80 install -m644 $$i '$(DIR)'/usr/share/man/man8/ || exit 1; \
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
81 done
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
82 gzip -9 '$(DIR)'/usr/share/man/man8/*.8
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
83 # copyright, changelog
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
84 cat debian/copyright.in LICENSE > debian/copyright
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
85 test -r changelog || ln -s CHANGES changelog
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
86 $(STRIP) -R .comment -R .note '$(DIR)'/usr/sbin/*
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
87
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
88 install -d -m0755 '$(DIR)'/DEBIAN
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
89 test '$(CC)' != 'gcc' || \
523
4ff1bf0345c9 - dropbear-server doesn't have anything in /usr/lib/dropbear
Matt Johnston <matt@ucc.asn.au>
parents: 522
diff changeset
90 dpkg-shlibdeps '$(DIR)'/usr/sbin/*
522
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
91
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
92 install-client: DIR=$(shell pwd)/debian/dropbear-client
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
93 install-client: deb-checkdir deb-checkuid config.status
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
94 rm -f '$(DIR)'
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
95 $(MAKE) clean
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
96 $(MAKE) CC='$(CC)' LD='$(LD)' PROGRAMS=dbclient dbclient
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
97 install -d -m0755 '$(DIR)'/usr/bin
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
98 install -m0755 dbclient '$(DIR)'/usr/bin/dbclient
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
99 install -d -m0755 '$(DIR)'/usr/share/man/man1
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
100 install -m644 dbclient.1 '$(DIR)'/usr/share/man/man1/
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
101 gzip -9 '$(DIR)'/usr/share/man/man1/*.1
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
102 $(STRIP) -R .comment -R .note '$(DIR)'/usr/bin/*
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
103
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
104 install -d -m0755 '$(DIR)'/DEBIAN
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
105 test '$(CC)' != 'gcc' || \
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
106 dpkg-shlibdeps '$(DIR)'/usr/bin/*
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
107
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
108 install-common: DIR=$(shell pwd)/debian/dropbear-common
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
109 install-common: deb-checkdir deb-checkuid config.status
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
110 rm -f '$(DIR)'
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
111 $(MAKE) clean
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
112 $(MAKE) CC='$(CC)' LD='$(LD)' PROGRAMS="dropbearkey dropbearconvert" MULTI=1
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
113 install -d -m0755 '$(DIR)'/usr/bin
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
114 install -d -m0755 '$(DIR)'/usr/lib/dropbear
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
115 install -m0755 dropbearmulti \
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
116 '$(DIR)'/usr/lib/dropbear/dropbearmulti
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
117 ln -s ../lib/dropbear/dropbearmulti '$(DIR)'/usr/bin/dropbearkey
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
118 ln -s dropbearmulti '$(DIR)'/usr/lib/dropbear/dropbearconvert
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
119 install -d -m0755 '$(DIR)'/usr/share/man/man8
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
120 for i in dropbearkey.8; do \
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
121 install -m644 $$i '$(DIR)'/usr/share/man/man8/ || exit 1; \
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
122 done
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
123 gzip -9 '$(DIR)'/usr/share/man/man8/*.8
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
124 $(STRIP) -R .comment -R .note \
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
125 '$(DIR)'/usr/bin/* '$(DIR)'/usr/lib/dropbear/*
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
126
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
127 install -d -m0755 '$(DIR)'/DEBIAN
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
128 test '$(CC)' != 'gcc' || \
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
129 dpkg-shlibdeps '$(DIR)'/usr/bin/* '$(DIR)'/usr/lib/dropbear/*
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
130
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
131 install-scp: DIR=$(shell pwd)/debian/dropbear-scp
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
132 install-scp: deb-checkdir deb-checkuid config.status
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
133 rm -f '$(DIR)'
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
134 $(MAKE) clean
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
135 $(MAKE) CC='$(CC)' LD='$(LD)' PROGRAMS="scp" scp
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
136 install -d -m0755 '$(DIR)'/usr/bin
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
137 install -m0755 scp '$(DIR)'/usr/bin/scp
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
138 $(STRIP) -R .comment -R .note '$(DIR)'/usr/bin/*
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
139
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
140 install -d -m0755 '$(DIR)'/DEBIAN
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
141 test '$(CC)' != 'gcc' || \
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
142 dpkg-shlibdeps '$(DIR)'/usr/bin/*
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
143
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
144 install-multi: DIR=$(shell pwd)/debian/dropbear
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
145 install-multi: deb-checkdir deb-checkuid config.status
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
146 rm -f '$(DIR)'
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
147 $(MAKE) clean
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
148 $(MAKE) CC='$(CC)' LD='$(LD)' PROGRAMS="dropbearkey dropbearconvert scp dropbear dbclient" MULTI=1
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
149 install -d -m0755 '$(DIR)'/etc/dropbear
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
150 # programs
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
151 install -d -m0755 '$(DIR)'/usr/bin
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
152 install -d -m0755 '$(DIR)'/usr/sbin
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
153 install -d -m0755 '$(DIR)'/usr/lib/dropbear
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
154 install -m0755 dropbearmulti \
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
155 '$(DIR)'/usr/lib/dropbear/dropbearmulti
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
156 ln -s ../lib/dropbear/dropbearmulti '$(DIR)'/usr/bin/dropbearkey
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
157 ln -s ../lib/dropbear/dropbearmulti '$(DIR)'/usr/bin/dbclient
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
158 ln -s ../lib/dropbear/dropbearmulti '$(DIR)'/usr/bin/scp
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
159 ln -s ../lib/dropbear/dropbearmulti '$(DIR)'/usr/sbin/dropbear
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
160 ln -s dropbearmulti '$(DIR)'/usr/lib/dropbear/dropbearconvert
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
161 # init and run scripts
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
162 install -d -m0755 '$(DIR)'/etc/init.d
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
163 install -m0755 debian/dropbear.init '$(DIR)'/etc/init.d/dropbear
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
164 install -m0755 debian/service/run '$(DIR)'/etc/dropbear/run
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
165 install -d -m0755 '$(DIR)'/etc/dropbear/log
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
166 install -m0755 debian/service/log '$(DIR)'/etc/dropbear/log/run
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
167 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
168 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
169 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
170 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
171 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
172 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
173 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
174 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
175 gzip -9 '$(DIR)'/usr/share/man/man1/*.1
522
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
176 $(STRIP) -R .comment -R .note '$(DIR)'/usr/sbin/* \
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
177 '$(DIR)'/usr/bin/* '$(DIR)'/usr/lib/dropbear/*
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
178
522
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
179 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
180 test '$(CC)' != 'gcc' || \
743fce568f49 Merge in Debian package changes from 0.45-3, grab the dbclient manpage
Matt Johnston <matt@ucc.asn.au>
parents: 76
diff changeset
181 dpkg-shlibdeps '$(DIR)'/usr/sbin/* '$(DIR)'/usr/bin/* \
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 '$(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
183
522
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
184 install: install-client install-server install-common install-multi install-scp
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
185 binary-indep:
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
186
524
3c3cef8a32e6 - Make it do the postinst files etc for dropbear-server
Matt Johnston <matt@ucc.asn.au>
parents: 523
diff changeset
187 binary-arch: install dropbear.deb dropbear-server.deb dropbear-common.deb dropbear-scp.deb dropbear-client.deb
3c3cef8a32e6 - Make it do the postinst files etc for dropbear-server
Matt Johnston <matt@ucc.asn.au>
parents: 523
diff changeset
188 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
189 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
190 dpkg-gencontrol -isp -pdropbear-client -P'$(shell pwd)/debian'/dropbear-client
3c3cef8a32e6 - Make it do the postinst files etc for dropbear-server
Matt Johnston <matt@ucc.asn.au>
parents: 523
diff changeset
191 dpkg-gencontrol -isp -pdropbear-common -P'$(shell pwd)/debian'/dropbear-common
3c3cef8a32e6 - Make it do the postinst files etc for dropbear-server
Matt Johnston <matt@ucc.asn.au>
parents: 523
diff changeset
192 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
193 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
194 dpkg -b '$(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 -b '$(shell pwd)/debian'/dropbear-common ..
3c3cef8a32e6 - Make it do the postinst files etc for dropbear-server
Matt Johnston <matt@ucc.asn.au>
parents: 523
diff changeset
196 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
197 dpkg -b '$(shell pwd)/debian'/dropbear-client ..
522
8cc0598b0b9a - Split into separate debs
Matt Johnston <matt@ucc.asn.au>
parents: 469
diff changeset
198
70
b0316ce64e4b Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
199 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
200
b0316ce64e4b Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
201 .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
202
b0316ce64e4b Merging in the changes from 0.41-0.43 main Dropbear tree
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
203 include debian/implicit