Commit | Line | Data |
---|---|---|
158adb66 | 1 | ;;; GNU Guix --- Functional package management for GNU |
189be331 | 2 | ;;; Copyright © 2014, 2015, 2018 Ludovic Courtès <ludo@gnu.org> |
8cc91fa0 | 3 | ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr> |
87d79282 | 4 | ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org> |
786e0073 | 5 | ;;; Copyright © 2016, 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr> |
afa59535 | 6 | ;;; Copyright © 2017 Rene Saavedra <rennes@openmailbox.org> |
158adb66 LC |
7 | ;;; |
8 | ;;; This file is part of GNU Guix. | |
9 | ;;; | |
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. | |
14 | ;;; | |
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. | |
19 | ;;; | |
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/>. | |
22 | ||
23 | (define-module (gnu packages ftp) | |
74ba3a68 | 24 | #:use-module ((guix licenses) #:select (gpl2 gpl2+ gpl3+ clarified-artistic)) |
158adb66 | 25 | #:use-module (guix build-system gnu) |
8cc91fa0 AE |
26 | #:use-module (guix download) |
27 | #:use-module (guix packages) | |
28 | #:use-module (gnu packages) | |
2d125a9b | 29 | #:use-module (gnu packages autotools) |
afa59535 RS |
30 | #:use-module (gnu packages check) |
31 | #:use-module (gnu packages compression) | |
afa59535 | 32 | #:use-module (gnu packages freedesktop) |
2d125a9b | 33 | #:use-module (gnu packages gettext) |
0bc26f66 RS |
34 | #:use-module (gnu packages glib) |
35 | #:use-module (gnu packages gtk) | |
36 | #:use-module (gnu packages libidn) | |
158adb66 | 37 | #:use-module (gnu packages ncurses) |
0bc26f66 | 38 | #:use-module (gnu packages nettle) |
158adb66 | 39 | #:use-module (gnu packages pkg-config) |
0bc26f66 | 40 | #:use-module (gnu packages readline) |
cd0322a3 | 41 | #:use-module (gnu packages sqlite) |
a7fd7b68 | 42 | #:use-module (gnu packages tls) |
0bc26f66 RS |
43 | #:use-module (gnu packages wxwidgets) |
44 | #:use-module (gnu packages xml)) | |
158adb66 LC |
45 | |
46 | (define-public lftp | |
47 | (package | |
48 | (name "lftp") | |
70dcf9c9 | 49 | (version "4.8.4") |
158adb66 LC |
50 | (source (origin |
51 | (method url-fetch) | |
d736eec2 MB |
52 | ;; See https://lftp.tech/get.html for mirrors. |
53 | (uri (list (string-append "https://lftp.tech/ftp/lftp-" | |
ee5bae30 | 54 | version ".tar.xz") |
61dd253f | 55 | (string-append "https://lftp.tech/ftp/old/lftp-" |
d736eec2 MB |
56 | version ".tar.xz") |
57 | (string-append "ftp://ftp.st.ryukoku.ac.jp/pub/network/" | |
58 | "ftp/lftp/lftp-" version ".tar.xz"))) | |
158adb66 LC |
59 | (sha256 |
60 | (base32 | |
70dcf9c9 | 61 | "0qks22357xv9y6ripmf5j2n5svh8j5z0yniphfk89sjwkqg2gg2f")))) |
158adb66 LC |
62 | (build-system gnu-build-system) |
63 | (native-inputs | |
64 | `(("pkg-config" ,pkg-config))) | |
65 | (inputs | |
66 | `(("zlib" ,zlib) | |
67 | ("readline" ,readline) | |
68 | ("gnutls" ,gnutls))) | |
5e270e8e TGR |
69 | (arguments |
70 | `(#:phases | |
71 | (modify-phases %standard-phases | |
72 | ;; Disable tests that require network access, which is most of them. | |
73 | (add-before 'check 'disable-impure-tests | |
74 | (lambda _ | |
75 | (substitute* "tests/Makefile" | |
76 | (("(ftp-cls-l|ftp-list|http-get)\\$\\(EXEEXT\\)") "") | |
70dcf9c9 MB |
77 | (("lftp-https-get ") "")) |
78 | #t))) | |
5e270e8e TGR |
79 | #:configure-flags |
80 | (list (string-append "--with-readline=" | |
81 | (assoc-ref %build-inputs "readline"))))) | |
61dd253f | 82 | (home-page "https://lftp.tech/") |
158adb66 LC |
83 | (synopsis "Command-line file transfer program") |
84 | (description | |
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.") | |
90 | (license gpl3+))) | |
dd3b6d66 LC |
91 | |
92 | (define-public ncftp | |
93 | (package | |
94 | (name "ncftp") | |
96d47129 | 95 | (version "3.2.6") |
dd3b6d66 LC |
96 | (source (origin |
97 | (method url-fetch) | |
98 | (uri (string-append "ftp://ftp.ncftp.com/ncftp/ncftp-" | |
96d47129 | 99 | version "-src.tar.xz")) |
dd3b6d66 LC |
100 | (sha256 |
101 | (base32 | |
96d47129 | 102 | "1389657cwgw5a3kljnqmhvfh4vr2gcr71dwz1mlhf22xq23hc82z")) |
dd3b6d66 LC |
103 | (modules '((guix build utils))) |
104 | (snippet | |
105 | '(begin | |
106 | ;; Use the right 'rm' and 'ls'. | |
107 | (substitute* (cons "configure" | |
108 | (find-files "." | |
109 | "^(Makefile\\.in|.*\\.sh)$")) | |
110 | (("/bin/(rm|ls)" _ command) | |
111 | command)) | |
112 | ||
113 | ;; This is free software, avoid any confusion. | |
114 | (substitute* (find-files "." "\\.c$") | |
115 | (("a freeware program") | |
6cbee49d MW |
116 | "free software")) |
117 | #t)))) | |
dd3b6d66 LC |
118 | (build-system gnu-build-system) |
119 | (arguments | |
f5d37732 TGR |
120 | '(#:phases |
121 | (modify-phases %standard-phases | |
122 | (replace 'configure | |
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")) | |
ec7245f0 RW |
129 | (invoke "./configure" |
130 | (string-append "--prefix=" out)))))) | |
131 | #:tests? #f)) ;there are no tests | |
dd3b6d66 LC |
132 | (inputs `(("ncurses" ,ncurses))) |
133 | (home-page "http://www.ncftp.com/ncftp/") | |
134 | (synopsis "Command-line File Transfer Protocol (FTP) client") | |
135 | (description | |
136 | "NcFTP Client (or just NcFTP) is a set of command-line programs to access | |
36a4366d EF |
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 | |
139 | @code{ncftpget}.") | |
dd3b6d66 | 140 | (license clarified-artistic))) |
8cc91fa0 AE |
141 | |
142 | ||
143 | (define-public weex | |
144 | (package | |
145 | (name "weex") | |
2d125a9b | 146 | (version "2.8.2") |
8cc91fa0 AE |
147 | (source |
148 | (origin | |
149 | (method url-fetch) | |
150 | (uri | |
2d125a9b LF |
151 | (string-append "mirror://sourceforge/weex/weex/" |
152 | "/weex_" version ".tar.gz")) | |
8cc91fa0 AE |
153 | (sha256 |
154 | (base32 | |
2d125a9b | 155 | "1ir761hjncr1bamaqcw9j7x57xi3s9jax3223bxwbq30a0vsw1pd")))) |
8cc91fa0 | 156 | (build-system gnu-build-system) |
2d125a9b LF |
157 | (native-inputs |
158 | `(("automake" ,automake) | |
159 | ("autoconf" ,autoconf) | |
7c90d0f4 | 160 | ("gettext" ,gettext-minimal))) |
8cc91fa0 AE |
161 | (home-page "http://weex.sourceforge.net/") |
162 | (synopsis "Non-interactive client for FTP synchronization") | |
163 | (description | |
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 | |
167 | as required.") | |
168 | (license gpl2+))) | |
afa59535 RS |
169 | |
170 | (define-public libfilezilla | |
171 | (package | |
172 | (name "libfilezilla") | |
75b803ff | 173 | (version "0.16.0") |
afa59535 RS |
174 | (source |
175 | (origin | |
176 | (method url-fetch) | |
118a0845 | 177 | (uri (string-append "https://download.filezilla-project.org/" |
786e0073 | 178 | "libfilezilla/libfilezilla-" version ".tar.bz2")) |
afa59535 | 179 | (sha256 |
75b803ff | 180 | (base32 "1fd71vmllzvljff5l5ka5wnzbdsxx4i54dpxpklydmbsqpilnv1v")))) |
afa59535 RS |
181 | (build-system gnu-build-system) |
182 | (native-inputs | |
a9af060e LF |
183 | `(("cppunit" ,cppunit) |
184 | ("pkg-config" ,pkg-config))) | |
07df80d1 R |
185 | (inputs |
186 | `(("nettle" ,nettle))) | |
afa59535 RS |
187 | (home-page "https://lib.filezilla-project.org") |
188 | (synopsis "Cross-platform C++ library used by Filezilla client") | |
189 | (description | |
190 | "This package provides some basic functionality to build high-performing, | |
7cace186 TGR |
191 | platform-independent programs. |
192 | ||
193 | Some of the highlights include: | |
194 | @itemize | |
195 | @item | |
196 | A type-safe, multi-threaded event system that's simple to use yet efficient. | |
197 | @item | |
198 | Timers for periodic events. | |
199 | @item | |
200 | A @code{datetime} class that not only tracks timestamp but also their accuracy, | |
201 | which simplifies dealing with timestamps originating from different sources. | |
202 | @item | |
203 | Simple process handling for spawning child processes with redirected input and | |
204 | output. | |
205 | @end itemize\n") | |
afa59535 | 206 | (license gpl2+))) |
0bc26f66 RS |
207 | |
208 | (define-public filezilla | |
209 | (package | |
210 | (name "filezilla") | |
68c138ff | 211 | (version "3.42.1") |
0bc26f66 RS |
212 | (source |
213 | (origin | |
214 | (method url-fetch) | |
10fadd1e TGR |
215 | (uri (string-append "https://download.filezilla-project.org/client/" |
216 | "FileZilla_" version "_src.tar.bz2")) | |
0bc26f66 | 217 | (sha256 |
68c138ff | 218 | (base32 "083ycsycwy1szhp3mzf998wsqa74hmdxdsy07x6k81vp2cxjxijg")))) |
0bc26f66 | 219 | (build-system gnu-build-system) |
a78e0bda LF |
220 | (arguments |
221 | ;; Don't let filezilla phone home to check for updates. | |
222 | '(#:configure-flags '("--disable-autoupdatecheck"))) | |
0bc26f66 RS |
223 | (native-inputs |
224 | `(("gettext" ,gettext-minimal) | |
225 | ("pkg-config" ,pkg-config) | |
0bc26f66 RS |
226 | ("xdg-utils" ,xdg-utils))) |
227 | (inputs | |
228 | `(("dbus" ,dbus) | |
229 | ("gnutls" ,gnutls) | |
230 | ("gtk+" ,gtk+) | |
231 | ("libfilezilla" ,libfilezilla) | |
232 | ("libidn" ,libidn) | |
233 | ("nettle" ,nettle) | |
63247277 | 234 | ("pugixml" ,pugixml) |
0bc26f66 RS |
235 | ("sqlite" ,sqlite) |
236 | ("wxwidgets" ,wxwidgets))) | |
237 | (home-page "https://filezilla-project.org") | |
238 | (synopsis "Full-featured graphical FTP/FTPS/SFTP client") | |
239 | (description | |
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.") | |
244 | (license gpl2+) | |
245 | (properties '((upstream-name . "FileZilla"))))) | |
74ba3a68 DM |
246 | |
247 | (define-public vsftpd | |
248 | (package | |
249 | (name "vsftpd") | |
250 | (version "3.0.3") | |
251 | (source (origin | |
252 | (method url-fetch) | |
253 | (uri (string-append "https://security.appspot.com/downloads/" | |
254 | name "-" version ".tar.gz")) | |
255 | (sha256 | |
256 | (base32 | |
257 | "1xsyjn68k3fgm2incpb3lz2nikffl9by2safp994i272wvv2nkcx")))) | |
258 | (build-system gnu-build-system) | |
259 | (arguments | |
260 | `(#:make-flags '("LDFLAGS=-lcrypt") | |
261 | #:tests? #f ; No tests exist. | |
262 | #:phases | |
263 | (modify-phases %standard-phases | |
264 | (add-after 'unpack 'patch-installation-directory | |
265 | (lambda* (#:key outputs #:allow-other-keys) | |
266 | (substitute* "Makefile" | |
267 | (("/usr") (assoc-ref outputs "out"))) | |
268 | #t)) | |
269 | (add-before 'install 'mkdir | |
270 | (lambda* (#:key outputs #:allow-other-keys) | |
271 | (let ((out (assoc-ref outputs "out"))) | |
272 | (mkdir-p out) | |
273 | (mkdir (string-append out "/sbin")) | |
274 | (mkdir (string-append out "/man")) | |
275 | (mkdir (string-append out "/man/man5")) | |
276 | (mkdir (string-append out "/man/man8")) | |
277 | #t))) | |
278 | (delete 'configure)))) | |
279 | (synopsis "vsftpd FTP daemon") | |
280 | (description "@command{vsftpd} is a daemon that listens on a TCP socket | |
281 | for clients and gives them access to local files via File Transfer | |
282 | Protocol.") | |
283 | (home-page "https://security.appspot.com/vsftpd.html") | |
284 | (license gpl2))) |