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
|
2010-06-25 23:18:43 +02:00
|
|
|
# configure misdetects this as no, but the result is not used for
|
|
|
|
# anything. Unfortunately it breaks the build for other packages also
|
|
|
|
# checking for struct sockaddr_storage when using a shared config
|
|
|
|
# cache, so force it to yes
|
|
|
|
DROPBEAR_CONF_ENV = ac_cv_type_struct_sockaddr_storage=yes
|
2009-03-11 21:32:39 +01:00
|
|
|
DROPBEAR_MAKE = $(MAKE) MULTI=1 SCPPROGRESS=1 \
|
|
|
|
PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp"
|
2005-10-29 09:01:33 +02:00
|
|
|
|
2010-09-28 09:22:19 +02:00
|
|
|
define DROPBEAR_FIX_XAUTH
|
2010-09-01 22:42:27 +02:00
|
|
|
$(SED) 's,^#define XAUTH_COMMAND.*/xauth,#define XAUTH_COMMAND "/usr/bin/xauth,g' $(@D)/options.h
|
|
|
|
endef
|
|
|
|
|
2010-10-06 09:45:12 +02:00
|
|
|
DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_FIX_XAUTH
|
2010-09-01 22:42:27 +02:00
|
|
|
|
|
|
|
define DROPBEAR_DISABLE_REVERSE_DNS
|
|
|
|
$(SED) 's,^#define DO_HOST_LOOKUP.*,/* #define DO_HOST_LOOKUP */,' $(@D)/options.h
|
|
|
|
endef
|
2005-10-29 09:01:33 +02:00
|
|
|
|
2010-09-06 14:37:22 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DROPBEAR_DISABLE_REVERSEDNS),y)
|
2010-09-01 22:42:27 +02:00
|
|
|
DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_DISABLE_REVERSE_DNS
|
2010-09-06 14:37:22 +02:00
|
|
|
endif
|
2010-09-01 22:42:27 +02:00
|
|
|
|
|
|
|
define DROPBEAR_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -m 755 $(@D)/dropbearmulti $(TARGET_DIR)/usr/sbin/dropbear
|
|
|
|
for f in $(DROPBEAR_TARGET_BINS); do \
|
|
|
|
ln -snf ../sbin/dropbear $(TARGET_DIR)/usr/bin/$$f ; \
|
|
|
|
done
|
2009-03-11 21:32:39 +01:00
|
|
|
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
|
2010-09-01 22:42:27 +02:00
|
|
|
endef
|
2005-10-29 09:01:33 +02:00
|
|
|
|
2010-09-01 22:42:27 +02:00
|
|
|
define DROPBEAR_UNINSTALL_TARGET_CMDS
|
2009-03-11 21:32:39 +01:00
|
|
|
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
|
2010-09-01 22:42:27 +02:00
|
|
|
endef
|
2005-10-29 09:01:33 +02:00
|
|
|
|
2010-09-01 22:42:27 +02:00
|
|
|
$(eval $(call AUTOTARGETS,package,dropbear))
|