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
153 (uri (string-append "https://github.com/Xfennec/"
154 name "/archive/v" version ".tar.gz"))
156 (base32 "1wcanixfsi5k4i9h5vrnncgjdncalsdfqllrxibxwpgfnf20sji1"))
157 (file-name (string-append name "-" version ".tar.gz"))))
158 (build-system gnu-build-system)
160 `(("pkg-config" ,pkg-config)
163 `(("ncurses" ,ncurses)))
165 `(#:tests? #f ; There is no test suite.
166 #:make-flags (list "CC=gcc"
167 (string-append "PREFIX=" (assoc-ref %outputs "out")))
169 (modify-phases %standard-phases
170 (delete 'configure)))) ; There's no configure phase.
171 (home-page "https://github.com/Xfennec/progress")
172 (synopsis "Program to view the progress of the coreutils commands")
173 (description "A program that looks for coreutils basic commands (cp, mv,
174 dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
175 the percentage of copied data. It can also show estimated time and throughput,
176 and provides a \"top-like\" mode (monitoring).")
177 (license license:gpl3+)))
179 (define-public shepherd
185 (uri (string-append "https://alpha.gnu.org/gnu/shepherd/shepherd-"
189 "1wmciqml9yplnx1s4ynn00giqyk06rbrcsgvpjj2df47sawk2jp8"))))
190 (build-system gnu-build-system)
192 '(#:configure-flags '("--localstatedir=/var")))
194 `(("pkg-config" ,pkg-config)
196 ;; This is the Guile we use as a cross-compiler...
197 ("guile" ,guile-2.2)))
199 ;; ... and this is the one that appears in shebangs when cross-compiling.
200 `(("guile" ,guile-2.2)
202 ;; The 'shepherd' command uses Readline when used interactively. It's
203 ;; an unusual use case though, so we don't propagate it.
204 ("guile-readline" ,guile-readline)))
205 (synopsis "System service manager")
207 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
208 the execution of system services, replacing similar functionality found in
209 typical init systems. It provides dependency-handling through a convenient
210 interface and is based on GNU Guile.")
211 (license license:gpl3+)
212 (home-page "https://www.gnu.org/software/shepherd/")
213 (properties '((ftp-server . "alpha.gnu.org")))))
215 (define-public daemontools
222 "https://cr.yp.to/" name "/"
223 name "-" version ".tar.gz"))
226 "07scvw88faxkscxi91031pjkpccql6wspk4yrlnsbrrb5c0kamd5"))))
227 (build-system gnu-build-system)
229 `(#:tests? #f ;; No tests as far as I can tell.
231 (modify-phases %standard-phases
232 (add-after 'unpack 'chdir
234 (chdir ,(string-append name "-" version))
237 (add-before 'build 'patch
239 (substitute* "src/error.h"
240 (("extern int errno;")
241 "#include <errno.h>"))
245 (invoke "package/compile")))
247 (lambda* (#:key outputs #:allow-other-keys)
248 (let* ((out (assoc-ref outputs "out"))
249 (bin (string-append out "/bin")))
250 (for-each (lambda (file)
251 (install-file file bin))
252 (find-files "command")))
254 (synopsis "Tools for managing UNIX style services")
256 "@code{daemontools} is a collection of tools for managing UNIX
258 (license license:public-domain)
259 (home-page "https://cr.yp.to/daemontools.html")))
269 "https://projects.gw-computing.net/attachments/download/615/dfc-"
273 "0m1fd7l85ckb7bq4c5c3g257bkjglm8gq7x42pkmpp87fkknc94n"))))
274 (build-system cmake-build-system)
275 (arguments '(#:tests? #f)) ; There are no tests.
276 (native-inputs `(("gettext" ,gettext-minimal)))
277 (home-page "https://projects.gw-computing.net/projects/dfc")
278 (synopsis "Display file system space usage using graphs and colors")
280 "dfc (df color) is a modern version of df. It uses colors, draws pretty
281 graphs and can export its output to different formats.")
282 (license license:bsd-3)))
290 (uri (string-append "http://hisham.hm/htop/releases/"
291 version "/htop-" version ".tar.gz"))
294 "0mrwpb3cpn3ai7ar33m31yklj64c3pp576vh1naqff6f21pq5mnr"))))
295 (build-system gnu-build-system)
297 `(("ncurses" ,ncurses)))
299 `(("python" ,python-minimal-wrapper))) ; for scripts/MakeHeader.py
300 (home-page "https://hisham.hm/htop/")
301 (synopsis "Interactive process viewer")
303 "This is htop, an interactive process viewer. It is a text-mode
304 application (for console or X terminals) and requires ncurses.")
305 (license license:gpl2)))
314 (uri (string-append "mirror://gnu/pies/pies-"
318 "12r7rjjyibjdj08dvwbp0iflfpzl4s0zhn6cr6zj3hwf9gbzgl1g"))))
319 (build-system gnu-build-system)
321 '(#:phases (modify-phases %standard-phases
322 (add-before 'build 'patch-/bin/sh
323 (lambda* (#:key inputs #:allow-other-keys)
324 ;; Use the right shell when executing user-provided
326 (let ((bash (assoc-ref inputs "bash")))
327 (substitute* "src/progman.c"
329 (string-append "\"" bash "/bin/sh\"")))
331 (home-page "https://www.gnu.org/software/pies/")
332 (synopsis "Program invocation and execution supervisor")
334 "GNU pies is a program that supervises the invocation and execution of
335 other programs. It reads the list of programs to be started from its
336 configuration file, executes them, and then monitors their status,
337 re-executing them as necessary.")
338 (license license:gpl3+)))
340 (define-public inetutils
346 (uri (string-append "mirror://gnu/inetutils/inetutils-"
350 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
351 (build-system gnu-build-system)
353 `(#:configure-flags '("--localstatedir=/var"
355 ;; Make sure 'PATH_PROCNET_DEV' gets defined when
356 ;; cross-compiling (by default it does not.)
357 ,@(if (%current-target-system)
358 '("--with-path-procnet-dev=/proc/net/dev")
360 ;; On some systems, 'libls.sh' may fail with an error such as:
361 ;; "Failed to tell switch -a apart from -A".
362 #:parallel-tests? #f))
363 (inputs `(("ncurses" ,ncurses)
364 ("readline" ,readline))) ;for 'ftp'
365 (native-inputs `(("netstat" ,net-tools))) ;for tests
366 (home-page "https://www.gnu.org/software/inetutils/")
367 (synopsis "Basic networking utilities")
369 "Inetutils is a collection of common network programs, such as an ftp
370 client and server, a telnet client and server, an rsh client and server, and
372 (license license:gpl3+)))
374 (define-public shadow
381 "https://github.com/shadow-maint/shadow/releases/"
382 "download/" version "/shadow-" version ".tar.xz"))
385 "10smy01km2bqjjvsd2jz17zvrxbzj89qczyb1amk38j28bcci609"))))
386 (build-system gnu-build-system)
388 `(;; Assume System V `setpgrp (void)', which is the default on GNU
389 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
391 '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
394 (modify-phases %standard-phases
395 (add-before 'build 'set-nscd-file-name
396 (lambda* (#:key inputs #:allow-other-keys)
397 ;; Use the right file name for nscd.
398 (let ((libc (assoc-ref inputs
399 ,(if (%current-target-system)
402 (substitute* "lib/nscd.c"
404 (string-append libc "/sbin/nscd")))
406 (add-after 'install 'remove-groups
407 (lambda* (#:key outputs #:allow-other-keys)
408 ;; Remove `groups', which is already provided by Coreutils.
409 (let* ((out (assoc-ref outputs "out"))
410 (bin (string-append out "/bin"))
411 (man (string-append out "/share/man")))
412 (delete-file (string-append bin "/groups"))
413 (for-each delete-file (find-files man "^groups\\."))
416 (inputs (if (string-contains (or (%current-target-system)
419 `(("linux-pam" ,linux-pam))
421 (home-page "http://pkg-shadow.alioth.debian.org/")
422 (synopsis "Authentication-related tools such as passwd, su, and login")
424 "Shadow provides a number of authentication-related tools, including:
425 login, passwd, su, groupadd, and useradd.")
427 ;; The `vipw' program is GPLv2+.
428 ;; libmisc/salt.c is public domain.
429 (license license:bsd-3)))
431 (define-public mingetty
437 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
438 version "/mingetty-" version ".tar.gz"))
441 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
442 (build-system gnu-build-system)
445 (modify-phases %standard-phases
447 (lambda* (#:key inputs outputs #:allow-other-keys)
448 (let* ((out (assoc-ref outputs "out"))
449 (man8 (string-append out "/share/man/man8"))
450 (sbin (string-append out "/sbin"))
451 (shadow (assoc-ref inputs "shadow"))
452 (login (string-append shadow "/bin/login")))
453 (substitute* "Makefile"
455 (string-append "SBINDIR = " out
458 (string-append "MANDIR = " out
459 "/share/man/man8\n")))
461 ;; Pick the right 'login' by default.
462 (substitute* "mingetty.c"
464 (string-append "\"" login "\"")))
469 #:tests? #f)) ; no tests
470 (inputs `(("shadow" ,shadow)))
472 (home-page "https://sourceforge.net/projects/mingetty")
473 (synopsis "Getty for the text console")
475 "Small console getty that is started on the Linux text console,
476 asks for a login name and then transfers over to 'login'. It is extended to
477 allow automatic login and starting any app.")
478 (license license:gpl2+)))
480 (define-public net-base
487 "mirror://debian/pool/main/n/netbase/netbase_"
491 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
492 (build-system trivial-build-system)
494 `(#:modules ((guix build utils))
496 (use-modules (guix build utils)
499 (let* ((source (assoc-ref %build-inputs "source"))
500 (tar (assoc-ref %build-inputs "tar"))
501 (xz (assoc-ref %build-inputs "xz"))
502 (output (assoc-ref %outputs "out"))
503 (etc (string-append output "/etc")))
504 (setenv "PATH" (string-append xz "/bin"))
505 (invoke (string-append tar "/bin/tar") "xvf"
507 (chdir ,(string-append "netbase-" version))
510 '("etc-services" "etc-protocols" "etc-rpc")
511 (map (cut string-append etc "/" <>)
512 '("services" "protocols" "rpc")))
514 (native-inputs `(("tar" ,tar)
516 (synopsis "IANA protocol, port, and RPC number assignments")
518 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
519 files, which contain information about the IANA-assigned port, protocol, and
521 (home-page "https://packages.debian.org/sid/netbase")
522 (license license:gpl2)))
524 (define-public netcat
530 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
531 "/netcat-" version ".tar.bz2"))
534 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
535 (build-system gnu-build-system)
538 ;; By default, man and info pages are put in PREFIX/{man,info},
539 ;; but we want them in PREFIX/share/{man,info}.
540 (let ((out (assoc-ref %outputs "out")))
541 (list (string-append "--mandir=" out "/share/man")
542 (string-append "--infodir=" out "/share/info")))))
543 (home-page "http://netcat.sourceforge.net")
544 (synopsis "Read and write data over TCP/IP")
546 "Netcat is a featured networking utility which reads and writes data
547 across network connections, using the TCP/IP protocol. It is designed to be a
548 reliable \"back-end\" tool that can be used directly or easily driven by other
549 programs and scripts. At the same time, it is a feature-rich network debugging
550 and exploration tool, since it can create almost any kind of connection you
551 would need and has several interesting built-in capabilities.")
552 (license license:gpl2+)))
554 (define-public sipcalc
561 (uri (string-append "http://www.routemeister.net/projects"
562 "/sipcalc/files/sipcalc" "-" version ".tar.gz"))
565 "0mv3wndj4z2bsshh2k8d5sy3j8wxzgf8mzmmkvj1k8gpcz37dm6g"))))
566 (build-system gnu-build-system)
567 (home-page "http://www.routemeister.net/projects/sipcalc/")
568 (synopsis "Command-line IP subnet calculator")
570 "Sipcalc is an advanced command-line IP subnet calculator. It can take
571 multiple forms of input (IPv4/IPv6/interface/hostname) and output a multitude
572 of information about a given subnet.
579 @item Retrieving of address information from interfaces.
580 @item Classfull and CIDR output.
581 @item Multiple address and netmask input and output formats (dotted quad, hex,
583 @item Output of broadcast address, network class, Cisco wildcard,
584 hosts/range, network range.
585 @item The ability to split a network based on a smaller netmask, now also with
586 recursive runs on the generated subnets. (also IPv6)
590 @item Compressed and expanded input and output addresses.
591 @item Standard IPv6 network output.
592 @item v4 in v6 output.
593 @item Reverse DNS address generation.
596 (license license:bsd-3)))
604 (uri (string-append "mirror://gnu/alive/alive-"
608 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
609 (build-system gnu-build-system)
610 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
611 (inputs `(("guile" ,guile-2.0)
612 ("inetutils" ,inetutils)))
613 (home-page "https://www.gnu.org/software/alive/")
614 (synopsis "Autologin and keep-alive daemon")
616 "GNU Alive sends periodic pings to a server, generally to keep a
618 (license license:gpl3+)))
620 (define-public isc-dhcp
621 (let* ((bind-major-version "9")
622 (bind-minor-version "11")
623 (bind-patch-version "4")
624 (bind-release-type "-P") ; for patch release, use "-P"
625 (bind-release-version "2") ; for patch release, e.g. "6"
626 (bind-version (string-append bind-major-version
632 bind-release-version)))
638 (uri (string-append "https://ftp.isc.org/isc/dhcp/"
639 version "/dhcp-" version ".tar.gz"))
642 "025nfqx4zwdgv4b3rkw26ihcj312vir08jk6yi57ndmb4a4m08ia"))))
643 (build-system gnu-build-system)
645 `(#:parallel-build? #f
647 (modify-phases %standard-phases
648 (add-after 'unpack 'replace-bundled-bind
649 (lambda* (#:key inputs #:allow-other-keys)
650 (delete-file "bind/bind.tar.gz")
651 (copy-file (assoc-ref inputs "bind-source-tarball")
653 (chmod "bind/bind.tar.gz" #o644)
654 (substitute* "bind/version.tmp"
656 (format #f "MAJORVER=~a\n" ,bind-major-version))
658 (format #f "MINORVER=~a\n" ,bind-minor-version))
660 (format #f "PATCHVER=~a\n" ,bind-patch-version))
662 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
664 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
666 (add-after 'configure 'post-configure
667 (lambda* (#:key outputs #:allow-other-keys)
668 ;; Point to the right client script, which will be
669 ;; installed in a later phase.
670 (substitute* "includes/dhcpd.h"
671 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
672 (let ((out (assoc-ref outputs "out")))
673 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
674 out "/libexec/dhclient-script"
677 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
678 ;; we must patch shebangs in there and make sure the right
680 (with-directory-excursion "bind"
681 (substitute* "Makefile"
683 (let ((sh (which "sh")))
684 (string-append "./configure CONFIG_SHELL="
687 (let ((bind-directory (string-append "bind-" ,bind-version)))
688 (invoke "tar" "xf" "bind.tar.gz")
689 (for-each patch-shebang
690 (find-files bind-directory ".*"))
691 (invoke "tar" "cf" "bind.tar.gz"
693 ;; avoid non-determinism in the archive
697 "--group=root:0")))))
698 (add-after 'install 'post-install
699 (lambda* (#:key inputs outputs #:allow-other-keys)
700 ;; Install the dhclient script for GNU/Linux and make sure
701 ;; if finds all the programs it needs.
702 (let* ((out (assoc-ref outputs "out"))
703 (libexec (string-append out "/libexec"))
704 (coreutils (assoc-ref inputs "coreutils"))
705 (inetutils (assoc-ref inputs "inetutils"))
706 (net-tools (assoc-ref inputs "net-tools"))
707 (sed (assoc-ref inputs "sed")))
708 (substitute* "client/scripts/linux"
710 (string-append (assoc-ref inputs "iproute")
714 (copy-file "client/scripts/linux"
715 (string-append libexec "/dhclient-script"))
718 (string-append libexec "/dhclient-script")
721 (string-append dir "/bin:"
723 (list inetutils net-tools coreutils sed))))
726 (native-inputs `(("perl" ,perl)))
728 (inputs `(("inetutils" ,inetutils)
729 ("net-tools" ,net-tools)
732 ;; XXX isc-dhcp bundles a copy of bind that has security
733 ;; flaws, so we use a newer version.
734 ("bind-source-tarball"
737 (uri (string-append "https://ftp.isc.org/isc/bind9/"
739 "/bind-" bind-version ".tar.gz"))
742 "04fq17zksd2b3w6w6padps5n7b6s2lasxpksbhl4378h56vgfnm8"))))
744 ;; When cross-compiling, we need the cross Coreutils and sed.
745 ;; Otherwise just use those from %FINAL-INPUTS.
746 ,@(if (%current-target-system)
747 `(("coreutils" ,coreutils)
751 (home-page "https://www.isc.org/products/DHCP/")
752 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
754 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
755 reference implementation of all aspects of DHCP, through a suite of DHCP
756 tools: server, client, and relay agent.")
757 (license license:mpl2.0)
758 (properties '((cpe-name . "dhcp"))))))
760 (define-public libpcap
766 (uri (string-append "https://www.tcpdump.org/release/libpcap-"
770 "06bhydl4vr4z9c3vahl76f2j96z1fbrcl7wwismgs4sris08inrf"))))
771 (build-system gnu-build-system)
776 ;; There are some tests in testprogs/, but no automated test suite.
778 (home-page "https://www.tcpdump.org")
779 (synopsis "Network packet capture library")
781 "libpcap is an interface for user-level packet capture. It provides a
782 portable framework for low-level network monitoring. Applications include
783 network statistics collection, security monitoring, network debugging, etc.")
784 (license (list license:bsd-4 ; fad-*.c and several other source files
785 license:bsd-3 ; pcap/, sockutils.* & others
786 license:bsd-2)))) ; the rest
788 (define-public tcpdump
794 (uri (string-append "https://www.tcpdump.org/release/tcpdump-"
798 "0ygy0layzqaj838r5xd613iraz09wlfgpyh7pc6cwclql8v3b2vr"))))
799 (build-system gnu-build-system)
800 (inputs `(("libpcap" ,libpcap)
801 ("openssl" ,openssl)))
802 (native-inputs `(("perl" ,perl))) ; for tests
803 (home-page "https://www.tcpdump.org/")
804 (synopsis "Network packet analyzer")
806 "Tcpdump is a command-line tool to analyze network traffic passing
807 through the network interface controller.")
808 (license license:bsd-3)))
810 (define-public jnettop
816 (uri (string-append "http://jnettop.kubs.info/dist/jnettop-"
820 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
821 (build-system gnu-build-system)
823 `(("pkg-config" ,pkg-config)))
827 ("libpcap" ,libpcap)))
828 (home-page "http://jnettop.kubs.info/")
829 (synopsis "Visualize network traffic by bandwidth use")
831 "Jnettop is a traffic visualiser, which captures traffic going
832 through the host it is running from and displays streams sorted
833 by bandwidth they use.")
834 (license license:gpl2+)))
836 (define-public clusterssh
842 (uri (string-append "mirror://sourceforge/clusterssh/"
843 "2.%20ClusterSSH%20Series%204/"
844 "App-ClusterSSH-v" version ".tar.gz"))
847 "0rmk2p3f2wz1h092anidjclh212rv3gxyk0c641qk3frlrjnw6mp"))))
848 (build-system perl-build-system)
850 `(("perl-cpan-changes" ,perl-cpan-changes)
851 ("perl-file-slurp" ,perl-file-slurp)
852 ("perl-file-which" ,perl-file-which)
853 ("perl-module-build" ,perl-module-build)
854 ("perl-readonly" ,perl-readonly)
855 ("perl-test-differences" ,perl-test-differences)
856 ("perl-test-distmanifest" ,perl-test-distmanifest)
857 ("perl-test-perltidy" ,perl-test-perltidy)
858 ("perl-test-pod" ,perl-test-pod)
859 ("perl-test-pod-coverage" ,perl-test-pod-coverage)
860 ("perl-test-trap" ,perl-test-trap)
861 ("perltidy" ,perltidy)))
864 ("perl-exception-class" ,perl-exception-class)
866 ("perl-try-tiny" ,perl-try-tiny)
867 ("perl-x11-protocol" ,perl-x11-protocol)
868 ("perl-x11-protocol-other" ,perl-x11-protocol-other)))
869 ;; The clusterssh.sourceforge.net address requires login to view
870 (home-page "https://sourceforge.net/projects/clusterssh/")
871 (synopsis "Secure concurrent multi-server terminal control")
873 "ClusterSSH controls a number of xterm windows via a single graphical
874 console window to allow commands to be interactively run on multiple servers
875 over ssh connections.")
876 (license license:gpl2+)))
878 (define-public rename
885 "mirror://cpan/authors/id/R/RM/RMBARKER/File-Rename-"
889 "03yhf8nmqsb0zyliv501fdvwlp589jqfn44yqkrflmpzrbik3zxl"))))
890 (build-system perl-build-system)
893 (modify-phases %standard-phases
894 (add-after 'install 'find-itself
895 ;; Fix run-time 'Can't locate File/Rename.pm in @INC' failure.
896 (lambda* (#:key outputs #:allow-other-keys)
897 (let* ((out (assoc-ref outputs "out"))
898 (bin (string-append out "/bin")))
899 (with-directory-excursion bin
902 (wrap-program program
903 `("PERL5LIB" ":" prefix
904 (,(string-append out "/lib/perl5/site_perl")))))
905 (find-files "." ".*")))
908 `(("perl-module-build" ,perl-module-build)
909 ("perl-test-pod" ,perl-test-pod)
910 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
911 (home-page "https://metacpan.org/pod/distribution/File-Rename/rename.PL")
912 (synopsis "Perl extension for renaming multiple files")
914 "This package provides a Perl interface (@code{Perl::Rename}) as well
915 as a command-line utility (@command{rename}) that can rename multiple files
916 at once based on a Perl regular expression.")
917 (license license:perl-license)))
919 (define-public rottlog
925 (uri (string-append "mirror://gnu/rottlog/rottlog-"
929 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
930 (modules '((guix build utils)))
933 (substitute* "Makefile.in"
934 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
935 ;; Don't try to chown root.
937 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
938 ;; Don't attempt to create /var/lib/rottlog.
941 (build-system gnu-build-system)
943 '(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
944 "--localstatedir=/var")
946 ;; Install example config files in OUT/etc.
947 #:make-flags (list (string-append "ROTT_ETCDIR="
948 (assoc-ref %outputs "out")
951 #:phases (modify-phases %standard-phases
952 (add-after 'unpack 'patch-paths
955 (("/usr/sbin/sendmail") "sendmail"))
957 (add-after 'build 'set-packdir
959 ;; Set a default location for archived logs.
962 "packdir=\"/var/log\""))
964 (add-before 'install 'tweak-rc-weekly
966 (substitute* "rc/weekly"
970 ;; The file is called 'syslog.pid' (no 'd').
973 (add-after 'install 'install-info
975 (invoke "make" "install-info"))))))
976 (native-inputs `(("texinfo" ,texinfo)
977 ("util-linux" ,util-linux))) ; for 'cal'
978 (home-page "https://www.gnu.org/software/rottlog/")
979 (synopsis "Log rotation and management")
981 "GNU Rot[t]log is a program for managing log files. It is used to
982 automatically rotate out log files when they have reached a given size or
983 according to a given schedule. It can also be used to automatically compress
984 and archive such logs. Rot[t]log will mail reports of its activity to the
985 system administrator.")
986 (license license:gpl3+)))
995 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
997 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
1001 "1h1f7v9pv0rzp14cxzv8kaa8mdd717fbqv83l7c5dvvi8jwnisvv"))
1002 (modules '((guix build utils)))
1005 (delete-file-recursively "lib/zlib")
1007 (build-system gnu-build-system)
1010 (list "--with-logpath=/var/log/sudo.log"
1011 "--with-rundir=/var/run/sudo" ; must be cleaned up at boot time
1012 "--with-vardir=/var/db/sudo"
1013 "--with-iologdir=/var/log/sudo-io"
1015 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
1017 (string-append "CPPFLAGS=-D_PATH_MV='\""
1018 (assoc-ref %build-inputs "coreutils")
1021 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
1022 #:parallel-build? #f
1025 (modify-phases %standard-phases
1026 (add-before 'configure 'pre-configure
1028 (substitute* "src/sudo_usage.h.in"
1029 ;; Do not capture 'configure' arguments since we would
1030 ;; unduly retain references, and also because the
1031 ;; CPPFLAGS above would close the string literal
1033 (("@CONFIGURE_ARGS@") "\"\""))
1034 (substitute* (find-files "." "Makefile\\.in")
1035 (("-o [[:graph:]]+ -g [[:graph:]]+")
1036 ;; Allow installation as non-root.
1038 (("^install: (.*)install-sudoers(.*)" _ before after)
1039 ;; Don't try to create /etc/sudoers.
1040 (string-append "install: " before after "\n"))
1041 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
1042 ;; Don't try to create /run/sudo.
1044 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
1045 ;; Don't try to create /var/db/sudo.
1049 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
1050 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
1054 ("linux-pam" ,linux-pam)
1056 ("coreutils" ,coreutils)))
1057 (home-page "https://www.sudo.ws/")
1058 (synopsis "Run commands as root")
1060 "Sudo (su \"do\") allows a system administrator to delegate authority to
1061 give certain users (or groups of users) the ability to run some (or all)
1062 commands as root or another user while providing an audit trail of the
1063 commands and their arguments.")
1065 ;; See <http://www.sudo.ws/sudo/license.html>.
1066 (license license:x11)))
1068 (define-public wpa-supplicant-minimal
1070 (name "wpa-supplicant-minimal")
1075 "https://w1.fi/releases/wpa_supplicant-"
1078 (patches (search-patches "wpa-supplicant-CVE-2017-13082.patch"
1079 "wpa-supplicant-CVE-2018-14526.patch"
1080 "wpa-supplicant-fix-key-reuse.patch"
1081 "wpa-supplicant-fix-zeroed-keys.patch"
1082 "wpa-supplicant-fix-nonce-reuse.patch"
1083 "wpa-supplicant-krack-followups.patch"))
1086 "0l0l5gz3d5j9bqjsbjlfcv4w4jwndllp9fmyai4x9kg6qhs6v4xl"))))
1087 (build-system gnu-build-system)
1090 (modify-phases %standard-phases
1092 (lambda* (#:key outputs #:allow-other-keys)
1093 (chdir "wpa_supplicant")
1094 (copy-file "defconfig" ".config")
1095 (let ((port (open-file ".config" "al")))
1097 CONFIG_DEBUG_SYSLOG=y
1099 # Choose GnuTLS (the default is OpenSSL.)
1102 CONFIG_DRIVER_NL80211=y
1103 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
1105 CONFIG_READLINE=y\n" port)
1108 (add-after 'install 'install-man-pages
1109 (lambda* (#:key outputs #:allow-other-keys)
1110 (let* ((out (assoc-ref outputs "out"))
1111 (man (string-append out "/share/man"))
1112 (man5 (string-append man "/man5"))
1113 (man8 (string-append man "/man8")))
1114 (define (copy-man-page target)
1116 (install-file file target)))
1118 (mkdir-p man5) (mkdir man8)
1119 (for-each (copy-man-page man5)
1120 (find-files "doc/docbook" "\\.5"))
1121 (for-each (copy-man-page man8)
1122 (find-files "doc/docbook" "\\.8"))
1125 #:make-flags (list "CC=gcc"
1126 (string-append "BINDIR=" (assoc-ref %outputs "out")
1128 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1132 `(("readline" ,readline)
1135 ("libgcrypt" ,libgcrypt))) ;needed by crypto_gnutls.c
1137 `(("pkg-config" ,pkg-config)))
1138 (home-page "https://w1.fi/wpa_supplicant/")
1139 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
1141 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
1142 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
1143 the client stations. It implements key negotiation with a WPA Authenticator
1144 and it controls the roaming and IEEE 802.11 authentication/association of the
1147 This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
1149 ;; In practice, this is linked against Readline, which makes it GPLv3+.
1150 (license license:bsd-3)))
1152 (define-public wpa-supplicant
1153 (package (inherit wpa-supplicant-minimal)
1154 (name "wpa-supplicant")
1155 (inputs `(("dbus" ,dbus)
1156 ,@(package-inputs wpa-supplicant-minimal)))
1158 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
1160 `(modify-phases ,phases
1161 (add-after 'configure 'configure-for-dbus
1163 (let ((port (open-file ".config" "al")))
1165 CONFIG_CTRL_IFACE_DBUS=y
1166 CONFIG_CTRL_IFACE_DBUS_NEW=y
1167 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
1170 (add-after 'install-man-pages 'install-dbus-conf
1171 (lambda* (#:key outputs #:allow-other-keys)
1172 (let* ((out (assoc-ref outputs "out"))
1173 (dir (string-append out "/etc/dbus-1/system.d")))
1175 (copy-file "dbus/dbus-wpa_supplicant.conf"
1176 (string-append dir "/wpa_supplicant.conf")))
1179 (define-public wpa-supplicant-gui
1181 (inherit wpa-supplicant)
1182 (name "wpa-supplicant-gui")
1183 (inputs `(("qtbase" ,qtbase)
1185 ,@(package-inputs wpa-supplicant)))
1188 `(("imagemagick" ,imagemagick)
1189 ("inkscape" ,inkscape)
1190 ,@(package-native-inputs wpa-supplicant)))
1192 `(#:phases (modify-phases %standard-phases
1193 (add-after 'unpack 'chdir
1195 (chdir "wpa_supplicant/wpa_gui-qt4")
1200 (invoke "qmake" "wpa_gui.pro")
1201 (invoke "make" "-j" (number->string (parallel-job-count)))
1202 (invoke "make" "-C" "icons")))
1204 (lambda* (#:key inputs outputs #:allow-other-keys)
1205 (let ((out (assoc-ref outputs "out"))
1206 (qt '("qtbase" "qtsvg")))
1207 (install-file "wpa_gui" (string-append out "/bin"))
1208 (install-file "wpa_gui.desktop"
1209 (string-append out "/share/applications"))
1210 (copy-recursively "icons/hicolor"
1211 (string-append out "/share/icons/hicolor"))
1212 (wrap-program (string-append out "/bin/wpa_gui")
1213 `("QT_PLUGIN_PATH" ":" prefix
1214 ,(map (lambda (label)
1215 (string-append (assoc-ref inputs label)
1216 "/lib/qt5/plugins/"))
1219 (synopsis "Graphical user interface for WPA supplicant")))
1221 (define-public wakelan
1228 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
1232 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
1233 (build-system gnu-build-system)
1236 (modify-phases %standard-phases
1238 (lambda* (#:key outputs #:allow-other-keys)
1239 (let ((out (assoc-ref outputs "out")))
1240 (mkdir-p (string-append out "/bin"))
1241 (mkdir-p (string-append out "/share/man/man1"))
1243 ;; It's an old configure script that doesn't understand
1244 ;; the extra options we pass.
1245 (setenv "CONFIG_SHELL" (which "bash"))
1246 (invoke "./configure"
1247 (string-append "--prefix=" out)
1248 (string-append "--mandir=" out
1251 (home-page "https://www.kernel.org") ; really, no home page
1252 (synopsis "Send a wake-on-LAN packet")
1254 "WakeLan broadcasts a properly formatted UDP packet across the local area
1255 network, which causes enabled computers to power on.")
1256 (license license:gpl2+)))
1258 (define-public dmidecode
1265 "mirror://savannah/dmidecode/dmidecode-"
1269 "1pcfhcgs2ifdjwp7amnsr3lq95pgxpr150bjhdinvl505px0cw07"))))
1270 (build-system gnu-build-system)
1272 '(#:phases (modify-phases %standard-phases (delete 'configure))
1273 #:tests? #f ; no 'check' target
1274 #:make-flags (list (string-append "prefix="
1275 (assoc-ref %outputs "out")))))
1276 (home-page "https://www.nongnu.org/dmidecode/")
1277 (synopsis "Read hardware information from the BIOS")
1279 "Dmidecode reports information about your system's hardware as described
1280 in your system BIOS according to the SMBIOS/DMI standard. This typically
1281 includes system manufacturer, model name, serial number, BIOS version, asset
1282 tag as well as a lot of other details of varying level of interest and
1283 reliability depending on the manufacturer. This will often include usage
1284 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1285 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1286 (license license:gpl2+)))
1288 (define-public acpica
1291 (version "20180810")
1295 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1299 "01drf32h0v1s8yd414rgc9bavb52yffrwpnbzfxd9sk1lwssr6v7"))))
1300 (build-system gnu-build-system)
1301 (native-inputs `(("flex" ,flex)
1304 '(#:make-flags (list (string-append "PREFIX=" %output)
1307 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1308 #:tests? #f ; no 'check' target
1309 #:phases (modify-phases %standard-phases (delete 'configure))))
1310 (home-page "https://acpica.org/")
1311 (synopsis "Tools for the development and debug of ACPI tables")
1313 "The ACPI Component Architecture (@dfn{ACPICA}) project provides an
1314 OS-independent reference implementation of the Advanced Configuration and
1315 Power Interface Specification (@dfn{ACPI}). ACPICA code contains those portions
1316 of ACPI meant to be directly integrated into the host OS as a kernel-resident
1317 subsystem, and a small set of tools to assist in developing and debugging ACPI
1318 tables. This package contains only the user-space tools needed for ACPI table
1319 development, not the kernel implementation of ACPI.")
1320 (license license:gpl2))) ; dual GPLv2/ACPICA Licence
1322 (define-public stress
1328 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1329 version ".orig.tar.gz"))
1332 "0nw210jajk38m3y7h8s130ps2qsbz7j75wab07hi2r3hlz14yzh5"))))
1333 (build-system gnu-build-system)
1334 (home-page "https://packages.debian.org/sid/stress")
1335 (synopsis "Impose load on and stress test a computer system")
1337 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
1338 or disk stress on a POSIX-compliant operating system and reports any errors it
1341 Stress is not a benchmark. It is a tool used by system administrators to
1342 evaluate how well their systems will scale, by kernel programmers to evaluate
1343 perceived performance characteristics, and by systems programmers to expose
1344 the classes of bugs which only or more frequently manifest themselves when the
1345 system is under heavy load.")
1346 (license license:gpl2+)))
1348 (define-public detox
1355 (url "https://github.com/dharple/detox.git")
1356 (commit (string-append "v" version))))
1359 "1dd608c7g65s5lj02cddvani3q9kzirddgkjqa22ap9d4f8b9xgr"))))
1360 (build-system gnu-build-system)
1362 `(("autoconf" ,autoconf)
1363 ("automake" ,automake)
1366 `(#:tests? #f ;no 'check' target
1367 #:phases (modify-phases %standard-phases
1368 (add-after 'unpack 'delete-configure
1369 ;; The "configure" script is present, but otherwise the
1370 ;; project is not bootstrapped: missing install-sh and
1371 ;; Makefile.in, so delete it so the bootstrap phase will
1373 (lambda _ (delete-file "configure") #t)))))
1374 (home-page "https://github.com/dharple/detox")
1375 (synopsis "Clean up file names")
1377 "Detox is a program that renames files to make them easier to work with
1378 under Unix and related operating systems. Spaces and various other unsafe
1379 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1380 characters can be replaced as well, as can UTF-8 characters.")
1381 (license license:bsd-3)))
1383 (define-public testdisk
1389 (uri (string-append "http://www.cgsecurity.org/testdisk-"
1390 version ".tar.bz2"))
1393 "0ba4wfz2qrf60vwvb1qsq9l6j0pgg81qgf7fh22siaz649mkpfq0"))))
1394 (build-system gnu-build-system)
1396 `(("ntfs-3g" ,ntfs-3g)
1397 ("util-linux" ,util-linux)
1398 ("openssl" ,openssl)
1399 ;; FIXME: add reiserfs
1401 ("e2fsprogs" ,e2fsprogs)
1402 ("libjpeg" ,libjpeg)
1403 ("ncurses" ,ncurses)))
1404 (home-page "https://www.cgsecurity.org/wiki/TestDisk")
1405 (synopsis "Data recovery tool")
1407 "TestDisk is a program for data recovery, primarily designed to help
1408 recover lost partitions and/or make non-booting disks bootable again.")
1409 (license license:gpl2+)))
1418 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1421 (base32 "1hmpz6k0mr6salv0nprvm1g0rdjva1kx03bdf1scw8a38d5mspbi"))))
1422 (build-system gnu-build-system)
1424 '(#:phases (modify-phases %standard-phases (delete 'configure))
1425 #:tests? #f ; no check target
1426 #:make-flags (let ((out (assoc-ref %outputs "out")))
1427 (list (string-append "prefix=" out)))))
1428 (synopsis "Recursively list the contents of a directory")
1430 "Tree is a recursive directory listing command that produces a depth
1431 indented listing of files, which is colorized ala dircolors if the LS_COLORS
1432 environment variable is set and output is to tty.")
1433 (home-page "http://mama.indstate.edu/users/ice/tree/")
1434 (license license:gpl2+)))
1436 (define-public direvent
1442 (uri (string-append "mirror://gnu/direvent/direvent-"
1446 "1nwvjmx7kb14ni34c0b8x9a3791pc20gvhj7xaj66d8q4h6n0qf4"))
1447 (modules '((guix build utils)))
1449 (substitute* "tests/testsuite"
1450 (("#![[:blank:]]?/bin/sh")
1453 (build-system gnu-build-system)
1456 (modify-phases %standard-phases
1457 (add-before 'build 'patch-/bin/sh
1458 (lambda* (#:key inputs #:allow-other-keys)
1459 ;; Use the right shell when executing the watcher and
1460 ;; user-provided shell commands.
1461 (let ((bash (assoc-ref inputs "bash")))
1462 (substitute* '("src/direvent.c" "src/progman.c")
1464 (string-append "\"" bash "/bin/sh\"")))
1466 ;; Adjust the 'shell.at' test accordingly.
1467 (substitute* "tests/testsuite"
1469 (string-append "SHELL=" bash "/bin/sh")))
1472 (home-page "https://www.gnu.org/software/direvent/")
1473 (synopsis "Daemon to monitor directories for events such as file removal")
1475 "A daemon that monitors directories for events, such as creating,
1476 deleting or modifying files. It can monitor different sets of directories for
1477 different events. When an event is detected, direvent calls a specified
1478 external program with information about the event, such as the location
1479 within the file system where it occurred. Thus, \"direvent\" provides an
1480 easy way to react immediately if given files undergo changes, for example, to
1481 track changes in important system configuration files.")
1482 (license license:gpl3+)))
1484 (define-public libcap-ng
1491 "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1495 "0a0k484kwv0zilry2mbl9k56cnpdhsjxdxin17jas6kkyfy345aa"))))
1496 (build-system gnu-build-system)
1499 (list "--without-python")))
1500 (home-page "https://people.redhat.com/sgrubb/libcap-ng/")
1501 (synopsis "Library for more easily working with POSIX capabilities")
1503 "The libcap-ng library is intended to make programming with POSIX
1504 capabilities easier than the traditional libcap library. It includes
1505 utilities that can analyse all currently running applications and print out
1506 any capabilities and whether or not it has an open ended bounding set. The
1507 included utilities are designed to let admins and developers spot apps from
1508 various ways that may be running with too much privilege.")
1509 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1510 (license (list license:lgpl2.1+ license:gpl2+))))
1512 (define-public smartmontools
1514 (name "smartmontools")
1519 "mirror://sourceforge/smartmontools/smartmontools/"
1520 version "/smartmontools-" version ".tar.gz"))
1523 "077nx2rn9szrg6isdh0938zbp7vr3dsyxl4jdyyzv1xwhqksrqg5"))))
1524 (build-system gnu-build-system)
1525 (inputs `(("libcap-ng" ,libcap-ng)))
1526 (home-page "https://www.smartmontools.org/")
1527 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1529 "The smartmontools package contains utility programs to control and
1530 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1531 Technology System (@dfn{S.M.A.R.T.}) built into most modern ATA and SCSI hard
1532 disks. In many cases, these utilities will provide advanced warning of disk
1533 degradation and failure.")
1534 (license license:gpl2+)))
1536 (define-public fdupes
1544 "https://github.com/adrianlopezroche/fdupes/archive/v"
1546 (file-name (string-append name "-" version ".tar.gz"))
1549 "1sj9pa40pbz6xdwbxfwhdhkvhdf1xc5gvggk9mdq26c41gdnyswx"))))
1550 (build-system gnu-build-system)
1552 '(#:phases (modify-phases %standard-phases
1553 (delete 'configure))
1554 #:tests? #f ; no 'check' target
1555 #:make-flags (list "CC=gcc"
1556 (string-append "PREFIX="
1557 (assoc-ref %outputs "out")))))
1558 (home-page "https://github.com/adrianlopezroche/fdupes")
1559 (synopsis "Identify duplicate files")
1561 "fdupes is a program for identifying duplicate files residing within
1562 specified directories.")
1563 (license license:expat)))
1565 (define-public graphios
1572 (uri (pypi-uri "graphios" version))
1575 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1576 (build-system python-build-system)
1578 ;; Be warned: Building with Python 3 succeeds, but the build process
1579 ;; throws a syntax error that is ignored.
1580 `(#:python ,python-2
1582 (modify-phases %standard-phases
1583 (add-before 'build 'fix-setup.py
1584 (lambda* (#:key outputs #:allow-other-keys)
1585 ;; Fix hardcoded, unprefixed file names.
1586 (let ((out (assoc-ref outputs "out")))
1587 (substitute* '("setup.py")
1588 (("/etc") (string-append out "/etc"))
1590 (("distro_ver = .*") "distro_ver = ''"))
1592 (home-page "https://github.com/shawn-sterling/graphios")
1593 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1595 "Graphios is a script to emit nagios perfdata to various upstream metrics
1596 processing and time-series systems. It's currently compatible with Graphite,
1597 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1598 of supported upstream metrics systems simultaneously.")
1599 (license license:gpl2+)))
1601 (define-public ansible
1608 (uri (pypi-uri "ansible" version))
1611 "0f7b2ghm34ql8yv90wr0ngd6w7wyvnlcxpc3snkj86kcjsnmx1bd"))))
1612 (build-system python-build-system)
1614 `(("python-bcrypt" ,python-bcrypt)
1615 ("python-pynacl" ,python-pynacl)
1616 ("python-httplib2" ,python-httplib2)
1617 ("python-passlib" ,python-passlib)
1618 ("python-nose" ,python-nose)
1619 ("python-mock" ,python-mock)
1620 ("python-jinja2" ,python-jinja2)
1621 ("python-pyyaml" ,python-pyyaml)
1622 ("python-paramiko" ,python-paramiko)))
1624 `(("python-cryptography" ,python-cryptography)
1625 ("python-jinja2" ,python-jinja2)
1626 ("python-pyyaml" ,python-pyyaml)
1627 ("python-paramiko" ,python-paramiko)))
1630 (modify-phases %standard-phases
1631 ;; Several ansible commands (ansible-config, ansible-console, etc.)
1632 ;; are just symlinks to a single ansible executable. The ansible
1633 ;; executable behaves differently based on the value of
1634 ;; sys.argv[0]. This does not work well with our wrap phase, and
1635 ;; therefore the following two phases are required as a workaround.
1636 (add-after 'unpack 'hide-wrapping
1638 ;; Overwrite sys.argv[0] to hide the wrapper script from it.
1639 (substitute* "bin/ansible"
1640 (("import traceback" all)
1641 (string-append all "
1643 sys.argv[0] = re.sub(r'\\.([^/]*)-real$', r'\\1', sys.argv[0])
1646 (add-after 'wrap 'fix-symlinks
1647 (lambda* (#:key outputs #:allow-other-keys)
1648 (let ((out (assoc-ref outputs "out")))
1650 (lambda (subprogram)
1651 ;; The symlinks point to the ansible wrapper script. Make
1652 ;; them point to the real executable (.ansible-real).
1653 (delete-file (string-append out "/bin/.ansible-" subprogram "-real"))
1654 (symlink (string-append out "/bin/.ansible-real")
1655 (string-append out "/bin/.ansible-" subprogram "-real"))
1656 ;; The wrapper scripts of the symlinks invoke the ansible
1657 ;; wrapper script. Fix them to invoke the correct executable.
1658 (substitute* (string-append out "/bin/ansible-" subprogram)
1660 (string-append "/bin/.ansible-" subprogram "-real"))))
1661 (list "config" "console" "doc" "galaxy"
1662 "inventory" "playbook" "pull" "vault")))
1664 (home-page "https://www.ansible.com/")
1665 (synopsis "Radically simple IT automation")
1666 (description "Ansible is a radically simple IT automation system. It
1667 handles configuration management, application deployment, cloud provisioning,
1668 ad hoc task execution, and multinode orchestration---including trivializing
1669 things like zero-downtime rolling updates with load balancers.")
1670 (license license:gpl3+)))
1672 (define-public emacs-ansible-doc
1673 (let ((commit "86083a7bb2ed0468ca64e52076b06441a2f8e9e0"))
1675 (name "emacs-ansible-doc")
1676 (version (git-version "0.4" "1" commit))
1681 (url "https://github.com/lunaryorn/ansible-doc.el")
1683 (file-name (git-file-name name version))
1686 "0lap404ch74w99n3xip176jr42b38xhyzkfnkyqg0g3wk2cd3aq8"))))
1687 (build-system emacs-build-system)
1688 ;; Unmaintained by upstream.
1689 (home-page "https://github.com/lunaryorn/ansible-doc.el")
1690 (synopsis "Ansible documentation for Emacs")
1692 "This package provides an Ansible documentation for GNU Emacs.
1694 @code{ansible-doc} allows you to view the documentation of an Ansible
1695 module and @code{ansible-doc-mode} minor mode adds documentation
1696 lookup to YAML Mode. You could enable the mode with @code{(add-hook
1697 'yaml-mode-hook #'ansible-doc-mode)}.")
1698 (license license:gpl3+))))
1700 (define-public cpulimit
1707 (uri (string-append "https://github.com/opsengine/cpulimit/archive/v"
1709 (file-name (string-append name "-" version ".tar.gz"))
1712 "1nn2w849xd5bw4y5sqnll29nxdwl5h0cv4smc7dwmpb9qnd2ycb4"))))
1713 (build-system gnu-build-system)
1715 `(#:phases (modify-phases %standard-phases
1719 (invoke "make" "CC=gcc" "-Csrc")))
1722 (invoke "make" "CC=gcc" "-Ctests")))
1724 (lambda* (#:key outputs #:allow-other-keys)
1725 (let* ((out (assoc-ref outputs "out"))
1726 (bin (string-append out "/bin")))
1727 (install-file "src/cpulimit" bin))
1729 (home-page "https://github.com/opsengine/cpulimit")
1730 (synopsis "Limit CPU usage")
1732 "Cpulimit limits the CPU usage of a process. It does not change the nice
1733 value or other scheduling priority settings, but the real CPU usage, and is
1734 able to adapt itself dynamically to the overall system load. Children
1735 processes and threads of the specified process may optionally share the same
1737 (license license:gpl2+)))
1739 (define-public autojump
1746 (uri (string-append "https://github.com/wting/autojump/archive/"
1747 "release-v" version ".tar.gz"))
1748 (file-name (string-append name "-" version ".tar.gz"))
1751 "17z9j9936x0nizwrzf664bngh60x5qbvrrf1s5qdzd0f2gdanpvn"))))
1752 (build-system gnu-build-system)
1753 (native-inputs ;for tests
1754 `(("python-mock" ,python-mock)
1755 ("python-pytest" ,python-pytest)))
1757 `(("python" ,python-wrapper)))
1760 (modify-phases %standard-phases
1765 (invoke "python" "tests/unit/autojump_utils_test.py")))
1767 (lambda* (#:key outputs #:allow-other-keys)
1768 (setenv "SHELL" (which "bash"))
1769 (invoke "python" "install.py"
1770 (string-append "--destdir="
1771 (assoc-ref outputs "out"))))))))
1772 (home-page "https://github.com/wting/autojump")
1773 (synopsis "Shell extension for file system navigation")
1775 "Autojump provides a faster way to navigate your file system, with a \"cd
1776 command that learns\". It works by maintaining a database of the directories
1777 you use the most from the command line and allows you to \"jump\" to
1778 frequently used directories by typing only a small pattern.")
1779 (license license:gpl3+)))
1788 (url "https://github.com/clvv/fasd.git")
1790 (file-name (git-file-name name version))
1793 "1awi71jdv3mhjrmar2d4z1i90kn7apd7aq1w31sh6w4yibz9kiyj"))))
1794 (build-system gnu-build-system)
1796 `(#:phases (modify-phases %standard-phases
1797 (delete 'configure)) ;no configuration
1798 #:tests? #f ;no tests
1799 #:make-flags (list (string-append "PREFIX=" %output))))
1800 (home-page "https://github.com/clvv/fasd")
1801 (synopsis "Quick access to files and directories for shells")
1803 "Fasd (pronounced similar to \"fast\") is a command-line productivity
1804 booster. Fasd offers quick access to files and directories for POSIX shells.
1805 It is inspired by tools like autojump, z, and v. Fasd keeps track of files
1806 and directories you have accessed so that you can quickly reference them in
1808 (license license:x11)))
1810 (define-public iftop
1816 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
1817 "/iftop-" version ".tar.gz"))
1820 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
1821 (build-system gnu-build-system)
1823 `(("libpcap" ,libpcap)
1824 ("ncurses" ,ncurses)))
1825 (synopsis "Monitor network usage")
1826 (description "Iftop does for network usage what @command{top} does
1827 for CPU usage. It listens to network traffic on a named interface and
1828 displays a table of current bandwidth usage by pairs of hosts.")
1829 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
1830 (license license:gpl2+)))
1832 (define-public munge
1838 (uri (string-append "https://github.com/dun/munge/releases/"
1839 "download/munge-" version "/munge-"
1843 "1nj486bbg1adfg298zck96vgx57kchcypc1zdz1n7w540vyksxcr"))))
1845 `(("openssl" ,openssl)
1846 ("libgcrypt" ,libgcrypt)))
1847 (build-system gnu-build-system)
1848 (home-page "https://dun.github.io/munge/")
1849 (synopsis "Cluster computing authentication service")
1851 "Munge is an authentication service for creating and validating
1852 credentials. It allows a process to authenticate the UID and GID of another
1853 local or remote process within a group of hosts having common users and
1854 groups. These hosts form a security realm that is defined by a shared
1855 cryptographic key. Clients within this security realm can create and validate
1856 credentials without the use of root privileges, reserved ports, or
1857 platform-specific methods.")
1858 (license license:gpl3+)))
1860 (define-public audit
1863 (home-page "https://people.redhat.com/sgrubb/audit/")
1867 (uri (string-append home-page name "-" version ".tar.gz"))
1870 "0f4ci6ffznnmgblwgv7ich9mjfk3p6y5l6m6h3chhmzw156nj454"))))
1871 (build-system gnu-build-system)
1873 `(#:configure-flags (list "--with-python=no"
1874 "--disable-static")))
1876 `(("openldap" ,openldap)
1878 ("sasl" ,cyrus-sasl)))
1879 (synopsis "User-space component to the Linux auditing system")
1881 "auditd is the user-space component to the Linux auditing system, which
1882 allows logging of system calls made by user-land processes. It's responsible
1883 for writing audit records to the disk. Viewing the logs is done with the
1884 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
1885 done with the @code{auditctl} utility.")
1886 (license license:gpl2+)))
1894 (uri (string-append "https://nmap.org/dist/nmap-" version
1898 "063fg8adx23l4irrh5kn57hsmi1xvjkar4vm4k6g94ppan4hcyw4"))
1899 (modules '((guix build utils)))
1902 (for-each delete-file-recursively
1903 ;; Remove bundled lua, pcap, and pcre libraries.
1904 ;; FIXME: Remove bundled liblinear once packaged.
1908 ;; Remove pre-compiled binares.
1911 (build-system gnu-build-system)
1913 `(("openssl" ,openssl)
1914 ("libpcap" ,libpcap)
1917 ("zlib" ,zlib) ;for NSE compression support
1920 ("python" ,python-2)))
1922 ;; TODO Add zenmap output.
1923 (outputs '("out" "ndiff"))
1925 `(#:configure-flags '("--without-zenmap")
1927 (modify-phases %standard-phases
1928 (add-after 'configure 'patch-Makefile
1930 (substitute* "Makefile"
1931 ;; Do not attempt to build lua.
1932 (("build-dnet build-lua") "build-dnet"))
1935 (lambda* (#:key outputs #:allow-other-keys)
1936 (define (make out . args)
1937 (apply invoke "make"
1938 (string-append "prefix=" out)
1940 (define (python-path dir)
1941 (string-append dir "/lib/python"
1942 ,(version-major+minor
1943 (package-version python))
1945 (let ((out (assoc-ref outputs "out"))
1946 (ndiff (assoc-ref outputs "ndiff")))
1947 (for-each mkdir-p (list out ndiff))
1953 (make ndiff "install-ndiff")
1954 (wrap-program (string-append ndiff "/bin/ndiff")
1955 `("PYTHONPATH" prefix
1956 (,(python-path ndiff)))))
1958 ;; These are the tests that do not require network access.
1960 (lambda _ (invoke "make"
1964 ;; Nmap can't cope with out-of-source building.
1965 #:out-of-source? #f))
1966 (home-page "https://nmap.org/")
1967 (synopsis "Network discovery and security auditing tool")
1969 "Nmap (\"Network Mapper\") is a network discovery and security auditing
1970 tool. It is also useful for tasks such as network inventory, managing service
1971 upgrade schedules, and monitoring host or service uptime. It also provides an
1972 advanced netcat implementation (ncat), a utility for comparing scan
1973 results (ndiff), and a packet generation and response analysis tool (nping).")
1974 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
1975 ;; both use a 3-clause BSD license.
1976 (license (list license:nmap license:bsd-3))))
1978 (define-public dstat
1985 "https://github.com/dagwieers/dstat/archive/"
1987 (file-name (string-append "dstat-" version ".tar.gz"))
1990 "16286z3y2lc9nsq8njzjkv6k2vyxrj9xiixj1k3gnsbvhlhkirj6"))))
1991 (build-system gnu-build-system)
1993 `(#:tests? #f ;; no make check
1994 #:make-flags (let ((out (assoc-ref %outputs "out")))
1995 (list (string-append "DESTDIR=" out)
1997 ;; no configure script
1998 #:phases (modify-phases %standard-phases (delete 'configure))))
1999 (inputs `(("python-2" ,python-2)))
2000 (synopsis "Versatile resource statistics tool")
2001 (description "Dstat is a versatile replacement for @command{vmstat},
2002 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
2003 some of their limitations and adds some extra features, more counters and
2004 flexibility. Dstat is handy for monitoring systems during performance tuning
2005 tests, benchmarks or troubleshooting.
2007 Dstat allows you to view all of your system resources in real-time, you can,
2008 e.g., compare disk utilization in combination with interrupts from your IDE
2009 controller, or compare the network bandwidth numbers directly with the disk
2010 throughput (in the same interval).")
2011 (home-page "http://dag.wiee.rs/home-made/dstat/")
2012 (license license:gpl2+)))
2014 (define-public thefuck
2020 (uri (string-append "https://github.com/nvbn/thefuck/archive/"
2022 (file-name (string-append name "-" version ".tar.gz"))
2025 "1i11qlnbg95nx7dcf6wqvfz7b230dqr5m981md4hvyaa1qw3xj5m"))
2026 (patches (search-patches "thefuck-test-environ.patch"))))
2027 (build-system python-build-system)
2030 (modify-phases %standard-phases
2032 (add-after 'install 'check
2033 (lambda* (#:key inputs outputs #:allow-other-keys)
2034 ;; Tests look for installed package
2035 (add-installed-pythonpath inputs outputs)
2036 ;; Some tests need write access to $HOME.
2037 (setenv "HOME" "/tmp")
2038 (invoke "py.test" "-v")
2041 `(("python-colorama" ,python-colorama)
2042 ("python-decorator" ,python-decorator)
2043 ("python-psutil" ,python-psutil)
2044 ("python-pyte" ,python-pyte)
2045 ("python-six" ,python-six)))
2047 `(("python-mock" ,python-mock)
2048 ("python-pytest" ,python-pytest)
2049 ("python-pytest-mock" ,python-pytest-mock)))
2050 (home-page "https://github.com/nvbn/thefuck")
2051 (synopsis "Correct mistyped console command")
2053 "The Fuck tries to match a rule for a previous, mistyped command, creates
2054 a new command using the matched rule, and runs it.")
2055 (license license:x11)))
2064 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
2066 (base32 "0zlapxlzjizwzwa8xwrwibhcbkh0wx7n74gvjpp6wlwq7cgiq0xm"))))
2067 (build-system gnu-build-system)
2069 `(#:tests? #f ; obscure test failures.
2071 (modify-phases %standard-phases
2073 (add-before 'build 'setup-environment
2074 (lambda* (#:key outputs #:allow-other-keys)
2076 (setenv "prefix" (assoc-ref outputs "out"))
2078 #:make-flags (list "--environment-overrides")))
2079 (home-page "https://www.gentoo.com/di/")
2080 (synopsis "Advanced df like disk information utility")
2082 "'di' is a disk information utility, displaying everything that your
2083 @code{df} command does and more. It features the ability to display your disk
2084 usage in whatever format you prefer. It is designed to be highly portable and
2085 produce uniform output across heterogeneous networks.")
2086 (license license:zlib)))
2088 (define-public cbatticon
2094 (uri (string-append "https://github.com/valr/"
2095 name "/archive/" version ".tar.gz"))
2098 "185lzvaijvyq7y8r7dvizhri0rf9lpc1anfgbbn4lznr1fr3z7rn"))
2099 (file-name (string-append name "-" version ".tar.gz"))))
2100 (build-system gnu-build-system)
2102 `(#:tests? #f ; no tests
2104 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2107 (modify-phases %standard-phases
2108 (delete 'configure)))) ; no configure script
2111 ("gettext" ,gettext-minimal)
2112 ("libnotify" ,libnotify)))
2114 `(("pkg-config" ,pkg-config)))
2115 (synopsis "Lightweight battery icon for the system tray")
2116 (description "cbatticon is a lightweight battery icon that displays
2117 the status of your battery in the system tray.")
2118 (home-page "https://github.com/valr/cbatticon")
2119 (license license:gpl2+)))
2121 (define-public interrobang
2122 (let ((revision "1")
2123 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
2125 (name "interrobang")
2126 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
2130 (url "https://github.com/TrilbyWhite/interrobang")
2132 (file-name (string-append name "-" version))
2135 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
2136 (build-system gnu-build-system)
2138 `(#:tests? #f ; no tests
2140 (modify-phases %standard-phases
2141 (delete 'configure)) ; no configure script
2142 #:make-flags (list (string-append "PREFIX="
2143 (assoc-ref %outputs "out")))))
2145 `(("libx11" ,libx11)))
2147 `(("pkg-config" ,pkg-config)))
2148 (synopsis "Scriptable launcher menu")
2149 (description "Interrobang is a scriptable launcher menu with a customizable
2150 shortcut syntax and completion options.")
2151 (home-page "https://github.com/TrilbyWhite/interrobang")
2152 (license license:gpl3+))))
2154 (define-public pam-krb5
2161 "https://archives.eyrie.org/software/kerberos/" name "-"
2165 "1qjp8i1s9bz7g6kiqrkzzkxn5pfspa4sy53b6z40fqmdf9przdfb"))))
2166 (build-system gnu-build-system)
2169 (modify-phases %standard-phases
2170 (add-before 'configure 'disable-tests
2172 ;; The build container seems to interfere with some tests.
2173 (substitute* "tests/TESTS"
2174 (("module/basic\n") ""))
2175 (substitute* "tests/TESTS"
2176 (("pam-util/vector\n") ""))
2179 `(("linux-pam" ,linux-pam)
2180 ("mit-krb5" ,mit-krb5)))
2183 ("perl-test-pod" ,perl-test-pod))) ; required for tests
2184 (synopsis "Kerberos PAM module")
2186 "Pam-krb5 is a Kerberos PAM module for either MIT Kerberos or Heimdal.
2187 It supports ticket refreshing by screen savers, configurable
2188 authorization handling, authentication of non-local accounts for network
2189 services, password changing, and password expiration, as well as all the
2190 standard expected PAM features. It works correctly with OpenSSH, even
2191 with @code{ChallengeResponseAuthentication} and @code{PrivilegeSeparation}
2192 enabled, and supports extensive configuration either by PAM options or in
2193 krb5.conf or both. PKINIT is supported with recent versions of both MIT
2194 Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
2195 (home-page "https://www.eyrie.org/~eagle/software/pam-krb5")
2196 ;; Dual licenced under a homebrew non-copyleft OR GPL (any version)
2197 ;; However, the tarball does not contain a copy of the GPL, so unless
2198 ;; we put one in, we cannot distribute it under GPL without violating
2199 ;; clause requiring us to give all recipients a copy.
2200 (license license:gpl1+)))
2202 (define-public sunxi-tools
2204 (name "sunxi-tools")
2209 (uri (string-append "https://github.com/linux-sunxi/"
2210 "sunxi-tools/archive/v" version ".tar.gz"))
2212 (base32 "08iqwj95qw2s7ilhrdi2lkbc8dx64zk5lzz1qk587jr0lla81x41"))
2213 (modules '((guix build utils)))
2215 ;; Remove binaries contained in the tarball which are only for the
2216 ;; target and can be regenerated anyway.
2218 (delete-file-recursively "bin")
2220 (file-name (string-append name "-" version ".tar.gz"))))
2222 `(("pkg-config" ,pkg-config)
2223 ("cross-gcc" ,(cross-gcc "arm-linux-gnueabihf"
2224 #:xbinutils (cross-binutils "arm-linux-gnueabihf")
2225 #:libc (cross-libc "arm-linux-gnueabihf")))
2226 ("cross-libc" ,(cross-libc "arm-linux-gnueabihf")) ; header files
2227 ("cross-libc-static" ,(cross-libc "arm-linux-gnueabihf") "static")))
2229 `(("libusb" ,libusb)))
2230 (build-system gnu-build-system)
2232 `(#:tests? #f ; no tests exist
2233 #:make-flags (list (string-append "PREFIX="
2234 (assoc-ref %outputs "out"))
2235 (string-append "CROSS_COMPILE="
2236 "arm-linux-gnueabihf-")
2239 (modify-phases %standard-phases
2241 (add-before 'build 'set-environment-up
2242 (lambda* (#:key make-flags #:allow-other-keys)
2244 (string-contains x "cross-arm-linux"))
2245 (define (filter-environment! filter-predicate
2246 environment-variable-names)
2249 (let* ((env-value (getenv env-name))
2250 (search-path (search-path-as-string->list env-value))
2251 (new-search-path (filter filter-predicate
2253 (new-env-value (list->search-path-as-string
2254 new-search-path ":")))
2255 (setenv env-name new-env-value)))
2256 environment-variable-names))
2257 (setenv "CROSS_C_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))
2258 (setenv "CROSS_CPLUS_INCLUDE_PATH" (getenv "CPLUS_INCLUDE_PATH"))
2259 (setenv "CROSS_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
2260 (filter-environment! cross?
2261 '("CROSS_C_INCLUDE_PATH" "CROSS_CPLUS_INCLUDE_PATH"
2262 "CROSS_LIBRARY_PATH"))
2263 (filter-environment! (lambda (e) (not (cross? e)))
2264 '("C_INCLUDE_PATH" "CPLUS_INCLUDE_PATH"
2268 (lambda* (#:key make-flags #:allow-other-keys)
2269 (apply invoke "make" "tools" "misc" make-flags)))
2270 (add-after 'build 'build-armhf
2271 (lambda* (#:key make-flags #:allow-other-keys)
2272 (setenv "LIBRARY_PATH" #f)
2273 (apply invoke "make" "target-tools" make-flags)))
2275 (lambda* (#:key make-flags #:allow-other-keys)
2276 (apply invoke "make" "install-all" "install-misc"
2278 (home-page "https://github.com/linux-sunxi/sunxi-tools")
2279 (synopsis "Hardware management tools for Allwinner computers")
2280 (description "This package contains tools for Allwinner devices:
2282 @item @command{sunxi-fexc}, @command{bin2fex}, @command{fex2bin}: Compile
2283 a textual description of a board (.fex) to a binary representation (.bin).
2284 @item @command{sunxi-fel}: Puts an Allwinner device into FEL mode which
2285 makes it register as a special USB device (rather than USB host).
2286 You can then connect it to another computer and flash it from there.
2287 @item @command{sunxi-nand-part}: Partitions NAND flash.
2288 @item @command{sunxi-bootinfo}: Reads out boot0 and boot1 (Allwinner
2289 bootloader) parameters.
2290 @item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
2291 in order to be able to find it.
2292 @item @command{sunxi-meminfo}: Prints memory bus settings.
2293 @item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
2295 (license license:gpl2+)))
2297 (define-public sedsed
2304 (uri (string-append "https://github.com/aureliojargas/sedsed/"
2305 "archive/v" version ".tar.gz"))
2306 (file-name (string-append name "-" version ".tar.gz"))
2309 "0139jkqvm8ipiwfj7k69ry2f9b1ffgpk79arpz4r7w9kf6h23bnh"))))
2310 (build-system python-build-system)
2312 `(#:tests? #f ; No tests.
2315 (modify-phases %standard-phases
2316 (add-after 'unpack 'patch-sed-in
2318 (substitute* "sedsed.py"
2320 (string-append "sedbin = '" (which "sed") "'")))
2324 (lambda* (#:key outputs #:allow-other-keys)
2325 (let* ((out (assoc-ref outputs "out"))
2326 (bin (string-append out "/bin")))
2327 ;; Just one file to copy around
2328 (install-file "sedsed.py" bin)
2330 (add-after 'install 'symlink
2331 ;; Create 'sedsed' symlink to "sedsed.py".
2332 (lambda* (#:key outputs #:allow-other-keys)
2333 (let* ((out (assoc-ref outputs "out"))
2334 (bin (string-append out "/bin"))
2335 (sed (string-append bin "/sedsed"))
2336 (sedpy (string-append bin "/sedsed.py")))
2339 (home-page "http://aurelio.net/projects/sedsed")
2340 (synopsis "Sed sed scripts")
2342 "@code{sedsed} can debug, indent, tokenize and HTMLize your sed(1) script.
2344 In debug mode it reads your script and add extra commands to it. When
2345 executed you can see the data flow between the commands, revealing all the
2346 magic sed does on its internal buffers.
2348 In indent mode your script is reformatted with standard spacing.
2350 In tokenize mode you can see the elements of every command you use.
2352 In HTMLize mode your script is converted to a beautiful colored HTML file,
2353 with all the commands and parameters identified for your viewing pleasure.
2355 With sedsed you can master any sed script. No more secrets, no more hidden
2357 (license license:expat)))
2359 (define-public igt-gpu-tools
2361 (name "igt-gpu-tools")
2365 (uri (string-append "https://cgit.freedesktop.org/xorg/app/"
2366 "intel-gpu-tools/snapshot/"
2367 name "-" version ".tar.gz"))
2370 "0vzv2i4jfv2pkbqby5k3ap9pzidkmajwqmg3s7wnv8i1h33775iq"))))
2371 (build-system gnu-build-system)
2373 `(#:tests? #f ; many of the tests try to load kernel modules
2375 (modify-phases %standard-phases
2376 (add-after 'unpack 'autogen
2378 ;; Don't run configure in this phase.
2379 (setenv "NOCONFIGURE" "1")
2380 (invoke "sh" "autogen.sh"))))))
2387 ("libpciaccess" ,libpciaccess)
2388 ("libunwind" ,libunwind)
2389 ("libxrandr" ,libxrandr)
2390 ("openssl" ,openssl)
2392 ("util-macros" ,util-macros)))
2394 `(("autoconf" ,autoconf)
2395 ("automake" ,automake)
2396 ("libtool" ,libtool)
2397 ("pkg-config" ,pkg-config)))
2398 (home-page "https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/")
2399 (synopsis "Tools for development and testing of the Intel DRM driver")
2400 (description "IGT GPU Tools is a collection of tools for development and
2401 testing of the Intel DRM driver. There are many macro-level test suites that
2402 get used against the driver, including xtest, rendercheck, piglit, and
2403 oglconform, but failures from those can be difficult to track down to kernel
2404 changes, and many require complicated build procedures or specific testing
2405 environments to get useful results. Therefore, IGT GPU Tools includes
2406 low-level tools and tests specifically for development and testing of the
2408 (supported-systems '("i686-linux" "x86_64-linux"))
2409 (license license:expat)))
2411 (define-public intel-gpu-tools
2412 (deprecated-package "intel-gpu-tools" igt-gpu-tools))
2414 (define-public fabric
2421 (uri (pypi-uri "Fabric" version))
2424 "13r0b0hllgf8j9rh6x1knmbgvingbdmx046aazv6vck2ll120mw1"))))
2425 (build-system python-build-system)
2427 `(#:python ,python-2 ; Python 2 only
2429 (modify-phases %standard-phases
2433 "nosetests" "-v" "tests/"
2434 ;; This test hangs indefinitely when run on a single core VM
2435 ;; (see GNU bug #26647 and Debian bug #850230).
2436 "--exclude=test_nested_execution_with_explicit_ports"
2437 ;; This test randomly fails in certain environments causing too
2438 ;; much noise to be useful (see Debian bug #854686).
2439 "--exclude=test_should_use_sentinel_for_tasks_that_errored"))))))
2441 `(("python2-fudge" ,python2-fudge) ; Requires < 1.0
2442 ("python2-jinja2" ,python2-jinja2) ; Requires < 3.0
2443 ("python2-nose" ,python2-nose) ; Requires < 2.0
2444 ("python2-pynacl" ,python2-pynacl)
2445 ("python2-bcrypt" ,python2-bcrypt)))
2447 `(("python2-paramiko" ,python2-paramiko)))
2448 (home-page "http://fabfile.org")
2449 (synopsis "Simple Pythonic remote execution and deployment tool")
2451 "Fabric is designed to upload files and run shell commands on a number of
2452 servers in parallel or serially. These commands are grouped in tasks (which
2453 are regular Python functions) and specified in a @dfn{fabfile}.
2455 It is similar to Capistrano, except it's implemented in Python and doesn't
2456 expect you to be deploying Rails applications. Fabric is a simple, Pythonic
2457 tool for remote execution and deployment.")
2458 (license license:bsd-2)))
2460 (define-public neofetch
2467 (url "https://github.com/dylanaraps/neofetch")
2471 "0yzyi2p0d8xp576lxyv5m9h60dl1d5dmrn40aad307872835b9rr"))))
2472 (build-system gnu-build-system)
2474 `(#:tests? #f ; there are no tests
2476 (list (string-append "PREFIX=" %output))
2478 (modify-phases %standard-phases
2479 (delete 'configure)))) ; no configure script
2480 (home-page "https://github.com/dylanaraps/neofetch")
2481 (synopsis "System information script")
2482 (description "Neofetch is a command-line system information tool written in
2483 Bash. Neofetch displays information about your system next to an image, your OS
2484 logo, or any ASCII file of your choice. The main purpose of Neofetch is to be
2485 used in screenshots to show other users what operating system or distribution
2486 you are running, what theme or icon set you are using, etc.")
2487 (license license:expat)))
2496 (uri (string-append "https://github.com/jarun/nnn/releases/download/v"
2497 version "/" name "-v" version ".tar.gz"))
2499 (base32 "1d6z12y4rlg4dzhpm30irpq2ak8hjh5zykkp2n7vxnz5m4ki89zp"))))
2500 (build-system gnu-build-system)
2502 `(("ncurses" ,ncurses)
2503 ("readline" ,readline)))
2505 `(("pkg-config" ,pkg-config)))
2507 '(#:tests? #f ; no tests
2509 (modify-phases %standard-phases
2510 (delete 'configure)) ; no configure script
2513 (string-append "PREFIX="
2514 (assoc-ref %outputs "out"))
2516 (home-page "https://github.com/jarun/nnn")
2517 (synopsis "Terminal file browser")
2518 (description "@command{nnn} is a fork of @command{noice}, a blazing-fast
2519 lightweight terminal file browser with easy keyboard shortcuts for
2520 navigation, opening files and running tasks. There is no config file and
2521 mime associations are hard-coded. The incredible user-friendliness and speed
2522 make it a perfect utility on modern distros.")
2523 (license license:bsd-2)))
2525 (define-public thermald
2533 (url "https://github.com/01org/thermal_daemon")
2534 (commit (string-append "v" version))))
2535 (file-name (git-file-name name version))
2538 "1cs2pq8xvfnsvrhg2bxawk4kn3z1qmfrnpnhs178pvfbglzh15hc"))))
2539 (build-system gnu-build-system)
2542 (let ((out (assoc-ref %outputs "out")))
2543 (list (string-append "--sysconfdir="
2545 (string-append "--with-dbus-sys-dir="
2546 out "/etc/dbus-1/system.d")
2547 "--localstatedir=/var"))))
2549 `(("autoconf" ,autoconf)
2550 ("automake" ,automake)
2551 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
2552 ("pkg-config" ,pkg-config)))
2554 `(("dbus-glib" ,dbus-glib)
2555 ("libxml2" ,libxml2)))
2556 (home-page "https://01.org/linux-thermal-daemon/")
2557 (synopsis "CPU scaling for thermal management")
2558 (description "The Linux Thermal Daemon helps monitor and control temperature
2559 on systems running the Linux kernel.")
2560 ;; arm and aarch64 don't have cpuid.h.
2561 (supported-systems '("i686-linux" "x86_64-linux"))
2562 (license license:gpl2+)))
2564 (define-public masscan
2570 (uri (string-append "https://github.com/robertdavidgraham/masscan"
2571 "/archive/" version ".tar.gz"))
2572 (file-name (string-append name "-" version ".tar.gz"))
2575 "0wxddsgyx27z45906icdhdbfsvfj8ij805208qpqjx46i0lnjs50"))))
2576 (build-system gnu-build-system)
2578 `(("libpcap" ,libpcap)))
2580 '(#:test-target "regress"
2583 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2585 (modify-phases %standard-phases
2586 (delete 'configure) ; no ./configure script
2587 (add-after 'unpack 'patch-path
2588 (lambda* (#:key outputs inputs #:allow-other-keys)
2589 (let* ((out (assoc-ref outputs "out"))
2590 (pcap (assoc-ref inputs "libpcap")))
2591 (substitute* "src/rawsock-pcap.c"
2592 (("libpcap.so") (string-append pcap "/lib/libpcap.so")))
2594 (synopsis "TCP port scanner")
2595 (description "MASSCAN is an asynchronous TCP port scanner. It can detect
2596 open ports, and also complete the TCP connection and interact with the remote
2597 application, collecting the information received.")
2598 (home-page "https://github.com/robertdavidgraham/masscan")
2599 ;; 'src/siphash24.c' is the SipHash reference implementation, which
2600 ;; bears a CC0 Public Domain Dedication.
2601 (license license:agpl3+)))
2603 (define-public hungrycat
2609 (uri (string-append "https://github.com/jwilk/hungrycat/"
2610 "releases/download/" version "/"
2611 name "-" version ".tar.gz"))
2614 "03fc1zsrf99lvxa7b4ps6pbi43304wbxh1f6ci4q0vkal370yfwh"))))
2615 (build-system gnu-build-system)
2618 `(("python" ,python-wrapper)
2619 ("python-nose" ,python-nose)))
2621 `(#:test-target "test"))
2622 (synopsis "A single tool that combines @command{cat} & @command{rm}")
2624 "hungrycat prints the contents of a file to standard output, while
2625 simultaneously freeing the disk space it occupied. It is useful if you need
2626 to process a large file, don't have enough space to store both the input and
2627 output files, and don't need the input file afterwards.
2628 While similar in principle to running @command{cat} immediately followed by
2629 @command{rm}, @command{hungrycat} actually frees blocks as soon as they are
2630 printed instead of after the entire file has been read, which is often too
2632 (home-page "https://jwilk.net/software/hungrycat")
2633 (license license:expat)))
2635 (define-public launchmon
2642 "https://github.com/LLNL/LaunchMON/releases/download/v"
2643 version "/" name "-v" version ".tar.gz"))
2646 "0fm3nd9mydm9v2bf7bh01dbgrfnpwkapxa3dsvy3x1z0rz61qc0x"))))
2647 (build-system gnu-build-system)
2653 ("libgcrypt" ,libgcrypt)
2654 ("libgpg-error" ,libgpg-error)))
2655 (synopsis "Infrastructue for large scale tool daemon launching")
2657 "LaunchMON is a software infrastructure that enables HPC run-time
2658 tools to co-locate tool daemons with a parallel job. Its API allows a
2659 tool to identify all the remote processes of a job and to scalably
2660 launch daemons into the relevant nodes.")
2661 (home-page "https://github.com/LLNL/LaunchMON")
2662 (supported-systems '("i686-linux" "x86_64-linux"))
2663 (license license:lgpl2.1)))
2665 (define-public spindle
2670 ;; We use git checkout to avoid github auto-generated tarballs
2673 (url "https://github.com/hpc/Spindle.git")
2674 (commit (string-append "v" version))))
2675 (file-name (git-file-name name version))
2678 "15n3ay0qq81r5v7fif61q1vdjcq44pp2nynkh3fvbzc9fj3c39wd"))))
2679 (build-system gnu-build-system)
2680 (arguments '(#:configure-flags '("--enable-sec-launchmon"
2681 "--enable-sec-munge"
2682 "--enable-sec-none")))
2686 ("launchmon" ,launchmon)
2687 ("libgcrypt" ,libgcrypt)))
2688 (synopsis "Scalable library loading in HPC environments")
2690 "Spindle is a tool for improving the performance of dynamic library and
2691 Python loading in HPC environments.")
2692 (home-page "https://github.com/hpc/Spindle")
2693 ;; This package supports x86_64 and PowerPC64
2694 (supported-systems '("x86_64-linux"))
2695 (license license:lgpl2.1)))
2697 (define-public inxi-minimal
2698 (let ((real-name "inxi"))
2700 (name "inxi-minimal")
2701 (version "3.0.20-1")
2706 (url "https://github.com/smxi/inxi")
2710 "1k9148xnfznch1443niaa3w1kmsw4vp0xpwna6npgmi7zqg06ymy"))))
2711 (build-system trivial-build-system)
2724 (use-modules (guix build utils)
2727 (setenv "PATH" (string-append
2728 (assoc-ref %build-inputs "bash") "/bin" ":"
2729 (assoc-ref %build-inputs "gzip") "/bin" ":"
2730 (assoc-ref %build-inputs "perl") "/bin" ":"))
2731 (copy-recursively (assoc-ref %build-inputs "source")
2732 ,(string-append real-name "-" version))
2733 (with-directory-excursion ,(string-append real-name "-" version)
2734 (with-fluids ((%default-port-encoding #f))
2735 (substitute* "inxi" (("/usr/bin/env perl") (which "perl"))))
2736 (let ((bin (string-append %output "/bin")))
2737 (install-file "inxi" bin)
2738 (wrap-program (string-append bin "/inxi")
2741 ,@(map (lambda (input)
2745 (cut string-append store <>)))
2747 ((member name '("util-linux"))
2748 (string-append (store-append "/bin") ":"
2749 (store-append "/sbin")))
2750 ((member name '("dmidecode" "iproute2"))
2751 (store-append "/sbin"))
2752 (else (store-append "/bin")))))))
2758 (((? (cut string-prefix? "perl-" <>) name) . dir)
2759 (string-append dir "/lib/perl5/site_perl"))
2762 (invoke "gzip" "inxi.1")
2763 (install-file "inxi.1.gz"
2764 (string-append %output "/share/man/man1")))
2766 (home-page "https://smxi.org/docs/inxi.htm")
2767 (synopsis "Full-featured system information script")
2768 (description "Inxi is a system information script that can display
2769 various things about your hardware and software to users in an IRC chatroom or
2770 support forum. It runs with the @code{/exec} command in most IRC clients.")
2771 (license license:gpl3+))))
2775 (inherit inxi-minimal)
2778 `(("dmidecode" ,dmidecode)
2780 ("bind:utils" ,isc-bind "utils") ; dig
2782 ("iproute2" ,iproute) ; ip
2783 ("kmod" ,kmod) ; modinfo
2784 ("lm-sensors" ,lm-sensors)
2785 ("mesa-utils" ,mesa-utils)
2786 ("pciutils" ,pciutils)
2790 ("util-linux" ,util-linux) ; lsblk
2791 ("usbutils" ,usbutils) ; lsusb
2793 ("xdpyinfo" ,xdpyinfo)
2796 ("coreutils" ,coreutils) ; uptime
2797 ("inetutils" ,inetutils) ; ifconfig
2798 ("perl-cpanel-json-xs" ,perl-cpanel-json-xs)
2799 ("perl-http-tiny" ,perl-http-tiny)
2800 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
2801 ("perl-json-xs" ,perl-json-xs)
2802 ("perl-time-hires" ,perl-time-hires)
2803 ;; TODO: Add more inputs:
2808 ,@(package-inputs inxi-minimal)))))
2810 (define-public pscircle
2818 (url "https://gitlab.com/mildlyparallel/pscircle.git")
2819 (commit (string-append "v" version))))
2820 (file-name (git-file-name name version))
2823 "1sxdnhkcr26l29nk0zi1zkvkd7128xglfql47rdb1bx940vflgb6"))))
2824 (build-system meson-build-system)
2826 `(("pkg-config" ,pkg-config)))
2830 ("libx11" ,libx11)))
2831 (home-page "https://gitlab.com/mildlyparallel/pscircle")
2832 (synopsis "Visualize Linux processes in a form of radial tree")
2834 "@code{pscircle} visualizes Linux processes in the form of a radial tree.")
2835 (license license:gpl2+)))
2837 (define-public python-pyudev
2839 (name "python-pyudev")
2844 (uri (pypi-uri "pyudev" version))
2847 "0arz0dqp75sszsmgm6vhg92n1lsx91ihddx3m944f4ah0487ljq9"))))
2848 (build-system python-build-system)
2850 `(#:tests? #f ; Tests require /sys
2852 (modify-phases %standard-phases
2853 (add-after 'unpack 'patch-ctypes-udev
2854 (lambda* (#:key inputs outputs #:allow-other-keys)
2855 (let ((eudev (assoc-ref inputs "eudev")))
2856 (substitute* "src/pyudev/core.py"
2858 (string-append "'" eudev "/lib/libudev.so'")))
2859 (substitute* "src/pyudev/_ctypeslib/utils.py"
2860 ;; Use absolute paths instead of keys.
2861 (("= find_library") "= "))
2864 `(("eudev" ,eudev)))
2866 `(("python-six" ,python-six)))
2868 `(("python-docutils" ,python-docutils)
2869 ("python-hypothesis" ,python-hypothesis)
2870 ("python-mock" ,python-mock)
2871 ("python-pytest" ,python-pytest)
2872 ("python-sphinx" ,python-sphinx)))
2873 (home-page "http://pyudev.readthedocs.org/")
2874 (synopsis "Python udev binding")
2875 (description "This package provides @code{udev} bindings for Python.")
2876 (license license:lgpl2.1)))
2878 (define-public solaar
2885 (url "https://github.com/pwr/Solaar.git")
2887 (file-name (git-file-name name version))
2890 "085mfa13dap3wqik1dqlad0d7kff4rv7j4ljh99c7l8nhczkqgwm"))))
2891 (build-system python-build-system)
2894 (modify-phases %standard-phases
2895 (add-after 'unpack 'fix-prefix-detection
2897 (substitute* "setup.py"
2898 (("'--prefix' in sys\\.argv")
2899 "len([x.startswith('--prefix=') for x in sys.argv]) > 0"))
2903 (invoke "python" "setup.py" "build")))
2904 (add-before 'check 'setenv-PATH
2906 (setenv "PYTHONPATH" (string-append "lib:" (getenv "PYTHONPATH")))
2909 `(("python-pygobject" ,python-pygobject)
2910 ("python-pyudev" ,python-pyudev)))
2911 (home-page "https://smxi.org/docs/inxi.htm")
2912 (synopsis "Linux devices manager for the Logitech Unifying Receiver")
2913 (description "This package provides tools to manage clients of the
2914 Logitech Unifying Receiver.")
2915 (license license:gpl2)))
2917 (define-public lynis
2925 (url "https://github.com/CISOfy/lynis")
2927 (file-name (git-file-name name version))
2930 "1nv2dqd2k2n8mcdr6xl5g713xxkgvja6487by1wn4k0b416jij9i"))
2931 (modules '((guix build utils)))
2934 ;; Remove proprietary plugins. As of now, all plugins supplied with
2935 ;; lynis are proprietary. In the future, if free plugins are
2936 ;; provided, whitelist them from deletion.
2937 (for-each delete-file (find-files "plugins"))
2939 (build-system gnu-build-system)
2946 (url "https://github.com/CISOfy/lynis-sdk")
2947 (commit "3310aef4f2b3dd97d166c96ad0253c89c4ad390d")))
2948 (file-name (git-file-name "lynis-sdk" version))
2951 "0sqsrm5wal742yrwps8bqb8a8lxd93n4b93n3kkm1b30nbs25g7y"))))))
2954 (modify-phases %standard-phases
2956 (lambda* (#:key inputs outputs #:allow-other-keys)
2957 (substitute* "lynis"
2958 (("/usr/share/lynis")
2959 (string-append (assoc-ref outputs "out") "/share/lynis")))
2960 (substitute* "include/functions"
2961 (("/usr/local/etc/lynis")
2962 (string-append (assoc-ref outputs "out") "/etc/lynis")))
2966 (lambda* (#:key outputs #:allow-other-keys)
2967 (let ((out (assoc-ref outputs "out")))
2968 (install-file "lynis" (string-append out "/bin/"))
2969 (install-file "default.prf" (string-append out "/etc/lynis"))
2972 (copy-recursively dir (string-append out "/share/lynis/" dir)))
2973 (list "db" "include" "plugins"))
2974 (install-file "lynis.8" (string-append out "/share/man/man8"))
2977 (lambda* (#:key inputs #:allow-other-keys)
2978 (copy-recursively (assoc-ref inputs "lynis-sdk") "../lynis-sdk")
2979 (setenv "LANG" "en_US.UTF-8")
2980 (let ((lynis-dir (getcwd)))
2981 (with-directory-excursion "../lynis-sdk"
2982 (substitute* "config"
2983 (("\\.\\./lynis") lynis-dir))
2984 (substitute* "unit-tests/tests-language-translations.sh"
2985 (("\\.\\./lynis") lynis-dir))
2986 (invoke "sh" "lynis-devkit" "run" "unit-tests"))))))))
2987 (home-page "https://cisofy.com/lynis/")
2988 (synopsis "Security auditing tool")
2989 (description "Lynis is a security auditing tool. It performs an in-depth
2990 security scan and runs on the system itself. The primary goal is to test
2991 security defenses and provide tips for further system hardening. It will also
2992 scan for general system information, vulnerable software packages, and
2993 possible configuration issues.")
2994 (license license:gpl3+)))
2996 (define-public ngrep
3004 (url "https://github.com/jpr5/ngrep/")
3005 (commit (string-append "V" (string-replace-substring version "." "_")))))
3006 (file-name (git-file-name name version))
3009 "1x2fyd7wdqlj1r76ilal06cl2wmbz0ws6i3ys204sbjh1cj6dcl7"))))
3010 (build-system gnu-build-system)
3012 `(("libpcap" ,libpcap)))
3014 `(#:tests? #f ;; No tests.
3015 #:configure-flags (list (string-append "--with-pcap-includes="
3016 (assoc-ref %build-inputs "libpcap")
3018 (home-page "https://github.com/jpr5/ngrep/")
3019 (synopsis "Grep-like utility to search for network packets on an interface")
3020 (description "@command{ngrep} is like GNU grep applied to the network
3021 layer. It's a PCAP-based tool that allows you to specify an extended regular
3022 or hexadecimal expression to match against data payloads of packets. It
3023 understands many kinds of protocols, including IPv4/6, TCP, UDP, ICMPv4/6,
3024 IGMP and Raw, across a wide variety of interface types, and understands BPF
3025 filter logic in the same fashion as more common packet sniffing tools, such as
3026 tcpdump and snoop.")
3027 (license license:bsd-3)))