Import buildroot 2016.02.01
This commit is contained in:
66
firmware/buildroot/package/lftp/Config.in
Normal file
66
firmware/buildroot/package/lftp/Config.in
Normal file
@@ -0,0 +1,66 @@
|
||||
config BR2_PACKAGE_LFTP
|
||||
bool "lftp"
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_USE_MMU # fork()
|
||||
select BR2_PACKAGE_READLINE
|
||||
select BR2_PACKAGE_ZLIB
|
||||
select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_GNUTLS
|
||||
help
|
||||
LFTP is a sophisticated ftp/http client, and a file transfer program
|
||||
supporting a number of network protocols. Like BASH, it has job
|
||||
control and uses the readline library for input. It has bookmarks,
|
||||
a built-in mirror command, and can transfer several files in parallel.
|
||||
It was designed with reliability in mind.
|
||||
|
||||
http://lftp.yar.ru/
|
||||
|
||||
if BR2_PACKAGE_LFTP
|
||||
|
||||
comment "Commands"
|
||||
|
||||
config BR2_PACKAGE_LFTP_CMD_MIRROR
|
||||
bool "Mirror command"
|
||||
default y
|
||||
help
|
||||
Enable mirror command
|
||||
|
||||
config BR2_PACKAGE_LFTP_CMD_SLEEP
|
||||
bool "Sleep command"
|
||||
default y
|
||||
help
|
||||
Enable sleep command
|
||||
|
||||
config BR2_PACKAGE_LFTP_CMD_TORRENT
|
||||
bool "Torrent command"
|
||||
help
|
||||
Enable torrent command
|
||||
|
||||
comment "Protocols"
|
||||
|
||||
config BR2_PACKAGE_LFTP_PROTO_FISH
|
||||
bool "FISH protocol"
|
||||
help
|
||||
Enable FISH protocol
|
||||
|
||||
config BR2_PACKAGE_LFTP_PROTO_FTP
|
||||
bool "FTP protocol"
|
||||
default y
|
||||
help
|
||||
Enable FTP protocol
|
||||
|
||||
config BR2_PACKAGE_LFTP_PROTO_HTTP
|
||||
bool "HTTP protocol"
|
||||
help
|
||||
Enable HTTP protocol
|
||||
|
||||
config BR2_PACKAGE_LFTP_PROTO_SFTP
|
||||
bool "SFTP protocol"
|
||||
help
|
||||
Enable SFTP protocol
|
||||
|
||||
endif # BR2_PACKAGE_LFTP
|
||||
|
||||
comment "lftp requires a toolchain w/ C++, wchar"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !(BR2_USE_WCHAR && BR2_INSTALL_LIBSTDCPP)
|
||||
2
firmware/buildroot/package/lftp/lftp.hash
Normal file
2
firmware/buildroot/package/lftp/lftp.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 1e7cb674c83ace48172263f86847ed04bb6ab2f24116b11a8505f70a15e8805c lftp-4.6.4.tar.xz
|
||||
58
firmware/buildroot/package/lftp/lftp.mk
Normal file
58
firmware/buildroot/package/lftp/lftp.mk
Normal file
@@ -0,0 +1,58 @@
|
||||
################################################################################
|
||||
#
|
||||
# lftp
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LFTP_VERSION = 4.6.4
|
||||
LFTP_SOURCE = lftp-$(LFTP_VERSION).tar.xz
|
||||
LFTP_SITE = http://lftp.yar.ru/ftp
|
||||
LFTP_LICENSE = GPLv3+
|
||||
LFTP_LICENSE_FILES = COPYING
|
||||
# Needed so that our libtool patch applies properly
|
||||
LFTP_AUTORECONF = YES
|
||||
LFTP_DEPENDENCIES = readline zlib host-pkgconf
|
||||
|
||||
ifneq ($(BR2_STATIC_LIBS),y)
|
||||
LFTP_CONF_OPTS += --with-modules
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
||||
LFTP_DEPENDENCIES += gnutls
|
||||
LFTP_CONF_OPTS += --with-gnutls
|
||||
else
|
||||
LFTP_CONF_OPTS += --without-gnutls
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
LFTP_DEPENDENCIES += openssl
|
||||
LFTP_CONF_OPTS += --with-openssl
|
||||
else
|
||||
LFTP_CONF_OPTS += --without-openssl
|
||||
endif
|
||||
|
||||
# Remove /usr/share/lftp
|
||||
define LFTP_REMOVE_DATA
|
||||
$(RM) -fr $(TARGET_DIR)/usr/share/lftp
|
||||
endef
|
||||
|
||||
LFTP_POST_INSTALL_TARGET_HOOKS += LFTP_REMOVE_DATA
|
||||
|
||||
# Optional commands and protocols
|
||||
LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_CMD_MIRROR) += cmd-mirror.so
|
||||
LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_CMD_SLEEP) += cmd-sleep.so
|
||||
LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_CMD_TORRENT) += cmd-torrent.so
|
||||
LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_PROTO_FISH) += proto-fish.so
|
||||
LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_PROTO_FTP) += proto-ftp.so
|
||||
LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_PROTO_HTTP) += proto-http.so
|
||||
LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_PROTO_SFTP) += proto-sftp.so
|
||||
|
||||
define LFTP_REMOVE_MODULES
|
||||
for f in $(LFTP_MODULES_TO_REMOVE-) ; do \
|
||||
$(RM) -f $(TARGET_DIR)/usr/lib/lftp/$(LFTP_VERSION)/$$f ; \
|
||||
done
|
||||
endef
|
||||
|
||||
LFTP_POST_INSTALL_TARGET_HOOKS += LFTP_REMOVE_MODULES
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user