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