2005-10-29 09:01:33 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# dropbear
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2009-03-11 21:32:39 +01:00
|
|
|
DROPBEAR_VERSION = 0.52
|
|
|
|
DROPBEAR_SOURCE = dropbear-$(DROPBEAR_VERSION).tar.gz
|
|
|
|
DROPBEAR_SITE = http://matt.ucc.asn.au/dropbear/releases
|
2009-09-02 17:02:02 +02:00
|
|
|
DROPBEAR_DEPENDENCIES = zlib
|
2009-03-11 21:32:39 +01:00
|
|
|
DROPBEAR_TARGET_BINS = dbclient dropbearkey dropbearconvert scp ssh
|
|
|
|
DROPBEAR_MAKE = $(MAKE) MULTI=1 SCPPROGRESS=1 \
|
|
|
|
PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp"
|
2005-10-29 09:01:33 +02:00
|
|
|
|
2009-03-11 21:32:39 +01:00
|
|
|
$(eval $(call AUTOTARGETS,package,dropbear))
|
2005-10-29 09:01:33 +02:00
|
|
|
|
2009-03-11 21:32:39 +01:00
|
|
|
$(DROPBEAR_HOOK_POST_EXTRACT):
|
2008-06-30 15:35:14 +02:00
|
|
|
$(SED) 's,^#define XAUTH_COMMAND.*/xauth,#define XAUTH_COMMAND "/usr/bin/xauth,g' $(DROPBEAR_DIR)/options.h
|
2007-08-11 20:43:58 +02:00
|
|
|
touch $@
|
2005-10-29 09:01:33 +02:00
|
|
|
|
2009-03-11 21:32:39 +01:00
|
|
|
$(DROPBEAR_TARGET_INSTALL_TARGET):
|
|
|
|
$(call MESSAGE,"Installing to target")
|
|
|
|
$(INSTALL) -m 755 $(DROPBEAR_DIR)/dropbearmulti \
|
|
|
|
$(TARGET_DIR)/usr/sbin/dropbear
|
2005-10-29 09:01:33 +02:00
|
|
|
ln -snf ../sbin/dropbear $(TARGET_DIR)/usr/bin/dbclient
|
|
|
|
ln -snf ../sbin/dropbear $(TARGET_DIR)/usr/bin/dropbearkey
|
|
|
|
ln -snf ../sbin/dropbear $(TARGET_DIR)/usr/bin/dropbearconvert
|
2009-03-11 21:32:39 +01:00
|
|
|
ln -snf ../sbin/dropbear $(TARGET_DIR)/usr/bin/scp
|
|
|
|
ln -snf ../sbin/dropbear $(TARGET_DIR)/usr/bin/ssh
|
|
|
|
if [ ! -f $(TARGET_DIR)/etc/init.d/S50dropbear ]; then \
|
2009-05-28 14:31:20 +02:00
|
|
|
$(INSTALL) -m 0755 -D package/dropbear/S50dropbear $(TARGET_DIR)/etc/init.d/S50dropbear; \
|
2009-03-11 21:32:39 +01:00
|
|
|
fi
|
|
|
|
touch $@
|
2005-10-29 09:01:33 +02:00
|
|
|
|
2009-03-11 21:32:39 +01:00
|
|
|
$(DROPBEAR_TARGET_UNINSTALL):
|
|
|
|
$(call MESSAGE,"Uninstalling")
|
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/dropbear
|
|
|
|
rm -f $(addprefix $(TARGET_DIR)/usr/bin/, $(DROPBEAR_TARGET_BINS))
|
2008-03-27 16:42:42 +01:00
|
|
|
rm -f $(TARGET_DIR)/etc/init.d/S50dropbear
|
2009-03-11 21:32:39 +01:00
|
|
|
rm -f $(DROPBEAR_TARGET_INSTALL_TARGET) $(DROPBEAR_HOOK_POST_INSTALL)
|
2005-10-29 09:01:33 +02:00
|
|
|
|