config FREETZ_PACKAGE_SAMBA
	bool "Samba suite"
	default n
	select FREETZ_PACKAGE_SAMBA_SMBD if (!FREETZ_PACKAGE_SAMBA_SMBCLIENT && !FREETZ_PACKAGE_SAMBA_NMBLOOKUP)
	select FREETZ_BUSYBOX_READLINK

choice
	depends on FREETZ_PACKAGE_SAMBA
	prompt "version"
	default FREETZ_SAMBA_VERSION_3_0

	config FREETZ_SAMBA_VERSION_3_0
		bool "samba 3.0.37"
		help
			The binary with smbd and nmbd needs about 1033 kB (uncompressed).

	config FREETZ_SAMBA_VERSION_3_6
		bool "samba 3.6.25"
		help
			The binary with smbd and nmbd needs about 1682 kB (uncompressed).
endchoice

config FREETZ_PACKAGE_SAMBA_SMBD
	bool "smbd (file sharing server)"
	depends on FREETZ_PACKAGE_SAMBA
	select FREETZ_LIB_libcrypt
	select FREETZ_LIB_libdl
	select FREETZ_LIB_libpopt
	select FREETZ_LIB_libz        if FREETZ_SAMBA_VERSION_3_6
	select FREETZ_LIB_libiconv    if FREETZ_TARGET_UCLIBC_0_9_28
	default y
	help
		Provides the Samba SMB server (smbd). This is what you need if you would
		like your router's file system to be accessible from Windows or from
		other UNIX/Linux machines via smbmount, smbclient, cifsmount or similar.

config FREETZ_PACKAGE_SAMBA_NMBD
	bool "nmbd (NetBIOS name server)"
	depends on FREETZ_PACKAGE_SAMBA
	select FREETZ_PACKAGE_SAMBA_SMBD
	default n
	help
		Provides the Samba NetBIOS name server (nmbd). This is what you need
		if you would like to see your router in the network neighbourhood or
		act as a master browser.

config FREETZ_PACKAGE_SAMBA_SMBCLIENT
	bool "smbclient"
	depends on FREETZ_PACKAGE_SAMBA
	select FREETZ_LIB_libcrypt    if FREETZ_SAMBA_VERSION_3_0
	select FREETZ_LIB_libdl
	select FREETZ_LIB_libpopt
	select FREETZ_LIB_libreadline
	select FREETZ_LIB_libncurses
	select FREETZ_LIB_libz        if FREETZ_SAMBA_VERSION_3_6
	select FREETZ_LIB_libiconv    if FREETZ_TARGET_UCLIBC_0_9_28
	default n
	help
		ftp-like client to access SMB/CIFS resources on servers.

config FREETZ_PACKAGE_SAMBA_NMBLOOKUP
	bool "nmblookup"
	depends on FREETZ_PACKAGE_SAMBA
	select FREETZ_LIB_libcrypt    if FREETZ_SAMBA_VERSION_3_0
	select FREETZ_LIB_libdl
	select FREETZ_LIB_libpopt
	select FREETZ_LIB_libiconv    if FREETZ_TARGET_UCLIBC_0_9_28
	default n
	help
		NetBIOS over TCP/IP client used to lookup NetBIOS names.

config FREETZ_PACKAGE_SAMBA_MAX_DEBUG_LEVEL
	int "Maximum level of compiled-in debug messages"
	depends on FREETZ_PACKAGE_SAMBA
	default -1
	help
		1000 - include all debug messages
		   2 - include only important messages
		  -1 - disable debug messages completely

		 Note: this option affects the size of the Samba binary.
		       The higher the debug level, the more debug output
		       is generated and the bigger the binary is.
