You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.8 KiB

  1. #
  2. # Copyright (C) 2008-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=lftp
  9. PKG_VERSION:=4.8.4
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://lftp.tech/ftp/ \
  13. https://mirror.csclub.uwaterloo.ca/gentoo-distfiles/distfiles/
  14. PKG_HASH:=4ebc271e9e5cea84a683375a0f7e91086e5dac90c5d51bb3f169f75386107a62
  15. PKG_LICENSE:=GPL-3.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:alexander_v._lukyanov:lftp
  18. include $(INCLUDE_DIR)/uclibc++.mk
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/lftp
  21. SUBMENU:=File Transfer
  22. SECTION:=net
  23. CATEGORY:=Network
  24. DEPENDS:=+libncurses +libopenssl +libreadline $(CXX_DEPENDS) +libexpat +zlib
  25. TITLE:=a sophisticated file transfer program with command line interface.
  26. MAINTAINER:=Federico Di Marco <fededim@gmail.com>
  27. URL:=http://lftp.yar.ru/
  28. endef
  29. define Package/lftp/description
  30. LFTP is a sophisticated file transfer program with command line interface. It supports FTP, HTTP, FISH, SFTP, HTTPS and FTPS protocols. GNU Readline library is used for input.
  31. Every operation in lftp is reliable, that is any non-fatal error is handled and the operation is retried automatically. So if downloading breaks, it will be restarted from the point automatically. Even if ftp server does not support REST command, lftp will try to retrieve the file from the very beginning until the file is transferred completely. This is useful for dynamic-ip machines which change their IP addresses quite often, and for sites with very bad internet connectivity.
  32. lftp has shell-like command syntax allowing you to launch several commands in parallel in background (&). It is also possible to group commands within () and execute them in background. All background jobs are executed in the same single process. You can bring a foreground job to background with ^Z (c-z) and back with command `wait' (or `fg' which is alias to `wait'). To list running jobs, use command `jobs'. Some commands allow redirecting their output (cat, ls, ...) to file or via pipe to external command. Commands can be executed conditionally based on termination status of previous command (&&, ||).
  33. lftp has builtin mirror which can download or update a whole directory tree. There is also reverse mirror (mirror -R) which uploads or updates a directory tree on server.
  34. endef
  35. CONFIGURE_ARGS += \
  36. --without-libiconv-prefix \
  37. --without-libintl-prefix \
  38. --without-gnutls \
  39. --without-libidn2 \
  40. --without-libresolv \
  41. --with-openssl="$(STAGING_DIR)/usr" \
  42. --with-readline="$(STAGING_DIR)/usr" \
  43. --with-zlib="$(STAGING_DIR)/usr" \
  44. --disable-static
  45. TARGET_CXXFLAGS+= -std=c++11
  46. define Package/lftp/install
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/lftp $(1)/usr/bin/
  49. endef
  50. $(eval $(call BuildPackage,lftp))