;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2014, 2015, 2018, 2021, 2021 Ludovic Courtès ;;; Copyright © 2015 Andreas Enge ;;; Copyright © 2015 Mark H Weaver ;;; Copyright © 2016–2021 Tobias Geerinckx-Rice ;;; Copyright © 2017 Rene Saavedra ;;; Copyright © 2021 David Larsson ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2022 Jai Vetrivelan ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (gnu packages ftp) #:use-module ((guix licenses) #:select (gpl2 gpl2+ gpl3+ clarified-artistic)) #:use-module (guix build-system gnu) #:use-module (guix download) #:use-module (guix packages) #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages autotools) #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages freedesktop) #:use-module (gnu packages gettext) #:use-module (gnu packages glib) #:use-module (gnu packages gtk) #:use-module (gnu packages libidn) #:use-module (gnu packages linux) #:use-module (gnu packages ncurses) #:use-module (gnu packages nettle) #:use-module (gnu packages pkg-config) #:use-module (gnu packages readline) #:use-module (gnu packages sqlite) #:use-module (gnu packages tls) #:use-module (gnu packages wxwidgets) #:use-module (gnu packages xml)) (define-public lftp (package (name "lftp") (version "4.9.2") (source (origin (method url-fetch) ;; See https://lftp.tech/get.html for mirrors. (uri (list (string-append "https://lftp.tech/ftp/lftp-" version ".tar.xz") (string-append "https://lftp.tech/ftp/old/lftp-" version ".tar.xz") (string-append "ftp://ftp.st.ryukoku.ac.jp/pub/network/" "ftp/lftp/lftp-" version ".tar.xz"))) (sha256 (base32 "03b7y0h3mf4jfq5y8zw6hv9v44z3n6i8hc1iswax96y3z7sc85y5")))) (build-system gnu-build-system) (native-inputs (list pkg-config)) (inputs (list zlib readline gnutls)) (arguments `(#:phases (modify-phases %standard-phases ;; Disable tests that require network access, which is most of them. (add-before 'check 'disable-impure-tests (lambda _ (substitute* "tests/Makefile" (("(ftp-cls-l|ftp-list|http-get)\\$\\(EXEEXT\\)") "") (("lftp-https-get ") "")) #t))) #:configure-flags (list (string-append "--with-readline=" (assoc-ref %build-inputs "readline"))))) (home-page "https://lftp.tech/") (synopsis "Command-line file transfer program") (description "LFTP is a sophisticated FTP/HTTP client, and a file transfer program supporting a number of network protocols. Like Bash, it has job control and uses the Readline library for input. It has bookmarks, a built-in mirror command, and can transfer several files in parallel. It was designed with reliability in mind.") (license gpl3+))) (define-public ncftp (package (name "ncftp") (version "3.2.6") (source (origin (method url-fetch) (uri (string-append "ftp://ftp.ncftp.com/ncftp/ncftp-" version "-src.tar.xz")) (sha256 (base32 "1389657cwgw5a3kljnqmhvfh4vr2gcr71dwz1mlhf22xq23hc82z")) (patches (search-patches "ncftp-reproducible.patch")) (modules '((guix build utils))) (snippet '(begin ;; Use the right 'rm' and 'ls'. (substitute* (cons "configure" (find-files "." "^(Makefile\\.in|.*\\.sh)$")) (("/bin/(rm|ls)" _ command) command)) ;; This is free software, avoid any confusion. (substitute* (find-files "." "\\.c$") (("a freeware program") "free software")) #t)))) (properties `((release-monitoring-url . "https://www.ncftp.com/download/"))) (build-system gnu-build-system) (arguments '(#:phases (modify-phases %standard-phases (replace 'configure (lambda* (#:key outputs #:allow-other-keys) ;; This is an old 'configure' script that doesn't ;; understand variables passed as arguments. (let ((out (assoc-ref outputs "out"))) (setenv "CONFIG_SHELL" (which "sh")) (setenv "SHELL" (which "sh")) (setenv "CFLAGS" "-fcommon") (invoke "./configure" (string-append "--prefix=" out)))))) #:tests? #f)) ;there are no tests (inputs (list ncurses)) (home-page "https://www.ncftp.com/ncftp/") (synopsis "Command-line File Transfer Protocol (FTP) client") (description "NcFTP Client (or just NcFTP) is a set of com