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
90 mkdir
-p
$(IDIR_DROPBEAR
)/usr
/bin
91 mkdir
-p
$(IDIR_DROPBEAR
)/usr
/sbin
92 install -m
755 $(PKG_BUILD_DIR
)/dropbearmulti \
93 $(IDIR_DROPBEAR
)/usr
/sbin
/dropbear
94 ln
-sf ..
/sbin
/dropbear
$(IDIR_DROPBEAR
)/usr
/bin
/scp
95 ln
-sf ..
/sbin
/dropbear
$(IDIR_DROPBEAR
)/usr
/bin
/ssh
96 ln
-sf ..
/sbin
/dropbear
$(IDIR_DROPBEAR
)/usr
/bin
/dbclient
97 ln
-sf ..
/sbin
/dropbear
$(IDIR_DROPBEAR
)/usr
/bin
/dropbearkey
98 mkdir
-p
$(IDIR_DROPBEAR
)/etc
/init.d
99 install -m
755 .
/files
/S50dropbear
$(IDIR_DROPBEAR
)/etc
/init.d
/
102 define Package
/dropbearconvert
/install
103 mkdir
-p
$(IDIR_DBCONVERT
)/usr
/bin
104 install -m
755 $(PKG_BUILD_DIR
)/dropbearconvert \
105 $(IDIR_DBCONVERT
)/usr
/bin
/dropbearconvert
108 $(eval
$(call BuildPackage
,dropbear
))
109 $(eval
$(call BuildPackage
,dropbearconvert
))