2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 http
://matt.ucc.asn.au
/dropbear
/releases
/ \
17 http
://www.mirrors.wiretapped.net
/security
/cryptography
/apps
/ssh
/dropbear
/
18 PKG_MD5SUM
:=1c69ec674481d7745452f68f2ea5597e
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
35 define Package
/dropbear
/description
36 A small SSH2 server
/client designed for small memory environments.
39 define Package
/dropbear
/conffiles
40 /etc
/dropbear
/dropbear_rsa_host_key
41 /etc
/dropbear
/dropbear_dss_host_key
45 define Package
/dropbearconvert
46 $(call Package
/dropbear
/Default
)
49 TITLE
:=Utility for converting SSH keys
57 $(if
$(CONFIG_SHADOW_PASSWORDS
),,--disable-shadow
) \
65 --disable-pututxline \
68 define Build
/Configure
69 $(SED
) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(PKG_BUILD_DIR
)/options.h
70 $(SED
) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(PKG_BUILD_DIR
)/options.h
71 $(call Build
/Configure
/Default
)
75 $(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
76 $(TARGET_CONFIGURE_OPTS
) \
78 PROGRAMS
="dropbear dbclient dropbearkey scp" \
80 $(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
81 $(TARGET_CONFIGURE_OPTS
) \
83 PROGRAMS
="dropbearconvert"
86 define Package
/dropbear
/install
87 $(INSTALL_DIR
) $(1)/usr
/sbin
88 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dropbearmulti
$(1)/usr
/sbin
/dropbear
89 $(INSTALL_DIR
) $(1)/usr
/bin
90 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/scp
91 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/ssh
92 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/dbclient
93 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/dropbearkey
94 $(INSTALL_DIR
) $(1)/etc
/config
95 $(INSTALL_DATA
) .
/files
/dropbear.config
$(1)/etc
/config
/dropbear
96 $(INSTALL_DIR
) $(1)/etc
/init.d
97 $(INSTALL_BIN
) .
/files
/dropbear.init
$(1)/etc
/init.d
/dropbear
98 $(INSTALL_DIR
) $(1)/usr
/lib
/opkg
/info
99 $(INSTALL_DIR
) $(1)/etc
/dropbear
100 touch
$(1)/etc
/dropbear
/dropbear_rsa_host_key
101 touch
$(1)/etc
/dropbear
/dropbear_dss_host_key
104 define Package
/dropbearconvert
/install
105 $(INSTALL_DIR
) $(1)/usr
/bin
106 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dropbearconvert
$(1)/usr
/bin
/dropbearconvert
109 $(eval
$(call BuildPackage
,dropbear
))
110 $(eval
$(call BuildPackage
,dropbearconvert
))