3 include $(TOPDIR
)/rules.mk
9 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
10 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
11 PKG_SOURCE_URL
:=http
://matt.ucc.asn.au
/dropbear
/releases
/
12 PKG_MD5SUM
:=ca8e53a766faec831882831364568421
15 include $(TOPDIR
)/package
/rules.mk
17 define Package
/dropbear
21 TITLE
:=Small SSH
2 client
/server
22 DESCRIPTION
:=A small SSH
2 server
/client designed for small memory environments.
23 URL
:=http
://matt.ucc.asn.au
/dropbear
/
26 define Package
/dropbearconvert
27 $(call Package
/dropbear
)
28 TITLE
:=Utility for converting SSH keys
30 DESCRIPTION
:=Utility for converting SSH keys
33 define Build
/Configure
34 $(SED
) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(PKG_BUILD_DIR
)/options.h
35 $(SED
) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(PKG_BUILD_DIR
)/options.h
36 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
37 $(TARGET_CONFIGURE_OPTS
) \
38 CFLAGS
="$(TARGET_CFLAGS)" \
40 --target
=$(GNU_TARGET_NAME
) \
41 --host
=$(GNU_TARGET_NAME
) \
42 --build
=$(GNU_HOST_NAME
) \
48 --datadir=/usr
/share \
49 --includedir=/usr
/include \
50 --infodir=/usr
/share
/info \
52 --libexecdir
=/usr
/lib \
53 --localstatedir
=/var \
54 --mandir=/usr
/share
/man \
57 $(DISABLE_LARGEFILE
) \
71 --disable-pututxline \
77 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
79 PROGRAMS
="dropbear dbclient dropbearkey scp" \
81 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
83 PROGRAMS
="dropbearconvert"
86 define Package
/dropbear
/install
87 install -d
-m0755
$(1)/usr
/sbin
88 install -m0755
$(PKG_BUILD_DIR
)/dropbearmulti \
89 $(1)/usr
/sbin
/dropbear
90 install -d
-m0755
$(1)/usr
/bin
91 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/scp
92 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/ssh
93 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/dbclient
94 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/dropbearkey
95 install -d
-m0755
$(1)/etc
/init.d
96 install -m0755 .
/files
/dropbear.init
$(1)/etc
/init.d
/S50dropbear
99 define Package
/dropbearconvert
/install
100 install -d
-m0755
$(1)/usr
/bin
101 install -m0755
$(PKG_BUILD_DIR
)/dropbearconvert \
102 $(1)/usr
/bin
/dropbearconvert
105 $(eval
$(call BuildPackage
,dropbear
))
106 $(eval
$(call BuildPackage
,dropbearconvert
))