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
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/dropbear
/Default
25 URL
:=http
://matt.ucc.asn.au
/dropbear
/
28 define Package
/dropbear
29 $(call Package
/dropbear
/Default
)
32 TITLE
:=Small SSH2 client
/server
34 A small SSH2 server
/client designed for small memory environments.
37 define Package
/dropbearconvert
38 $(call Package
/dropbear
/Default
)
41 TITLE
:=Utility for converting SSH keys
57 --disable-pututxline \
60 define Build
/Configure
61 $(SED
) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(PKG_BUILD_DIR
)/options.h
62 $(SED
) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(PKG_BUILD_DIR
)/options.h
63 $(call Build
/Configure
/Default
)
67 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
68 $(TARGET_CONFIGURE_OPTS
) \
70 PROGRAMS
="dropbear dbclient dropbearkey scp" \
72 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
73 $(TARGET_CONFIGURE_OPTS
) \
75 PROGRAMS
="dropbearconvert"
78 define Package
/dropbear
/install
79 $(INSTALL_DIR
) $(1)/usr
/sbin
80 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dropbearmulti \
81 $(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
93 define Package
/dropbearconvert
/install
94 $(INSTALL_DIR
) $(1)/usr
/bin
95 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dropbearconvert \
96 $(1)/usr
/bin
/dropbearconvert
99 $(eval
$(call BuildPackage
,dropbear
))
100 $(eval
$(call BuildPackage
,dropbearconvert
))