2013-01-06 00:47:50 +01:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2016-02-23 18:20:47 +01:00
|
|
|
;;; Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
|
2012-12-04 22:03:21 +01:00
|
|
|
;;;
|
2013-01-06 00:47:50 +01:00
|
|
|
;;; This file is part of GNU Guix.
|
2012-12-04 22:03:21 +01:00
|
|
|
;;;
|
2013-01-06 00:47:50 +01:00
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
2012-12-04 22:03:21 +01:00
|
|
|
;;; 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.
|
|
|
|
;;;
|
2013-01-06 00:47:50 +01:00
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
2012-12-04 22:03:21 +01:00
|
|
|
;;; 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
|
2013-01-06 00:47:50 +01:00
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
2012-12-04 22:03:21 +01:00
|
|
|
|
2013-01-18 01:06:24 +01:00
|
|
|
(define-module (gnu packages lsh)
|
2016-06-16 13:08:57 +02:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2012-12-04 22:03:21 +01:00
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module (guix build-system gnu)
|
2013-01-18 01:06:47 +01:00
|
|
|
#:use-module (gnu packages)
|
2013-01-18 01:06:24 +01:00
|
|
|
#:use-module (gnu packages m4)
|
|
|
|
#:use-module (gnu packages linux)
|
2013-06-27 22:27:26 +02:00
|
|
|
#:use-module (gnu packages nettle)
|
2016-06-16 13:08:57 +02:00
|
|
|
#:use-module (gnu packages compression)
|
2013-01-18 01:06:24 +01:00
|
|
|
#:use-module (gnu packages multiprecision)
|
|
|
|
#:use-module (gnu packages readline)
|
|
|
|
#:use-module (gnu packages gperf)
|
2016-02-24 12:24:30 +01:00
|
|
|
#:use-module (gnu packages guile)
|
|
|
|
#:use-module (gnu packages xorg))
|
2012-12-04 22:03:21 +01:00
|
|
|
|
|
|
|
(define-public liboop
|
|
|
|
(package
|
|
|
|
(name "liboop")
|
|
|
|
(version "1.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://download.ofb.net/liboop/liboop-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2013-11-02 23:12:36 +01:00
|
|
|
"0z6rlalhvfca64jpvksppc9bdhs7jwhiw4y35g5ibvh91xp3rn1l"))
|
2016-04-08 14:18:13 +02:00
|
|
|
(patches (search-patches "liboop-mips64-deplibs-fix.patch"))))
|
2012-12-04 22:03:21 +01:00
|
|
|
(build-system gnu-build-system)
|
2013-07-01 11:43:23 +02:00
|
|
|
(home-page "http://www.lysator.liu.se/liboop/")
|
|
|
|
(synopsis "Event loop library")
|
|
|
|
(description "Liboop is a low-level event loop management library for
|
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
|
|
|
POSIX-based operating systems. It supports the development of modular,
|
|
|
|
multiplexed applications which may respond to events from several sources. It
|
2013-07-01 11:43:23 +02:00
|
|
|
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.")
|
2016-06-16 13:08:57 +02:00
|
|
|
(license license:lgpl2.1+)))
|
2012-12-04 22:03:21 +01:00
|
|
|
|
|
|
|
(define-public lsh
|
|
|
|
(package
|
|
|
|
(name "lsh")
|
2013-06-27 22:27:26 +02:00
|
|
|
(version "2.1")
|
2014-01-05 23:46:45 +01:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://gnu/lsh/lsh-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1qqjy9zfzgny0rkb27c8c7dfsylvb6n0ld8h3an2r83pmaqr9gwb"))
|
2014-02-28 12:22:14 +01:00
|
|
|
(modules '((guix build utils)))
|
2014-01-05 23:46:45 +01:00
|
|
|
(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"
|
|
|
|
(("/bin/cat") "cat"))))))
|
2012-12-04 22:03:21 +01:00
|
|
|
(build-system gnu-build-system)
|
2014-01-04 16:44:51 +01:00
|
|
|
(native-inputs
|
|
|
|
`(("m4" ,m4)
|
|
|
|
("guile" ,guile-2.0)
|
|
|
|
("gperf" ,gperf)
|
|
|
|
("psmisc" ,psmisc))) ; for `killall'
|
2012-12-04 22:03:21 +01:00
|
|
|
(inputs
|
2015-04-09 18:32:32 +02:00
|
|
|
`(("nettle" ,nettle-2)
|
2013-06-27 22:27:26 +02:00
|
|
|
("linux-pam" ,linux-pam)
|
2014-04-04 17:30:15 +02:00
|
|
|
|
|
|
|
;; 'rl.c' uses the 'CPPFunction' type, which is no longer in
|
|
|
|
;; Readline 6.3.
|
|
|
|
("readline" ,readline-6.2)
|
|
|
|
|
2012-12-04 22:03:21 +01:00
|
|
|
("liboop" ,liboop)
|
2016-06-16 13:08:57 +02:00
|
|
|
("zlib" ,zlib)
|
2016-02-24 12:24:30 +01:00
|
|
|
("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)))
|
2012-12-04 22:03:21 +01:00
|
|
|
(arguments
|
2013-06-27 22:27:26 +02:00
|
|
|
'(;; Skip the `configure' test that checks whether /dev/ptmx &
|
2012-12-04 22:03:21 +01:00
|
|
|
;; co. work as expected, because it relies on impurities (for
|
|
|
|
;; instance, /dev/pts may be unavailable in chroots.)
|
|
|
|
#:configure-flags '("lsh_cv_sys_unix98_ptys=yes")
|
|
|
|
|
|
|
|
;; 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
|
2016-02-23 18:20:47 +01:00
|
|
|
(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")))
|
|
|
|
;; 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")))
|
2015-09-28 21:58:26 +02:00
|
|
|
|
2016-02-23 18:20:47 +01:00
|
|
|
;; Same for the 'lsh-authorize' script.
|
|
|
|
(substitute* "src/lsh-authorize"
|
|
|
|
(("=sexp-conv")
|
2016-02-24 12:24:30 +01:00
|
|
|
(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")))))
|
2014-01-04 17:27:41 +01:00
|
|
|
|
2016-02-23 18:20:47 +01:00
|
|
|
;; Tests rely on $USER being set.
|
|
|
|
(setenv "USER" "guix"))))))
|
2012-12-04 22:03:21 +01:00
|
|
|
(home-page "http://www.lysator.liu.se/~nisse/lsh/")
|
gnu: Use synopses from the Womb.
* gnu/packages/algebra.scm,
gnu/packages/aspell.scm,
gnu/packages/autotools.scm,
gnu/packages/base.scm,
gnu/packages/bash.scm,
gnu/packages/bison.scm,
gnu/packages/cdrom.scm,
gnu/packages/cflow.scm,
gnu/packages/compression.scm,
gnu/packages/cpio.scm,
gnu/packages/cppi.scm,
gnu/packages/ddrescue.scm,
gnu/packages/dejagnu.scm,
gnu/packages/ed.scm,
gnu/packages/emacs.scm,
gnu/packages/fdisk.scm,
gnu/packages/gawk.scm,
gnu/packages/gcc.scm,
packages/gcc.scm, b/gnu/packages/gcc.scm,
4b982 100644
s/gcc.scm,
s/gcc.scm,
@@
%standard-phases)))))
`((gcc-libc . ,(assoc-ref inputs "libc"))))
The GNU Compiler Collection")
GNU Compiler Collection")
n
ompiler Collection includes compiler front ends for C, C++,
tran, OpenMP for C/C++/Fortran, Java, and Ada, as well as
gnu/packages/gdb.scm,
gnu/packages/gettext.scm,
gnu/packages/ghostscript.scm,
gnu/packages/glib.scm,
gnu/packages/global.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnutls.scm,
gnu/packages/gperf.scm,
gnu/packages/gprolog.scm,
gnu/packages/groff.scm,
gnu/packages/grub.scm,
gnu/packages/gsasl.scm,
gnu/packages/guile.scm,
gnu/packages/help2man.scm,
gnu/packages/idutils.scm,
gnu/packages/indent.scm,
gnu/packages/less.scm,
gnu/packages/libidn.scm,
gnu/packages/libsigsegv.scm,
gnu/packages/libunistring.scm,
gnu/packages/linux.scm,
gnu/packages/lsh.scm,
gnu/packages/m4.scm,
gnu/packages/mailutils.scm,
gnu/packages/multiprecision.scm,
gnu/packages/nano.scm,
gnu/packages/ncurses.scm,
gnu/packages/nettle.scm,
gnu/packages/oggvorbis.scm,
gnu/packages/parted.scm,
gnu/packages/pth.scm,
gnu/packages/readline.scm,
gnu/packages/recutils.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/shishi.scm,
gnu/packages/smalltalk.scm,
gnu/packages/system.scm,
gnu/packages/texinfo.scm,
gnu/packages/time.scm,
gnu/packages/wdiff.scm,
gnu/packages/wget.scm,
gnu/packages/which.scm: Use synopses from the Womb.
2013-04-17 18:04:25 +02:00
|
|
|
(synopsis "GNU implementation of the Secure Shell (ssh) protocols")
|
2012-12-04 22:03:21 +01:00
|
|
|
(description
|
2013-12-01 22:33:23 +01:00
|
|
|
"GNU lsh is a free implementation of the SSH version 2 protocol. It is
|
Synchronize package descriptions with the Womb.
* gnu/packages/algebra.scm,
gnu/packages/aspell.scm,
gnu/packages/autotools.scm,
gnu/packages/base.scm,
gnu/packages/bash.scm,
gnu/packages/bison.scm,
gnu/packages/cdrom.scm,
gnu/packages/cflow.scm,
gnu/packages/compression.scm,
gnu/packages/cpio.scm,
gnu/packages/cppi.scm,
gnu/packages/ddrescue.scm,
gnu/packages/dejagnu.scm,
gnu/packages/ed.scm,
gnu/packages/emacs.scm,
gnu/packages/fdisk.scm,
gnu/packages/freeipmi.scm,
gnu/packages/gawk.scm,
gnu/packages/gcal.scm,
gnu/packages/gcc.scm,
gnu/packages/gdb.scm,
gnu/packages/gdbm.scm,
gnu/packages/gettext.scm,
gnu/packages/ghostscript.scm,
gnu/packages/global.scm,
gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnutls.scm,
gnu/packages/gperf.scm,
gnu/packages/gprolog.scm,
gnu/packages/groff.scm,
gnu/packages/grub.scm,
gnu/packages/gsasl.scm,
gnu/packages/guile.scm,
gnu/packages/gv.scm,
gnu/packages/help2man.scm,
gnu/packages/idutils.scm,
gnu/packages/indent.scm,
gnu/packages/less.scm,
gnu/packages/libidn.scm,
gnu/packages/libsigsegv.scm,
gnu/packages/libunistring.scm,
gnu/packages/lightning.scm,
gnu/packages/linux.scm,
gnu/packages/lsh.scm,
gnu/packages/m4.scm,
gnu/packages/mail.scm,
gnu/packages/maths.scm,
gnu/packages/multiprecision.scm,
gnu/packages/nano.scm,
gnu/packages/ncurses.scm,
gnu/packages/nettle.scm,
gnu/packages/ocrad.scm,
gnu/packages/oggvorbis.scm,
gnu/packages/parted.scm,
gnu/packages/plotutils.scm,
gnu/packages/pth.scm,
gnu/packages/readline.scm,
gnu/packages/recutils.scm,
gnu/packages/rush.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/shishi.scm,
gnu/packages/smalltalk.scm,
gnu/packages/system.scm,
gnu/packages/texinfo.scm,
gnu/packages/time.scm,
gnu/packages/unrtf.scm,
gnu/packages/version-control.scm,
gnu/packages/wdiff.scm,
gnu/packages/wget.scm,
gnu/packages/which.scm,
gnu/packages/xnee.scm,
gnu/packages/zile.scm: Change value of the 'description' field to that
of the Womb.
2013-10-09 16:14:23 +02:00
|
|
|
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.")
|
2016-06-16 13:08:57 +02:00
|
|
|
(license license:gpl2+)))
|