2008-07-24 05:24:52 +00:00
|
|
|
#
|
2009-03-29 21:04:05 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2006-06-27 00:35:46 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2005-03-21 08:12:49 +00:00
|
|
|
|
2005-03-06 03:53:29 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2005-04-14 07:08:14 +00:00
|
|
|
PKG_NAME:=dropbear
|
2011-03-02 14:20:51 +00:00
|
|
|
PKG_VERSION:=0.53.1
|
2011-03-02 14:51:45 +00:00
|
|
|
PKG_RELEASE:=2
|
2005-03-21 08:12:49 +00:00
|
|
|
|
2006-03-27 19:20:22 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2008-07-24 05:24:52 +00:00
|
|
|
PKG_SOURCE_URL:= \
|
2009-02-10 17:14:18 +00:00
|
|
|
http://matt.ucc.asn.au/dropbear/releases/ \
|
|
|
|
http://www.mirrors.wiretapped.net/security/cryptography/apps/ssh/dropbear/
|
2011-03-02 14:20:51 +00:00
|
|
|
PKG_MD5SUM:=6b8d901859d9b8a18e2f6bfe0a892a03
|
2005-03-06 03:53:29 +00:00
|
|
|
|
2010-09-07 10:00:34 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
2006-06-21 02:32:39 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2005-03-06 03:53:29 +00:00
|
|
|
|
2006-09-23 17:41:58 +00:00
|
|
|
define Package/dropbear/Default
|
|
|
|
URL:=http://matt.ucc.asn.au/dropbear/
|
|
|
|
endef
|
|
|
|
|
2006-05-10 19:06:22 +00:00
|
|
|
define Package/dropbear
|
2006-09-23 17:41:58 +00:00
|
|
|
$(call Package/dropbear/Default)
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Base system
|
|
|
|
TITLE:=Small SSH2 client/server
|
2007-09-07 08:34:51 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dropbear/description
|
|
|
|
A small SSH2 server/client designed for small memory environments.
|
2006-05-10 19:06:22 +00:00
|
|
|
endef
|
2005-04-14 07:08:14 +00:00
|
|
|
|
2009-02-03 22:28:16 +00:00
|
|
|
define Package/dropbear/conffiles
|
|
|
|
/etc/dropbear/dropbear_rsa_host_key
|
|
|
|
/etc/dropbear/dropbear_dss_host_key
|
|
|
|
/etc/config/dropbear
|
|
|
|
endef
|
|
|
|
|
2006-05-10 19:06:22 +00:00
|
|
|
define Package/dropbearconvert
|
2006-09-23 17:41:58 +00:00
|
|
|
$(call Package/dropbear/Default)
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Utility for converting SSH keys
|
2006-05-10 19:06:22 +00:00
|
|
|
endef
|
|
|
|
|
2007-02-25 23:34:57 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-shared \
|
|
|
|
--disable-pam \
|
|
|
|
--enable-openpty \
|
|
|
|
--enable-syslog \
|
2008-09-30 00:56:55 +00:00
|
|
|
$(if $(CONFIG_SHADOW_PASSWORDS),,--disable-shadow) \
|
2007-02-25 23:34:57 +00:00
|
|
|
--disable-lastlog \
|
|
|
|
--disable-utmp \
|
|
|
|
--disable-utmpx \
|
|
|
|
--disable-wtmp \
|
|
|
|
--disable-wtmpx \
|
|
|
|
--disable-loginfunc \
|
|
|
|
--disable-pututline \
|
|
|
|
--disable-pututxline \
|
2011-03-02 14:20:51 +00:00
|
|
|
--disable-zlib \
|
|
|
|
--enable-bundled-libtom
|
2007-02-25 23:34:57 +00:00
|
|
|
|
2011-03-02 12:47:52 +00:00
|
|
|
TARGET_CFLAGS += -DARGTYPE=3 -ffunction-sections -fdata-sections
|
|
|
|
TARGET_LDFLAGS += -Wl,--gc-sections
|
2011-02-13 16:54:44 +00:00
|
|
|
|
2006-05-10 19:06:22 +00:00
|
|
|
define Build/Configure
|
2005-04-14 07:08:14 +00:00
|
|
|
$(SED) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(PKG_BUILD_DIR)/options.h
|
2005-05-31 10:09:05 +00:00
|
|
|
$(SED) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(PKG_BUILD_DIR)/options.h
|
2007-02-25 23:34:57 +00:00
|
|
|
$(call Build/Configure/Default)
|
2006-05-10 19:06:22 +00:00
|
|
|
endef
|
2005-03-06 03:53:29 +00:00
|
|
|
|
2006-05-11 17:33:51 +00:00
|
|
|
define Build/Compile
|
2010-09-07 10:00:34 +00:00
|
|
|
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
|
2006-08-04 05:30:27 +00:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2006-08-04 09:14:20 +00:00
|
|
|
LD="$(TARGET_CC)" \
|
2006-01-31 13:33:25 +00:00
|
|
|
PROGRAMS="dropbear dbclient dropbearkey scp" \
|
2005-04-14 07:08:14 +00:00
|
|
|
MULTI=1 SCPPROGRESS=1
|
2010-09-07 10:00:34 +00:00
|
|
|
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
|
2006-08-04 05:30:27 +00:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2006-08-04 09:14:20 +00:00
|
|
|
LD="$(TARGET_CC)" \
|
2006-01-31 13:33:25 +00:00
|
|
|
PROGRAMS="dropbearconvert"
|
2006-05-10 19:06:22 +00:00
|
|
|
endef
|
2008-07-24 05:24:52 +00:00
|
|
|
|
2006-05-10 19:06:22 +00:00
|
|
|
define Package/dropbear/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-08-11 21:53:15 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dropbearmulti $(1)/usr/sbin/dropbear
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2006-05-11 16:00:43 +00:00
|
|
|
ln -sf ../sbin/dropbear $(1)/usr/bin/scp
|
|
|
|
ln -sf ../sbin/dropbear $(1)/usr/bin/ssh
|
|
|
|
ln -sf ../sbin/dropbear $(1)/usr/bin/dbclient
|
|
|
|
ln -sf ../sbin/dropbear $(1)/usr/bin/dropbearkey
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
2007-01-04 16:51:41 +00:00
|
|
|
$(INSTALL_DATA) ./files/dropbear.config $(1)/etc/config/dropbear
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/dropbear.init $(1)/etc/init.d/dropbear
|
2008-08-16 06:35:14 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/opkg/info
|
2009-02-03 22:28:16 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/dropbear
|
|
|
|
touch $(1)/etc/dropbear/dropbear_rsa_host_key
|
|
|
|
touch $(1)/etc/dropbear/dropbear_dss_host_key
|
2006-05-10 19:06:22 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dropbearconvert/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-08-11 21:53:15 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dropbearconvert $(1)/usr/bin/dropbearconvert
|
2006-05-10 19:06:22 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,dropbear))
|
|
|
|
$(eval $(call BuildPackage,dropbearconvert))
|