2014-09-14 09:15:01 +00:00
#
# Copyright (C) 2008-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := lftp
2020-08-27 23:52:12 +00:00
PKG_VERSION := 4.9.2
2020-02-15 00:18:29 +00:00
PKG_RELEASE := 1
2014-09-14 09:15:01 +00:00
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.xz
2020-02-15 00:18:29 +00:00
PKG_SOURCE_URL := https://lftp.tech/ftp/ \
2017-10-02 08:43:23 +00:00
https://mirror.csclub.uwaterloo.ca/gentoo-distfiles/distfiles/
2020-08-27 23:52:12 +00:00
PKG_HASH := c517c4f4f9c39bd415d7313088a2b1e313b2d386867fe40b7692b83a20f0670d
2014-09-14 09:15:01 +00:00
2020-02-15 00:18:29 +00:00
PKG_MAINTAINER := Federico Di Marco <fededim@gmail.com>
2019-09-02 13:15:08 +00:00
PKG_LICENSE := GPL-3.0-or-later
2014-11-25 08:11:02 +00:00
PKG_LICENSE_FILES := COPYING
2020-02-15 00:18:29 +00:00
PKG_CPE_ID := cpe:/a:lftp_project:lftp
PKG_INSTALL := 1
PKG_BUILD_PARALLEL := 1
2014-11-25 08:11:02 +00:00
2014-09-14 09:15:01 +00:00
i n c l u d e $( INCLUDE_DIR ) / u c l i b c + + . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / l f t p
SUBMENU:= File Transfer
SECTION:= net
CATEGORY:= Network
2016-09-05 17:25:17 +00:00
DEPENDS:= +libncurses +libopenssl +libreadline $( CXX_DEPENDS) +libexpat +zlib
2014-09-14 09:15:01 +00:00
TITLE:= a sophisticated file transfer program with command line interface.
2020-02-15 00:18:29 +00:00
URL:= https://lftp.yar.ru/
2014-09-14 09:15:01 +00:00
e n d e f
d e f i n e P a c k a g e / l f t p / d e s c r i p t i o n
L F T P i s a s o p h i s t i c a t e d f i l e t r a n s f e r p r o g r a m w i t h c o m m a n d l i n e i n t e r f a c e . I t s u p p o r t s F T P , H T T P , F I S H , S F T P , H T T P S a n d F T P S p r o t o c o l s . G N U R e a d l i n e l i b r a r y i s u s e d f o r i n p u t .
E v e r y o p e r a t i o n i n l f t p i s r e l i a b l e , t h a t i s a n y n o n - f a t a l e r r o r i s h a n d l e d a n d t h e o p e r a t i o n i s r e t r i e d a u t o m a t i c a l l y . S o i f d o w n l o a d i n g b r e a k s , i t w i l l b e r e s t a r t e d f r o m t h e p o i n t a u t o m a t i c a l l y . E v e n i f f t p s e r v e r d o e s n o t s u p p o r t R E S T c o m m a n d , l f t p w i l l t r y t o r e t r i e v e t h e f i l e f r o m t h e v e r y b e g i n n i n g u n t i l t h e f i l e i s t r a n s f e r r e d c o m p l e t e l y . T h i s i s u s e f u l f o r d y n a m i c - i p m a c h i n e s w h i c h c h a n g e t h e i r I P a d d r e s s e s q u i t e o f t e n , a n d f o r s i t e s w i t h v e r y b a d i n t e r n e t c o n n e c t i v i t y .
l f t p h a s s h e l l - l i k e c o m m a n d s y n t a x a l l o w i n g y o u t o l a u n c h s e v e r a l c o m m a n d s i n p a r a l l e l i n b a c k g r o u n d ( & ) . I t i s a l s o p o s s i b l e t o g r o u p c o m m a n d s w i t h i n ( ) a n d e x e c u t e t h e m i n b a c k g r o u n d . A l l b a c k g r o u n d j o b s a r e e x e c u t e d i n t h e s a m e s i n g l e p r o c e s s . Y o u c a n b r i n g a f o r e g r o u n d j o b t o b a c k g r o u n d w i t h ^ Z ( c - z ) a n d b a c k w i t h c o m m a n d ` w a i t ' (or `fg' w h i c h i s a l i a s t o ` w a i t '). To list running jobs, use command `jobs' . S o m e c o m m a n d s a l l o w r e d i r e c t i n g t h e i r o u t p u t ( c a t , l s , . . . ) t o f i l e o r v i a p i p e t o e x t e r n a l c o m m a n d . C o m m a n d s c a n b e e x e c u t e d c o n d i t i o n a l l y b a s e d o n t e r m i n a t i o n s t a t u s o f p r e v i o u s c o m m a n d ( & & , | | ) .
l f t p h a s b u i l t i n m i r r o r w h i c h c a n d o w n l o a d o r u p d a t e a w h o l e d i r e c t o r y t r e e . T h e r e i s a l s o r e v e r s e m i r r o r ( m i r r o r - R ) w h i c h u p l o a d s o r u p d a t e s a d i r e c t o r y t r e e o n s e r v e r .
e n d e f
CONFIGURE_ARGS += \
--without-libiconv-prefix \
--without-libintl-prefix \
--without-gnutls \
2018-05-05 14:40:02 +00:00
--without-libidn2 \
2014-09-14 09:15:01 +00:00
--without-libresolv \
--with-openssl= " $( STAGING_DIR) /usr " \
2016-05-27 14:32:01 +00:00
--with-readline= " $( STAGING_DIR) /usr " \
2016-04-12 23:49:25 +00:00
--with-zlib= " $( STAGING_DIR) /usr " \
2014-09-14 09:15:01 +00:00
--disable-static
d e f i n e P a c k a g e / l f t p / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
2020-02-15 00:18:29 +00:00
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/lftp $( 1) /usr/bin/
2014-09-14 09:15:01 +00:00
e n d e f
$( eval $ ( call BuildPackage ,lftp ) )