Commit | Line | Data |
---|---|---|
158adb66 | 1 | ;;; GNU Guix --- Functional package management for GNU |
ee5bae30 | 2 | ;;; Copyright © 2014, 2015 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> |
e6ee1359 | 5 | ;;; Copyright © 2016, 2017 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) | |
8cc91fa0 | 24 | #:use-module ((guix licenses) #:select (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) | |
32 | #:use-module (gnu packages databases) | |
33 | #:use-module (gnu packages freedesktop) | |
2d125a9b | 34 | #:use-module (gnu packages gettext) |
0bc26f66 RS |
35 | #:use-module (gnu packages glib) |
36 | #:use-module (gnu packages gtk) | |
37 | #:use-module (gnu packages libidn) | |
158adb66 | 38 | #:use-module (gnu packages ncurses) |
0bc26f66 | 39 | #:use-module (gnu packages nettle) |
158adb66 | 40 | #:use-module (gnu packages pkg-config) |
0bc26f66 | 41 | #:use-module (gnu packages readline) |
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") | |
1066696d | 49 | (version "4.8.3") |
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 | |
1066696d | 61 | "12y77jlfs4x4zvcah92mw2h2sb4j0bvbaxkh3wwsm8gs392ywyny")))) |
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\\)") "") | |
77 | (("lftp-https-get ") ""))))) | |
78 | #:configure-flags | |
79 | (list (string-append "--with-readline=" | |
80 | (assoc-ref %build-inputs "readline"))))) | |
61dd253f | 81 | (home-page "https://lftp.tech/") |
158adb66 LC |
82 | (synopsis "Command-line file transfer program") |
83 | (description | |
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.") | |
89 | (license gpl3+))) | |
dd3b6d66 LC |
90 | |
91 | (define-public ncftp | |
92 | (package | |
93 | (name "ncftp") | |
94 | (version "3.2.5") | |
95 | (source (origin | |
96 | (method url-fetch) | |
97 | (uri (string-append "ftp://ftp.ncftp.com/ncftp/ncftp-" | |
98 | version "-src.tar.bz2")) | |
99 | (sha256 | |
100 | (base32 | |
101 | "0hlx12i0lwi99qsrx7nccf4nvwjj2gych4yks5y179b1ax0y5sxl")) | |
102 | (modules '((guix build utils))) | |
103 | (snippet | |
104 | '(begin | |
105 | ;; Use the right 'rm' and 'ls'. | |
106 | (substitute* (cons "configure" | |
107 | (find-files "." | |
108 | "^(Makefile\\.in|.*\\.sh)$")) | |
109 | (("/bin/(rm|ls)" _ command) | |
110 | command)) | |
111 | ||
112 | ;; This is free software, avoid any confusion. | |
113 | (substitute* (find-files "." "\\.c$") | |
114 | (("a freeware program") | |
115 | "free software")))))) | |
116 | (build-system gnu-build-system) | |
117 | (arguments | |
f5d37732 TGR |
118 | '(#:phases |
119 | (modify-phases %standard-phases | |
120 | (replace 'configure | |
121 | (lambda* (#:key outputs #:allow-other-keys) | |
122 | ;; This is an old 'configure' script that doesn't | |
123 | ;; understand variables passed as arguments. | |
124 | (let ((out (assoc-ref outputs "out"))) | |
125 | (setenv "CONFIG_SHELL" (which "sh")) | |
126 | (setenv "SHELL" (which "sh")) | |
127 | (zero? (system* "./configure" | |
128 | (string-append "--prefix=" out))))))) | |
129 | #:tests? #f)) ;there are no tests | |
dd3b6d66 LC |
130 | (inputs `(("ncurses" ,ncurses))) |
131 | (home-page "http://www.ncftp.com/ncftp/") | |
132 | (synopsis "Command-line File Transfer Protocol (FTP) client") | |
133 | (description | |
134 | "NcFTP Client (or just NcFTP) is a set of command-line programs to access | |
135 | File Transfer Protocol (FTP) servers. This includes 'ncftp', an interactive | |
136 | FTP browser, as well as non-interactive commands such as 'ncftpput' and | |
137 | 'ncftpget'.") | |
138 | (license clarified-artistic))) | |
8cc91fa0 AE |
139 | |
140 | ||
141 | (define-public weex | |
142 | (package | |
143 | (name "weex") | |
2d125a9b | 144 | (version "2.8.2") |
8cc91fa0 AE |
145 | (source |
146 | (origin | |
147 | (method url-fetch) | |
148 | (uri | |
2d125a9b LF |
149 | (string-append "mirror://sourceforge/weex/weex/" |
150 | "/weex_" version ".tar.gz")) | |
8cc91fa0 AE |
151 | (sha256 |
152 | (base32 | |
2d125a9b | 153 | "1ir761hjncr1bamaqcw9j7x57xi3s9jax3223bxwbq30a0vsw1pd")))) |
8cc91fa0 | 154 | (build-system gnu-build-system) |
2d125a9b LF |
155 | (native-inputs |
156 | `(("automake" ,automake) | |
157 | ("autoconf" ,autoconf) | |
7c90d0f4 | 158 | ("gettext" ,gettext-minimal))) |
8cc91fa0 | 159 | (arguments |
bdc74f07 TGR |
160 | `(#:phases |
161 | (modify-phases %standard-phases | |
d10092b8 | 162 | (add-after 'unpack 'bootstrap |
2d125a9b | 163 | (lambda _ (zero? (system* "autoreconf" "-vfi"))))))) |
8cc91fa0 AE |
164 | (home-page "http://weex.sourceforge.net/") |
165 | (synopsis "Non-interactive client for FTP synchronization") | |
166 | (description | |
167 | "Weex is a utility designed to automate the task of remotely | |
168 | maintaining a web page or other FTP archive. It synchronizes a set of | |
169 | local files to a remote server by performing uploads and remote deletes | |
170 | as required.") | |
171 | (license gpl2+))) | |
afa59535 RS |
172 | |
173 | (define-public libfilezilla | |
174 | (package | |
175 | (name "libfilezilla") | |
e6ee1359 | 176 | (version "0.11.1") |
afa59535 RS |
177 | (source |
178 | (origin | |
179 | (method url-fetch) | |
180 | (uri (string-append "http://download.filezilla-project.org/" | |
181 | name "/" name "-" version ".tar.bz2")) | |
182 | (sha256 | |
183 | (base32 | |
e6ee1359 | 184 | "1xv4is3zaz66h6iblj9pikapsjasjcbxx31bhkgn62xdq1sadfpc")))) |
afa59535 RS |
185 | (build-system gnu-build-system) |
186 | (native-inputs | |
a9af060e LF |
187 | `(("cppunit" ,cppunit) |
188 | ("pkg-config" ,pkg-config))) | |
afa59535 RS |
189 | (home-page "https://lib.filezilla-project.org") |
190 | (synopsis "Cross-platform C++ library used by Filezilla client") | |
191 | (description | |
192 | "This package provides some basic functionality to build high-performing, | |
193 | platform-independent programs.") | |
194 | (license gpl2+))) | |
0bc26f66 RS |
195 | |
196 | (define-public filezilla | |
197 | (package | |
198 | (name "filezilla") | |
01f248b6 | 199 | (version "3.27.1") |
0bc26f66 RS |
200 | (source |
201 | (origin | |
202 | (method url-fetch) | |
203 | (uri (string-append "https://sourceforge.net/projects/" name | |
204 | "/files/FileZilla_Client/" version | |
205 | "/FileZilla_" version "_src" ".tar.bz2")) | |
206 | (sha256 | |
207 | (base32 | |
01f248b6 | 208 | "14lsplbp9fy7lk6cpwi3aj6jskz4j82h67x0fik82z1bns0zm2a3")))) |
0bc26f66 | 209 | (build-system gnu-build-system) |
a78e0bda LF |
210 | (arguments |
211 | ;; Don't let filezilla phone home to check for updates. | |
212 | '(#:configure-flags '("--disable-autoupdatecheck"))) | |
0bc26f66 RS |
213 | (native-inputs |
214 | `(("gettext" ,gettext-minimal) | |
215 | ("pkg-config" ,pkg-config) | |
216 | ("pugixml" ,pugixml) | |
217 | ("xdg-utils" ,xdg-utils))) | |
218 | (inputs | |
219 | `(("dbus" ,dbus) | |
220 | ("gnutls" ,gnutls) | |
221 | ("gtk+" ,gtk+) | |
222 | ("libfilezilla" ,libfilezilla) | |
223 | ("libidn" ,libidn) | |
224 | ("nettle" ,nettle) | |
225 | ("sqlite" ,sqlite) | |
226 | ("wxwidgets" ,wxwidgets))) | |
227 | (home-page "https://filezilla-project.org") | |
228 | (synopsis "Full-featured graphical FTP/FTPS/SFTP client") | |
229 | (description | |
230 | "Filezilla client supports FTP, FTP over SSL/TLS (FTPS), | |
231 | SSH File Transfer Protocol (SFTP), HTTP/1.1, SOCKS5, FTP-Proxy, IPv6 | |
232 | and others features such as bookmarks, drag and drop, filename filters, | |
233 | directory comparison and more.") | |
234 | (license gpl2+) | |
235 | (properties '((upstream-name . "FileZilla"))))) |