2013-01-29 23:02:22 +01:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2019-01-14 22:24:01 +01:00
|
|
|
;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
|
2014-04-27 11:09:07 +02:00
|
|
|
;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr>
|
2016-01-14 16:34:16 +01:00
|
|
|
;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
|
2018-07-30 13:41:14 +02:00
|
|
|
;;; Copyright © 2015, 2016, 2018 Efraim Flashner <efraim@flashner.co.il>
|
2019-03-21 18:34:24 +01:00
|
|
|
;;; Copyright © 2016, 2019 Leo Famulari <leo@famulari.name>
|
2016-07-27 19:45:02 +02:00
|
|
|
;;; Copyright © 2016 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
2016-02-09 01:01:49 +01:00
|
|
|
;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
|
2019-02-04 21:15:38 +01:00
|
|
|
;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
2017-07-04 22:04:09 +02:00
|
|
|
;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at>
|
2017-09-29 16:15:57 +02:00
|
|
|
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
|
Correct name and email address for ng0.
* .mailmap, Makefile.am, doc/guix.de.texi, doc/guix.fr.texi,
doc/guix.texi, etc/completion/fish/guix.fish,
gnu/packages/accessibility.scm, gnu/packages/admin.scm,
gnu/packages/audio.scm, gnu/packages/autotools.scm,
gnu/packages/cdrom.scm, gnu/packages/check.scm,
gnu/packages/cinnamon.scm, gnu/packages/compression.scm,
gnu/packages/crypto.scm, gnu/packages/databases.scm,
gnu/packages/django.scm, gnu/packages/dns.scm, gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm, gnu/packages/emacs.scm,
gnu/packages/enlightenment.scm, gnu/packages/erlang.scm,
gnu/packages/fonts.scm, gnu/packages/fontutils.scm,
gnu/packages/forth.scm, gnu/packages/fvwm.scm, gnu/packages/games.scm,
gnu/packages/gl.scm, gnu/packages/gnome.scm, gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm, gnu/packages/gnuzilla.scm, gnu/packages/gtk.scm,
gnu/packages/guile-wm.scm,gnu/packages/guile-xyz.scm,
gnu/packages/haskell-check.scm, gnu/packages/haskell-crypto.scm,
gnu/packages/haskell.scm, gnu/packages/image-viewers.scm,
gnu/packages/image.scm, gnu/packages/irc.scm,
gnu/packages/language.scm, gnu/packages/libcanberra.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm, gnu/packages/lolcode.scm,
gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/mail.scm,
gnu/packages/markup.scm, gnu/packages/mate.scm, gnu/packages/maths.scm,
gnu/packages/mc.scm, gnu/packages/messaging.scm, gnu/packages/music.scm,
gnu/packages/ncurses.scm, gnu/packages/networking.scm,
gnu/packages/nickle.scm, gnu/packages/openbox.scm, gnu/packages/pdf.scm,
gnu/packages/perl-check.scm, gnu/packages/perl.scm,
gnu/packages/python-compression.scm, gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm, gnu/packages/python-xyz.scm,
gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/ruby.scm,
gnu/packages/rust.scm, gnu/packages/scheme.scm,
gnu/packages/serialization.scm, gnu/packages/shells.scm,
gnu/packages/ssh.scm, gnu/packages/suckless.scm, gnu/packages/tbb.scm,
gnu/packages/telephony.scm, gnu/packages/text-editors.scm,
gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tls.scm,
gnu/packages/tor.scm, gnu/packages/version-control.scm,
gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/web.scm,
gnu/packages/wm.scm, gnu/packages/xdisorg.scm, gnu/packages/xfce.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/services/certbot.scm,
gnu/services/desktop.scm, gnu/services/version-control.scm,
gnu/services/web.scm, guix/import/hackage.scm, guix/licenses.scm:
Correct name and email address for ng0.
Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
2019-03-14 10:33:38 +01:00
|
|
|
;;; Copyright © 2017 ng0 <ng0@n0.is>
|
2018-08-31 16:55:57 +02:00
|
|
|
;;; Copyright © 2018 Manuel Graf <graf@init.at>
|
2019-02-25 12:31:40 +01:00
|
|
|
;;; Copyright © 2019 Gábor Boskovits <boskovits@gmail.com>
|
2013-01-29 23:02:22 +01:00
|
|
|
;;;
|
|
|
|
;;; 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 <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages ssh)
|
2016-07-13 18:13:11 +02:00
|
|
|
#:use-module (gnu packages)
|
|
|
|
#:use-module (gnu packages autotools)
|
|
|
|
#:use-module (gnu packages base)
|
|
|
|
#:autoload (gnu packages boost) (boost)
|
2013-01-29 23:02:22 +01:00
|
|
|
#:use-module (gnu packages compression)
|
2017-07-04 22:04:09 +02:00
|
|
|
#:use-module (gnu packages crypto)
|
2016-07-13 18:13:11 +02:00
|
|
|
#:use-module (gnu packages elf)
|
2013-01-29 23:02:22 +01:00
|
|
|
#:use-module (gnu packages gnupg)
|
2016-07-13 18:13:11 +02:00
|
|
|
#:use-module (gnu packages gperf)
|
2013-01-30 21:31:50 +01:00
|
|
|
#:use-module (gnu packages groff)
|
2013-12-04 22:24:28 +01:00
|
|
|
#:use-module (gnu packages guile)
|
2019-02-25 12:31:40 +01:00
|
|
|
#:use-module (gnu packages libedit)
|
2016-07-13 18:13:11 +02:00
|
|
|
#:use-module (gnu packages linux)
|
2017-07-04 22:04:09 +02:00
|
|
|
#:use-module (gnu packages logging)
|
2016-07-13 18:13:11 +02:00
|
|
|
#:use-module (gnu packages m4)
|
|
|
|
#:use-module (gnu packages multiprecision)
|
2014-04-11 22:05:33 +02:00
|
|
|
#:use-module (gnu packages ncurses)
|
2016-07-13 18:13:11 +02:00
|
|
|
#:use-module (gnu packages nettle)
|
gnu: Move Kerberos implemetations to (gnu packages kerberos).
* gnu/packages/mit-krb5.scm: Remove.
* gnu/packages/shishi.scm: Remove.
* gnu/packages/kerberos.scm: New file, from the concatenation of these
two.
* gnu/local.mk (GNU_SYSTEM_MODULES): Adjust accordingly.
* gnu/packages/admin.scm, gnu/packages/cyrus-sasl.scm,
gnu/packages/gnome.scm, gnu/packages/gnuzilla.scm,
gnu/packages/gsasl.scm, gnu/packages/java.scm,
gnu/packages/networking.scm, gnu/packages/nfs.scm,
gnu/packages/onc-rpc.scm, gnu/packages/ssh.scm,
gnu/packages/web.scm: Adjust accordingly.
2017-01-18 09:57:43 +01:00
|
|
|
#:use-module (gnu packages kerberos)
|
2016-07-13 18:13:11 +02:00
|
|
|
#:use-module (gnu packages perl)
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2017-07-04 22:04:09 +02:00
|
|
|
#:use-module (gnu packages popt)
|
2014-04-11 22:05:33 +02:00
|
|
|
#:autoload (gnu packages protobuf) (protobuf)
|
2018-08-31 16:55:57 +02:00
|
|
|
#:use-module (gnu packages python)
|
gnu: Separate Python core packages from the rest.
* gnu/packages/python.scm: Move hundreds of package definitions from here...
* gnu/packages/python-xyz.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/audio.scm,
gnu/packages/backup.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/calendar.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/cluster.scm,
gnu/packages/compression.scm,
gnu/packages/connman.scm,
gnu/packages/crypto.scm,
gnu/packages/cups.scm,
gnu/packages/databases.scm,
gnu/packages/dav.scm,
gnu/packages/direct-connect.scm,
gnu/packages/disk.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/docker.scm,
gnu/packages/ebook.scm,
gnu/packages/elf.scm,
gnu/packages/emacs.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm,
gnu/packages/finance.scm,
gnu/packages/fltk.scm,
gnu/packages/fontutils.scm,
gnu/packages/freedesktop.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/geo.scm,
gnu/packages/gl.scm,
gnu/packages/glib.scm,
gnu/packages/gnome.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/gtk.scm,
gnu/packages/ham-radio.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/kde-frameworks.scm,
gnu/packages/key-mon.scm,
gnu/packages/libffi.scm,
gnu/packages/libreoffice.scm,
gnu/packages/libusb.scm,
gnu/packages/lirc.scm,
gnu/packages/logging.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/mate.scm,
gnu/packages/maths.scm,
gnu/packages/medical.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mp3.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/nutrition.scm,
gnu/packages/openldap.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/photo.scm,
gnu/packages/polkit.scm,
gnu/packages/protobuf.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/qt.scm,
gnu/packages/rdf.scm,
gnu/packages/ruby.scm,
gnu/packages/search.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/simulation.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/sync.scm,
gnu/packages/terminals.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/virtualization.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wicd.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xorg.scm: Update module references.
2019-01-15 14:21:30 +01:00
|
|
|
#:use-module (gnu packages python-xyz)
|
2016-07-13 18:13:11 +02:00
|
|
|
#:use-module (gnu packages readline)
|
|
|
|
#:use-module (gnu packages texinfo)
|
gnu: Move content of openssl module into tls module.
* gnu/packages/openssl.scm (openssl, perl-net-ssleay): Move to...
* gnu/packages/tls.scm: ...here.
* gnu/packages/openssl.scm: Delete file.
* gnu-system.am (GNU_SYSTEM_MODULES): Unregister deleted file.
* gnu/packages/{admin.scm, bittorrent.scm, certs.scm, ci.scm,
cyrus-sasl.scm, databases.scm, dns.scm, ebook.scm, enlightenment.scm,
gnunet.scm, libreoffice.scm, links.scm, mail.scm, messaging.scm,
networking.scm, ntp.scm, openldap.scm, package-management.scm, pdf.scm,
python.scm, qt.scm, rdesktop.scm, rdf.scm, ruby.scm, ssh.scm,
synergy.scm, tor.scm, version-control.scm, video.scm, vpn.scm,
w3m.scm, web.scm, weechat.scm, xiph.scm}: Adapt module import.
2015-07-05 18:27:24 +02:00
|
|
|
#:use-module (gnu packages tls)
|
2016-07-13 18:13:11 +02:00
|
|
|
#:use-module (gnu packages xorg)
|
|
|
|
#:use-module (guix build-system cmake)
|
|
|
|
#:use-module (guix build-system gnu)
|
2018-08-31 16:55:57 +02:00
|
|
|
#:use-module (guix build-system python)
|
2013-01-29 23:02:22 +01:00
|
|
|
#:use-module (guix download)
|
2014-10-13 00:32:14 +02:00
|
|
|
#:use-module (guix git-download)
|
2016-07-13 18:13:11 +02:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2017-04-22 01:18:07 +02:00
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (srfi srfi-1))
|
2013-11-27 23:52:53 +01:00
|
|
|
|
|
|
|
(define-public libssh
|
2018-10-16 20:15:19 +02:00
|
|
|
(package
|
|
|
|
(name "libssh")
|
2019-09-28 17:20:51 +02:00
|
|
|
(version "0.9.0")
|
2018-10-16 20:15:19 +02:00
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
2018-11-13 17:43:16 +01:00
|
|
|
(url "https://git.libssh.org/projects/libssh.git")
|
2018-10-22 19:00:55 +02:00
|
|
|
(commit (string-append "libssh-" version))))
|
2018-10-16 20:15:19 +02:00
|
|
|
(sha256
|
|
|
|
(base32
|
2019-09-28 17:20:51 +02:00
|
|
|
"0hxws8vl56cbjwchmj0x78ywv2b8spv6h90sgma1vj1y9dybgs7s"))
|
2018-10-16 20:15:19 +02:00
|
|
|
(file-name (git-file-name name version))))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(outputs '("out" "debug"))
|
|
|
|
(arguments
|
|
|
|
'(#:configure-flags '("-DWITH_GCRYPT=ON")
|
2013-12-04 00:29:19 +01:00
|
|
|
|
2019-01-14 22:24:01 +01:00
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
(add-before 'configure 'avoid-werror
|
|
|
|
(lambda _
|
|
|
|
;; Avoid '-Werror'. Presumably this works fine with
|
|
|
|
;; gcc@8 on x86_64 but leads to errors with our older
|
|
|
|
;; compiler.
|
|
|
|
(substitute* "CompilerChecks.cmake"
|
|
|
|
(("-Werror=") "-W"))
|
|
|
|
#t)))
|
|
|
|
|
2018-10-16 20:15:19 +02:00
|
|
|
;; TODO: Add 'CMockery' and '-DWITH_TESTING=ON' for the test suite.
|
|
|
|
#:tests? #f))
|
|
|
|
(inputs `(("zlib" ,zlib)
|
|
|
|
("libgcrypt" ,libgcrypt)))
|
|
|
|
(synopsis "SSH client library")
|
|
|
|
(description
|
|
|
|
"libssh is a C library implementing the SSHv2 and SSHv1 protocol for client
|
|
|
|
and server implementations. With libssh, you can remotely execute programs,
|
|
|
|
transfer files, and use a secure and transparent tunnel for your remote
|
|
|
|
applications.")
|
|
|
|
(home-page "https://www.libssh.org")
|
|
|
|
(license license:lgpl2.1+)))
|
2013-01-29 23:02:22 +01:00
|
|
|
|
|
|
|
(define-public libssh2
|
|
|
|
(package
|
|
|
|
(name "libssh2")
|
2019-06-30 14:18:35 +02:00
|
|
|
(version "1.9.0")
|
2013-01-29 23:02:22 +01:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
2016-02-24 21:57:30 +01:00
|
|
|
"https://www.libssh2.org/download/libssh2-"
|
2013-01-29 23:02:22 +01:00
|
|
|
version ".tar.gz"))
|
2016-02-24 21:57:30 +01:00
|
|
|
(sha256
|
|
|
|
(base32
|
2019-06-30 14:18:35 +02:00
|
|
|
"1zfsz9nldakfz61d2j70pk29zlmj7w2vv46s9l3x2prhcgaqpyym"))))
|
2013-01-29 23:02:22 +01:00
|
|
|
(build-system gnu-build-system)
|
2014-03-25 21:51:32 +01:00
|
|
|
;; The installed libssh2.pc file does not include paths to libgcrypt and
|
|
|
|
;; zlib libraries, so we need to propagate the inputs.
|
|
|
|
(propagated-inputs `(("libgcrypt" ,libgcrypt)
|
|
|
|
("zlib" ,zlib)))
|
2019-06-30 14:18:35 +02:00
|
|
|
(arguments `(#:configure-flags `("--with-libgcrypt")))
|
gnu: Some cleanup based on lint checkers.
* gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm,
gnu/packages/apr.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm,
gnu/packages/base.scm, gnu/packages/calcurse.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/compression.scm, gnu/packages/cook.scm,
gnu/packages/crypto.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm,
gnu/packages/doxygen.scm, gnu/packages/dwm.scm, gnu/packages/elf.scm,
gnu/packages/emacs.scm, gnu/packages/feh.scm, gnu/packages/file.scm,
gnu/packages/fish.scm, gnu/packages/flex.scm, gnu/packages/fltk.scm,
gnu/packages/fontutils.scm, gnu/packages/games.scm, gnu/packages/gcal.scm,
gnu/packages/gcc.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gperf.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile.scm,
gnu/packages/hurd.scm, gnu/packages/icu4c.scm, gnu/packages/image.scm,
gnu/packages/imagemagick.scm, gnu/packages/irssi.scm, gnu/packages/kde.scm,
gnu/packages/libdaemon.scm, gnu/packages/libevent.scm,
gnu/packages/libidn.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm,
gnu/packages/lout.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm,
gnu/packages/lua.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm,
gnu/packages/mp3.scm, gnu/packages/netpbm.scm, gnu/packages/noweb.scm,
gnu/packages/ocaml.scm, gnu/packages/openssl.scm, gnu/packages/pcre.scm,
gnu/packages/pdf.scm, gnu/packages/pkg-config.scm,
gnu/packages/pretty-print.scm, gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/scheme.scm, gnu/packages/scrot.scm,
gnu/packages/sdl.scm, gnu/packages/skribilo.scm, gnu/packages/ssh.scm,
gnu/packages/stalonetray.scm, gnu/packages/tcl.scm, gnu/packages/tcsh.scm,
gnu/packages/telephony.scm, gnu/packages/texlive.scm, gnu/packages/tor.scm,
gnu/packages/valgrind.scm, gnu/packages/version-control.scm,
gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/web.scm, gnu/packages/wordnet.scm, gnu/packages/xiph.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/zile.scm,
gnu/packages/zip.scm, gnu/packages/zsh.scm [synopsis, description]: Adjust
according to lint checkers.
* gnu/packages/fltk.scm (fltk)[source]: Wrap long line in uri.
* /gnu/packages/xiph.scm (libogg, libtheora, vorbis-tools)[source]: Same.
2014-10-24 06:46:59 +02:00
|
|
|
(synopsis "Client-side C library implementing the SSH2 protocol")
|
2013-01-29 23:02:22 +01:00
|
|
|
(description
|
|
|
|
"libssh2 is a library intended to allow software developers access to
|
gnu: Some cleanup based on lint checkers.
* gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm,
gnu/packages/apr.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm,
gnu/packages/base.scm, gnu/packages/calcurse.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/compression.scm, gnu/packages/cook.scm,
gnu/packages/crypto.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm,
gnu/packages/doxygen.scm, gnu/packages/dwm.scm, gnu/packages/elf.scm,
gnu/packages/emacs.scm, gnu/packages/feh.scm, gnu/packages/file.scm,
gnu/packages/fish.scm, gnu/packages/flex.scm, gnu/packages/fltk.scm,
gnu/packages/fontutils.scm, gnu/packages/games.scm, gnu/packages/gcal.scm,
gnu/packages/gcc.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gperf.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile.scm,
gnu/packages/hurd.scm, gnu/packages/icu4c.scm, gnu/packages/image.scm,
gnu/packages/imagemagick.scm, gnu/packages/irssi.scm, gnu/packages/kde.scm,
gnu/packages/libdaemon.scm, gnu/packages/libevent.scm,
gnu/packages/libidn.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm,
gnu/packages/lout.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm,
gnu/packages/lua.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm,
gnu/packages/mp3.scm, gnu/packages/netpbm.scm, gnu/packages/noweb.scm,
gnu/packages/ocaml.scm, gnu/packages/openssl.scm, gnu/packages/pcre.scm,
gnu/packages/pdf.scm, gnu/packages/pkg-config.scm,
gnu/packages/pretty-print.scm, gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/scheme.scm, gnu/packages/scrot.scm,
gnu/packages/sdl.scm, gnu/packages/skribilo.scm, gnu/packages/ssh.scm,
gnu/packages/stalonetray.scm, gnu/packages/tcl.scm, gnu/packages/tcsh.scm,
gnu/packages/telephony.scm, gnu/packages/texlive.scm, gnu/packages/tor.scm,
gnu/packages/valgrind.scm, gnu/packages/version-control.scm,
gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/web.scm, gnu/packages/wordnet.scm, gnu/packages/xiph.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/zile.scm,
gnu/packages/zip.scm, gnu/packages/zsh.scm [synopsis, description]: Adjust
according to lint checkers.
* gnu/packages/fltk.scm (fltk)[source]: Wrap long line in uri.
* /gnu/packages/xiph.scm (libogg, libtheora, vorbis-tools)[source]: Same.
2014-10-24 06:46:59 +02:00
|
|
|
the SSH-2 protocol in an easy-to-use self-contained package. It can be built
|
2013-01-29 23:02:22 +01:00
|
|
|
into an application to perform many different tasks when communicating with
|
|
|
|
a server that supports the SSH-2 protocol.")
|
|
|
|
(license license:bsd-3)
|
2019-03-15 16:08:24 +01:00
|
|
|
(home-page "https://www.libssh2.org/")))
|
2013-01-30 21:31:50 +01:00
|
|
|
|
|
|
|
(define-public openssh
|
|
|
|
(package
|
|
|
|
(name "openssh")
|
2019-04-21 06:19:39 +02:00
|
|
|
(version "8.0p1")
|
2013-01-30 21:31:50 +01:00
|
|
|
(source (origin
|
2017-07-19 01:42:08 +02:00
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://openbsd/OpenSSH/portable/"
|
|
|
|
name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2019-04-21 06:19:39 +02:00
|
|
|
"0s7xh4s0qcipnjh9ls5blxcpvhyd116z9dxn3q1yi64lwrwki55x"))))
|
2013-01-30 21:31:50 +01:00
|
|
|
(build-system gnu-build-system)
|
2019-02-25 12:31:40 +01:00
|
|
|
(native-inputs `(("groff" ,groff)
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(inputs `(("libedit" ,libedit)
|
|
|
|
("openssl" ,openssl)
|
2016-08-21 18:28:53 +02:00
|
|
|
("pam" ,linux-pam)
|
2016-10-16 08:31:55 +02:00
|
|
|
("mit-krb5" ,mit-krb5)
|
2016-08-01 11:24:25 +02:00
|
|
|
("zlib" ,zlib)
|
|
|
|
("xauth" ,xauth))) ;for 'ssh -X' and 'ssh -Y'
|
2013-01-30 21:31:50 +01:00
|
|
|
(arguments
|
|
|
|
`(#:test-target "tests"
|
2018-04-04 06:59:48 +02:00
|
|
|
;; Otherwise, the test scripts try to use a nonexistent directory and
|
|
|
|
;; fail.
|
|
|
|
#:make-flags '("REGRESSTMP=\"$${BUILDDIR}/regress\"")
|
2016-10-16 08:31:55 +02:00
|
|
|
#:configure-flags `("--sysconfdir=/etc/ssh"
|
2016-08-21 18:28:53 +02:00
|
|
|
|
2016-10-16 08:31:55 +02:00
|
|
|
;; Default value of 'PATH' used by sshd.
|
2016-08-21 18:29:36 +02:00
|
|
|
"--with-default-path=/run/current-system/profile/bin"
|
|
|
|
|
2016-10-16 08:31:55 +02:00
|
|
|
;; configure needs to find krb5-config
|
|
|
|
,(string-append "--with-kerberos5="
|
|
|
|
(assoc-ref %build-inputs "mit-krb5")
|
|
|
|
"/bin")
|
|
|
|
|
2019-02-25 12:31:40 +01:00
|
|
|
;; libedit needed for sftp completion
|
|
|
|
"--with-libedit"
|
|
|
|
|
2016-08-21 18:28:53 +02:00
|
|
|
;; Enable PAM support in sshd.
|
|
|
|
"--with-pam")
|
|
|
|
|
2013-01-30 21:31:50 +01:00
|
|
|
#:phases
|
2015-11-27 10:57:03 +01:00
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'configure 'reset-/var/empty
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
(substitute* "Makefile"
|
|
|
|
(("PRIVSEP_PATH=/var/empty")
|
|
|
|
(string-append "PRIVSEP_PATH=" out "/var/empty")))
|
|
|
|
#t)))
|
|
|
|
(add-before 'check 'patch-tests
|
|
|
|
(lambda _
|
|
|
|
;; remove 't-exec' regress target which requires user 'sshd'
|
|
|
|
(substitute* "regress/Makefile"
|
|
|
|
(("^(REGRESS_TARGETS=.*) t-exec(.*)" all pre post)
|
|
|
|
(string-append pre post)))
|
|
|
|
#t))
|
|
|
|
(replace 'install
|
2015-11-27 11:35:50 +01:00
|
|
|
(lambda* (#:key outputs (make-flags '()) #:allow-other-keys)
|
2015-11-27 10:57:03 +01:00
|
|
|
;; install without host keys and system configuration files
|
2018-03-23 08:30:00 +01:00
|
|
|
(apply invoke "make" "install-nosysconf" make-flags)
|
|
|
|
(install-file "contrib/ssh-copy-id"
|
|
|
|
(string-append (assoc-ref outputs "out")
|
|
|
|
"/bin/"))
|
|
|
|
(chmod (string-append (assoc-ref outputs "out")
|
|
|
|
"/bin/ssh-copy-id") #o555)
|
|
|
|
(install-file "contrib/ssh-copy-id.1"
|
|
|
|
(string-append (assoc-ref outputs "out")
|
|
|
|
"/share/man/man1/"))
|
|
|
|
#t)))))
|
gnu: Some cleanup based on lint checkers.
* gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm,
gnu/packages/apr.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm,
gnu/packages/base.scm, gnu/packages/calcurse.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/compression.scm, gnu/packages/cook.scm,
gnu/packages/crypto.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm,
gnu/packages/doxygen.scm, gnu/packages/dwm.scm, gnu/packages/elf.scm,
gnu/packages/emacs.scm, gnu/packages/feh.scm, gnu/packages/file.scm,
gnu/packages/fish.scm, gnu/packages/flex.scm, gnu/packages/fltk.scm,
gnu/packages/fontutils.scm, gnu/packages/games.scm, gnu/packages/gcal.scm,
gnu/packages/gcc.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gperf.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile.scm,
gnu/packages/hurd.scm, gnu/packages/icu4c.scm, gnu/packages/image.scm,
gnu/packages/imagemagick.scm, gnu/packages/irssi.scm, gnu/packages/kde.scm,
gnu/packages/libdaemon.scm, gnu/packages/libevent.scm,
gnu/packages/libidn.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm,
gnu/packages/lout.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm,
gnu/packages/lua.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm,
gnu/packages/mp3.scm, gnu/packages/netpbm.scm, gnu/packages/noweb.scm,
gnu/packages/ocaml.scm, gnu/packages/openssl.scm, gnu/packages/pcre.scm,
gnu/packages/pdf.scm, gnu/packages/pkg-config.scm,
gnu/packages/pretty-print.scm, gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/scheme.scm, gnu/packages/scrot.scm,
gnu/packages/sdl.scm, gnu/packages/skribilo.scm, gnu/packages/ssh.scm,
gnu/packages/stalonetray.scm, gnu/packages/tcl.scm, gnu/packages/tcsh.scm,
gnu/packages/telephony.scm, gnu/packages/texlive.scm, gnu/packages/tor.scm,
gnu/packages/valgrind.scm, gnu/packages/version-control.scm,
gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/web.scm, gnu/packages/wordnet.scm, gnu/packages/xiph.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/zile.scm,
gnu/packages/zip.scm, gnu/packages/zsh.scm [synopsis, description]: Adjust
according to lint checkers.
* gnu/packages/fltk.scm (fltk)[source]: Wrap long line in uri.
* /gnu/packages/xiph.scm (libogg, libtheora, vorbis-tools)[source]: Same.
2014-10-24 06:46:59 +02:00
|
|
|
(synopsis "Client and server for the secure shell (ssh) protocol")
|
2013-01-30 21:31:50 +01:00
|
|
|
(description
|
|
|
|
"The SSH2 protocol implemented in OpenSSH is standardised by the
|
|
|
|
IETF secsh working group and is specified in several RFCs and drafts.
|
|
|
|
It is composed of three layered components:
|
|
|
|
|
|
|
|
The transport layer provides algorithm negotiation and a key exchange.
|
|
|
|
The key exchange includes server authentication and results in a
|
|
|
|
cryptographically secured connection: it provides integrity, confidentiality
|
|
|
|
and optional compression.
|
|
|
|
|
|
|
|
The user authentication layer uses the established connection and relies on
|
gnu: Some cleanup based on lint checkers.
* gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm,
gnu/packages/apr.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm,
gnu/packages/base.scm, gnu/packages/calcurse.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/compression.scm, gnu/packages/cook.scm,
gnu/packages/crypto.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm,
gnu/packages/doxygen.scm, gnu/packages/dwm.scm, gnu/packages/elf.scm,
gnu/packages/emacs.scm, gnu/packages/feh.scm, gnu/packages/file.scm,
gnu/packages/fish.scm, gnu/packages/flex.scm, gnu/packages/fltk.scm,
gnu/packages/fontutils.scm, gnu/packages/games.scm, gnu/packages/gcal.scm,
gnu/packages/gcc.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gperf.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile.scm,
gnu/packages/hurd.scm, gnu/packages/icu4c.scm, gnu/packages/image.scm,
gnu/packages/imagemagick.scm, gnu/packages/irssi.scm, gnu/packages/kde.scm,
gnu/packages/libdaemon.scm, gnu/packages/libevent.scm,
gnu/packages/libidn.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm,
gnu/packages/lout.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm,
gnu/packages/lua.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm,
gnu/packages/mp3.scm, gnu/packages/netpbm.scm, gnu/packages/noweb.scm,
gnu/packages/ocaml.scm, gnu/packages/openssl.scm, gnu/packages/pcre.scm,
gnu/packages/pdf.scm, gnu/packages/pkg-config.scm,
gnu/packages/pretty-print.scm, gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/scheme.scm, gnu/packages/scrot.scm,
gnu/packages/sdl.scm, gnu/packages/skribilo.scm, gnu/packages/ssh.scm,
gnu/packages/stalonetray.scm, gnu/packages/tcl.scm, gnu/packages/tcsh.scm,
gnu/packages/telephony.scm, gnu/packages/texlive.scm, gnu/packages/tor.scm,
gnu/packages/valgrind.scm, gnu/packages/version-control.scm,
gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/web.scm, gnu/packages/wordnet.scm, gnu/packages/xiph.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/zile.scm,
gnu/packages/zip.scm, gnu/packages/zsh.scm [synopsis, description]: Adjust
according to lint checkers.
* gnu/packages/fltk.scm (fltk)[source]: Wrap long line in uri.
* /gnu/packages/xiph.scm (libogg, libtheora, vorbis-tools)[source]: Same.
2014-10-24 06:46:59 +02:00
|
|
|
the services provided by the transport layer. It provides several mechanisms
|
|
|
|
for user authentication. These include traditional password authentication
|
2013-01-30 21:31:50 +01:00
|
|
|
as well as public-key or host-based authentication mechanisms.
|
|
|
|
|
|
|
|
The connection layer multiplexes many different concurrent channels over the
|
|
|
|
authenticated connection and allows tunneling of login sessions and
|
gnu: Some cleanup based on lint checkers.
* gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm,
gnu/packages/apr.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm,
gnu/packages/base.scm, gnu/packages/calcurse.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/compression.scm, gnu/packages/cook.scm,
gnu/packages/crypto.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm,
gnu/packages/doxygen.scm, gnu/packages/dwm.scm, gnu/packages/elf.scm,
gnu/packages/emacs.scm, gnu/packages/feh.scm, gnu/packages/file.scm,
gnu/packages/fish.scm, gnu/packages/flex.scm, gnu/packages/fltk.scm,
gnu/packages/fontutils.scm, gnu/packages/games.scm, gnu/packages/gcal.scm,
gnu/packages/gcc.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gperf.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile.scm,
gnu/packages/hurd.scm, gnu/packages/icu4c.scm, gnu/packages/image.scm,
gnu/packages/imagemagick.scm, gnu/packages/irssi.scm, gnu/packages/kde.scm,
gnu/packages/libdaemon.scm, gnu/packages/libevent.scm,
gnu/packages/libidn.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm,
gnu/packages/lout.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm,
gnu/packages/lua.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm,
gnu/packages/mp3.scm, gnu/packages/netpbm.scm, gnu/packages/noweb.scm,
gnu/packages/ocaml.scm, gnu/packages/openssl.scm, gnu/packages/pcre.scm,
gnu/packages/pdf.scm, gnu/packages/pkg-config.scm,
gnu/packages/pretty-print.scm, gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/scheme.scm, gnu/packages/scrot.scm,
gnu/packages/sdl.scm, gnu/packages/skribilo.scm, gnu/packages/ssh.scm,
gnu/packages/stalonetray.scm, gnu/packages/tcl.scm, gnu/packages/tcsh.scm,
gnu/packages/telephony.scm, gnu/packages/texlive.scm, gnu/packages/tor.scm,
gnu/packages/valgrind.scm, gnu/packages/version-control.scm,
gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/web.scm, gnu/packages/wordnet.scm, gnu/packages/xiph.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/zile.scm,
gnu/packages/zip.scm, gnu/packages/zsh.scm [synopsis, description]: Adjust
according to lint checkers.
* gnu/packages/fltk.scm (fltk)[source]: Wrap long line in uri.
* /gnu/packages/xiph.scm (libogg, libtheora, vorbis-tools)[source]: Same.
2014-10-24 06:46:59 +02:00
|
|
|
TCP-forwarding. It provides a flow control service for these channels.
|
2013-01-30 21:31:50 +01:00
|
|
|
Additionally, various channel-specific options can be negotiated.")
|
gnu: Update packages to use 'non-copyleft' instead of 'bsd-style'.
* gnu/packages/avr.scm, gnu/packages/compression.scm,
gnu/packages/curl.scm, gnu/packages/cyrus-sasl.scm,
gnu/packages/databases.scm, gnu/packages/firmware.scm,
gnu/packages/flex.scm, gnu/packages/fontutils.scm,
gnu/packages/gd.scm, gnu/packages/ghostscript.scm,
gnu/packages/gnunet.scm, gnu/packages/graphics.scm,
gnu/packages/hugs.scm, gnu/packages/image.scm,
gnu/packages/linux.scm, gnu/packages/mail.scm,
gnu/packages/maths.scm, gnu/packages/mit-krb5.scm,
gnu/packages/python.scm, gnu/packages/rdf.scm,
gnu/packages/ssh.scm, gnu/packages/tcl.scm,
gnu/packages/xdisorg.scm, gnu/packages/xiph.scm,
gnu/packages/yasm.scm, gnu/packages/zip.scm: Use 'non-copyleft'
instead of 'bsd-style'.
2015-03-14 19:26:34 +01:00
|
|
|
(license (license:non-copyleft "file://LICENSE"
|
2013-01-30 21:31:50 +01:00
|
|
|
"See LICENSE in the distribution."))
|
2018-07-30 13:41:14 +02:00
|
|
|
(home-page "https://www.openssh.com/")))
|
2013-01-30 21:31:50 +01:00
|
|
|
|
2013-12-04 22:24:28 +01:00
|
|
|
(define-public guile-ssh
|
|
|
|
(package
|
|
|
|
(name "guile-ssh")
|
2018-08-20 16:31:13 +02:00
|
|
|
(version "0.11.3")
|
2016-11-25 17:30:32 +01:00
|
|
|
(home-page "https://github.com/artyom-poptsov/guile-ssh")
|
2013-12-04 22:24:28 +01:00
|
|
|
(source (origin
|
2019-01-14 22:44:53 +01:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url home-page)
|
|
|
|
(commit (string-append "v" version))))
|
2016-11-25 17:30:32 +01:00
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
2013-12-04 22:24:28 +01:00
|
|
|
(sha256
|
|
|
|
(base32
|
2019-01-14 22:44:53 +01:00
|
|
|
"03bv3hwp2s8f0bqgfjaan9jx4dyab0abv27n2zn2g0izlidv0vl6"))
|
2019-01-14 22:24:01 +01:00
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
'(begin
|
|
|
|
;; libssh >= 0.8.0 no longer provides libssh_threads: see
|
|
|
|
;; <https://github.com/artyom-poptsov/guile-ssh/issues/9>.
|
|
|
|
(substitute* "libguile-ssh/Makefile.am"
|
|
|
|
(("-lssh_threads") ""))
|
|
|
|
|
|
|
|
;; This test would wrongfully pick DSS keys when running on
|
|
|
|
;; libssh >= 0.8.0, which fails:
|
|
|
|
;; <https://github.com/artyom-poptsov/guile-ssh/issues/10>.
|
|
|
|
(substitute* "tests/server.scm"
|
|
|
|
(("= %libssh-minor-version 7")
|
|
|
|
">= %libssh-minor-version 7"))
|
|
|
|
#t))))
|
2013-12-04 22:24:28 +01:00
|
|
|
(build-system gnu-build-system)
|
2017-05-20 19:49:36 +02:00
|
|
|
(outputs '("out" "debug"))
|
2013-12-04 22:24:28 +01:00
|
|
|
(arguments
|
2018-08-21 23:15:46 +02:00
|
|
|
'(;; It makes no sense to build libguile-ssh.a.
|
|
|
|
#:configure-flags '("--disable-static")
|
|
|
|
|
|
|
|
#:phases (modify-phases %standard-phases
|
2016-10-08 16:09:28 +02:00
|
|
|
(add-after 'unpack 'autoreconf
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
2018-06-22 21:35:48 +02:00
|
|
|
(invoke "autoreconf" "-vfi")))
|
2016-10-08 16:34:53 +02:00
|
|
|
(add-before 'build 'fix-libguile-ssh-file-name
|
2016-10-08 16:09:28 +02:00
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
2016-10-08 16:34:53 +02:00
|
|
|
;; Build and install libguile-ssh.so so that we can use
|
|
|
|
;; its absolute file name in .scm files, before we build
|
|
|
|
;; the .go files.
|
2018-06-22 21:35:48 +02:00
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(lib (string-append out "/lib")))
|
|
|
|
(invoke "make" "install"
|
|
|
|
"-C" "libguile-ssh"
|
|
|
|
"-j" (number->string
|
|
|
|
(parallel-job-count)))
|
|
|
|
(substitute* (find-files "." "\\.scm$")
|
|
|
|
(("\"libguile-ssh\"")
|
|
|
|
(string-append "\"" lib "/libguile-ssh\"")))
|
|
|
|
#t)))
|
2018-04-25 14:55:26 +02:00
|
|
|
(add-after 'install 'remove-bin-directory
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
(examples (string-append
|
|
|
|
out "/share/guile-ssh/examples")))
|
|
|
|
(mkdir-p examples)
|
|
|
|
(rename-file (string-append bin "/ssshd.scm")
|
|
|
|
(string-append examples "/ssshd.scm"))
|
|
|
|
(rename-file (string-append bin "/sssh.scm")
|
|
|
|
(string-append examples "/sssh.scm"))
|
|
|
|
(delete-file-recursively bin)
|
|
|
|
#t))))
|
2014-03-25 16:14:45 +01:00
|
|
|
;; Tests are not parallel-safe.
|
|
|
|
#:parallel-tests? #f))
|
2013-12-04 22:24:28 +01:00
|
|
|
(native-inputs `(("autoconf" ,autoconf)
|
|
|
|
("automake" ,automake)
|
2015-01-07 09:44:10 +01:00
|
|
|
("libtool" ,libtool)
|
2014-03-01 15:41:18 +01:00
|
|
|
("texinfo" ,texinfo)
|
2013-12-04 22:24:28 +01:00
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
("which" ,which)))
|
2017-05-13 21:53:53 +02:00
|
|
|
(inputs `(("guile" ,guile-2.2)
|
2016-10-09 14:57:21 +02:00
|
|
|
("libssh" ,libssh)
|
2015-09-01 13:46:35 +02:00
|
|
|
("libgcrypt" ,libgcrypt)))
|
2013-12-04 22:24:28 +01:00
|
|
|
(synopsis "Guile bindings to libssh")
|
|
|
|
(description
|
|
|
|
"Guile-SSH is a library that provides access to the SSH protocol for
|
|
|
|
programs written in GNU Guile interpreter. It is a wrapper to the underlying
|
|
|
|
libssh library.")
|
|
|
|
(license license:gpl3+)))
|
2014-01-25 01:51:29 +01:00
|
|
|
|
2017-05-13 21:53:53 +02:00
|
|
|
(define-public guile2.0-ssh
|
2017-05-09 16:06:11 +02:00
|
|
|
(package
|
|
|
|
(inherit guile-ssh)
|
2017-05-13 21:53:53 +02:00
|
|
|
(name "guile2.0-ssh")
|
|
|
|
(inputs `(("guile" ,guile-2.0)
|
2017-05-09 16:06:11 +02:00
|
|
|
,@(alist-delete "guile" (package-inputs guile-ssh))))))
|
2017-04-22 01:18:07 +02:00
|
|
|
|
2014-01-25 01:51:29 +01:00
|
|
|
(define-public corkscrew
|
|
|
|
(package
|
|
|
|
(name "corkscrew")
|
|
|
|
(version "2.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
2017-03-27 16:57:36 +02:00
|
|
|
;; The agroman.net domain name expired on 2017-03-23, and the original
|
|
|
|
;; "http://www.agroman.net/corkscrew/corkscrew-2.0.tar.gz" now returns
|
|
|
|
;; bogus HTML. Perhaps it will yet return. Until then, use a mirror.
|
|
|
|
(uri (string-append "https://downloads.openwrt.org/sources/"
|
|
|
|
"corkscrew-" version ".tar.gz"))
|
2014-01-25 01:51:29 +01:00
|
|
|
(sha256 (base32
|
|
|
|
"1gmhas4va6gd70i2x2mpxpwpgww6413mji29mg282jms3jscn3qd"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2018-06-22 21:45:30 +02:00
|
|
|
`(#:phases
|
2016-08-11 11:35:21 +02:00
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'configure
|
2018-06-22 21:49:05 +02:00
|
|
|
;; Replace configure phase as the ./configure script does not like
|
|
|
|
;; CONFIG_SHELL and SHELL passed as parameters
|
|
|
|
(lambda* (#:key outputs build target #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(bash (which "bash"))
|
2016-08-11 11:35:21 +02:00
|
|
|
;; Set --build and --host flags as the provided config.guess
|
|
|
|
;; is not able to detect them
|
2018-06-22 21:49:05 +02:00
|
|
|
(flags `(,(string-append "--prefix=" out)
|
2016-08-11 11:35:21 +02:00
|
|
|
,(string-append "--build=" build)
|
|
|
|
,(string-append "--host=" (or target build)))))
|
|
|
|
(setenv "CONFIG_SHELL" bash)
|
2018-06-22 21:49:05 +02:00
|
|
|
(apply invoke bash "./configure" flags))))
|
2017-03-27 20:10:44 +02:00
|
|
|
(add-after 'install 'install-documentation
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
2018-06-22 21:45:30 +02:00
|
|
|
(doc (string-append out "/share/doc/" ,name "-" ,version)))
|
2017-03-27 20:10:44 +02:00
|
|
|
(install-file "README" doc)
|
|
|
|
#t))))))
|
2014-01-25 01:51:29 +01:00
|
|
|
(home-page "http://www.agroman.net/corkscrew")
|
2017-03-27 17:31:54 +02:00
|
|
|
(synopsis "SSH tunneling through HTTP(S) proxies")
|
2014-01-25 01:51:29 +01:00
|
|
|
(description
|
2017-03-27 17:31:54 +02:00
|
|
|
"Corkscrew tunnels SSH connections through most HTTP and HTTPS proxies.
|
|
|
|
Proxy authentication is only supported through the plain-text HTTP basic
|
|
|
|
authentication scheme.")
|
2014-01-25 01:51:29 +01:00
|
|
|
(license license:gpl2+)))
|
2014-04-11 22:05:33 +02:00
|
|
|
|
|
|
|
(define-public mosh
|
|
|
|
(package
|
|
|
|
(name "mosh")
|
2017-07-23 01:26:33 +02:00
|
|
|
(version "1.3.2")
|
2014-04-11 22:05:33 +02:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2016-08-11 11:07:43 +02:00
|
|
|
(uri (string-append "https://mosh.org/mosh-" version ".tar.gz"))
|
2014-04-11 22:05:33 +02:00
|
|
|
(sha256
|
|
|
|
(base32
|
2017-07-23 01:26:33 +02:00
|
|
|
"05hjhlp6lk8yjcy59zywpf0r6s0h0b9zxq0lw66dh9x8vxrhaq6s"))))
|
2014-04-11 22:05:33 +02:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2016-08-11 11:09:12 +02:00
|
|
|
'(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'install 'wrap
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
;; Make sure 'mosh' can find 'mosh-client' and
|
|
|
|
;; 'mosh-server'.
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(bin (string-append out "/bin")))
|
|
|
|
(wrap-program (string-append bin "/mosh")
|
|
|
|
`("PATH" ":" prefix (,bin)))))))))
|
2014-04-11 22:05:33 +02:00
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
(inputs
|
|
|
|
`(("openssl" ,openssl)
|
|
|
|
("perl" ,perl)
|
|
|
|
("perl-io-tty" ,perl-io-tty)
|
|
|
|
("zlib" ,zlib)
|
|
|
|
("ncurses" ,ncurses)
|
|
|
|
("protobuf" ,protobuf)
|
|
|
|
("boost-headers" ,boost)))
|
2016-08-11 11:07:43 +02:00
|
|
|
(home-page "https://mosh.org/")
|
2014-04-11 22:05:33 +02:00
|
|
|
(synopsis "Remote shell tolerant to intermittent connectivity")
|
|
|
|
(description
|
|
|
|
"Remote terminal application that allows roaming, supports intermittent
|
|
|
|
connectivity, and provides intelligent local echo and line editing of user
|
|
|
|
keystrokes. Mosh is a replacement for SSH. It's more robust and responsive,
|
|
|
|
especially over Wi-Fi, cellular, and long-distance links.")
|
|
|
|
(license license:gpl3+)))
|
2014-06-12 14:46:39 +02:00
|
|
|
|
2017-07-04 22:04:09 +02:00
|
|
|
(define-public et
|
|
|
|
(package
|
|
|
|
(name "et")
|
|
|
|
(version "3.1.0")
|
|
|
|
(source
|
|
|
|
(origin
|
2019-05-17 01:46:25 +02:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/MisterTea/EternalTCP.git")
|
|
|
|
(commit (string-append "et-v" version))))
|
2019-05-17 03:22:26 +02:00
|
|
|
(file-name (git-file-name name version))
|
2017-07-04 22:04:09 +02:00
|
|
|
(sha256
|
2019-05-17 01:46:25 +02:00
|
|
|
(base32 "1m5caxckn2ihwp9s2pbyh5amxlpwr7yc54q8s0kb10fr52w2vfnm"))))
|
2017-07-04 22:04:09 +02:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments `(#:tests? #f))
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
(inputs `(("glog" ,glog)
|
|
|
|
("gflags" ,gflags)
|
|
|
|
("libsodium" ,libsodium)
|
|
|
|
("protobuf" ,protobuf)))
|
|
|
|
(synopsis "Remote shell that automatically reconnects")
|
|
|
|
(description
|
|
|
|
"Eternal Terminal (ET) is a remote shell that automatically reconnects
|
|
|
|
without interrupting the session. Unlike SSH sessions, ET sessions will
|
2017-07-12 06:02:46 +02:00
|
|
|
survive even network outages and IP changes. ET uses a custom protocol over
|
|
|
|
TCP, not the SSH protocol.")
|
2017-07-04 22:04:09 +02:00
|
|
|
(home-page "https://mistertea.github.io/EternalTCP/")
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
2014-06-12 14:46:39 +02:00
|
|
|
(define-public dropbear
|
|
|
|
(package
|
|
|
|
(name "dropbear")
|
2019-03-28 20:04:03 +01:00
|
|
|
(version "2019.78")
|
2019-03-23 16:02:35 +01:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"https://matt.ucc.asn.au/dropbear/releases/"
|
|
|
|
"dropbear-" version ".tar.bz2"))
|
|
|
|
(sha256
|
2019-03-28 20:04:03 +01:00
|
|
|
(base32 "19242qlr40pbqfqd0gg6h8qpj38q6lgv03ja6sahj9vj2abnanaj"))))
|
2014-06-12 14:46:39 +02:00
|
|
|
(build-system gnu-build-system)
|
2019-03-23 16:02:35 +01:00
|
|
|
(arguments `(#:tests? #f)) ; there is no "make check" or anything similar
|
2019-02-11 05:03:22 +01:00
|
|
|
;; TODO: Investigate unbundling libtommath and libtomcrypt or at least
|
|
|
|
;; cherry-picking important bug fixes from them. See <bugs.gnu.org/24674>
|
|
|
|
;; for more information.
|
2014-06-12 14:46:39 +02:00
|
|
|
(inputs `(("zlib" ,zlib)))
|
|
|
|
(synopsis "Small SSH server and client")
|
|
|
|
(description "Dropbear is a relatively small SSH server and
|
gnu: Some cleanup based on lint checkers.
* gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm,
gnu/packages/apr.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm,
gnu/packages/base.scm, gnu/packages/calcurse.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/compression.scm, gnu/packages/cook.scm,
gnu/packages/crypto.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm,
gnu/packages/doxygen.scm, gnu/packages/dwm.scm, gnu/packages/elf.scm,
gnu/packages/emacs.scm, gnu/packages/feh.scm, gnu/packages/file.scm,
gnu/packages/fish.scm, gnu/packages/flex.scm, gnu/packages/fltk.scm,
gnu/packages/fontutils.scm, gnu/packages/games.scm, gnu/packages/gcal.scm,
gnu/packages/gcc.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gperf.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile.scm,
gnu/packages/hurd.scm, gnu/packages/icu4c.scm, gnu/packages/image.scm,
gnu/packages/imagemagick.scm, gnu/packages/irssi.scm, gnu/packages/kde.scm,
gnu/packages/libdaemon.scm, gnu/packages/libevent.scm,
gnu/packages/libidn.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm,
gnu/packages/lout.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm,
gnu/packages/lua.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm,
gnu/packages/mp3.scm, gnu/packages/netpbm.scm, gnu/packages/noweb.scm,
gnu/packages/ocaml.scm, gnu/packages/openssl.scm, gnu/packages/pcre.scm,
gnu/packages/pdf.scm, gnu/packages/pkg-config.scm,
gnu/packages/pretty-print.scm, gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/scheme.scm, gnu/packages/scrot.scm,
gnu/packages/sdl.scm, gnu/packages/skribilo.scm, gnu/packages/ssh.scm,
gnu/packages/stalonetray.scm, gnu/packages/tcl.scm, gnu/packages/tcsh.scm,
gnu/packages/telephony.scm, gnu/packages/texlive.scm, gnu/packages/tor.scm,
gnu/packages/valgrind.scm, gnu/packages/version-control.scm,
gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/web.scm, gnu/packages/wordnet.scm, gnu/packages/xiph.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/zile.scm,
gnu/packages/zip.scm, gnu/packages/zsh.scm [synopsis, description]: Adjust
according to lint checkers.
* gnu/packages/fltk.scm (fltk)[source]: Wrap long line in uri.
* /gnu/packages/xiph.scm (libogg, libtheora, vorbis-tools)[source]: Same.
2014-10-24 06:46:59 +02:00
|
|
|
client. It runs on a variety of POSIX-based platforms. Dropbear is
|
|
|
|
particularly useful for embedded systems, such as wireless routers.")
|
2014-06-12 14:46:39 +02:00
|
|
|
(home-page "https://matt.ucc.asn.au/dropbear/dropbear.html")
|
|
|
|
(license (license:x11-style "" "See file LICENSE."))))
|
2016-07-13 18:13:11 +02:00
|
|
|
|
|
|
|
(define-public liboop
|
|
|
|
(package
|
|
|
|
(name "liboop")
|
2018-03-10 23:59:01 +01:00
|
|
|
(version "1.0.1")
|
2016-07-13 18:13:11 +02:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
2018-03-10 23:59:01 +01:00
|
|
|
(uri (string-append "http://ftp.lysator.liu.se/pub/liboop/"
|
|
|
|
name "-" version ".tar.gz"))
|
2016-07-13 18:13:11 +02:00
|
|
|
(sha256
|
|
|
|
(base32
|
2018-03-10 23:59:01 +01:00
|
|
|
"1q0p1l72pq9k3bi7a366j2rishv7dzzkg3i6r2npsfg7cnnidbsn"))))
|
2016-07-13 18:13:11 +02:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(home-page "http://www.lysator.liu.se/liboop/")
|
|
|
|
(synopsis "Event loop library")
|
|
|
|
(description "Liboop is a low-level event loop management library for
|
|
|
|
POSIX-based operating systems. It supports the development of modular,
|
|
|
|
multiplexed applications which may respond to events from several sources. It
|
|
|
|
replaces the \"select() loop\" and allows the registration of event handlers
|
|
|
|
for file and network I/O, timers and signals. Since processes use these
|
|
|
|
mechanisms for almost all external communication, liboop can be used as the
|
|
|
|
basis for almost any application.")
|
|
|
|
(license license:lgpl2.1+)))
|
|
|
|
|
|
|
|
(define-public lsh
|
|
|
|
(package
|
|
|
|
(name "lsh")
|
|
|
|
(version "2.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://gnu/lsh/lsh-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1qqjy9zfzgny0rkb27c8c7dfsylvb6n0ld8h3an2r83pmaqr9gwb"))
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
'(begin
|
|
|
|
(substitute* "src/testsuite/functions.sh"
|
|
|
|
(("localhost")
|
|
|
|
;; Avoid host name lookups since they don't work in
|
|
|
|
;; chroot builds.
|
|
|
|
"127.0.0.1")
|
|
|
|
(("set -e")
|
|
|
|
;; Make tests more verbose.
|
|
|
|
"set -e\nset -x"))
|
|
|
|
|
|
|
|
(substitute* (find-files "src/testsuite" "-test$")
|
|
|
|
(("localhost") "127.0.0.1"))
|
|
|
|
|
|
|
|
(substitute* "src/testsuite/login-auth-test"
|
gnu: All snippets report errors using exceptions, else return #t.
* gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm,
gnu/packages/backup.scm, gnu/packages/base.scm,
gnu/packages/bioinformatics.scm, gnu/packages/cdrom.scm,
gnu/packages/chez.scm, gnu/packages/code.scm, gnu/packages/compression.scm,
gnu/packages/cross-base.scm, gnu/packages/crypto.scm, gnu/packages/cups.scm,
gnu/packages/databases.scm, gnu/packages/dns.scm, gnu/packages/emacs.scm,
gnu/packages/emulators.scm, gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm, gnu/packages/fpga.scm,
gnu/packages/freedesktop.scm, gnu/packages/ftp.scm, gnu/packages/games.scm,
gnu/packages/gcc.scm, gnu/packages/geo.scm, gnu/packages/ghostscript.scm,
gnu/packages/gl.scm, gnu/packages/glib.scm, gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm, gnu/packages/graphics.scm, gnu/packages/gtk.scm,
gnu/packages/guile.scm, gnu/packages/irc.scm, gnu/packages/java.scm,
gnu/packages/kerberos.scm, gnu/packages/linux.scm, gnu/packages/lisp.scm,
gnu/packages/lxde.scm, gnu/packages/machine-learning.scm,
gnu/packages/mail.scm, gnu/packages/maths.scm, gnu/packages/messaging.scm,
gnu/packages/monitoring.scm, gnu/packages/mp3.scm, gnu/packages/music.scm,
gnu/packages/netpbm.scm, gnu/packages/networking.scm, gnu/packages/node.scm,
gnu/packages/nvi.scm, gnu/packages/ocaml.scm, gnu/packages/pdf.scm,
gnu/packages/perl.scm, gnu/packages/php.scm, gnu/packages/plotutils.scm,
gnu/packages/pretty-print.scm, gnu/packages/profiling.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm,
gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/robotics.scm,
gnu/packages/sawfish.scm, gnu/packages/scanner.scm, gnu/packages/scheme.scm,
gnu/packages/scribus.scm, gnu/packages/sdl.scm,
gnu/packages/serialization.scm, gnu/packages/shells.scm,
gnu/packages/slang.scm, gnu/packages/smalltalk.scm, gnu/packages/ssh.scm,
gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/tbb.scm,
gnu/packages/terminals.scm, gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm, gnu/packages/textutils.scm,
gnu/packages/tls.scm, gnu/packages/unrtf.scm,
gnu/packages/version-control.scm, gnu/packages/video.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xorg.scm:
In all snippets, report errors using exceptions, or else return #t.
2018-03-16 12:47:34 +01:00
|
|
|
(("/bin/cat") "cat"))
|
|
|
|
#t))))
|
2016-07-13 18:13:11 +02:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs
|
|
|
|
`(("m4" ,m4)
|
|
|
|
("guile" ,guile-2.0)
|
|
|
|
("gperf" ,gperf)
|
|
|
|
("psmisc" ,psmisc))) ; for `killall'
|
|
|
|
(inputs
|
|
|
|
`(("nettle" ,nettle-2)
|
|
|
|
("linux-pam" ,linux-pam)
|
|
|
|
|
|
|
|
;; 'rl.c' uses the 'CPPFunction' type, which is no longer in
|
|
|
|
;; Readline 6.3.
|
|
|
|
("readline" ,readline-6.2)
|
|
|
|
|
|
|
|
("liboop" ,liboop)
|
|
|
|
("zlib" ,zlib)
|
|
|
|
("gmp" ,gmp)
|
|
|
|
|
|
|
|
;; The server (lshd) invokes xauth when X11 forwarding is requested.
|
|
|
|
;; This adds 24 MiB (or 27%) to the closure of lsh.
|
|
|
|
("xauth" ,xauth)))
|
|
|
|
(arguments
|
|
|
|
'(;; Skip the `configure' test that checks whether /dev/ptmx &
|
|
|
|
;; co. work as expected, because it relies on impurities (for
|
|
|
|
;; instance, /dev/pts may be unavailable in chroots.)
|
2017-03-19 23:28:27 +01:00
|
|
|
#:configure-flags '("lsh_cv_sys_unix98_ptys=yes"
|
|
|
|
|
|
|
|
;; Use glibc's argp rather than the bundled one.
|
|
|
|
"--with-system-argp"
|
|
|
|
|
|
|
|
;; 'lsh_argp.h' checks HAVE_ARGP_PARSE but nothing
|
|
|
|
;; defines it.
|
|
|
|
"CPPFLAGS=-DHAVE_ARGP_PARSE")
|
2016-07-13 18:13:11 +02:00
|
|
|
|
|
|
|
;; FIXME: Tests won't run in a chroot, presumably because
|
|
|
|
;; /etc/profile is missing, and thus clients get an empty $PATH
|
|
|
|
;; and nothing works.
|
|
|
|
#:tests? #f
|
|
|
|
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-before 'configure 'pre-configure
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(let* ((nettle (assoc-ref inputs "nettle"))
|
|
|
|
(sexp-conv (string-append nettle "/bin/sexp-conv")))
|
2017-03-19 23:28:27 +01:00
|
|
|
;; Remove argp from the list of sub-directories; we don't want
|
|
|
|
;; to build it, really.
|
|
|
|
(substitute* "src/Makefile.in"
|
|
|
|
(("^SUBDIRS = argp")
|
|
|
|
"SUBDIRS ="))
|
|
|
|
|
2016-07-13 18:13:11 +02:00
|
|
|
;; Make sure 'lsh' and 'lshd' pick 'sexp-conv' in the right place
|
|
|
|
;; by default.
|
|
|
|
(substitute* "src/environ.h.in"
|
|
|
|
(("^#define PATH_SEXP_CONV.*")
|
|
|
|
(string-append "#define PATH_SEXP_CONV \""
|
|
|
|
sexp-conv "\"\n")))
|
|
|
|
|
|
|
|
;; Same for the 'lsh-authorize' script.
|
|
|
|
(substitute* "src/lsh-authorize"
|
|
|
|
(("=sexp-conv")
|
|
|
|
(string-append "=" sexp-conv)))
|
|
|
|
|
|
|
|
;; Tell lshd where 'xauth' lives. Another option would be to
|
|
|
|
;; hardcode "/run/current-system/profile/bin/xauth", thereby
|
|
|
|
;; reducing the closure size, but that wouldn't work on foreign
|
|
|
|
;; distros.
|
|
|
|
(with-fluids ((%default-port-encoding "ISO-8859-1"))
|
|
|
|
(substitute* "src/server_x11.c"
|
|
|
|
(("define XAUTH_PROGRAM.*")
|
|
|
|
(string-append "define XAUTH_PROGRAM \""
|
|
|
|
(assoc-ref inputs "xauth")
|
|
|
|
"/bin/xauth\"\n")))))
|
|
|
|
|
|
|
|
;; Tests rely on $USER being set.
|
|
|
|
(setenv "USER" "guix"))))))
|
|
|
|
(home-page "http://www.lysator.liu.se/~nisse/lsh/")
|
|
|
|
(synopsis "GNU implementation of the Secure Shell (ssh) protocols")
|
|
|
|
(description
|
|
|
|
"GNU lsh is a free implementation of the SSH version 2 protocol. It is
|
|
|
|
used to create a secure line of communication between two computers,
|
|
|
|
providing shell access to the server system from the client. It provides
|
|
|
|
both the server daemon and the client application, as well as tools for
|
|
|
|
manipulating key files.")
|
|
|
|
(license license:gpl2+)))
|
2016-07-27 19:45:02 +02:00
|
|
|
|
|
|
|
(define-public sshpass
|
|
|
|
(package
|
|
|
|
(name "sshpass")
|
|
|
|
(version "1.06")
|
|
|
|
(synopsis "Non-interactive password authentication with SSH")
|
|
|
|
(home-page "https://sourceforge.net/projects/sshpass/")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://sourceforge/sshpass/sshpass/"
|
|
|
|
version "/sshpass-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0q7fblaczb7kwbsz0gdy9267z0sllzgmf0c7z5c9mf88wv74ycn6"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(description "sshpass is a tool for non-interactivly performing password
|
|
|
|
authentication with SSH's so-called @dfn{interactive keyboard password
|
|
|
|
authentication}.")
|
|
|
|
(license license:gpl2+)))
|
2016-02-09 01:01:49 +01:00
|
|
|
|
|
|
|
(define-public autossh
|
|
|
|
(package
|
|
|
|
(name "autossh")
|
2019-02-04 21:15:38 +01:00
|
|
|
(version "1.4g")
|
2016-02-09 01:01:49 +01:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
2019-02-04 21:15:25 +01:00
|
|
|
"https://www.harding.motd.ca/autossh/autossh-"
|
2016-02-09 01:01:49 +01:00
|
|
|
version ".tgz"))
|
|
|
|
(sha256
|
2019-02-04 21:15:38 +01:00
|
|
|
(base32 "0xqjw8df68f4kzkns5gcah61s5wk0m44qdk2z1d6388w6viwxhsz"))))
|
2016-02-09 01:01:49 +01:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments `(#:tests? #f)) ; There is no "make check" or anything similar
|
|
|
|
(inputs `(("openssh" ,openssh)))
|
|
|
|
(synopsis "Automatically restart SSH sessions and tunnels")
|
|
|
|
(description "autossh is a program to start a copy of @command{ssh} and
|
|
|
|
monitor it, restarting it as necessary should it die or stop passing traffic.")
|
2019-02-04 21:15:25 +01:00
|
|
|
(home-page "https://www.harding.motd.ca/autossh/")
|
2016-02-09 01:01:49 +01:00
|
|
|
(license
|
|
|
|
;; Why point to a source file? Well, all the individual files have a
|
|
|
|
;; copy of this license in their headers, but there's no separate file
|
|
|
|
;; with that information.
|
|
|
|
(license:non-copyleft "file://autossh.c"))))
|
2017-09-29 16:15:57 +02:00
|
|
|
|
|
|
|
(define-public pdsh
|
|
|
|
(package
|
|
|
|
(name "pdsh")
|
2017-12-24 12:57:18 +01:00
|
|
|
(version "2.33")
|
2017-09-29 16:15:57 +02:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
2017-12-24 12:57:18 +01:00
|
|
|
(uri (string-append "https://github.com/chaos/pdsh/"
|
|
|
|
"releases/download/pdsh-" version
|
|
|
|
"/pdsh-" version ".tar.gz"))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
2017-09-29 16:15:57 +02:00
|
|
|
(sha256
|
2017-12-24 12:57:18 +01:00
|
|
|
(base32 "0bwlkl9inj66iwvafg00pi3sk9n673phdi0kcc59y9nn55s0hs3k"))))
|
2017-09-29 16:15:57 +02:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:configure-flags
|
|
|
|
(list "--with-ssh")
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'patch-/bin/sh
|
|
|
|
(lambda _
|
2017-12-24 12:57:18 +01:00
|
|
|
(substitute* '("tests/t0006-pdcp.sh"
|
|
|
|
"tests/t0004-module-loading.sh"
|
|
|
|
"tests/t2001-ssh.sh"
|
|
|
|
"tests/t1003-slurm.sh"
|
|
|
|
"tests/t6036-long-output-lines.sh"
|
|
|
|
"tests/aggregate-results.sh"
|
|
|
|
"tests/t2000-exec.sh"
|
|
|
|
"tests/t0002-internal.sh"
|
|
|
|
"tests/t1002-dshgroup.sh"
|
|
|
|
"tests/t5000-dshbak.sh"
|
|
|
|
"tests/t0001-basic.sh"
|
|
|
|
"tests/t0005-rcmd_type-and-user.sh"
|
2017-09-29 16:15:57 +02:00
|
|
|
"tests/test-lib.sh"
|
2017-12-24 12:57:18 +01:00
|
|
|
"tests/t2002-mrsh.sh"
|
|
|
|
"tests/t0003-wcoll.sh"
|
2017-09-29 16:15:57 +02:00
|
|
|
"tests/test-modules/pcptest.c")
|
|
|
|
(("/bin/sh") (which "bash")))
|
2017-12-24 12:57:18 +01:00
|
|
|
#t))
|
|
|
|
(add-after 'unpack 'patch-tests
|
|
|
|
(lambda _
|
|
|
|
(substitute* "tests/t6036-long-output-lines.sh"
|
|
|
|
(("which") (which "which")))
|
2017-09-29 16:15:57 +02:00
|
|
|
#t)))))
|
|
|
|
(inputs
|
|
|
|
`(("openssh" ,openssh)
|
|
|
|
("mit-krb5" ,mit-krb5)
|
|
|
|
("perl" ,perl)))
|
2017-12-24 12:57:18 +01:00
|
|
|
(native-inputs
|
|
|
|
`(("which" ,which)))
|
|
|
|
(home-page "https://github.com/chaos/pdsh")
|
2017-09-29 16:15:57 +02:00
|
|
|
(synopsis "Parallel distributed shell")
|
|
|
|
(description "Pdsh is a an efficient, multithreaded remote shell client
|
|
|
|
which executes commands on multiple remote hosts in parallel. Pdsh implements
|
|
|
|
dynamically loadable modules for extended functionality such as new remote
|
|
|
|
shell services and remote host selection.")
|
|
|
|
(license license:gpl2+)))
|
2018-08-31 16:55:57 +02:00
|
|
|
|
|
|
|
(define-public clustershell
|
|
|
|
(package
|
|
|
|
(name "clustershell")
|
|
|
|
(version "1.8")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/cea-hpc/clustershell/archive/v"
|
|
|
|
version
|
|
|
|
".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32 "1qyf6zp5ikk8rk7zvx5ssbgr9si2bqv3a3415590kd07s7i16nmd"))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(inputs `(("openssh" ,openssh)))
|
|
|
|
(propagated-inputs `(("python-pyyaml" ,python-pyyaml)))
|
|
|
|
(arguments
|
|
|
|
`(#:phases (modify-phases %standard-phases
|
|
|
|
(add-before 'build 'record-openssh-file-name
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(let ((ssh (assoc-ref inputs "openssh")))
|
|
|
|
(substitute* "lib/ClusterShell/Worker/Ssh.py"
|
|
|
|
(("info\\(\"ssh_path\"\\) or \"ssh\"")
|
|
|
|
(string-append "info(\"ssh_path\") or \""
|
|
|
|
ssh "/bin/ssh\"")))
|
|
|
|
#t))))))
|
|
|
|
(home-page "https://cea-hpc.github.io/clustershell/")
|
|
|
|
(synopsis "Scalable event-driven Python framework for cluster administration")
|
|
|
|
(description
|
|
|
|
"ClusterShell is an event-driven Python framework, designed to run local
|
|
|
|
or distant commands in parallel on server farms or on large GNU/Linux
|
|
|
|
clusters. It will take care of common issues encountered on HPC clusters,
|
|
|
|
such as operating on groups of nodes, running distributed commands using
|
|
|
|
optimized execution algorithms, as well as gathering results and merging
|
|
|
|
identical outputs, or retrieving return codes. ClusterShell takes advantage
|
|
|
|
of existing remote shell facilities such as SSH.")
|
|
|
|
(license license:lgpl2.1+)))
|