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 "12r7rjjyibjdj08dvwbp0iflfpzl4s0zhn6cr6zj3hwf9gbzgl1g"))))
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"
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 "10smy01km2bqjjvsd2jz17zvrxbzj89qczyb1amk38j28bcci609"))))
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 "http://pkg-shadow.alioth.debian.org/")
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)
917 `(("perl-cpan-changes" ,perl-cpan-changes)
918 ("perl-file-slurp" ,perl-file-slurp)
919 ("perl-file-which" ,perl-file-which)
920 ("perl-module-build" ,perl-module-build)
921 ("perl-readonly" ,perl-readonly)
922 ("perl-test-differences" ,perl-test-differences)
923 ("perl-test-distmanifest" ,perl-test-distmanifest)
924 ("perl-test-perltidy" ,perl-test-perltidy)
925 ("perl-test-pod" ,perl-test-pod)
926 ("perl-test-pod-coverage" ,perl-test-pod-coverage)
927 ("perl-test-trap" ,perl-test-trap)
928 ("perltidy" ,perltidy)))
931 ("perl-exception-class" ,perl-exception-class)
933 ("perl-try-tiny" ,perl-try-tiny)
934 ("perl-x11-protocol" ,perl-x11-protocol)
935 ("perl-x11-protocol-other" ,perl-x11-protocol-other)))
936 ;; The clusterssh.sourceforge.net address requires login to view
937 (home-page "https://sourceforge.net/projects/clusterssh/")
938 (synopsis "Secure concurrent multi-server terminal control")
940 "ClusterSSH controls a number of xterm windows via a single graphical
941 console window to allow commands to be interactively run on multiple servers
942 over ssh connections.")
943 (license license:gpl2+)))
945 (define-public rename
952 "mirror://cpan/authors/id/R/RM/RMBARKER/File-Rename-"
956 "137m8s06r4n038ivlr5r1d9a7q9l7shmwpvnyx053r9ndhvbnkh5"))))
957 (build-system perl-build-system)
960 (modify-phases %standard-phases
961 (add-after 'install 'find-itself
962 ;; Fix run-time 'Can't locate File/Rename.pm in @INC' failure.
963 (lambda* (#:key outputs #:allow-other-keys)
964 (let* ((out (assoc-ref outputs "out"))
965 (bin (string-append out "/bin")))
966 (with-directory-excursion bin
969 (wrap-program program
970 `("PERL5LIB" ":" prefix
971 (,(string-append out "/lib/perl5/site_perl")))))
972 (find-files "." ".*")))
975 `(("perl-module-build" ,perl-module-build)
976 ("perl-test-pod" ,perl-test-pod)
977 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
978 (home-page "https://metacpan.org/pod/distribution/File-Rename/rename.PL")
979 (synopsis "Perl extension for renaming multiple files")
981 "This package provides a Perl interface (@code{Perl::Rename}) as well
982 as a command-line utility (@command{rename}) that can rename multiple files
983 at once based on a Perl regular expression.")
984 (license license:perl-license)))
986 (define-public rottlog
992 (uri (string-append "mirror://gnu/rottlog/rottlog-"
996 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
997 (modules '((guix build utils)))
1000 (substitute* "Makefile.in"
1001 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
1002 ;; Don't try to chown root.
1004 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
1005 ;; Don't attempt to create /var/lib/rottlog.
1008 (build-system gnu-build-system)
1010 '(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
1011 "--localstatedir=/var")
1013 ;; Install example config files in OUT/etc.
1014 #:make-flags (list (string-append "ROTT_ETCDIR="
1015 (assoc-ref %outputs "out")
1018 #:phases (modify-phases %standard-phases
1019 (add-after 'unpack 'patch-paths
1021 (substitute* "rc/rc"
1022 (("/usr/sbin/sendmail") "sendmail"))
1024 (add-after 'build 'set-packdir
1026 ;; Set a default location for archived logs.
1027 (substitute* "rc/rc"
1029 "packdir=\"/var/log\""))
1031 (add-before 'install 'tweak-rc-weekly
1033 (substitute* "rc/weekly"
1037 ;; The file is called 'syslog.pid' (no 'd').
1040 (add-after 'install 'install-info
1042 (invoke "make" "install-info"))))))
1043 (native-inputs `(("texinfo" ,texinfo)
1044 ("util-linux" ,util-linux))) ; for 'cal'
1045 (home-page "https://www.gnu.org/software/rottlog/")
1046 (synopsis "Log rotation and management")
1048 "GNU Rot[t]log is a program for managing log files. It is used to
1049 automatically rotate out log files when they have reached a given size or
1050 according to a given schedule. It can also be used to automatically compress
1051 and archive such logs. Rot[t]log will mail reports of its activity to the
1052 system administrator.")
1053 (license license:gpl3+)))
1062 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
1064 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
1065 version ".tar.gz")))
1068 "1h1f7v9pv0rzp14cxzv8kaa8mdd717fbqv83l7c5dvvi8jwnisvv"))
1069 (modules '((guix build utils)))
1072 (delete-file-recursively "lib/zlib")
1074 (build-system gnu-build-system)
1077 (list "--with-logpath=/var/log/sudo.log"
1078 "--with-rundir=/var/run/sudo" ; must be cleaned up at boot time
1079 "--with-vardir=/var/db/sudo"
1080 "--with-iologdir=/var/log/sudo-io"
1082 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
1084 (string-append "CPPFLAGS=-D_PATH_MV='\""
1085 (assoc-ref %build-inputs "coreutils")
1088 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
1089 #:parallel-build? #f
1092 (modify-phases %standard-phases
1093 (add-before 'configure 'pre-configure
1095 (substitute* "src/sudo_usage.h.in"
1096 ;; Do not capture 'configure' arguments since we would
1097 ;; unduly retain references, and also because the
1098 ;; CPPFLAGS above would close the string literal
1100 (("@CONFIGURE_ARGS@") "\"\""))
1101 (substitute* (find-files "." "Makefile\\.in")
1102 (("-o [[:graph:]]+ -g [[:graph:]]+")
1103 ;; Allow installation as non-root.
1105 (("^install: (.*)install-sudoers(.*)" _ before after)
1106 ;; Don't try to create /etc/sudoers.
1107 (string-append "install: " before after "\n"))
1108 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
1109 ;; Don't try to create /run/sudo.
1111 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
1112 ;; Don't try to create /var/db/sudo.
1116 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
1117 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
1121 ("linux-pam" ,linux-pam)
1123 ("coreutils" ,coreutils)))
1124 (home-page "https://www.sudo.ws/")
1125 (synopsis "Run commands as root")
1127 "Sudo (su \"do\") allows a system administrator to delegate authority to
1128 give certain users (or groups of users) the ability to run some (or all)
1129 commands as root or another user while providing an audit trail of the
1130 commands and their arguments.")
1132 ;; See <http://www.sudo.ws/sudo/license.html>.
1133 (license license:x11)))
1135 (define-public wpa-supplicant-minimal
1137 (name "wpa-supplicant-minimal")
1142 "https://w1.fi/releases/wpa_supplicant-"
1146 "15ixzm347n8w6gdvi3j3yks3i15qmp6by9ayvswm34d929m372d6"))
1147 (modules '((guix build utils)))
1150 (substitute* "wpa_supplicant/defconfig"
1151 ;; Disable D-Bus to save ~14MiB on the closure size.
1152 (("^CONFIG_CTRL_IFACE_DBUS" line _)
1153 (string-append "#" line)))
1155 (build-system gnu-build-system)
1158 (modify-phases %standard-phases
1160 (lambda* (#:key outputs #:allow-other-keys)
1161 (chdir "wpa_supplicant")
1162 (copy-file "defconfig" ".config")
1163 (let ((port (open-file ".config" "al")))
1165 CONFIG_DEBUG_SYSLOG=y
1169 CONFIG_DRIVER_NL80211=y
1170 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
1172 CONFIG_READLINE=y\n" port)
1175 (add-after 'install 'install-man-pages
1176 (lambda* (#:key outputs #:allow-other-keys)
1177 (let* ((out (assoc-ref outputs "out"))
1178 (man (string-append out "/share/man"))
1179 (man5 (string-append man "/man5"))
1180 (man8 (string-append man "/man8")))
1181 (define (copy-man-page target)
1183 (install-file file target)))
1185 (mkdir-p man5) (mkdir man8)
1186 (for-each (copy-man-page man5)
1187 (find-files "doc/docbook" "\\.5"))
1188 (for-each (copy-man-page man8)
1189 (find-files "doc/docbook" "\\.8"))
1192 #:make-flags (list "CC=gcc"
1193 (string-append "BINDIR=" (assoc-ref %outputs "out")
1195 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1199 `(("readline" ,readline)
1201 ("openssl" ,openssl)))
1203 `(("pkg-config" ,pkg-config)))
1204 (home-page "https://w1.fi/wpa_supplicant/")
1205 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
1207 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
1208 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
1209 the client stations. It implements key negotiation with a WPA Authenticator
1210 and it controls the roaming and IEEE 802.11 authentication/association of the
1213 This package provides the @code{wpa_supplicant} daemon and the @code{wpa_cli}
1216 ;; In practice, this is linked against Readline, which makes it GPLv3+.
1217 (license license:bsd-3)
1219 (properties `((cpe-name . "wpa_supplicant")))))
1221 (define-public wpa-supplicant
1222 (package (inherit wpa-supplicant-minimal)
1223 (name "wpa-supplicant")
1224 (inputs `(("dbus" ,dbus)
1225 ,@(package-inputs wpa-supplicant-minimal)))
1227 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
1229 `(modify-phases ,phases
1230 (add-after 'configure 'configure-for-dbus
1232 (let ((port (open-file ".config" "al")))
1234 CONFIG_CTRL_IFACE_DBUS_NEW=y
1235 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
1238 (add-after 'install-man-pages 'install-dbus-conf
1239 (lambda* (#:key outputs #:allow-other-keys)
1240 (let* ((out (assoc-ref outputs "out"))
1241 (dir (string-append out "/etc/dbus-1/system.d")))
1243 (copy-file "dbus/dbus-wpa_supplicant.conf"
1244 (string-append dir "/wpa_supplicant.conf")))
1247 (define-public wpa-supplicant-gui
1249 (inherit wpa-supplicant)
1250 (name "wpa-supplicant-gui")
1251 (inputs `(("qtbase" ,qtbase)
1253 ,@(package-inputs wpa-supplicant)))
1256 `(("imagemagick" ,imagemagick)
1257 ("inkscape" ,inkscape)
1258 ,@(package-native-inputs wpa-supplicant)))
1260 `(#:phases (modify-phases %standard-phases
1261 (add-after 'unpack 'chdir
1263 (chdir "wpa_supplicant/wpa_gui-qt4")
1268 (invoke "qmake" "wpa_gui.pro")
1269 (invoke "make" "-j" (number->string (parallel-job-count)))
1270 (invoke "make" "-C" "icons")))
1272 (lambda* (#:key inputs outputs #:allow-other-keys)
1273 (let ((out (assoc-ref outputs "out"))
1274 (qt '("qtbase" "qtsvg")))
1275 (install-file "wpa_gui" (string-append out "/bin"))
1276 (install-file "wpa_gui.desktop"
1277 (string-append out "/share/applications"))
1278 (copy-recursively "icons/hicolor"
1279 (string-append out "/share/icons/hicolor"))
1280 (wrap-program (string-append out "/bin/wpa_gui")
1281 `("QT_PLUGIN_PATH" ":" prefix
1282 ,(map (lambda (label)
1283 (string-append (assoc-ref inputs label)
1284 "/lib/qt5/plugins/"))
1287 (synopsis "Graphical user interface for WPA supplicant")))
1289 (define-public hostapd
1295 (uri (string-append "https://w1.fi/releases/hostapd-" version
1299 "1c74rrazkhy4lr7pwgwa2igzca7h9l4brrs7672kiv7fwqmm57wj"))))
1300 (build-system gnu-build-system)
1303 (modify-phases %standard-phases
1305 (lambda* (#:key outputs #:allow-other-keys)
1306 ;; This is mostly copied from 'wpa-supplicant' above.
1308 (copy-file "defconfig" ".config")
1309 (let ((port (open-file ".config" "al")))
1314 CONFIG_IEEE80211AC=y\n" port)
1317 (add-after 'install 'install-man-pages
1318 (lambda* (#:key outputs #:allow-other-keys)
1319 (let* ((out (assoc-ref outputs "out"))
1320 (man (string-append out "/share/man"))
1321 (man1 (string-append man "/man1"))
1322 (man8 (string-append man "/man8")))
1323 (define (copy-man-page target)
1325 (install-file file target)))
1327 (for-each (copy-man-page man1)
1328 (find-files "." "\\.1"))
1329 (for-each (copy-man-page man8)
1330 (find-files "." "\\.8"))
1333 #:make-flags (list "CC=gcc"
1334 (string-append "BINDIR=" (assoc-ref %outputs "out")
1336 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1339 (native-inputs `(("pkg-config" ,pkg-config)))
1341 ;; There's an optional dependency on SQLite.
1342 (inputs `(("openssl" ,openssl)
1344 (home-page "https://w1.fi/hostapd/")
1345 (synopsis "Daemon for Wi-Fi access points and authentication servers")
1347 "hostapd is a user-space daemon for WiFi access points and authentication
1348 servers. It implements IEEE 802.11 access point management, IEEE
1349 802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and RADIUS
1350 authentication server.")
1352 ;; Same license as wpa_supplicant.
1353 (license license:bsd-3)))
1355 (define-public wakelan
1362 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
1366 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
1367 (build-system gnu-build-system)
1370 (modify-phases %standard-phases
1372 (lambda* (#:key outputs #:allow-other-keys)
1373 (let ((out (assoc-ref outputs "out")))
1374 (mkdir-p (string-append out "/bin"))
1375 (mkdir-p (string-append out "/share/man/man1"))
1377 ;; It's an old configure script that doesn't understand
1378 ;; the extra options we pass.
1379 (setenv "CONFIG_SHELL" (which "bash"))
1380 (invoke "./configure"
1381 (string-append "--prefix=" out)
1382 (string-append "--mandir=" out
1385 (home-page "https://www.kernel.org") ; really, no home page
1386 (synopsis "Send a wake-on-LAN packet")
1388 "WakeLan broadcasts a properly formatted UDP packet across the local area
1389 network, which causes enabled computers to power on.")
1390 (license license:gpl2+)))
1392 (define-public dmidecode
1399 "mirror://savannah/dmidecode/dmidecode-"
1403 "1pcfhcgs2ifdjwp7amnsr3lq95pgxpr150bjhdinvl505px0cw07"))))
1404 (build-system gnu-build-system)
1406 '(#:phases (modify-phases %standard-phases (delete 'configure))
1407 #:tests? #f ; no 'check' target
1408 #:make-flags (list (string-append "prefix="
1409 (assoc-ref %outputs "out")))))
1410 (home-page "https://www.nongnu.org/dmidecode/")
1411 (synopsis "Read hardware information from the BIOS")
1413 "Dmidecode reports information about your system's hardware as described
1414 in your system BIOS according to the SMBIOS/DMI standard. This typically
1415 includes system manufacturer, model name, serial number, BIOS version, asset
1416 tag as well as a lot of other details of varying level of interest and
1417 reliability depending on the manufacturer. This will often include usage
1418 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1419 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1420 (license license:gpl2+)))
1422 (define-public acpica
1425 (version "20190509")
1429 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1433 "17cf5jhcy9wqla5c9s08khqg0pxhar2nmwdcja2jf2srl2a5y2w6"))))
1434 (build-system gnu-build-system)
1435 (native-inputs `(("flex" ,flex)
1438 '(#:make-flags (list (string-append "PREFIX=" %output)
1441 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1442 #:tests? #f ; no 'check' target
1443 #:phases (modify-phases %standard-phases (delete 'configure))))
1444 (home-page "https://acpica.org/")
1445 (synopsis "Tools for the development and debug of ACPI tables")
1447 "The ACPI Component Architecture (@dfn{ACPICA}) project provides an
1448 OS-independent reference implementation of the Advanced Configuration and
1449 Power Interface Specification (@dfn{ACPI}). ACPICA code contains those portions
1450 of ACPI meant to be directly integrated into the host OS as a kernel-resident
1451 subsystem, and a small set of tools to assist in developing and debugging ACPI
1452 tables. This package contains only the user-space tools needed for ACPI table
1453 development, not the kernel implementation of ACPI.")
1454 (license license:gpl2))) ; dual GPLv2/ACPICA Licence
1456 (define-public stress
1462 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1463 version ".orig.tar.gz"))
1466 "0nw210jajk38m3y7h8s130ps2qsbz7j75wab07hi2r3hlz14yzh5"))))
1467 (build-system gnu-build-system)
1468 (home-page "https://packages.debian.org/sid/stress")
1469 (synopsis "Impose load on and stress test a computer system")
1471 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
1472 or disk stress on a POSIX-compliant operating system and reports any errors it
1475 Stress is not a benchmark. It is a tool used by system administrators to
1476 evaluate how well their systems will scale, by kernel programmers to evaluate
1477 perceived performance characteristics, and by systems programmers to expose
1478 the classes of bugs which only or more frequently manifest themselves when the
1479 system is under heavy load.")
1480 (license license:gpl2+)))
1482 (define-public detox
1489 (url "https://github.com/dharple/detox.git")
1490 (commit (string-append "v" version))))
1493 "1dd608c7g65s5lj02cddvani3q9kzirddgkjqa22ap9d4f8b9xgr"))))
1494 (build-system gnu-build-system)
1496 `(("autoconf" ,autoconf)
1497 ("automake" ,automake)
1500 `(#:tests? #f ;no 'check' target
1501 #:phases (modify-phases %standard-phases
1502 (add-after 'unpack 'delete-configure
1503 ;; The "configure" script is present, but otherwise the
1504 ;; project is not bootstrapped: missing install-sh and
1505 ;; Makefile.in, so delete it so the bootstrap phase will
1507 (lambda _ (delete-file "configure") #t)))))
1508 (home-page "https://github.com/dharple/detox")
1509 (synopsis "Clean up file names")
1511 "Detox is a program that renames files to make them easier to work with
1512 under Unix and related operating systems. Spaces and various other unsafe
1513 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1514 characters can be replaced as well, as can UTF-8 characters.")
1515 (license license:bsd-3)))
1517 (define-public testdisk
1523 (uri (string-append "http://www.cgsecurity.org/testdisk-"
1524 version ".tar.bz2"))
1527 "0ba4wfz2qrf60vwvb1qsq9l6j0pgg81qgf7fh22siaz649mkpfq0"))))
1528 (build-system gnu-build-system)
1530 `(("ntfs-3g" ,ntfs-3g)
1531 ("util-linux" ,util-linux)
1532 ("openssl" ,openssl)
1533 ;; FIXME: add reiserfs
1535 ("e2fsprogs" ,e2fsprogs)
1536 ("libjpeg" ,libjpeg)
1537 ("ncurses" ,ncurses)))
1538 (home-page "https://www.cgsecurity.org/wiki/TestDisk")
1539 (synopsis "Data recovery tool")
1541 "TestDisk is a program for data recovery, primarily designed to help
1542 recover lost partitions and/or make non-booting disks bootable again.")
1543 (license license:gpl2+)))
1552 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1555 (base32 "1hmpz6k0mr6salv0nprvm1g0rdjva1kx03bdf1scw8a38d5mspbi"))))
1556 (build-system gnu-build-system)
1558 '(#:phases (modify-phases %standard-phases (delete 'configure))
1559 #:tests? #f ; no check target
1560 #:make-flags (let ((out (assoc-ref %outputs "out")))
1561 (list (string-append "prefix=" out)))))
1562 (synopsis "Recursively list the contents of a directory")
1564 "Tree is a recursive directory listing command that produces a depth
1565 indented listing of files, which is colorized ala dircolors if the LS_COLORS
1566 environment variable is set and output is to tty.")
1567 (home-page "http://mama.indstate.edu/users/ice/tree/")
1568 (license license:gpl2+)))
1570 (define-public direvent
1576 (uri (string-append "mirror://gnu/direvent/direvent-"
1580 "1nwvjmx7kb14ni34c0b8x9a3791pc20gvhj7xaj66d8q4h6n0qf4"))
1581 (modules '((guix build utils)))
1583 (substitute* "tests/testsuite"
1584 (("#![[:blank:]]?/bin/sh")
1587 (build-system gnu-build-system)
1590 (modify-phases %standard-phases
1591 (add-before 'build 'patch-/bin/sh
1592 (lambda* (#:key inputs #:allow-other-keys)
1593 ;; Use the right shell when executing the watcher and
1594 ;; user-provided shell commands.
1595 (let ((bash (assoc-ref inputs "bash")))
1596 (substitute* '("src/direvent.c" "src/progman.c")
1598 (string-append "\"" bash "/bin/sh\"")))
1600 ;; Adjust the 'shell.at' test accordingly.
1601 (substitute* "tests/testsuite"
1603 (string-append "SHELL=" bash "/bin/sh")))
1606 (home-page "https://www.gnu.org/software/direvent/")
1607 (synopsis "Daemon to monitor directories for events such as file removal")
1609 "A daemon that monitors directories for events, such as creating,
1610 deleting or modifying files. It can monitor different sets of directories for
1611 different events. When an event is detected, direvent calls a specified
1612 external program with information about the event, such as the location
1613 within the file system where it occurred. Thus, \"direvent\" provides an
1614 easy way to react immediately if given files undergo changes, for example, to
1615 track changes in important system configuration files.")
1616 (license license:gpl3+)))
1618 (define-public libcap-ng
1625 "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1629 "0a0k484kwv0zilry2mbl9k56cnpdhsjxdxin17jas6kkyfy345aa"))))
1630 (build-system gnu-build-system)
1633 (list "--without-python")))
1634 (home-page "https://people.redhat.com/sgrubb/libcap-ng/")
1635 (synopsis "Library for more easily working with POSIX capabilities")
1637 "The libcap-ng library is intended to make programming with POSIX
1638 capabilities easier than the traditional libcap library. It includes
1639 utilities that can analyse all currently running applications and print out
1640 any capabilities and whether or not it has an open ended bounding set. The
1641 included utilities are designed to let admins and developers spot apps from
1642 various ways that may be running with too much privilege.")
1643 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1644 (license (list license:lgpl2.1+ license:gpl2+))))
1646 (define-public smartmontools
1648 (name "smartmontools")
1653 "mirror://sourceforge/smartmontools/smartmontools/"
1654 version "/smartmontools-" version ".tar.gz"))
1657 "077nx2rn9szrg6isdh0938zbp7vr3dsyxl4jdyyzv1xwhqksrqg5"))))
1658 (build-system gnu-build-system)
1659 (inputs `(("libcap-ng" ,libcap-ng)))
1660 (home-page "https://www.smartmontools.org/")
1661 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1663 "The smartmontools package contains utility programs to control and
1664 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1665 Technology System (@dfn{S.M.A.R.T.}) built into most modern ATA and SCSI hard
1666 disks. In many cases, these utilities will provide advanced warning of disk
1667 degradation and failure.")
1668 (license license:gpl2+)))
1670 (define-public fdupes
1678 (url "https://github.com/adrianlopezroche/fdupes.git")
1679 (commit (string-append "v" version))))
1680 (file-name (git-file-name name version))
1682 (base32 "19b6vqblddaw8ccw4sn0qsqzbswlhrz8ia6n4m3hymvcxn8skpz9"))))
1683 (build-system gnu-build-system)
1685 '(#:phases (modify-phases %standard-phases
1686 (delete 'configure))
1687 #:tests? #f ; no 'check' target
1688 #:make-flags (list "CC=gcc"
1689 (string-append "PREFIX="
1690 (assoc-ref %outputs "out")))))
1691 (home-page "https://github.com/adrianlopezroche/fdupes")
1692 (synopsis "Identify duplicate files")
1694 "fdupes is a program for identifying duplicate files residing within
1695 specified directories.")
1696 (license license:expat)))
1698 (define-public graphios
1705 (uri (pypi-uri "graphios" version))
1708 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1709 (build-system python-build-system)
1711 ;; Be warned: Building with Python 3 succeeds, but the build process
1712 ;; throws a syntax error that is ignored.
1713 `(#:python ,python-2
1715 (modify-phases %standard-phases
1716 (add-before 'build 'fix-setup.py
1717 (lambda* (#:key outputs #:allow-other-keys)
1718 ;; Fix hardcoded, unprefixed file names.
1719 (let ((out (assoc-ref outputs "out")))
1720 (substitute* '("setup.py")
1721 (("/etc") (string-append out "/etc"))
1723 (("distro_ver = .*") "distro_ver = ''"))
1725 (home-page "https://github.com/shawn-sterling/graphios")
1726 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1728 "Graphios is a script to emit nagios perfdata to various upstream metrics
1729 processing and time-series systems. It's currently compatible with Graphite,
1730 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1731 of supported upstream metrics systems simultaneously.")
1732 (license license:gpl2+)))
1734 (define-public ansible
1741 (uri (pypi-uri "ansible" version))
1743 (base32 "1bpk5r5x6vdgn839n74yv2chd2ja10yfrhav0fzwa38mi5yxsd3j"))))
1744 (build-system python-build-system)
1746 `(("python-bcrypt" ,python-bcrypt)
1747 ("python-pynacl" ,python-pynacl)
1748 ("python-httplib2" ,python-httplib2)
1749 ("python-passlib" ,python-passlib)
1750 ("python-nose" ,python-nose)
1751 ("python-mock" ,python-mock)
1752 ("python-jinja2" ,python-jinja2)
1753 ("python-pyyaml" ,python-pyyaml)
1754 ("python-paramiko" ,python-paramiko)))
1756 `(("python-cryptography" ,python-cryptography)
1757 ("python-jinja2" ,python-jinja2)
1758 ("python-pyyaml" ,python-pyyaml)
1759 ("python-paramiko" ,python-paramiko)))
1762 (modify-phases %standard-phases
1763 ;; Several ansible commands (ansible-config, ansible-console, etc.)
1764 ;; are just symlinks to a single ansible executable. The ansible
1765 ;; executable behaves differently based on the value of
1766 ;; sys.argv[0]. This does not work well with our wrap phase, and
1767 ;; therefore the following two phases are required as a workaround.
1768 (add-after 'unpack 'hide-wrapping
1770 ;; Overwrite sys.argv[0] to hide the wrapper script from it.
1771 (substitute* "bin/ansible"
1772 (("import traceback" all)
1773 (string-append all "
1775 sys.argv[0] = re.sub(r'\\.([^/]*)-real$', r'\\1', sys.argv[0])
1778 (add-after 'wrap 'fix-symlinks
1779 (lambda* (#:key outputs #:allow-other-keys)
1780 (let ((out (assoc-ref outputs "out")))
1782 (lambda (subprogram)
1783 ;; The symlinks point to the ansible wrapper script. Make
1784 ;; them point to the real executable (.ansible-real).
1785 (delete-file (string-append out "/bin/.ansible-" subprogram "-real"))
1786 (symlink (string-append out "/bin/.ansible-real")
1787 (string-append out "/bin/.ansible-" subprogram "-real"))
1788 ;; The wrapper scripts of the symlinks invoke the ansible
1789 ;; wrapper script. Fix them to invoke the correct executable.
1790 (substitute* (string-append out "/bin/ansible-" subprogram)
1792 (string-append "/bin/.ansible-" subprogram "-real"))))
1793 (list "config" "console" "doc" "galaxy"
1794 "inventory" "playbook" "pull" "vault")))
1796 (home-page "https://www.ansible.com/")
1797 (synopsis "Radically simple IT automation")
1798 (description "Ansible is a radically simple IT automation system. It
1799 handles configuration management, application deployment, cloud provisioning,
1800 ad hoc task execution, and multinode orchestration---including trivializing
1801 things like zero-downtime rolling updates with load balancers.")
1802 (license license:gpl3+)))
1804 (define-public emacs-ansible-doc
1805 (let ((commit "86083a7bb2ed0468ca64e52076b06441a2f8e9e0"))
1807 (name "emacs-ansible-doc")
1808 (version (git-version "0.4" "1" commit))
1813 (url "https://github.com/lunaryorn/ansible-doc.el")
1815 (file-name (git-file-name name version))
1818 "0lap404ch74w99n3xip176jr42b38xhyzkfnkyqg0g3wk2cd3aq8"))))
1819 (build-system emacs-build-system)
1820 ;; Unmaintained by upstream.
1821 (home-page "https://github.com/lunaryorn/ansible-doc.el")
1822 (synopsis "Ansible documentation for Emacs")
1824 "This package provides an Ansible documentation for GNU Emacs.
1826 @code{ansible-doc} allows you to view the documentation of an Ansible
1827 module and @code{ansible-doc-mode} minor mode adds documentation
1828 lookup to YAML Mode. You could enable the mode with @code{(add-hook
1829 'yaml-mode-hook #'ansible-doc-mode)}.")
1830 (license license:gpl3+))))
1832 (define-public cpulimit
1840 (url "https://github.com/opsengine/cpulimit.git")
1841 (commit (string-append "v" version))))
1842 (file-name (git-file-name name version))
1844 (base32 "1dz045yhcsw1rdamzpz4bk8mw888in7fyqk1q1b3m1yk4pd1ahkh"))))
1845 (build-system gnu-build-system)
1847 `(#:phases (modify-phases %standard-phases
1851 (invoke "make" "CC=gcc" "-Csrc")))
1854 (invoke "make" "CC=gcc" "-Ctests")))
1856 (lambda* (#:key outputs #:allow-other-keys)
1857 (let* ((out (assoc-ref outputs "out"))
1858 (bin (string-append out "/bin")))
1859 (install-file "src/cpulimit" bin))
1861 (home-page "https://github.com/opsengine/cpulimit")
1862 (synopsis "Limit CPU usage")
1864 "Cpulimit limits the CPU usage of a process. It does not change the nice
1865 value or other scheduling priority settings, but the real CPU usage, and is
1866 able to adapt itself dynamically to the overall system load. Children
1867 processes and threads of the specified process may optionally share the same
1869 (license license:gpl2+)))
1871 (define-public autojump
1879 (url "https://github.com/wting/autojump.git")
1880 (commit (string-append "release-v" version))))
1881 (file-name (git-file-name name version))
1883 (base32 "1rgpsh70manr2dydna9da4x7p8ahii7dgdgwir5fka340n1wrcws"))))
1884 (build-system gnu-build-system)
1885 (native-inputs ; for tests
1886 `(("python-mock" ,python-mock)
1887 ("python-pytest" ,python-pytest)))
1889 `(("python" ,python-wrapper)))
1892 (modify-phases %standard-phases
1893 (add-after 'unpack 'make-git-checkout-writable
1894 ;; ‘install.py’ modifies files before installing them.
1896 (for-each make-file-writable (find-files "."))
1902 (invoke "python" "tests/unit/autojump_utils_test.py")))
1904 (lambda* (#:key outputs #:allow-other-keys)
1905 (setenv "SHELL" (which "bash"))
1906 (invoke "python" "install.py"
1907 (string-append "--destdir="
1908 (assoc-ref outputs "out"))))))))
1909 (home-page "https://github.com/wting/autojump")
1910 (synopsis "Shell extension for file system navigation")
1912 "Autojump provides a faster way to navigate your file system, with a \"cd
1913 command that learns\". It works by maintaining a database of the directories
1914 you use the most from the command line and allows you to \"jump\" to
1915 frequently used directories by typing only a small pattern.")
1916 (license license:gpl3+)))
1925 (url "https://github.com/clvv/fasd.git")
1927 (file-name (git-file-name name version))
1930 "1awi71jdv3mhjrmar2d4z1i90kn7apd7aq1w31sh6w4yibz9kiyj"))))
1931 (build-system gnu-build-system)
1933 `(#:phases (modify-phases %standard-phases
1934 (delete 'configure)) ;no configuration
1935 #:tests? #f ;no tests
1936 #:make-flags (list (string-append "PREFIX=" %output))))
1937 (home-page "https://github.com/clvv/fasd")
1938 (synopsis "Quick access to files and directories for shells")
1940 "Fasd (pronounced similar to \"fast\") is a command-line productivity
1941 booster. Fasd offers quick access to files and directories for POSIX shells.
1942 It is inspired by tools like autojump, z, and v. Fasd keeps track of files
1943 and directories you have accessed so that you can quickly reference them in
1945 (license license:x11)))
1947 (define-public iftop
1953 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
1954 "/iftop-" version ".tar.gz"))
1957 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
1958 (build-system gnu-build-system)
1960 `(("libpcap" ,libpcap)
1961 ("ncurses" ,ncurses)))
1962 (synopsis "Monitor network usage")
1963 (description "Iftop does for network usage what @command{top} does
1964 for CPU usage. It listens to network traffic on a named interface and
1965 displays a table of current bandwidth usage by pairs of hosts.")
1966 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
1967 (license license:gpl2+)))
1969 (define-public munge
1975 (uri (string-append "https://github.com/dun/munge/releases/"
1976 "download/munge-" version "/munge-"
1980 "1nj486bbg1adfg298zck96vgx57kchcypc1zdz1n7w540vyksxcr"))
1981 (modules '((guix build utils)))
1984 ;; Don't insist on write access to /var.
1985 (substitute* "src/etc/Makefile.in"
1986 (("\\$\\(INSTALL\\)(.*)localstatedir" _ middle)
1987 (string-append "-$(INSTALL)" middle "localstatedir")))
1990 `(("openssl" ,openssl)
1991 ("libgcrypt" ,libgcrypt)))
1992 (build-system gnu-build-system)
1993 (arguments '(#:configure-flags '("--localstatedir=/var")))
1994 (home-page "https://dun.github.io/munge/")
1995 (synopsis "Cluster computing authentication service")
1997 "Munge is an authentication service for creating and validating
1998 credentials. It allows a process to authenticate the UID and GID of another
1999 local or remote process within a group of hosts having common users and
2000 groups. These hosts form a security realm that is defined by a shared
2001 cryptographic key. Clients within this security realm can create and validate
2002 credentials without the use of root privileges, reserved ports, or
2003 platform-specific methods.")
2004 (license license:gpl3+)))
2006 (define-public audit
2009 (home-page "https://people.redhat.com/sgrubb/audit/")
2013 (uri (string-append home-page "audit-" version ".tar.gz"))
2016 "1dzcwb2q78q7x41shcachn7f4aksxbxd470yk38zh03fch1l2p8f"))))
2017 (build-system gnu-build-system)
2019 `(#:configure-flags (list "--with-python=no"
2020 "--disable-static")))
2022 `(("openldap" ,openldap)
2024 ("sasl" ,cyrus-sasl)))
2025 (synopsis "User-space component to the Linux auditing system")
2027 "auditd is the user-space component to the Linux auditing system, which
2028 allows logging of system calls made by user-land processes. It's responsible
2029 for writing audit records to the disk. Viewing the logs is done with the
2030 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
2031 done with the @code{auditctl} utility.")
2032 (license license:gpl2+)))
2040 (uri (string-append "https://nmap.org/dist/nmap-" version
2044 "063fg8adx23l4irrh5kn57hsmi1xvjkar4vm4k6g94ppan4hcyw4"))
2045 (modules '((guix build utils)))
2048 (for-each delete-file-recursively
2049 ;; Remove bundled lua, pcap, and pcre libraries.
2050 ;; FIXME: Remove bundled liblinear once packaged.
2054 ;; Remove pre-compiled binares.
2057 (build-system gnu-build-system)
2059 `(("openssl" ,openssl)
2060 ("libpcap" ,libpcap)
2063 ("zlib" ,zlib) ;for NSE compression support
2066 ("python" ,python-2)))
2068 ;; TODO Add zenmap output.
2069 (outputs '("out" "ndiff"))
2071 `(#:configure-flags '("--without-zenmap")
2073 (modify-phases %standard-phases
2074 (add-after 'configure 'patch-Makefile
2076 (substitute* "Makefile"
2077 ;; Do not attempt to build lua.
2078 (("build-dnet build-lua") "build-dnet"))
2081 (lambda* (#:key outputs #:allow-other-keys)
2082 (define (make out . args)
2083 (apply invoke "make"
2084 (string-append "prefix=" out)
2086 (define (python-path dir)
2087 (string-append dir "/lib/python"
2088 ,(version-major+minor
2089 (package-version python))
2091 (let ((out (assoc-ref outputs "out"))
2092 (ndiff (assoc-ref outputs "ndiff")))
2093 (for-each mkdir-p (list out ndiff))
2099 (make ndiff "install-ndiff")
2100 (wrap-program (string-append ndiff "/bin/ndiff")
2101 `("PYTHONPATH" prefix
2102 (,(python-path ndiff)))))
2104 ;; These are the tests that do not require network access.
2106 (lambda _ (invoke "make"
2110 ;; Nmap can't cope with out-of-source building.
2111 #:out-of-source? #f))
2112 (home-page "https://nmap.org/")
2113 (synopsis "Network discovery and security auditing tool")
2115 "Nmap (\"Network Mapper\") is a network discovery and security auditing
2116 tool. It is also useful for tasks such as network inventory, managing service
2117 upgrade schedules, and monitoring host or service uptime. It also provides an
2118 advanced netcat implementation (ncat), a utility for comparing scan
2119 results (ndiff), and a packet generation and response analysis tool (nping).")
2120 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
2121 ;; both use a 3-clause BSD license.
2122 (license (list license:nmap license:bsd-3))))
2124 (define-public dstat
2132 (url "https://github.com/dagwieers/dstat.git")
2133 (commit (string-append "v" version))))
2134 (file-name (git-file-name "dstat" version))
2136 (base32 "1qnmkhqmjd1m3if05jj29dvr5hn6kayq9bkkkh881w472c0zhp8v"))))
2137 (build-system gnu-build-system)
2139 `(#:tests? #f ; no make check
2140 #:make-flags (let ((out (assoc-ref %outputs "out")))
2141 (list (string-append "DESTDIR=" out)
2143 ;; No configure script.
2144 #:phases (modify-phases %standard-phases (delete 'configure))))
2145 (inputs `(("python-2" ,python-2)))
2146 (synopsis "Versatile resource statistics tool")
2147 (description "Dstat is a versatile replacement for @command{vmstat},
2148 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
2149 some of their limitations and adds some extra features, more counters and
2150 flexibility. Dstat is handy for monitoring systems during performance tuning
2151 tests, benchmarks or troubleshooting.
2153 Dstat allows you to view all of your system resources in real-time, you can,
2154 e.g., compare disk utilization in combination with interrupts from your IDE
2155 controller, or compare the network bandwidth numbers directly with the disk
2156 throughput (in the same interval).")
2157 (home-page "http://dag.wiee.rs/home-made/dstat/")
2158 (license license:gpl2+)))
2160 (define-public thefuck
2168 (url "https://github.com/nvbn/thefuck.git")
2170 (file-name (git-file-name name version))
2172 (base32 "1qhxwjjgrzpqrqjv7l2847ywpln76lyd6j8bl9gz2r6kl0fx2fqs"))
2173 (patches (search-patches "thefuck-test-environ.patch"))))
2174 (build-system python-build-system)
2177 (modify-phases %standard-phases
2179 (add-after 'install 'check
2180 (lambda* (#:key inputs outputs #:allow-other-keys)
2181 ;; Tests look for installed package
2182 (add-installed-pythonpath inputs outputs)
2183 ;; Some tests need write access to $HOME.
2184 (setenv "HOME" "/tmp")
2185 (invoke "py.test" "-v")
2188 `(("python-colorama" ,python-colorama)
2189 ("python-decorator" ,python-decorator)
2190 ("python-psutil" ,python-psutil)
2191 ("python-pyte" ,python-pyte)
2192 ("python-six" ,python-six)))
2194 `(("python-mock" ,python-mock)
2195 ("python-pytest" ,python-pytest)
2196 ("python-pytest-mock" ,python-pytest-mock)))
2197 (home-page "https://github.com/nvbn/thefuck")
2198 (synopsis "Correct mistyped console command")
2200 "The Fuck tries to match a rule for a previous, mistyped command, creates
2201 a new command using the matched rule, and runs it.")
2202 (license license:x11)))
2211 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
2213 (base32 "0zlapxlzjizwzwa8xwrwibhcbkh0wx7n74gvjpp6wlwq7cgiq0xm"))))
2214 (build-system gnu-build-system)
2216 `(#:tests? #f ; obscure test failures.
2218 (modify-phases %standard-phases
2220 (add-before 'build 'setup-environment
2221 (lambda* (#:key outputs #:allow-other-keys)
2223 (setenv "prefix" (assoc-ref outputs "out"))
2225 #:make-flags (list "--environment-overrides")))
2226 (home-page "https://www.gentoo.com/di/")
2227 (synopsis "Advanced df like disk information utility")
2229 "@code{di} is a disk information utility, displaying everything that your
2230 @code{df} command does and more. It features the ability to display your disk
2231 usage in whatever format you prefer. It is designed to be highly portable and
2232 produce uniform output across heterogeneous networks.")
2233 (license license:zlib)))
2235 (define-public cbatticon
2243 (url "https://github.com/valr/cbatticon.git")
2246 (base32 "16g26vin1693dbdr9qsnw36fdchx394lp79gvp7gcbw0w1ny9av6"))
2247 (file-name (git-file-name name version))))
2248 (build-system gnu-build-system)
2250 `(#:tests? #f ; no tests
2252 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2255 (modify-phases %standard-phases
2256 (delete 'configure)))) ; no configure script
2259 ("gettext" ,gettext-minimal)
2260 ("libnotify" ,libnotify)))
2262 `(("pkg-config" ,pkg-config)))
2263 (synopsis "Lightweight battery icon for the system tray")
2264 (description "cbatticon is a lightweight battery icon that displays
2265 the status of your battery in the system tray.")
2266 (home-page "https://github.com/valr/cbatticon")
2267 (license license:gpl2+)))
2269 (define-public interrobang
2270 (let ((revision "1")
2271 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
2273 (name "interrobang")
2274 (version (git-version "0.0.0" revision commit))
2279 (url "https://github.com/TrilbyWhite/interrobang.git")
2281 (file-name (git-file-name name version))
2283 (base32 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
2284 (build-system gnu-build-system)
2286 `(#:tests? #f ; no tests
2288 (modify-phases %standard-phases
2289 (delete 'configure)) ; no configure script
2290 #:make-flags (list (string-append "PREFIX="
2291 (assoc-ref %outputs "out")))))
2293 `(("libx11" ,libx11)))
2295 `(("pkg-config" ,pkg-config)))
2296 (synopsis "Scriptable launcher menu")
2297 (description "Interrobang is a scriptable launcher menu with a customizable
2298 shortcut syntax and completion options.")
2299 (home-page "https://github.com/TrilbyWhite/interrobang")
2300 (license license:gpl3+))))
2302 (define-public pam-krb5
2309 "https://archives.eyrie.org/software/kerberos/"
2310 "pam-krb5-" version ".tar.xz"))
2313 "1qjp8i1s9bz7g6kiqrkzzkxn5pfspa4sy53b6z40fqmdf9przdfb"))))
2314 (build-system gnu-build-system)
2317 (modify-phases %standard-phases
2318 (add-before 'configure 'disable-tests
2320 ;; The build container seems to interfere with some tests.
2321 (substitute* "tests/TESTS"
2322 (("module/basic\n") ""))
2323 (substitute* "tests/TESTS"
2324 (("pam-util/vector\n") ""))
2327 `(("linux-pam" ,linux-pam)
2328 ("mit-krb5" ,mit-krb5)))
2331 ("perl-test-pod" ,perl-test-pod))) ; required for tests
2332 (synopsis "Kerberos PAM module")
2334 "Pam-krb5 is a Kerberos PAM module for either MIT Kerberos or Heimdal.
2335 It supports ticket refreshing by screen savers, configurable
2336 authorization handling, authentication of non-local accounts for network
2337 services, password changing, and password expiration, as well as all the
2338 standard expected PAM features. It works correctly with OpenSSH, even
2339 with @code{ChallengeResponseAuthentication} and @code{PrivilegeSeparation}
2340 enabled, and supports extensive configuration either by PAM options or in
2341 krb5.conf or both. PKINIT is supported with recent versions of both MIT
2342 Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
2343 (home-page "https://www.eyrie.org/~eagle/software/pam-krb5")
2344 ;; Dual licenced under a homebrew non-copyleft OR GPL (any version)
2345 ;; However, the tarball does not contain a copy of the GPL, so unless
2346 ;; we put one in, we cannot distribute it under GPL without violating
2347 ;; clause requiring us to give all recipients a copy.
2348 (license license:gpl1+)))
2350 (define-public sunxi-tools
2352 (name "sunxi-tools")
2358 (url "https://github.com/linux-sunxi/sunxi-tools.git")
2359 (commit (string-append "v" version))))
2361 (base32 "04f3jqg8ww4jxsf9c6ddcdgy2xbhkyp0b3l5f1hvvbv94p81rjxd"))
2362 (modules '((guix build utils)))
2364 ;; Remove binaries contained in the tarball which are only for the
2365 ;; target and can be regenerated anyway.
2367 (delete-file-recursively "bin")
2369 (file-name (git-file-name name version))))
2371 `(("pkg-config" ,pkg-config)
2372 ("cross-gcc" ,(cross-gcc "arm-linux-gnueabihf"
2373 #:xbinutils (cross-binutils "arm-linux-gnueabihf")
2374 #:libc (cross-libc "arm-linux-gnueabihf")))
2375 ("cross-libc" ,(cross-libc "arm-linux-gnueabihf")) ; header files
2376 ("cross-libc-static" ,(cross-libc "arm-linux-gnueabihf") "static")))
2378 `(("libusb" ,libusb)))
2379 (build-system gnu-build-system)
2381 `(#:tests? #f ; no tests exist
2382 #:make-flags (list (string-append "PREFIX="
2383 (assoc-ref %outputs "out"))
2384 (string-append "CROSS_COMPILE="
2385 "arm-linux-gnueabihf-")
2388 (modify-phases %standard-phases
2390 (add-before 'build 'set-environment-up
2391 (lambda* (#:key make-flags #:allow-other-keys)
2393 (string-contains x "cross-arm-linux"))
2394 (define (filter-environment! filter-predicate
2395 environment-variable-names)
2398 (let* ((env-value (getenv env-name))
2399 (search-path (search-path-as-string->list env-value))
2400 (new-search-path (filter filter-predicate
2402 (new-env-value (list->search-path-as-string
2403 new-search-path ":")))
2404 (setenv env-name new-env-value)))
2405 environment-variable-names))
2406 (setenv "CROSS_C_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))
2407 (setenv "CROSS_CPLUS_INCLUDE_PATH" (getenv "CPLUS_INCLUDE_PATH"))
2408 (setenv "CROSS_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
2409 (filter-environment! cross?
2410 '("CROSS_C_INCLUDE_PATH" "CROSS_CPLUS_INCLUDE_PATH"
2411 "CROSS_LIBRARY_PATH"))
2412 (filter-environment! (lambda (e) (not (cross? e)))
2413 '("C_INCLUDE_PATH" "CPLUS_INCLUDE_PATH"
2417 (lambda* (#:key make-flags #:allow-other-keys)
2418 (apply invoke "make" "tools" "misc" make-flags)))
2419 (add-after 'build 'build-armhf
2420 (lambda* (#:key make-flags #:allow-other-keys)
2421 (setenv "LIBRARY_PATH" #f)
2422 (apply invoke "make" "target-tools" make-flags)))
2424 (lambda* (#:key make-flags #:allow-other-keys)
2425 (apply invoke "make" "install-all" "install-misc"
2427 (home-page "https://github.com/linux-sunxi/sunxi-tools")
2428 (synopsis "Hardware management tools for Allwinner computers")
2429 (description "This package contains tools for Allwinner devices:
2431 @item @command{sunxi-fexc}, @command{bin2fex}, @command{fex2bin}: Compile
2432 a textual description of a board (.fex) to a binary representation (.bin).
2433 @item @command{sunxi-fel}: Puts an Allwinner device into FEL mode which
2434 makes it register as a special USB device (rather than USB host).
2435 You can then connect it to another computer and flash it from there.
2436 @item @command{sunxi-nand-part}: Partitions NAND flash.
2437 @item @command{sunxi-bootinfo}: Reads out boot0 and boot1 (Allwinner
2438 bootloader) parameters.
2439 @item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
2440 in order to be able to find it.
2441 @item @command{sunxi-meminfo}: Prints memory bus settings.
2442 @item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
2444 (license license:gpl2+)))
2446 (define-public sedsed
2454 (url "https://github.com/aureliojargas/sedsed.git")
2455 (commit (string-append "v" version))))
2456 (file-name (git-file-name name version))
2458 (base32 "0009lsjsxhqmgaklpwq15hhd94hpiy7r4va69yy0ig3mxi6zbg2z"))))
2459 (build-system python-build-system)
2461 `(#:tests? #f ; no tests
2464 (modify-phases %standard-phases
2465 (add-after 'unpack 'patch-sed-in
2467 (substitute* "sedsed.py"
2469 (string-append "sedbin = '" (which "sed") "'")))
2473 (lambda* (#:key outputs #:allow-other-keys)
2474 (let* ((out (assoc-ref outputs "out"))
2475 (bin (string-append out "/bin")))
2476 ;; Just one file to copy around
2477 (install-file "sedsed.py" bin)
2479 (add-after 'install 'symlink
2480 ;; Create 'sedsed' symlink to "sedsed.py".
2481 (lambda* (#:key outputs #:allow-other-keys)
2482 (let* ((out (assoc-ref outputs "out"))
2483 (bin (string-append out "/bin"))
2484 (sed (string-append bin "/sedsed"))
2485 (sedpy (string-append bin "/sedsed.py")))
2488 (home-page "http://aurelio.net/projects/sedsed")
2489 (synopsis "Sed sed scripts")
2491 "@code{sedsed} can debug, indent, tokenize and HTMLize your sed(1) script.
2493 In debug mode it reads your script and add extra commands to it. When
2494 executed you can see the data flow between the commands, revealing all the
2495 magic sed does on its internal buffers.
2497 In indent mode your script is reformatted with standard spacing.
2499 In tokenize mode you can see the elements of every command you use.
2501 In HTMLize mode your script is converted to a beautiful colored HTML file,
2502 with all the commands and parameters identified for your viewing pleasure.
2504 With sedsed you can master any sed script. No more secrets, no more hidden
2506 (license license:expat)))
2508 (define-public igt-gpu-tools
2510 (name "igt-gpu-tools")
2514 (uri (string-append "https://cgit.freedesktop.org/xorg/app/"
2515 "intel-gpu-tools/snapshot/"
2516 "igt-gpu-tools-" version ".tar.gz"))
2519 "0vzv2i4jfv2pkbqby5k3ap9pzidkmajwqmg3s7wnv8i1h33775iq"))))
2520 (build-system gnu-build-system)
2522 `(#:tests? #f ; many of the tests try to load kernel modules
2524 (modify-phases %standard-phases
2525 (add-after 'unpack 'autogen
2527 ;; Don't run configure in this phase.
2528 (setenv "NOCONFIGURE" "1")
2529 (invoke "sh" "autogen.sh"))))))
2536 ("libpciaccess" ,libpciaccess)
2537 ("libunwind" ,libunwind)
2538 ("libxrandr" ,libxrandr)
2539 ("openssl" ,openssl)
2541 ("util-macros" ,util-macros)))
2543 `(("autoconf" ,autoconf)
2544 ("automake" ,automake)
2545 ("libtool" ,libtool)
2546 ("pkg-config" ,pkg-config)))
2547 (home-page "https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/")
2548 (synopsis "Tools for development and testing of the Intel DRM driver")
2549 (description "IGT GPU Tools is a collection of tools for development and
2550 testing of the Intel DRM driver. There are many macro-level test suites that
2551 get used against the driver, including xtest, rendercheck, piglit, and
2552 oglconform, but failures from those can be difficult to track down to kernel
2553 changes, and many require complicated build procedures or specific testing
2554 environments to get useful results. Therefore, IGT GPU Tools includes
2555 low-level tools and tests specifically for development and testing of the
2557 (supported-systems '("i686-linux" "x86_64-linux"))
2558 (license license:expat)))
2560 (define-public intel-gpu-tools
2561 (deprecated-package "intel-gpu-tools" igt-gpu-tools))
2563 (define-public fabric
2570 (uri (pypi-uri "Fabric" version))
2573 "13r0b0hllgf8j9rh6x1knmbgvingbdmx046aazv6vck2ll120mw1"))))
2574 (build-system python-build-system)
2576 `(#:python ,python-2 ; Python 2 only
2578 (modify-phases %standard-phases
2582 "nosetests" "-v" "tests/"
2583 ;; This test hangs indefinitely when run on a single core VM
2584 ;; (see GNU bug #26647 and Debian bug #850230).
2585 "--exclude=test_nested_execution_with_explicit_ports"
2586 ;; This test randomly fails in certain environments causing too
2587 ;; much noise to be useful (see Debian bug #854686).
2588 "--exclude=test_should_use_sentinel_for_tasks_that_errored"))))))
2590 `(("python2-fudge" ,python2-fudge) ; Requires < 1.0
2591 ("python2-jinja2" ,python2-jinja2) ; Requires < 3.0
2592 ("python2-nose" ,python2-nose) ; Requires < 2.0
2593 ("python2-pynacl" ,python2-pynacl)
2594 ("python2-bcrypt" ,python2-bcrypt)))
2596 `(("python2-paramiko" ,python2-paramiko)))
2597 (home-page "http://fabfile.org")
2598 (synopsis "Simple Pythonic remote execution and deployment tool")
2600 "Fabric is designed to upload files and run shell commands on a number of
2601 servers in parallel or serially. These commands are grouped in tasks (which
2602 are regular Python functions) and specified in a @dfn{fabfile}.
2604 It is similar to Capistrano, except it's implemented in Python and doesn't
2605 expect you to be deploying Rails applications. Fabric is a simple, Pythonic
2606 tool for remote execution and deployment.")
2607 (license license:bsd-2)))
2609 (define-public neofetch
2616 (url "https://github.com/dylanaraps/neofetch")
2620 "0j0r40llyry1sgc6p9wd7jrpydps2lnj4rwajjp37697g2bik89i"))))
2621 (build-system gnu-build-system)
2623 `(#:tests? #f ; there are no tests
2625 (list (string-append "PREFIX=" %output))
2627 (modify-phases %standard-phases
2628 (delete 'configure)))) ; no configure script
2629 (home-page "https://github.com/dylanaraps/neofetch")
2630 (synopsis "System information script")
2631 (description "Neofetch is a command-line system information tool written in
2632 Bash. Neofetch displays information about your system next to an image, your OS
2633 logo, or any ASCII file of your choice. The main purpose of Neofetch is to be
2634 used in screenshots to show other users what operating system or distribution
2635 you are running, what theme or icon set you are using, etc.")
2636 (license license:expat)))
2645 (uri (string-append "https://github.com/jarun/nnn/releases/download/v"
2646 version "/nnn-v" version ".tar.gz"))
2648 (base32 "1d6z12y4rlg4dzhpm30irpq2ak8hjh5zykkp2n7vxnz5m4ki89zp"))))
2649 (build-system gnu-build-system)
2651 `(("ncurses" ,ncurses)
2652 ("readline" ,readline)))
2654 `(("pkg-config" ,pkg-config)))
2656 '(#:tests? #f ; no tests
2658 (modify-phases %standard-phases
2659 (delete 'configure)) ; no configure script
2662 (string-append "PREFIX="
2663 (assoc-ref %outputs "out"))
2665 (home-page "https://github.com/jarun/nnn")
2666 (synopsis "Terminal file browser")
2667 (description "@command{nnn} is a fork of @command{noice}, a blazing-fast
2668 lightweight terminal file browser with easy keyboard shortcuts for
2669 navigation, opening files and running tasks. There is no config file and
2670 mime associations are hard-coded. The incredible user-friendliness and speed
2671 make it a perfect utility on modern distros.")
2672 (license license:bsd-2)))
2674 (define-public thermald
2682 (url "https://github.com/01org/thermal_daemon")
2683 (commit (string-append "v" version))))
2684 (file-name (git-file-name name version))
2686 (base32 "1g1l7k8yxj8bl1ysdx8v6anv1s7xk9j072y44gwki70dy48n7j92"))
2688 (search-patches "thermald-make-int-max32-visible.patch"))))
2689 (build-system gnu-build-system)
2692 (let ((out (assoc-ref %outputs "out")))
2693 (list (string-append "--sysconfdir="
2695 (string-append "--with-dbus-sys-dir="
2696 out "/etc/dbus-1/system.d")
2697 "--localstatedir=/var"))))
2699 `(("autoconf" ,autoconf)
2700 ("automake" ,automake)
2701 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
2702 ("pkg-config" ,pkg-config)))
2704 `(("dbus-glib" ,dbus-glib)
2705 ("libxml2" ,libxml2)))
2706 (home-page "https://01.org/linux-thermal-daemon/")
2707 (synopsis "CPU scaling for thermal management")
2708 (description "The Linux Thermal Daemon helps monitor and control temperature
2709 on systems running the Linux kernel.")
2710 ;; arm and aarch64 don't have cpuid.h.
2711 (supported-systems '("i686-linux" "x86_64-linux"))
2712 (license license:gpl2+)))
2714 (define-public masscan
2722 (url "https://github.com/robertdavidgraham/masscan.git")
2724 (file-name (git-file-name name version))
2726 (base32 "0q0c7bsf0pbl8napry1qyg0gl4pd8wn872h4mz9b56dx4rx90vqg"))))
2727 (build-system gnu-build-system)
2729 `(("libpcap" ,libpcap)))
2731 '(#:test-target "regress"
2734 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2736 (modify-phases %standard-phases
2737 (delete 'configure) ; no ./configure script
2738 (add-after 'unpack 'patch-path
2739 (lambda* (#:key outputs inputs #:allow-other-keys)
2740 (let* ((out (assoc-ref outputs "out"))
2741 (pcap (assoc-ref inputs "libpcap")))
2742 (substitute* "src/rawsock-pcap.c"
2743 (("libpcap.so") (string-append pcap "/lib/libpcap.so")))
2745 (synopsis "TCP port scanner")
2746 (description "MASSCAN is an asynchronous TCP port scanner. It can detect
2747 open ports, and also complete the TCP connection and interact with the remote
2748 application, collecting the information received.")
2749 (home-page "https://github.com/robertdavidgraham/masscan")
2750 ;; 'src/siphash24.c' is the SipHash reference implementation, which
2751 ;; bears a CC0 Public Domain Dedication.
2752 (license license:agpl3+)))
2754 (define-public hungrycat
2760 (uri (string-append "https://github.com/jwilk/hungrycat/"
2761 "releases/download/" version "/"
2762 "hungrycat-" version ".tar.gz"))
2765 "03fc1zsrf99lvxa7b4ps6pbi43304wbxh1f6ci4q0vkal370yfwh"))))
2766 (build-system gnu-build-system)
2769 `(("python" ,python-wrapper)
2770 ("python-nose" ,python-nose)))
2772 `(#:test-target "test"))
2773 (synopsis "A single tool that combines @command{cat} & @command{rm}")
2775 "hungrycat prints the contents of a file to standard output, while
2776 simultaneously freeing the disk space it occupied. It is useful if you need
2777 to process a large file, don't have enough space to store both the input and
2778 output files, and don't need the input file afterwards.
2779 While similar in principle to running @command{cat} immediately followed by
2780 @command{rm}, @command{hungrycat} actually frees blocks as soon as they are
2781 printed instead of after the entire file has been read, which is often too
2783 (home-page "https://jwilk.net/software/hungrycat")
2784 (license license:expat)))
2786 (define-public launchmon
2793 "https://github.com/LLNL/LaunchMON/releases/download/v"
2794 version "/launchmon-v" version ".tar.gz"))
2797 "0fm3nd9mydm9v2bf7bh01dbgrfnpwkapxa3dsvy3x1z0rz61qc0x"))))
2798 (build-system gnu-build-system)
2804 ("libgcrypt" ,libgcrypt)
2805 ("libgpg-error" ,libgpg-error)))
2806 (synopsis "Infrastructue for large scale tool daemon launching")
2808 "LaunchMON is a software infrastructure that enables HPC run-time
2809 tools to co-locate tool daemons with a parallel job. Its API allows a
2810 tool to identify all the remote processes of a job and to scalably
2811 launch daemons into the relevant nodes.")
2812 (home-page "https://github.com/LLNL/LaunchMON")
2813 (supported-systems '("i686-linux" "x86_64-linux"))
2814 (license license:lgpl2.1)))
2816 (define-public spindle
2821 ;; We use git checkout to avoid github auto-generated tarballs
2824 (url "https://github.com/hpc/Spindle.git")
2825 (commit (string-append "v" version))))
2826 (file-name (git-file-name name version))
2829 "15n3ay0qq81r5v7fif61q1vdjcq44pp2nynkh3fvbzc9fj3c39wd"))))
2830 (build-system gnu-build-system)
2831 (arguments '(#:configure-flags '("--enable-sec-launchmon"
2832 "--enable-sec-munge"
2833 "--enable-sec-none")))
2837 ("launchmon" ,launchmon)
2838 ("libgcrypt" ,libgcrypt)))
2839 (synopsis "Scalable library loading in HPC environments")
2841 "Spindle is a tool for improving the performance of dynamic library and
2842 Python loading in HPC environments.")
2843 (home-page "https://github.com/hpc/Spindle")
2844 ;; This package supports x86_64 and PowerPC64
2845 (supported-systems '("x86_64-linux"))
2846 (license license:lgpl2.1)))
2848 (define-public inxi-minimal
2849 (let ((real-name "inxi"))
2851 (name "inxi-minimal")
2852 (version "3.0.34-1")
2857 (url "https://github.com/smxi/inxi")
2859 (file-name (git-file-name real-name version))
2861 (base32 "0x2s40lwsan2pk292nspjgyw00f9f5fdfmwfvl50924pxhyxn2fh"))))
2862 (build-system trivial-build-system)
2864 `(("bash" ,bash-minimal)
2866 ("procps" ,procps)))
2876 (use-modules (guix build utils)
2879 (setenv "PATH" (string-append
2880 (assoc-ref %build-inputs "bash") "/bin" ":"
2881 (assoc-ref %build-inputs "gzip") "/bin" ":"
2882 (assoc-ref %build-inputs "perl") "/bin" ":"))
2883 (copy-recursively (assoc-ref %build-inputs "source")
2884 ,(string-append real-name "-" version))
2885 (with-directory-excursion ,(string-append real-name "-" version)
2886 (with-fluids ((%default-port-encoding #f))
2887 (substitute* "inxi" (("/usr/bin/env perl") (which "perl"))))
2888 (let ((bin (string-append %output "/bin")))
2889 (install-file "inxi" bin)
2890 (wrap-program (string-append bin "/inxi")
2893 ,@(map (lambda (input)
2897 (cut string-append store <>)))
2899 ((member name '("util-linux"))
2900 (string-append (store-append "/bin") ":"
2901 (store-append "/sbin")))
2902 ((member name '("dmidecode" "iproute2"))
2903 (store-append "/sbin"))
2904 (else (store-append "/bin")))))))
2910 (((? (cut string-prefix? "perl-" <>) name) . dir)
2911 (string-append dir "/lib/perl5/site_perl"))
2914 (invoke "gzip" "inxi.1")
2915 (install-file "inxi.1.gz"
2916 (string-append %output "/share/man/man1")))
2918 (home-page "https://smxi.org/docs/inxi.htm")
2919 (synopsis "Full-featured system information script")
2920 (description "Inxi is a system information script that can display
2921 various things about your hardware and software to users in an IRC chatroom or
2922 support forum. It runs with the @code{/exec} command in most IRC clients.")
2923 (license license:gpl3+))))
2927 (inherit inxi-minimal)
2930 `(("dmidecode" ,dmidecode)
2932 ("bind:utils" ,isc-bind "utils") ; dig
2934 ("iproute2" ,iproute) ; ip
2935 ("kmod" ,kmod) ; modinfo
2936 ("lm-sensors" ,lm-sensors)
2937 ("mesa-utils" ,mesa-utils)
2938 ("pciutils" ,pciutils)
2941 ("util-linux" ,util-linux) ; lsblk
2942 ("usbutils" ,usbutils) ; lsusb
2944 ("xdpyinfo" ,xdpyinfo)
2947 ("coreutils" ,coreutils) ; uptime
2948 ("inetutils" ,inetutils) ; ifconfig
2949 ("perl-cpanel-json-xs" ,perl-cpanel-json-xs)
2950 ("perl-http-tiny" ,perl-http-tiny)
2951 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
2952 ("perl-json-xs" ,perl-json-xs)
2953 ("perl-time-hires" ,perl-time-hires)
2954 ;; TODO: Add more inputs:
2959 ,@(package-inputs inxi-minimal)))))
2961 (define-public pscircle
2969 (url "https://gitlab.com/mildlyparallel/pscircle.git")
2970 (commit (string-append "v" version))))
2971 (file-name (git-file-name name version))
2974 "0qsif00dkqa8ky3vl2ycx5anx2yk62nrv47f5lrlqzclz91f00fx"))))
2975 (build-system meson-build-system)
2977 `(("pkg-config" ,pkg-config)))
2981 ("libx11" ,libx11)))
2982 (home-page "https://gitlab.com/mildlyparallel/pscircle")
2983 (synopsis "Visualize Linux processes in a form of radial tree")
2985 "@code{pscircle} visualizes Linux processes in the form of a radial tree.")
2986 (license license:gpl2+)))
2988 (define-public python-pyudev
2990 (name "python-pyudev")
2995 (uri (pypi-uri "pyudev" version))
2998 "0arz0dqp75sszsmgm6vhg92n1lsx91ihddx3m944f4ah0487ljq9"))))
2999 (build-system python-build-system)
3001 `(#:tests? #f ; Tests require /sys
3003 (modify-phases %standard-phases
3004 (add-after 'unpack 'patch-ctypes-udev
3005 (lambda* (#:key inputs outputs #:allow-other-keys)
3006 (let ((eudev (assoc-ref inputs "eudev")))
3007 (substitute* "src/pyudev/core.py"
3009 (string-append "'" eudev "/lib/libudev.so'")))
3010 (substitute* "src/pyudev/_ctypeslib/utils.py"
3011 ;; Use absolute paths instead of keys.
3012 (("= find_library") "= "))
3015 `(("eudev" ,eudev)))
3017 `(("python-six" ,python-six)))
3019 `(("python-docutils" ,python-docutils)
3020 ("python-hypothesis" ,python-hypothesis)
3021 ("python-mock" ,python-mock)
3022 ("python-pytest" ,python-pytest)
3023 ("python-sphinx" ,python-sphinx)))
3024 (home-page "http://pyudev.readthedocs.org/")
3025 (synopsis "Python udev binding")
3026 (description "This package provides @code{udev} bindings for Python.")
3027 (license license:lgpl2.1)))
3029 (define-public solaar
3036 (url "https://github.com/pwr/Solaar.git")
3038 (file-name (git-file-name name version))
3041 "085mfa13dap3wqik1dqlad0d7kff4rv7j4ljh99c7l8nhczkqgwm"))))
3042 (build-system python-build-system)
3045 (modify-phases %standard-phases
3046 (add-after 'unpack 'fix-prefix-detection
3048 (substitute* "setup.py"
3049 (("'--prefix' in sys\\.argv")
3050 "len([x.startswith('--prefix=') for x in sys.argv]) > 0"))
3054 (invoke "python" "setup.py" "build")))
3055 (add-before 'check 'setenv-PATH
3057 (setenv "PYTHONPATH" (string-append "lib:" (getenv "PYTHONPATH")))
3060 `(("python-pygobject" ,python-pygobject)
3061 ("python-pyudev" ,python-pyudev)))
3062 (home-page "https://smxi.org/docs/inxi.htm")
3063 (synopsis "Linux devices manager for the Logitech Unifying Receiver")
3064 (description "This package provides tools to manage clients of the
3065 Logitech Unifying Receiver.")
3066 (license license:gpl2)))
3068 (define-public lynis
3071 ;; Also update the ‘lynis-sdk’ input to the commit matching this release.
3077 (url "https://github.com/CISOfy/lynis")
3079 (file-name (git-file-name name version))
3081 (base32 "1jjk5hcxmp4f4ppsljiq95l2ln6b03azydap3b35lsvxkjybv88k"))
3082 (modules '((guix build utils)))
3085 ;; Remove proprietary plugins. As of now, all plugins supplied with
3086 ;; lynis are proprietary. In the future, if free plugins are
3087 ;; provided, whitelist them from deletion.
3088 (for-each delete-file (find-files "plugins"))
3090 (build-system gnu-build-system)
3097 (url "https://github.com/CISOfy/lynis-sdk")
3098 (commit "90f301e21c204792cf372f1cf05890a562f2e31b")))
3099 (file-name (git-file-name "lynis-sdk" version))
3101 (base32 "1d0smr1fxrvbc3hl8lzy33im9ahzr0hgs3kk09r8g8xccjkcm52l"))))))
3104 (modify-phases %standard-phases
3106 (lambda* (#:key inputs outputs #:allow-other-keys)
3107 (substitute* "lynis"
3108 (("/usr/share/lynis")
3109 (string-append (assoc-ref outputs "out") "/share/lynis")))
3110 (substitute* "include/functions"
3111 (("/usr/local/etc/lynis")
3112 (string-append (assoc-ref outputs "out") "/etc/lynis")))
3116 (lambda* (#:key outputs #:allow-other-keys)
3117 (let ((out (assoc-ref outputs "out")))
3118 (install-file "lynis" (string-append out "/bin/"))
3119 (install-file "default.prf" (string-append out "/etc/lynis"))
3122 (copy-recursively dir (string-append out "/share/lynis/" dir)))
3123 (list "db" "include" "plugins"))
3124 (install-file "lynis.8" (string-append out "/share/man/man8"))
3127 (lambda* (#:key inputs #:allow-other-keys)
3128 (copy-recursively (assoc-ref inputs "lynis-sdk") "../lynis-sdk")
3129 (setenv "LANG" "en_US.UTF-8")
3130 (let ((lynis-dir (getcwd)))
3131 (with-directory-excursion "../lynis-sdk"
3132 (substitute* "config"
3133 (("\\.\\./lynis") lynis-dir))
3134 (substitute* "unit-tests/tests-language-translations.sh"
3135 (("\\.\\./lynis") lynis-dir))
3136 (invoke "sh" "lynis-devkit" "run" "unit-tests"))))))))
3137 (home-page "https://cisofy.com/lynis/")
3138 (synopsis "Security auditing tool")
3139 (description "Lynis is a security auditing tool. It performs an in-depth
3140 security scan and runs on the system itself. The primary goal is to test
3141 security defenses and provide tips for further system hardening. It will also
3142 scan for general system information, vulnerable software packages, and
3143 possible configuration issues.")
3144 (license license:gpl3+)))
3146 (define-public ngrep
3154 (url "https://github.com/jpr5/ngrep/")
3155 (commit (string-append "V" (string-replace-substring version "." "_")))))
3156 (file-name (git-file-name name version))
3159 "1x2fyd7wdqlj1r76ilal06cl2wmbz0ws6i3ys204sbjh1cj6dcl7"))))
3160 (build-system gnu-build-system)
3162 `(("libpcap" ,libpcap)))
3164 `(#:tests? #f ;; No tests.
3165 #:configure-flags (list (string-append "--with-pcap-includes="
3166 (assoc-ref %build-inputs "libpcap")
3168 (home-page "https://github.com/jpr5/ngrep/")
3169 (synopsis "Grep-like utility to search for network packets on an interface")
3170 (description "@command{ngrep} is like GNU grep applied to the network
3171 layer. It's a PCAP-based tool that allows you to specify an extended regular
3172 or hexadecimal expression to match against data payloads of packets. It
3173 understands many kinds of protocols, including IPv4/6, TCP, UDP, ICMPv4/6,
3174 IGMP and Raw, across a wide variety of interface types, and understands BPF
3175 filter logic in the same fashion as more common packet sniffing tools, such as
3176 tcpdump and snoop.")
3177 (license license:bsd-3)))