|
@@ -0,0 +1,69 @@
|
|
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
|
+
|
|
8
|
+include $(TOPDIR)/rules.mk
|
|
9
|
+
|
|
10
|
+PKG_NAME:=lftp
|
|
11
|
+PKG_VERSION:=4.5.5
|
|
12
|
+PKG_RELEASE:=1
|
|
13
|
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
14
|
+PKG_SOURCE_URL:=http://lftp.yar.ru/ftp \ http://lftp.cybermirror.org \ http://lftp.cybermirror.org/old
|
|
15
|
+PKG_MD5SUM:=e58fc886e3d7c6d994de5ce51de46087
|
|
16
|
+
|
|
17
|
+include $(INCLUDE_DIR)/uclibc++.mk
|
|
18
|
+include $(INCLUDE_DIR)/package.mk
|
|
19
|
+
|
|
20
|
+define Package/lftp
|
|
21
|
+ SUBMENU:=File Transfer
|
|
22
|
+ SECTION:=net
|
|
23
|
+ CATEGORY:=Network
|
|
24
|
+ DEPENDS:=+libncurses +libopenssl +libreadline $(CXX_DEPENDS) +libexpat
|
|
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
|
+
|
|
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
|
+
|
|
34
|
+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.
|
|
35
|
+
|
|
36
|
+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 (&&, ||).
|
|
37
|
+
|
|
38
|
+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.
|
|
39
|
+
|
|
40
|
+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.
|
|
41
|
+
|
|
42
|
+LFTP supports IPv6 for both FTP and HTTP protocols. For FTP protocol it uses method described in RFC2428.
|
|
43
|
+
|
|
44
|
+Other low level stuff supported: ftp proxy, http proxy, ftp over http, opie/skey, fxp transfers, socks.
|
|
45
|
+
|
|
46
|
+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.
|
|
47
|
+endef
|
|
48
|
+
|
|
49
|
+CONFIGURE_ARGS += \
|
|
50
|
+ --without-libiconv-prefix \
|
|
51
|
+ --without-libintl-prefix \
|
|
52
|
+ --without-gnutls \
|
|
53
|
+ --without-libresolv \
|
|
54
|
+ --with-openssl="$(STAGING_DIR)/usr" \
|
|
55
|
+ --disable-static
|
|
56
|
+
|
|
57
|
+#CONFIGURE_VARS += \
|
|
58
|
+# LIBS="-lz -lutil -lcurses -ldl" \
|
|
59
|
+# i_cv_posix_fallocate_works=no
|
|
60
|
+
|
|
61
|
+#MAKE_VARS += \
|
|
62
|
+# LD="$(TARGET_CXX)"
|
|
63
|
+
|
|
64
|
+define Package/lftp/install
|
|
65
|
+ $(INSTALL_DIR) $(1)/usr/bin
|
|
66
|
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/lftp $(1)/usr/bin/
|
|
67
|
+endef
|
|
68
|
+
|
|
69
|
+$(eval $(call BuildPackage,lftp))
|