summaryrefslogtreecommitdiffstats
path: root/build
blob: 88c0c26869984989b9d8f6a2314ba5271ef9917a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f

include ../source.mk

nop:
	@:

build:
	chmod a+rx src
	oh-autoconfigure -- \
		--disable-bundled-libtom
	oh-autobuild -- \
		PROGRAMS='dropbear dbclient dropbearkey scp' \
		MULTI=1 \
		SCPPROGRESS=1
	oh-autobuild -- \
		PROGRAMS='dropbearconvert'
	touch $@

install: build
	oh-autoinstall -- \
		PROGRAMS='dropbear dbclient dropbearkey scp' \
		MULTI=1
	oh-autoinstall -- \
		PROGRAMS='dropbearconvert'
	install -d -m 0755 dest/etc/init.d
	install -p -m 0755 ../dropbear.pkg/dropbear.init \
		dest/etc/init.d/dropbear
	oh-fixperms
	oh-strip
	oh-installfiles