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
29 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
; \
38 $(TARGET_CONFIGURE_OPTS
) \
39 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
40 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
42 --target
=$(GNU_TARGET_NAME
) \
43 --host
=$(GNU_TARGET_NAME
) \
44 --build
=$(GNU_HOST_NAME
) \
50 --datadir=/usr
/share \
51 --includedir=/usr
/include \
52 --infodir=/usr
/share
/info \
54 --libexecdir
=/usr
/lib \
55 --localstatedir
=/var \
56 --mandir=/usr
/share
/man \
59 $(DISABLE_LARGEFILE
) \
73 --disable-pututxline \
79 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
81 PROGRAMS
="dropbear dbclient dropbearkey scp" \
83 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
85 PROGRAMS
="dropbearconvert"
88 define Package
/dropbear
/install
90 mkdir
-p
$(1)/usr
/sbin
91 install -m
755 $(PKG_BUILD_DIR
)/dropbearmulti \
92 $(1)/usr
/sbin
/dropbear
93 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/scp
94 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/ssh
95 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/dbclient
96 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/dropbearkey
97 mkdir
-p
$(1)/etc
/init.d
98 install -m
755 .
/files
/S50dropbear
$(1)/etc
/init.d
/
101 define Package
/dropbearconvert
/install
102 mkdir
-p
$(1)/usr
/bin
103 install -m
755 $(PKG_BUILD_DIR
)/dropbearconvert \
104 $(1)/usr
/bin
/dropbearconvert
107 $(eval
$(call BuildPackage
,dropbear
))
108 $(eval
$(call BuildPackage
,dropbearconvert
))