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 http
://www.mirrors.wiretapped.net
/security
/cryptography
/apps
/ssh
/dropbear
/
18 PKG_MD5SUM
:=7b20c85f1ee34f018a1b948eae003df9
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/dropbear
/Default
23 URL
:=http
://matt.ucc.asn.au
/dropbear
/
26 define Package
/dropbear
27 $(call Package
/dropbear
/Default
)
30 TITLE
:=Small SSH2 client
/server
32 A small SSH2 server
/client designed for small memory environments.
35 define Package
/dropbearconvert
36 $(call Package
/dropbear
/Default
)
39 TITLE
:=Utility for converting SSH keys
55 --disable-pututxline \
58 define Build
/Configure
59 $(SED
) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(PKG_BUILD_DIR
)/options.h
60 $(SED
) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(PKG_BUILD_DIR
)/options.h
61 $(call Build
/Configure
/Default
)
65 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
66 $(TARGET_CONFIGURE_OPTS
) \
68 PROGRAMS
="dropbear dbclient dropbearkey scp" \
70 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
71 $(TARGET_CONFIGURE_OPTS
) \
73 PROGRAMS
="dropbearconvert"
76 define Package
/dropbear
/install
77 $(INSTALL_DIR
) $(1)/usr
/sbin
78 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dropbearmulti \
79 $(1)/usr
/sbin
/dropbear
80 $(INSTALL_DIR
) $(1)/usr
/bin
81 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/scp
82 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/ssh
83 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/dbclient
84 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/dropbearkey
85 $(INSTALL_DIR
) $(1)/etc
/config
86 $(INSTALL_DATA
) .
/files
/dropbear.config
$(1)/etc
/config
/dropbear
87 $(INSTALL_DIR
) $(1)/etc
/init.d
88 $(INSTALL_BIN
) .
/files
/dropbear.init
$(1)/etc
/init.d
/dropbear
91 define Package
/dropbearconvert
/install
92 $(INSTALL_DIR
) $(1)/usr
/bin
93 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dropbearconvert \
94 $(1)/usr
/bin
/dropbearconvert
97 $(eval
$(call BuildPackage
,dropbear
))
98 $(eval
$(call BuildPackage
,dropbearconvert
))