1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015, 2018, 2021, 2021 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–2021 Tobias Geerinckx-Rice <me@tobias.gr>
6 ;;; Copyright © 2017 Rene Saavedra <rennes@openmailbox.org>
7 ;;; Copyright © 2021 David Larsson <david.larsson@selfhosted.xyz>
8 ;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
9 ;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
11 ;;; This file is part of GNU Guix.
13 ;;; GNU Guix is free software; you can redistribute it and/or modify it
14 ;;; under the terms of the GNU General Public License as published by
15 ;;; the Free Software Foundation; either version 3 of the License, or (at
16 ;;; your option) any later version.
18 ;;; GNU Guix is distributed in the hope that it will be useful, but
19 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;;; GNU General Public License for more details.
23 ;;; You should have received a copy of the GNU General Public License
24 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
26 (define-module (gnu packages ftp)
27 #:use-module ((guix licenses) #:select (gpl2 gpl2+ gpl3+ clarified-artistic))
28 #:use-module (guix build-system gnu)
29 #:use-module (guix download)
30 #:use-module (guix packages)
31 #:use-module (guix utils)
32 #:use-module (gnu packages)
33 #:use-module (gnu packages autotools)
34 #:use-module (gnu packages check)
35 #:use-module (gnu packages compression)
36 #:use-module (gnu packages freedesktop)
37 #:use-module (gnu packages gettext)
38 #:use-module (gnu packages glib)
39 #:use-module (gnu packages gtk)
40 #:use-module (gnu packages libidn)
41 #:use-module (gnu packages linux)
42 #:use-module (gnu packages ncurses)
43 #:use-module (gnu packages nettle)
44 #:use-module (gnu packages pkg-config)
45 #:use-module (gnu packages readline)
46 #:use-module (gnu packages sqlite)
47 #:use-module (gnu packages tls)
48 #:use-module (gnu packages wxwidgets)
49 #:use-module (gnu packages xml))
57 ;; See https://lftp.tech/get.html for mirrors.
58 (uri (list (string-append "https://lftp.tech/ftp/lftp-"
60 (string-append "https://lftp.tech/ftp/old/lftp-"
62 (string-append "ftp://ftp.st.ryukoku.ac.jp/pub/network/"
63 "ftp/lftp/lftp-" version ".tar.xz")))
66 "03b7y0h3mf4jfq5y8zw6hv9v44z3n6i8hc1iswax96y3z7sc85y5"))))
67 (build-system gnu-build-system)
71 (list zlib readline gnutls))
74 (modify-phases %standard-phases
75 ;; Disable tests that require network access, which is most of them.
76 (add-before 'check 'disable-impure-tests
78 (substitute* "tests/Makefile"
79 (("(ftp-cls-l|ftp-list|http-get)\\$\\(EXEEXT\\)") "")
80 (("lftp-https-get ") ""))
83 (list (string-append "--with-readline="
84 (assoc-ref %build-inputs "readline")))))
85 (home-page "https://lftp.tech/")
86 (synopsis "Command-line file transfer program")
88 "LFTP is a sophisticated FTP/HTTP client, and a file transfer program
89 supporting a number of network protocols. Like Bash, it has job control and
90 uses the Readline library for input. It has bookmarks, a built-in mirror
91 command, and can transfer several files in parallel. It was designed with
92 reliability in mind.")
101 (uri (string-append "ftp://ftp.ncftp.com/ncftp/ncftp-"
102 version "-src.tar.xz"))
105 "1389657cwgw5a3kljnqmhvfh4vr2gcr71dwz1mlhf22xq23hc82z"))
108 "ncftp-reproducible.patch"))
109 (modules '((guix build utils)))
112 ;; Use the right 'rm' and 'ls'.
113 (substitute* (cons "configure"
115 "^(Makefile\\.in|.*\\.sh)$"))
116 (("/bin/(rm|ls)" _ command)
119 ;; This is free software, avoid any confusion.
120 (substitute* (find-files "." "\\.c$")
121 (("a freeware program")
125 `((release-monitoring-url . "https://www.ncftp.com/download/")))
126 (build-system gnu-build-system)
129 (modify-phases %standard-phases
131 (lambda* (#:key outputs #:allow-other-keys)
132 ;; This is an old 'configure' script that doesn't
133 ;; understand variables passed as arguments.
134 (let ((out (assoc-ref outputs "out")))
135 (setenv "CONFIG_SHELL" (which "sh"))
136 (setenv "SHELL" (which "sh"))
137 (setenv "CFLAGS" "-fcommon")
138 (invoke "./configure"
139 (string-append "--prefix=" out))))))
140 #:tests? #f)) ;there are no tests
141 (inputs (list ncurses))
142 (home-page "https://www.ncftp.com/ncftp/")
143 (synopsis "Command-line File Transfer Protocol (FTP) client")
145 "NcFTP Client (or just NcFTP) is a set of command-line programs to access
146 File Transfer Protocol (FTP) servers. This includes @code{ncftp}, an interactive
147 FTP browser, as well as non-interactive commands such as @code{ncftpput} and
149 (license clarified-artistic)))
160 (string-append "mirror://sourceforge/weex/weex/"
161 "/weex_" version ".tar.gz"))
164 "1ir761hjncr1bamaqcw9j7x57xi3s9jax3223bxwbq30a0vsw1pd"))))
165 (build-system gnu-build-system)
167 (list automake autoconf gettext-minimal))
168 (home-page "http://weex.sourceforge.net/")
169 (synopsis "Non-interactive client for FTP synchronization")
171 "Weex is a utility designed to automate the task of remotely
172 maintaining a web page or other FTP archive. It synchronizes a set of
173 local files to a remote server by performing uploads and remote deletes
177 (define-public libfilezilla
179 (name "libfilezilla")
184 (uri (string-append "https://download.filezilla-project.org/"
185 "libfilezilla/libfilezilla-" version ".tar.bz2"))
187 (base32 "1x2rixppmvdpn9m01hmh3yqzpczxbkw301hx27n5bfq0dbnx9aar"))))
188 (build-system gnu-build-system)
191 (list "--disable-static")))
193 (list cppunit gettext-minimal pkg-config))
195 (list gnutls nettle))
196 (home-page "https://lib.filezilla-project.org")
197 (synopsis "Cross-platform C++ library used by Filezilla client")
199 "This package provides some basic functionality to build high-performing,
200 platform-independent programs.
202 Some of the highlights include:
205 A type-safe, multi-threaded event system that's simple to use yet efficient.
207 Timers for periodic events.
209 A @code{datetime} class that not only tracks timestamp but also their accuracy,
210 which simplifies dealing with timestamps originating from different sources.
212 Simple process handling for spawning child processes with redirected input and
217 (define-public filezilla
224 (uri (string-append "https://download.filezilla-project.org/client/"
225 "FileZilla_" version "_src.tar.bz2"))
227 (base32 "1bv643abf8jai552j9fqcl4i54h1yrs5hgn6w0w1ibwccdinryc1"))))
228 (build-system gnu-build-system)
230 ;; Don't let filezilla phone home to check for updates.
231 '(#:configure-flags '("--disable-autoupdatecheck")))
233 (list cppunit gettext-minimal pkg-config xdg-utils))
244 (home-page "https://filezilla-project.org")
245 (synopsis "Full-featured graphical FTP/FTPS/SFTP client")
247 "Filezilla client supports FTP, FTP over SSL/TLS (FTPS),
248 SSH File Transfer Protocol (SFTP), HTTP/1.1, SOCKS5, FTP-Proxy, IPv6
249 and others features such as bookmarks, drag and drop, filename filters,
250 directory comparison and more.")
252 (properties '((upstream-name . "FileZilla")))))
254 (define-public vsftpd
261 (uri (string-append "https://security.appspot.com/downloads/"
262 "vsftpd-" version ".tar.gz"))
264 (base32 "1lwipiq8q9qzvwv6f418fbvagpz0p6v0jjplkvcsc2sb8np05di6"))))
265 (build-system gnu-build-system)
268 (list (string-append "CC=" ,(cc-for-target))
269 ;; vsf_findlibs.sh looks only for hard-coded {/usr,}/lib file names
270 ;; that will never exist on Guix. Manage libraries ourselves.
271 "LDFLAGS=-lcap -lpam"
272 "INSTALL=install -D")
273 #:tests? #f ; no test suite
275 (modify-phases %standard-phases
276 (add-after 'unpack 'build-SSL
278 (substitute* "builddefs.h"
279 (("#undef (VSF_BUILD_SSL)" _ symbol)
280 (string-append "#define " symbol)))))
281 (add-after 'unpack 'append-make-flags
283 (substitute* "Makefile"
284 (("(CFLAGS|LDFLAGS)[[:blank:]]*=" _ variable)
285 (format #f "UPSTREAM_~a +=" variable))
286 (("\\$\\((CFLAGS|LDFLAGS)\\)" _ variable)
287 (format #f "$(UPSTREAM_~a) $(~@*~a)" variable)))))
288 (add-after 'unpack 'patch-installation-directory
289 (lambda* (#:key outputs #:allow-other-keys)
290 (substitute* "Makefile"
291 (("/usr") (assoc-ref outputs "out")))))
292 (delete 'configure)))) ; no configure script
294 (list libcap linux-pam openssl))
295 (synopsis "Small FTP server with a focus on security")
297 "The Very Secure File Transfer Protocol Daemon or @command{vsftpd} is a
298 server that listens on a TCP socket for clients and gives them access to local
299 files via @acronym{FTP, the File Transfer Protocol}. Security is a goal; not a
301 (home-page "https://security.appspot.com/vsftpd.html")
302 (license gpl2))) ; with OpenSSL exception