1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015, 2018 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
4 ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2016, 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
6 ;;; Copyright © 2017 Rene Saavedra <rennes@openmailbox.org>
8 ;;; This file is part of GNU Guix.
10 ;;; GNU Guix is free software; you can redistribute it and/or modify it
11 ;;; under the terms of the GNU General Public License as published by
12 ;;; the Free Software Foundation; either version 3 of the License, or (at
13 ;;; your option) any later version.
15 ;;; GNU Guix is distributed in the hope that it will be useful, but
16 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;;; GNU General Public License for more details.
20 ;;; You should have received a copy of the GNU General Public License
21 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23 (define-module (gnu packages ftp)
24 #:use-module ((guix licenses) #:select (gpl2+ gpl3+ clarified-artistic))
25 #:use-module (guix build-system gnu)
26 #:use-module (guix download)
27 #:use-module (guix packages)
28 #:use-module (gnu packages)
29 #:use-module (gnu packages autotools)
30 #:use-module (gnu packages check)
31 #:use-module (gnu packages compression)
32 #:use-module (gnu packages databases)
33 #:use-module (gnu packages freedesktop)
34 #:use-module (gnu packages gettext)
35 #:use-module (gnu packages glib)
36 #:use-module (gnu packages gtk)
37 #:use-module (gnu packages libidn)
38 #:use-module (gnu packages ncurses)
39 #:use-module (gnu packages nettle)
40 #:use-module (gnu packages pkg-config)
41 #:use-module (gnu packages readline)
42 #:use-module (gnu packages tls)
43 #:use-module (gnu packages wxwidgets)
44 #:use-module (gnu packages xml))
52 ;; See https://lftp.tech/get.html for mirrors.
53 (uri (list (string-append "https://lftp.tech/ftp/lftp-"
55 (string-append "https://lftp.tech/ftp/old/lftp-"
57 (string-append "ftp://ftp.st.ryukoku.ac.jp/pub/network/"
58 "ftp/lftp/lftp-" version ".tar.xz")))
61 "12y77jlfs4x4zvcah92mw2h2sb4j0bvbaxkh3wwsm8gs392ywyny"))))
62 (build-system gnu-build-system)
64 `(("pkg-config" ,pkg-config)))
67 ("readline" ,readline)
71 (modify-phases %standard-phases
72 ;; Disable tests that require network access, which is most of them.
73 (add-before 'check 'disable-impure-tests
75 (substitute* "tests/Makefile"
76 (("(ftp-cls-l|ftp-list|http-get)\\$\\(EXEEXT\\)") "")
77 (("lftp-https-get ") "")))))
79 (list (string-append "--with-readline="
80 (assoc-ref %build-inputs "readline")))))
81 (home-page "https://lftp.tech/")
82 (synopsis "Command-line file transfer program")
84 "LFTP is a sophisticated FTP/HTTP client, and a file transfer program
85 supporting a number of network protocols. Like Bash, it has job control and
86 uses the Readline library for input. It has bookmarks, a built-in mirror
87 command, and can transfer several files in parallel. It was designed with
88 reliability in mind.")
97 (uri (string-append "ftp://ftp.ncftp.com/ncftp/ncftp-"
98 version "-src.tar.xz"))
101 "1389657cwgw5a3kljnqmhvfh4vr2gcr71dwz1mlhf22xq23hc82z"))
102 (modules '((guix build utils)))
105 ;; Use the right 'rm' and 'ls'.
106 (substitute* (cons "configure"
108 "^(Makefile\\.in|.*\\.sh)$"))
109 (("/bin/(rm|ls)" _ command)
112 ;; This is free software, avoid any confusion.
113 (substitute* (find-files "." "\\.c$")
114 (("a freeware program")
117 (build-system gnu-build-system)
120 (modify-phases %standard-phases
122 (lambda* (#:key outputs #:allow-other-keys)
123 ;; This is an old 'configure' script that doesn't
124 ;; understand variables passed as arguments.
125 (let ((out (assoc-ref outputs "out")))
126 (setenv "CONFIG_SHELL" (which "sh"))
127 (setenv "SHELL" (which "sh"))
128 (zero? (system* "./configure"
129 (string-append "--prefix=" out)))))))
130 #:tests? #f)) ;there are no tests
131 (inputs `(("ncurses" ,ncurses)))
132 (home-page "http://www.ncftp.com/ncftp/")
133 (synopsis "Command-line File Transfer Protocol (FTP) client")
135 "NcFTP Client (or just NcFTP) is a set of command-line programs to access
136 File Transfer Protocol (FTP) servers. This includes 'ncftp', an interactive
137 FTP browser, as well as non-interactive commands such as 'ncftpput' and
139 (license clarified-artistic)))
150 (string-append "mirror://sourceforge/weex/weex/"
151 "/weex_" version ".tar.gz"))
154 "1ir761hjncr1bamaqcw9j7x57xi3s9jax3223bxwbq30a0vsw1pd"))))
155 (build-system gnu-build-system)
157 `(("automake" ,automake)
158 ("autoconf" ,autoconf)
159 ("gettext" ,gettext-minimal)))
160 (home-page "http://weex.sourceforge.net/")
161 (synopsis "Non-interactive client for FTP synchronization")
163 "Weex is a utility designed to automate the task of remotely
164 maintaining a web page or other FTP archive. It synchronizes a set of
165 local files to a remote server by performing uploads and remote deletes
169 (define-public libfilezilla
171 (name "libfilezilla")
176 (uri (string-append "http://download.filezilla-project.org/"
177 name "/" name "-" version ".tar.bz2"))
180 "1v461hwdk74whp89s490dj1z18gfqf9bz9140m5f11rsvrpid33p"))))
181 (build-system gnu-build-system)
183 `(("cppunit" ,cppunit)
184 ("pkg-config" ,pkg-config)))
185 (home-page "https://lib.filezilla-project.org")
186 (synopsis "Cross-platform C++ library used by Filezilla client")
188 "This package provides some basic functionality to build high-performing,
189 platform-independent programs.
191 Some of the highlights include:
194 A type-safe, multi-threaded event system that's simple to use yet efficient.
196 Timers for periodic events.
198 A @code{datetime} class that not only tracks timestamp but also their accuracy,
199 which simplifies dealing with timestamps originating from different sources.
201 Simple process handling for spawning child processes with redirected input and
206 (define-public filezilla
213 (uri (string-append "https://sourceforge.net/projects/" name
214 "/files/FileZilla_Client/" version
215 "/FileZilla_" version "_src" ".tar.bz2"))
218 "1rfysb8dil35a7bzj2kw0mzzkys39d7yn6ipsbk8l6rkwfvnii8l"))))
219 (build-system gnu-build-system)
221 ;; Don't let filezilla phone home to check for updates.
222 '(#:configure-flags '("--disable-autoupdatecheck")))
224 `(("gettext" ,gettext-minimal)
225 ("pkg-config" ,pkg-config)
227 ("xdg-utils" ,xdg-utils)))
232 ("libfilezilla" ,libfilezilla)
236 ("wxwidgets" ,wxwidgets)))
237 (home-page "https://filezilla-project.org")
238 (synopsis "Full-featured graphical FTP/FTPS/SFTP client")
240 "Filezilla client supports FTP, FTP over SSL/TLS (FTPS),
241 SSH File Transfer Protocol (SFTP), HTTP/1.1, SOCKS5, FTP-Proxy, IPv6
242 and others features such as bookmarks, drag and drop, filename filters,
243 directory comparison and more.")
245 (properties '((upstream-name . "FileZilla")))))