2 # Copyright (C) 2006-2012 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.bz2
16 http
://matt.ucc.asn.au
/dropbear
/releases
/
17 PKG_MD5SUM
:=6c1e6c2c297f4034488ffc95e8b7e6e9
20 PKG_LICENSE_FILES
:=LICENSE libtomcrypt
/LICENSE libtommath
/LICENSE
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/dropbear
/Default
27 URL
:=http
://matt.ucc.asn.au
/dropbear
/
30 define Package
/dropbear
31 $(call Package
/dropbear
/Default
)
34 TITLE
:=Small SSH2 client
/server
37 define Package
/dropbear
/description
38 A small SSH2 server
/client designed for small memory environments.
41 define Package
/dropbear
/conffiles
42 /etc
/dropbear
/dropbear_rsa_host_key
43 /etc
/dropbear
/dropbear_dss_host_key
47 define Package
/dropbearconvert
48 $(call Package
/dropbear
/Default
)
51 TITLE
:=Utility for converting SSH keys
59 $(if
$(CONFIG_SHADOW_PASSWORDS
),,--disable-shadow
) \
67 --disable-pututxline \
69 --enable-bundled-libtom
71 TARGET_CFLAGS
+= -DARGTYPE
=3 -ffunction-sections
-fdata-sections
72 TARGET_LDFLAGS
+= -Wl
,--gc-sections
75 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
76 $(TARGET_CONFIGURE_OPTS
) \
77 PROGRAMS
="dropbear dbclient dropbearkey scp" \
79 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
80 $(TARGET_CONFIGURE_OPTS
) \
81 PROGRAMS
="dropbearconvert"
84 define Package
/dropbear
/install
85 $(INSTALL_DIR
) $(1)/usr
/sbin
86 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dropbearmulti
$(1)/usr
/sbin
/dropbear
87 $(INSTALL_DIR
) $(1)/usr
/bin
88 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/scp
89 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/ssh
90 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/dbclient
91 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/dropbearkey
92 $(INSTALL_DIR
) $(1)/etc
/config
93 $(INSTALL_DATA
) .
/files
/dropbear.config
$(1)/etc
/config
/dropbear
94 $(INSTALL_DIR
) $(1)/etc
/init.d
95 $(INSTALL_BIN
) .
/files
/dropbear.init
$(1)/etc
/init.d
/dropbear
96 $(INSTALL_DIR
) $(1)/usr
/lib
/opkg
/info
97 $(INSTALL_DIR
) $(1)/etc
/dropbear
98 touch
$(1)/etc
/dropbear
/dropbear_rsa_host_key
99 touch
$(1)/etc
/dropbear
/dropbear_dss_host_key
102 define Package
/dropbearconvert
/install
103 $(INSTALL_DIR
) $(1)/usr
/bin
104 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dropbearconvert
$(1)/usr
/bin
/dropbearconvert
107 $(eval
$(call BuildPackage
,dropbear
))
108 $(eval
$(call BuildPackage
,dropbearconvert
))