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, 2019 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 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 freedesktop)
33 #:use-module (gnu packages gettext)
34 #:use-module (gnu packages glib)
35 #:use-module (gnu packages gtk)
36 #:use-module (gnu packages libidn)
37 #:use-module (gnu packages ncurses)
38 #:use-module (gnu packages nettle)
39 #:use-module (gnu packages pkg-config)
40 #:use-module (gnu packages readline)
41 #:use-module (gnu packages sqlite)
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 "0qks22357xv9y6ripmf5j2n5svh8j5z0yniphfk89sjwkqg2gg2f"))))
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 ") ""))
80 (list (string-append "--with-readline="
81 (assoc-ref %build-inputs "readline")))))
82 (home-page "https://lftp.tech/")
83 (synopsis "Command-line file transfer program")
85 "LFTP is a sophisticated FTP/HTTP client, and a file transfer program
86 supporting a number of network protocols. Like Bash, it has job control and
87 uses the Readline library for input. It has bookmarks, a built-in mirror
88 command, and can transfer several files in parallel. It was designed with
89 reliability in mind.")
98 (uri (string-append "ftp://ftp.ncftp.com/ncftp/ncftp-"
99 version "-src.tar.xz"))
102 "1389657cwgw5a3kljnqmhvfh4vr2gcr71dwz1mlhf22xq23hc82z"))
103 (modules '((guix build utils)))
106 ;; Use the right 'rm' and 'ls'.
107 (substitute* (cons "configure"
109 "^(Makefile\\.in|.*\\.sh)$"))
110 (("/bin/(rm|ls)" _ command)
113 ;; This is free software, avoid any confusion.
114 (substitute* (find-files "." "\\.c$")
115 (("a freeware program")
118 (build-system gnu-build-system)
121 (modify-phases %standard-phases
123 (lambda* (#:key outputs #:allow-other-keys)
124 ;; This is an old 'configure' script that doesn't
125 ;; understand variables passed as arguments.
126 (let ((out (assoc-ref outputs "out")))
127 (setenv "CONFIG_SHELL" (which "sh"))
128 (setenv "SHELL" (which "sh"))
129 (invoke "./configure"
130 (string-append "--prefix=" out))))))
131 #:tests? #f)) ;there are no tests
132 (inputs `(("ncurses" ,ncurses)))
133 (home-page "http://www.ncftp.com/ncftp/")
134 (synopsis "Command-line File Transfer Protocol (FTP) client")
136 "NcFTP Client (or just NcFTP) is a set of command-line programs to access
137 File Transfer Protocol (FTP) servers. This includes @code{ncftp}, an interactive
138 FTP browser, as well as non-interactive commands such as @code{ncftpput} and
140 (license clarified-artistic)))
151 (string-append "mirror://sourceforge/weex/weex/"
152 "/weex_" version ".tar.gz"))
155 "1ir761hjncr1bamaqcw9j7x57xi3s9jax3223bxwbq30a0vsw1pd"))))
156 (build-system gnu-build-system)
158 `(("automake" ,automake)
159 ("autoconf" ,autoconf)
160 ("gettext" ,gettext-minimal)))
161 (home-page "http://weex.sourceforge.net/")
162 (synopsis "Non-interactive client for FTP synchronization")
164 "Weex is a utility designed to automate the task of remotely
165 maintaining a web page or other FTP archive. It synchronizes a set of
166 local files to a remote server by performing uploads and remote deletes
170 (define-public libfilezilla
172 (name "libfilezilla")
177 (uri (string-append "https://download.filezilla-project.org/"
178 "libfilezilla/libfilezilla-" version ".tar.bz2"))
181 "17zlhw5b1a7jzh50cbpy2is3sps5lnzch5yf9qm7mwrviw9c8j10"))))
182 (build-system gnu-build-system)
184 `(("cppunit" ,cppunit)
185 ("pkg-config" ,pkg-config)))
187 `(("nettle" ,nettle)))
188 (home-page "https://lib.filezilla-project.org")
189 (synopsis "Cross-platform C++ library used by Filezilla client")
191 "This package provides some basic functionality to build high-performing,
192 platform-independent programs.
194 Some of the highlights include:
197 A type-safe, multi-threaded event system that's simple to use yet efficient.
199 Timers for periodic events.
201 A @code{datetime} class that not only tracks timestamp but also their accuracy,
202 which simplifies dealing with timestamps originating from different sources.
204 Simple process handling for spawning child processes with redirected input and
209 (define-public filezilla
216 (uri (string-append "https://download.filezilla-project.org/client/"
217 "FileZilla_" version "_src.tar.bz2"))
219 (base32 "05zhvzvzkbns0cdxmlswvasfa6031y22dhfj9y5p85gi654f4fy2"))))
220 (build-system gnu-build-system)
222 ;; Don't let filezilla phone home to check for updates.
223 '(#:configure-flags '("--disable-autoupdatecheck")))
225 `(("gettext" ,gettext-minimal)
226 ("pkg-config" ,pkg-config)
227 ("xdg-utils" ,xdg-utils)))
232 ("libfilezilla" ,libfilezilla)
237 ("wxwidgets" ,wxwidgets)))
238 (home-page "https://filezilla-project.org")
239 (synopsis "Full-featured graphical FTP/FTPS/SFTP client")
241 "Filezilla client supports FTP, FTP over SSL/TLS (FTPS),
242 SSH File Transfer Protocol (SFTP), HTTP/1.1, SOCKS5, FTP-Proxy, IPv6
243 and others features such as bookmarks, drag and drop, filename filters,
244 directory comparison and more.")
246 (properties '((upstream-name . "FileZilla")))))
248 (define-public vsftpd
254 (uri (string-append "https://security.appspot.com/downloads/"
255 name "-" version ".tar.gz"))
258 "1xsyjn68k3fgm2incpb3lz2nikffl9by2safp994i272wvv2nkcx"))))
259 (build-system gnu-build-system)
261 `(#:make-flags '("LDFLAGS=-lcrypt")
262 #:tests? #f ; No tests exist.
264 (modify-phases %standard-phases
265 (add-after 'unpack 'patch-installation-directory
266 (lambda* (#:key outputs #:allow-other-keys)
267 (substitute* "Makefile"
268 (("/usr") (assoc-ref outputs "out")))
270 (add-before 'install 'mkdir
271 (lambda* (#:key outputs #:allow-other-keys)
272 (let ((out (assoc-ref outputs "out")))
274 (mkdir (string-append out "/sbin"))
275 (mkdir (string-append out "/man"))
276 (mkdir (string-append out "/man/man5"))
277 (mkdir (string-append out "/man/man8"))
279 (delete 'configure))))
280 (synopsis "vsftpd FTP daemon")
281 (description "@command{vsftpd} is a daemon that listens on a TCP socket
282 for clients and gives them access to local files via File Transfer
284 (home-page "https://security.appspot.com/vsftpd.html")