1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018 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 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 Nils Gillmann <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>
28 ;;; This file is part of GNU Guix.
30 ;;; GNU Guix is free software; you can redistribute it and/or modify it
31 ;;; under the terms of the GNU General Public License as published by
32 ;;; the Free Software Foundation; either version 3 of the License, or (at
33 ;;; your option) any later version.
35 ;;; GNU Guix is distributed in the hope that it will be useful, but
36 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
37 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38 ;;; GNU General Public License for more details.
40 ;;; You should have received a copy of the GNU General Public License
41 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
43 (define-module (gnu packages admin)
44 #:use-module ((guix licenses) #:prefix license:)
45 #:use-module (guix packages)
46 #:use-module (guix utils)
47 #:use-module (guix download)
48 #:use-module (guix git-download)
49 #:use-module (guix build-system cmake)
50 #:use-module (guix build-system emacs)
51 #:use-module (guix build-system gnu)
52 #:use-module (guix build-system meson)
53 #:use-module (guix build-system perl)
54 #:use-module (guix build-system python)
55 #:use-module (guix build-system trivial)
56 #:use-module (gnu packages)
57 #:use-module (gnu packages base)
58 #:use-module (gnu packages bash)
59 #:use-module (gnu packages check)
60 #:use-module (gnu packages cyrus-sasl)
61 #:use-module (gnu packages dns)
62 #:use-module (gnu packages file)
63 #:use-module (gnu packages ncurses)
64 #:use-module (gnu packages readline)
65 #:use-module (gnu packages linux)
66 #:use-module (gnu packages lua)
67 #:use-module (gnu packages guile)
68 #:use-module (gnu packages gettext)
69 #:use-module (gnu packages imagemagick)
70 #:use-module (gnu packages inkscape)
71 #:use-module (gnu packages pcre)
72 #:use-module (gnu packages perl)
73 #:use-module (gnu packages perl-check)
74 #:use-module (gnu packages tcl)
75 #:use-module (gnu packages compression)
76 #:use-module (gnu packages cross-base)
77 #:use-module (gnu packages tls)
78 #:use-module (gnu packages gnupg)
79 #:use-module (gnu packages bison)
80 #:use-module (gnu packages flex)
81 #:use-module (gnu packages gl)
82 #:use-module (gnu packages glib)
83 #:use-module (gnu packages openldap)
84 #:use-module (gnu packages mcrypt)
85 #:use-module (gnu packages pkg-config)
86 #:use-module (gnu packages popt)
87 #:use-module (gnu packages python)
88 #:use-module (gnu packages python-crypto)
89 #:use-module (gnu packages python-web)
90 #:use-module (gnu packages python-xyz)
91 #:use-module (gnu packages qt)
92 #:use-module (gnu packages terminals)
93 #:use-module (gnu packages texinfo)
94 #:use-module (gnu packages groff)
95 #:use-module (gnu packages pciutils)
96 #:use-module (gnu packages libunwind)
97 #:use-module (gnu packages libusb)
98 #:use-module (gnu packages libftdi)
99 #:use-module (gnu packages image)
100 #:use-module (gnu packages xorg)
101 #:use-module (gnu packages xdisorg)
102 #:use-module (gnu packages man)
103 #:use-module (gnu packages autotools)
104 #:use-module (gnu packages gnome)
105 #:use-module (gnu packages kerberos)
106 #:use-module (gnu packages gtk)
107 #:use-module (gnu packages xml)
108 #:use-module (gnu packages boost)
109 #:use-module (gnu packages elf)
110 #:use-module (gnu packages mpi)
111 #:use-module (gnu packages web))
119 (uri (string-append "mirror://sourceforge/aide/aide/"
120 version "/aide-" version ".tar.gz"))
123 "0ibkv4z2gk14fn014kq13rp2ysiq6nn2cflv2q5i7zf466hm6758"))))
124 (build-system gnu-build-system)
129 `(("libgcrypt" ,libgcrypt)
130 ("libgpg-error" ,libgpg-error)
131 ("libmhash" ,libmhash)
132 ("pcre:static" ,pcre "static")
134 ("zlib:static" ,zlib "static")
136 (synopsis "File and directory integrity checker")
138 "AIDE (Advanced Intrusion Detection Environment) is a file and directory
139 integrity checker. It creates a database from the regular expression rules
140 that it finds from its configuration files. Once this database is initialized
141 it can be used to verify the integrity of the files. It has several message
142 digest algorithms that are used to check the integrity of files. All of the
143 usual file attributes can be checked for inconsistencies.")
144 (home-page "http://aide.sourceforge.net/")
145 (license license:gpl2+)))
147 (define-public progress
155 (url "https://github.com/Xfennec/progress.git")
156 (commit (string-append "v" version))))
158 (base32 "1lk2v4b767klib93an4g3f7z5qrv9kdk9jf7545vw1immc4kamrl"))
159 (file-name (git-file-name name version))))
160 (build-system gnu-build-system)
162 `(("pkg-config" ,pkg-config)
165 `(("ncurses" ,ncurses)))
167 `(#:tests? #f ; no test suite
168 #:make-flags (list "CC=gcc"
169 (string-append "PREFIX=" (assoc-ref %outputs "out")))
171 (modify-phases %standard-phases
172 (delete 'configure)))) ; no configure script
173 (home-page "https://github.com/Xfennec/progress")
174 (synopsis "Program to view the progress of the coreutils commands")
175 (description "A program that looks for coreutils basic commands (cp, mv,
176 dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
177 the percentage of copied data. It can also show estimated time and throughput,
178 and provides a \"top-like\" mode (monitoring).")
179 (license license:gpl3+)))
181 (define-public shepherd
187 (uri (string-append "https://alpha.gnu.org/gnu/shepherd/shepherd-"
191 "1wmciqml9yplnx1s4ynn00giqyk06rbrcsgvpjj2df47sawk2jp8"))))
192 (build-system gnu-build-system)
194 '(#:configure-flags '("--localstatedir=/var")))
196 `(("pkg-config" ,pkg-config)
198 ;; This is the Guile we use as a cross-compiler...
199 ("guile" ,guile-2.2)))
201 ;; ... and this is the one that appears in shebangs when cross-compiling.
202 `(("guile" ,guile-2.2)
204 ;; The 'shepherd' command uses Readline when used interactively. It's
205 ;; an unusual use case though, so we don't propagate it.
206 ("guile-readline" ,guile-readline)))
207 (synopsis "System service manager")
209 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
210 the execution of system services, replacing similar functionality found in
211 typical init systems. It provides dependency-handling through a convenient
212 interface and is based on GNU Guile.")
213 (license license:gpl3+)
214 (home-page "https://www.gnu.org/software/shepherd/")
215 (properties '((ftp-server . "alpha.gnu.org")))))
217 (define-public daemontools
224 "https://cr.yp.to/daemontools/"
225 "daemontools-" version ".tar.gz"))
228 "07scvw88faxkscxi91031pjkpccql6wspk4yrlnsbrrb5c0kamd5"))))
229 (build-system gnu-build-system)
231 `(#:tests? #f ;; No tests as far as I can tell.
233 (modify-phases %standard-phases
234 (add-after 'unpack 'chdir
236 (chdir ,(string-append "daemontools-" version))
239 (add-before 'build 'patch
241 (substitute* "src/error.h"
242 (("extern int errno;")
243 "#include <errno.h>"))
247 (invoke "package/compile")))
249 (lambda* (#:key outputs #:allow-other-keys)
250 (let* ((out (assoc-ref outputs "out"))
251 (bin (string-append out "/bin")))
252 (for-each (lambda (file)
253 (install-file file bin))
254 (find-files "command")))
256 (synopsis "Tools for managing UNIX style services")
258 "@code{daemontools} is a collection of tools for managing UNIX
260 (license license:public-domain)
261 (home-page "https://cr.yp.to/daemontools.html")))
271 "https://projects.gw-computing.net/attachments/download/615/dfc-"
275 "0m1fd7l85ckb7bq4c5c3g257bkjglm8gq7x42pkmpp87fkknc94n"))))
276 (build-system cmake-build-system)
277 (arguments '(#:tests? #f)) ; There are no tests.
278 (native-inputs `(("gettext" ,gettext-minimal)))
279 (home-page "https://projects.gw-computing.net/projects/dfc")
280 (synopsis "Display file system space usage using graphs and colors")
282 "dfc (df color) is a modern version of df. It uses colors, draws pretty
283 graphs and can export its output to different formats.")
284 (license license:bsd-3)))
292 (uri (string-append "http://hisham.hm/htop/releases/"
293 version "/htop-" version ".tar.gz"))
296 "0mrwpb3cpn3ai7ar33m31yklj64c3pp576vh1naqff6f21pq5mnr"))))
297 (build-system gnu-build-system)
299 `(("ncurses" ,ncurses)))
301 `(("python" ,python-minimal-wrapper))) ; for scripts/MakeHeader.py
302 (home-page "https://hisham.hm/htop/")
303 (synopsis "Interactive process viewer")
305 "This is htop, an interactive process viewer. It is a text-mode
306 application (for console or X terminals) and requires ncurses.")
307 (license license:gpl2)))
316 (uri (string-append "mirror://gnu/pies/pies-"
320 "12r7rjjyibjdj08dvwbp0iflfpzl4s0zhn6cr6zj3hwf9gbzgl1g"))))
321 (build-system gnu-build-system)
323 '(#:phases (modify-phases %standard-phases
324 (add-before 'build 'patch-/bin/sh
325 (lambda* (#:key inputs #:allow-other-keys)
326 ;; Use the right shell when executing user-provided
328 (let ((bash (assoc-ref inputs "bash")))
329 (substitute* "src/progman.c"
331 (string-append "\"" bash "/bin/sh\"")))
333 (home-page "https://www.gnu.org/software/pies/")
334 (synopsis "Program invocation and execution supervisor")
336 "GNU pies is a program that supervises the invocation and execution of
337 other programs. It reads the list of programs to be started from its
338 configuration file, executes them, and then monitors their status,
339 re-executing them as necessary.")
340 (license license:gpl3+)))
342 (define-public inetutils
348 (uri (string-append "mirror://gnu/inetutils/inetutils-"
352 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
353 (build-system gnu-build-system)
355 `(#:configure-flags '("--localstatedir=/var"
357 ;; Make sure 'PATH_PROCNET_DEV' gets defined when
358 ;; cross-compiling (by default it does not.)
359 ,@(if (%current-target-system)
360 '("--with-path-procnet-dev=/proc/net/dev")
362 ;; On some systems, 'libls.sh' may fail with an error such as:
363 ;; "Failed to tell switch -a apart from -A".
364 #:parallel-tests? #f))
365 (inputs `(("ncurses" ,ncurses)
366 ("readline" ,readline))) ;for 'ftp'
367 (native-inputs `(("netstat" ,net-tools))) ;for tests
368 (home-page "https://www.gnu.org/software/inetutils/")
369 (synopsis "Basic networking utilities")
371 "Inetutils is a collection of common network programs, such as an ftp
372 client and server, a telnet client and server, an rsh client and server, and
374 (license license:gpl3+)))
376 (define-public shadow
383 "https://github.com/shadow-maint/shadow/releases/"
384 "download/" version "/shadow-" version ".tar.xz"))
387 "10smy01km2bqjjvsd2jz17zvrxbzj89qczyb1amk38j28bcci609"))))
388 (build-system gnu-build-system)
390 `(;; Assume System V `setpgrp (void)', which is the default on GNU
391 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
393 '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
396 (modify-phases %standard-phases
397 (add-before 'build 'set-nscd-file-name
398 (lambda* (#:key inputs #:allow-other-keys)
399 ;; Use the right file name for nscd.
400 (let ((libc (assoc-ref inputs
401 ,(if (%current-target-system)
404 (substitute* "lib/nscd.c"
406 (string-append libc "/sbin/nscd")))
408 (add-after 'install 'remove-groups
409 (lambda* (#:key outputs #:allow-other-keys)
410 ;; Remove `groups', which is already provided by Coreutils.
411 (let* ((out (assoc-ref outputs "out"))
412 (bin (string-append out "/bin"))
413 (man (string-append out "/share/man")))
414 (delete-file (string-append bin "/groups"))
415 (for-each delete-file (find-files man "^groups\\."))
418 (inputs (if (string-contains (or (%current-target-system)
421 `(("linux-pam" ,linux-pam))
423 (home-page "http://pkg-shadow.alioth.debian.org/")
424 (synopsis "Authentication-related tools such as passwd, su, and login")
426 "Shadow provides a number of authentication-related tools, including:
427 login, passwd, su, groupadd, and useradd.")
429 ;; The `vipw' program is GPLv2+.
430 ;; libmisc/salt.c is public domain.
431 (license license:bsd-3)))
433 (define-public mingetty
439 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
440 version "/mingetty-" version ".tar.gz"))
443 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
444 (build-system gnu-build-system)
447 (modify-phases %standard-phases
449 (lambda* (#:key inputs outputs #:allow-other-keys)
450 (let* ((out (assoc-ref outputs "out"))
451 (man8 (string-append out "/share/man/man8"))
452 (sbin (string-append out "/sbin"))
453 (shadow (assoc-ref inputs "shadow"))
454 (login (string-append shadow "/bin/login")))
455 (substitute* "Makefile"
457 (string-append "SBINDIR = " out
460 (string-append "MANDIR = " out
461 "/share/man/man8\n")))
463 ;; Pick the right 'login' by default.
464 (substitute* "mingetty.c"
466 (string-append "\"" login "\"")))
471 #:tests? #f)) ; no tests
472 (inputs `(("shadow" ,shadow)))
474 (home-page "https://sourceforge.net/projects/mingetty")
475 (synopsis "Getty for the text console")
477 "Small console getty that is started on the Linux text console,
478 asks for a login name and then transfers over to 'login'. It is extended to
479 allow automatic login and starting any app.")
480 (license license:gpl2+)))
482 (define-public net-base
489 "mirror://debian/pool/main/n/netbase/netbase_"
493 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
494 (build-system trivial-build-system)
496 `(#:modules ((guix build utils))
498 (use-modules (guix build utils)
501 (let* ((source (assoc-ref %build-inputs "source"))
502 (tar (assoc-ref %build-inputs "tar"))
503 (xz (assoc-ref %build-inputs "xz"))
504 (output (assoc-ref %outputs "out"))
505 (etc (string-append output "/etc")))
506 (setenv "PATH" (string-append xz "/bin"))
507 (invoke (string-append tar "/bin/tar") "xvf"
509 (chdir ,(string-append "netbase-" version))
512 '("etc-services" "etc-protocols" "etc-rpc")
513 (map (cut string-append etc "/" <>)
514 '("services" "protocols" "rpc")))
516 (native-inputs `(("tar" ,tar)
518 (synopsis "IANA protocol, port, and RPC number assignments")
520 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
521 files, which contain information about the IANA-assigned port, protocol, and
523 (home-page "https://packages.debian.org/sid/netbase")
524 (license license:gpl2)))
526 (define-public netcat
532 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
533 "/netcat-" version ".tar.bz2"))
536 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
537 (build-system gnu-build-system)
540 ;; By default, man and info pages are put in PREFIX/{man,info},
541 ;; but we want them in PREFIX/share/{man,info}.
542 (let ((out (assoc-ref %outputs "out")))
543 (list (string-append "--mandir=" out "/share/man")
544 (string-append "--infodir=" out "/share/info")))))
545 (home-page "http://netcat.sourceforge.net")
546 (synopsis "Read and write data over TCP/IP")
548 "Netcat is a featured networking utility which reads and writes data
549 across network connections, using the TCP/IP protocol. It is designed to be a
550 reliable \"back-end\" tool that can be used directly or easily driven by other
551 programs and scripts. At the same time, it is a feature-rich network debugging
552 and exploration tool, since it can create almost any kind of connection you
553 would need and has several interesting built-in capabilities.")
554 (license license:gpl2+)))
556 (define-public sipcalc
563 (uri (string-append "http://www.routemeister.net/projects"
564 "/sipcalc/files/sipcalc" "-" version ".tar.gz"))
567 "0mv3wndj4z2bsshh2k8d5sy3j8wxzgf8mzmmkvj1k8gpcz37dm6g"))))
568 (build-system gnu-build-system)
569 (home-page "http://www.routemeister.net/projects/sipcalc/")
570 (synopsis "Command-line IP subnet calculator")
572 "Sipcalc is an advanced command-line IP subnet calculator. It can take
573 multiple forms of input (IPv4/IPv6/interface/hostname) and output a multitude
574 of information about a given subnet.
581 @item Retrieving of address information from interfaces.
582 @item Classfull and CIDR output.
583 @item Multiple address and netmask input and output formats (dotted quad, hex,
585 @item Output of broadcast address, network class, Cisco wildcard,
586 hosts/range, network range.
587 @item The ability to split a network based on a smaller netmask, now also with
588 recursive runs on the generated subnets. (also IPv6)
592 @item Compressed and expanded input and output addresses.
593 @item Standard IPv6 network output.
594 @item v4 in v6 output.
595 @item Reverse DNS address generation.
598 (license license:bsd-3)))
606 (uri (string-append "mirror://gnu/alive/alive-"
610 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
611 (build-system gnu-build-system)
612 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
613 (inputs `(("guile" ,guile-2.0)
614 ("inetutils" ,inetutils)))
615 (home-page "https://www.gnu.org/software/alive/")
616 (synopsis "Autologin and keep-alive daemon")
618 "GNU Alive sends periodic pings to a server, generally to keep a
620 (license license:gpl3+)))
622 (define-public isc-dhcp
623 (let* ((bind-major-version "9")
624 (bind-minor-version "11")
625 (bind-patch-version "4")
626 (bind-release-type "-P") ; for patch release, use "-P"
627 (bind-release-version "2") ; for patch release, e.g. "6"
628 (bind-version (string-append bind-major-version
634 bind-release-version)))
640 (uri (string-append "https://ftp.isc.org/isc/dhcp/"
641 version "/dhcp-" version ".tar.gz"))
644 "025nfqx4zwdgv4b3rkw26ihcj312vir08jk6yi57ndmb4a4m08ia"))))
645 (build-system gnu-build-system)
647 `(#:parallel-build? #f
649 (modify-phases %standard-phases
650 (add-after 'unpack 'replace-bundled-bind
651 (lambda* (#:key inputs #:allow-other-keys)
652 (delete-file "bind/bind.tar.gz")
653 (copy-file (assoc-ref inputs "bind-source-tarball")
655 (chmod "bind/bind.tar.gz" #o644)
656 (substitute* "bind/version.tmp"
658 (format #f "MAJORVER=~a\n" ,bind-major-version))
660 (format #f "MINORVER=~a\n" ,bind-minor-version))
662 (format #f "PATCHVER=~a\n" ,bind-patch-version))
664 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
666 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
668 (add-after 'configure 'post-configure
669 (lambda* (#:key outputs #:allow-other-keys)
670 ;; Point to the right client script, which will be
671 ;; installed in a later phase.
672 (substitute* "includes/dhcpd.h"
673 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
674 (let ((out (assoc-ref outputs "out")))
675 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
676 out "/libexec/dhclient-script"
679 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
680 ;; we must patch shebangs in there and make sure the right
682 (with-directory-excursion "bind"
683 (substitute* "Makefile"
685 (let ((sh (which "sh")))
686 (string-append "./configure CONFIG_SHELL="
689 (let ((bind-directory (string-append "bind-" ,bind-version)))
690 (invoke "tar" "xf" "bind.tar.gz")
691 (for-each patch-shebang
692 (find-files bind-directory ".*"))
693 (invoke "tar" "cf" "bind.tar.gz"
695 ;; avoid non-determinism in the archive
699 "--group=root:0")))))
700 (add-after 'install 'post-install
701 (lambda* (#:key inputs outputs #:allow-other-keys)
702 ;; Install the dhclient script for GNU/Linux and make sure
703 ;; if finds all the programs it needs.
704 (let* ((out (assoc-ref outputs "out"))
705 (libexec (string-append out "/libexec"))
706 (coreutils (assoc-ref inputs "coreutils"))
707 (inetutils (assoc-ref inputs "inetutils"))
708 (net-tools (assoc-ref inputs "net-tools"))
709 (sed (assoc-ref inputs "sed")))
710 (substitute* "client/scripts/linux"
712 (string-append (assoc-ref inputs "iproute")
716 (copy-file "client/scripts/linux"
717 (string-append libexec "/dhclient-script"))
720 (string-append libexec "/dhclient-script")
723 (string-append dir "/bin:"
725 (list inetutils net-tools coreutils sed))))
728 (native-inputs `(("perl" ,perl)))
730 (inputs `(("inetutils" ,inetutils)
731 ("net-tools" ,net-tools)
734 ;; XXX isc-dhcp bundles a copy of bind that has security
735 ;; flaws, so we use a newer version.
736 ("bind-source-tarball"
739 (uri (string-append "https://ftp.isc.org/isc/bind9/"
741 "/bind-" bind-version ".tar.gz"))
744 "04fq17zksd2b3w6w6padps5n7b6s2lasxpksbhl4378h56vgfnm8"))))
746 ;; When cross-compiling, we need the cross Coreutils and sed.
747 ;; Otherwise just use those from %FINAL-INPUTS.
748 ,@(if (%current-target-system)
749 `(("coreutils" ,coreutils)
753 (home-page "https://www.isc.org/products/DHCP/")
754 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
756 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
757 reference implementation of all aspects of DHCP, through a suite of DHCP
758 tools: server, client, and relay agent.")
759 (license license:mpl2.0)
760 (properties '((cpe-name . "dhcp"))))))
762 (define-public libpcap
768 (uri (string-append "https://www.tcpdump.org/release/libpcap-"
772 "06bhydl4vr4z9c3vahl76f2j96z1fbrcl7wwismgs4sris08inrf"))))
773 (build-system gnu-build-system)
778 ;; There are some tests in testprogs/, but no automated test suite.
780 (home-page "https://www.tcpdump.org")
781 (synopsis "Network packet capture library")
783 "libpcap is an interface for user-level packet capture. It provides a
784 portable framework for low-level network monitoring. Applications include
785 network statistics collection, security monitoring, network debugging, etc.")
786 (license (list license:bsd-4 ; fad-*.c and several other source files
787 license:bsd-3 ; pcap/, sockutils.* & others
788 license:bsd-2)))) ; the rest
790 (define-public tcpdump
796 (uri (string-append "https://www.tcpdump.org/release/tcpdump-"
800 "0ygy0layzqaj838r5xd613iraz09wlfgpyh7pc6cwclql8v3b2vr"))))
801 (build-system gnu-build-system)
802 (inputs `(("libpcap" ,libpcap)
803 ("openssl" ,openssl)))
804 (native-inputs `(("perl" ,perl))) ; for tests
805 (home-page "https://www.tcpdump.org/")
806 (synopsis "Network packet analyzer")
808 "Tcpdump is a command-line tool to analyze network traffic passing
809 through the network interface controller.")
810 (license license:bsd-3)))
812 (define-public jnettop
818 (uri (string-append "http://jnettop.kubs.info/dist/jnettop-"
822 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
823 (build-system gnu-build-system)
825 `(("pkg-config" ,pkg-config)))
829 ("libpcap" ,libpcap)))
830 (home-page "http://jnettop.kubs.info/")
831 (synopsis "Visualize network traffic by bandwidth use")
833 "Jnettop is a traffic visualiser, which captures traffic going
834 through the host it is running from and displays streams sorted
835 by bandwidth they use.")
836 (license license:gpl2+)))
838 (define-public clusterssh
844 (uri (string-append "mirror://sourceforge/clusterssh/"
845 "2.%20ClusterSSH%20Series%204/"
846 "App-ClusterSSH-v" version ".tar.gz"))
849 "0rmk2p3f2wz1h092anidjclh212rv3gxyk0c641qk3frlrjnw6mp"))))
850 (build-system perl-build-system)
852 `(("perl-cpan-changes" ,perl-cpan-changes)
853 ("perl-file-slurp" ,perl-file-slurp)
854 ("perl-file-which" ,perl-file-which)
855 ("perl-module-build" ,perl-module-build)
856 ("perl-readonly" ,perl-readonly)
857 ("perl-test-differences" ,perl-test-differences)
858 ("perl-test-distmanifest" ,perl-test-distmanifest)
859 ("perl-test-perltidy" ,perl-test-perltidy)
860 ("perl-test-pod" ,perl-test-pod)
861 ("perl-test-pod-coverage" ,perl-test-pod-coverage)
862 ("perl-test-trap" ,perl-test-trap)
863 ("perltidy" ,perltidy)))
866 ("perl-exception-class" ,perl-exception-class)
868 ("perl-try-tiny" ,perl-try-tiny)
869 ("perl-x11-protocol" ,perl-x11-protocol)
870 ("perl-x11-protocol-other" ,perl-x11-protocol-other)))
871 ;; The clusterssh.sourceforge.net address requires login to view
872 (home-page "https://sourceforge.net/projects/clusterssh/")
873 (synopsis "Secure concurrent multi-server terminal control")
875 "ClusterSSH controls a number of xterm windows via a single graphical
876 console window to allow commands to be interactively run on multiple servers
877 over ssh connections.")
878 (license license:gpl2+)))
880 (define-public rename
887 "mirror://cpan/authors/id/R/RM/RMBARKER/File-Rename-"
891 "03yhf8nmqsb0zyliv501fdvwlp589jqfn44yqkrflmpzrbik3zxl"))))
892 (build-system perl-build-system)
895 (modify-phases %standard-phases
896 (add-after 'install 'find-itself
897 ;; Fix run-time 'Can't locate File/Rename.pm in @INC' failure.
898 (lambda* (#:key outputs #:allow-other-keys)
899 (let* ((out (assoc-ref outputs "out"))
900 (bin (string-append out "/bin")))
901 (with-directory-excursion bin
904 (wrap-program program
905 `("PERL5LIB" ":" prefix
906 (,(string-append out "/lib/perl5/site_perl")))))
907 (find-files "." ".*")))
910 `(("perl-module-build" ,perl-module-build)
911 ("perl-test-pod" ,perl-test-pod)
912 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
913 (home-page "https://metacpan.org/pod/distribution/File-Rename/rename.PL")
914 (synopsis "Perl extension for renaming multiple files")
916 "This package provides a Perl interface (@code{Perl::Rename}) as well
917 as a command-line utility (@command{rename}) that can rename multiple files
918 at once based on a Perl regular expression.")
919 (license license:perl-license)))
921 (define-public rottlog
927 (uri (string-append "mirror://gnu/rottlog/rottlog-"
931 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
932 (modules '((guix build utils)))
935 (substitute* "Makefile.in"
936 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
937 ;; Don't try to chown root.
939 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
940 ;; Don't attempt to create /var/lib/rottlog.
943 (build-system gnu-build-system)
945 '(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
946 "--localstatedir=/var")
948 ;; Install example config files in OUT/etc.
949 #:make-flags (list (string-append "ROTT_ETCDIR="
950 (assoc-ref %outputs "out")
953 #:phases (modify-phases %standard-phases
954 (add-after 'unpack 'patch-paths
957 (("/usr/sbin/sendmail") "sendmail"))
959 (add-after 'build 'set-packdir
961 ;; Set a default location for archived logs.
964 "packdir=\"/var/log\""))
966 (add-before 'install 'tweak-rc-weekly
968 (substitute* "rc/weekly"
972 ;; The file is called 'syslog.pid' (no 'd').
975 (add-after 'install 'install-info
977 (invoke "make" "install-info"))))))
978 (native-inputs `(("texinfo" ,texinfo)
979 ("util-linux" ,util-linux))) ; for 'cal'
980 (home-page "https://www.gnu.org/software/rottlog/")
981 (synopsis "Log rotation and management")
983 "GNU Rot[t]log is a program for managing log files. It is used to
984 automatically rotate out log files when they have reached a given size or
985 according to a given schedule. It can also be used to automatically compress
986 and archive such logs. Rot[t]log will mail reports of its activity to the
987 system administrator.")
988 (license license:gpl3+)))
997 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
999 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
1000 version ".tar.gz")))
1003 "1h1f7v9pv0rzp14cxzv8kaa8mdd717fbqv83l7c5dvvi8jwnisvv"))
1004 (modules '((guix build utils)))
1007 (delete-file-recursively "lib/zlib")
1009 (build-system gnu-build-system)
1012 (list "--with-logpath=/var/log/sudo.log"
1013 "--with-rundir=/var/run/sudo" ; must be cleaned up at boot time
1014 "--with-vardir=/var/db/sudo"
1015 "--with-iologdir=/var/log/sudo-io"
1017 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
1019 (string-append "CPPFLAGS=-D_PATH_MV='\""
1020 (assoc-ref %build-inputs "coreutils")
1023 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
1024 #:parallel-build? #f
1027 (modify-phases %standard-phases
1028 (add-before 'configure 'pre-configure
1030 (substitute* "src/sudo_usage.h.in"
1031 ;; Do not capture 'configure' arguments since we would
1032 ;; unduly retain references, and also because the
1033 ;; CPPFLAGS above would close the string literal
1035 (("@CONFIGURE_ARGS@") "\"\""))
1036 (substitute* (find-files "." "Makefile\\.in")
1037 (("-o [[:graph:]]+ -g [[:graph:]]+")
1038 ;; Allow installation as non-root.
1040 (("^install: (.*)install-sudoers(.*)" _ before after)
1041 ;; Don't try to create /etc/sudoers.
1042 (string-append "install: " before after "\n"))
1043 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
1044 ;; Don't try to create /run/sudo.
1046 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
1047 ;; Don't try to create /var/db/sudo.
1051 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
1052 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
1056 ("linux-pam" ,linux-pam)
1058 ("coreutils" ,coreutils)))
1059 (home-page "https://www.sudo.ws/")
1060 (synopsis "Run commands as root")
1062 "Sudo (su \"do\") allows a system administrator to delegate authority to
1063 give certain users (or groups of users) the ability to run some (or all)
1064 commands as root or another user while providing an audit trail of the
1065 commands and their arguments.")
1067 ;; See <http://www.sudo.ws/sudo/license.html>.
1068 (license license:x11)))
1070 (define-public wpa-supplicant-minimal
1072 (name "wpa-supplicant-minimal")
1077 "https://w1.fi/releases/wpa_supplicant-"
1080 (patches (search-patches "wpa-supplicant-CVE-2017-13082.patch"
1081 "wpa-supplicant-CVE-2018-14526.patch"
1082 "wpa-supplicant-fix-key-reuse.patch"
1083 "wpa-supplicant-fix-zeroed-keys.patch"
1084 "wpa-supplicant-fix-nonce-reuse.patch"
1085 "wpa-supplicant-krack-followups.patch"))
1088 "0l0l5gz3d5j9bqjsbjlfcv4w4jwndllp9fmyai4x9kg6qhs6v4xl"))))
1089 (build-system gnu-build-system)
1092 (modify-phases %standard-phases
1094 (lambda* (#:key outputs #:allow-other-keys)
1095 (chdir "wpa_supplicant")
1096 (copy-file "defconfig" ".config")
1097 (let ((port (open-file ".config" "al")))
1099 CONFIG_DEBUG_SYSLOG=y
1101 # Choose GnuTLS (the default is OpenSSL.)
1104 CONFIG_DRIVER_NL80211=y
1105 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
1107 CONFIG_READLINE=y\n" port)
1110 (add-after 'install 'install-man-pages
1111 (lambda* (#:key outputs #:allow-other-keys)
1112 (let* ((out (assoc-ref outputs "out"))
1113 (man (string-append out "/share/man"))
1114 (man5 (string-append man "/man5"))
1115 (man8 (string-append man "/man8")))
1116 (define (copy-man-page target)
1118 (install-file file target)))
1120 (mkdir-p man5) (mkdir man8)
1121 (for-each (copy-man-page man5)
1122 (find-files "doc/docbook" "\\.5"))
1123 (for-each (copy-man-page man8)
1124 (find-files "doc/docbook" "\\.8"))
1127 #:make-flags (list "CC=gcc"
1128 (string-append "BINDIR=" (assoc-ref %outputs "out")
1130 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1134 `(("readline" ,readline)
1137 ("libgcrypt" ,libgcrypt))) ;needed by crypto_gnutls.c
1139 `(("pkg-config" ,pkg-config)))
1140 (home-page "https://w1.fi/wpa_supplicant/")
1141 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
1143 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
1144 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
1145 the client stations. It implements key negotiation with a WPA Authenticator
1146 and it controls the roaming and IEEE 802.11 authentication/association of the
1149 This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
1151 ;; In practice, this is linked against Readline, which makes it GPLv3+.
1152 (license license:bsd-3)))
1154 (define-public wpa-supplicant
1155 (package (inherit wpa-supplicant-minimal)
1156 (name "wpa-supplicant")
1157 (inputs `(("dbus" ,dbus)
1158 ,@(package-inputs wpa-supplicant-minimal)))
1160 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
1162 `(modify-phases ,phases
1163 (add-after 'configure 'configure-for-dbus
1165 (let ((port (open-file ".config" "al")))
1167 CONFIG_CTRL_IFACE_DBUS=y
1168 CONFIG_CTRL_IFACE_DBUS_NEW=y
1169 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
1172 (add-after 'install-man-pages 'install-dbus-conf
1173 (lambda* (#:key outputs #:allow-other-keys)
1174 (let* ((out (assoc-ref outputs "out"))
1175 (dir (string-append out "/etc/dbus-1/system.d")))
1177 (copy-file "dbus/dbus-wpa_supplicant.conf"
1178 (string-append dir "/wpa_supplicant.conf")))
1181 (define-public wpa-supplicant-gui
1183 (inherit wpa-supplicant)
1184 (name "wpa-supplicant-gui")
1185 (inputs `(("qtbase" ,qtbase)
1187 ,@(package-inputs wpa-supplicant)))
1190 `(("imagemagick" ,imagemagick)
1191 ("inkscape" ,inkscape)
1192 ,@(package-native-inputs wpa-supplicant)))
1194 `(#:phases (modify-phases %standard-phases
1195 (add-after 'unpack 'chdir
1197 (chdir "wpa_supplicant/wpa_gui-qt4")
1202 (invoke "qmake" "wpa_gui.pro")
1203 (invoke "make" "-j" (number->string (parallel-job-count)))
1204 (invoke "make" "-C" "icons")))
1206 (lambda* (#:key inputs outputs #:allow-other-keys)
1207 (let ((out (assoc-ref outputs "out"))
1208 (qt '("qtbase" "qtsvg")))
1209 (install-file "wpa_gui" (string-append out "/bin"))
1210 (install-file "wpa_gui.desktop"
1211 (string-append out "/share/applications"))
1212 (copy-recursively "icons/hicolor"
1213 (string-append out "/share/icons/hicolor"))
1214 (wrap-program (string-append out "/bin/wpa_gui")
1215 `("QT_PLUGIN_PATH" ":" prefix
1216 ,(map (lambda (label)
1217 (string-append (assoc-ref inputs label)
1218 "/lib/qt5/plugins/"))
1221 (synopsis "Graphical user interface for WPA supplicant")))
1223 (define-public wakelan
1230 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
1234 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
1235 (build-system gnu-build-system)
1238 (modify-phases %standard-phases
1240 (lambda* (#:key outputs #:allow-other-keys)
1241 (let ((out (assoc-ref outputs "out")))
1242 (mkdir-p (string-append out "/bin"))
1243 (mkdir-p (string-append out "/share/man/man1"))
1245 ;; It's an old configure script that doesn't understand
1246 ;; the extra options we pass.
1247 (setenv "CONFIG_SHELL" (which "bash"))
1248 (invoke "./configure"
1249 (string-append "--prefix=" out)
1250 (string-append "--mandir=" out
1253 (home-page "https://www.kernel.org") ; really, no home page
1254 (synopsis "Send a wake-on-LAN packet")
1256 "WakeLan broadcasts a properly formatted UDP packet across the local area
1257 network, which causes enabled computers to power on.")
1258 (license license:gpl2+)))
1260 (define-public dmidecode
1267 "mirror://savannah/dmidecode/dmidecode-"
1271 "1pcfhcgs2ifdjwp7amnsr3lq95pgxpr150bjhdinvl505px0cw07"))))
1272 (build-system gnu-build-system)
1274 '(#:phases (modify-phases %standard-phases (delete 'configure))
1275 #:tests? #f ; no 'check' target
1276 #:make-flags (list (string-append "prefix="
1277 (assoc-ref %outputs "out")))))
1278 (home-page "https://www.nongnu.org/dmidecode/")
1279 (synopsis "Read hardware information from the BIOS")
1281 "Dmidecode reports information about your system's hardware as described
1282 in your system BIOS according to the SMBIOS/DMI standard. This typically
1283 includes system manufacturer, model name, serial number, BIOS version, asset
1284 tag as well as a lot of other details of varying level of interest and
1285 reliability depending on the manufacturer. This will often include usage
1286 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1287 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1288 (license license:gpl2+)))
1290 (define-public acpica
1293 (version "20180810")
1297 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1301 "01drf32h0v1s8yd414rgc9bavb52yffrwpnbzfxd9sk1lwssr6v7"))))
1302 (build-system gnu-build-system)
1303 (native-inputs `(("flex" ,flex)
1306 '(#:make-flags (list (string-append "PREFIX=" %output)
1309 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1310 #:tests? #f ; no 'check' target
1311 #:phases (modify-phases %standard-phases (delete 'configure))))
1312 (home-page "https://acpica.org/")
1313 (synopsis "Tools for the development and debug of ACPI tables")
1315 "The ACPI Component Architecture (@dfn{ACPICA}) project provides an
1316 OS-independent reference implementation of the Advanced Configuration and
1317 Power Interface Specification (@dfn{ACPI}). ACPICA code contains those portions
1318 of ACPI meant to be directly integrated into the host OS as a kernel-resident
1319 subsystem, and a small set of tools to assist in developing and debugging ACPI
1320 tables. This package contains only the user-space tools needed for ACPI table
1321 development, not the kernel implementation of ACPI.")
1322 (license license:gpl2))) ; dual GPLv2/ACPICA Licence
1324 (define-public stress
1330 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1331 version ".orig.tar.gz"))
1334 "0nw210jajk38m3y7h8s130ps2qsbz7j75wab07hi2r3hlz14yzh5"))))
1335 (build-system gnu-build-system)
1336 (home-page "https://packages.debian.org/sid/stress")
1337 (synopsis "Impose load on and stress test a computer system")
1339 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
1340 or disk stress on a POSIX-compliant operating system and reports any errors it
1343 Stress is not a benchmark. It is a tool used by system administrators to
1344 evaluate how well their systems will scale, by kernel programmers to evaluate
1345 perceived performance characteristics, and by systems programmers to expose
1346 the classes of bugs which only or more frequently manifest themselves when the
1347 system is under heavy load.")
1348 (license license:gpl2+)))
1350 (define-public detox
1357 (url "https://github.com/dharple/detox.git")
1358 (commit (string-append "v" version))))
1361 "1dd608c7g65s5lj02cddvani3q9kzirddgkjqa22ap9d4f8b9xgr"))))
1362 (build-system gnu-build-system)
1364 `(("autoconf" ,autoconf)
1365 ("automake" ,automake)
1368 `(#:tests? #f ;no 'check' target
1369 #:phases (modify-phases %standard-phases
1370 (add-after 'unpack 'delete-configure
1371 ;; The "configure" script is present, but otherwise the
1372 ;; project is not bootstrapped: missing install-sh and
1373 ;; Makefile.in, so delete it so the bootstrap phase will
1375 (lambda _ (delete-file "configure") #t)))))
1376 (home-page "https://github.com/dharple/detox")
1377 (synopsis "Clean up file names")
1379 "Detox is a program that renames files to make them easier to work with
1380 under Unix and related operating systems. Spaces and various other unsafe
1381 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1382 characters can be replaced as well, as can UTF-8 characters.")
1383 (license license:bsd-3)))
1385 (define-public testdisk
1391 (uri (string-append "http://www.cgsecurity.org/testdisk-"
1392 version ".tar.bz2"))
1395 "0ba4wfz2qrf60vwvb1qsq9l6j0pgg81qgf7fh22siaz649mkpfq0"))))
1396 (build-system gnu-build-system)
1398 `(("ntfs-3g" ,ntfs-3g)
1399 ("util-linux" ,util-linux)
1400 ("openssl" ,openssl)
1401 ;; FIXME: add reiserfs
1403 ("e2fsprogs" ,e2fsprogs)
1404 ("libjpeg" ,libjpeg)
1405 ("ncurses" ,ncurses)))
1406 (home-page "https://www.cgsecurity.org/wiki/TestDisk")
1407 (synopsis "Data recovery tool")
1409 "TestDisk is a program for data recovery, primarily designed to help
1410 recover lost partitions and/or make non-booting disks bootable again.")
1411 (license license:gpl2+)))
1420 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1423 (base32 "1hmpz6k0mr6salv0nprvm1g0rdjva1kx03bdf1scw8a38d5mspbi"))))
1424 (build-system gnu-build-system)
1426 '(#:phases (modify-phases %standard-phases (delete 'configure))
1427 #:tests? #f ; no check target
1428 #:make-flags (let ((out (assoc-ref %outputs "out")))
1429 (list (string-append "prefix=" out)))))
1430 (synopsis "Recursively list the contents of a directory")
1432 "Tree is a recursive directory listing command that produces a depth
1433 indented listing of files, which is colorized ala dircolors if the LS_COLORS
1434 environment variable is set and output is to tty.")
1435 (home-page "http://mama.indstate.edu/users/ice/tree/")
1436 (license license:gpl2+)))
1438 (define-public direvent
1444 (uri (string-append "mirror://gnu/direvent/direvent-"
1448 "1nwvjmx7kb14ni34c0b8x9a3791pc20gvhj7xaj66d8q4h6n0qf4"))
1449 (modules '((guix build utils)))
1451 (substitute* "tests/testsuite"
1452 (("#![[:blank:]]?/bin/sh")
1455 (build-system gnu-build-system)
1458 (modify-phases %standard-phases
1459 (add-before 'build 'patch-/bin/sh
1460 (lambda* (#:key inputs #:allow-other-keys)
1461 ;; Use the right shell when executing the watcher and
1462 ;; user-provided shell commands.
1463 (let ((bash (assoc-ref inputs "bash")))
1464 (substitute* '("src/direvent.c" "src/progman.c")
1466 (string-append "\"" bash "/bin/sh\"")))
1468 ;; Adjust the 'shell.at' test accordingly.
1469 (substitute* "tests/testsuite"
1471 (string-append "SHELL=" bash "/bin/sh")))
1474 (home-page "https://www.gnu.org/software/direvent/")
1475 (synopsis "Daemon to monitor directories for events such as file removal")
1477 "A daemon that monitors directories for events, such as creating,
1478 deleting or modifying files. It can monitor different sets of directories for
1479 different events. When an event is detected, direvent calls a specified
1480 external program with information about the event, such as the location
1481 within the file system where it occurred. Thus, \"direvent\" provides an
1482 easy way to react immediately if given files undergo changes, for example, to
1483 track changes in important system configuration files.")
1484 (license license:gpl3+)))
1486 (define-public libcap-ng
1493 "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1497 "0a0k484kwv0zilry2mbl9k56cnpdhsjxdxin17jas6kkyfy345aa"))))
1498 (build-system gnu-build-system)
1501 (list "--without-python")))
1502 (home-page "https://people.redhat.com/sgrubb/libcap-ng/")
1503 (synopsis "Library for more easily working with POSIX capabilities")
1505 "The libcap-ng library is intended to make programming with POSIX
1506 capabilities easier than the traditional libcap library. It includes
1507 utilities that can analyse all currently running applications and print out
1508 any capabilities and whether or not it has an open ended bounding set. The
1509 included utilities are designed to let admins and developers spot apps from
1510 various ways that may be running with too much privilege.")
1511 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1512 (license (list license:lgpl2.1+ license:gpl2+))))
1514 (define-public smartmontools
1516 (name "smartmontools")
1521 "mirror://sourceforge/smartmontools/smartmontools/"
1522 version "/smartmontools-" version ".tar.gz"))
1525 "077nx2rn9szrg6isdh0938zbp7vr3dsyxl4jdyyzv1xwhqksrqg5"))))
1526 (build-system gnu-build-system)
1527 (inputs `(("libcap-ng" ,libcap-ng)))
1528 (home-page "https://www.smartmontools.org/")
1529 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1531 "The smartmontools package contains utility programs to control and
1532 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1533 Technology System (@dfn{S.M.A.R.T.}) built into most modern ATA and SCSI hard
1534 disks. In many cases, these utilities will provide advanced warning of disk
1535 degradation and failure.")
1536 (license license:gpl2+)))
1538 (define-public fdupes
1546 (url "https://github.com/adrianlopezroche/fdupes.git")
1547 (commit (string-append "v" version))))
1548 (file-name (git-file-name name version))
1550 (base32 "19b6vqblddaw8ccw4sn0qsqzbswlhrz8ia6n4m3hymvcxn8skpz9"))))
1551 (build-system gnu-build-system)
1553 '(#:phases (modify-phases %standard-phases
1554 (delete 'configure))
1555 #:tests? #f ; no 'check' target
1556 #:make-flags (list "CC=gcc"
1557 (string-append "PREFIX="
1558 (assoc-ref %outputs "out")))))
1559 (home-page "https://github.com/adrianlopezroche/fdupes")
1560 (synopsis "Identify duplicate files")
1562 "fdupes is a program for identifying duplicate files residing within
1563 specified directories.")
1564 (license license:expat)))
1566 (define-public graphios
1573 (uri (pypi-uri "graphios" version))
1576 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1577 (build-system python-build-system)
1579 ;; Be warned: Building with Python 3 succeeds, but the build process
1580 ;; throws a syntax error that is ignored.
1581 `(#:python ,python-2
1583 (modify-phases %standard-phases
1584 (add-before 'build 'fix-setup.py
1585 (lambda* (#:key outputs #:allow-other-keys)
1586 ;; Fix hardcoded, unprefixed file names.
1587 (let ((out (assoc-ref outputs "out")))
1588 (substitute* '("setup.py")
1589 (("/etc") (string-append out "/etc"))
1591 (("distro_ver = .*") "distro_ver = ''"))
1593 (home-page "https://github.com/shawn-sterling/graphios")
1594 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1596 "Graphios is a script to emit nagios perfdata to various upstream metrics
1597 processing and time-series systems. It's currently compatible with Graphite,
1598 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1599 of supported upstream metrics systems simultaneously.")
1600 (license license:gpl2+)))
1602 (define-public ansible
1609 (uri (pypi-uri "ansible" version))
1612 "0f7b2ghm34ql8yv90wr0ngd6w7wyvnlcxpc3snkj86kcjsnmx1bd"))))
1613 (build-system python-build-system)
1615 `(("python-bcrypt" ,python-bcrypt)
1616 ("python-pynacl" ,python-pynacl)
1617 ("python-httplib2" ,python-httplib2)
1618 ("python-passlib" ,python-passlib)
1619 ("python-nose" ,python-nose)
1620 ("python-mock" ,python-mock)
1621 ("python-jinja2" ,python-jinja2)
1622 ("python-pyyaml" ,python-pyyaml)
1623 ("python-paramiko" ,python-paramiko)))
1625 `(("python-cryptography" ,python-cryptography)
1626 ("python-jinja2" ,python-jinja2)
1627 ("python-pyyaml" ,python-pyyaml)
1628 ("python-paramiko" ,python-paramiko)))
1631 (modify-phases %standard-phases
1632 ;; Several ansible commands (ansible-config, ansible-console, etc.)
1633 ;; are just symlinks to a single ansible executable. The ansible
1634 ;; executable behaves differently based on the value of
1635 ;; sys.argv[0]. This does not work well with our wrap phase, and
1636 ;; therefore the following two phases are required as a workaround.
1637 (add-after 'unpack 'hide-wrapping
1639 ;; Overwrite sys.argv[0] to hide the wrapper script from it.
1640 (substitute* "bin/ansible"
1641 (("import traceback" all)
1642 (string-append all "
1644 sys.argv[0] = re.sub(r'\\.([^/]*)-real$', r'\\1', sys.argv[0])
1647 (add-after 'wrap 'fix-symlinks
1648 (lambda* (#:key outputs #:allow-other-keys)
1649 (let ((out (assoc-ref outputs "out")))
1651 (lambda (subprogram)
1652 ;; The symlinks point to the ansible wrapper script. Make
1653 ;; them point to the real executable (.ansible-real).
1654 (delete-file (string-append out "/bin/.ansible-" subprogram "-real"))
1655 (symlink (string-append out "/bin/.ansible-real")
1656 (string-append out "/bin/.ansible-" subprogram "-real"))
1657 ;; The wrapper scripts of the symlinks invoke the ansible
1658 ;; wrapper script. Fix them to invoke the correct executable.
1659 (substitute* (string-append out "/bin/ansible-" subprogram)
1661 (string-append "/bin/.ansible-" subprogram "-real"))))
1662 (list "config" "console" "doc" "galaxy"
1663 "inventory" "playbook" "pull" "vault")))
1665 (home-page "https://www.ansible.com/")
1666 (synopsis "Radically simple IT automation")
1667 (description "Ansible is a radically simple IT automation system. It
1668 handles configuration management, application deployment, cloud provisioning,
1669 ad hoc task execution, and multinode orchestration---including trivializing
1670 things like zero-downtime rolling updates with load balancers.")
1671 (license license:gpl3+)))
1673 (define-public emacs-ansible-doc
1674 (let ((commit "86083a7bb2ed0468ca64e52076b06441a2f8e9e0"))
1676 (name "emacs-ansible-doc")
1677 (version (git-version "0.4" "1" commit))
1682 (url "https://github.com/lunaryorn/ansible-doc.el")
1684 (file-name (git-file-name name version))
1687 "0lap404ch74w99n3xip176jr42b38xhyzkfnkyqg0g3wk2cd3aq8"))))
1688 (build-system emacs-build-system)
1689 ;; Unmaintained by upstream.
1690 (home-page "https://github.com/lunaryorn/ansible-doc.el")
1691 (synopsis "Ansible documentation for Emacs")
1693 "This package provides an Ansible documentation for GNU Emacs.
1695 @code{ansible-doc} allows you to view the documentation of an Ansible
1696 module and @code{ansible-doc-mode} minor mode adds documentation
1697 lookup to YAML Mode. You could enable the mode with @code{(add-hook
1698 'yaml-mode-hook #'ansible-doc-mode)}.")
1699 (license license:gpl3+))))
1701 (define-public cpulimit
1709 (url "https://github.com/opsengine/cpulimit.git")
1710 (commit (string-append "v" version))))
1711 (file-name (git-file-name name version))
1713 (base32 "1dz045yhcsw1rdamzpz4bk8mw888in7fyqk1q1b3m1yk4pd1ahkh"))))
1714 (build-system gnu-build-system)
1716 `(#:phases (modify-phases %standard-phases
1720 (invoke "make" "CC=gcc" "-Csrc")))
1723 (invoke "make" "CC=gcc" "-Ctests")))
1725 (lambda* (#:key outputs #:allow-other-keys)
1726 (let* ((out (assoc-ref outputs "out"))
1727 (bin (string-append out "/bin")))
1728 (install-file "src/cpulimit" bin))
1730 (home-page "https://github.com/opsengine/cpulimit")
1731 (synopsis "Limit CPU usage")
1733 "Cpulimit limits the CPU usage of a process. It does not change the nice
1734 value or other scheduling priority settings, but the real CPU usage, and is
1735 able to adapt itself dynamically to the overall system load. Children
1736 processes and threads of the specified process may optionally share the same
1738 (license license:gpl2+)))
1740 (define-public autojump
1747 (uri (string-append "https://github.com/wting/autojump/archive/"
1748 "release-v" version ".tar.gz"))
1749 (file-name (string-append name "-" version ".tar.gz"))
1752 "17z9j9936x0nizwrzf664bngh60x5qbvrrf1s5qdzd0f2gdanpvn"))))
1753 (build-system gnu-build-system)
1754 (native-inputs ;for tests
1755 `(("python-mock" ,python-mock)
1756 ("python-pytest" ,python-pytest)))
1758 `(("python" ,python-wrapper)))
1761 (modify-phases %standard-phases
1766 (invoke "python" "tests/unit/autojump_utils_test.py")))
1768 (lambda* (#:key outputs #:allow-other-keys)
1769 (setenv "SHELL" (which "bash"))
1770 (invoke "python" "install.py"
1771 (string-append "--destdir="
1772 (assoc-ref outputs "out"))))))))
1773 (home-page "https://github.com/wting/autojump")
1774 (synopsis "Shell extension for file system navigation")
1776 "Autojump provides a faster way to navigate your file system, with a \"cd
1777 command that learns\". It works by maintaining a database of the directories
1778 you use the most from the command line and allows you to \"jump\" to
1779 frequently used directories by typing only a small pattern.")
1780 (license license:gpl3+)))
1789 (url "https://github.com/clvv/fasd.git")
1791 (file-name (git-file-name name version))
1794 "1awi71jdv3mhjrmar2d4z1i90kn7apd7aq1w31sh6w4yibz9kiyj"))))
1795 (build-system gnu-build-system)
1797 `(#:phases (modify-phases %standard-phases
1798 (delete 'configure)) ;no configuration
1799 #:tests? #f ;no tests
1800 #:make-flags (list (string-append "PREFIX=" %output))))
1801 (home-page "https://github.com/clvv/fasd")
1802 (synopsis "Quick access to files and directories for shells")
1804 "Fasd (pronounced similar to \"fast\") is a command-line productivity
1805 booster. Fasd offers quick access to files and directories for POSIX shells.
1806 It is inspired by tools like autojump, z, and v. Fasd keeps track of files
1807 and directories you have accessed so that you can quickly reference them in
1809 (license license:x11)))
1811 (define-public iftop
1817 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
1818 "/iftop-" version ".tar.gz"))
1821 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
1822 (build-system gnu-build-system)
1824 `(("libpcap" ,libpcap)
1825 ("ncurses" ,ncurses)))
1826 (synopsis "Monitor network usage")
1827 (description "Iftop does for network usage what @command{top} does
1828 for CPU usage. It listens to network traffic on a named interface and
1829 displays a table of current bandwidth usage by pairs of hosts.")
1830 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
1831 (license license:gpl2+)))
1833 (define-public munge
1839 (uri (string-append "https://github.com/dun/munge/releases/"
1840 "download/munge-" version "/munge-"
1844 "1nj486bbg1adfg298zck96vgx57kchcypc1zdz1n7w540vyksxcr"))))
1846 `(("openssl" ,openssl)
1847 ("libgcrypt" ,libgcrypt)))
1848 (build-system gnu-build-system)
1849 (home-page "https://dun.github.io/munge/")
1850 (synopsis "Cluster computing authentication service")
1852 "Munge is an authentication service for creating and validating
1853 credentials. It allows a process to authenticate the UID and GID of another
1854 local or remote process within a group of hosts having common users and
1855 groups. These hosts form a security realm that is defined by a shared
1856 cryptographic key. Clients within this security realm can create and validate
1857 credentials without the use of root privileges, reserved ports, or
1858 platform-specific methods.")
1859 (license license:gpl3+)))
1861 (define-public audit
1864 (home-page "https://people.redhat.com/sgrubb/audit/")
1868 (uri (string-append home-page "audit-" version ".tar.gz"))
1871 "0f4ci6ffznnmgblwgv7ich9mjfk3p6y5l6m6h3chhmzw156nj454"))))
1872 (build-system gnu-build-system)
1874 `(#:configure-flags (list "--with-python=no"
1875 "--disable-static")))
1877 `(("openldap" ,openldap)
1879 ("sasl" ,cyrus-sasl)))
1880 (synopsis "User-space component to the Linux auditing system")
1882 "auditd is the user-space component to the Linux auditing system, which
1883 allows logging of system calls made by user-land processes. It's responsible
1884 for writing audit records to the disk. Viewing the logs is done with the
1885 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
1886 done with the @code{auditctl} utility.")
1887 (license license:gpl2+)))
1895 (uri (string-append "https://nmap.org/dist/nmap-" version
1899 "063fg8adx23l4irrh5kn57hsmi1xvjkar4vm4k6g94ppan4hcyw4"))
1900 (modules '((guix build utils)))
1903 (for-each delete-file-recursively
1904 ;; Remove bundled lua, pcap, and pcre libraries.
1905 ;; FIXME: Remove bundled liblinear once packaged.
1909 ;; Remove pre-compiled binares.
1912 (build-system gnu-build-system)
1914 `(("openssl" ,openssl)
1915 ("libpcap" ,libpcap)
1918 ("zlib" ,zlib) ;for NSE compression support
1921 ("python" ,python-2)))
1923 ;; TODO Add zenmap output.
1924 (outputs '("out" "ndiff"))
1926 `(#:configure-flags '("--without-zenmap")
1928 (modify-phases %standard-phases
1929 (add-after 'configure 'patch-Makefile
1931 (substitute* "Makefile"
1932 ;; Do not attempt to build lua.
1933 (("build-dnet build-lua") "build-dnet"))
1936 (lambda* (#:key outputs #:allow-other-keys)
1937 (define (make out . args)
1938 (apply invoke "make"
1939 (string-append "prefix=" out)
1941 (define (python-path dir)
1942 (string-append dir "/lib/python"
1943 ,(version-major+minor
1944 (package-version python))
1946 (let ((out (assoc-ref outputs "out"))
1947 (ndiff (assoc-ref outputs "ndiff")))
1948 (for-each mkdir-p (list out ndiff))
1954 (make ndiff "install-ndiff")
1955 (wrap-program (string-append ndiff "/bin/ndiff")
1956 `("PYTHONPATH" prefix
1957 (,(python-path ndiff)))))
1959 ;; These are the tests that do not require network access.
1961 (lambda _ (invoke "make"
1965 ;; Nmap can't cope with out-of-source building.
1966 #:out-of-source? #f))
1967 (home-page "https://nmap.org/")
1968 (synopsis "Network discovery and security auditing tool")
1970 "Nmap (\"Network Mapper\") is a network discovery and security auditing
1971 tool. It is also useful for tasks such as network inventory, managing service
1972 upgrade schedules, and monitoring host or service uptime. It also provides an
1973 advanced netcat implementation (ncat), a utility for comparing scan
1974 results (ndiff), and a packet generation and response analysis tool (nping).")
1975 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
1976 ;; both use a 3-clause BSD license.
1977 (license (list license:nmap license:bsd-3))))
1979 (define-public dstat
1987 (url "https://github.com/dagwieers/dstat.git")
1989 (file-name (git-file-name "dstat" version))
1991 (base32 "0sbpna531034gr40w4g9cwz35s2fpf9h654paznsxw9fih91rfa5"))))
1992 (build-system gnu-build-system)
1994 `(#:tests? #f ; no make check
1995 #:make-flags (let ((out (assoc-ref %outputs "out")))
1996 (list (string-append "DESTDIR=" out)
1998 ;; No configure script.
1999 #:phases (modify-phases %standard-phases (delete 'configure))))
2000 (inputs `(("python-2" ,python-2)))
2001 (synopsis "Versatile resource statistics tool")
2002 (description "Dstat is a versatile replacement for @command{vmstat},
2003 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
2004 some of their limitations and adds some extra features, more counters and
2005 flexibility. Dstat is handy for monitoring systems during performance tuning
2006 tests, benchmarks or troubleshooting.
2008 Dstat allows you to view all of your system resources in real-time, you can,
2009 e.g., compare disk utilization in combination with interrupts from your IDE
2010 controller, or compare the network bandwidth numbers directly with the disk
2011 throughput (in the same interval).")
2012 (home-page "http://dag.wiee.rs/home-made/dstat/")
2013 (license license:gpl2+)))
2015 (define-public thefuck
2023 (url "https://github.com/nvbn/thefuck.git")
2025 (file-name (git-file-name name version))
2027 (base32 "070b2sx8r0b4hry6xg97psxlikxghmz91zicg2cm6kc1yhgz4agc"))
2028 (patches (search-patches "thefuck-test-environ.patch"))))
2029 (build-system python-build-system)
2032 (modify-phases %standard-phases
2034 (add-after 'install 'check
2035 (lambda* (#:key inputs outputs #:allow-other-keys)
2036 ;; Tests look for installed package
2037 (add-installed-pythonpath inputs outputs)
2038 ;; Some tests need write access to $HOME.
2039 (setenv "HOME" "/tmp")
2040 (invoke "py.test" "-v")
2043 `(("python-colorama" ,python-colorama)
2044 ("python-decorator" ,python-decorator)
2045 ("python-psutil" ,python-psutil)
2046 ("python-pyte" ,python-pyte)
2047 ("python-six" ,python-six)))
2049 `(("python-mock" ,python-mock)
2050 ("python-pytest" ,python-pytest)
2051 ("python-pytest-mock" ,python-pytest-mock)))
2052 (home-page "https://github.com/nvbn/thefuck")
2053 (synopsis "Correct mistyped console command")
2055 "The Fuck tries to match a rule for a previous, mistyped command, creates
2056 a new command using the matched rule, and runs it.")
2057 (license license:x11)))
2066 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
2068 (base32 "0zlapxlzjizwzwa8xwrwibhcbkh0wx7n74gvjpp6wlwq7cgiq0xm"))))
2069 (build-system gnu-build-system)
2071 `(#:tests? #f ; obscure test failures.
2073 (modify-phases %standard-phases
2075 (add-before 'build 'setup-environment
2076 (lambda* (#:key outputs #:allow-other-keys)
2078 (setenv "prefix" (assoc-ref outputs "out"))
2080 #:make-flags (list "--environment-overrides")))
2081 (home-page "https://www.gentoo.com/di/")
2082 (synopsis "Advanced df like disk information utility")
2084 "'di' is a disk information utility, displaying everything that your
2085 @code{df} command does and more. It features the ability to display your disk
2086 usage in whatever format you prefer. It is designed to be highly portable and
2087 produce uniform output across heterogeneous networks.")
2088 (license license:zlib)))
2090 (define-public cbatticon
2096 (uri (string-append "https://github.com/valr/"
2097 name "/archive/" version ".tar.gz"))
2100 "185lzvaijvyq7y8r7dvizhri0rf9lpc1anfgbbn4lznr1fr3z7rn"))
2101 (file-name (string-append name "-" version ".tar.gz"))))
2102 (build-system gnu-build-system)
2104 `(#:tests? #f ; no tests
2106 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2109 (modify-phases %standard-phases
2110 (delete 'configure)))) ; no configure script
2113 ("gettext" ,gettext-minimal)
2114 ("libnotify" ,libnotify)))
2116 `(("pkg-config" ,pkg-config)))
2117 (synopsis "Lightweight battery icon for the system tray")
2118 (description "cbatticon is a lightweight battery icon that displays
2119 the status of your battery in the system tray.")
2120 (home-page "https://github.com/valr/cbatticon")
2121 (license license:gpl2+)))
2123 (define-public interrobang
2124 (let ((revision "1")
2125 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
2127 (name "interrobang")
2128 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
2132 (url "https://github.com/TrilbyWhite/interrobang")
2134 (file-name (string-append name "-" version))
2137 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
2138 (build-system gnu-build-system)
2140 `(#:tests? #f ; no tests
2142 (modify-phases %standard-phases
2143 (delete 'configure)) ; no configure script
2144 #:make-flags (list (string-append "PREFIX="
2145 (assoc-ref %outputs "out")))))
2147 `(("libx11" ,libx11)))
2149 `(("pkg-config" ,pkg-config)))
2150 (synopsis "Scriptable launcher menu")
2151 (description "Interrobang is a scriptable launcher menu with a customizable
2152 shortcut syntax and completion options.")
2153 (home-page "https://github.com/TrilbyWhite/interrobang")
2154 (license license:gpl3+))))
2156 (define-public pam-krb5
2163 "https://archives.eyrie.org/software/kerberos/"
2164 "pam-krb5-" version ".tar.xz"))
2167 "1qjp8i1s9bz7g6kiqrkzzkxn5pfspa4sy53b6z40fqmdf9przdfb"))))
2168 (build-system gnu-build-system)
2171 (modify-phases %standard-phases
2172 (add-before 'configure 'disable-tests
2174 ;; The build container seems to interfere with some tests.
2175 (substitute* "tests/TESTS"
2176 (("module/basic\n") ""))
2177 (substitute* "tests/TESTS"
2178 (("pam-util/vector\n") ""))
2181 `(("linux-pam" ,linux-pam)
2182 ("mit-krb5" ,mit-krb5)))
2185 ("perl-test-pod" ,perl-test-pod))) ; required for tests
2186 (synopsis "Kerberos PAM module")
2188 "Pam-krb5 is a Kerberos PAM module for either MIT Kerberos or Heimdal.
2189 It supports ticket refreshing by screen savers, configurable
2190 authorization handling, authentication of non-local accounts for network
2191 services, password changing, and password expiration, as well as all the
2192 standard expected PAM features. It works correctly with OpenSSH, even
2193 with @code{ChallengeResponseAuthentication} and @code{PrivilegeSeparation}
2194 enabled, and supports extensive configuration either by PAM options or in
2195 krb5.conf or both. PKINIT is supported with recent versions of both MIT
2196 Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
2197 (home-page "https://www.eyrie.org/~eagle/software/pam-krb5")
2198 ;; Dual licenced under a homebrew non-copyleft OR GPL (any version)
2199 ;; However, the tarball does not contain a copy of the GPL, so unless
2200 ;; we put one in, we cannot distribute it under GPL without violating
2201 ;; clause requiring us to give all recipients a copy.
2202 (license license:gpl1+)))
2204 (define-public sunxi-tools
2206 (name "sunxi-tools")
2212 (url "https://github.com/linux-sunxi/sunxi-tools.git")
2213 (commit (string-append "v" version))))
2215 (base32 "04f3jqg8ww4jxsf9c6ddcdgy2xbhkyp0b3l5f1hvvbv94p81rjxd"))
2216 (modules '((guix build utils)))
2218 ;; Remove binaries contained in the tarball which are only for the
2219 ;; target and can be regenerated anyway.
2221 (delete-file-recursively "bin")
2223 (file-name (git-file-name name version))))
2225 `(("pkg-config" ,pkg-config)
2226 ("cross-gcc" ,(cross-gcc "arm-linux-gnueabihf"
2227 #:xbinutils (cross-binutils "arm-linux-gnueabihf")
2228 #:libc (cross-libc "arm-linux-gnueabihf")))
2229 ("cross-libc" ,(cross-libc "arm-linux-gnueabihf")) ; header files
2230 ("cross-libc-static" ,(cross-libc "arm-linux-gnueabihf") "static")))
2232 `(("libusb" ,libusb)))
2233 (build-system gnu-build-system)
2235 `(#:tests? #f ; no tests exist
2236 #:make-flags (list (string-append "PREFIX="
2237 (assoc-ref %outputs "out"))
2238 (string-append "CROSS_COMPILE="
2239 "arm-linux-gnueabihf-")
2242 (modify-phases %standard-phases
2244 (add-before 'build 'set-environment-up
2245 (lambda* (#:key make-flags #:allow-other-keys)
2247 (string-contains x "cross-arm-linux"))
2248 (define (filter-environment! filter-predicate
2249 environment-variable-names)
2252 (let* ((env-value (getenv env-name))
2253 (search-path (search-path-as-string->list env-value))
2254 (new-search-path (filter filter-predicate
2256 (new-env-value (list->search-path-as-string
2257 new-search-path ":")))
2258 (setenv env-name new-env-value)))
2259 environment-variable-names))
2260 (setenv "CROSS_C_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))
2261 (setenv "CROSS_CPLUS_INCLUDE_PATH" (getenv "CPLUS_INCLUDE_PATH"))
2262 (setenv "CROSS_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
2263 (filter-environment! cross?
2264 '("CROSS_C_INCLUDE_PATH" "CROSS_CPLUS_INCLUDE_PATH"
2265 "CROSS_LIBRARY_PATH"))
2266 (filter-environment! (lambda (e) (not (cross? e)))
2267 '("C_INCLUDE_PATH" "CPLUS_INCLUDE_PATH"
2271 (lambda* (#:key make-flags #:allow-other-keys)
2272 (apply invoke "make" "tools" "misc" make-flags)))
2273 (add-after 'build 'build-armhf
2274 (lambda* (#:key make-flags #:allow-other-keys)
2275 (setenv "LIBRARY_PATH" #f)
2276 (apply invoke "make" "target-tools" make-flags)))
2278 (lambda* (#:key make-flags #:allow-other-keys)
2279 (apply invoke "make" "install-all" "install-misc"
2281 (home-page "https://github.com/linux-sunxi/sunxi-tools")
2282 (synopsis "Hardware management tools for Allwinner computers")
2283 (description "This package contains tools for Allwinner devices:
2285 @item @command{sunxi-fexc}, @command{bin2fex}, @command{fex2bin}: Compile
2286 a textual description of a board (.fex) to a binary representation (.bin).
2287 @item @command{sunxi-fel}: Puts an Allwinner device into FEL mode which
2288 makes it register as a special USB device (rather than USB host).
2289 You can then connect it to another computer and flash it from there.
2290 @item @command{sunxi-nand-part}: Partitions NAND flash.
2291 @item @command{sunxi-bootinfo}: Reads out boot0 and boot1 (Allwinner
2292 bootloader) parameters.
2293 @item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
2294 in order to be able to find it.
2295 @item @command{sunxi-meminfo}: Prints memory bus settings.
2296 @item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
2298 (license license:gpl2+)))
2300 (define-public sedsed
2307 (uri (string-append "https://github.com/aureliojargas/sedsed/"
2308 "archive/v" version ".tar.gz"))
2309 (file-name (string-append name "-" version ".tar.gz"))
2312 "0139jkqvm8ipiwfj7k69ry2f9b1ffgpk79arpz4r7w9kf6h23bnh"))))
2313 (build-system python-build-system)
2315 `(#:tests? #f ; No tests.
2318 (modify-phases %standard-phases
2319 (add-after 'unpack 'patch-sed-in
2321 (substitute* "sedsed.py"
2323 (string-append "sedbin = '" (which "sed") "'")))
2327 (lambda* (#:key outputs #:allow-other-keys)
2328 (let* ((out (assoc-ref outputs "out"))
2329 (bin (string-append out "/bin")))
2330 ;; Just one file to copy around
2331 (install-file "sedsed.py" bin)
2333 (add-after 'install 'symlink
2334 ;; Create 'sedsed' symlink to "sedsed.py".
2335 (lambda* (#:key outputs #:allow-other-keys)
2336 (let* ((out (assoc-ref outputs "out"))
2337 (bin (string-append out "/bin"))
2338 (sed (string-append bin "/sedsed"))
2339 (sedpy (string-append bin "/sedsed.py")))
2342 (home-page "http://aurelio.net/projects/sedsed")
2343 (synopsis "Sed sed scripts")
2345 "@code{sedsed} can debug, indent, tokenize and HTMLize your sed(1) script.
2347 In debug mode it reads your script and add extra commands to it. When
2348 executed you can see the data flow between the commands, revealing all the
2349 magic sed does on its internal buffers.
2351 In indent mode your script is reformatted with standard spacing.
2353 In tokenize mode you can see the elements of every command you use.
2355 In HTMLize mode your script is converted to a beautiful colored HTML file,
2356 with all the commands and parameters identified for your viewing pleasure.
2358 With sedsed you can master any sed script. No more secrets, no more hidden
2360 (license license:expat)))
2362 (define-public igt-gpu-tools
2364 (name "igt-gpu-tools")
2368 (uri (string-append "https://cgit.freedesktop.org/xorg/app/"
2369 "intel-gpu-tools/snapshot/"
2370 "igt-gpu-tools-" version ".tar.gz"))
2373 "0vzv2i4jfv2pkbqby5k3ap9pzidkmajwqmg3s7wnv8i1h33775iq"))))
2374 (build-system gnu-build-system)
2376 `(#:tests? #f ; many of the tests try to load kernel modules
2378 (modify-phases %standard-phases
2379 (add-after 'unpack 'autogen
2381 ;; Don't run configure in this phase.
2382 (setenv "NOCONFIGURE" "1")
2383 (invoke "sh" "autogen.sh"))))))
2390 ("libpciaccess" ,libpciaccess)
2391 ("libunwind" ,libunwind)
2392 ("libxrandr" ,libxrandr)
2393 ("openssl" ,openssl)
2395 ("util-macros" ,util-macros)))
2397 `(("autoconf" ,autoconf)
2398 ("automake" ,automake)
2399 ("libtool" ,libtool)
2400 ("pkg-config" ,pkg-config)))
2401 (home-page "https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/")
2402 (synopsis "Tools for development and testing of the Intel DRM driver")
2403 (description "IGT GPU Tools is a collection of tools for development and
2404 testing of the Intel DRM driver. There are many macro-level test suites that
2405 get used against the driver, including xtest, rendercheck, piglit, and
2406 oglconform, but failures from those can be difficult to track down to kernel
2407 changes, and many require complicated build procedures or specific testing
2408 environments to get useful results. Therefore, IGT GPU Tools includes
2409 low-level tools and tests specifically for development and testing of the
2411 (supported-systems '("i686-linux" "x86_64-linux"))
2412 (license license:expat)))
2414 (define-public intel-gpu-tools
2415 (deprecated-package "intel-gpu-tools" igt-gpu-tools))
2417 (define-public fabric
2424 (uri (pypi-uri "Fabric" version))
2427 "13r0b0hllgf8j9rh6x1knmbgvingbdmx046aazv6vck2ll120mw1"))))
2428 (build-system python-build-system)
2430 `(#:python ,python-2 ; Python 2 only
2432 (modify-phases %standard-phases
2436 "nosetests" "-v" "tests/"
2437 ;; This test hangs indefinitely when run on a single core VM
2438 ;; (see GNU bug #26647 and Debian bug #850230).
2439 "--exclude=test_nested_execution_with_explicit_ports"
2440 ;; This test randomly fails in certain environments causing too
2441 ;; much noise to be useful (see Debian bug #854686).
2442 "--exclude=test_should_use_sentinel_for_tasks_that_errored"))))))
2444 `(("python2-fudge" ,python2-fudge) ; Requires < 1.0
2445 ("python2-jinja2" ,python2-jinja2) ; Requires < 3.0
2446 ("python2-nose" ,python2-nose) ; Requires < 2.0
2447 ("python2-pynacl" ,python2-pynacl)
2448 ("python2-bcrypt" ,python2-bcrypt)))
2450 `(("python2-paramiko" ,python2-paramiko)))
2451 (home-page "http://fabfile.org")
2452 (synopsis "Simple Pythonic remote execution and deployment tool")
2454 "Fabric is designed to upload files and run shell commands on a number of
2455 servers in parallel or serially. These commands are grouped in tasks (which
2456 are regular Python functions) and specified in a @dfn{fabfile}.
2458 It is similar to Capistrano, except it's implemented in Python and doesn't
2459 expect you to be deploying Rails applications. Fabric is a simple, Pythonic
2460 tool for remote execution and deployment.")
2461 (license license:bsd-2)))
2463 (define-public neofetch
2470 (url "https://github.com/dylanaraps/neofetch")
2474 "0yzyi2p0d8xp576lxyv5m9h60dl1d5dmrn40aad307872835b9rr"))))
2475 (build-system gnu-build-system)
2477 `(#:tests? #f ; there are no tests
2479 (list (string-append "PREFIX=" %output))
2481 (modify-phases %standard-phases
2482 (delete 'configure)))) ; no configure script
2483 (home-page "https://github.com/dylanaraps/neofetch")
2484 (synopsis "System information script")
2485 (description "Neofetch is a command-line system information tool written in
2486 Bash. Neofetch displays information about your system next to an image, your OS
2487 logo, or any ASCII file of your choice. The main purpose of Neofetch is to be
2488 used in screenshots to show other users what operating system or distribution
2489 you are running, what theme or icon set you are using, etc.")
2490 (license license:expat)))
2499 (uri (string-append "https://github.com/jarun/nnn/releases/download/v"
2500 version "/nnn-v" version ".tar.gz"))
2502 (base32 "1d6z12y4rlg4dzhpm30irpq2ak8hjh5zykkp2n7vxnz5m4ki89zp"))))
2503 (build-system gnu-build-system)
2505 `(("ncurses" ,ncurses)
2506 ("readline" ,readline)))
2508 `(("pkg-config" ,pkg-config)))
2510 '(#:tests? #f ; no tests
2512 (modify-phases %standard-phases
2513 (delete 'configure)) ; no configure script
2516 (string-append "PREFIX="
2517 (assoc-ref %outputs "out"))
2519 (home-page "https://github.com/jarun/nnn")
2520 (synopsis "Terminal file browser")
2521 (description "@command{nnn} is a fork of @command{noice}, a blazing-fast
2522 lightweight terminal file browser with easy keyboard shortcuts for
2523 navigation, opening files and running tasks. There is no config file and
2524 mime associations are hard-coded. The incredible user-friendliness and speed
2525 make it a perfect utility on modern distros.")
2526 (license license:bsd-2)))
2528 (define-public thermald
2536 (url "https://github.com/01org/thermal_daemon")
2537 (commit (string-append "v" version))))
2538 (file-name (git-file-name name version))
2541 "1cs2pq8xvfnsvrhg2bxawk4kn3z1qmfrnpnhs178pvfbglzh15hc"))))
2542 (build-system gnu-build-system)
2545 (let ((out (assoc-ref %outputs "out")))
2546 (list (string-append "--sysconfdir="
2548 (string-append "--with-dbus-sys-dir="
2549 out "/etc/dbus-1/system.d")
2550 "--localstatedir=/var"))))
2552 `(("autoconf" ,autoconf)
2553 ("automake" ,automake)
2554 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
2555 ("pkg-config" ,pkg-config)))
2557 `(("dbus-glib" ,dbus-glib)
2558 ("libxml2" ,libxml2)))
2559 (home-page "https://01.org/linux-thermal-daemon/")
2560 (synopsis "CPU scaling for thermal management")
2561 (description "The Linux Thermal Daemon helps monitor and control temperature
2562 on systems running the Linux kernel.")
2563 ;; arm and aarch64 don't have cpuid.h.
2564 (supported-systems '("i686-linux" "x86_64-linux"))
2565 (license license:gpl2+)))
2567 (define-public masscan
2575 (url "https://github.com/robertdavidgraham/masscan.git")
2577 (file-name (git-file-name name version))
2579 (base32 "0q0c7bsf0pbl8napry1qyg0gl4pd8wn872h4mz9b56dx4rx90vqg"))))
2580 (build-system gnu-build-system)
2582 `(("libpcap" ,libpcap)))
2584 '(#:test-target "regress"
2587 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2589 (modify-phases %standard-phases
2590 (delete 'configure) ; no ./configure script
2591 (add-after 'unpack 'patch-path
2592 (lambda* (#:key outputs inputs #:allow-other-keys)
2593 (let* ((out (assoc-ref outputs "out"))
2594 (pcap (assoc-ref inputs "libpcap")))
2595 (substitute* "src/rawsock-pcap.c"
2596 (("libpcap.so") (string-append pcap "/lib/libpcap.so")))
2598 (synopsis "TCP port scanner")
2599 (description "MASSCAN is an asynchronous TCP port scanner. It can detect
2600 open ports, and also complete the TCP connection and interact with the remote
2601 application, collecting the information received.")
2602 (home-page "https://github.com/robertdavidgraham/masscan")
2603 ;; 'src/siphash24.c' is the SipHash reference implementation, which
2604 ;; bears a CC0 Public Domain Dedication.
2605 (license license:agpl3+)))
2607 (define-public hungrycat
2613 (uri (string-append "https://github.com/jwilk/hungrycat/"
2614 "releases/download/" version "/"
2615 "hungrycat-" version ".tar.gz"))
2618 "03fc1zsrf99lvxa7b4ps6pbi43304wbxh1f6ci4q0vkal370yfwh"))))
2619 (build-system gnu-build-system)
2622 `(("python" ,python-wrapper)
2623 ("python-nose" ,python-nose)))
2625 `(#:test-target "test"))
2626 (synopsis "A single tool that combines @command{cat} & @command{rm}")
2628 "hungrycat prints the contents of a file to standard output, while
2629 simultaneously freeing the disk space it occupied. It is useful if you need
2630 to process a large file, don't have enough space to store both the input and
2631 output files, and don't need the input file afterwards.
2632 While similar in principle to running @command{cat} immediately followed by
2633 @command{rm}, @command{hungrycat} actually frees blocks as soon as they are
2634 printed instead of after the entire file has been read, which is often too
2636 (home-page "https://jwilk.net/software/hungrycat")
2637 (license license:expat)))
2639 (define-public launchmon
2646 "https://github.com/LLNL/LaunchMON/releases/download/v"
2647 version "/launchmon-v" version ".tar.gz"))
2650 "0fm3nd9mydm9v2bf7bh01dbgrfnpwkapxa3dsvy3x1z0rz61qc0x"))))
2651 (build-system gnu-build-system)
2657 ("libgcrypt" ,libgcrypt)
2658 ("libgpg-error" ,libgpg-error)))
2659 (synopsis "Infrastructue for large scale tool daemon launching")
2661 "LaunchMON is a software infrastructure that enables HPC run-time
2662 tools to co-locate tool daemons with a parallel job. Its API allows a
2663 tool to identify all the remote processes of a job and to scalably
2664 launch daemons into the relevant nodes.")
2665 (home-page "https://github.com/LLNL/LaunchMON")
2666 (supported-systems '("i686-linux" "x86_64-linux"))
2667 (license license:lgpl2.1)))
2669 (define-public spindle
2674 ;; We use git checkout to avoid github auto-generated tarballs
2677 (url "https://github.com/hpc/Spindle.git")
2678 (commit (string-append "v" version))))
2679 (file-name (git-file-name name version))
2682 "15n3ay0qq81r5v7fif61q1vdjcq44pp2nynkh3fvbzc9fj3c39wd"))))
2683 (build-system gnu-build-system)
2684 (arguments '(#:configure-flags '("--enable-sec-launchmon"
2685 "--enable-sec-munge"
2686 "--enable-sec-none")))
2690 ("launchmon" ,launchmon)
2691 ("libgcrypt" ,libgcrypt)))
2692 (synopsis "Scalable library loading in HPC environments")
2694 "Spindle is a tool for improving the performance of dynamic library and
2695 Python loading in HPC environments.")
2696 (home-page "https://github.com/hpc/Spindle")
2697 ;; This package supports x86_64 and PowerPC64
2698 (supported-systems '("x86_64-linux"))
2699 (license license:lgpl2.1)))
2701 (define-public inxi-minimal
2702 (let ((real-name "inxi"))
2704 (name "inxi-minimal")
2705 (version "3.0.20-1")
2710 (url "https://github.com/smxi/inxi")
2714 "1k9148xnfznch1443niaa3w1kmsw4vp0xpwna6npgmi7zqg06ymy"))))
2715 (build-system trivial-build-system)
2728 (use-modules (guix build utils)
2731 (setenv "PATH" (string-append
2732 (assoc-ref %build-inputs "bash") "/bin" ":"
2733 (assoc-ref %build-inputs "gzip") "/bin" ":"
2734 (assoc-ref %build-inputs "perl") "/bin" ":"))
2735 (copy-recursively (assoc-ref %build-inputs "source")
2736 ,(string-append real-name "-" version))
2737 (with-directory-excursion ,(string-append real-name "-" version)
2738 (with-fluids ((%default-port-encoding #f))
2739 (substitute* "inxi" (("/usr/bin/env perl") (which "perl"))))
2740 (let ((bin (string-append %output "/bin")))
2741 (install-file "inxi" bin)
2742 (wrap-program (string-append bin "/inxi")
2745 ,@(map (lambda (input)
2749 (cut string-append store <>)))
2751 ((member name '("util-linux"))
2752 (string-append (store-append "/bin") ":"
2753 (store-append "/sbin")))
2754 ((member name '("dmidecode" "iproute2"))
2755 (store-append "/sbin"))
2756 (else (store-append "/bin")))))))
2762 (((? (cut string-prefix? "perl-" <>) name) . dir)
2763 (string-append dir "/lib/perl5/site_perl"))
2766 (invoke "gzip" "inxi.1")
2767 (install-file "inxi.1.gz"
2768 (string-append %output "/share/man/man1")))
2770 (home-page "https://smxi.org/docs/inxi.htm")
2771 (synopsis "Full-featured system information script")
2772 (description "Inxi is a system information script that can display
2773 various things about your hardware and software to users in an IRC chatroom or
2774 support forum. It runs with the @code{/exec} command in most IRC clients.")
2775 (license license:gpl3+))))
2779 (inherit inxi-minimal)
2782 `(("dmidecode" ,dmidecode)
2784 ("bind:utils" ,isc-bind "utils") ; dig
2786 ("iproute2" ,iproute) ; ip
2787 ("kmod" ,kmod) ; modinfo
2788 ("lm-sensors" ,lm-sensors)
2789 ("mesa-utils" ,mesa-utils)
2790 ("pciutils" ,pciutils)
2794 ("util-linux" ,util-linux) ; lsblk
2795 ("usbutils" ,usbutils) ; lsusb
2797 ("xdpyinfo" ,xdpyinfo)
2800 ("coreutils" ,coreutils) ; uptime
2801 ("inetutils" ,inetutils) ; ifconfig
2802 ("perl-cpanel-json-xs" ,perl-cpanel-json-xs)
2803 ("perl-http-tiny" ,perl-http-tiny)
2804 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
2805 ("perl-json-xs" ,perl-json-xs)
2806 ("perl-time-hires" ,perl-time-hires)
2807 ;; TODO: Add more inputs:
2812 ,@(package-inputs inxi-minimal)))))
2814 (define-public pscircle
2822 (url "https://gitlab.com/mildlyparallel/pscircle.git")
2823 (commit (string-append "v" version))))
2824 (file-name (git-file-name name version))
2827 "0qsif00dkqa8ky3vl2ycx5anx2yk62nrv47f5lrlqzclz91f00fx"))))
2828 (build-system meson-build-system)
2830 `(("pkg-config" ,pkg-config)))
2834 ("libx11" ,libx11)))
2835 (home-page "https://gitlab.com/mildlyparallel/pscircle")
2836 (synopsis "Visualize Linux processes in a form of radial tree")
2838 "@code{pscircle} visualizes Linux processes in the form of a radial tree.")
2839 (license license:gpl2+)))
2841 (define-public python-pyudev
2843 (name "python-pyudev")
2848 (uri (pypi-uri "pyudev" version))
2851 "0arz0dqp75sszsmgm6vhg92n1lsx91ihddx3m944f4ah0487ljq9"))))
2852 (build-system python-build-system)
2854 `(#:tests? #f ; Tests require /sys
2856 (modify-phases %standard-phases
2857 (add-after 'unpack 'patch-ctypes-udev
2858 (lambda* (#:key inputs outputs #:allow-other-keys)
2859 (let ((eudev (assoc-ref inputs "eudev")))
2860 (substitute* "src/pyudev/core.py"
2862 (string-append "'" eudev "/lib/libudev.so'")))
2863 (substitute* "src/pyudev/_ctypeslib/utils.py"
2864 ;; Use absolute paths instead of keys.
2865 (("= find_library") "= "))
2868 `(("eudev" ,eudev)))
2870 `(("python-six" ,python-six)))
2872 `(("python-docutils" ,python-docutils)
2873 ("python-hypothesis" ,python-hypothesis)
2874 ("python-mock" ,python-mock)
2875 ("python-pytest" ,python-pytest)
2876 ("python-sphinx" ,python-sphinx)))
2877 (home-page "http://pyudev.readthedocs.org/")
2878 (synopsis "Python udev binding")
2879 (description "This package provides @code{udev} bindings for Python.")
2880 (license license:lgpl2.1)))
2882 (define-public solaar
2889 (url "https://github.com/pwr/Solaar.git")
2891 (file-name (git-file-name name version))
2894 "085mfa13dap3wqik1dqlad0d7kff4rv7j4ljh99c7l8nhczkqgwm"))))
2895 (build-system python-build-system)
2898 (modify-phases %standard-phases
2899 (add-after 'unpack 'fix-prefix-detection
2901 (substitute* "setup.py"
2902 (("'--prefix' in sys\\.argv")
2903 "len([x.startswith('--prefix=') for x in sys.argv]) > 0"))
2907 (invoke "python" "setup.py" "build")))
2908 (add-before 'check 'setenv-PATH
2910 (setenv "PYTHONPATH" (string-append "lib:" (getenv "PYTHONPATH")))
2913 `(("python-pygobject" ,python-pygobject)
2914 ("python-pyudev" ,python-pyudev)))
2915 (home-page "https://smxi.org/docs/inxi.htm")
2916 (synopsis "Linux devices manager for the Logitech Unifying Receiver")
2917 (description "This package provides tools to manage clients of the
2918 Logitech Unifying Receiver.")
2919 (license license:gpl2)))
2921 (define-public lynis
2929 (url "https://github.com/CISOfy/lynis")
2931 (file-name (git-file-name name version))
2934 "1nv2dqd2k2n8mcdr6xl5g713xxkgvja6487by1wn4k0b416jij9i"))
2935 (modules '((guix build utils)))
2938 ;; Remove proprietary plugins. As of now, all plugins supplied with
2939 ;; lynis are proprietary. In the future, if free plugins are
2940 ;; provided, whitelist them from deletion.
2941 (for-each delete-file (find-files "plugins"))
2943 (build-system gnu-build-system)
2950 (url "https://github.com/CISOfy/lynis-sdk")
2951 (commit "3310aef4f2b3dd97d166c96ad0253c89c4ad390d")))
2952 (file-name (git-file-name "lynis-sdk" version))
2955 "0sqsrm5wal742yrwps8bqb8a8lxd93n4b93n3kkm1b30nbs25g7y"))))))
2958 (modify-phases %standard-phases
2960 (lambda* (#:key inputs outputs #:allow-other-keys)
2961 (substitute* "lynis"
2962 (("/usr/share/lynis")
2963 (string-append (assoc-ref outputs "out") "/share/lynis")))
2964 (substitute* "include/functions"
2965 (("/usr/local/etc/lynis")
2966 (string-append (assoc-ref outputs "out") "/etc/lynis")))
2970 (lambda* (#:key outputs #:allow-other-keys)
2971 (let ((out (assoc-ref outputs "out")))
2972 (install-file "lynis" (string-append out "/bin/"))
2973 (install-file "default.prf" (string-append out "/etc/lynis"))
2976 (copy-recursively dir (string-append out "/share/lynis/" dir)))
2977 (list "db" "include" "plugins"))
2978 (install-file "lynis.8" (string-append out "/share/man/man8"))
2981 (lambda* (#:key inputs #:allow-other-keys)
2982 (copy-recursively (assoc-ref inputs "lynis-sdk") "../lynis-sdk")
2983 (setenv "LANG" "en_US.UTF-8")
2984 (let ((lynis-dir (getcwd)))
2985 (with-directory-excursion "../lynis-sdk"
2986 (substitute* "config"
2987 (("\\.\\./lynis") lynis-dir))
2988 (substitute* "unit-tests/tests-language-translations.sh"
2989 (("\\.\\./lynis") lynis-dir))
2990 (invoke "sh" "lynis-devkit" "run" "unit-tests"))))))))
2991 (home-page "https://cisofy.com/lynis/")
2992 (synopsis "Security auditing tool")
2993 (description "Lynis is a security auditing tool. It performs an in-depth
2994 security scan and runs on the system itself. The primary goal is to test
2995 security defenses and provide tips for further system hardening. It will also
2996 scan for general system information, vulnerable software packages, and
2997 possible configuration issues.")
2998 (license license:gpl3+)))
3000 (define-public ngrep
3008 (url "https://github.com/jpr5/ngrep/")
3009 (commit (string-append "V" (string-replace-substring version "." "_")))))
3010 (file-name (git-file-name name version))
3013 "1x2fyd7wdqlj1r76ilal06cl2wmbz0ws6i3ys204sbjh1cj6dcl7"))))
3014 (build-system gnu-build-system)
3016 `(("libpcap" ,libpcap)))
3018 `(#:tests? #f ;; No tests.
3019 #:configure-flags (list (string-append "--with-pcap-includes="
3020 (assoc-ref %build-inputs "libpcap")
3022 (home-page "https://github.com/jpr5/ngrep/")
3023 (synopsis "Grep-like utility to search for network packets on an interface")
3024 (description "@command{ngrep} is like GNU grep applied to the network
3025 layer. It's a PCAP-based tool that allows you to specify an extended regular
3026 or hexadecimal expression to match against data payloads of packets. It
3027 understands many kinds of protocols, including IPv4/6, TCP, UDP, ICMPv4/6,
3028 IGMP and Raw, across a wide variety of interface types, and understands BPF
3029 filter logic in the same fashion as more common packet sniffing tools, such as
3030 tcpdump and snoop.")
3031 (license license:bsd-3)))