comment "Dropbear (not available, needs replace kernel for pty-support)"
	depends on !FREETZ_REPLACE_KERNEL && !FREETZ_AVM_HAS_PTY_SUPPORT && !FREETZ_SHOW_ADVANCED

config FREETZ_PACKAGE_DROPBEAR
	bool "Dropbear 2020.81"
	depends on FREETZ_REPLACE_KERNEL || FREETZ_AVM_HAS_PTY_SUPPORT || FREETZ_SHOW_ADVANCED
	select FREETZ_LIB_libutil
	default n
	help
		Dropbear SSH server and client

		Dropbear is a relatively small SSH 2 server and client. It runs on a
		variety of POSIX-based platforms. Dropbear is open source software,
		distributed under a MIT-style license. Dropbear is particularly useful
		for "embedded"-type Linux (or other Unix) systems, such as wireless
		routers.

		Features
		  - A small memory footprint suitable for memory-constrained
		    environments - Dropbear can compile to a 110kB statically linked
		    binary with uClibc on x86 (only minimal options selected)
		  - Dropbear server implements X11 forwarding, and authentication-agent
		    forwarding for OpenSSH clients
		  - Can run from inetd or standalone
		  - Compatible with OpenSSH ~/.ssh/authorized_keys public key
		    authentication
		  - The server, client, keygen, and key converter can be compiled into a
		    single binary (a la busybox)
		  - Features can easily be disabled when compiling to save space
		    TCP forwarding support

comment "Hint: Select replace kernel if need pty-support"
	depends on !FREETZ_REPLACE_KERNEL && !FREETZ_AVM_HAS_PTY_SUPPORT && FREETZ_SHOW_ADVANCED && FREETZ_PACKAGE_DROPBEAR

config FREETZ_PACKAGE_DROPBEAR_SFTP_SERVER
	bool "Add SFTP support"
	depends on FREETZ_PACKAGE_DROPBEAR
	select FREETZ_PACKAGE_OPENSSH_sftp_server
	default n
	help
		This option adds SFTP support to dropbear by using
		OpenSSH's SFTP server.

config FREETZ_PACKAGE_DROPBEAR_SERVER_ONLY
	bool "Without scp & ssh client"
	depends on FREETZ_PACKAGE_DROPBEAR
	default n

config FREETZ_PACKAGE_DROPBEAR_WITH_ZLIB
	bool "With zlib Compression"
	depends on FREETZ_PACKAGE_DROPBEAR
	select FREETZ_LIB_libz
	default n
	help
		ZLIB Compression for SSH Traffic

config FREETZ_PACKAGE_DROPBEAR_DISABLE_HOST_LOOKUP
	bool "Disable DNS reverse-lookup of the client"
	depends on FREETZ_PACKAGE_DROPBEAR
	default y
	help
		With this option, a connection between the client and
		the server is established faster.

		Without this option selected, the ssh server performs a DNS
		reverse lookup of the client's IP address.

config FREETZ_PACKAGE_DROPBEAR_UTMP
	bool "Enable utmp support"
	depends on FREETZ_PACKAGE_DROPBEAR
	select FREETZ_BUSYBOX_FEATURE_UTMP
	select FREETZ_BUSYBOX_WHO
	default n
	help
		With this option enabled, the logins are logged to /var/run/utmp.

config FREETZ_PACKAGE_DROPBEAR_WTMP
	bool "Enable wtmp support"
	depends on FREETZ_PACKAGE_DROPBEAR
	select FREETZ_BUSYBOX_FEATURE_UTMP
	select FREETZ_BUSYBOX_FEATURE_WTMP
	select FREETZ_BUSYBOX_LAST
	default n
	help
		With this option enabled, the logins are logged to /var/log/wtmp.

config FREETZ_PACKAGE_DROPBEAR_STATIC
	bool "Build static binary"
	depends on FREETZ_PACKAGE_DROPBEAR
	default n
	help
		With this option enabled, the resulting binary will be independ from libraries.
		Usually used to build a binary for boxes without "freetz".
		Newer firmwares (using uClibc >= 0.9.30) should work with dynamically linked
		binary, if "non-freetz" is selected.

config FREETZ_PACKAGE_DROPBEAR_NONFREETZ
	bool "Build for non-freetz box"
	depends on FREETZ_PACKAGE_DROPBEAR
	select FREETZ_PACKAGE_DROPBEAR_STATIC if FREETZ_AVM_UCLIBC_0_9_28 || FREETZ_AVM_UCLIBC_0_9_29
	default n
	help
		With this option enabled, the resulting binary should also work
		on non freetz boxes.
		(Fix for missing devfs and changes to default paths)
		Will select "static" on firmwares not supporting dynamically linked freetz binaries.
