2006-06-27 00:35:46 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# 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
|
|
|
# $Id$
|
|
|
|
|
2005-03-06 03:53:29 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2005-04-14 07:08:14 +00:00
|
|
|
PKG_NAME:=dropbear
|
2006-03-27 19:20:22 +00:00
|
|
|
PKG_VERSION:=0.48.1
|
2005-10-20 13:55:42 +00:00
|
|
|
PKG_RELEASE:=1
|
2005-03-21 08:12:49 +00:00
|
|
|
|
2006-05-10 19:06:22 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
2006-03-27 19:20:22 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-05-10 19:06:22 +00:00
|
|
|
PKG_SOURCE_URL:=http://matt.ucc.asn.au/dropbear/releases/
|
|
|
|
PKG_MD5SUM:=ca8e53a766faec831882831364568421
|
2006-03-27 19:20:22 +00:00
|
|
|
PKG_CAT:=zcat
|
2005-03-06 03:53:29 +00:00
|
|
|
|
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
|
|
|
|
DEFAULT:=y
|
|
|
|
TITLE:=Small SSH2 client/server
|
|
|
|
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
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
2005-04-14 07:08:14 +00:00
|
|
|
(cd $(PKG_BUILD_DIR); rm -rf config.cache; \
|
2005-03-06 03:53:29 +00:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2006-06-18 18:22:24 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2005-03-06 03:53:29 +00:00
|
|
|
./configure \
|
2006-06-18 18:22:24 +00:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--program-prefix="" \
|
|
|
|
--program-suffix="" \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--includedir=/usr/include \
|
|
|
|
--infodir=/usr/share/info \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
$(DISABLE_LARGEFILE) \
|
|
|
|
$(DISABLE_NLS) \
|
|
|
|
--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 \
|
2005-03-06 03:53:29 +00:00
|
|
|
);
|
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
|
2005-04-14 07:08:14 +00:00
|
|
|
$(MAKE) -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
|
2006-01-31 13:33:25 +00:00
|
|
|
$(MAKE) -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
|
2006-01-31 13:33:25 +00:00
|
|
|
|
2006-05-10 19:06:22 +00:00
|
|
|
define Package/dropbear/install
|
2006-06-18 18:22:24 +00:00
|
|
|
install -d -m0755 $(1)/usr/sbin
|
|
|
|
install -m0755 $(PKG_BUILD_DIR)/dropbearmulti \
|
2006-05-11 16:00:43 +00:00
|
|
|
$(1)/usr/sbin/dropbear
|
2006-06-18 18:22:24 +00:00
|
|
|
install -d -m0755 $(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-06-18 18:22:24 +00:00
|
|
|
install -d -m0755 $(1)/etc/init.d
|
|
|
|
install -m0755 ./files/dropbear.init $(1)/etc/init.d/S50dropbear
|
2006-05-10 19:06:22 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dropbearconvert/install
|
2006-06-18 18:22:24 +00:00
|
|
|
install -d -m0755 $(1)/usr/bin
|
|
|
|
install -m0755 $(PKG_BUILD_DIR)/dropbearconvert \
|
2006-05-11 16:00:43 +00:00
|
|
|
$(1)/usr/bin/dropbearconvert
|
2006-05-10 19:06:22 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,dropbear))
|
|
|
|
$(eval $(call BuildPackage,dropbearconvert))
|