mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@26c91a9
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
DROPBEAR_VERSION = 2019.78
|
||||
DROPBEAR_VERSION = 2020.80
|
||||
DROPBEAR_SITE = https://matt.ucc.asn.au/dropbear/releases
|
||||
DROPBEAR_SOURCE = dropbear-$(DROPBEAR_VERSION).tar.bz2
|
||||
DROPBEAR_LICENSE = MIT, BSD-2-Clause, BSD-3-Clause
|
||||
DROPBEAR_LICENSE = MIT, BSD-2-Clause, Public domain
|
||||
DROPBEAR_LICENSE_FILES = LICENSE
|
||||
DROPBEAR_TARGET_BINS = dropbearkey dropbearconvert scp
|
||||
DROPBEAR_PROGRAMS = dropbear $(DROPBEAR_TARGET_BINS)
|
||||
@@ -56,43 +56,51 @@ endef
|
||||
DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_SVR_PASSWORD_AUTH
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DROPBEAR_LEGACY_CRYPTO),y)
|
||||
define DROPBEAR_ENABLE_LEGACY_CRYPTO
|
||||
echo '#define DROPBEAR_3DES 1' >> $(@D)/localoptions.h
|
||||
echo '#define DROPBEAR_ENABLE_CBC_MODE 1' >> $(@D)/localoptions.h
|
||||
echo '#define DROPBEAR_SHA1_96_HMAC 1' >> $(@D)/localoptions.h
|
||||
endef
|
||||
DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_ENABLE_LEGACY_CRYPTO
|
||||
else
|
||||
define DROPBEAR_DISABLE_LEGACY_CRYPTO
|
||||
echo '#define DROPBEAR_3DES 0' >> $(@D)/localoptions.h
|
||||
echo '#define DROPBEAR_ENABLE_CBC_MODE 0' >> $(@D)/localoptions.h
|
||||
echo '#define DROPBEAR_SHA1_96_HMAC 0' >> $(@D)/localoptions.h
|
||||
echo '#define DROPBEAR_DSS 0' >> $(@D)/localoptions.h
|
||||
echo '#define DROPBEAR_DH_GROUP1 0' >> $(@D)/localoptions.h
|
||||
endef
|
||||
ifneq ($(BR2_PACKAGE_DROPBEAR_LEGACY_CRYPTO),y)
|
||||
DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_DISABLE_LEGACY_CRYPTO
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DROPBEAR_DISABLE_REVERSEDNS),)
|
||||
define DROPBEAR_ENABLE_REVERSE_DNS
|
||||
echo '#define DO_HOST_LOOKUP 1' >> $(@D)/localoptions.h
|
||||
endef
|
||||
DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_ENABLE_REVERSE_DNS
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DROPBEAR_SMALL),y)
|
||||
DROPBEAR_LICENSE += , Unlicense, WTFPL
|
||||
DROPBEAR_LICENSE_FILES += libtommath/LICENSE libtomcrypt/LICENSE
|
||||
DROPBEAR_CONF_OPTS += --disable-zlib --enable-bundled-libtom
|
||||
else
|
||||
define DROPBEAR_BUILD_FEATURED
|
||||
echo '#define DROPBEAR_SMALL_CODE 0' >> $(@D)/localoptions.h
|
||||
echo '#define DROPBEAR_TWOFISH128 1' >> $(@D)/localoptions.h
|
||||
echo '#define DROPBEAR_TWOFISH256 1' >> $(@D)/localoptions.h
|
||||
endef
|
||||
|
||||
define DROPBEAR_DISABLE_STANDALONE
|
||||
echo '#define NON_INETD_MODE 0' >> $(@D)/localoptions.h
|
||||
endef
|
||||
DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_BUILD_FEATURED
|
||||
DROPBEAR_DEPENDENCIES += zlib libtomcrypt
|
||||
DROPBEAR_CONF_OPTS += --disable-bundled-libtom
|
||||
endif
|
||||
|
||||
define DROPBEAR_CUSTOM_PATH
|
||||
echo '#define DEFAULT_PATH $(BR2_SYSTEM_DEFAULT_PATH)' >>$(@D)/localoptions.h
|
||||
endef
|
||||
|
||||
DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_CUSTOM_PATH
|
||||
|
||||
define DROPBEAR_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 644 package/dropbear/dropbear.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/dropbear.service
|
||||
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
||||
ln -fs ../../../../usr/lib/systemd/system/dropbear.service \
|
||||
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/dropbear.service
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_USE_MMU),y)
|
||||
@@ -101,21 +109,12 @@ define DROPBEAR_INSTALL_INIT_SYSV
|
||||
$(TARGET_DIR)/etc/init.d/S50dropbear
|
||||
endef
|
||||
else
|
||||
define DROPBEAR_DISABLE_STANDALONE
|
||||
echo '#define NON_INETD_MODE 0' >> $(@D)/localoptions.h
|
||||
endef
|
||||
DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_DISABLE_STANDALONE
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DROPBEAR_DISABLE_REVERSEDNS),)
|
||||
DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_ENABLE_REVERSE_DNS
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DROPBEAR_SMALL),y)
|
||||
DROPBEAR_CONF_OPTS += --disable-zlib --enable-bundled-libtom
|
||||
else
|
||||
DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_BUILD_FEATURED
|
||||
DROPBEAR_DEPENDENCIES += zlib libtomcrypt
|
||||
DROPBEAR_CONF_OPTS += --disable-bundled-libtom
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_PACKAGE_DROPBEAR_WTMP),y)
|
||||
DROPBEAR_CONF_OPTS += --disable-wtmp
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user