2 # Copyright (C) 2006 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
16 PKG_SOURCE_URL
:=http
://matt.ucc.asn.au
/dropbear
/releases
/
17 PKG_MD5SUM
:=ca8e53a766faec831882831364568421
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/dropbear
/Default
22 URL
:=http
://matt.ucc.asn.au
/dropbear
/
25 define Package
/dropbear
26 $(call Package
/dropbear
/Default
)
29 TITLE
:=Small SSH2 client
/server
31 A small SSH2 server
/client designed for small memory environments.
34 define Package
/dropbearconvert
35 $(call Package
/dropbear
/Default
)
38 TITLE
:=Utility for converting SSH keys
54 --disable-pututxline \
57 define Build
/Configure
58 $(SED
) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(PKG_BUILD_DIR
)/options.h
59 $(SED
) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(PKG_BUILD_DIR
)/options.h
60 $(call Build
/Configure
/Default
)
64 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
65 $(TARGET_CONFIGURE_OPTS
) \
67 PROGRAMS
="dropbear dbclient dropbearkey scp" \
69 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
70 $(TARGET_CONFIGURE_OPTS
) \
72 PROGRAMS
="dropbearconvert"
75 define Package
/dropbear
/install
76 $(INSTALL_DIR
) $(1)/usr
/sbin
77 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dropbearmulti \
78 $(1)/usr
/sbin
/dropbear
79 $(INSTALL_DIR
) $(1)/usr
/bin
80 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/scp
81 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/ssh
82 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/dbclient
83 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/dropbearkey
84 $(INSTALL_DIR
) $(1)/etc
/config
85 $(INSTALL_DATA
) .
/files
/dropbear.config
$(1)/etc
/config
/dropbear
86 $(INSTALL_DIR
) $(1)/etc
/init.d
87 $(INSTALL_BIN
) .
/files
/dropbear.init
$(1)/etc
/init.d
/dropbear
90 define Package
/dropbearconvert
/install
91 $(INSTALL_DIR
) $(1)/usr
/bin
92 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dropbearconvert \
93 $(1)/usr
/bin
/dropbearconvert
96 $(eval
$(call BuildPackage
,dropbear
))
97 $(eval
$(call BuildPackage
,dropbearconvert
))