1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
4 ;;; Copyright © 2014, 2015, 2016, 2018, 2019 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014, 2015, 2016, 2017, 2018 Eric Bavier <bavier@member.fsf.org>
6 ;;; Copyright © 2015, 2016 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
7 ;;; Copyright © 2015 Alex Sassmannshausen <alex.sassmannshausen@gmail.com>
8 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
9 ;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name>
10 ;;; Copyright © 2016 Pjotr Prins <pjotr.guix@thebird.nl>
11 ;;; Copyright © 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
12 ;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
13 ;;; Copyright © 2016 Peter Feigl <peter.feigl@nexoid.at>
14 ;;; Copyright © 2016 John J. Foerch <jjfoerch@earthlink.net>
15 ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
16 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
17 ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
18 ;;; Copyright © 2017 Ben Sturmfels <ben@sturm.com.au>
19 ;;; Copyright © 2017 Ethan R. Jones <doubleplusgood23@gmail.com>
20 ;;; Copyright © 2017 Christopher Allan Webber <cwebber@dustycloud.org>
21 ;;; Copyright © 2017, 2018, 2020 Marius Bakke <mbakke@fastmail.com>
22 ;;; Copyright © 2018, 2019 Arun Isaac <arunisaac@systemreboot.net>
23 ;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
24 ;;; Copyright © 2018 Rutger Helling <rhelling@mykolab.com>
25 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
26 ;;; Copyright © 2019 Brett Gilio <brettg@gnu.org>
27 ;;; Copyright © 2019,2020 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
28 ;;; Copyright © 2019 Jakob L. Kreuze <zerodaysfordays@sdf.org>
29 ;;; Copyright © 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
30 ;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
31 ;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
32 ;;; Copyright © 2019, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
33 ;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
34 ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
35 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
36 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
38 ;;; This file is part of GNU Guix.
40 ;;; GNU Guix is free software; you can redistribute it and/or modify it
41 ;;; under the terms of the GNU General Public License as published by
42 ;;; the Free Software Foundation; either version 3 of the License, or (at
43 ;;; your option) any later version.
45 ;;; GNU Guix is distributed in the hope that it will be useful, but
46 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
47 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48 ;;; GNU General Public License for more details.
50 ;;; You should have received a copy of the GNU General Public License
51 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
53 (define-module (gnu packages admin)
54 #:use-module (guix build-system cmake)
55 #:use-module (guix build-system emacs)
56 #:use-module (guix build-system glib-or-gtk)
57 #:use-module (guix build-system gnu)
58 #:use-module (guix build-system meson)
59 #:use-module (guix build-system perl)
60 #:use-module (guix build-system python)
61 #:use-module (guix build-system trivial)
62 #:use-module (guix download)
63 #:use-module (guix git-download)
64 #:use-module ((guix licenses) #:prefix license:)
65 #:use-module (guix packages)
66 #:use-module (guix utils)
67 #:use-module (gnu packages)
68 #:use-module (gnu packages algebra)
69 #:use-module (gnu packages autogen)
70 #:use-module (gnu packages autotools)
71 #:use-module (gnu packages base)
72 #:use-module (gnu packages bash)
73 #:use-module (gnu packages bison)
74 #:use-module (gnu packages boost)
75 #:use-module (gnu packages c)
76 #:use-module (gnu packages check)
77 #:use-module (gnu packages compression)
78 #:use-module (gnu packages cross-base)
79 #:use-module (gnu packages crypto)
80 #:use-module (gnu packages cryptsetup)
81 #:use-module (gnu packages cyrus-sasl)
82 #:use-module (gnu packages dns)
83 #:use-module (gnu packages elf)
84 #:use-module (gnu packages file)
85 #:use-module (gnu packages flex)
86 #:use-module (gnu packages gettext)
87 #:use-module (gnu packages gl)
88 #:use-module (gnu packages glib)
89 #:use-module (gnu packages gnome)
90 #:use-module (gnu packages gnupg)
91 #:use-module (gnu packages golang)
92 #:use-module (gnu packages groff)
93 #:use-module (gnu packages gtk)
94 #:use-module (gnu packages guile)
95 #:use-module (gnu packages hurd)
96 #:use-module (gnu packages image)
97 #:use-module (gnu packages imagemagick)
98 #:use-module (gnu packages inkscape)
99 #:use-module (gnu packages kerberos)
100 #:use-module (gnu packages libbsd)
101 #:use-module (gnu packages libftdi)
102 #:use-module (gnu packages libunwind)
103 #:use-module (gnu packages libusb)
104 #:use-module (gnu packages linux)
105 #:use-module (gnu packages lua)
106 #:use-module (gnu packages man)
107 #:use-module (gnu packages mcrypt)
108 #:use-module (gnu packages mpi)
109 #:use-module (gnu packages ncurses)
110 #:use-module (gnu packages openldap)
111 #:use-module (gnu packages patchutils)
112 #:use-module (gnu packages pciutils)
113 #:use-module (gnu packages pcre)
114 #:use-module (gnu packages perl)
115 #:use-module (gnu packages perl-check)
116 #:use-module (gnu packages pkg-config)
117 #:use-module (gnu packages popt)
118 #:use-module (gnu packages python)
119 #:use-module (gnu packages python-crypto)
120 #:use-module (gnu packages python-web)
121 #:use-module (gnu packages python-xyz)
122 #:use-module (gnu packages qt)
123 #:use-module (gnu packages readline)
124 #:use-module (gnu packages sphinx)
125 #:use-module (gnu packages tcl)
126 #:use-module (gnu packages terminals)
127 #:use-module (gnu packages texinfo)
128 #:use-module (gnu packages tls)
129 #:use-module (gnu packages version-control)
130 #:use-module (gnu packages web)
131 #:use-module (gnu packages xdisorg)
132 #:use-module (gnu packages xml)
133 #:use-module (gnu packages xorg))
135 ;; This package uses su instead of sudo (because of SpaceFM).
136 (define-public ktsuss
145 (url "https://github.com/nomius/ktsuss.git")
148 (base32 "0q9931f9hp47v1n8scli4bdg2rkjpf5jf8v7jj2gdn83aia1r2hz"))
149 (file-name (git-file-name name version))))
150 (build-system glib-or-gtk-build-system)
153 (modify-phases %standard-phases
154 (add-after 'unpack 'patch-file-names
156 (substitute* "configure.ac"
157 (("supath=`which su 2>/dev/null`")
158 "supath=/run/setuid-programs/su"))
161 `(("autoconf" ,autoconf)
162 ("automake" ,automake)
164 ("pkg-config" ,pkg-config)))
168 (synopsis "Graphical front end for @command{su}")
170 "Ktsuss stands for ``Keep the @command{su} simple, stupid''.
171 It is a graphical version of @command{su} written in C and GTK+ 2, with
172 simplicity in mind.")
173 (home-page "https://github.com/nomius/ktsuss")
174 (license license:bsd-3)))
183 (uri (string-append "https://github.com/aide/aide/releases/download/v"
184 version "/aide-" version ".tar.gz"))
186 (base32 "15xp47sz7kk1ciffw3f5xw2jg2mb2lqrbr3q6p4bkbz5dap9iy8p"))))
187 (build-system gnu-build-system)
192 `(("libgcrypt" ,libgcrypt)
193 ("libgpg-error" ,libgpg-error)
194 ("libmhash" ,libmhash)
195 ("pcre:static" ,pcre "static")
197 ("zlib:static" ,zlib "static")
199 (synopsis "File and directory integrity checker")
201 "AIDE (Advanced Intrusion Detection Environment) is a file and directory
202 integrity checker. It creates a database from the regular expression rules
203 that it finds from its configuration files. Once this database is initialized
204 it can be used to verify the integrity of the files. It has several message
205 digest algorithms that are used to check the integrity of files. All of the
206 usual file attributes can be checked for inconsistencies.")
207 (home-page "https://aide.github.io/")
208 (license license:gpl2+)))
210 (define-public progress
218 (url "https://github.com/Xfennec/progress.git")
219 (commit (string-append "v" version))))
221 (base32 "1lk2v4b767klib93an4g3f7z5qrv9kdk9jf7545vw1immc4kamrl"))
222 (file-name (git-file-name name version))))
223 (build-system gnu-build-system)
225 `(("pkg-config" ,pkg-config)
228 `(("ncurses" ,ncurses)))
230 `(#:tests? #f ; no test suite
231 #:make-flags (list "CC=gcc"
232 (string-append "PREFIX=" (assoc-ref %outputs "out")))
234 (modify-phases %standard-phases
235 (delete 'configure)))) ; no configure script
236 (home-page "https://github.com/Xfennec/progress")
237 (synopsis "Program to view the progress of the coreutils commands")
238 (description "A program that looks for coreutils basic commands (cp, mv,
239 dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
240 the percentage of copied data. It can also show estimated time and throughput,
241 and provides a \"top-like\" mode (monitoring).")
242 (license license:gpl3+)))
244 (define-public shepherd
250 (uri (string-append "mirror://gnu/shepherd/shepherd-"
254 "02lbc8z5gd8v8wfi4yh1zww8mk03w0zcwnmk4l4p3vpjlvlb63ll"))))
255 (build-system gnu-build-system)
257 '(#:configure-flags '("--localstatedir=/var")))
259 `(("pkg-config" ,pkg-config)
261 ;; This is the Guile we use as a cross-compiler...
262 ("guile" ,guile-3.0)))
264 ;; ... and this is the one that appears in shebangs when cross-compiling.
265 `(("guile" ,guile-3.0)
267 ;; The 'shepherd' command uses Readline when used interactively. It's
268 ;; an unusual use case though, so we don't propagate it.
269 ("guile-readline" ,guile-readline)))
270 (synopsis "System service manager")
272 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
273 the execution of system services, replacing similar functionality found in
274 typical init systems. It provides dependency-handling through a convenient
275 interface and is based on GNU Guile.")
276 (license license:gpl3+)
277 (home-page "https://www.gnu.org/software/shepherd/")))
279 (define-public guile2.2-shepherd
282 (name "guile2.2-shepherd")
284 `(("pkg-config" ,pkg-config)
285 ("guile" ,guile-2.2)))
287 `(("guile" ,guile-2.2)))))
289 (define-public guile3.0-shepherd
290 (deprecated-package "guile3.0-shepherd" shepherd))
292 (define-public guile2.0-shepherd
295 (name "guile2.0-shepherd")
297 `(("pkg-config" ,pkg-config)
298 ("guile" ,guile-2.0)))
300 `(("guile" ,guile-2.0)))))
302 (define-public cloud-utils
310 "https://launchpad.net/cloud-utils/trunk/"
311 version "/+download/cloud-utils-" version ".tar.gz"))
314 "07fl3dlqwdzw4xx7mcxhpkks6dnmaxha80zgs9f6wmibgzni8z0r"))))
315 (build-system gnu-build-system)
318 (let ((out (assoc-ref %outputs "out")))
319 (list (string-append "BINDIR=" out "/bin")
320 (string-append "MANDIR=" out "/share/man/man1")
321 (string-append "DOCDIR=" out "/share/doc")))
323 (modify-phases %standard-phases
326 (add-after 'install 'wrap
327 (lambda* (#:key outputs inputs #:allow-other-keys)
328 (let ((growpart (string-append (assoc-ref outputs "out")
330 (wrap-program growpart
331 `("PATH" ":" prefix (,(dirname (which "sfdisk"))
332 ,(dirname (which "readlink"))))))
336 ("util-linux" ,util-linux))) ; contains sfdisk for growpart
337 (home-page "https://launchpad.net/cloud-utils")
338 (synopsis "Set of utilities for cloud computing environments")
340 "This package contains a set of utilities for cloud computing
344 @item @command{cloud-localds} Create a disk for cloud-init to utilize nocloud
345 @item @command{cloud-publish-image} Wrapper for cloud image publishing
346 @item @command{cloud-publish-tarball} Wrapper for publishing cloud tarballs
347 @item @command{cloud-publish-ubuntu} Import a Ubuntu cloud image
348 @item @command{ec2metadata} Query and display @acronym{EC2,Amazon Elastic
349 Compute Cloud} metadata
350 @item @command{growpart} Grow a partition to fill the device
351 @item @command{mount-image-callback} Mount a file and run a command
352 @item @command{resize-part-image} Resize a partition image to a new size
353 @item @command{ubuntu-cloudimg-query} Get the latest Ubuntu
354 @acronym{AMI,Amazon Machine Image}
355 @item @command{ubuntu-ec2-run} Run a @acronym{EC2,Amazon Elastic Compute
356 Cloud} instance using Ubuntu
357 @item @command{vcs-run} Obtain a repository, and run a command
358 @item @command{write-mime-multipart} Handle multipart
359 @acronym{MIME,Multipurpose Internet Mail Extensions} messages
361 (license license:gpl3)))
363 (define-public daemontools
370 "https://cr.yp.to/daemontools/"
371 "daemontools-" version ".tar.gz"))
374 "07scvw88faxkscxi91031pjkpccql6wspk4yrlnsbrrb5c0kamd5"))))
375 (build-system gnu-build-system)
377 `(#:tests? #f ;; No tests as far as I can tell.
379 (modify-phases %standard-phases
380 (add-after 'unpack 'chdir
382 (chdir ,(string-append "daemontools-" version))
385 (add-before 'build 'patch
387 (substitute* "src/error.h"
388 (("extern int errno;")
389 "#include <errno.h>"))
393 (invoke "package/compile")))
395 (lambda* (#:key outputs #:allow-other-keys)
396 (let* ((out (assoc-ref outputs "out"))
397 (bin (string-append out "/bin")))
398 (for-each (lambda (file)
399 (install-file file bin))
400 (find-files "command")))
402 (synopsis "Tools for managing UNIX style services")
404 "@code{daemontools} is a collection of tools for managing UNIX
406 (license license:public-domain)
407 (home-page "https://cr.yp.to/daemontools.html")))
417 "https://projects.gw-computing.net/attachments/download/615/dfc-"
421 "0m1fd7l85ckb7bq4c5c3g257bkjglm8gq7x42pkmpp87fkknc94n"))))
422 (build-system cmake-build-system)
423 (arguments '(#:tests? #f)) ; There are no tests.
424 (native-inputs `(("gettext" ,gettext-minimal)))
425 (home-page "https://projects.gw-computing.net/projects/dfc")
426 (synopsis "Display file system space usage using graphs and colors")
428 "dfc (df color) is a modern version of df. It uses colors, draws pretty
429 graphs and can export its output to different formats.")
430 (license license:bsd-3)))
438 (uri (string-append "http://hisham.hm/htop/releases/"
439 version "/htop-" version ".tar.gz"))
442 "0mrwpb3cpn3ai7ar33m31yklj64c3pp576vh1naqff6f21pq5mnr"))))
443 (build-system gnu-build-system)
445 `(("ncurses" ,ncurses)))
447 `(("python" ,python-wrapper))) ;for scripts/MakeHeader.py
448 (home-page "https://hisham.hm/htop/")
449 (synopsis "Interactive process viewer")
451 "This is htop, an interactive process viewer. It is a text-mode
452 application (for console or X terminals) and requires ncurses.")
453 (license license:gpl2)))
462 (uri (string-append "mirror://gnu/pies/pies-"
466 "14jb4pa4zs26d5j2skxbaypnwhsx2lw8jgj1irrgs03c2dnf7gp6"))))
467 (build-system gnu-build-system)
469 '(#:phases (modify-phases %standard-phases
470 (add-before 'build 'patch-/bin/sh
471 (lambda* (#:key inputs #:allow-other-keys)
472 ;; Use the right shell when executing user-provided
474 (let ((bash (assoc-ref inputs "bash")))
475 (substitute* '("src/progman.c" "src/comp.c")
477 (string-append "\"" bash "/bin/sh\"")))
479 (home-page "https://www.gnu.org.ua/software/pies/")
480 (synopsis "Program invocation and execution supervisor")
482 "GNU pies is a program that supervises the invocation and execution of
483 other programs. It reads the list of programs to be started from its
484 configuration file, executes them, and then monitors their status,
485 re-executing them as necessary.")
486 (license license:gpl3+)))
488 (define-public inetutils
494 (uri (string-append "mirror://gnu/inetutils/inetutils-"
496 (patches (search-patches "inetutils-hurd.patch"))
499 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
500 (build-system gnu-build-system)
502 `(#:configure-flags '("--localstatedir=/var"
504 ;; Make sure 'PATH_PROCNET_DEV' gets defined when
505 ;; cross-compiling (by default it does not.)
506 ,@(if (%current-target-system)
507 '("--with-path-procnet-dev=/proc/net/dev")
520 ;; On some systems, 'libls.sh' may fail with an error such as:
521 ;; "Failed to tell switch -a apart from -A".
522 #:parallel-tests? #f))
523 (inputs `(("ncurses" ,ncurses)
524 ("readline" ,readline))) ;for 'ftp'
525 (native-inputs (if (member (%current-system)
526 (package-supported-systems net-tools))
527 `(("netstat" ,net-tools)) ;for tests
529 (home-page "https://www.gnu.org/software/inetutils/")
530 (synopsis "Basic networking utilities")
532 "Inetutils is a collection of common network programs, such as an ftp
533 client and server, a telnet client and server, an rsh client and server, and
535 (license license:gpl3+)))
537 (define-public shadow
544 "https://github.com/shadow-maint/shadow/releases/"
545 "download/" version "/shadow-" version ".tar.xz"))
546 (patches (search-patches "shadow-hurd-pctrl.patch"))
549 "0qmfq50sdhz6xilgxvinblll8j2iqfl7hwk45bq744y4plq4dbd3"))))
550 (build-system gnu-build-system)
552 `(;; Assume System V `setpgrp (void)', which is the default on GNU
553 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
555 '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
558 (modify-phases %standard-phases
559 (add-before 'build 'set-nscd-file-name
560 (lambda* (#:key inputs #:allow-other-keys)
561 ;; Use the right file name for nscd.
562 (let ((libc (assoc-ref inputs
563 ,(if (%current-target-system)
566 (substitute* "lib/nscd.c"
568 (string-append libc "/sbin/nscd")))
570 (add-after 'install 'remove-groups
571 (lambda* (#:key outputs #:allow-other-keys)
572 ;; Remove `groups', which is already provided by Coreutils.
573 (let* ((out (assoc-ref outputs "out"))
574 (bin (string-append out "/bin"))
575 (man (string-append out "/share/man")))
576 (delete-file (string-append bin "/groups"))
577 (for-each delete-file (find-files man "^groups\\."))
580 (inputs `(("linux-pam" ,linux-pam)))
581 (home-page "https://github.com/shadow-maint/shadow")
582 (synopsis "Authentication-related tools such as passwd, su, and login")
584 "Shadow provides a number of authentication-related tools, including:
585 login, passwd, su, groupadd, and useradd.")
587 ;; The `vipw' program is GPLv2+.
588 ;; libmisc/salt.c is public domain.
589 (license license:bsd-3)))
591 (define-public mingetty
597 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
598 version "/mingetty-" version ".tar.gz"))
601 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
602 (build-system gnu-build-system)
605 (modify-phases %standard-phases
607 (lambda* (#:key inputs outputs target #:allow-other-keys)
608 (let* ((out (assoc-ref outputs "out"))
609 (man8 (string-append out "/share/man/man8"))
610 (sbin (string-append out "/sbin"))
611 (shadow (assoc-ref inputs "shadow"))
612 (login (string-append shadow "/bin/login")))
613 (substitute* "Makefile"
614 ,@(if (%current-target-system)
616 (string-append "CC=" target "-gcc\n")))
619 (string-append "SBINDIR = " out
622 (string-append "MANDIR = " out
623 "/share/man/man8\n")))
625 ;; Pick the right 'login' by default.
626 (substitute* "mingetty.c"
628 (string-append "\"" login "\"")))
633 #:tests? #f)) ; no tests
634 (inputs `(("shadow" ,shadow)))
636 (home-page "https://sourceforge.net/projects/mingetty")
637 (synopsis "Getty for the text console")
639 "Small console getty that is started on the Linux text console,
640 asks for a login name and then transfers over to @code{login}. It is extended
641 to allow automatic login and starting any app.")
642 (license license:gpl2+)))
644 (define-public net-base
651 "mirror://debian/pool/main/n/netbase/netbase_"
655 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
656 (build-system trivial-build-system)
658 `(#:modules ((guix build utils))
660 (use-modules (guix build utils)
663 (let* ((source (assoc-ref %build-inputs "source"))
664 (tar (assoc-ref %build-inputs "tar"))
665 (xz (assoc-ref %build-inputs "xz"))
666 (output (assoc-ref %outputs "out"))
667 (etc (string-append output "/etc")))
668 (setenv "PATH" (string-append xz "/bin"))
669 (invoke (string-append tar "/bin/tar") "xvf"
671 (chdir ,(string-append "netbase-" version))
674 '("etc-services" "etc-protocols" "etc-rpc")
675 (map (cut string-append etc "/" <>)
676 '("services" "protocols" "rpc")))
678 (native-inputs `(("tar" ,tar)
680 (synopsis "IANA protocol, port, and RPC number assignments")
682 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
683 files, which contain information about the IANA-assigned port, protocol, and
685 (home-page "https://packages.debian.org/sid/netbase")
686 (license license:gpl2)))
688 (define-public netcat
694 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
695 "/netcat-" version ".tar.bz2"))
698 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
699 (build-system gnu-build-system)
702 ;; By default, man and info pages are put in PREFIX/{man,info},
703 ;; but we want them in PREFIX/share/{man,info}.
704 (let ((out (assoc-ref %outputs "out")))
705 (list (string-append "--mandir=" out "/share/man")
706 (string-append "--infodir=" out "/share/info")))))
707 (home-page "http://netcat.sourceforge.net")
708 (synopsis "Read and write data over TCP/IP")
710 "Netcat is a featured networking utility which reads and writes data
711 across network connections, using the TCP/IP protocol. It is designed to be a
712 reliable \"back-end\" tool that can be used directly or easily driven by other
713 programs and scripts. At the same time, it is a feature-rich network debugging
714 and exploration tool, since it can create almost any kind of connection you
715 would need and has several interesting built-in capabilities.")
716 (license license:gpl2+)))
718 (define-public netcat-openbsd
720 (name "netcat-openbsd")
725 (url "https://salsa.debian.org/debian/netcat-openbsd.git")
726 (commit (string-append "debian/" version))))
727 (file-name (git-file-name name version))
730 "08r3mmck3s5pbvwyq19wp5g8jqcxza3cm8nkc6jm7rqn4jdydc4z"))))
731 (build-system gnu-build-system)
733 `(#:tests? #f ; no test suite
736 (string-append "CFLAGS=-I" (assoc-ref %build-inputs "libbsd") "/include")
739 (modify-phases %standard-phases
741 (add-before 'build 'patch
743 (setenv "QUILT_PATCHES" "debian/patches")
744 (invoke "quilt" "push" "-a")
747 (lambda* (#:key outputs #:allow-other-keys)
748 (let* ((out (assoc-ref outputs "out"))
749 (bin (string-append out "/bin"))
750 (man (string-append out "/share/man/man1"))
751 (doc (string-append out "/share/doc/netcat-openbsd-" ,version))
752 (examples (string-append doc "/examples")))
753 (install-file "nc" bin)
754 (install-file "nc.1" man)
755 (install-file "debian/copyright" doc)
756 (copy-recursively "debian/examples" examples)
758 (inputs `(("libbsd" ,libbsd)))
759 (native-inputs `(("pkg-config" ,pkg-config)
761 (home-page "https://packages.debian.org/sid/netcat-openbsd")
762 (synopsis "Read and write data over TCP/IP")
764 "Netcat is a simple Unix utility which reads and writes data across
765 network connections using TCP or UDP protocol. It is designed to be a reliable
766 \"back-end\" tool that can be used directly or easily driven by other programs
767 and scripts. At the same time it is a feature-rich network debugging and
768 exploration tool, since it can create almost any kind of connection you would
769 need and has several interesting built-in capabilities.
771 This package contains the OpenBSD rewrite of netcat, including support for
772 IPv6, proxies, and Unix sockets.")
773 (license (list license:bsd-3
774 license:bsd-2)))) ; atomicio.*, socks.c
776 (define-public sipcalc
783 (uri (string-append "http://www.routemeister.net/projects"
784 "/sipcalc/files/sipcalc" "-" version ".tar.gz"))
787 "0mv3wndj4z2bsshh2k8d5sy3j8wxzgf8mzmmkvj1k8gpcz37dm6g"))))
788 (build-system gnu-build-system)
789 (home-page "https://www.routemeister.net/projects/sipcalc/")
790 (synopsis "Command-line IP subnet calculator")
792 "Sipcalc is an advanced command-line IP subnet calculator. It can take
793 multiple forms of input (IPv4/IPv6/interface/hostname) and output a multitude
794 of information about a given subnet.
801 @item Retrieving of address information from interfaces.
802 @item Classfull and CIDR output.
803 @item Multiple address and netmask input and output formats (dotted quad, hex,
805 @item Output of broadcast address, network class, Cisco wildcard,
806 hosts/range, network range.
807 @item The ability to split a network based on a smaller netmask, now also with
808 recursive runs on the generated subnets. (also IPv6)
812 @item Compressed and expanded input and output addresses.
813 @item Standard IPv6 network output.
814 @item v4 in v6 output.
815 @item Reverse DNS address generation.
818 (license license:bsd-3)))
826 (uri (string-append "mirror://gnu/alive/alive-"
830 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
831 (build-system gnu-build-system)
832 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
833 (inputs `(("guile" ,guile-2.0)
834 ("inetutils" ,inetutils)))
835 (home-page "https://www.gnu.org/software/alive/")
836 (synopsis "Autologin and keep-alive daemon")
838 "GNU Alive sends periodic pings to a server, generally to keep a
840 (license license:gpl3+)))
842 (define-public isc-dhcp
843 (let* ((bind-major-version "9")
844 (bind-minor-version "11")
845 (bind-patch-version "18")
846 (bind-release-type "") ; for patch release, use "-P"
847 (bind-release-version "") ; for patch release, e.g. "6"
848 (bind-version (string-append bind-major-version
854 bind-release-version)))
860 (uri (string-append "https://ftp.isc.org/isc/dhcp/"
861 version "/dhcp-" version ".tar.gz"))
864 "08a5003zdxgl41b29zjkxa92h2i40zyjgxg0npvnhpkfl5jcsz0s"))))
865 (build-system gnu-build-system)
867 `(#:parallel-build? #f
868 #:configure-flags '("--with-randomdev=/dev/random")
870 (modify-phases %standard-phases
871 (add-after 'unpack 'replace-bundled-bind
872 (lambda* (#:key inputs native-inputs #:allow-other-keys)
873 (delete-file "bind/bind.tar.gz")
874 (copy-file (assoc-ref inputs "bind-source-tarball")
876 (chmod "bind/bind.tar.gz" #o644)
877 (substitute* "bind/version.tmp"
879 (format #f "MAJORVER=~a\n" ,bind-major-version))
881 (format #f "MINORVER=~a\n" ,bind-minor-version))
883 (format #f "PATCHVER=~a\n" ,bind-patch-version))
885 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
887 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
889 ,@(if (%current-target-system)
890 '((add-before 'configure 'fix-bind-cross-compilation
892 (substitute* "configure"
894 "--host=$host_alias"))
895 ;; BIND needs a native compiler because the DHCP
896 ;; build system uses the built 'gen' executable.
897 (setenv "BUILD_CC" "gcc")
900 (add-after 'configure 'post-configure
901 (lambda* (#:key outputs #:allow-other-keys)
902 ;; Point to the right client script, which will be
903 ;; installed in a later phase.
904 (substitute* "includes/dhcpd.h"
905 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
906 (let ((out (assoc-ref outputs "out")))
907 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
908 out "/libexec/dhclient-script"
911 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
912 ;; we must patch shebangs in there and make sure the right
914 (with-directory-excursion "bind"
915 (substitute* "Makefile"
917 (let ((sh (which "sh")))
918 (string-append "./configure CONFIG_SHELL="
919 sh " SHELL=" sh " "))))
921 (let ((bind-directory (string-append "bind-" ,bind-version)))
922 (invoke "tar" "xf" "bind.tar.gz")
923 (for-each patch-shebang
924 (find-files bind-directory ".*"))
925 (substitute* (string-append bind-directory "/configure")
928 (invoke "tar" "cf" "bind.tar.gz"
930 ;; avoid non-determinism in the archive
934 "--group=root:0")))))
935 (add-after 'install 'post-install
936 (lambda* (#:key inputs outputs #:allow-other-keys)
937 ;; Install the dhclient script for GNU/Linux and make sure
938 ;; if finds all the programs it needs.
939 (let* ((out (assoc-ref outputs "out"))
940 (libexec (string-append out "/libexec"))
941 (coreutils (assoc-ref inputs "coreutils"))
942 (inetutils (assoc-ref inputs "inetutils"))
943 (net-tools (assoc-ref inputs "net-tools"))
944 (sed (assoc-ref inputs "sed")))
945 (substitute* "client/scripts/linux"
947 (string-append (assoc-ref inputs "iproute")
951 (copy-file "client/scripts/linux"
952 (string-append libexec "/dhclient-script"))
955 (string-append libexec "/dhclient-script")
958 (string-append dir "/bin:"
960 (list inetutils net-tools coreutils sed))))
967 (inputs `(("inetutils" ,inetutils)
968 ,@(if (hurd-target?) '()
969 `(("net-tools" ,net-tools)
970 ("iproute" ,iproute)))
972 ;; isc-dhcp bundles a copy of BIND, which has proved vulnerable
973 ;; in the past. Use a BIND-VERSION of our choosing instead.
974 ("bind-source-tarball"
977 (uri (string-append "https://ftp.isc.org/isc/bind9/"
979 "/bind-" bind-version ".tar.gz"))
982 "0vws0zzb39mkphj4hhjrgfj9dzw951lc4pfa6pqg5ll5ma51mbsr"))))
984 ;; When cross-compiling, we need the cross Coreutils and sed.
985 ;; Otherwise just use those from %FINAL-INPUTS.
986 ,@(if (%current-target-system)
987 `(("coreutils" ,coreutils)
991 (home-page "https://www.isc.org/products/DHCP/")
992 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
994 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
995 reference implementation of all aspects of DHCP, through a suite of DHCP
996 tools: server, client, and relay agent.")
997 (license license:mpl2.0)
998 (properties '((cpe-name . "dhcp"))))))
1000 (define-public libpcap
1006 (uri (string-append "https://www.tcpdump.org/release/libpcap-"
1010 "153h1378diqyc27jjgz6gg5nxmb4ddk006d9xg69nqavgiikflk3"))))
1011 (build-system gnu-build-system)
1016 ;; There are some tests in testprogs/, but no automated test suite.
1018 (home-page "https://www.tcpdump.org")
1019 (synopsis "Network packet capture library")
1021 "libpcap is an interface for user-level packet capture. It provides a
1022 portable framework for low-level network monitoring. Applications include
1023 network statistics collection, security monitoring, network debugging, etc.")
1024 (license (list license:bsd-4 ; fad-*.c and several other source files
1025 license:bsd-3 ; pcap/, sockutils.* & others
1026 license:bsd-2)))) ; the rest
1028 (define-public tcpdump
1034 (uri (string-append "https://www.tcpdump.org/release/tcpdump-"
1038 "0434vdcnbqaia672rggjzdn4bb8p8dchz559yiszzdk0sjrprm1c"))))
1039 (build-system gnu-build-system)
1040 (inputs `(("libpcap" ,libpcap)
1041 ("openssl" ,openssl)))
1042 (native-inputs `(("perl" ,perl))) ; for tests
1043 (home-page "https://www.tcpdump.org/")
1044 (synopsis "Network packet analyzer")
1046 "Tcpdump is a command-line tool to analyze network traffic passing
1047 through the network interface controller.")
1048 (license license:bsd-3)))
1050 (define-public jnettop
1057 (string-append "https://web.archive.org/web/20161221100811/"
1058 "http://jnettop.kubs.info/dist/jnettop-"
1062 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
1063 (build-system gnu-build-system)
1065 `(("pkg-config" ,pkg-config)))
1068 ("ncurses" ,ncurses)
1069 ("libpcap" ,libpcap)))
1071 "https://web.archive.org/web/20160703195221/http://jnettop.kubs.info/wiki/")
1072 (synopsis "Visualize network traffic by bandwidth use")
1074 "Jnettop is a traffic visualiser, which captures traffic going
1075 through the host it is running from and displays streams sorted
1076 by bandwidth they use.")
1077 (license license:gpl2+)))
1079 (define-public clusterssh
1085 (uri (string-append "mirror://sourceforge/clusterssh/"
1086 "2.%20ClusterSSH%20Series%204/"
1087 "App-ClusterSSH-v" version ".tar.gz"))
1090 "0rmk2p3f2wz1h092anidjclh212rv3gxyk0c641qk3frlrjnw6mp"))))
1091 (build-system perl-build-system)
1094 (modify-phases %standard-phases
1095 (add-after 'unpack 'refer-to-inputs
1096 (lambda* (#:key inputs #:allow-other-keys)
1097 (substitute* (list "lib/App/ClusterSSH/Config.pm"
1102 (add-before 'check 'delete-failing-tests
1104 ;; This checks whether all code is nicely formatted. The above
1105 ;; ‘refer-to-inputs’ phase breaks this pedantry, so disable it.
1106 (delete-file "t/perltidy.t")
1107 ;; Update the manifest so t/manifest.t happily passes.
1108 (substitute* "MANIFEST"
1109 (("t/perltidy.t\n") ""))
1111 (add-after 'install 'augment-library-path
1112 (lambda* (#:key inputs outputs #:allow-other-keys)
1113 (let* ((out (assoc-ref outputs "out"))
1114 (bin (string-append out "/bin")))
1115 (with-directory-excursion bin
1118 (wrap-program program
1119 `("PERL5LIB" ":" prefix
1120 ,(map (lambda (file-name)
1121 (string-append file-name
1122 "/lib/perl5/site_perl"))
1124 (map (lambda (input)
1125 (assoc-ref inputs input))
1126 ;; These may be propagated and hence
1127 ;; not explicitly listed as inputs.
1128 (list "perl-class-data-inheritable"
1129 "perl-devel-stacktrace"
1130 "perl-exception-class"
1134 "perl-x11-protocol-other")))))))
1135 (find-files "." ".*")))
1138 `(("perl-cpan-changes" ,perl-cpan-changes)
1139 ("perl-file-slurp" ,perl-file-slurp)
1140 ("perl-file-which" ,perl-file-which)
1141 ("perl-module-build" ,perl-module-build)
1142 ("perl-readonly" ,perl-readonly)
1143 ("perl-test-differences" ,perl-test-differences)
1144 ("perl-test-distmanifest" ,perl-test-distmanifest)
1145 ("perl-test-perltidy" ,perl-test-perltidy)
1146 ("perl-test-pod" ,perl-test-pod)
1147 ("perl-test-pod-coverage" ,perl-test-pod-coverage)
1148 ("perl-test-trap" ,perl-test-trap)
1149 ("perltidy" ,perltidy)))
1151 `(("perl-exception-class" ,perl-exception-class)
1152 ("perl-sort-naturally" ,perl-sort-naturally)
1153 ("perl-tk" ,perl-tk)
1154 ("perl-try-tiny" ,perl-try-tiny)
1155 ("perl-x11-protocol" ,perl-x11-protocol)
1156 ("perl-x11-protocol-other" ,perl-x11-protocol-other)
1158 ;; The clusterssh.sourceforge.net address requires login to view
1159 (home-page "https://sourceforge.net/projects/clusterssh/")
1160 (synopsis "Secure concurrent multi-server terminal control")
1162 "ClusterSSH controls a number of xterm windows via a single graphical
1163 console window to allow commands to be interactively run on multiple servers
1164 over ssh connections.")
1165 (license license:gpl2+)))
1167 (define-public rename
1174 "mirror://cpan/authors/id/R/RM/RMBARKER/File-Rename-"
1178 "137m8s06r4n038ivlr5r1d9a7q9l7shmwpvnyx053r9ndhvbnkh5"))))
1179 (build-system perl-build-system)
1182 (modify-phases %standard-phases
1183 (add-after 'install 'find-itself
1184 ;; Fix run-time 'Can't locate File/Rename.pm in @INC' failure.
1185 (lambda* (#:key outputs #:allow-other-keys)
1186 (let* ((out (assoc-ref outputs "out"))
1187 (bin (string-append out "/bin")))
1188 (with-directory-excursion bin
1191 (wrap-program program
1192 `("PERL5LIB" ":" prefix
1193 (,(string-append out "/lib/perl5/site_perl")))))
1194 (find-files "." ".*")))
1197 `(("perl-module-build" ,perl-module-build)
1198 ("perl-test-pod" ,perl-test-pod)
1199 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
1200 (home-page "https://metacpan.org/pod/distribution/File-Rename/rename.PL")
1201 (synopsis "Perl extension for renaming multiple files")
1203 "This package provides a Perl interface (@code{Perl::Rename}) as well
1204 as a command-line utility (@command{rename}) that can rename multiple files
1205 at once based on a Perl regular expression.")
1206 (license license:perl-license)))
1208 (define-public rottlog
1214 (uri (string-append "mirror://gnu/rottlog/rottlog-"
1218 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
1219 (modules '((guix build utils)))
1222 (substitute* "Makefile.in"
1223 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
1224 ;; Don't try to chown root.
1226 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
1227 ;; Don't attempt to create /var/lib/rottlog.
1230 (build-system gnu-build-system)
1232 `(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
1233 "--localstatedir=/var")
1235 ;; Install example config files in OUT/etc.
1236 #:make-flags (list (string-append "ROTT_ETCDIR="
1237 (assoc-ref %outputs "out")
1240 #:phases (modify-phases %standard-phases
1241 (add-after 'unpack 'patch-paths
1243 (substitute* "rc/rc"
1244 (("/usr/sbin/sendmail") "sendmail"))
1246 (add-after 'unpack 'fix-configure
1247 (lambda* (#:key inputs native-inputs #:allow-other-keys)
1248 ;; Replace outdated config.sub and config.guess:
1249 (for-each (lambda (file)
1253 (or native-inputs inputs) "automake")
1255 ,(version-major+minor
1256 (package-version automake))
1258 '("config.sub" "config.guess"))
1260 (add-after 'build 'set-packdir
1262 ;; Set a default location for archived logs.
1263 (substitute* "rc/rc"
1265 "packdir=\"/var/log\""))
1267 (add-before 'install 'tweak-rc-weekly
1269 (substitute* "rc/weekly"
1273 ;; The file is called 'syslog.pid' (no 'd').
1276 (add-after 'install 'install-info
1278 (invoke "make" "install-info"))))))
1279 (native-inputs `(("texinfo" ,texinfo)
1280 ("automake" ,automake)
1281 ("util-linux" ,util-linux))) ; for 'cal'
1282 (home-page "https://www.gnu.org/software/rottlog/")
1283 (synopsis "Log rotation and management")
1285 "GNU Rot[t]log is a program for managing log files. It is used to
1286 automatically rotate out log files when they have reached a given size or
1287 according to a given schedule. It can also be used to automatically compress
1288 and archive such logs. Rot[t]log will mail reports of its activity to the
1289 system administrator.")
1290 (license license:gpl3+)))
1299 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
1301 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
1302 version ".tar.gz")))
1305 "0p7r3cl16pjwbc48ff1gbhjw51lngrghvwblxz5lxpyzqlwi88xb"))
1306 (modules '((guix build utils)))
1309 (delete-file-recursively "lib/zlib")
1311 (build-system gnu-build-system)
1314 (list (string-append "--docdir=" (assoc-ref %outputs "out")
1315 "/share/doc/" ,name "-" ,version)
1317 ;; XXX: Disable Python support when cross-compiling because
1318 ;; 'configure' tries to run 'python', which fails.
1319 ,(if (%current-target-system)
1321 "--enable-python") ; for plug-ins written in ~
1323 "--with-logpath=/var/log/sudo.log"
1324 "--with-rundir=/var/run/sudo" ; must be cleaned up at boot time
1325 "--with-vardir=/var/db/sudo"
1326 "--with-iologdir=/var/log/sudo-io"
1328 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
1330 (string-append "CPPFLAGS=-D_PATH_MV='\""
1331 (assoc-ref %build-inputs "coreutils")
1334 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
1335 #:parallel-build? #f
1338 (modify-phases %standard-phases
1339 (add-before 'configure 'pre-configure
1341 (substitute* "src/sudo_usage.h.in"
1342 ;; Do not capture 'configure' arguments since we would
1343 ;; unduly retain references, and also because the
1344 ;; CPPFLAGS above would close the string literal
1346 (("@CONFIGURE_ARGS@") "\"\""))
1347 (substitute* (find-files "." "Makefile\\.in")
1348 ;; Allow installation as non-root.
1349 (("-o [[:graph:]]+ -g [[:graph:]]+")
1351 ;; Don't try to create /etc/sudoers.
1352 (("^install: (.*)install-sudoers(.*)" _ before after)
1353 (string-append "install: " before after "\n"))
1354 ;; Don't try to create /run/sudo.
1355 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
1357 ;; Install example sudo{,_logsrvd}.conf to the right place.
1358 (("\\$\\(DESTDIR\\)\\$\\(sysconfdir\\)")
1359 "$(DESTDIR)/$(docdir)/examples")
1360 ;; Don't try to create /var/db/sudo.
1361 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
1364 ;; ‘Checking existing [/etc/]sudoers file for syntax errors’ is
1365 ;; not the task of the build system, and fails.
1366 (substitute* "plugins/sudoers/Makefile.in"
1367 (("^pre-install:" match)
1368 (string-append match "\ndisabled-" match)))
1371 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
1372 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
1375 `(("groff" ,groff)))
1377 `(("coreutils" ,coreutils)
1378 ("linux-pam" ,linux-pam)
1379 ,@(if (%current-target-system)
1381 `(("python" ,python)))
1383 (home-page "https://www.sudo.ws/")
1384 (synopsis "Run commands as root")
1386 "Sudo (su \"do\") allows a system administrator to delegate authority to
1387 give certain users (or groups of users) the ability to run some (or all)
1388 commands as root or another user while providing an audit trail of the
1389 commands and their arguments.")
1391 ;; See <http://www.sudo.ws/sudo/license.html>.
1392 (license license:x11)))
1394 (define-public wpa-supplicant-minimal
1396 (name "wpa-supplicant-minimal")
1401 "https://w1.fi/releases/wpa_supplicant-"
1405 "05qzak1mssnxcgdrafifxh9w86a4ha69qabkg4bsigk499xyxggw"))
1406 (modules '((guix build utils)))
1409 (substitute* "wpa_supplicant/defconfig"
1410 ;; Disable D-Bus to save ~14MiB on the closure size.
1411 (("^CONFIG_CTRL_IFACE_DBUS" line _)
1412 (string-append "#" line)))
1414 (build-system gnu-build-system)
1417 (modify-phases %standard-phases
1419 (lambda* (#:key outputs #:allow-other-keys)
1420 (chdir "wpa_supplicant")
1421 (copy-file "defconfig" ".config")
1422 (let ((port (open-file ".config" "al")))
1424 CONFIG_DEBUG_SYSLOG=y
1428 CONFIG_DRIVER_NL80211=y
1429 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
1431 CONFIG_READLINE=y\n" port)
1434 (add-after 'install 'install-documentation
1435 (lambda* (#:key outputs #:allow-other-keys)
1436 (let* ((out (assoc-ref outputs "out"))
1437 (doc (string-append out "/share/doc/wpa-supplicant"))
1438 (man (string-append out "/share/man"))
1439 (man5 (string-append man "/man5"))
1440 (man8 (string-append man "/man8")))
1441 (define (copy-man-page target)
1443 (install-file file target)))
1445 (mkdir-p man5) (mkdir man8)
1446 (for-each (copy-man-page man5)
1447 (find-files "doc/docbook" "\\.5"))
1448 (for-each (copy-man-page man8)
1449 (find-files "doc/docbook" "\\.8"))
1451 ;; wpa_supplicant.conf(5) does not explain all configuration
1452 ;; options but refers to the example config file, so install it
1453 ;; along with READMEs.
1454 (for-each (lambda (file)
1455 (install-file file doc))
1456 '("README" "README-DPP" "README-HS20"
1457 "README-P2P" "README-WPS"
1458 "wpa_supplicant.conf"))
1461 #:make-flags (list "CC=gcc"
1462 (string-append "BINDIR=" (assoc-ref %outputs "out")
1464 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1468 `(("readline" ,readline)
1470 ("openssl" ,openssl)))
1472 `(("pkg-config" ,pkg-config)))
1473 (home-page "https://w1.fi/wpa_supplicant/")
1474 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
1476 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
1477 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
1478 the client stations. It implements key negotiation with a WPA Authenticator
1479 and it controls the roaming and IEEE 802.11 authentication/association of the
1482 This package provides the @code{wpa_supplicant} daemon and the @code{wpa_cli}
1485 ;; In practice, this is linked against Readline, which makes it GPLv3+.
1486 (license license:bsd-3)
1488 (properties `((cpe-name . "wpa_supplicant")))))
1490 (define-public wpa-supplicant
1491 (package (inherit wpa-supplicant-minimal)
1492 (name "wpa-supplicant")
1493 (inputs `(("dbus" ,dbus)
1494 ,@(package-inputs wpa-supplicant-minimal)))
1496 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
1498 `(modify-phases ,phases
1499 (add-after 'configure 'configure-for-dbus
1501 (let ((port (open-file ".config" "al")))
1503 CONFIG_CTRL_IFACE_DBUS_NEW=y
1504 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
1507 (add-after 'install-documentation 'install-dbus-conf
1508 (lambda* (#:key outputs #:allow-other-keys)
1509 (let* ((out (assoc-ref outputs "out"))
1510 (dir (string-append out "/etc/dbus-1/system.d")))
1512 (copy-file "dbus/dbus-wpa_supplicant.conf"
1513 (string-append dir "/wpa_supplicant.conf")))
1516 (define-public wpa-supplicant-gui
1518 (inherit wpa-supplicant)
1519 (name "wpa-supplicant-gui")
1520 (inputs `(("qtbase" ,qtbase)
1522 ,@(package-inputs wpa-supplicant)))
1525 `(("imagemagick" ,imagemagick)
1526 ("inkscape" ,inkscape)
1527 ,@(package-native-inputs wpa-supplicant)))
1529 `(#:phases (modify-phases %standard-phases
1530 (add-after 'unpack 'chdir
1532 (chdir "wpa_supplicant/wpa_gui-qt4")
1537 (invoke "qmake" "wpa_gui.pro")
1538 (invoke "make" "-j" (number->string (parallel-job-count)))
1539 (invoke "make" "-C" "icons")))
1541 (lambda* (#:key inputs outputs #:allow-other-keys)
1542 (let ((out (assoc-ref outputs "out"))
1543 (qt '("qtbase" "qtsvg")))
1544 (install-file "wpa_gui" (string-append out "/bin"))
1545 (install-file "wpa_gui.desktop"
1546 (string-append out "/share/applications"))
1547 (copy-recursively "icons/hicolor"
1548 (string-append out "/share/icons/hicolor"))
1549 (wrap-program (string-append out "/bin/wpa_gui")
1550 `("QT_PLUGIN_PATH" ":" prefix
1551 ,(map (lambda (label)
1552 (string-append (assoc-ref inputs label)
1553 "/lib/qt5/plugins/"))
1556 (synopsis "Graphical user interface for WPA supplicant")))
1558 (define-public hostapd
1564 (uri (string-append "https://w1.fi/releases/hostapd-" version
1568 "1mrbvg4v7vm7mknf0n29mf88k3s4a4qj6r4d51wq8hmjj1m7s7c8"))))
1569 (build-system gnu-build-system)
1572 (modify-phases %standard-phases
1574 (lambda* (#:key outputs #:allow-other-keys)
1575 ;; This is mostly copied from 'wpa-supplicant' above.
1577 (copy-file "defconfig" ".config")
1578 (let ((port (open-file ".config" "al")))
1583 CONFIG_IEEE80211AC=y\n" port)
1586 (add-after 'install 'install-man-pages
1587 (lambda* (#:key outputs #:allow-other-keys)
1588 (let* ((out (assoc-ref outputs "out"))
1589 (man (string-append out "/share/man"))
1590 (man1 (string-append man "/man1"))
1591 (man8 (string-append man "/man8")))
1592 (define (copy-man-page target)
1594 (install-file file target)))
1596 (for-each (copy-man-page man1)
1597 (find-files "." "\\.1"))
1598 (for-each (copy-man-page man8)
1599 (find-files "." "\\.8"))
1602 #:make-flags (list "CC=gcc"
1603 (string-append "BINDIR=" (assoc-ref %outputs "out")
1605 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1608 (native-inputs `(("pkg-config" ,pkg-config)))
1610 ;; There's an optional dependency on SQLite.
1611 (inputs `(("openssl" ,openssl)
1613 (home-page "https://w1.fi/hostapd/")
1614 (synopsis "Daemon for Wi-Fi access points and authentication servers")
1616 "hostapd is a user-space daemon for WiFi access points and authentication
1617 servers. It implements IEEE 802.11 access point management, IEEE
1618 802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and RADIUS
1619 authentication server.")
1621 ;; Same license as wpa_supplicant.
1622 (license license:bsd-3)))
1624 (define-public wakelan
1631 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
1635 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
1636 (build-system gnu-build-system)
1639 (modify-phases %standard-phases
1641 (lambda* (#:key outputs #:allow-other-keys)
1642 (let ((out (assoc-ref outputs "out")))
1643 (mkdir-p (string-append out "/bin"))
1644 (mkdir-p (string-append out "/share/man/man1"))
1646 ;; It's an old configure script that doesn't understand
1647 ;; the extra options we pass.
1648 (setenv "CONFIG_SHELL" (which "bash"))
1649 (invoke "./configure"
1650 (string-append "--prefix=" out)
1651 (string-append "--mandir=" out
1654 (home-page "https://www.kernel.org") ; really, no home page
1655 (synopsis "Send a wake-on-LAN packet")
1657 "WakeLan broadcasts a properly formatted UDP packet across the local area
1658 network, which causes enabled computers to power on.")
1659 (license license:gpl2+)))
1661 (define-public dmidecode
1668 "mirror://savannah/dmidecode/dmidecode-"
1672 "1pcfhcgs2ifdjwp7amnsr3lq95pgxpr150bjhdinvl505px0cw07"))))
1673 (build-system gnu-build-system)
1675 '(#:phases (modify-phases %standard-phases (delete 'configure))
1676 #:tests? #f ; no 'check' target
1677 #:make-flags (list (string-append "prefix="
1678 (assoc-ref %outputs "out")))))
1679 (home-page "https://www.nongnu.org/dmidecode/")
1680 (synopsis "Read hardware information from the BIOS")
1682 "Dmidecode reports information about your system's hardware as described
1683 in your system BIOS according to the SMBIOS/DMI standard. This typically
1684 includes system manufacturer, model name, serial number, BIOS version, asset
1685 tag as well as a lot of other details of varying level of interest and
1686 reliability depending on the manufacturer. This will often include usage
1687 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1688 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1689 (license license:gpl2+)))
1691 (define-public acpica
1694 (version "20200430")
1698 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1702 "1hiaz9lrmjzdbi5zl0ajfflja41cixzx2j76iyx02qbjlmy9cfjc"))))
1703 (build-system gnu-build-system)
1704 (native-inputs `(("flex" ,flex)
1707 '(#:make-flags (list (string-append "PREFIX=" %output)
1710 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1711 #:tests? #f ; no 'check' target
1712 #:phases (modify-phases %standard-phases (delete 'configure))))
1713 (home-page "https://acpica.org/")
1714 (synopsis "Tools for the development and debugging of ACPI tables")
1716 "The @acronym{ACPICA, ACPI Component Architecture} project provides an
1717 OS-independent reference implementation of the @acronym{ACPI, Advanced
1718 Configuration and Power Interface} specification. ACPICA code contains those
1719 portions of ACPI meant to be directly integrated into the host OS as a
1720 kernel-resident subsystem, and a small set of tools to assist in developing and
1721 debugging ACPI tables.
1723 This package contains only the user-space tools needed for ACPI table
1724 development, not the kernel implementation of ACPI.")
1725 (license license:gpl2))) ; dual GPLv2/ACPICA Licence
1727 (define-public s-tui
1734 (uri (pypi-uri "s-tui" version))
1736 (base32 "0r5yhlsi5xiy7ii1w4kqkaxz9069v5bbfwi3x3xnxhk51yjfgr8n"))))
1737 (build-system python-build-system)
1739 `(("python-psutil" ,python-psutil)
1740 ("python-urwid" ,python-urwid)))
1741 (home-page "https://github.com/amanusk/s-tui")
1742 (synopsis "Interactive terminal stress test and monitoring tool")
1744 "The Stress Terminal UI displays graphs of the CPU frequency,
1745 utilization, temperature and power.")
1746 (license license:gpl2+)))
1748 (define-public stress
1754 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1755 version ".orig.tar.gz"))
1758 "0nw210jajk38m3y7h8s130ps2qsbz7j75wab07hi2r3hlz14yzh5"))))
1759 (build-system gnu-build-system)
1760 (home-page "https://packages.debian.org/sid/stress")
1761 (synopsis "Impose load on and stress test a computer system")
1763 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
1764 or disk stress on a POSIX-compliant operating system and reports any errors it
1767 Stress is not a benchmark. It is a tool used by system administrators to
1768 evaluate how well their systems will scale, by kernel programmers to evaluate
1769 perceived performance characteristics, and by systems programmers to expose
1770 the classes of bugs which only or more frequently manifest themselves when the
1771 system is under heavy load.")
1772 (license license:gpl2+)))
1774 (define-public detox
1781 (url "https://github.com/dharple/detox.git")
1782 (commit (string-append "v" version))))
1783 (file-name (git-file-name name version))
1786 "1dd608c7g65s5lj02cddvani3q9kzirddgkjqa22ap9d4f8b9xgr"))))
1787 (build-system gnu-build-system)
1789 `(("autoconf" ,autoconf)
1790 ("automake" ,automake)
1793 `(#:tests? #f ;no 'check' target
1794 #:phases (modify-phases %standard-phases
1795 (add-after 'unpack 'delete-configure
1796 ;; The "configure" script is present, but otherwise the
1797 ;; project is not bootstrapped: missing install-sh and
1798 ;; Makefile.in, so delete it so the bootstrap phase will
1800 (lambda _ (delete-file "configure") #t)))))
1801 (home-page "https://github.com/dharple/detox")
1802 (synopsis "Clean up file names")
1804 "Detox is a program that renames files to make them easier to work with
1805 under Unix and related operating systems. Spaces and various other unsafe
1806 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1807 characters can be replaced as well, as can UTF-8 characters.")
1808 (license license:bsd-3)))
1810 (define-public testdisk
1816 (uri (string-append "https://www.cgsecurity.org/testdisk-"
1817 version ".tar.bz2"))
1820 "1zlh44w67py416hkvw6nrfmjickc2d43v51vcli5p374d5sw84ql"))))
1821 (build-system gnu-build-system)
1823 `(("ntfs-3g" ,ntfs-3g)
1824 ("util-linux" ,util-linux "lib")
1825 ("openssl" ,openssl)
1826 ;; FIXME: add reiserfs.
1828 ("e2fsprogs" ,e2fsprogs)
1829 ("libjpeg" ,libjpeg-turbo)
1830 ("ncurses" ,ncurses)))
1831 (home-page "https://www.cgsecurity.org/wiki/TestDisk")
1832 (synopsis "Data recovery tool")
1834 "TestDisk is a program for data recovery, primarily designed to help
1835 recover lost partitions and/or make non-booting disks bootable again.")
1836 (license license:gpl2+)))
1845 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1848 (base32 "1hmpz6k0mr6salv0nprvm1g0rdjva1kx03bdf1scw8a38d5mspbi"))))
1849 (build-system gnu-build-system)
1851 '(#:phases (modify-phases %standard-phases (delete 'configure))
1852 #:tests? #f ; no check target
1853 #:make-flags (let ((out (assoc-ref %outputs "out")))
1854 (list (string-append "prefix=" out)))))
1855 (synopsis "Recursively list the contents of a directory")
1857 "Tree is a recursive directory listing command that produces a depth
1858 indented listing of files, which is colorized ala dircolors if the LS_COLORS
1859 environment variable is set and output is to tty.")
1860 (home-page "http://mama.indstate.edu/users/ice/tree/")
1861 (license license:gpl2+)))
1863 (define-public direvent
1869 (uri (string-append "mirror://gnu/direvent/direvent-"
1873 "0m9vi01b1km0cpknflyzsjnknbava0s1n6393b2bpjwyvb6j5613"))
1874 (modules '((guix build utils)))
1876 (substitute* "tests/testsuite"
1877 (("#![[:blank:]]?/bin/sh")
1880 (build-system gnu-build-system)
1883 (modify-phases %standard-phases
1884 (add-before 'build 'patch-/bin/sh
1885 (lambda* (#:key inputs #:allow-other-keys)
1886 ;; Use the right shell when executing the watcher and
1887 ;; user-provided shell commands.
1888 (let ((bash (assoc-ref inputs "bash")))
1889 (substitute* '("src/direvent.c" "src/progman.c")
1891 (string-append "\"" bash "/bin/sh\"")))
1893 ;; Adjust the 'shell.at' test accordingly.
1894 (substitute* "tests/testsuite"
1896 (string-append "SHELL=" bash "/bin/sh")))
1899 (home-page "https://www.gnu.org.ua/software/direvent/")
1900 (synopsis "Daemon to monitor directories for events such as file removal")
1902 "A daemon that monitors directories for events, such as creating,
1903 deleting or modifying files. It can monitor different sets of directories for
1904 different events. When an event is detected, direvent calls a specified
1905 external program with information about the event, such as the location
1906 within the file system where it occurred. Thus, \"direvent\" provides an
1907 easy way to react immediately if given files undergo changes, for example, to
1908 track changes in important system configuration files.")
1909 (license license:gpl3+)))
1911 (define-public libcap-ng
1918 "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1922 "1gzzy12agfa9ddipdf72h9y68zqqnvsjjylv4vnq6hj4w2safk58"))))
1923 (build-system gnu-build-system)
1926 (list "--without-python")))
1927 (home-page "https://people.redhat.com/sgrubb/libcap-ng/")
1928 (synopsis "Library for more easily working with POSIX capabilities")
1930 "The libcap-ng library is intended to make programming with POSIX
1931 capabilities easier than the traditional libcap library. It includes
1932 utilities that can analyse all currently running applications and print out
1933 any capabilities and whether or not it has an open ended bounding set. The
1934 included utilities are designed to let admins and developers spot apps from
1935 various ways that may be running with too much privilege.")
1936 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1937 (license (list license:lgpl2.1+ license:gpl2+))))
1939 (define-public smartmontools
1941 (name "smartmontools")
1946 "mirror://sourceforge/smartmontools/smartmontools/"
1947 version "/smartmontools-" version ".tar.gz"))
1950 "0imqb7ka4ia5573w8rnpck571pjjc9698pdjcapy9cfyk4n4swrz"))))
1951 (build-system gnu-build-system)
1952 (inputs `(("libcap-ng" ,libcap-ng)))
1953 (home-page "https://www.smartmontools.org/")
1954 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1956 "The smartmontools package contains utility programs to control and
1957 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1958 Technology System (@dfn{S.M.A.R.T.}) built into most modern ATA and SCSI hard
1959 disks. In many cases, these utilities will provide advanced warning of disk
1960 degradation and failure.")
1961 (license license:gpl2+)))
1963 (define-public fdupes
1971 (url "https://github.com/adrianlopezroche/fdupes.git")
1972 (commit (string-append "v" version))))
1973 (file-name (git-file-name name version))
1975 (base32 "19b6vqblddaw8ccw4sn0qsqzbswlhrz8ia6n4m3hymvcxn8skpz9"))))
1976 (build-system gnu-build-system)
1978 '(#:phases (modify-phases %standard-phases
1979 (delete 'configure))
1980 #:tests? #f ; no 'check' target
1981 #:make-flags (list "CC=gcc"
1982 (string-append "PREFIX="
1983 (assoc-ref %outputs "out")))))
1984 (home-page "https://github.com/adrianlopezroche/fdupes")
1985 (synopsis "Identify duplicate files")
1987 "fdupes is a program for identifying duplicate files residing within
1988 specified directories.")
1989 (license license:expat)))
1991 (define-public graphios
1998 (uri (pypi-uri "graphios" version))
2001 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
2002 (build-system python-build-system)
2004 ;; Be warned: Building with Python 3 succeeds, but the build process
2005 ;; throws a syntax error that is ignored.
2006 `(#:python ,python-2
2008 (modify-phases %standard-phases
2009 (add-before 'build 'fix-setup.py
2010 (lambda* (#:key outputs #:allow-other-keys)
2011 ;; Fix hardcoded, unprefixed file names.
2012 (let ((out (assoc-ref outputs "out")))
2013 (substitute* '("setup.py")
2014 (("/etc") (string-append out "/etc"))
2016 (("distro_ver = .*") "distro_ver = ''"))
2018 (home-page "https://github.com/shawn-sterling/graphios")
2019 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
2021 "Graphios is a script to emit nagios perfdata to various upstream metrics
2022 processing and time-series systems. It's currently compatible with Graphite,
2023 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
2024 of supported upstream metrics systems simultaneously.")
2025 (license license:gpl2+)))
2027 (define-public ansible
2034 (uri (pypi-uri "ansible" version))
2036 (base32 "1jfbp1i3nl4yvqwd5ssy43dz3pq2x03mn875vb8r56gqh43kmksr"))))
2037 (build-system python-build-system)
2039 `(("python-bcrypt" ,python-bcrypt)
2040 ("python-pynacl" ,python-pynacl)
2041 ("python-httplib2" ,python-httplib2)
2042 ("python-passlib" ,python-passlib)
2043 ("python-nose" ,python-nose)
2044 ("python-mock" ,python-mock)
2045 ("python-jinja2" ,python-jinja2)
2046 ("python-pyyaml" ,python-pyyaml)
2047 ("python-paramiko" ,python-paramiko)))
2049 `(("python-cryptography" ,python-cryptography)
2050 ("python-jinja2" ,python-jinja2)
2051 ("python-pyyaml" ,python-pyyaml)
2052 ("python-paramiko" ,python-paramiko)))
2055 (modify-phases %standard-phases
2056 ;; Several ansible commands (ansible-config, ansible-console, etc.)
2057 ;; are just symlinks to a single ansible executable. The ansible
2058 ;; executable behaves differently based on the value of
2059 ;; sys.argv[0]. This does not work well with our wrap phase, and
2060 ;; therefore the following two phases are required as a workaround.
2061 (add-after 'unpack 'hide-wrapping
2063 ;; Overwrite sys.argv[0] to hide the wrapper script from it.
2064 (substitute* "bin/ansible"
2065 (("import traceback" all)
2066 (string-append all "
2068 sys.argv[0] = re.sub(r'\\.([^/]*)-real$', r'\\1', sys.argv[0])
2071 (add-after 'install 'replace-symlinks
2072 (lambda* (#:key outputs #:allow-other-keys)
2073 ;; Replace symlinks with duplicate copies of the ansible
2075 (let ((out (assoc-ref outputs "out")))
2077 (lambda (subprogram)
2078 (delete-file (string-append out "/bin/ansible-" subprogram))
2079 (copy-file (string-append out "/bin/ansible")
2080 (string-append out "/bin/ansible-" subprogram)))
2081 (list "config" "console" "doc" "galaxy"
2082 "inventory" "playbook" "pull" "vault")))
2084 (home-page "https://www.ansible.com/")
2085 (synopsis "Radically simple IT automation")
2086 (description "Ansible is a radically simple IT automation system. It
2087 handles configuration management, application deployment, cloud provisioning,
2088 ad hoc task execution, and multinode orchestration---including trivializing
2089 things like zero-downtime rolling updates with load balancers.")
2090 (license license:gpl3+)))
2092 (define-public debops
2100 (url "https://github.com/debops/debops")
2101 (commit (string-append "v" version))))
2102 (file-name (git-file-name name version))
2104 (base32 "052b2dykdn35pdpn9s4prawl6nl6yzih8nyf54hpvhpisvjrm1v5"))
2106 (search-patches "debops-constants-for-external-program-names.patch"
2107 "debops-debops-defaults-fall-back-to-less.patch"))))
2108 (build-system python-build-system)
2112 `(("ansible" ,ansible)
2115 ("util-linux" ,util-linux) ;; for umount
2116 ("findutils" ,findutils)
2120 `(("python-future" ,python-future)
2121 ("python-distro" ,python-distro)))
2125 (modify-phases %standard-phases
2126 (add-after 'unpack 'nuke-debops-update
2128 (chmod "bin/debops-update" #o755) ; FIXME work-around git-fetch issue
2129 (with-output-to-file "bin/debops-update"
2131 (format #t "#!/bin/sh
2132 echo 'debops is installed via guix. guix-update is useless in this case.
2133 Please use `guix package -u debops` instead.'")))
2135 ;; patch shebangs only in actuall scripts, not in files included in
2136 ;; roles (which are to be delivered to the targte systems)
2137 (delete `patch-generated-file-shebangs)
2138 (replace 'patch-source-shebangs
2140 (for-each patch-shebang
2143 ;; Filter out symlinks.
2144 (eq? 'regular (stat:type stat)))
2146 (add-after 'unpack 'fix-paths
2148 (define (substitute-program-names file)
2149 ;; e.g. ANSIBLE_PLAYBOOK = '/gnu/store/…/bin/ansible-playbook'
2152 (let ((varname (string-upcase
2154 (lambda (c) (if (char=? c #\-) #\_ c))
2157 (((string-append "^(" varname " = )'.*'") line prefix)
2158 (string-append prefix "'" (which name) "'")))))
2159 '("ansible-playbook" "encfs" "find" "fusermount"
2160 "umount" "gpg" "ansible" "which")))
2161 (for-each substitute-program-names
2163 "bin/debops-padlock"
2165 "debops/__init__.py"
2166 "debops/cmds/__init__.py"))
2168 (home-page "https://www.debops.org/")
2169 (synopsis "Collection of general-purpose Ansible roles")
2170 (description "The Ansible roles provided by that can be used to manage
2171 Debian or Ubuntu hosts. In addition, a default set of Ansible playbooks can
2172 be used to apply the provided roles in a controlled way, using Ansible
2175 The roles are written with a high customization in mind, which can be done
2176 using Ansible inventory. This way the role and playbook code can be shared
2177 between multiple environments, with different configuration in to each one.
2179 Services can be managed on a single host, or spread between multiple hosts.
2180 DebOps provides support for different SQL and NoSQL databases, web servers,
2181 programming languages and specialized applications useful in a data center
2182 environment or in a cluster. The project can also be used to deploy
2183 virtualization environments using KVM/libvirt, Docker or LXC technologies to
2184 manage virtual machines and/or containers.")
2185 (license license:gpl3+)))
2187 (define-public emacs-ansible-doc
2188 (let ((commit "86083a7bb2ed0468ca64e52076b06441a2f8e9e0"))
2190 (name "emacs-ansible-doc")
2191 (version (git-version "0.4" "1" commit))
2196 (url "https://github.com/lunaryorn/ansible-doc.el")
2198 (file-name (git-file-name name version))
2201 "0lap404ch74w99n3xip176jr42b38xhyzkfnkyqg0g3wk2cd3aq8"))))
2202 (build-system emacs-build-system)
2203 ;; Unmaintained by upstream.
2204 (home-page "https://github.com/lunaryorn/ansible-doc.el")
2205 (synopsis "Ansible documentation for Emacs")
2207 "This package provides an Ansible documentation for GNU Emacs.
2209 @code{ansible-doc} allows you to view the documentation of an Ansible
2210 module and @code{ansible-doc-mode} minor mode adds documentation
2211 lookup to YAML Mode. You could enable the mode with @code{(add-hook
2212 'yaml-mode-hook #'ansible-doc-mode)}.")
2213 (license license:gpl3+))))
2215 (define-public cpulimit
2223 (url "https://github.com/opsengine/cpulimit.git")
2224 (commit (string-append "v" version))))
2225 (file-name (git-file-name name version))
2227 (base32 "1dz045yhcsw1rdamzpz4bk8mw888in7fyqk1q1b3m1yk4pd1ahkh"))))
2228 (build-system gnu-build-system)
2230 `(#:phases (modify-phases %standard-phases
2234 (invoke "make" "CC=gcc" "-Csrc")))
2237 (invoke "make" "CC=gcc" "-Ctests")))
2239 (lambda* (#:key outputs #:allow-other-keys)
2240 (let* ((out (assoc-ref outputs "out"))
2241 (bin (string-append out "/bin")))
2242 (install-file "src/cpulimit" bin))
2244 (home-page "https://github.com/opsengine/cpulimit")
2245 (synopsis "Limit CPU usage")
2247 "Cpulimit limits the CPU usage of a process. It does not change the nice
2248 value or other scheduling priority settings, but the real CPU usage, and is
2249 able to adapt itself dynamically to the overall system load. Children
2250 processes and threads of the specified process may optionally share the same
2252 (license license:gpl2+)))
2254 (define-public autojump
2262 (url "https://github.com/wting/autojump.git")
2263 (commit (string-append "release-v" version))))
2264 (file-name (git-file-name name version))
2266 (base32 "1rgpsh70manr2dydna9da4x7p8ahii7dgdgwir5fka340n1wrcws"))))
2267 (build-system gnu-build-system)
2268 (native-inputs ; for tests
2269 `(("python-mock" ,python-mock)
2270 ("python-pytest" ,python-pytest)))
2272 `(("python" ,python-wrapper)))
2275 (modify-phases %standard-phases
2276 (add-after 'unpack 'make-git-checkout-writable
2277 ;; ‘install.py’ modifies files before installing them.
2279 (for-each make-file-writable (find-files "."))
2285 (invoke "python" "tests/unit/autojump_utils_test.py")))
2287 (lambda* (#:key outputs #:allow-other-keys)
2288 (setenv "SHELL" (which "bash"))
2289 (invoke "python" "install.py"
2290 (string-append "--destdir="
2291 (assoc-ref outputs "out"))))))))
2292 (home-page "https://github.com/wting/autojump")
2293 (synopsis "Shell extension for file system navigation")
2295 "Autojump provides a faster way to navigate your file system, with a \"cd
2296 command that learns\". It works by maintaining a database of the directories
2297 you use the most from the command line and allows you to \"jump\" to
2298 frequently used directories by typing only a small pattern.")
2299 (license license:gpl3+)))
2308 (url "https://github.com/clvv/fasd.git")
2310 (file-name (git-file-name name version))
2313 "1awi71jdv3mhjrmar2d4z1i90kn7apd7aq1w31sh6w4yibz9kiyj"))))
2314 (build-system gnu-build-system)
2316 `(#:phases (modify-phases %standard-phases
2317 (delete 'configure)) ;no configuration
2318 #:tests? #f ;no tests
2319 #:make-flags (list (string-append "PREFIX=" %output))))
2320 (home-page "https://github.com/clvv/fasd")
2321 (synopsis "Quick access to files and directories for shells")
2323 "Fasd (pronounced similar to \"fast\") is a command-line productivity
2324 booster. Fasd offers quick access to files and directories for POSIX shells.
2325 It is inspired by tools like autojump, z, and v. Fasd keeps track of files
2326 and directories you have accessed so that you can quickly reference them in
2328 (license license:x11)))
2330 (define-public iftop
2336 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
2337 "/iftop-" version ".tar.gz"))
2340 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
2341 (build-system gnu-build-system)
2343 `(("libpcap" ,libpcap)
2344 ("ncurses" ,ncurses)))
2345 (synopsis "Monitor network usage")
2346 (description "Iftop does for network usage what @command{top} does
2347 for CPU usage. It listens to network traffic on a named interface and
2348 displays a table of current bandwidth usage by pairs of hosts.")
2349 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
2350 (license license:gpl2+)))
2352 (define-public munge
2358 (uri (string-append "https://github.com/dun/munge/releases/"
2359 "download/munge-" version "/munge-"
2363 "0h06sghb4rqvv1ywyd6mzsmbcgh712v6ygrff0gzm440y4ca41k6"))
2364 (modules '((guix build utils)))
2367 ;; Don't insist on write access to /var.
2368 (substitute* "src/etc/Makefile.in"
2369 (("\\$\\(INSTALL\\)(.*)localstatedir" _ middle)
2370 (string-append "-$(INSTALL)" middle "localstatedir"))
2371 (("\\$\\(MKDIR_P\\) .*(local|run)statedir.*")
2375 `(("openssl" ,openssl)
2376 ("libgcrypt" ,libgcrypt)))
2377 (build-system gnu-build-system)
2380 (list "--localstatedir=/var"
2381 (string-append "--with-pkgconfigdir="
2382 (assoc-ref %outputs "out") "/lib/pkgconfig"))
2384 (modify-phases %standard-phases
2385 ;; XXX Many test series fail. Some might be fixable, others do no-no
2386 ;; things like invoking ‘sudo’.
2387 (add-after 'unpack 'skip-failing-tests
2389 (for-each (lambda (test)
2390 (substitute* "t/Makefile.in"
2391 (((string-append test "\\.t ")) "")))
2392 (list "0100-munged-lock"
2394 "0011-munged-cmdline"
2395 "0012-munge-cmdline"
2396 "0013-unmunge-cmdline"
2397 "0101-munged-security-socket"
2398 "0102-munged-security-keyfile"
2399 "0103-munged-security-logfile"
2400 "0110-munged-origin-addr"))
2402 (home-page "https://dun.github.io/munge/")
2403 (synopsis "Cluster computing authentication service")
2405 "Munge is an authentication service for creating and validating
2406 credentials. It allows a process to authenticate the UID and GID of another
2407 local or remote process within a group of hosts having common users and
2408 groups. These hosts form a security realm that is defined by a shared
2409 cryptographic key. Clients within this security realm can create and validate
2410 credentials without the use of root privileges, reserved ports, or
2411 platform-specific methods.")
2412 (license license:gpl3+)))
2414 (define-public audit
2417 (home-page "https://people.redhat.com/sgrubb/audit/")
2421 (uri (string-append home-page "audit-" version ".tar.gz"))
2424 "1dzcwb2q78q7x41shcachn7f4aksxbxd470yk38zh03fch1l2p8f"))))
2425 (build-system gnu-build-system)
2427 `(#:configure-flags (list "--with-python=no"
2428 "--disable-static")))
2430 `(("openldap" ,openldap)
2432 ("sasl" ,cyrus-sasl)))
2433 (synopsis "User-space component to the Linux auditing system")
2435 "auditd is the user-space component to the Linux auditing system, which
2436 allows logging of system calls made by user-land processes. It's responsible
2437 for writing audit records to the disk. Viewing the logs is done with the
2438 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
2439 done with the @code{auditctl} utility.")
2440 (license license:gpl2+)))
2448 (uri (string-append "https://nmap.org/dist/nmap-" version
2452 "1aizfys6l9f9grm82bk878w56mg0zpkfns3spzj157h98875mypw"))
2453 (modules '((guix build utils)))
2456 (for-each delete-file-recursively
2457 ;; Remove bundled lua, pcap, and pcre libraries.
2458 ;; FIXME: Remove bundled liblinear once packaged.
2462 ;; Remove pre-compiled binares.
2465 (build-system gnu-build-system)
2467 `(("openssl" ,openssl)
2468 ("libpcap" ,libpcap)
2471 ("zlib" ,zlib) ;for NSE compression support
2474 ("python" ,python-2)))
2476 ;; TODO Add zenmap output.
2477 (outputs '("out" "ndiff"))
2479 `(#:configure-flags '("--without-zenmap")
2481 (modify-phases %standard-phases
2482 (add-after 'configure 'patch-Makefile
2484 (substitute* "Makefile"
2485 ;; Do not attempt to build lua.
2486 (("build-dnet build-lua") "build-dnet"))
2489 (lambda* (#:key outputs #:allow-other-keys)
2490 (define (make out . args)
2491 (apply invoke "make"
2492 (string-append "prefix=" out)
2494 (define (python-path dir)
2495 (string-append dir "/lib/python"
2496 ,(version-major+minor
2497 (package-version python))
2499 (let ((out (assoc-ref outputs "out"))
2500 (ndiff (assoc-ref outputs "ndiff")))
2501 (for-each mkdir-p (list out ndiff))
2507 (make ndiff "install-ndiff")
2508 (wrap-program (string-append ndiff "/bin/ndiff")
2509 `("PYTHONPATH" prefix
2510 (,(python-path ndiff)))))
2512 ;; These are the tests that do not require network access.
2514 (lambda _ (invoke "make"
2518 ;; Nmap can't cope with out-of-source building.
2519 #:out-of-source? #f))
2520 (home-page "https://nmap.org/")
2521 (synopsis "Network discovery and security auditing tool")
2523 "Nmap (\"Network Mapper\") is a network discovery and security auditing
2524 tool. It is also useful for tasks such as network inventory, managing service
2525 upgrade schedules, and monitoring host or service uptime. It also provides an
2526 advanced netcat implementation (ncat), a utility for comparing scan
2527 results (ndiff), and a packet generation and response analysis tool (nping).")
2528 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
2529 ;; both use a 3-clause BSD license.
2530 (license (list license:nmap license:bsd-3))))
2532 (define-public dstat
2540 (url "https://github.com/dagwieers/dstat.git")
2541 (commit (string-append "v" version))))
2542 (file-name (git-file-name "dstat" version))
2544 (base32 "1qnmkhqmjd1m3if05jj29dvr5hn6kayq9bkkkh881w472c0zhp8v"))
2545 (patches (search-patches "dstat-fix-crash-when-specifying-delay.patch"
2546 "dstat-skip-devices-without-io.patch"))))
2547 (build-system gnu-build-system)
2549 `(#:tests? #f ; no make check
2550 #:make-flags (let ((out (assoc-ref %outputs "out")))
2551 (list (string-append "DESTDIR=" out)
2554 (modify-phases %standard-phases
2555 (add-after 'unpack 'fix-python3-DeprecationWarning
2557 (substitute* "dstat"
2558 (("collections") "collections.abc"))
2560 (delete 'configure) ; no configure script
2561 (add-after 'install 'wrap
2562 (lambda* (#:key outputs #:allow-other-keys)
2563 (let ((out (assoc-ref outputs "out")))
2564 (wrap-program (string-append out "/bin/dstat")
2565 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
2568 `(("python" ,python-wrapper)
2569 ("python-six" ,python-six)))
2570 (synopsis "Versatile resource statistics tool")
2571 (description "Dstat is a versatile replacement for @command{vmstat},
2572 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
2573 some of their limitations and adds some extra features, more counters and
2574 flexibility. Dstat is handy for monitoring systems during performance tuning
2575 tests, benchmarks or troubleshooting.
2577 Dstat allows you to view all of your system resources in real-time, you can,
2578 e.g., compare disk utilization in combination with interrupts from your IDE
2579 controller, or compare the network bandwidth numbers directly with the disk
2580 throughput (in the same interval).")
2581 (home-page "http://dag.wiee.rs/home-made/dstat/")
2582 (license license:gpl2+)))
2584 (define-public thefuck
2592 (url "https://github.com/nvbn/thefuck.git")
2594 (file-name (git-file-name name version))
2596 (base32 "0fnf78956pwhb9cgv1jmgypnkma5xzflkivfrkfiadbgin848yfg"))
2597 (patches (search-patches "thefuck-test-environ.patch"))))
2598 (build-system python-build-system)
2601 (modify-phases %standard-phases
2603 (add-after 'install 'check
2604 (lambda* (#:key inputs outputs #:allow-other-keys)
2605 ;; Tests look for installed package
2606 (add-installed-pythonpath inputs outputs)
2607 ;; Some tests need write access to $HOME.
2608 (setenv "HOME" "/tmp")
2609 (invoke "py.test" "-v")
2612 `(("python-colorama" ,python-colorama)
2613 ("python-decorator" ,python-decorator)
2614 ("python-psutil" ,python-psutil)
2615 ("python-pyte" ,python-pyte)
2616 ("python-six" ,python-six)))
2619 ("python-mock" ,python-mock)
2620 ("python-pytest" ,python-pytest)
2621 ("python-pytest-mock" ,python-pytest-mock)))
2622 (home-page "https://github.com/nvbn/thefuck")
2623 (synopsis "Correct mistyped console command")
2625 "The Fuck tries to match a rule for a previous, mistyped command, creates
2626 a new command using the matched rule, and runs it.")
2627 (license license:x11)))
2636 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
2638 (base32 "0m4npba50sf5s61g5z3xd2r7937zwja941f2h3f081xi24c2hfck"))))
2639 (build-system gnu-build-system)
2641 `(#:tests? #f ; obscure test failures
2643 (modify-phases %standard-phases
2644 (delete 'configure) ; no configure script
2645 (add-before 'build 'setup-environment
2646 (lambda* (#:key outputs #:allow-other-keys)
2648 (setenv "prefix" (assoc-ref outputs "out"))
2650 #:make-flags (list "--environment-overrides")))
2651 (home-page "https://gentoo.com/di/")
2652 (synopsis "Advanced df like disk information utility")
2654 "@code{di} is a disk information utility, displaying everything that your
2655 @code{df} command does and more. It features the ability to display your disk
2656 usage in whatever format you prefer. It is designed to be highly portable and
2657 produce uniform output across heterogeneous networks.")
2658 (license license:zlib)))
2660 (define-public cbatticon
2668 (url "https://github.com/valr/cbatticon.git")
2671 (base32 "0ivm2dzhsa9ir25ry418r2qg2llby9j7a6m3arbvq5c3kaj8m9jr"))
2672 (file-name (git-file-name name version))))
2673 (build-system gnu-build-system)
2675 `(#:tests? #f ; no tests
2677 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2680 (modify-phases %standard-phases
2681 (delete 'configure)))) ; no configure script
2684 ("gettext" ,gettext-minimal)
2685 ("libnotify" ,libnotify)))
2687 `(("pkg-config" ,pkg-config)))
2688 (synopsis "Lightweight battery icon for the system tray")
2689 (description "cbatticon is a lightweight battery icon that displays
2690 the status of your battery in the system tray.")
2691 (home-page "https://github.com/valr/cbatticon")
2692 (license license:gpl2+)))
2694 (define-public interrobang
2695 (let ((revision "1")
2696 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
2698 (name "interrobang")
2699 (version (git-version "0.0.0" revision commit))
2704 (url "https://github.com/TrilbyWhite/interrobang.git")
2706 (file-name (git-file-name name version))
2708 (base32 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
2709 (build-system gnu-build-system)
2711 `(#:tests? #f ; no tests
2713 (modify-phases %standard-phases
2714 (delete 'configure)) ; no configure script
2715 #:make-flags (list (string-append "PREFIX="
2716 (assoc-ref %outputs "out")))))
2718 `(("libx11" ,libx11)))
2720 `(("pkg-config" ,pkg-config)))
2721 (synopsis "Scriptable launcher menu")
2722 (description "Interrobang is a scriptable launcher menu with a customizable
2723 shortcut syntax and completion options.")
2724 (home-page "https://github.com/TrilbyWhite/interrobang")
2725 (license license:gpl3+))))
2727 (define-public pam-krb5
2734 "https://archives.eyrie.org/software/kerberos/"
2735 "pam-krb5-" version ".tar.xz"))
2736 (patches (search-patches "pam-krb5-CVE-2020-10595.patch"))
2739 "1qjp8i1s9bz7g6kiqrkzzkxn5pfspa4sy53b6z40fqmdf9przdfb"))))
2740 (build-system gnu-build-system)
2743 (modify-phases %standard-phases
2744 (add-before 'configure 'disable-tests
2746 ;; The build container seems to interfere with some tests.
2747 (substitute* "tests/TESTS"
2748 (("module/basic\n") ""))
2749 (substitute* "tests/TESTS"
2750 (("pam-util/vector\n") ""))
2753 `(("linux-pam" ,linux-pam)
2754 ("mit-krb5" ,mit-krb5)))
2757 ("perl-test-pod" ,perl-test-pod))) ; required for tests
2758 (synopsis "Kerberos PAM module")
2760 "Pam-krb5 is a Kerberos PAM module for either MIT Kerberos or Heimdal.
2761 It supports ticket refreshing by screen savers, configurable
2762 authorization handling, authentication of non-local accounts for network
2763 services, password changing, and password expiration, as well as all the
2764 standard expected PAM features. It works correctly with OpenSSH, even
2765 with @code{ChallengeResponseAuthentication} and @code{PrivilegeSeparation}
2766 enabled, and supports extensive configuration either by PAM options or in
2767 krb5.conf or both. PKINIT is supported with recent versions of both MIT
2768 Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
2769 (home-page "https://www.eyrie.org/~eagle/software/pam-krb5")
2770 ;; Dual licenced under a homebrew non-copyleft OR GPL (any version)
2771 ;; However, the tarball does not contain a copy of the GPL, so unless
2772 ;; we put one in, we cannot distribute it under GPL without violating
2773 ;; clause requiring us to give all recipients a copy.
2774 (license license:gpl1+)))
2776 (define (sunxi-tools-source version)
2780 (url "https://github.com/linux-sunxi/sunxi-tools.git")
2781 (commit (string-append "v" version))))
2783 (base32 "04f3jqg8ww4jxsf9c6ddcdgy2xbhkyp0b3l5f1hvvbv94p81rjxd"))
2784 (modules '((guix build utils)))
2786 ;; Remove binaries contained in the tarball which are only for the
2787 ;; target and can be regenerated anyway.
2789 (delete-file-recursively "bin")
2791 (file-name (git-file-name "sunxi-tools" version))))
2793 (define sunxi-target-tools
2795 (name "sunxi-target-tools")
2797 (build-system gnu-build-system)
2799 (sunxi-tools-source version))
2801 `(#:system "armhf-linux"
2803 #:make-flags (list (string-append "PREFIX="
2804 (assoc-ref %outputs "out"))
2805 (string-append "CROSS_COMPILE=")
2808 (modify-phases %standard-phases
2811 (lambda* (#:key make-flags #:allow-other-keys)
2812 (apply invoke "make" "target-tools" make-flags)))
2814 (lambda* (#:key make-flags #:allow-other-keys)
2815 (apply invoke "make" "install-target-tools"
2817 (home-page "https://github.com/linux-sunxi/sunxi-tools")
2818 (synopsis "Hardware management tools for Allwinner computers")
2819 (description "This package contains tools for Allwinner devices:
2821 @item @command{sunxi-meminfo}: Prints memory bus settings.
2823 (license license:gpl2+)))
2825 (define-public sunxi-tools
2827 (name "sunxi-tools")
2830 (sunxi-tools-source version))
2832 `(("sunxi-target-tools" ,sunxi-target-tools)
2833 ("pkg-config" ,pkg-config)))
2835 `(("libusb" ,libusb)))
2836 (build-system gnu-build-system)
2838 `(#:tests? #f ; no tests exist
2839 #:make-flags (list (string-append "PREFIX="
2840 (assoc-ref %outputs "out"))
2841 (string-append "CROSS_COMPILE=disabled")
2844 (modify-phases %standard-phases
2847 (lambda* (#:key make-flags #:allow-other-keys)
2848 (apply invoke "make" "tools" "misc" make-flags)))
2850 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
2851 ;; Those tools have been built for armhf but are part of the
2852 ;; installation in the upstream package. So do the same
2854 (copy-recursively (assoc-ref inputs "sunxi-target-tools")
2855 (assoc-ref outputs "out"))
2856 (apply invoke "make" "install-tools" "install-misc"
2858 (home-page "https://github.com/linux-sunxi/sunxi-tools")
2859 (synopsis "Hardware management tools for Allwinner computers")
2860 (description "This package contains tools for Allwinner devices:
2862 @item @command{sunxi-fexc}, @command{bin2fex}, @command{fex2bin}: Compile
2863 a textual description of a board (.fex) to a binary representation (.bin).
2864 @item @command{sunxi-fel}: Puts an Allwinner device into FEL mode which
2865 makes it register as a special USB device (rather than USB host).
2866 You can then connect it to another computer and flash it from there.
2867 @item @command{sunxi-nand-part}: Partitions NAND flash.
2868 @item @command{sunxi-bootinfo}: Reads out boot0 and boot1 (Allwinner
2869 bootloader) parameters.
2870 @item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
2871 in order to be able to find it.
2872 @item @command{sunxi-meminfo}: Prints memory bus settings.
2873 @item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
2875 (license license:gpl2+)))
2877 (define-public sedsed
2885 (url "https://github.com/aureliojargas/sedsed.git")
2886 (commit (string-append "v" version))))
2887 (file-name (git-file-name name version))
2889 (base32 "05cl35mwljdb9ynbbsfa8zx6ig8r0xncbg2cir9vwn5manndjj18"))))
2890 (build-system python-build-system)
2892 `(#:tests? #f ; no tests
2894 (modify-phases %standard-phases
2895 (add-after 'unpack 'patch-sed-in
2897 (substitute* "sedsed.py"
2899 (string-append "sedbin = '" (which "sed") "'")))
2903 (lambda* (#:key outputs #:allow-other-keys)
2904 (let* ((out (assoc-ref outputs "out"))
2905 (bin (string-append out "/bin")))
2906 ;; Just one file to copy around
2907 (install-file "sedsed.py" bin)
2909 (add-after 'wrap 'symlink
2910 ;; Create 'sedsed' symlink to "sedsed.py".
2911 (lambda* (#:key outputs #:allow-other-keys)
2912 (let* ((out (assoc-ref outputs "out"))
2913 (bin (string-append out "/bin"))
2914 (sed (string-append bin "/sedsed"))
2915 (sedpy (string-append bin "/sedsed.py")))
2918 (home-page "https://aurelio.net/projects/sedsed")
2919 (synopsis "Sed sed scripts")
2921 "@code{sedsed} can debug, indent, tokenize and HTMLize your @command{sed}
2924 In debug mode, it reads your script and adds extra commands to it. When
2925 executed you can see the data flow between the commands, revealing all the
2926 magic sed performs on its internal buffers.
2928 In indent mode, your script is reformatted with standard spacing.
2930 In tokenize mode, you can see the elements of every command you use.
2932 In HTMLize mode, your script is converted to a beautiful colored HTML file,
2933 with all the commands and parameters identified for your viewing pleasure.
2935 With sedsed you can master any sed script. No more secrets, no more hidden
2937 (license license:expat)))
2939 (define-public igt-gpu-tools
2941 (name "igt-gpu-tools")
2947 (url "https://gitlab.freedesktop.org/drm/igt-gpu-tools.git")
2948 (commit (string-append "igt-gpu-tools-" version))))
2949 (file-name (git-file-name name version))
2951 (base32 "1gpdjs5aj6vsnzwcjvw5bb120lgffvvshi4202phr0bzw3b92ky8"))))
2952 (build-system gnu-build-system)
2954 `(#:tests? #f)) ; many of the tests try to load kernel modules
2957 ("elfutils" ,elfutils) ; libdw
2962 ("libpciaccess" ,libpciaccess)
2963 ("libunwind" ,libunwind)
2964 ("libxrandr" ,libxrandr)
2965 ("openssl" ,openssl)
2967 ("util-macros" ,util-macros)))
2969 `(("autoconf" ,autoconf)
2970 ("automake" ,automake)
2971 ("libtool" ,libtool)
2972 ("pkg-config" ,pkg-config)))
2973 (home-page "https://gitlab.freedesktop.org/drm/igt-gpu-tools")
2974 (synopsis "Tools for development and testing of the Intel DRM driver")
2975 (description "IGT GPU Tools is a collection of tools for development and
2976 testing of the Intel DRM driver. There are many macro-level test suites that
2977 get used against the driver, including xtest, rendercheck, piglit, and
2978 oglconform, but failures from those can be difficult to track down to kernel
2979 changes, and many require complicated build procedures or specific testing
2980 environments to get useful results. Therefore, IGT GPU Tools includes
2981 low-level tools and tests specifically for development and testing of the
2983 (supported-systems '("i686-linux" "x86_64-linux"))
2984 (license license:expat)))
2986 (define-public fabric
2993 (uri (pypi-uri "Fabric" version))
2996 "1a3ndlpdw6bhn8fcw1jgznl117a8pnr84az9rb5fwnrypf1ph2b6"))))
2997 (build-system python-build-system)
2999 `(#:python ,python-2 ; Python 2 only
3001 (modify-phases %standard-phases
3005 "nosetests" "-v" "tests/"
3006 ;; This test hangs indefinitely when run on a single core VM
3007 ;; (see GNU bug #26647 and Debian bug #850230).
3008 "--exclude=test_nested_execution_with_explicit_ports"
3009 ;; This test randomly fails in certain environments causing too
3010 ;; much noise to be useful (see Debian bug #854686).
3011 "--exclude=test_should_use_sentinel_for_tasks_that_errored"))))))
3013 `(("python2-fudge" ,python2-fudge) ; Requires < 1.0
3014 ("python2-jinja2" ,python2-jinja2) ; Requires < 3.0
3015 ("python2-nose" ,python2-nose) ; Requires < 2.0
3016 ("python2-pynacl" ,python2-pynacl)
3017 ("python2-bcrypt" ,python2-bcrypt)))
3019 `(("python2-paramiko" ,python2-paramiko)))
3020 (home-page "https://www.fabfile.org/")
3021 (synopsis "Simple Pythonic remote execution and deployment tool")
3023 "Fabric is designed to upload files and run shell commands on a number of
3024 servers in parallel or serially. These commands are grouped in tasks (which
3025 are regular Python functions) and specified in a @dfn{fabfile}.
3027 It is similar to Capistrano, except it's implemented in Python and doesn't
3028 expect you to be deploying Rails applications. Fabric is a simple, Pythonic
3029 tool for remote execution and deployment.")
3030 (license license:bsd-2)))
3032 (define-public neofetch
3039 (url "https://github.com/dylanaraps/neofetch")
3041 (file-name (git-file-name name version))
3044 "0xc0fdc7n5bhqirh83agqiy8r14l14zwca07czvj8vgnsnfybslr"))))
3045 (build-system gnu-build-system)
3047 `(#:tests? #f ; there are no tests
3049 (list (string-append "PREFIX=" %output))
3051 (modify-phases %standard-phases
3052 (delete 'configure)))) ; no configure script
3053 (home-page "https://github.com/dylanaraps/neofetch")
3054 (synopsis "System information script")
3055 (description "Neofetch is a command-line system information tool written in
3056 Bash. Neofetch displays information about your system next to an image, your OS
3057 logo, or any ASCII file of your choice. The main purpose of Neofetch is to be
3058 used in screenshots to show other users what operating system or distribution
3059 you are running, what theme or icon set you are using, etc.")
3060 (license license:expat)))
3062 (define-public screenfetch
3064 (name "screenfetch")
3069 (url "https://github.com/KittyKatt/screenFetch")
3070 (commit (string-append "v" version))))
3071 (file-name (git-file-name name version))
3074 "04l8aqr474pb115nagn9f6y48jw92n1qfszgw7dbhgl4mpn95lcr"))))
3075 (build-system trivial-build-system)
3077 `(#:modules ((guix build utils))
3080 (use-modules (guix build utils))
3081 (let ((source (assoc-ref %build-inputs "source"))
3082 (out (assoc-ref %outputs "out")))
3083 (mkdir-p (string-append out "/bin/"))
3084 (copy-file (string-append source "/screenfetch-dev")
3085 (string-append out "/bin/screenfetch"))
3086 (install-file (string-append source "/screenfetch.1")
3087 (string-append out "/man/man1/"))
3088 (install-file (string-append source "/COPYING")
3089 (string-append out "/share/doc/" ,name "-" ,version))
3090 (substitute* (string-append out "/bin/screenfetch")
3091 (("/usr/bin/env bash")
3092 (string-append (assoc-ref %build-inputs "bash")
3095 (string-append out "/bin/screenfetch")
3097 (,(string-append (assoc-ref %build-inputs "bc") "/bin:"
3098 (assoc-ref %build-inputs "scrot") "/bin:"
3099 (assoc-ref %build-inputs "xdpyinfo") "/bin"
3100 (assoc-ref %build-inputs "xprop") "/bin"))))
3101 (substitute* (string-append out "/bin/screenfetch")
3103 (string-append "#!" (assoc-ref %build-inputs "bash")
3109 ("xdpyinfo" ,xdpyinfo)
3111 (home-page "https://github.com/KittyKatt/screenFetch")
3112 (synopsis "System information script")
3113 (description "Bash screenshot information tool which can be used to
3114 generate those nifty terminal theme information and ASCII distribution logos in
3115 everyone's screenshots nowadays.")
3116 (license license:gpl3)))
3125 (uri (string-append "https://github.com/jarun/nnn/releases/download/v"
3126 version "/nnn-v" version ".tar.gz"))
3128 (base32 "1g47bndxld875d0xb3pgmlw223mz47p1xcvwym861y6l4zkgiyp0"))))
3129 (build-system gnu-build-system)
3131 `(("ncurses" ,ncurses)
3132 ("readline" ,readline)))
3134 `(("pkg-config" ,pkg-config)))
3136 '(#:tests? #f ; no tests
3138 (modify-phases %standard-phases
3139 (delete 'configure)) ; no configure script
3142 (string-append "PREFIX="
3143 (assoc-ref %outputs "out"))
3145 (home-page "https://github.com/jarun/nnn")
3146 (synopsis "Terminal file browser")
3147 (description "@command{nnn} is a fork of @command{noice}, a blazing-fast
3148 lightweight terminal file browser with easy keyboard shortcuts for
3149 navigation, opening files and running tasks. There is no config file and
3150 mime associations are hard-coded. The incredible user-friendliness and speed
3151 make it a perfect utility on modern distros.")
3152 (license license:bsd-2)))
3154 (define-public thermald
3162 (url "https://github.com/01org/thermal_daemon")
3163 (commit (string-append "v" version))))
3164 (file-name (git-file-name name version))
3166 (base32 "0iagc3jqpnh6q2fa1gx4wx6r8qg0556j60xr159zqg95djr4dv99"))))
3167 (build-system gnu-build-system)
3170 (let ((out (assoc-ref %outputs "out")))
3171 (list (string-append "--sysconfdir="
3173 (string-append "--with-dbus-sys-dir="
3174 out "/etc/dbus-1/system.d")
3175 "--localstatedir=/var"))))
3177 `(("autoconf" ,autoconf)
3178 ("automake" ,automake)
3179 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3180 ("pkg-config" ,pkg-config)))
3182 `(("dbus-glib" ,dbus-glib)
3183 ("libxml2" ,libxml2)))
3184 (home-page "https://01.org/linux-thermal-daemon/")
3185 (synopsis "CPU scaling for thermal management")
3186 (description "The Linux Thermal Daemon helps monitor and control temperature
3187 on systems running the Linux kernel.")
3188 ;; arm and aarch64 don't have cpuid.h.
3189 (supported-systems '("i686-linux" "x86_64-linux"))
3190 (license license:gpl2+)))
3192 (define-public masscan
3200 (url "https://github.com/robertdavidgraham/masscan.git")
3202 (file-name (git-file-name name version))
3204 (base32 "0q0c7bsf0pbl8napry1qyg0gl4pd8wn872h4mz9b56dx4rx90vqg"))))
3205 (build-system gnu-build-system)
3207 `(("libpcap" ,libpcap)))
3209 '(#:test-target "regress"
3212 (string-append "PREFIX=" (assoc-ref %outputs "out")))
3214 (modify-phases %standard-phases
3215 (delete 'configure) ; no ./configure script
3216 (add-after 'unpack 'patch-path
3217 (lambda* (#:key outputs inputs #:allow-other-keys)
3218 (let* ((out (assoc-ref outputs "out"))
3219 (pcap (assoc-ref inputs "libpcap")))
3220 (substitute* "src/rawsock-pcap.c"
3221 (("libpcap.so") (string-append pcap "/lib/libpcap.so")))
3223 (synopsis "TCP port scanner")
3224 (description "MASSCAN is an asynchronous TCP port scanner. It can detect
3225 open ports, and also complete the TCP connection and interact with the remote
3226 application, collecting the information received.")
3227 (home-page "https://github.com/robertdavidgraham/masscan")
3228 ;; 'src/siphash24.c' is the SipHash reference implementation, which
3229 ;; bears a CC0 Public Domain Dedication.
3230 (license license:agpl3+)))
3232 (define-public hungrycat
3238 (uri (string-append "https://github.com/jwilk/hungrycat/"
3239 "releases/download/" version "/"
3240 "hungrycat-" version ".tar.gz"))
3243 "03fc1zsrf99lvxa7b4ps6pbi43304wbxh1f6ci4q0vkal370yfwh"))))
3244 (build-system gnu-build-system)
3247 `(("python" ,python-wrapper)
3248 ("python-nose" ,python-nose)))
3250 `(#:test-target "test"))
3251 (synopsis "A single tool that combines @command{cat} & @command{rm}")
3253 "hungrycat prints the contents of a file to standard output, while
3254 simultaneously freeing the disk space it occupied. It is useful if you need
3255 to process a large file, don't have enough space to store both the input and
3256 output files, and don't need the input file afterwards.
3257 While similar in principle to running @command{cat} immediately followed by
3258 @command{rm}, @command{hungrycat} actually frees blocks as soon as they are
3259 printed instead of after the entire file has been read, which is often too
3261 (home-page "https://jwilk.net/software/hungrycat")
3262 (license license:expat)))
3264 (define-public launchmon
3271 "https://github.com/LLNL/LaunchMON/releases/download/v"
3272 version "/launchmon-v" version ".tar.gz"))
3275 "0fm3nd9mydm9v2bf7bh01dbgrfnpwkapxa3dsvy3x1z0rz61qc0x"))
3276 (modules '((guix build utils)))
3279 ;; Fix build failure with GCC 7 due to a conversion error.
3280 ;; Remove for versions > 1.0.2.
3281 (substitute* "launchmon/src/linux/lmon_api/lmon_coloc_spawner.cxx"
3282 ((" lmonpl = '\\\\0'")
3283 " *lmonpl = '\\0'"))
3285 (build-system gnu-build-system)
3291 ("libgcrypt" ,libgcrypt)
3292 ("libgpg-error" ,libgpg-error)))
3293 (synopsis "Infrastructue for large scale tool daemon launching")
3295 "LaunchMON is a software infrastructure that enables HPC run-time
3296 tools to co-locate tool daemons with a parallel job. Its API allows a
3297 tool to identify all the remote processes of a job and to scalably
3298 launch daemons into the relevant nodes.")
3299 (home-page "https://github.com/LLNL/LaunchMON")
3300 (supported-systems '("i686-linux" "x86_64-linux"))
3301 (license license:lgpl2.1)))
3303 (define-public spindle
3308 ;; We use git checkout to avoid github auto-generated tarballs
3311 (url "https://github.com/hpc/Spindle.git")
3312 (commit (string-append "v" version))))
3313 (file-name (git-file-name name version))
3316 "15n3ay0qq81r5v7fif61q1vdjcq44pp2nynkh3fvbzc9fj3c39wd"))))
3317 (build-system gnu-build-system)
3318 (arguments '(#:configure-flags '("--enable-sec-launchmon"
3319 "--enable-sec-munge"
3320 "--enable-sec-none")))
3324 ("launchmon" ,launchmon)
3325 ("libgcrypt" ,libgcrypt)))
3326 (synopsis "Scalable library loading in HPC environments")
3328 "Spindle is a tool for improving the performance of dynamic library and
3329 Python loading in HPC environments.")
3330 (home-page "https://github.com/hpc/Spindle")
3331 ;; This package supports x86_64 and PowerPC64
3332 (supported-systems '("x86_64-linux"))
3333 (license license:lgpl2.1)))
3335 (define-public inxi-minimal
3336 (let ((real-name "inxi"))
3338 (name "inxi-minimal")
3339 (version "3.0.38-1")
3344 (url "https://github.com/smxi/inxi")
3346 (file-name (git-file-name real-name version))
3348 (base32 "1qw3sxgd3ly916bzzl3873s3flngwd3vh57slw0shsj7ivz8bfnm"))))
3349 (build-system trivial-build-system)
3351 `(("bash" ,bash-minimal)
3353 ("procps" ,procps)))
3363 (use-modules (guix build utils)
3366 (setenv "PATH" (string-append
3367 (assoc-ref %build-inputs "bash") "/bin" ":"
3368 (assoc-ref %build-inputs "gzip") "/bin" ":"
3369 (assoc-ref %build-inputs "perl") "/bin" ":"))
3370 (copy-recursively (assoc-ref %build-inputs "source")
3371 ,(string-append real-name "-" version))
3372 (with-directory-excursion ,(string-append real-name "-" version)
3373 (with-fluids ((%default-port-encoding #f))
3374 (substitute* "inxi" (("/usr/bin/env perl") (which "perl"))))
3375 (let ((bin (string-append %output "/bin")))
3376 (install-file "inxi" bin)
3377 (wrap-program (string-append bin "/inxi")
3380 ,@(map (lambda (input)
3384 (cut string-append store <>)))
3386 ((member name '("util-linux"))
3387 (string-append (store-append "/bin") ":"
3388 (store-append "/sbin")))
3389 ((member name '("dmidecode" "iproute2"))
3390 (store-append "/sbin"))
3391 (else (store-append "/bin")))))))
3397 (((? (cut string-prefix? "perl-" <>) name) . dir)
3398 (string-append dir "/lib/perl5/site_perl"))
3401 (invoke "gzip" "inxi.1")
3402 (install-file "inxi.1.gz"
3403 (string-append %output "/share/man/man1")))
3405 (home-page "https://smxi.org/docs/inxi.htm")
3406 (synopsis "Full-featured system information script")
3407 (description "Inxi is a system information script that can display
3408 various things about your hardware and software to users in an IRC chatroom or
3409 support forum. It runs with the @code{/exec} command in most IRC clients.")
3410 (license license:gpl3+))))
3414 (inherit inxi-minimal)
3417 `(("dmidecode" ,dmidecode)
3419 ("bind:utils" ,isc-bind "utils") ; dig
3421 ("iproute2" ,iproute) ; ip
3422 ("kmod" ,kmod) ; modinfo
3423 ("lm-sensors" ,lm-sensors)
3424 ("mesa-utils" ,mesa-utils)
3425 ("pciutils" ,pciutils)
3428 ("util-linux" ,util-linux) ; lsblk
3429 ("usbutils" ,usbutils) ; lsusb
3431 ("xdpyinfo" ,xdpyinfo)
3434 ("coreutils" ,coreutils) ; uptime
3435 ("inetutils" ,inetutils) ; ifconfig
3436 ("perl-cpanel-json-xs" ,perl-cpanel-json-xs)
3437 ("perl-http-tiny" ,perl-http-tiny)
3438 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
3439 ("perl-json-xs" ,perl-json-xs)
3440 ("perl-time-hires" ,perl-time-hires)
3441 ;; TODO: Add more inputs:
3446 ,@(package-inputs inxi-minimal)))))
3448 (define-public pscircle
3456 (url "https://gitlab.com/mildlyparallel/pscircle.git")
3457 (commit (string-append "v" version))))
3458 (file-name (git-file-name name version))
3460 (base32 "1sm99423hh90kr4wdjqi9sdrrpk65j2vz2hzj65zcxfxyr6khjci"))))
3461 (build-system meson-build-system)
3463 `(("pkg-config" ,pkg-config)))
3467 ("libx11" ,libx11)))
3468 (home-page "https://gitlab.com/mildlyparallel/pscircle")
3469 (synopsis "Visualize Linux processes in a form of radial tree")
3471 "@code{pscircle} visualizes Linux processes in the form of a radial tree.")
3472 (license license:gpl2+)))
3474 (define-public python-pyudev
3476 (name "python-pyudev")
3481 (uri (pypi-uri "pyudev" version))
3484 "0xmj6l08iih2js9skjqpv4w7y0dhxyg91zmrs6v5aa65gbmipfv9"))))
3485 (build-system python-build-system)
3487 `(#:tests? #f ; Tests require /sys
3489 (modify-phases %standard-phases
3490 (add-after 'unpack 'patch-ctypes-udev
3491 (lambda* (#:key inputs outputs #:allow-other-keys)
3492 (let ((eudev (assoc-ref inputs "eudev")))
3493 (substitute* "src/pyudev/core.py"
3495 (string-append "'" eudev "/lib/libudev.so'")))
3496 (substitute* "src/pyudev/_ctypeslib/utils.py"
3497 ;; Use absolute paths instead of keys.
3498 (("= find_library") "= "))
3501 `(("eudev" ,eudev)))
3503 `(("python-six" ,python-six)))
3505 `(("python-docutils" ,python-docutils)
3506 ("python-hypothesis" ,python-hypothesis)
3507 ("python-mock" ,python-mock)
3508 ("python-pytest" ,python-pytest)
3509 ("python-sphinx" ,python-sphinx)))
3510 (home-page "https://pyudev.readthedocs.io/")
3511 (synopsis "Python udev binding")
3512 (description "This package provides @code{udev} bindings for Python.")
3513 (license license:lgpl2.1)))
3515 (define-public solaar
3522 (url "https://github.com/pwr/Solaar.git")
3524 (file-name (git-file-name name version))
3527 "085mfa13dap3wqik1dqlad0d7kff4rv7j4ljh99c7l8nhczkqgwm"))))
3528 (build-system python-build-system)
3531 (modify-phases %standard-phases
3532 (add-after 'unpack 'fix-prefix-detection
3534 (substitute* "setup.py"
3535 (("'--prefix' in sys\\.argv")
3536 "len([x.startswith('--prefix=') for x in sys.argv]) > 0"))
3540 (invoke "python" "setup.py" "build")))
3541 (add-before 'check 'setenv-PATH
3543 (setenv "PYTHONPATH" (string-append "lib:" (getenv "PYTHONPATH")))
3546 `(("python-pygobject" ,python-pygobject)
3547 ("python-pyudev" ,python-pyudev)))
3548 (home-page "https://smxi.org/docs/inxi.htm")
3549 (synopsis "Linux devices manager for the Logitech Unifying Receiver")
3550 (description "This package provides tools to manage clients of the
3551 Logitech Unifying Receiver.")
3552 (license license:gpl2)))
3554 (define-public lynis
3557 ;; Also update the ‘lynis-sdk’ input to the commit matching this release.
3563 (url "https://github.com/CISOfy/lynis")
3565 (file-name (git-file-name name version))
3567 (base32 "1lkkbvxm0rgrrlx0szaxmf8ghc3d26wal96sgqk84m37mvs1f7p0"))
3568 (modules '((guix build utils)))
3571 ;; Remove proprietary plugins. As of now, all plugins supplied with
3572 ;; lynis are proprietary. In the future, if free plugins are
3573 ;; provided, whitelist them from deletion.
3574 (for-each delete-file (find-files "plugins"))
3576 (build-system gnu-build-system)
3583 (url "https://github.com/CISOfy/lynis-sdk")
3584 (commit "bf1c1d95121da9ca79a9eac5a15ed8d81e34094d")))
3585 (file-name (git-file-name "lynis-sdk" version))
3587 (base32 "1ndz5v0039dqa87cva2dk55a8hkw0fibsw8hh2ddmny9qkr4l3dp"))))))
3590 (modify-phases %standard-phases
3592 (lambda* (#:key inputs outputs #:allow-other-keys)
3593 (substitute* "lynis"
3594 (("/usr/share/lynis")
3595 (string-append (assoc-ref outputs "out") "/share/lynis")))
3596 (substitute* "include/functions"
3597 (("/usr/local/etc/lynis")
3598 (string-append (assoc-ref outputs "out") "/etc/lynis")))
3602 (lambda* (#:key outputs #:allow-other-keys)
3603 (let ((out (assoc-ref outputs "out")))
3604 (install-file "lynis" (string-append out "/bin/"))
3605 (install-file "default.prf" (string-append out "/etc/lynis"))
3608 (copy-recursively dir (string-append out "/share/lynis/" dir)))
3609 (list "db" "include" "plugins"))
3610 (install-file "lynis.8" (string-append out "/share/man/man8"))
3613 (lambda* (#:key inputs #:allow-other-keys)
3614 (copy-recursively (assoc-ref inputs "lynis-sdk") "../lynis-sdk")
3615 (setenv "LANG" "en_US.UTF-8")
3616 (let ((lynis-dir (getcwd)))
3617 (with-directory-excursion "../lynis-sdk"
3618 (substitute* "config"
3619 (("\\.\\./lynis") lynis-dir))
3620 (substitute* "unit-tests/tests-language-translations.sh"
3621 (("\\.\\./lynis") lynis-dir))
3622 (invoke "sh" "lynis-devkit" "run" "unit-tests"))))))))
3623 (home-page "https://cisofy.com/lynis/")
3624 (synopsis "Security auditing tool")
3625 (description "Lynis is a security auditing tool. It performs an in-depth
3626 security scan and runs on the system itself. The primary goal is to test
3627 security defenses and provide tips for further system hardening. It will also
3628 scan for general system information, vulnerable software packages, and
3629 possible configuration issues.")
3630 (license license:gpl3+)))
3632 (define-public ngrep
3640 (url "https://github.com/jpr5/ngrep/")
3641 (commit (string-append "V" (string-replace-substring version "." "_")))))
3642 (file-name (git-file-name name version))
3645 "1x2fyd7wdqlj1r76ilal06cl2wmbz0ws6i3ys204sbjh1cj6dcl7"))))
3646 (build-system gnu-build-system)
3648 `(("libpcap" ,libpcap)))
3650 `(#:tests? #f ;; No tests.
3651 #:configure-flags (list (string-append "--with-pcap-includes="
3652 (assoc-ref %build-inputs "libpcap")
3654 (home-page "https://github.com/jpr5/ngrep/")
3655 (synopsis "Grep-like utility to search for network packets on an interface")
3656 (description "@command{ngrep} is like GNU grep applied to the network
3657 layer. It's a PCAP-based tool that allows you to specify an extended regular
3658 or hexadecimal expression to match against data payloads of packets. It
3659 understands many kinds of protocols, including IPv4/6, TCP, UDP, ICMPv4/6,
3660 IGMP and Raw, across a wide variety of interface types, and understands BPF
3661 filter logic in the same fashion as more common packet sniffing tools, such as
3662 tcpdump and snoop.")
3663 (license license:bsd-3)))
3665 (define-public pam-mount
3672 (uri (string-append "mirror://sourceforge/pam-mount/pam_mount/"
3673 version "/pam_mount-" version ".tar.xz"))
3676 "1rvi4irb7ylsbhvx1cr6islm2xxw1a4b19q6z4a9864ndkm0f0mf"))
3678 ;; Patch adding support for encrypted volumes in LUKS2 format.
3679 ;; It comes from the Gentoo package definition for sys-auth/pam_mount.
3680 (search-patches "pam-mount-luks2-support.patch"))))
3681 (build-system gnu-build-system)
3684 ("pkg-config" ,pkg-config)))
3686 `(("cryptsetup" ,cryptsetup)
3688 ("libxml2" ,libxml2)
3689 ("linux-pam" ,linux-pam)
3691 ("openssl" ,openssl)
3693 ("libmount" ,util-linux "lib")
3694 ("util-linux" ,util-linux)))
3697 (list (string-append "--with-slibdir=" %output "/lib")
3698 (string-append "--with-ssbindir=" %output "/sbin"))
3700 (modify-phases %standard-phases
3701 (add-after 'unpack 'fix-program-paths
3702 (lambda* (#:key inputs outputs #:allow-other-keys)
3703 (let ((util-linux (assoc-ref inputs "util-linux"))
3704 (out (assoc-ref outputs "out")))
3705 (substitute* "src/mtcrypt.c"
3707 (string-append "\"" util-linux "/bin/mount\";"))
3709 (string-append "\"" util-linux "/bin/umount\";"))
3711 (string-append "\"" util-linux "/sbin/fsck\",")))
3712 (substitute* "src/rdconf1.c"
3714 (string-append "\"" util-linux "/bin/mount\", \""))
3716 (string-append "\"" util-linux "/bin/umount\", \""))
3718 (string-append "\"" util-linux "/sbin/fsck\", \""))
3719 (("\"pmvarrun\", \"")
3720 (string-append "\"" out "/sbin/pmvarrun\", \""))))
3722 (home-page "http://pam-mount.sourceforge.net")
3723 (synopsis "PAM module to mount volumes for a user session")
3725 "Pam-mount is a PAM module that can mount volumes when a user logs in.
3726 It supports mounting local filesystems of any kind the normal mount utility
3727 supports. It can also mount encrypted LUKS volumes using the password
3728 supplied by the user when logging in.")
3729 (license (list license:gpl2+ license:lgpl2.1+))))