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
)
29 TITLE
:=Utility for converting SSH keys
30 DESCRIPTION
:=Utility for converting SSH keys
34 define Build
/Configure
35 $(SED
) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(PKG_BUILD_DIR
)/options.h
36 $(SED
) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(PKG_BUILD_DIR
)/options.h
37 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
39 $(TARGET_CONFIGURE_OPTS
) \
40 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
41 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
43 --target
=$(GNU_TARGET_NAME
) \
44 --host
=$(GNU_TARGET_NAME
) \
45 --build
=$(GNU_HOST_NAME
) \
51 --datadir=/usr
/share \
52 --includedir=/usr
/include \
53 --infodir=/usr
/share
/info \
55 --libexecdir
=/usr
/lib \
56 --localstatedir
=/var \
57 --mandir=/usr
/share
/man \
60 $(DISABLE_LARGEFILE
) \
74 --disable-pututxline \
80 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
82 PROGRAMS
="dropbear dbclient dropbearkey scp" \
84 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
86 PROGRAMS
="dropbearconvert"
89 define Package
/dropbear
/install
91 mkdir
-p
$(1)/usr
/sbin
92 install -m
755 $(PKG_BUILD_DIR
)/dropbearmulti \
93 $(1)/usr
/sbin
/dropbear
94 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/scp
95 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/ssh
96 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/dbclient
97 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/dropbearkey
98 mkdir
-p
$(1)/etc
/init.d
99 install -m
755 .
/files
/S50dropbear
$(1)/etc
/init.d
/
102 define Package
/dropbearconvert
/install
103 mkdir
-p
$(1)/usr
/bin
104 install -m
755 $(PKG_BUILD_DIR
)/dropbearconvert \
105 $(1)/usr
/bin
/dropbearconvert
108 $(eval
$(call BuildPackage
,dropbear
))
109 $(eval
$(call BuildPackage
,dropbearconvert
))