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.

80 lines
3.6 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.7.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://lftp.yar.ru/ftp \
  13. http://lftp.yar.ru/ftp/old \
  14. http://lftp.cybermirror.org \
  15. http://lftp.cybermirror.org/old
  16. PKG_MD5SUM:=23deda16014412c802f095fbaa0bebee
  17. PKG_LICENSE:=GPL-3.0+
  18. PKG_LICENSE_FILES:=COPYING
  19. include $(INCLUDE_DIR)/uclibc++.mk
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/lftp
  22. SUBMENU:=File Transfer
  23. SECTION:=net
  24. CATEGORY:=Network
  25. DEPENDS:=+libncurses +libopenssl +libreadline $(CXX_DEPENDS) +libexpat +zlib
  26. TITLE:=a sophisticated file transfer program with command line interface.
  27. MAINTAINER:=Federico Di Marco <fededim@gmail.com>
  28. URL:=http://lftp.yar.ru/
  29. endef
  30. define Package/lftp/description
  31. 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.
  32. 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.
  33. If you exit lftp when some jobs are not finished yet, lftp will move itself to nohup mode in background. The same happens when you have a real modem hangup or when you close an xterm.
  34. 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 (&&, ||).
  35. 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.
  36. There is command `at' to launch a job at specified time in current context, command `queue' to queue commands for sequential execution for current server, and much more.
  37. LFTP supports IPv6 for both FTP and HTTP protocols. For FTP protocol it uses method described in RFC2428.
  38. Other low level stuff supported: ftp proxy, http proxy, ftp over http, opie/skey, fxp transfers, socks.
  39. LFTP supports secure versions of the protocols FTP and HTTP: FTPS (explicit and implicit) and HTTPS. LFTP needs to be linked with an SSL library to support them. GNU TLS and OpenSSL are both supported as SSL backend.
  40. endef
  41. CONFIGURE_ARGS += \
  42. --without-libiconv-prefix \
  43. --without-libintl-prefix \
  44. --without-gnutls \
  45. --without-libidn \
  46. --without-libresolv \
  47. --with-openssl="$(STAGING_DIR)/usr" \
  48. --with-readline="$(STAGING_DIR)/usr" \
  49. --with-zlib="$(STAGING_DIR)/usr" \
  50. --disable-static
  51. #CONFIGURE_VARS += \
  52. # LIBS="-lz -lutil -lcurses -ldl" \
  53. # i_cv_posix_fallocate_works=no
  54. #MAKE_VARS += \
  55. # LD="$(TARGET_CXX)"
  56. define Package/lftp/install
  57. $(INSTALL_DIR) $(1)/usr/bin
  58. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/lftp $(1)/usr/bin/
  59. endef
  60. $(eval $(call BuildPackage,lftp))