1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
4 ;;; Copyright © 2014, 2015, 2016, 2018 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 ng0 <ng0@n0.is>
16 ;;; Copyright © 2016, 2017, 2018, 2019 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 Marius Bakke <mbakke@fastmail.com>
22 ;;; Copyright © 2018 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@posteo.net>
27 ;;; Copyright © 2019 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
29 ;;; This file is part of GNU Guix.
31 ;;; GNU Guix is free software; you can redistribute it and/or modify it
32 ;;; under the terms of the GNU General Public License as published by
33 ;;; the Free Software Foundation; either version 3 of the License, or (at
34 ;;; your option) any later version.
36 ;;; GNU Guix is distributed in the hope that it will be useful, but
37 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
38 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39 ;;; GNU General Public License for more details.
41 ;;; You should have received a copy of the GNU General Public License
42 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
44 (define-module (gnu packages admin)
45 #:use-module ((guix licenses) #:prefix license:)
46 #:use-module (guix packages)
47 #:use-module (guix utils)
48 #:use-module (guix download)
49 #:use-module (guix git-download)
50 #:use-module (guix build-system cmake)
51 #:use-module (guix build-system emacs)
52 #:use-module (guix build-system gnu)
53 #:use-module (guix build-system meson)
54 #:use-module (guix build-system perl)
55 #:use-module (guix build-system python)
56 #:use-module (guix build-system trivial)
57 #:use-module (gnu packages)
58 #:use-module (gnu packages base)
59 #:use-module (gnu packages bash)
60 #:use-module (gnu packages check)
61 #:use-module (gnu packages cyrus-sasl)
62 #:use-module (gnu packages dns)
63 #:use-module (gnu packages file)
64 #:use-module (gnu packages ncurses)
65 #:use-module (gnu packages readline)
66 #:use-module (gnu packages linux)
67 #:use-module (gnu packages lua)
68 #:use-module (gnu packages guile)
69 #:use-module (gnu packages gettext)
70 #:use-module (gnu packages imagemagick)
71 #:use-module (gnu packages inkscape)
72 #:use-module (gnu packages pcre)
73 #:use-module (gnu packages perl)
74 #:use-module (gnu packages perl-check)
75 #:use-module (gnu packages tcl)
76 #:use-module (gnu packages compression)
77 #:use-module (gnu packages cross-base)
78 #:use-module (gnu packages tls)
79 #:use-module (gnu packages gnupg)
80 #:use-module (gnu packages bison)
81 #:use-module (gnu packages flex)
82 #:use-module (gnu packages gl)
83 #:use-module (gnu packages glib)
84 #:use-module (gnu packages openldap)
85 #:use-module (gnu packages mcrypt)
86 #:use-module (gnu packages pkg-config)
87 #:use-module (gnu packages popt)
88 #:use-module (gnu packages python)
89 #:use-module (gnu packages python-crypto)
90 #:use-module (gnu packages python-web)
91 #:use-module (gnu packages python-xyz)
92 #:use-module (gnu packages qt)
93 #:use-module (gnu packages sphinx)
94 #:use-module (gnu packages terminals)
95 #:use-module (gnu packages texinfo)
96 #:use-module (gnu packages groff)
97 #:use-module (gnu packages pciutils)
98 #:use-module (gnu packages libunwind)
99 #:use-module (gnu packages libusb)
100 #:use-module (gnu packages libftdi)
101 #:use-module (gnu packages image)
102 #:use-module (gnu packages xorg)
103 #:use-module (gnu packages xdisorg)
104 #:use-module (gnu packages man)
105 #:use-module (gnu packages autotools)
106 #:use-module (gnu packages gnome)
107 #:use-module (gnu packages kerberos)
108 #:use-module (gnu packages gtk)
109 #:use-module (gnu packages xml)
110 #:use-module (gnu packages boost)
111 #:use-module (gnu packages elf)
112 #:use-module (gnu packages mpi)
113 #:use-module (gnu packages web))
122 (uri (string-append "https://github.com/aide/aide/releases/download/v"
123 version "/aide-" version ".tar.gz"))
125 (base32 "15xp47sz7kk1ciffw3f5xw2jg2mb2lqrbr3q6p4bkbz5dap9iy8p"))))
126 (build-system gnu-build-system)
131 `(("libgcrypt" ,libgcrypt)
132 ("libgpg-error" ,libgpg-error)
133 ("libmhash" ,libmhash)
134 ("pcre:static" ,pcre "static")
136 ("zlib:static" ,zlib "static")
138 (synopsis "File and directory integrity checker")
140 "AIDE (Advanced Intrusion Detection Environment) is a file and directory
141 integrity checker. It creates a database from the regular expression rules
142 that it finds from its configuration files. Once this database is initialized
143 it can be used to verify the integrity of the files. It has several message
144 digest algorithms that are used to check the integrity of files. All of the
145 usual file attributes can be checked for inconsistencies.")
146 (home-page "https://aide.github.io/")
147 (license license:gpl2+)))
149 (define-public progress
157 (url "https://github.com/Xfennec/progress.git")
158 (commit (string-append "v" version))))
160 (base32 "1lk2v4b767klib93an4g3f7z5qrv9kdk9jf7545vw1immc4kamrl"))
161 (file-name (git-file-name name version))))
162 (build-system gnu-build-system)
164 `(("pkg-config" ,pkg-config)
167 `(("ncurses" ,ncurses)))
169 `(#:tests? #f ; no test suite
170 #:make-flags (list "CC=gcc"
171 (string-append "PREFIX=" (assoc-ref %outputs "out")))
173 (modify-phases %standard-phases
174 (delete 'configure)))) ; no configure script
175 (home-page "https://github.com/Xfennec/progress")
176 (synopsis "Program to view the progress of the coreutils commands")
177 (description "A program that looks for coreutils basic commands (cp, mv,
178 dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
179 the percentage of copied data. It can also show estimated time and throughput,
180 and provides a \"top-like\" mode (monitoring).")
181 (license license:gpl3+)))
183 (define-public shepherd
189 (uri (string-append "mirror://gnu/shepherd/shepherd-"
193 "1xn6mb5bh8bpfgdrh09ja31jk0ln7bmxbbf0vjcqxkkixs2wl6sk"))))
194 (build-system gnu-build-system)
196 '(#:configure-flags '("--localstatedir=/var")))
198 `(("pkg-config" ,pkg-config)
200 ;; This is the Guile we use as a cross-compiler...
201 ("guile" ,guile-2.2)))
203 ;; ... and this is the one that appears in shebangs when cross-compiling.
204 `(("guile" ,guile-2.2)
206 ;; The 'shepherd' command uses Readline when used interactively. It's
207 ;; an unusual use case though, so we don't propagate it.
208 ("guile-readline" ,guile-readline)))
209 (synopsis "System service manager")
211 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
212 the execution of system services, replacing similar functionality found in
213 typical init systems. It provides dependency-handling through a convenient
214 interface and is based on GNU Guile.")
215 (license license:gpl3+)
216 (home-page "https://www.gnu.org/software/shepherd/")))
218 (define-public cloud-utils
226 "https://launchpad.net/cloud-utils/trunk/"
227 version "/+download/cloud-utils-" version ".tar.gz"))
230 "07fl3dlqwdzw4xx7mcxhpkks6dnmaxha80zgs9f6wmibgzni8z0r"))))
231 (build-system gnu-build-system)
234 (let ((out (assoc-ref %outputs "out")))
235 (list (string-append "BINDIR=" out "/bin")
236 (string-append "MANDIR=" out "/share/man/man1")
237 (string-append "DOCDIR=" out "/share/doc")))
239 (modify-phases %standard-phases
242 (add-after 'install 'wrap
243 (lambda* (#:key outputs inputs #:allow-other-keys)
244 (let ((growpart (string-append (assoc-ref outputs "out")
246 (wrap-program growpart
247 `("PATH" ":" prefix (,(dirname (which "sfdisk"))
248 ,(dirname (which "readlink"))))))
252 ("util-linux" ,util-linux))) ; contains sfdisk for growpart
253 (home-page "https://launchpad.net/cloud-utils")
254 (synopsis "Set of utilities for cloud computing environments")
256 "This package contains a set of utilities for cloud computing
260 @item @command{cloud-localds} Create a disk for cloud-init to utilize nocloud
261 @item @command{cloud-publish-image} Wrapper for cloud image publishing
262 @item @command{cloud-publish-tarball} Wrapper for publishing cloud tarballs
263 @item @command{cloud-publish-ubuntu} Import a Ubuntu cloud image
264 @item @command{ec2metadata} Query and display @acronym{EC2,Amazon Elastic
265 Compute Cloud} metadata
266 @item @command{growpart} Grow a partition to fill the device
267 @item @command{mount-image-callback} Mount a file and run a command
268 @item @command{resize-part-image} Resize a partition image to a new size
269 @item @command{ubuntu-cloudimg-query} Get the latest Ubuntu
270 @acronym{AMI,Amazon Machine Image}
271 @item @command{ubuntu-ec2-run} Run a @acronym{EC2,Amazon Elastic Compute
272 Cloud} instance using Ubuntu
273 @item @command{vcs-run} Obtain a repository, and run a command
274 @item @command{write-mime-multipart} Handle multipart
275 @acronym{MIME,Multipurpose Internet Mail Extensions} messages
277 (license license:gpl3)))
279 (define-public daemontools
286 "https://cr.yp.to/daemontools/"
287 "daemontools-" version ".tar.gz"))
290 "07scvw88faxkscxi91031pjkpccql6wspk4yrlnsbrrb5c0kamd5"))))
291 (build-system gnu-build-system)
293 `(#:tests? #f ;; No tests as far as I can tell.
295 (modify-phases %standard-phases
296 (add-after 'unpack 'chdir
298 (chdir ,(string-append "daemontools-" version))
301 (add-before 'build 'patch
303 (substitute* "src/error.h"
304 (("extern int errno;")
305 "#include <errno.h>"))
309 (invoke "package/compile")))
311 (lambda* (#:key outputs #:allow-other-keys)
312 (let* ((out (assoc-ref outputs "out"))
313 (bin (string-append out "/bin")))
314 (for-each (lambda (file)
315 (install-file file bin))
316 (find-files "command")))
318 (synopsis "Tools for managing UNIX style services")
320 "@code{daemontools} is a collection of tools for managing UNIX
322 (license license:public-domain)
323 (home-page "https://cr.yp.to/daemontools.html")))
333 "https://projects.gw-computing.net/attachments/download/615/dfc-"
337 "0m1fd7l85ckb7bq4c5c3g257bkjglm8gq7x42pkmpp87fkknc94n"))))
338 (build-system cmake-build-system)
339 (arguments '(#:tests? #f)) ; There are no tests.
340 (native-inputs `(("gettext" ,gettext-minimal)))
341 (home-page "https://projects.gw-computing.net/projects/dfc")
342 (synopsis "Display file system space usage using graphs and colors")
344 "dfc (df color) is a modern version of df. It uses colors, draws pretty
345 graphs and can export its output to different formats.")
346 (license license:bsd-3)))
354 (uri (string-append "http://hisham.hm/htop/releases/"
355 version "/htop-" version ".tar.gz"))
358 "0mrwpb3cpn3ai7ar33m31yklj64c3pp576vh1naqff6f21pq5mnr"))))
359 (build-system gnu-build-system)
361 `(("ncurses" ,ncurses)))
363 `(("python" ,python-wrapper))) ;for scripts/MakeHeader.py
364 (home-page "https://hisham.hm/htop/")
365 (synopsis "Interactive process viewer")
367 "This is htop, an interactive process viewer. It is a text-mode
368 application (for console or X terminals) and requires ncurses.")
369 (license license:gpl2)))
378 (uri (string-append "mirror://gnu/pies/pies-"
382 "14jb4pa4zs26d5j2skxbaypnwhsx2lw8jgj1irrgs03c2dnf7gp6"))))
383 (build-system gnu-build-system)
385 '(#:phases (modify-phases %standard-phases
386 (add-before 'build 'patch-/bin/sh
387 (lambda* (#:key inputs #:allow-other-keys)
388 ;; Use the right shell when executing user-provided
390 (let ((bash (assoc-ref inputs "bash")))
391 (substitute* '("src/progman.c" "src/comp.c")
393 (string-append "\"" bash "/bin/sh\"")))
395 (home-page "https://www.gnu.org/software/pies/")
396 (synopsis "Program invocation and execution supervisor")
398 "GNU pies is a program that supervises the invocation and execution of
399 other programs. It reads the list of programs to be started from its
400 configuration file, executes them, and then monitors their status,
401 re-executing them as necessary.")
402 (license license:gpl3+)))
404 (define-public inetutils
410 (uri (string-append "mirror://gnu/inetutils/inetutils-"
414 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
415 (build-system gnu-build-system)
417 `(#:configure-flags '("--localstatedir=/var"
419 ;; Make sure 'PATH_PROCNET_DEV' gets defined when
420 ;; cross-compiling (by default it does not.)
421 ,@(if (%current-target-system)
422 '("--with-path-procnet-dev=/proc/net/dev")
424 ;; On some systems, 'libls.sh' may fail with an error such as:
425 ;; "Failed to tell switch -a apart from -A".
426 #:parallel-tests? #f))
427 (inputs `(("ncurses" ,ncurses)
428 ("readline" ,readline))) ;for 'ftp'
429 (native-inputs `(("netstat" ,net-tools))) ;for tests
430 (home-page "https://www.gnu.org/software/inetutils/")
431 (synopsis "Basic networking utilities")
433 "Inetutils is a collection of common network programs, such as an ftp
434 client and server, a telnet client and server, an rsh client and server, and
436 (license license:gpl3+)))
438 (define-public shadow
445 "https://github.com/shadow-maint/shadow/releases/"
446 "download/" version "/shadow-" version ".tar.xz"))
449 "0v71474rx38lg9kidrm4xbk35sg3icv3s5pk2b42icp3lyj9dqg5"))))
450 (build-system gnu-build-system)
452 `(;; Assume System V `setpgrp (void)', which is the default on GNU
453 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
455 '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
458 (modify-phases %standard-phases
459 (add-before 'build 'set-nscd-file-name
460 (lambda* (#:key inputs #:allow-other-keys)
461 ;; Use the right file name for nscd.
462 (let ((libc (assoc-ref inputs
463 ,(if (%current-target-system)
466 (substitute* "lib/nscd.c"
468 (string-append libc "/sbin/nscd")))
470 (add-after 'install 'remove-groups
471 (lambda* (#:key outputs #:allow-other-keys)
472 ;; Remove `groups', which is already provided by Coreutils.
473 (let* ((out (assoc-ref outputs "out"))
474 (bin (string-append out "/bin"))
475 (man (string-append out "/share/man")))
476 (delete-file (string-append bin "/groups"))
477 (for-each delete-file (find-files man "^groups\\."))
480 (inputs (if (string-contains (or (%current-target-system)
483 `(("linux-pam" ,linux-pam))
485 (home-page "https://github.com/shadow-maint/shadow")
486 (synopsis "Authentication-related tools such as passwd, su, and login")
488 "Shadow provides a number of authentication-related tools, including:
489 login, passwd, su, groupadd, and useradd.")
491 ;; The `vipw' program is GPLv2+.
492 ;; libmisc/salt.c is public domain.
493 (license license:bsd-3)))
495 (define-public mingetty
501 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
502 version "/mingetty-" version ".tar.gz"))
505 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
506 (build-system gnu-build-system)
509 (modify-phases %standard-phases
511 (lambda* (#:key inputs outputs #:allow-other-keys)
512 (let* ((out (assoc-ref outputs "out"))
513 (man8 (string-append out "/share/man/man8"))
514 (sbin (string-append out "/sbin"))
515 (shadow (assoc-ref inputs "shadow"))
516 (login (string-append shadow "/bin/login")))
517 (substitute* "Makefile"
519 (string-append "SBINDIR = " out
522 (string-append "MANDIR = " out
523 "/share/man/man8\n")))
525 ;; Pick the right 'login' by default.
526 (substitute* "mingetty.c"
528 (string-append "\"" login "\"")))
533 #:tests? #f)) ; no tests
534 (inputs `(("shadow" ,shadow)))
536 (home-page "https://sourceforge.net/projects/mingetty")
537 (synopsis "Getty for the text console")
539 "Small console getty that is started on the Linux text console,
540 asks for a login name and then transfers over to @code{login}. It is extended
541 to allow automatic login and starting any app.")
542 (license license:gpl2+)))
544 (define-public net-base
551 "mirror://debian/pool/main/n/netbase/netbase_"
555 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
556 (build-system trivial-build-system)
558 `(#:modules ((guix build utils))
560 (use-modules (guix build utils)
563 (let* ((source (assoc-ref %build-inputs "source"))
564 (tar (assoc-ref %build-inputs "tar"))
565 (xz (assoc-ref %build-inputs "xz"))
566 (output (assoc-ref %outputs "out"))
567 (etc (string-append output "/etc")))
568 (setenv "PATH" (string-append xz "/bin"))
569 (invoke (string-append tar "/bin/tar") "xvf"
571 (chdir ,(string-append "netbase-" version))
574 '("etc-services" "etc-protocols" "etc-rpc")
575 (map (cut string-append etc "/" <>)
576 '("services" "protocols" "rpc")))
578 (native-inputs `(("tar" ,tar)
580 (synopsis "IANA protocol, port, and RPC number assignments")
582 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
583 files, which contain information about the IANA-assigned port, protocol, and
585 (home-page "https://packages.debian.org/sid/netbase")
586 (license license:gpl2)))
588 (define-public netcat
594 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
595 "/netcat-" version ".tar.bz2"))
598 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
599 (build-system gnu-build-system)
602 ;; By default, man and info pages are put in PREFIX/{man,info},
603 ;; but we want them in PREFIX/share/{man,info}.
604 (let ((out (assoc-ref %outputs "out")))
605 (list (string-append "--mandir=" out "/share/man")
606 (string-append "--infodir=" out "/share/info")))))
607 (home-page "http://netcat.sourceforge.net")
608 (synopsis "Read and write data over TCP/IP")
610 "Netcat is a featured networking utility which reads and writes data
611 across network connections, using the TCP/IP protocol. It is designed to be a
612 reliable \"back-end\" tool that can be used directly or easily driven by other
613 programs and scripts. At the same time, it is a feature-rich network debugging
614 and exploration tool, since it can create almost any kind of connection you
615 would need and has several interesting built-in capabilities.")
616 (license license:gpl2+)))
618 (define-public sipcalc
625 (uri (string-append "http://www.routemeister.net/projects"
626 "/sipcalc/files/sipcalc" "-" version ".tar.gz"))
629 "0mv3wndj4z2bsshh2k8d5sy3j8wxzgf8mzmmkvj1k8gpcz37dm6g"))))
630 (build-system gnu-build-system)
631 (home-page "http://www.routemeister.net/projects/sipcalc/")
632 (synopsis "Command-line IP subnet calculator")
634 "Sipcalc is an advanced command-line IP subnet calculator. It can take
635 multiple forms of input (IPv4/IPv6/interface/hostname) and output a multitude
636 of information about a given subnet.
643 @item Retrieving of address information from interfaces.
644 @item Classfull and CIDR output.
645 @item Multiple address and netmask input and output formats (dotted quad, hex,
647 @item Output of broadcast address, network class, Cisco wildcard,
648 hosts/range, network range.
649 @item The ability to split a network based on a smaller netmask, now also with
650 recursive runs on the generated subnets. (also IPv6)
654 @item Compressed and expanded input and output addresses.
655 @item Standard IPv6 network output.
656 @item v4 in v6 output.
657 @item Reverse DNS address generation.
660 (license license:bsd-3)))
668 (uri (string-append "mirror://gnu/alive/alive-"
672 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
673 (build-system gnu-build-system)
674 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
675 (inputs `(("guile" ,guile-2.0)
676 ("inetutils" ,inetutils)))
677 (home-page "https://www.gnu.org/software/alive/")
678 (synopsis "Autologin and keep-alive daemon")
680 "GNU Alive sends periodic pings to a server, generally to keep a
682 (license license:gpl3+)))
684 (define-public isc-dhcp
685 (let* ((bind-major-version "9")
686 (bind-minor-version "11")
687 (bind-patch-version "4")
688 (bind-release-type "-P") ; for patch release, use "-P"
689 (bind-release-version "2") ; for patch release, e.g. "6"
690 (bind-version (string-append bind-major-version
696 bind-release-version)))
702 (uri (string-append "https://ftp.isc.org/isc/dhcp/"
703 version "/dhcp-" version ".tar.gz"))
706 "025nfqx4zwdgv4b3rkw26ihcj312vir08jk6yi57ndmb4a4m08ia"))))
707 (build-system gnu-build-system)
709 `(#:parallel-build? #f
711 (modify-phases %standard-phases
712 (add-after 'unpack 'replace-bundled-bind
713 (lambda* (#:key inputs #:allow-other-keys)
714 (delete-file "bind/bind.tar.gz")
715 (copy-file (assoc-ref inputs "bind-source-tarball")
717 (chmod "bind/bind.tar.gz" #o644)
718 (substitute* "bind/version.tmp"
720 (format #f "MAJORVER=~a\n" ,bind-major-version))
722 (format #f "MINORVER=~a\n" ,bind-minor-version))
724 (format #f "PATCHVER=~a\n" ,bind-patch-version))
726 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
728 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
730 (add-after 'configure 'post-configure
731 (lambda* (#:key outputs #:allow-other-keys)
732 ;; Point to the right client script, which will be
733 ;; installed in a later phase.
734 (substitute* "includes/dhcpd.h"
735 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
736 (let ((out (assoc-ref outputs "out")))
737 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
738 out "/libexec/dhclient-script"
741 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
742 ;; we must patch shebangs in there and make sure the right
744 (with-directory-excursion "bind"
745 (substitute* "Makefile"
747 (let ((sh (which "sh")))
748 (string-append "./configure CONFIG_SHELL="
751 (let ((bind-directory (string-append "bind-" ,bind-version)))
752 (invoke "tar" "xf" "bind.tar.gz")
753 (for-each patch-shebang
754 (find-files bind-directory ".*"))
755 (invoke "tar" "cf" "bind.tar.gz"
757 ;; avoid non-determinism in the archive
761 "--group=root:0")))))
762 (add-after 'install 'post-install
763 (lambda* (#:key inputs outputs #:allow-other-keys)
764 ;; Install the dhclient script for GNU/Linux and make sure
765 ;; if finds all the programs it needs.
766 (let* ((out (assoc-ref outputs "out"))
767 (libexec (string-append out "/libexec"))
768 (coreutils (assoc-ref inputs "coreutils"))
769 (inetutils (assoc-ref inputs "inetutils"))
770 (net-tools (assoc-ref inputs "net-tools"))
771 (sed (assoc-ref inputs "sed")))
772 (substitute* "client/scripts/linux"
774 (string-append (assoc-ref inputs "iproute")
778 (copy-file "client/scripts/linux"
779 (string-append libexec "/dhclient-script"))
782 (string-append libexec "/dhclient-script")
785 (string-append dir "/bin:"
787 (list inetutils net-tools coreutils sed))))
790 (native-inputs `(("perl" ,perl)))
792 (inputs `(("inetutils" ,inetutils)
793 ("net-tools" ,net-tools)
796 ;; XXX isc-dhcp bundles a copy of bind that has security
797 ;; flaws, so we use a newer version.
798 ("bind-source-tarball"
801 (uri (string-append "https://ftp.isc.org/isc/bind9/"
803 "/bind-" bind-version ".tar.gz"))
806 "04fq17zksd2b3w6w6padps5n7b6s2lasxpksbhl4378h56vgfnm8"))))
808 ;; When cross-compiling, we need the cross Coreutils and sed.
809 ;; Otherwise just use those from %FINAL-INPUTS.
810 ,@(if (%current-target-system)
811 `(("coreutils" ,coreutils)
815 (home-page "https://www.isc.org/products/DHCP/")
816 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
818 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
819 reference implementation of all aspects of DHCP, through a suite of DHCP
820 tools: server, client, and relay agent.")
821 (license license:mpl2.0)
822 (properties '((cpe-name . "dhcp"))))))
824 (define-public libpcap
830 (uri (string-append "https://www.tcpdump.org/release/libpcap-"
834 "06bhydl4vr4z9c3vahl76f2j96z1fbrcl7wwismgs4sris08inrf"))))
835 (build-system gnu-build-system)
840 ;; There are some tests in testprogs/, but no automated test suite.
842 (home-page "https://www.tcpdump.org")
843 (synopsis "Network packet capture library")
845 "libpcap is an interface for user-level packet capture. It provides a
846 portable framework for low-level network monitoring. Applications include
847 network statistics collection, security monitoring, network debugging, etc.")
848 (license (list license:bsd-4 ; fad-*.c and several other source files
849 license:bsd-3 ; pcap/, sockutils.* & others
850 license:bsd-2)))) ; the rest
852 (define-public tcpdump
858 (uri (string-append "https://www.tcpdump.org/release/tcpdump-"
862 "0ygy0layzqaj838r5xd613iraz09wlfgpyh7pc6cwclql8v3b2vr"))))
863 (build-system gnu-build-system)
864 (inputs `(("libpcap" ,libpcap)
865 ("openssl" ,openssl)))
866 (native-inputs `(("perl" ,perl))) ; for tests
867 (home-page "https://www.tcpdump.org/")
868 (synopsis "Network packet analyzer")
870 "Tcpdump is a command-line tool to analyze network traffic passing
871 through the network interface controller.")
872 (license license:bsd-3)))
874 (define-public jnettop
881 (string-append "https://web.archive.org/web/20161221100811/"
882 "http://jnettop.kubs.info/dist/jnettop-"
886 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
887 (build-system gnu-build-system)
889 `(("pkg-config" ,pkg-config)))
893 ("libpcap" ,libpcap)))
895 "https://web.archive.org/web/20160703195221/http://jnettop.kubs.info/wiki/")
896 (synopsis "Visualize network traffic by bandwidth use")
898 "Jnettop is a traffic visualiser, which captures traffic going
899 through the host it is running from and displays streams sorted
900 by bandwidth they use.")
901 (license license:gpl2+)))
903 (define-public clusterssh
909 (uri (string-append "mirror://sourceforge/clusterssh/"
910 "2.%20ClusterSSH%20Series%204/"
911 "App-ClusterSSH-v" version ".tar.gz"))
914 "0rmk2p3f2wz1h092anidjclh212rv3gxyk0c641qk3frlrjnw6mp"))))
915 (build-system perl-build-system)
918 (modify-phases %standard-phases
919 (add-after 'unpack 'refer-to-inputs
920 (lambda* (#:key inputs #:allow-other-keys)
921 (substitute* (list "lib/App/ClusterSSH/Config.pm"
926 (add-before 'check 'delete-failing-tests
928 ;; This checks whether all code is nicely formatted. The above
929 ;; ‘refer-to-inputs’ phase breaks this pedantry, so disable it.
930 (delete-file "t/perltidy.t")
931 ;; Update the manifest so t/manifest.t happily passes.
932 (substitute* "MANIFEST"
933 (("t/perltidy.t\n") ""))
935 (add-after 'install 'augment-library-path
936 (lambda* (#:key inputs outputs #:allow-other-keys)
937 (let* ((out (assoc-ref outputs "out"))
938 (bin (string-append out "/bin")))
939 (with-directory-excursion bin
942 (wrap-program program
943 `("PERL5LIB" ":" prefix
944 ,(map (lambda (file-name)
945 (string-append file-name
946 "/lib/perl5/site_perl"))
949 (assoc-ref inputs input))
950 ;; These may be propagated and hence
951 ;; not explicitly listed as inputs.
952 (list "perl-class-data-inheritable"
953 "perl-devel-stacktrace"
954 "perl-exception-class"
958 "perl-x11-protocol-other")))))))
959 (find-files "." ".*")))
962 `(("perl-cpan-changes" ,perl-cpan-changes)
963 ("perl-file-slurp" ,perl-file-slurp)
964 ("perl-file-which" ,perl-file-which)
965 ("perl-module-build" ,perl-module-build)
966 ("perl-readonly" ,perl-readonly)
967 ("perl-test-differences" ,perl-test-differences)
968 ("perl-test-distmanifest" ,perl-test-distmanifest)
969 ("perl-test-perltidy" ,perl-test-perltidy)
970 ("perl-test-pod" ,perl-test-pod)
971 ("perl-test-pod-coverage" ,perl-test-pod-coverage)
972 ("perl-test-trap" ,perl-test-trap)
973 ("perltidy" ,perltidy)))
975 `(("perl-exception-class" ,perl-exception-class)
976 ("perl-sort-naturally" ,perl-sort-naturally)
978 ("perl-try-tiny" ,perl-try-tiny)
979 ("perl-x11-protocol" ,perl-x11-protocol)
980 ("perl-x11-protocol-other" ,perl-x11-protocol-other)
982 ;; The clusterssh.sourceforge.net address requires login to view
983 (home-page "https://sourceforge.net/projects/clusterssh/")
984 (synopsis "Secure concurrent multi-server terminal control")
986 "ClusterSSH controls a number of xterm windows via a single graphical
987 console window to allow commands to be interactively run on multiple servers
988 over ssh connections.")
989 (license license:gpl2+)))
991 (define-public rename
998 "mirror://cpan/authors/id/R/RM/RMBARKER/File-Rename-"
1002 "137m8s06r4n038ivlr5r1d9a7q9l7shmwpvnyx053r9ndhvbnkh5"))))
1003 (build-system perl-build-system)
1006 (modify-phases %standard-phases
1007 (add-after 'install 'find-itself
1008 ;; Fix run-time 'Can't locate File/Rename.pm in @INC' failure.
1009 (lambda* (#:key outputs #:allow-other-keys)
1010 (let* ((out (assoc-ref outputs "out"))
1011 (bin (string-append out "/bin")))
1012 (with-directory-excursion bin
1015 (wrap-program program
1016 `("PERL5LIB" ":" prefix
1017 (,(string-append out "/lib/perl5/site_perl")))))
1018 (find-files "." ".*")))
1021 `(("perl-module-build" ,perl-module-build)
1022 ("perl-test-pod" ,perl-test-pod)
1023 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
1024 (home-page "https://metacpan.org/pod/distribution/File-Rename/rename.PL")
1025 (synopsis "Perl extension for renaming multiple files")
1027 "This package provides a Perl interface (@code{Perl::Rename}) as well
1028 as a command-line utility (@command{rename}) that can rename multiple files
1029 at once based on a Perl regular expression.")
1030 (license license:perl-license)))
1032 (define-public rottlog
1038 (uri (string-append "mirror://gnu/rottlog/rottlog-"
1042 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
1043 (modules '((guix build utils)))
1046 (substitute* "Makefile.in"
1047 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
1048 ;; Don't try to chown root.
1050 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
1051 ;; Don't attempt to create /var/lib/rottlog.
1054 (build-system gnu-build-system)
1056 '(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
1057 "--localstatedir=/var")
1059 ;; Install example config files in OUT/etc.
1060 #:make-flags (list (string-append "ROTT_ETCDIR="
1061 (assoc-ref %outputs "out")
1064 #:phases (modify-phases %standard-phases
1065 (add-after 'unpack 'patch-paths
1067 (substitute* "rc/rc"
1068 (("/usr/sbin/sendmail") "sendmail"))
1070 (add-after 'build 'set-packdir
1072 ;; Set a default location for archived logs.
1073 (substitute* "rc/rc"
1075 "packdir=\"/var/log\""))
1077 (add-before 'install 'tweak-rc-weekly
1079 (substitute* "rc/weekly"
1083 ;; The file is called 'syslog.pid' (no 'd').
1086 (add-after 'install 'install-info
1088 (invoke "make" "install-info"))))))
1089 (native-inputs `(("texinfo" ,texinfo)
1090 ("util-linux" ,util-linux))) ; for 'cal'
1091 (home-page "https://www.gnu.org/software/rottlog/")
1092 (synopsis "Log rotation and management")
1094 "GNU Rot[t]log is a program for managing log files. It is used to
1095 automatically rotate out log files when they have reached a given size or
1096 according to a given schedule. It can also be used to automatically compress
1097 and archive such logs. Rot[t]log will mail reports of its activity to the
1098 system administrator.")
1099 (license license:gpl3+)))
1108 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
1110 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
1111 version ".tar.gz")))
1114 "1h1f7v9pv0rzp14cxzv8kaa8mdd717fbqv83l7c5dvvi8jwnisvv"))
1115 (modules '((guix build utils)))
1118 (delete-file-recursively "lib/zlib")
1120 (build-system gnu-build-system)
1123 (list "--with-logpath=/var/log/sudo.log"
1124 "--with-rundir=/var/run/sudo" ; must be cleaned up at boot time
1125 "--with-vardir=/var/db/sudo"
1126 "--with-iologdir=/var/log/sudo-io"
1128 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
1130 (string-append "CPPFLAGS=-D_PATH_MV='\""
1131 (assoc-ref %build-inputs "coreutils")
1134 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
1135 #:parallel-build? #f
1138 (modify-phases %standard-phases
1139 (add-before 'configure 'pre-configure
1141 (substitute* "src/sudo_usage.h.in"
1142 ;; Do not capture 'configure' arguments since we would
1143 ;; unduly retain references, and also because the
1144 ;; CPPFLAGS above would close the string literal
1146 (("@CONFIGURE_ARGS@") "\"\""))
1147 (substitute* (find-files "." "Makefile\\.in")
1148 (("-o [[:graph:]]+ -g [[:graph:]]+")
1149 ;; Allow installation as non-root.
1151 (("^install: (.*)install-sudoers(.*)" _ before after)
1152 ;; Don't try to create /etc/sudoers.
1153 (string-append "install: " before after "\n"))
1154 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
1155 ;; Don't try to create /run/sudo.
1157 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
1158 ;; Don't try to create /var/db/sudo.
1162 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
1163 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
1167 ("linux-pam" ,linux-pam)
1169 ("coreutils" ,coreutils)))
1170 (home-page "https://www.sudo.ws/")
1171 (synopsis "Run commands as root")
1173 "Sudo (su \"do\") allows a system administrator to delegate authority to
1174 give certain users (or groups of users) the ability to run some (or all)
1175 commands as root or another user while providing an audit trail of the
1176 commands and their arguments.")
1178 ;; See <http://www.sudo.ws/sudo/license.html>.
1179 (license license:x11)))
1181 (define-public wpa-supplicant-minimal
1183 (name "wpa-supplicant-minimal")
1188 "https://w1.fi/releases/wpa_supplicant-"
1192 "15ixzm347n8w6gdvi3j3yks3i15qmp6by9ayvswm34d929m372d6"))
1193 (modules '((guix build utils)))
1196 (substitute* "wpa_supplicant/defconfig"
1197 ;; Disable D-Bus to save ~14MiB on the closure size.
1198 (("^CONFIG_CTRL_IFACE_DBUS" line _)
1199 (string-append "#" line)))
1201 (build-system gnu-build-system)
1204 (modify-phases %standard-phases
1206 (lambda* (#:key outputs #:allow-other-keys)
1207 (chdir "wpa_supplicant")
1208 (copy-file "defconfig" ".config")
1209 (let ((port (open-file ".config" "al")))
1211 CONFIG_DEBUG_SYSLOG=y
1215 CONFIG_DRIVER_NL80211=y
1216 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
1218 CONFIG_READLINE=y\n" port)
1221 (add-after 'install 'install-man-pages
1222 (lambda* (#:key outputs #:allow-other-keys)
1223 (let* ((out (assoc-ref outputs "out"))
1224 (man (string-append out "/share/man"))
1225 (man5 (string-append man "/man5"))
1226 (man8 (string-append man "/man8")))
1227 (define (copy-man-page target)
1229 (install-file file target)))
1231 (mkdir-p man5) (mkdir man8)
1232 (for-each (copy-man-page man5)
1233 (find-files "doc/docbook" "\\.5"))
1234 (for-each (copy-man-page man8)
1235 (find-files "doc/docbook" "\\.8"))
1238 #:make-flags (list "CC=gcc"
1239 (string-append "BINDIR=" (assoc-ref %outputs "out")
1241 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1245 `(("readline" ,readline)
1247 ("openssl" ,openssl)))
1249 `(("pkg-config" ,pkg-config)))
1250 (home-page "https://w1.fi/wpa_supplicant/")
1251 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
1253 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
1254 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
1255 the client stations. It implements key negotiation with a WPA Authenticator
1256 and it controls the roaming and IEEE 802.11 authentication/association of the
1259 This package provides the @code{wpa_supplicant} daemon and the @code{wpa_cli}
1262 ;; In practice, this is linked against Readline, which makes it GPLv3+.
1263 (license license:bsd-3)
1265 (properties `((cpe-name . "wpa_supplicant")))))
1267 (define-public wpa-supplicant
1268 (package (inherit wpa-supplicant-minimal)
1269 (name "wpa-supplicant")
1270 (inputs `(("dbus" ,dbus)
1271 ,@(package-inputs wpa-supplicant-minimal)))
1273 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
1275 `(modify-phases ,phases
1276 (add-after 'configure 'configure-for-dbus
1278 (let ((port (open-file ".config" "al")))
1280 CONFIG_CTRL_IFACE_DBUS_NEW=y
1281 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
1284 (add-after 'install-man-pages 'install-dbus-conf
1285 (lambda* (#:key outputs #:allow-other-keys)
1286 (let* ((out (assoc-ref outputs "out"))
1287 (dir (string-append out "/etc/dbus-1/system.d")))
1289 (copy-file "dbus/dbus-wpa_supplicant.conf"
1290 (string-append dir "/wpa_supplicant.conf")))
1293 (define-public wpa-supplicant-gui
1295 (inherit wpa-supplicant)
1296 (name "wpa-supplicant-gui")
1297 (inputs `(("qtbase" ,qtbase)
1299 ,@(package-inputs wpa-supplicant)))
1302 `(("imagemagick" ,imagemagick)
1303 ("inkscape" ,inkscape)
1304 ,@(package-native-inputs wpa-supplicant)))
1306 `(#:phases (modify-phases %standard-phases
1307 (add-after 'unpack 'chdir
1309 (chdir "wpa_supplicant/wpa_gui-qt4")
1314 (invoke "qmake" "wpa_gui.pro")
1315 (invoke "make" "-j" (number->string (parallel-job-count)))
1316 (invoke "make" "-C" "icons")))
1318 (lambda* (#:key inputs outputs #:allow-other-keys)
1319 (let ((out (assoc-ref outputs "out"))
1320 (qt '("qtbase" "qtsvg")))
1321 (install-file "wpa_gui" (string-append out "/bin"))
1322 (install-file "wpa_gui.desktop"
1323 (string-append out "/share/applications"))
1324 (copy-recursively "icons/hicolor"
1325 (string-append out "/share/icons/hicolor"))
1326 (wrap-program (string-append out "/bin/wpa_gui")
1327 `("QT_PLUGIN_PATH" ":" prefix
1328 ,(map (lambda (label)
1329 (string-append (assoc-ref inputs label)
1330 "/lib/qt5/plugins/"))
1333 (synopsis "Graphical user interface for WPA supplicant")))
1335 (define-public hostapd
1341 (uri (string-append "https://w1.fi/releases/hostapd-" version
1345 "1c74rrazkhy4lr7pwgwa2igzca7h9l4brrs7672kiv7fwqmm57wj"))))
1346 (build-system gnu-build-system)
1349 (modify-phases %standard-phases
1351 (lambda* (#:key outputs #:allow-other-keys)
1352 ;; This is mostly copied from 'wpa-supplicant' above.
1354 (copy-file "defconfig" ".config")
1355 (let ((port (open-file ".config" "al")))
1360 CONFIG_IEEE80211AC=y\n" port)
1363 (add-after 'install 'install-man-pages
1364 (lambda* (#:key outputs #:allow-other-keys)
1365 (let* ((out (assoc-ref outputs "out"))
1366 (man (string-append out "/share/man"))
1367 (man1 (string-append man "/man1"))
1368 (man8 (string-append man "/man8")))
1369 (define (copy-man-page target)
1371 (install-file file target)))
1373 (for-each (copy-man-page man1)
1374 (find-files "." "\\.1"))
1375 (for-each (copy-man-page man8)
1376 (find-files "." "\\.8"))
1379 #:make-flags (list "CC=gcc"
1380 (string-append "BINDIR=" (assoc-ref %outputs "out")
1382 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1385 (native-inputs `(("pkg-config" ,pkg-config)))
1387 ;; There's an optional dependency on SQLite.
1388 (inputs `(("openssl" ,openssl)
1390 (home-page "https://w1.fi/hostapd/")
1391 (synopsis "Daemon for Wi-Fi access points and authentication servers")
1393 "hostapd is a user-space daemon for WiFi access points and authentication
1394 servers. It implements IEEE 802.11 access point management, IEEE
1395 802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and RADIUS
1396 authentication server.")
1398 ;; Same license as wpa_supplicant.
1399 (license license:bsd-3)))
1401 (define-public wakelan
1408 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
1412 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
1413 (build-system gnu-build-system)
1416 (modify-phases %standard-phases
1418 (lambda* (#:key outputs #:allow-other-keys)
1419 (let ((out (assoc-ref outputs "out")))
1420 (mkdir-p (string-append out "/bin"))
1421 (mkdir-p (string-append out "/share/man/man1"))
1423 ;; It's an old configure script that doesn't understand
1424 ;; the extra options we pass.
1425 (setenv "CONFIG_SHELL" (which "bash"))
1426 (invoke "./configure"
1427 (string-append "--prefix=" out)
1428 (string-append "--mandir=" out
1431 (home-page "https://www.kernel.org") ; really, no home page
1432 (synopsis "Send a wake-on-LAN packet")
1434 "WakeLan broadcasts a properly formatted UDP packet across the local area
1435 network, which causes enabled computers to power on.")
1436 (license license:gpl2+)))
1438 (define-public dmidecode
1445 "mirror://savannah/dmidecode/dmidecode-"
1449 "1pcfhcgs2ifdjwp7amnsr3lq95pgxpr150bjhdinvl505px0cw07"))))
1450 (build-system gnu-build-system)
1452 '(#:phases (modify-phases %standard-phases (delete 'configure))
1453 #:tests? #f ; no 'check' target
1454 #:make-flags (list (string-append "prefix="
1455 (assoc-ref %outputs "out")))))
1456 (home-page "https://www.nongnu.org/dmidecode/")
1457 (synopsis "Read hardware information from the BIOS")
1459 "Dmidecode reports information about your system's hardware as described
1460 in your system BIOS according to the SMBIOS/DMI standard. This typically
1461 includes system manufacturer, model name, serial number, BIOS version, asset
1462 tag as well as a lot of other details of varying level of interest and
1463 reliability depending on the manufacturer. This will often include usage
1464 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1465 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1466 (license license:gpl2+)))
1468 (define-public acpica
1471 (version "20190703")
1475 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1479 "0kp3ian3lffx9709ajrr3bp6b9cb6c6v1crjziyr8j8pp639jlwz"))))
1480 (build-system gnu-build-system)
1481 (native-inputs `(("flex" ,flex)
1484 '(#:make-flags (list (string-append "PREFIX=" %output)
1487 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1488 #:tests? #f ; no 'check' target
1489 #:phases (modify-phases %standard-phases (delete 'configure))))
1490 (home-page "https://acpica.org/")
1491 (synopsis "Tools for the development and debug of ACPI tables")
1493 "The ACPI Component Architecture (@dfn{ACPICA}) project provides an
1494 OS-independent reference implementation of the Advanced Configuration and
1495 Power Interface Specification (@dfn{ACPI}). ACPICA code contains those portions
1496 of ACPI meant to be directly integrated into the host OS as a kernel-resident
1497 subsystem, and a small set of tools to assist in developing and debugging ACPI
1498 tables. This package contains only the user-space tools needed for ACPI table
1499 development, not the kernel implementation of ACPI.")
1500 (license license:gpl2))) ; dual GPLv2/ACPICA Licence
1502 (define-public s-tui
1509 (uri (pypi-uri "s-tui" version))
1512 "00lsh2v4i8rwfyjyxx5lijd6rnk9smcfffhzg5sv94ijpcnh216m"))))
1513 (build-system python-build-system)
1515 `(("python-psutil" ,python-psutil)
1516 ("python-urwid" ,python-urwid)))
1517 (home-page "https://github.com/amanusk/s-tui")
1518 (synopsis "Interactive terminal stress test and monitoring tool")
1520 "The Stress Terminal UI displays graphs of the CPU frequency,
1521 utilization, temperature and power.")
1522 (license license:gpl2+)))
1524 (define-public stress
1530 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1531 version ".orig.tar.gz"))
1534 "0nw210jajk38m3y7h8s130ps2qsbz7j75wab07hi2r3hlz14yzh5"))))
1535 (build-system gnu-build-system)
1536 (home-page "https://packages.debian.org/sid/stress")
1537 (synopsis "Impose load on and stress test a computer system")
1539 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
1540 or disk stress on a POSIX-compliant operating system and reports any errors it
1543 Stress is not a benchmark. It is a tool used by system administrators to
1544 evaluate how well their systems will scale, by kernel programmers to evaluate
1545 perceived performance characteristics, and by systems programmers to expose
1546 the classes of bugs which only or more frequently manifest themselves when the
1547 system is under heavy load.")
1548 (license license:gpl2+)))
1550 (define-public detox
1557 (url "https://github.com/dharple/detox.git")
1558 (commit (string-append "v" version))))
1561 "1dd608c7g65s5lj02cddvani3q9kzirddgkjqa22ap9d4f8b9xgr"))))
1562 (build-system gnu-build-system)
1564 `(("autoconf" ,autoconf)
1565 ("automake" ,automake)
1568 `(#:tests? #f ;no 'check' target
1569 #:phases (modify-phases %standard-phases
1570 (add-after 'unpack 'delete-configure
1571 ;; The "configure" script is present, but otherwise the
1572 ;; project is not bootstrapped: missing install-sh and
1573 ;; Makefile.in, so delete it so the bootstrap phase will
1575 (lambda _ (delete-file "configure") #t)))))
1576 (home-page "https://github.com/dharple/detox")
1577 (synopsis "Clean up file names")
1579 "Detox is a program that renames files to make them easier to work with
1580 under Unix and related operating systems. Spaces and various other unsafe
1581 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1582 characters can be replaced as well, as can UTF-8 characters.")
1583 (license license:bsd-3)))
1585 (define-public testdisk
1591 (uri (string-append "https://www.cgsecurity.org/testdisk-"
1592 version ".tar.bz2"))
1595 "1zlh44w67py416hkvw6nrfmjickc2d43v51vcli5p374d5sw84ql"))))
1596 (build-system gnu-build-system)
1598 `(("ntfs-3g" ,ntfs-3g)
1599 ("util-linux" ,util-linux)
1600 ("openssl" ,openssl)
1601 ;; FIXME: add reiserfs.
1603 ("e2fsprogs" ,e2fsprogs)
1604 ("libjpeg" ,libjpeg)
1605 ("ncurses" ,ncurses)))
1606 (home-page "https://www.cgsecurity.org/wiki/TestDisk")
1607 (synopsis "Data recovery tool")
1609 "TestDisk is a program for data recovery, primarily designed to help
1610 recover lost partitions and/or make non-booting disks bootable again.")
1611 (license license:gpl2+)))
1620 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1623 (base32 "1hmpz6k0mr6salv0nprvm1g0rdjva1kx03bdf1scw8a38d5mspbi"))))
1624 (build-system gnu-build-system)
1626 '(#:phases (modify-phases %standard-phases (delete 'configure))
1627 #:tests? #f ; no check target
1628 #:make-flags (let ((out (assoc-ref %outputs "out")))
1629 (list (string-append "prefix=" out)))))
1630 (synopsis "Recursively list the contents of a directory")
1632 "Tree is a recursive directory listing command that produces a depth
1633 indented listing of files, which is colorized ala dircolors if the LS_COLORS
1634 environment variable is set and output is to tty.")
1635 (home-page "http://mama.indstate.edu/users/ice/tree/")
1636 (license license:gpl2+)))
1638 (define-public direvent
1644 (uri (string-append "mirror://gnu/direvent/direvent-"
1648 "0m9vi01b1km0cpknflyzsjnknbava0s1n6393b2bpjwyvb6j5613"))
1649 (modules '((guix build utils)))
1651 (substitute* "tests/testsuite"
1652 (("#![[:blank:]]?/bin/sh")
1655 (build-system gnu-build-system)
1658 (modify-phases %standard-phases
1659 (add-before 'build 'patch-/bin/sh
1660 (lambda* (#:key inputs #:allow-other-keys)
1661 ;; Use the right shell when executing the watcher and
1662 ;; user-provided shell commands.
1663 (let ((bash (assoc-ref inputs "bash")))
1664 (substitute* '("src/direvent.c" "src/progman.c")
1666 (string-append "\"" bash "/bin/sh\"")))
1668 ;; Adjust the 'shell.at' test accordingly.
1669 (substitute* "tests/testsuite"
1671 (string-append "SHELL=" bash "/bin/sh")))
1674 (home-page "https://www.gnu.org/software/direvent/")
1675 (synopsis "Daemon to monitor directories for events such as file removal")
1677 "A daemon that monitors directories for events, such as creating,
1678 deleting or modifying files. It can monitor different sets of directories for
1679 different events. When an event is detected, direvent calls a specified
1680 external program with information about the event, such as the location
1681 within the file system where it occurred. Thus, \"direvent\" provides an
1682 easy way to react immediately if given files undergo changes, for example, to
1683 track changes in important system configuration files.")
1684 (license license:gpl3+)))
1686 (define-public libcap-ng
1693 "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1697 "0a0k484kwv0zilry2mbl9k56cnpdhsjxdxin17jas6kkyfy345aa"))))
1698 (build-system gnu-build-system)
1701 (list "--without-python")))
1702 (home-page "https://people.redhat.com/sgrubb/libcap-ng/")
1703 (synopsis "Library for more easily working with POSIX capabilities")
1705 "The libcap-ng library is intended to make programming with POSIX
1706 capabilities easier than the traditional libcap library. It includes
1707 utilities that can analyse all currently running applications and print out
1708 any capabilities and whether or not it has an open ended bounding set. The
1709 included utilities are designed to let admins and developers spot apps from
1710 various ways that may be running with too much privilege.")
1711 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1712 (license (list license:lgpl2.1+ license:gpl2+))))
1714 (define-public smartmontools
1716 (name "smartmontools")
1721 "mirror://sourceforge/smartmontools/smartmontools/"
1722 version "/smartmontools-" version ".tar.gz"))
1725 "077nx2rn9szrg6isdh0938zbp7vr3dsyxl4jdyyzv1xwhqksrqg5"))))
1726 (build-system gnu-build-system)
1727 (inputs `(("libcap-ng" ,libcap-ng)))
1728 (home-page "https://www.smartmontools.org/")
1729 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1731 "The smartmontools package contains utility programs to control and
1732 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1733 Technology System (@dfn{S.M.A.R.T.}) built into most modern ATA and SCSI hard
1734 disks. In many cases, these utilities will provide advanced warning of disk
1735 degradation and failure.")
1736 (license license:gpl2+)))
1738 (define-public fdupes
1746 (url "https://github.com/adrianlopezroche/fdupes.git")
1747 (commit (string-append "v" version))))
1748 (file-name (git-file-name name version))
1750 (base32 "19b6vqblddaw8ccw4sn0qsqzbswlhrz8ia6n4m3hymvcxn8skpz9"))))
1751 (build-system gnu-build-system)
1753 '(#:phases (modify-phases %standard-phases
1754 (delete 'configure))
1755 #:tests? #f ; no 'check' target
1756 #:make-flags (list "CC=gcc"
1757 (string-append "PREFIX="
1758 (assoc-ref %outputs "out")))))
1759 (home-page "https://github.com/adrianlopezroche/fdupes")
1760 (synopsis "Identify duplicate files")
1762 "fdupes is a program for identifying duplicate files residing within
1763 specified directories.")
1764 (license license:expat)))
1766 (define-public graphios
1773 (uri (pypi-uri "graphios" version))
1776 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1777 (build-system python-build-system)
1779 ;; Be warned: Building with Python 3 succeeds, but the build process
1780 ;; throws a syntax error that is ignored.
1781 `(#:python ,python-2
1783 (modify-phases %standard-phases
1784 (add-before 'build 'fix-setup.py
1785 (lambda* (#:key outputs #:allow-other-keys)
1786 ;; Fix hardcoded, unprefixed file names.
1787 (let ((out (assoc-ref outputs "out")))
1788 (substitute* '("setup.py")
1789 (("/etc") (string-append out "/etc"))
1791 (("distro_ver = .*") "distro_ver = ''"))
1793 (home-page "https://github.com/shawn-sterling/graphios")
1794 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1796 "Graphios is a script to emit nagios perfdata to various upstream metrics
1797 processing and time-series systems. It's currently compatible with Graphite,
1798 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1799 of supported upstream metrics systems simultaneously.")
1800 (license license:gpl2+)))
1802 (define-public ansible
1809 (uri (pypi-uri "ansible" version))
1811 (base32 "0ia4x17ywym3r1m96ar4h0wc2xlylhbjp6x4wzwkh4p2i0x1vmg1"))))
1812 (build-system python-build-system)
1814 `(("python-bcrypt" ,python-bcrypt)
1815 ("python-pynacl" ,python-pynacl)
1816 ("python-httplib2" ,python-httplib2)
1817 ("python-passlib" ,python-passlib)
1818 ("python-nose" ,python-nose)
1819 ("python-mock" ,python-mock)
1820 ("python-jinja2" ,python-jinja2)
1821 ("python-pyyaml" ,python-pyyaml)
1822 ("python-paramiko" ,python-paramiko)))
1824 `(("python-cryptography" ,python-cryptography)
1825 ("python-jinja2" ,python-jinja2)
1826 ("python-pyyaml" ,python-pyyaml)
1827 ("python-paramiko" ,python-paramiko)))
1830 (modify-phases %standard-phases
1831 ;; Several ansible commands (ansible-config, ansible-console, etc.)
1832 ;; are just symlinks to a single ansible executable. The ansible
1833 ;; executable behaves differently based on the value of
1834 ;; sys.argv[0]. This does not work well with our wrap phase, and
1835 ;; therefore the following two phases are required as a workaround.
1836 (add-after 'unpack 'hide-wrapping
1838 ;; Overwrite sys.argv[0] to hide the wrapper script from it.
1839 (substitute* "bin/ansible"
1840 (("import traceback" all)
1841 (string-append all "
1843 sys.argv[0] = re.sub(r'\\.([^/]*)-real$', r'\\1', sys.argv[0])
1846 (add-after 'wrap 'fix-symlinks
1847 (lambda* (#:key outputs #:allow-other-keys)
1848 (let ((out (assoc-ref outputs "out")))
1850 (lambda (subprogram)
1851 ;; The symlinks point to the ansible wrapper script. Make
1852 ;; them point to the real executable (.ansible-real).
1853 (delete-file (string-append out "/bin/.ansible-" subprogram "-real"))
1854 (symlink (string-append out "/bin/.ansible-real")
1855 (string-append out "/bin/.ansible-" subprogram "-real"))
1856 ;; The wrapper scripts of the symlinks invoke the ansible
1857 ;; wrapper script. Fix them to invoke the correct executable.
1858 (substitute* (string-append out "/bin/ansible-" subprogram)
1860 (string-append "/bin/.ansible-" subprogram "-real"))))
1861 (list "config" "console" "doc" "galaxy"
1862 "inventory" "playbook" "pull" "vault")))
1864 (home-page "https://www.ansible.com/")
1865 (synopsis "Radically simple IT automation")
1866 (description "Ansible is a radically simple IT automation system. It
1867 handles configuration management, application deployment, cloud provisioning,
1868 ad hoc task execution, and multinode orchestration---including trivializing
1869 things like zero-downtime rolling updates with load balancers.")
1870 (license license:gpl3+)))
1872 (define-public emacs-ansible-doc
1873 (let ((commit "86083a7bb2ed0468ca64e52076b06441a2f8e9e0"))
1875 (name "emacs-ansible-doc")
1876 (version (git-version "0.4" "1" commit))
1881 (url "https://github.com/lunaryorn/ansible-doc.el")
1883 (file-name (git-file-name name version))
1886 "0lap404ch74w99n3xip176jr42b38xhyzkfnkyqg0g3wk2cd3aq8"))))
1887 (build-system emacs-build-system)
1888 ;; Unmaintained by upstream.
1889 (home-page "https://github.com/lunaryorn/ansible-doc.el")
1890 (synopsis "Ansible documentation for Emacs")
1892 "This package provides an Ansible documentation for GNU Emacs.
1894 @code{ansible-doc} allows you to view the documentation of an Ansible
1895 module and @code{ansible-doc-mode} minor mode adds documentation
1896 lookup to YAML Mode. You could enable the mode with @code{(add-hook
1897 'yaml-mode-hook #'ansible-doc-mode)}.")
1898 (license license:gpl3+))))
1900 (define-public cpulimit
1908 (url "https://github.com/opsengine/cpulimit.git")
1909 (commit (string-append "v" version))))
1910 (file-name (git-file-name name version))
1912 (base32 "1dz045yhcsw1rdamzpz4bk8mw888in7fyqk1q1b3m1yk4pd1ahkh"))))
1913 (build-system gnu-build-system)
1915 `(#:phases (modify-phases %standard-phases
1919 (invoke "make" "CC=gcc" "-Csrc")))
1922 (invoke "make" "CC=gcc" "-Ctests")))
1924 (lambda* (#:key outputs #:allow-other-keys)
1925 (let* ((out (assoc-ref outputs "out"))
1926 (bin (string-append out "/bin")))
1927 (install-file "src/cpulimit" bin))
1929 (home-page "https://github.com/opsengine/cpulimit")
1930 (synopsis "Limit CPU usage")
1932 "Cpulimit limits the CPU usage of a process. It does not change the nice
1933 value or other scheduling priority settings, but the real CPU usage, and is
1934 able to adapt itself dynamically to the overall system load. Children
1935 processes and threads of the specified process may optionally share the same
1937 (license license:gpl2+)))
1939 (define-public autojump
1947 (url "https://github.com/wting/autojump.git")
1948 (commit (string-append "release-v" version))))
1949 (file-name (git-file-name name version))
1951 (base32 "1rgpsh70manr2dydna9da4x7p8ahii7dgdgwir5fka340n1wrcws"))))
1952 (build-system gnu-build-system)
1953 (native-inputs ; for tests
1954 `(("python-mock" ,python-mock)
1955 ("python-pytest" ,python-pytest)))
1957 `(("python" ,python-wrapper)))
1960 (modify-phases %standard-phases
1961 (add-after 'unpack 'make-git-checkout-writable
1962 ;; ‘install.py’ modifies files before installing them.
1964 (for-each make-file-writable (find-files "."))
1970 (invoke "python" "tests/unit/autojump_utils_test.py")))
1972 (lambda* (#:key outputs #:allow-other-keys)
1973 (setenv "SHELL" (which "bash"))
1974 (invoke "python" "install.py"
1975 (string-append "--destdir="
1976 (assoc-ref outputs "out"))))))))
1977 (home-page "https://github.com/wting/autojump")
1978 (synopsis "Shell extension for file system navigation")
1980 "Autojump provides a faster way to navigate your file system, with a \"cd
1981 command that learns\". It works by maintaining a database of the directories
1982 you use the most from the command line and allows you to \"jump\" to
1983 frequently used directories by typing only a small pattern.")
1984 (license license:gpl3+)))
1993 (url "https://github.com/clvv/fasd.git")
1995 (file-name (git-file-name name version))
1998 "1awi71jdv3mhjrmar2d4z1i90kn7apd7aq1w31sh6w4yibz9kiyj"))))
1999 (build-system gnu-build-system)
2001 `(#:phases (modify-phases %standard-phases
2002 (delete 'configure)) ;no configuration
2003 #:tests? #f ;no tests
2004 #:make-flags (list (string-append "PREFIX=" %output))))
2005 (home-page "https://github.com/clvv/fasd")
2006 (synopsis "Quick access to files and directories for shells")
2008 "Fasd (pronounced similar to \"fast\") is a command-line productivity
2009 booster. Fasd offers quick access to files and directories for POSIX shells.
2010 It is inspired by tools like autojump, z, and v. Fasd keeps track of files
2011 and directories you have accessed so that you can quickly reference them in
2013 (license license:x11)))
2015 (define-public iftop
2021 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
2022 "/iftop-" version ".tar.gz"))
2025 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
2026 (build-system gnu-build-system)
2028 `(("libpcap" ,libpcap)
2029 ("ncurses" ,ncurses)))
2030 (synopsis "Monitor network usage")
2031 (description "Iftop does for network usage what @command{top} does
2032 for CPU usage. It listens to network traffic on a named interface and
2033 displays a table of current bandwidth usage by pairs of hosts.")
2034 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
2035 (license license:gpl2+)))
2037 (define-public munge
2043 (uri (string-append "https://github.com/dun/munge/releases/"
2044 "download/munge-" version "/munge-"
2048 "1nj486bbg1adfg298zck96vgx57kchcypc1zdz1n7w540vyksxcr"))
2049 (modules '((guix build utils)))
2052 ;; Don't insist on write access to /var.
2053 (substitute* "src/etc/Makefile.in"
2054 (("\\$\\(INSTALL\\)(.*)localstatedir" _ middle)
2055 (string-append "-$(INSTALL)" middle "localstatedir")))
2058 `(("openssl" ,openssl)
2059 ("libgcrypt" ,libgcrypt)))
2060 (build-system gnu-build-system)
2061 (arguments '(#:configure-flags '("--localstatedir=/var")))
2062 (home-page "https://dun.github.io/munge/")
2063 (synopsis "Cluster computing authentication service")
2065 "Munge is an authentication service for creating and validating
2066 credentials. It allows a process to authenticate the UID and GID of another
2067 local or remote process within a group of hosts having common users and
2068 groups. These hosts form a security realm that is defined by a shared
2069 cryptographic key. Clients within this security realm can create and validate
2070 credentials without the use of root privileges, reserved ports, or
2071 platform-specific methods.")
2072 (license license:gpl3+)))
2074 (define-public audit
2077 (home-page "https://people.redhat.com/sgrubb/audit/")
2081 (uri (string-append home-page "audit-" version ".tar.gz"))
2084 "1dzcwb2q78q7x41shcachn7f4aksxbxd470yk38zh03fch1l2p8f"))))
2085 (build-system gnu-build-system)
2087 `(#:configure-flags (list "--with-python=no"
2088 "--disable-static")))
2090 `(("openldap" ,openldap)
2092 ("sasl" ,cyrus-sasl)))
2093 (synopsis "User-space component to the Linux auditing system")
2095 "auditd is the user-space component to the Linux auditing system, which
2096 allows logging of system calls made by user-land processes. It's responsible
2097 for writing audit records to the disk. Viewing the logs is done with the
2098 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
2099 done with the @code{auditctl} utility.")
2100 (license license:gpl2+)))
2108 (uri (string-append "https://nmap.org/dist/nmap-" version
2112 "063fg8adx23l4irrh5kn57hsmi1xvjkar4vm4k6g94ppan4hcyw4"))
2113 (modules '((guix build utils)))
2116 (for-each delete-file-recursively
2117 ;; Remove bundled lua, pcap, and pcre libraries.
2118 ;; FIXME: Remove bundled liblinear once packaged.
2122 ;; Remove pre-compiled binares.
2125 (build-system gnu-build-system)
2127 `(("openssl" ,openssl)
2128 ("libpcap" ,libpcap)
2131 ("zlib" ,zlib) ;for NSE compression support
2134 ("python" ,python-2)))
2136 ;; TODO Add zenmap output.
2137 (outputs '("out" "ndiff"))
2139 `(#:configure-flags '("--without-zenmap")
2141 (modify-phases %standard-phases
2142 (add-after 'configure 'patch-Makefile
2144 (substitute* "Makefile"
2145 ;; Do not attempt to build lua.
2146 (("build-dnet build-lua") "build-dnet"))
2149 (lambda* (#:key outputs #:allow-other-keys)
2150 (define (make out . args)
2151 (apply invoke "make"
2152 (string-append "prefix=" out)
2154 (define (python-path dir)
2155 (string-append dir "/lib/python"
2156 ,(version-major+minor
2157 (package-version python))
2159 (let ((out (assoc-ref outputs "out"))
2160 (ndiff (assoc-ref outputs "ndiff")))
2161 (for-each mkdir-p (list out ndiff))
2167 (make ndiff "install-ndiff")
2168 (wrap-program (string-append ndiff "/bin/ndiff")
2169 `("PYTHONPATH" prefix
2170 (,(python-path ndiff)))))
2172 ;; These are the tests that do not require network access.
2174 (lambda _ (invoke "make"
2178 ;; Nmap can't cope with out-of-source building.
2179 #:out-of-source? #f))
2180 (home-page "https://nmap.org/")
2181 (synopsis "Network discovery and security auditing tool")
2183 "Nmap (\"Network Mapper\") is a network discovery and security auditing
2184 tool. It is also useful for tasks such as network inventory, managing service
2185 upgrade schedules, and monitoring host or service uptime. It also provides an
2186 advanced netcat implementation (ncat), a utility for comparing scan
2187 results (ndiff), and a packet generation and response analysis tool (nping).")
2188 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
2189 ;; both use a 3-clause BSD license.
2190 (license (list license:nmap license:bsd-3))))
2192 (define-public dstat
2200 (url "https://github.com/dagwieers/dstat.git")
2201 (commit (string-append "v" version))))
2202 (file-name (git-file-name "dstat" version))
2204 (base32 "1qnmkhqmjd1m3if05jj29dvr5hn6kayq9bkkkh881w472c0zhp8v"))
2205 (patches (search-patches "dstat-fix-crash-when-specifying-delay.patch"
2206 "dstat-skip-devices-without-io.patch"))))
2207 (build-system gnu-build-system)
2209 `(#:tests? #f ; no make check
2210 #:make-flags (let ((out (assoc-ref %outputs "out")))
2211 (list (string-append "DESTDIR=" out)
2214 (modify-phases %standard-phases
2215 (add-after 'unpack 'fix-python3-DeprecationWarning
2217 (substitute* "dstat"
2218 (("collections") "collections.abc"))
2220 (delete 'configure) ; no configure script
2221 (add-after 'install 'wrap
2222 (lambda* (#:key outputs #:allow-other-keys)
2223 (let ((out (assoc-ref outputs "out")))
2224 (wrap-program (string-append out "/bin/dstat")
2225 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
2228 `(("python" ,python-wrapper)
2229 ("python-six" ,python-six)))
2230 (synopsis "Versatile resource statistics tool")
2231 (description "Dstat is a versatile replacement for @command{vmstat},
2232 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
2233 some of their limitations and adds some extra features, more counters and
2234 flexibility. Dstat is handy for monitoring systems during performance tuning
2235 tests, benchmarks or troubleshooting.
2237 Dstat allows you to view all of your system resources in real-time, you can,
2238 e.g., compare disk utilization in combination with interrupts from your IDE
2239 controller, or compare the network bandwidth numbers directly with the disk
2240 throughput (in the same interval).")
2241 (home-page "http://dag.wiee.rs/home-made/dstat/")
2242 (license license:gpl2+)))
2244 (define-public thefuck
2252 (url "https://github.com/nvbn/thefuck.git")
2254 (file-name (git-file-name name version))
2256 (base32 "1qhxwjjgrzpqrqjv7l2847ywpln76lyd6j8bl9gz2r6kl0fx2fqs"))
2257 (patches (search-patches "thefuck-test-environ.patch"))))
2258 (build-system python-build-system)
2261 (modify-phases %standard-phases
2263 (add-after 'install 'check
2264 (lambda* (#:key inputs outputs #:allow-other-keys)
2265 ;; Tests look for installed package
2266 (add-installed-pythonpath inputs outputs)
2267 ;; Some tests need write access to $HOME.
2268 (setenv "HOME" "/tmp")
2269 (invoke "py.test" "-v")
2272 `(("python-colorama" ,python-colorama)
2273 ("python-decorator" ,python-decorator)
2274 ("python-psutil" ,python-psutil)
2275 ("python-pyte" ,python-pyte)
2276 ("python-six" ,python-six)))
2278 `(("python-mock" ,python-mock)
2279 ("python-pytest" ,python-pytest)
2280 ("python-pytest-mock" ,python-pytest-mock)))
2281 (home-page "https://github.com/nvbn/thefuck")
2282 (synopsis "Correct mistyped console command")
2284 "The Fuck tries to match a rule for a previous, mistyped command, creates
2285 a new command using the matched rule, and runs it.")
2286 (license license:x11)))
2295 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
2297 (base32 "1bdbl9k3gqf4h6g21difqc0w17pjid6r587y19wi37vx36aava7f"))))
2298 (build-system gnu-build-system)
2300 `(#:tests? #f ; obscure test failures
2302 (modify-phases %standard-phases
2303 (delete 'configure) ; no configure script
2304 (add-before 'build 'setup-environment
2305 (lambda* (#:key outputs #:allow-other-keys)
2307 (setenv "prefix" (assoc-ref outputs "out"))
2309 #:make-flags (list "--environment-overrides")))
2310 (home-page "https://www.gentoo.com/di/")
2311 (synopsis "Advanced df like disk information utility")
2313 "@code{di} is a disk information utility, displaying everything that your
2314 @code{df} command does and more. It features the ability to display your disk
2315 usage in whatever format you prefer. It is designed to be highly portable and
2316 produce uniform output across heterogeneous networks.")
2317 (license license:zlib)))
2319 (define-public cbatticon
2327 (url "https://github.com/valr/cbatticon.git")
2330 (base32 "0kw09d678sd3m18fmi4380sl4a2m5lkfmq0kps16cdmq7z80rvaf"))
2331 (file-name (git-file-name name version))))
2332 (build-system gnu-build-system)
2334 `(#:tests? #f ; no tests
2336 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2339 (modify-phases %standard-phases
2340 (delete 'configure)))) ; no configure script
2343 ("gettext" ,gettext-minimal)
2344 ("libnotify" ,libnotify)))
2346 `(("pkg-config" ,pkg-config)))
2347 (synopsis "Lightweight battery icon for the system tray")
2348 (description "cbatticon is a lightweight battery icon that displays
2349 the status of your battery in the system tray.")
2350 (home-page "https://github.com/valr/cbatticon")
2351 (license license:gpl2+)))
2353 (define-public interrobang
2354 (let ((revision "1")
2355 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
2357 (name "interrobang")
2358 (version (git-version "0.0.0" revision commit))
2363 (url "https://github.com/TrilbyWhite/interrobang.git")
2365 (file-name (git-file-name name version))
2367 (base32 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
2368 (build-system gnu-build-system)
2370 `(#:tests? #f ; no tests
2372 (modify-phases %standard-phases
2373 (delete 'configure)) ; no configure script
2374 #:make-flags (list (string-append "PREFIX="
2375 (assoc-ref %outputs "out")))))
2377 `(("libx11" ,libx11)))
2379 `(("pkg-config" ,pkg-config)))
2380 (synopsis "Scriptable launcher menu")
2381 (description "Interrobang is a scriptable launcher menu with a customizable
2382 shortcut syntax and completion options.")
2383 (home-page "https://github.com/TrilbyWhite/interrobang")
2384 (license license:gpl3+))))
2386 (define-public pam-krb5
2393 "https://archives.eyrie.org/software/kerberos/"
2394 "pam-krb5-" version ".tar.xz"))
2397 "1qjp8i1s9bz7g6kiqrkzzkxn5pfspa4sy53b6z40fqmdf9przdfb"))))
2398 (build-system gnu-build-system)
2401 (modify-phases %standard-phases
2402 (add-before 'configure 'disable-tests
2404 ;; The build container seems to interfere with some tests.
2405 (substitute* "tests/TESTS"
2406 (("module/basic\n") ""))
2407 (substitute* "tests/TESTS"
2408 (("pam-util/vector\n") ""))
2411 `(("linux-pam" ,linux-pam)
2412 ("mit-krb5" ,mit-krb5)))
2415 ("perl-test-pod" ,perl-test-pod))) ; required for tests
2416 (synopsis "Kerberos PAM module")
2418 "Pam-krb5 is a Kerberos PAM module for either MIT Kerberos or Heimdal.
2419 It supports ticket refreshing by screen savers, configurable
2420 authorization handling, authentication of non-local accounts for network
2421 services, password changing, and password expiration, as well as all the
2422 standard expected PAM features. It works correctly with OpenSSH, even
2423 with @code{ChallengeResponseAuthentication} and @code{PrivilegeSeparation}
2424 enabled, and supports extensive configuration either by PAM options or in
2425 krb5.conf or both. PKINIT is supported with recent versions of both MIT
2426 Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
2427 (home-page "https://www.eyrie.org/~eagle/software/pam-krb5")
2428 ;; Dual licenced under a homebrew non-copyleft OR GPL (any version)
2429 ;; However, the tarball does not contain a copy of the GPL, so unless
2430 ;; we put one in, we cannot distribute it under GPL without violating
2431 ;; clause requiring us to give all recipients a copy.
2432 (license license:gpl1+)))
2434 (define-public sunxi-tools
2436 (name "sunxi-tools")
2442 (url "https://github.com/linux-sunxi/sunxi-tools.git")
2443 (commit (string-append "v" version))))
2445 (base32 "04f3jqg8ww4jxsf9c6ddcdgy2xbhkyp0b3l5f1hvvbv94p81rjxd"))
2446 (modules '((guix build utils)))
2448 ;; Remove binaries contained in the tarball which are only for the
2449 ;; target and can be regenerated anyway.
2451 (delete-file-recursively "bin")
2453 (file-name (git-file-name name version))))
2455 `(("pkg-config" ,pkg-config)
2456 ("cross-gcc" ,(cross-gcc "arm-linux-gnueabihf"
2457 #:xbinutils (cross-binutils "arm-linux-gnueabihf")
2458 #:libc (cross-libc "arm-linux-gnueabihf")))
2459 ("cross-libc" ,(cross-libc "arm-linux-gnueabihf")) ; header files
2460 ("cross-libc-static" ,(cross-libc "arm-linux-gnueabihf") "static")))
2462 `(("libusb" ,libusb)))
2463 (build-system gnu-build-system)
2465 `(#:tests? #f ; no tests exist
2466 #:make-flags (list (string-append "PREFIX="
2467 (assoc-ref %outputs "out"))
2468 (string-append "CROSS_COMPILE="
2469 "arm-linux-gnueabihf-")
2472 (modify-phases %standard-phases
2474 (add-before 'build 'set-environment-up
2475 (lambda* (#:key make-flags #:allow-other-keys)
2477 (string-contains x "cross-arm-linux"))
2478 (define (filter-environment! filter-predicate
2479 environment-variable-names)
2482 (let* ((env-value (getenv env-name))
2483 (search-path (search-path-as-string->list env-value))
2484 (new-search-path (filter filter-predicate
2486 (new-env-value (list->search-path-as-string
2487 new-search-path ":")))
2488 (setenv env-name new-env-value)))
2489 environment-variable-names))
2490 (setenv "CROSS_C_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))
2491 (setenv "CROSS_CPLUS_INCLUDE_PATH" (getenv "CPLUS_INCLUDE_PATH"))
2492 (setenv "CROSS_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
2493 (filter-environment! cross?
2494 '("CROSS_C_INCLUDE_PATH" "CROSS_CPLUS_INCLUDE_PATH"
2495 "CROSS_LIBRARY_PATH"))
2496 (filter-environment! (lambda (e) (not (cross? e)))
2497 '("C_INCLUDE_PATH" "CPLUS_INCLUDE_PATH"
2501 (lambda* (#:key make-flags #:allow-other-keys)
2502 (apply invoke "make" "tools" "misc" make-flags)))
2503 (add-after 'build 'build-armhf
2504 (lambda* (#:key make-flags #:allow-other-keys)
2505 (setenv "LIBRARY_PATH" #f)
2506 (apply invoke "make" "target-tools" make-flags)))
2508 (lambda* (#:key make-flags #:allow-other-keys)
2509 (apply invoke "make" "install-all" "install-misc"
2511 (home-page "https://github.com/linux-sunxi/sunxi-tools")
2512 (synopsis "Hardware management tools for Allwinner computers")
2513 (description "This package contains tools for Allwinner devices:
2515 @item @command{sunxi-fexc}, @command{bin2fex}, @command{fex2bin}: Compile
2516 a textual description of a board (.fex) to a binary representation (.bin).
2517 @item @command{sunxi-fel}: Puts an Allwinner device into FEL mode which
2518 makes it register as a special USB device (rather than USB host).
2519 You can then connect it to another computer and flash it from there.
2520 @item @command{sunxi-nand-part}: Partitions NAND flash.
2521 @item @command{sunxi-bootinfo}: Reads out boot0 and boot1 (Allwinner
2522 bootloader) parameters.
2523 @item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
2524 in order to be able to find it.
2525 @item @command{sunxi-meminfo}: Prints memory bus settings.
2526 @item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
2528 (license license:gpl2+)))
2530 (define-public sedsed
2538 (url "https://github.com/aureliojargas/sedsed.git")
2539 (commit (string-append "v" version))))
2540 (file-name (git-file-name name version))
2542 (base32 "05cl35mwljdb9ynbbsfa8zx6ig8r0xncbg2cir9vwn5manndjj18"))))
2543 (build-system python-build-system)
2545 `(#:tests? #f ; no tests
2547 (modify-phases %standard-phases
2548 (add-after 'unpack 'patch-sed-in
2550 (substitute* "sedsed.py"
2552 (string-append "sedbin = '" (which "sed") "'")))
2556 (lambda* (#:key outputs #:allow-other-keys)
2557 (let* ((out (assoc-ref outputs "out"))
2558 (bin (string-append out "/bin")))
2559 ;; Just one file to copy around
2560 (install-file "sedsed.py" bin)
2562 (add-after 'wrap 'symlink
2563 ;; Create 'sedsed' symlink to "sedsed.py".
2564 (lambda* (#:key outputs #:allow-other-keys)
2565 (let* ((out (assoc-ref outputs "out"))
2566 (bin (string-append out "/bin"))
2567 (sed (string-append bin "/sedsed"))
2568 (sedpy (string-append bin "/sedsed.py")))
2571 (home-page "https://aurelio.net/projects/sedsed")
2572 (synopsis "Sed sed scripts")
2574 "@code{sedsed} can debug, indent, tokenize and HTMLize your @command{sed}
2577 In debug mode, it reads your script and adds extra commands to it. When
2578 executed you can see the data flow between the commands, revealing all the
2579 magic sed performs on its internal buffers.
2581 In indent mode, your script is reformatted with standard spacing.
2583 In tokenize mode, you can see the elements of every command you use.
2585 In HTMLize mode, your script is converted to a beautiful colored HTML file,
2586 with all the commands and parameters identified for your viewing pleasure.
2588 With sedsed you can master any sed script. No more secrets, no more hidden
2590 (license license:expat)))
2592 (define-public igt-gpu-tools
2594 (name "igt-gpu-tools")
2598 (uri (string-append "https://cgit.freedesktop.org/xorg/app/"
2599 "intel-gpu-tools/snapshot/"
2600 "igt-gpu-tools-" version ".tar.gz"))
2603 "0vzv2i4jfv2pkbqby5k3ap9pzidkmajwqmg3s7wnv8i1h33775iq"))))
2604 (build-system gnu-build-system)
2606 `(#:tests? #f ; many of the tests try to load kernel modules
2608 (modify-phases %standard-phases
2609 (add-after 'unpack 'autogen
2611 ;; Don't run configure in this phase.
2612 (setenv "NOCONFIGURE" "1")
2613 (invoke "sh" "autogen.sh"))))))
2620 ("libpciaccess" ,libpciaccess)
2621 ("libunwind" ,libunwind)
2622 ("libxrandr" ,libxrandr)
2623 ("openssl" ,openssl)
2625 ("util-macros" ,util-macros)))
2627 `(("autoconf" ,autoconf)
2628 ("automake" ,automake)
2629 ("libtool" ,libtool)
2630 ("pkg-config" ,pkg-config)))
2631 (home-page "https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/")
2632 (synopsis "Tools for development and testing of the Intel DRM driver")
2633 (description "IGT GPU Tools is a collection of tools for development and
2634 testing of the Intel DRM driver. There are many macro-level test suites that
2635 get used against the driver, including xtest, rendercheck, piglit, and
2636 oglconform, but failures from those can be difficult to track down to kernel
2637 changes, and many require complicated build procedures or specific testing
2638 environments to get useful results. Therefore, IGT GPU Tools includes
2639 low-level tools and tests specifically for development and testing of the
2641 (supported-systems '("i686-linux" "x86_64-linux"))
2642 (license license:expat)))
2644 (define-public intel-gpu-tools
2645 (deprecated-package "intel-gpu-tools" igt-gpu-tools))
2647 (define-public fabric
2654 (uri (pypi-uri "Fabric" version))
2657 "13r0b0hllgf8j9rh6x1knmbgvingbdmx046aazv6vck2ll120mw1"))))
2658 (build-system python-build-system)
2660 `(#:python ,python-2 ; Python 2 only
2662 (modify-phases %standard-phases
2666 "nosetests" "-v" "tests/"
2667 ;; This test hangs indefinitely when run on a single core VM
2668 ;; (see GNU bug #26647 and Debian bug #850230).
2669 "--exclude=test_nested_execution_with_explicit_ports"
2670 ;; This test randomly fails in certain environments causing too
2671 ;; much noise to be useful (see Debian bug #854686).
2672 "--exclude=test_should_use_sentinel_for_tasks_that_errored"))))))
2674 `(("python2-fudge" ,python2-fudge) ; Requires < 1.0
2675 ("python2-jinja2" ,python2-jinja2) ; Requires < 3.0
2676 ("python2-nose" ,python2-nose) ; Requires < 2.0
2677 ("python2-pynacl" ,python2-pynacl)
2678 ("python2-bcrypt" ,python2-bcrypt)))
2680 `(("python2-paramiko" ,python2-paramiko)))
2681 (home-page "http://fabfile.org")
2682 (synopsis "Simple Pythonic remote execution and deployment tool")
2684 "Fabric is designed to upload files and run shell commands on a number of
2685 servers in parallel or serially. These commands are grouped in tasks (which
2686 are regular Python functions) and specified in a @dfn{fabfile}.
2688 It is similar to Capistrano, except it's implemented in Python and doesn't
2689 expect you to be deploying Rails applications. Fabric is a simple, Pythonic
2690 tool for remote execution and deployment.")
2691 (license license:bsd-2)))
2693 (define-public neofetch
2700 (url "https://github.com/dylanaraps/neofetch")
2704 "0j0r40llyry1sgc6p9wd7jrpydps2lnj4rwajjp37697g2bik89i"))))
2705 (build-system gnu-build-system)
2707 `(#:tests? #f ; there are no tests
2709 (list (string-append "PREFIX=" %output))
2711 (modify-phases %standard-phases
2712 (delete 'configure)))) ; no configure script
2713 (home-page "https://github.com/dylanaraps/neofetch")
2714 (synopsis "System information script")
2715 (description "Neofetch is a command-line system information tool written in
2716 Bash. Neofetch displays information about your system next to an image, your OS
2717 logo, or any ASCII file of your choice. The main purpose of Neofetch is to be
2718 used in screenshots to show other users what operating system or distribution
2719 you are running, what theme or icon set you are using, etc.")
2720 (license license:expat)))
2729 (uri (string-append "https://github.com/jarun/nnn/releases/download/v"
2730 version "/nnn-v" version ".tar.gz"))
2732 (base32 "1d6z12y4rlg4dzhpm30irpq2ak8hjh5zykkp2n7vxnz5m4ki89zp"))))
2733 (build-system gnu-build-system)
2735 `(("ncurses" ,ncurses)
2736 ("readline" ,readline)))
2738 `(("pkg-config" ,pkg-config)))
2740 '(#:tests? #f ; no tests
2742 (modify-phases %standard-phases
2743 (delete 'configure)) ; no configure script
2746 (string-append "PREFIX="
2747 (assoc-ref %outputs "out"))
2749 (home-page "https://github.com/jarun/nnn")
2750 (synopsis "Terminal file browser")
2751 (description "@command{nnn} is a fork of @command{noice}, a blazing-fast
2752 lightweight terminal file browser with easy keyboard shortcuts for
2753 navigation, opening files and running tasks. There is no config file and
2754 mime associations are hard-coded. The incredible user-friendliness and speed
2755 make it a perfect utility on modern distros.")
2756 (license license:bsd-2)))
2758 (define-public thermald
2766 (url "https://github.com/01org/thermal_daemon")
2767 (commit (string-append "v" version))))
2768 (file-name (git-file-name name version))
2770 (base32 "1g1l7k8yxj8bl1ysdx8v6anv1s7xk9j072y44gwki70dy48n7j92"))
2772 (search-patches "thermald-make-int-max32-visible.patch"))))
2773 (build-system gnu-build-system)
2776 (let ((out (assoc-ref %outputs "out")))
2777 (list (string-append "--sysconfdir="
2779 (string-append "--with-dbus-sys-dir="
2780 out "/etc/dbus-1/system.d")
2781 "--localstatedir=/var"))))
2783 `(("autoconf" ,autoconf)
2784 ("automake" ,automake)
2785 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
2786 ("pkg-config" ,pkg-config)))
2788 `(("dbus-glib" ,dbus-glib)
2789 ("libxml2" ,libxml2)))
2790 (home-page "https://01.org/linux-thermal-daemon/")
2791 (synopsis "CPU scaling for thermal management")
2792 (description "The Linux Thermal Daemon helps monitor and control temperature
2793 on systems running the Linux kernel.")
2794 ;; arm and aarch64 don't have cpuid.h.
2795 (supported-systems '("i686-linux" "x86_64-linux"))
2796 (license license:gpl2+)))
2798 (define-public masscan
2806 (url "https://github.com/robertdavidgraham/masscan.git")
2808 (file-name (git-file-name name version))
2810 (base32 "0q0c7bsf0pbl8napry1qyg0gl4pd8wn872h4mz9b56dx4rx90vqg"))))
2811 (build-system gnu-build-system)
2813 `(("libpcap" ,libpcap)))
2815 '(#:test-target "regress"
2818 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2820 (modify-phases %standard-phases
2821 (delete 'configure) ; no ./configure script
2822 (add-after 'unpack 'patch-path
2823 (lambda* (#:key outputs inputs #:allow-other-keys)
2824 (let* ((out (assoc-ref outputs "out"))
2825 (pcap (assoc-ref inputs "libpcap")))
2826 (substitute* "src/rawsock-pcap.c"
2827 (("libpcap.so") (string-append pcap "/lib/libpcap.so")))
2829 (synopsis "TCP port scanner")
2830 (description "MASSCAN is an asynchronous TCP port scanner. It can detect
2831 open ports, and also complete the TCP connection and interact with the remote
2832 application, collecting the information received.")
2833 (home-page "https://github.com/robertdavidgraham/masscan")
2834 ;; 'src/siphash24.c' is the SipHash reference implementation, which
2835 ;; bears a CC0 Public Domain Dedication.
2836 (license license:agpl3+)))
2838 (define-public hungrycat
2844 (uri (string-append "https://github.com/jwilk/hungrycat/"
2845 "releases/download/" version "/"
2846 "hungrycat-" version ".tar.gz"))
2849 "03fc1zsrf99lvxa7b4ps6pbi43304wbxh1f6ci4q0vkal370yfwh"))))
2850 (build-system gnu-build-system)
2853 `(("python" ,python-wrapper)
2854 ("python-nose" ,python-nose)))
2856 `(#:test-target "test"))
2857 (synopsis "A single tool that combines @command{cat} & @command{rm}")
2859 "hungrycat prints the contents of a file to standard output, while
2860 simultaneously freeing the disk space it occupied. It is useful if you need
2861 to process a large file, don't have enough space to store both the input and
2862 output files, and don't need the input file afterwards.
2863 While similar in principle to running @command{cat} immediately followed by
2864 @command{rm}, @command{hungrycat} actually frees blocks as soon as they are
2865 printed instead of after the entire file has been read, which is often too
2867 (home-page "https://jwilk.net/software/hungrycat")
2868 (license license:expat)))
2870 (define-public launchmon
2877 "https://github.com/LLNL/LaunchMON/releases/download/v"
2878 version "/launchmon-v" version ".tar.gz"))
2881 "0fm3nd9mydm9v2bf7bh01dbgrfnpwkapxa3dsvy3x1z0rz61qc0x"))))
2882 (build-system gnu-build-system)
2888 ("libgcrypt" ,libgcrypt)
2889 ("libgpg-error" ,libgpg-error)))
2890 (synopsis "Infrastructue for large scale tool daemon launching")
2892 "LaunchMON is a software infrastructure that enables HPC run-time
2893 tools to co-locate tool daemons with a parallel job. Its API allows a
2894 tool to identify all the remote processes of a job and to scalably
2895 launch daemons into the relevant nodes.")
2896 (home-page "https://github.com/LLNL/LaunchMON")
2897 (supported-systems '("i686-linux" "x86_64-linux"))
2898 (license license:lgpl2.1)))
2900 (define-public spindle
2905 ;; We use git checkout to avoid github auto-generated tarballs
2908 (url "https://github.com/hpc/Spindle.git")
2909 (commit (string-append "v" version))))
2910 (file-name (git-file-name name version))
2913 "15n3ay0qq81r5v7fif61q1vdjcq44pp2nynkh3fvbzc9fj3c39wd"))))
2914 (build-system gnu-build-system)
2915 (arguments '(#:configure-flags '("--enable-sec-launchmon"
2916 "--enable-sec-munge"
2917 "--enable-sec-none")))
2921 ("launchmon" ,launchmon)
2922 ("libgcrypt" ,libgcrypt)))
2923 (synopsis "Scalable library loading in HPC environments")
2925 "Spindle is a tool for improving the performance of dynamic library and
2926 Python loading in HPC environments.")
2927 (home-page "https://github.com/hpc/Spindle")
2928 ;; This package supports x86_64 and PowerPC64
2929 (supported-systems '("x86_64-linux"))
2930 (license license:lgpl2.1)))
2932 (define-public inxi-minimal
2933 (let ((real-name "inxi"))
2935 (name "inxi-minimal")
2936 (version "3.0.34-1")
2941 (url "https://github.com/smxi/inxi")
2943 (file-name (git-file-name real-name version))
2945 (base32 "0x2s40lwsan2pk292nspjgyw00f9f5fdfmwfvl50924pxhyxn2fh"))))
2946 (build-system trivial-build-system)
2948 `(("bash" ,bash-minimal)
2950 ("procps" ,procps)))
2960 (use-modules (guix build utils)
2963 (setenv "PATH" (string-append
2964 (assoc-ref %build-inputs "bash") "/bin" ":"
2965 (assoc-ref %build-inputs "gzip") "/bin" ":"
2966 (assoc-ref %build-inputs "perl") "/bin" ":"))
2967 (copy-recursively (assoc-ref %build-inputs "source")
2968 ,(string-append real-name "-" version))
2969 (with-directory-excursion ,(string-append real-name "-" version)
2970 (with-fluids ((%default-port-encoding #f))
2971 (substitute* "inxi" (("/usr/bin/env perl") (which "perl"))))
2972 (let ((bin (string-append %output "/bin")))
2973 (install-file "inxi" bin)
2974 (wrap-program (string-append bin "/inxi")
2977 ,@(map (lambda (input)
2981 (cut string-append store <>)))
2983 ((member name '("util-linux"))
2984 (string-append (store-append "/bin") ":"
2985 (store-append "/sbin")))
2986 ((member name '("dmidecode" "iproute2"))
2987 (store-append "/sbin"))
2988 (else (store-append "/bin")))))))
2994 (((? (cut string-prefix? "perl-" <>) name) . dir)
2995 (string-append dir "/lib/perl5/site_perl"))
2998 (invoke "gzip" "inxi.1")
2999 (install-file "inxi.1.gz"
3000 (string-append %output "/share/man/man1")))
3002 (home-page "https://smxi.org/docs/inxi.htm")
3003 (synopsis "Full-featured system information script")
3004 (description "Inxi is a system information script that can display
3005 various things about your hardware and software to users in an IRC chatroom or
3006 support forum. It runs with the @code{/exec} command in most IRC clients.")
3007 (license license:gpl3+))))
3011 (inherit inxi-minimal)
3014 `(("dmidecode" ,dmidecode)
3016 ("bind:utils" ,isc-bind "utils") ; dig
3018 ("iproute2" ,iproute) ; ip
3019 ("kmod" ,kmod) ; modinfo
3020 ("lm-sensors" ,lm-sensors)
3021 ("mesa-utils" ,mesa-utils)
3022 ("pciutils" ,pciutils)
3025 ("util-linux" ,util-linux) ; lsblk
3026 ("usbutils" ,usbutils) ; lsusb
3028 ("xdpyinfo" ,xdpyinfo)
3031 ("coreutils" ,coreutils) ; uptime
3032 ("inetutils" ,inetutils) ; ifconfig
3033 ("perl-cpanel-json-xs" ,perl-cpanel-json-xs)
3034 ("perl-http-tiny" ,perl-http-tiny)
3035 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
3036 ("perl-json-xs" ,perl-json-xs)
3037 ("perl-time-hires" ,perl-time-hires)
3038 ;; TODO: Add more inputs:
3043 ,@(package-inputs inxi-minimal)))))
3045 (define-public pscircle
3053 (url "https://gitlab.com/mildlyparallel/pscircle.git")
3054 (commit (string-append "v" version))))
3055 (file-name (git-file-name name version))
3058 "0qsif00dkqa8ky3vl2ycx5anx2yk62nrv47f5lrlqzclz91f00fx"))))
3059 (build-system meson-build-system)
3061 `(("pkg-config" ,pkg-config)))
3065 ("libx11" ,libx11)))
3066 (home-page "https://gitlab.com/mildlyparallel/pscircle")
3067 (synopsis "Visualize Linux processes in a form of radial tree")
3069 "@code{pscircle} visualizes Linux processes in the form of a radial tree.")
3070 (license license:gpl2+)))
3072 (define-public python-pyudev
3074 (name "python-pyudev")
3079 (uri (pypi-uri "pyudev" version))
3082 "0arz0dqp75sszsmgm6vhg92n1lsx91ihddx3m944f4ah0487ljq9"))))
3083 (build-system python-build-system)
3085 `(#:tests? #f ; Tests require /sys
3087 (modify-phases %standard-phases
3088 (add-after 'unpack 'patch-ctypes-udev
3089 (lambda* (#:key inputs outputs #:allow-other-keys)
3090 (let ((eudev (assoc-ref inputs "eudev")))
3091 (substitute* "src/pyudev/core.py"
3093 (string-append "'" eudev "/lib/libudev.so'")))
3094 (substitute* "src/pyudev/_ctypeslib/utils.py"
3095 ;; Use absolute paths instead of keys.
3096 (("= find_library") "= "))
3099 `(("eudev" ,eudev)))
3101 `(("python-six" ,python-six)))
3103 `(("python-docutils" ,python-docutils)
3104 ("python-hypothesis" ,python-hypothesis)
3105 ("python-mock" ,python-mock)
3106 ("python-pytest" ,python-pytest)
3107 ("python-sphinx" ,python-sphinx)))
3108 (home-page "http://pyudev.readthedocs.org/")
3109 (synopsis "Python udev binding")
3110 (description "This package provides @code{udev} bindings for Python.")
3111 (license license:lgpl2.1)))
3113 (define-public solaar
3120 (url "https://github.com/pwr/Solaar.git")
3122 (file-name (git-file-name name version))
3125 "085mfa13dap3wqik1dqlad0d7kff4rv7j4ljh99c7l8nhczkqgwm"))))
3126 (build-system python-build-system)
3129 (modify-phases %standard-phases
3130 (add-after 'unpack 'fix-prefix-detection
3132 (substitute* "setup.py"
3133 (("'--prefix' in sys\\.argv")
3134 "len([x.startswith('--prefix=') for x in sys.argv]) > 0"))
3138 (invoke "python" "setup.py" "build")))
3139 (add-before 'check 'setenv-PATH
3141 (setenv "PYTHONPATH" (string-append "lib:" (getenv "PYTHONPATH")))
3144 `(("python-pygobject" ,python-pygobject)
3145 ("python-pyudev" ,python-pyudev)))
3146 (home-page "https://smxi.org/docs/inxi.htm")
3147 (synopsis "Linux devices manager for the Logitech Unifying Receiver")
3148 (description "This package provides tools to manage clients of the
3149 Logitech Unifying Receiver.")
3150 (license license:gpl2)))
3152 (define-public lynis
3155 ;; Also update the ‘lynis-sdk’ input to the commit matching this release.
3161 (url "https://github.com/CISOfy/lynis")
3163 (file-name (git-file-name name version))
3165 (base32 "1jjk5hcxmp4f4ppsljiq95l2ln6b03azydap3b35lsvxkjybv88k"))
3166 (modules '((guix build utils)))
3169 ;; Remove proprietary plugins. As of now, all plugins supplied with
3170 ;; lynis are proprietary. In the future, if free plugins are
3171 ;; provided, whitelist them from deletion.
3172 (for-each delete-file (find-files "plugins"))
3174 (build-system gnu-build-system)
3181 (url "https://github.com/CISOfy/lynis-sdk")
3182 (commit "90f301e21c204792cf372f1cf05890a562f2e31b")))
3183 (file-name (git-file-name "lynis-sdk" version))
3185 (base32 "1d0smr1fxrvbc3hl8lzy33im9ahzr0hgs3kk09r8g8xccjkcm52l"))))))
3188 (modify-phases %standard-phases
3190 (lambda* (#:key inputs outputs #:allow-other-keys)
3191 (substitute* "lynis"
3192 (("/usr/share/lynis")
3193 (string-append (assoc-ref outputs "out") "/share/lynis")))
3194 (substitute* "include/functions"
3195 (("/usr/local/etc/lynis")
3196 (string-append (assoc-ref outputs "out") "/etc/lynis")))
3200 (lambda* (#:key outputs #:allow-other-keys)
3201 (let ((out (assoc-ref outputs "out")))
3202 (install-file "lynis" (string-append out "/bin/"))
3203 (install-file "default.prf" (string-append out "/etc/lynis"))
3206 (copy-recursively dir (string-append out "/share/lynis/" dir)))
3207 (list "db" "include" "plugins"))
3208 (install-file "lynis.8" (string-append out "/share/man/man8"))
3211 (lambda* (#:key inputs #:allow-other-keys)
3212 (copy-recursively (assoc-ref inputs "lynis-sdk") "../lynis-sdk")
3213 (setenv "LANG" "en_US.UTF-8")
3214 (let ((lynis-dir (getcwd)))
3215 (with-directory-excursion "../lynis-sdk"
3216 (substitute* "config"
3217 (("\\.\\./lynis") lynis-dir))
3218 (substitute* "unit-tests/tests-language-translations.sh"
3219 (("\\.\\./lynis") lynis-dir))
3220 (invoke "sh" "lynis-devkit" "run" "unit-tests"))))))))
3221 (home-page "https://cisofy.com/lynis/")
3222 (synopsis "Security auditing tool")
3223 (description "Lynis is a security auditing tool. It performs an in-depth
3224 security scan and runs on the system itself. The primary goal is to test
3225 security defenses and provide tips for further system hardening. It will also
3226 scan for general system information, vulnerable software packages, and
3227 possible configuration issues.")
3228 (license license:gpl3+)))
3230 (define-public ngrep
3238 (url "https://github.com/jpr5/ngrep/")
3239 (commit (string-append "V" (string-replace-substring version "." "_")))))
3240 (file-name (git-file-name name version))
3243 "1x2fyd7wdqlj1r76ilal06cl2wmbz0ws6i3ys204sbjh1cj6dcl7"))))
3244 (build-system gnu-build-system)
3246 `(("libpcap" ,libpcap)))
3248 `(#:tests? #f ;; No tests.
3249 #:configure-flags (list (string-append "--with-pcap-includes="
3250 (assoc-ref %build-inputs "libpcap")
3252 (home-page "https://github.com/jpr5/ngrep/")
3253 (synopsis "Grep-like utility to search for network packets on an interface")
3254 (description "@command{ngrep} is like GNU grep applied to the network
3255 layer. It's a PCAP-based tool that allows you to specify an extended regular
3256 or hexadecimal expression to match against data payloads of packets. It
3257 understands many kinds of protocols, including IPv4/6, TCP, UDP, ICMPv4/6,
3258 IGMP and Raw, across a wide variety of interface types, and understands BPF
3259 filter logic in the same fashion as more common packet sniffing tools, such as
3260 tcpdump and snoop.")
3261 (license license:bsd-3)))