2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 http
://www.mirrors.wiretapped.net
/security
/cryptography
/apps
/ssh
/dropbear
/ \
18 http
://matt.ucc.asn.au
/dropbear
/releases
/
19 PKG_MD5SUM
:=1045df60c2bdbd39c707238305a1e9e5
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/dropbear
/Default
24 URL
:=http
://matt.ucc.asn.au
/dropbear
/
27 define Package
/dropbear
28 $(call Package
/dropbear
/Default
)
31 TITLE
:=Small SSH2 client
/server
34 define Package
/dropbear
/description
35 A small SSH2 server
/client designed for small memory environments.
38 define Package
/dropbearconvert
39 $(call Package
/dropbear
/Default
)
42 TITLE
:=Utility for converting SSH keys
58 --disable-pututxline \
61 define Build
/Configure
62 $(SED
) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(PKG_BUILD_DIR
)/options.h
63 $(SED
) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(PKG_BUILD_DIR
)/options.h
64 $(call Build
/Configure
/Default
)
68 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
69 $(TARGET_CONFIGURE_OPTS
) \
71 PROGRAMS
="dropbear dbclient dropbearkey scp" \
73 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
74 $(TARGET_CONFIGURE_OPTS
) \
76 PROGRAMS
="dropbearconvert"
79 define Package
/dropbear
/install
80 $(INSTALL_DIR
) $(1)/usr
/sbin
81 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dropbearmulti
$(1)/usr
/sbin
/dropbear
82 $(INSTALL_DIR
) $(1)/usr
/bin
83 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/scp
84 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/ssh
85 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/dbclient
86 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/dropbearkey
87 $(INSTALL_DIR
) $(1)/etc
/config
88 $(INSTALL_DATA
) .
/files
/dropbear.config
$(1)/etc
/config
/dropbear
89 $(INSTALL_DIR
) $(1)/etc
/init.d
90 $(INSTALL_BIN
) .
/files
/dropbear.init
$(1)/etc
/init.d
/dropbear
91 $(INSTALL_DIR
) $(1)/usr
/lib
/opkg
/info
92 echo
/etc
/dropbear
/dropbear_rsa_host_key
> $(1)/usr
/lib
/opkg
/info/dropbear.conffiles
93 echo
/etc
/dropbear
/dropbear_dss_host_key
>> $(1)/usr
/lib
/opkg
/info/dropbear.conffiles
96 define Package
/dropbearconvert
/install
97 $(INSTALL_DIR
) $(1)/usr
/bin
98 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dropbearconvert
$(1)/usr
/bin
/dropbearconvert
101 $(eval
$(call BuildPackage
,dropbear
))
102 $(eval
$(call BuildPackage
,dropbearconvert
))