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
|
|
|
|
2005-05-12 19:45:27 +00:00
|
|
|
include $(TOPDIR)/package/rules.mk
|
2005-03-06 03:53:29 +00:00
|
|
|
|
2006-05-10 19:06:22 +00:00
|
|
|
define Package/dropbear
|
|
|
|
SECTION:=base
|
|
|
|
CATEGORY:=Base system
|
|
|
|
DEFAULT:=y
|
|
|
|
TITLE:=Small SSH 2 client/server
|
|
|
|
DESCRIPTION:=A small SSH 2 server/client designed for small memory environments.
|
|
|
|
URL:=http://matt.ucc.asn.au/dropbear/
|
|
|
|
endef
|
2005-04-14 07:08:14 +00:00
|
|
|
|
2006-05-10 19:06:22 +00:00
|
|
|
define Package/dropbearconvert
|
|
|
|
$(call Package/dropbear)
|
|
|
|
DEFAULT:=m
|
|
|
|
TITLE:=Utility for converting SSH keys
|
|
|
|
DESCRIPTION:=Utility for converting SSH keys
|
|
|
|
DEPENDS:=zlib
|
|
|
|
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
|
|
|
autoconf; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2005-04-14 07:08:14 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
|
|
|
|
LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
|
2005-03-06 03:53:29 +00:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
2005-04-14 07:08:14 +00:00
|
|
|
--program-prefix="" \
|
|
|
|
--program-suffix="" \
|
2005-03-06 03:53:29 +00:00
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--datadir=/usr/share \
|
2005-04-14 07:08:14 +00:00
|
|
|
--includedir=/usr/include \
|
|
|
|
--infodir=/usr/share/info \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--libexecdir=/usr/lib \
|
2005-03-06 03:53:29 +00:00
|
|
|
--localstatedir=/var \
|
2005-04-14 07:08:14 +00:00
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
$(DISABLE_LARGEFILE) \
|
2005-03-06 03:53:29 +00:00
|
|
|
$(DISABLE_NLS) \
|
|
|
|
--with-shared \
|
2005-04-04 22:04:58 +00:00
|
|
|
--disable-pam \
|
|
|
|
--enable-openpty \
|
|
|
|
--enable-syslog \
|
|
|
|
--disable-shadow \
|
|
|
|
--disable-lastlog \
|
|
|
|
--disable-utmp \
|
|
|
|
--disable-utmpx \
|
|
|
|
--disable-wtmp \
|
|
|
|
--disable-wtmpx \
|
|
|
|
--disable-loginfunc \
|
|
|
|
--disable-pututline \
|
|
|
|
--disable-pututxline \
|
2006-01-31 13:33:25 +00:00
|
|
|
--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) \
|
|
|
|
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) \
|
|
|
|
LD=$(TARGET_CC) \
|
|
|
|
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-05-11 16:00:43 +00:00
|
|
|
mkdir -p $(1)/usr/bin
|
|
|
|
mkdir -p $(1)/usr/sbin
|
2005-04-14 07:08:14 +00:00
|
|
|
install -m 755 $(PKG_BUILD_DIR)/dropbearmulti \
|
2006-05-11 16:00:43 +00:00
|
|
|
$(1)/usr/sbin/dropbear
|
|
|
|
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
|
|
|
|
mkdir -p $(1)/etc/init.d
|
|
|
|
install -m 755 ./files/S50dropbear $(1)/etc/init.d/
|
2006-05-10 19:06:22 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dropbearconvert/install
|
2006-05-11 16:00:43 +00:00
|
|
|
mkdir -p $(1)/usr/bin
|
2006-05-10 19:06:22 +00:00
|
|
|
install -m 755 $(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))
|