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 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 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>
26 ;;; This file is part of GNU Guix.
28 ;;; GNU Guix is free software; you can redistribute it and/or modify it
29 ;;; under the terms of the GNU General Public License as published by
30 ;;; the Free Software Foundation; either version 3 of the License, or (at
31 ;;; your option) any later version.
33 ;;; GNU Guix is distributed in the hope that it will be useful, but
34 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
35 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36 ;;; GNU General Public License for more details.
38 ;;; You should have received a copy of the GNU General Public License
39 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
41 (define-module (gnu packages admin)
42 #:use-module ((guix licenses) #:prefix license:)
43 #:use-module (guix packages)
44 #:use-module (guix utils)
45 #:use-module (guix download)
46 #:use-module (guix git-download)
47 #:use-module (guix build-system cmake)
48 #:use-module (guix build-system gnu)
49 #:use-module (guix build-system meson)
50 #:use-module (guix build-system perl)
51 #:use-module (guix build-system python)
52 #:use-module (guix build-system trivial)
53 #:use-module (gnu packages)
54 #:use-module (gnu packages base)
55 #:use-module (gnu packages bash)
56 #:use-module (gnu packages check)
57 #:use-module (gnu packages cyrus-sasl)
58 #:use-module (gnu packages dns)
59 #:use-module (gnu packages file)
60 #:use-module (gnu packages ncurses)
61 #:use-module (gnu packages readline)
62 #:use-module (gnu packages linux)
63 #:use-module (gnu packages lua)
64 #:use-module (gnu packages guile)
65 #:use-module (gnu packages gettext)
66 #:use-module (gnu packages imagemagick)
67 #:use-module (gnu packages inkscape)
68 #:use-module (gnu packages pcre)
69 #:use-module (gnu packages perl)
70 #:use-module (gnu packages perl-check)
71 #:use-module (gnu packages tcl)
72 #:use-module (gnu packages compression)
73 #:use-module (gnu packages cross-base)
74 #:use-module (gnu packages tls)
75 #:use-module (gnu packages gnupg)
76 #:use-module (gnu packages bison)
77 #:use-module (gnu packages flex)
78 #:use-module (gnu packages gl)
79 #:use-module (gnu packages glib)
80 #:use-module (gnu packages openldap)
81 #:use-module (gnu packages mcrypt)
82 #:use-module (gnu packages pkg-config)
83 #:use-module (gnu packages popt)
84 #:use-module (gnu packages python)
85 #:use-module (gnu packages python-crypto)
86 #:use-module (gnu packages python-web)
87 #:use-module (gnu packages qt)
88 #:use-module (gnu packages terminals)
89 #:use-module (gnu packages texinfo)
90 #:use-module (gnu packages groff)
91 #:use-module (gnu packages pciutils)
92 #:use-module (gnu packages libunwind)
93 #:use-module (gnu packages libusb)
94 #:use-module (gnu packages libftdi)
95 #:use-module (gnu packages image)
96 #:use-module (gnu packages xorg)
97 #:use-module (gnu packages xdisorg)
98 #:use-module (gnu packages man)
99 #:use-module (gnu packages autotools)
100 #:use-module (gnu packages gnome)
101 #:use-module (gnu packages kerberos)
102 #:use-module (gnu packages gtk)
103 #:use-module (gnu packages xml)
104 #:use-module (gnu packages boost)
105 #:use-module (gnu packages elf)
106 #:use-module (gnu packages mpi)
107 #:use-module (gnu packages web))
115 (uri (string-append "mirror://sourceforge/aide/aide/"
116 version "/aide-" version ".tar.gz"))
119 "0ibkv4z2gk14fn014kq13rp2ysiq6nn2cflv2q5i7zf466hm6758"))))
120 (build-system gnu-build-system)
125 `(("libgcrypt" ,libgcrypt)
126 ("libgpg-error" ,libgpg-error)
127 ("libmhash" ,libmhash)
130 (synopsis "File and directory integrity checker")
132 "AIDE (Advanced Intrusion Detection Environment) is a file and directory
133 integrity checker. It creates a database from the regular expression rules
134 that it finds from its configuration files. Once this database is initialized
135 it can be used to verify the integrity of the files. It has several message
136 digest algorithms that are used to check the integrity of files. All of the
137 usual file attributes can be checked for inconsistencies.")
138 (home-page "http://aide.sourceforge.net/")
139 (license license:gpl2+)))
141 (define-public progress
147 (uri (string-append "https://github.com/Xfennec/"
148 name "/archive/v" version ".tar.gz"))
150 (base32 "1wcanixfsi5k4i9h5vrnncgjdncalsdfqllrxibxwpgfnf20sji1"))
151 (file-name (string-append name "-" version ".tar.gz"))))
152 (build-system gnu-build-system)
154 `(("pkg-config" ,pkg-config)
157 `(("ncurses" ,ncurses)))
159 `(#:tests? #f ; There is no test suite.
160 #:make-flags (list "CC=gcc"
161 (string-append "PREFIX=" (assoc-ref %outputs "out")))
163 (modify-phases %standard-phases
164 (delete 'configure)))) ; There's no configure phase.
165 (home-page "https://github.com/Xfennec/progress")
166 (synopsis "Program to view the progress of the coreutils commands")
167 (description "A program that looks for coreutils basic commands (cp, mv,
168 dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
169 the percentage of copied data. It can also show estimated time and throughput,
170 and provides a \"top-like\" mode (monitoring).")
171 (license license:gpl3+)))
173 (define-public shepherd
179 (uri (string-append "https://alpha.gnu.org/gnu/shepherd/shepherd-"
183 "1wmciqml9yplnx1s4ynn00giqyk06rbrcsgvpjj2df47sawk2jp8"))))
184 (build-system gnu-build-system)
186 '(#:configure-flags '("--localstatedir=/var")))
188 `(("pkg-config" ,pkg-config)
190 ;; This is the Guile we use as a cross-compiler...
191 ("guile" ,guile-2.2)))
193 ;; ... and this is the one that appears in shebangs when cross-compiling.
194 `(("guile" ,guile-2.2)
196 ;; The 'shepherd' command uses Readline when used interactively. It's
197 ;; an unusual use case though, so we don't propagate it.
198 ("guile-readline" ,guile-readline)))
199 (synopsis "System service manager")
201 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
202 the execution of system services, replacing similar functionality found in
203 typical init systems. It provides dependency-handling through a convenient
204 interface and is based on GNU Guile.")
205 (license license:gpl3+)
206 (home-page "https://www.gnu.org/software/shepherd/")
207 (properties '((ftp-server . "alpha.gnu.org")))))
209 (define-public daemontools
216 "https://cr.yp.to/" name "/"
217 name "-" version ".tar.gz"))
220 "07scvw88faxkscxi91031pjkpccql6wspk4yrlnsbrrb5c0kamd5"))))
221 (build-system gnu-build-system)
223 `(#:tests? #f ;; No tests as far as I can tell.
225 (modify-phases %standard-phases
226 (add-after 'unpack 'chdir
228 (chdir ,(string-append name "-" version))))
230 (add-before 'build 'patch
232 (substitute* "src/error.h"
233 (("extern int errno;")
234 "#include <errno.h>"))))
237 (invoke "package/compile")))
239 (lambda* (#:key outputs #:allow-other-keys)
240 (let* ((out (assoc-ref outputs "out"))
241 (bin (string-append out "/bin")))
242 (for-each (lambda (file)
243 (install-file file bin))
244 (find-files "command"))))))))
245 (synopsis "Tools for managing UNIX style services")
247 "@code{daemontools} is a collection of tools for managing UNIX
249 (license license:public-domain)
250 (home-page "https://cr.yp.to/daemontools.html")))
260 "https://projects.gw-computing.net/attachments/download/615/dfc-"
264 "0m1fd7l85ckb7bq4c5c3g257bkjglm8gq7x42pkmpp87fkknc94n"))))
265 (build-system cmake-build-system)
266 (arguments '(#:tests? #f)) ; There are no tests.
267 (native-inputs `(("gettext" ,gettext-minimal)))
268 (home-page "https://projects.gw-computing.net/projects/dfc")
269 (synopsis "Display file system space usage using graphs and colors")
271 "dfc (df color) is a modern version of df. It uses colors, draws pretty
272 graphs and can export its output to different formats.")
273 (license license:bsd-3)))
281 (uri (string-append "http://hisham.hm/htop/releases/"
282 version "/htop-" version ".tar.gz"))
285 "0mrwpb3cpn3ai7ar33m31yklj64c3pp576vh1naqff6f21pq5mnr"))))
286 (build-system gnu-build-system)
288 `(("ncurses" ,ncurses)))
290 `(("python" ,python-minimal-wrapper))) ; for scripts/MakeHeader.py
291 (home-page "https://hisham.hm/htop/")
292 (synopsis "Interactive process viewer")
294 "This is htop, an interactive process viewer. It is a text-mode
295 application (for console or X terminals) and requires ncurses.")
296 (license license:gpl2)))
305 (uri (string-append "mirror://gnu/pies/pies-"
309 "12r7rjjyibjdj08dvwbp0iflfpzl4s0zhn6cr6zj3hwf9gbzgl1g"))))
310 (build-system gnu-build-system)
312 '(#:phases (modify-phases %standard-phases
313 (add-before 'build 'patch-/bin/sh
314 (lambda* (#:key inputs #:allow-other-keys)
315 ;; Use the right shell when executing user-provided
317 (let ((bash (assoc-ref inputs "bash")))
318 (substitute* "src/progman.c"
320 (string-append "\"" bash "/bin/sh\"")))
322 (home-page "https://www.gnu.org/software/pies/")
323 (synopsis "Program invocation and execution supervisor")
325 "GNU pies is a program that supervises the invocation and execution of
326 other programs. It reads the list of programs to be started from its
327 configuration file, executes them, and then monitors their status,
328 re-executing them as necessary.")
329 (license license:gpl3+)))
331 (define-public inetutils
337 (uri (string-append "mirror://gnu/inetutils/inetutils-"
341 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
342 (build-system gnu-build-system)
344 `(#:configure-flags '("--localstatedir=/var"
346 ;; Make sure 'PATH_PROCNET_DEV' gets defined when
347 ;; cross-compiling (by default it does not.)
348 ,@(if (%current-target-system)
349 '("--with-path-procnet-dev=/proc/net/dev")
351 ;; On some systems, 'libls.sh' may fail with an error such as:
352 ;; "Failed to tell switch -a apart from -A".
353 #:parallel-tests? #f))
354 (inputs `(("ncurses" ,ncurses)
355 ("readline" ,readline))) ;for 'ftp'
356 (native-inputs `(("netstat" ,net-tools))) ;for tests
357 (home-page "https://www.gnu.org/software/inetutils/")
358 (synopsis "Basic networking utilities")
360 "Inetutils is a collection of common network programs, such as an ftp
361 client and server, a telnet client and server, an rsh client and server, and
363 (license license:gpl3+)))
365 (define-public shadow
372 "https://github.com/shadow-maint/shadow/releases/"
373 "download/" version "/shadow-" version ".tar.xz"))
376 "10smy01km2bqjjvsd2jz17zvrxbzj89qczyb1amk38j28bcci609"))))
377 (build-system gnu-build-system)
379 `(;; Assume System V `setpgrp (void)', which is the default on GNU
380 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
382 '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
385 (modify-phases %standard-phases
386 (add-before 'build 'set-nscd-file-name
387 (lambda* (#:key inputs #:allow-other-keys)
388 ;; Use the right file name for nscd.
389 (let ((libc (assoc-ref inputs
390 ,(if (%current-target-system)
393 (substitute* "lib/nscd.c"
395 (string-append libc "/sbin/nscd")))
397 (add-after 'install 'remove-groups
398 (lambda* (#:key outputs #:allow-other-keys)
399 ;; Remove `groups', which is already provided by Coreutils.
400 (let* ((out (assoc-ref outputs "out"))
401 (bin (string-append out "/bin"))
402 (man (string-append out "/share/man")))
403 (delete-file (string-append bin "/groups"))
404 (for-each delete-file (find-files man "^groups\\."))
407 (inputs (if (string-contains (or (%current-target-system)
410 `(("linux-pam" ,linux-pam))
412 (home-page "http://pkg-shadow.alioth.debian.org/")
413 (synopsis "Authentication-related tools such as passwd, su, and login")
415 "Shadow provides a number of authentication-related tools, including:
416 login, passwd, su, groupadd, and useradd.")
418 ;; The `vipw' program is GPLv2+.
419 ;; libmisc/salt.c is public domain.
420 (license license:bsd-3)))
422 (define-public mingetty
428 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
429 version "/mingetty-" version ".tar.gz"))
432 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
433 (build-system gnu-build-system)
436 (modify-phases %standard-phases
438 (lambda* (#:key inputs outputs #:allow-other-keys)
439 (let* ((out (assoc-ref outputs "out"))
440 (man8 (string-append out "/share/man/man8"))
441 (sbin (string-append out "/sbin"))
442 (shadow (assoc-ref inputs "shadow"))
443 (login (string-append shadow "/bin/login")))
444 (substitute* "Makefile"
446 (string-append "SBINDIR = " out
449 (string-append "MANDIR = " out
450 "/share/man/man8\n")))
452 ;; Pick the right 'login' by default.
453 (substitute* "mingetty.c"
455 (string-append "\"" login "\"")))
460 #:tests? #f)) ; no tests
461 (inputs `(("shadow" ,shadow)))
463 (home-page "https://sourceforge.net/projects/mingetty")
464 (synopsis "Getty for the text console")
466 "Small console getty that is started on the Linux text console,
467 asks for a login name and then transfers over to 'login'. It is extended to
468 allow automatic login and starting any app.")
469 (license license:gpl2+)))
471 (define-public net-base
478 "mirror://debian/pool/main/n/netbase/netbase_"
482 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
483 (build-system trivial-build-system)
485 `(#:modules ((guix build utils))
487 (use-modules (guix build utils)
490 (let* ((source (assoc-ref %build-inputs "source"))
491 (tar (assoc-ref %build-inputs "tar"))
492 (xz (assoc-ref %build-inputs "xz"))
493 (output (assoc-ref %outputs "out"))
494 (etc (string-append output "/etc")))
495 (setenv "PATH" (string-append xz "/bin"))
496 (invoke (string-append tar "/bin/tar") "xvf"
498 (chdir ,(string-append "netbase-" version))
501 '("etc-services" "etc-protocols" "etc-rpc")
502 (map (cut string-append etc "/" <>)
503 '("services" "protocols" "rpc")))
505 (native-inputs `(("tar" ,tar)
507 (synopsis "IANA protocol, port, and RPC number assignments")
509 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
510 files, which contain information about the IANA-assigned port, protocol, and
512 (home-page "https://packages.debian.org/sid/netbase")
513 (license license:gpl2)))
515 (define-public netcat
521 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
522 "/netcat-" version ".tar.bz2"))
525 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
526 (build-system gnu-build-system)
529 ;; By default, man and info pages are put in PREFIX/{man,info},
530 ;; but we want them in PREFIX/share/{man,info}.
531 (let ((out (assoc-ref %outputs "out")))
532 (list (string-append "--mandir=" out "/share/man")
533 (string-append "--infodir=" out "/share/info")))))
534 (home-page "http://netcat.sourceforge.net")
535 (synopsis "Read and write data over TCP/IP")
537 "Netcat is a featured networking utility which reads and writes data
538 across network connections, using the TCP/IP protocol. It is designed to be a
539 reliable \"back-end\" tool that can be used directly or easily driven by other
540 programs and scripts. At the same time, it is a feature-rich network debugging
541 and exploration tool, since it can create almost any kind of connection you
542 would need and has several interesting built-in capabilities.")
543 (license license:gpl2+)))
545 (define-public sipcalc
552 (uri (string-append "http://www.routemeister.net/projects"
553 "/sipcalc/files/sipcalc" "-" version ".tar.gz"))
556 "0mv3wndj4z2bsshh2k8d5sy3j8wxzgf8mzmmkvj1k8gpcz37dm6g"))))
557 (build-system gnu-build-system)
558 (home-page "http://www.routemeister.net/projects/sipcalc/")
559 (synopsis "Command-line IP subnet calculator")
561 "Sipcalc is an advanced command-line IP subnet calculator. It can take
562 multiple forms of input (IPv4/IPv6/interface/hostname) and output a multitude
563 of information about a given subnet.
570 @item Retrieving of address information from interfaces.
571 @item Classfull and CIDR output.
572 @item Multiple address and netmask input and output formats (dotted quad, hex,
574 @item Output of broadcast address, network class, Cisco wildcard,
575 hosts/range, network range.
576 @item The ability to split a network based on a smaller netmask, now also with
577 recursive runs on the generated subnets. (also IPv6)
581 @item Compressed and expanded input and output addresses.
582 @item Standard IPv6 network output.
583 @item v4 in v6 output.
584 @item Reverse DNS address generation.
587 (license license:bsd-3)))
595 (uri (string-append "mirror://gnu/alive/alive-"
599 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
600 (build-system gnu-build-system)
601 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
602 (inputs `(("guile" ,guile-2.0)
603 ("inetutils" ,inetutils)))
604 (home-page "https://www.gnu.org/software/alive/")
605 (synopsis "Autologin and keep-alive daemon")
607 "GNU Alive sends periodic pings to a server, generally to keep a
609 (license license:gpl3+)))
611 (define-public isc-dhcp
612 (let* ((bind-major-version "9")
613 (bind-minor-version "11")
614 (bind-patch-version "4")
615 (bind-release-type "-P") ; for patch release, use "-P"
616 (bind-release-version "1") ; for patch release, e.g. "6"
617 (bind-version (string-append bind-major-version
623 bind-release-version)))
629 (uri (string-append "https://ftp.isc.org/isc/dhcp/"
630 version "/dhcp-" version ".tar.gz"))
633 "025nfqx4zwdgv4b3rkw26ihcj312vir08jk6yi57ndmb4a4m08ia"))))
634 (build-system gnu-build-system)
636 `(#:parallel-build? #f
638 (modify-phases %standard-phases
639 (add-after 'unpack 'replace-bundled-bind
640 (lambda* (#:key inputs #:allow-other-keys)
641 (delete-file "bind/bind.tar.gz")
642 (copy-file (assoc-ref inputs "bind-source-tarball")
644 (chmod "bind/bind.tar.gz" #o644)
645 (substitute* "bind/version.tmp"
647 (format #f "MAJORVER=~a\n" ,bind-major-version))
649 (format #f "MINORVER=~a\n" ,bind-minor-version))
651 (format #f "PATCHVER=~a\n" ,bind-patch-version))
653 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
655 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
657 (add-after 'configure 'post-configure
658 (lambda* (#:key outputs #:allow-other-keys)
659 ;; Point to the right client script, which will be
660 ;; installed in a later phase.
661 (substitute* "includes/dhcpd.h"
662 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
663 (let ((out (assoc-ref outputs "out")))
664 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
665 out "/libexec/dhclient-script"
668 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
669 ;; we must patch shebangs in there and make sure the right
671 (with-directory-excursion "bind"
672 (substitute* "Makefile"
674 (let ((sh (which "sh")))
675 (string-append "./configure CONFIG_SHELL="
678 (let ((bind-directory (string-append "bind-" ,bind-version)))
679 (invoke "tar" "xf" "bind.tar.gz")
680 (for-each patch-shebang
681 (find-files bind-directory ".*"))
682 (invoke "tar" "cf" "bind.tar.gz"
684 ;; avoid non-determinism in the archive
688 "--group=root:0")))))
689 (add-after 'install 'post-install
690 (lambda* (#:key inputs outputs #:allow-other-keys)
691 ;; Install the dhclient script for GNU/Linux and make sure
692 ;; if finds all the programs it needs.
693 (let* ((out (assoc-ref outputs "out"))
694 (libexec (string-append out "/libexec"))
695 (coreutils (assoc-ref inputs "coreutils"))
696 (inetutils (assoc-ref inputs "inetutils"))
697 (net-tools (assoc-ref inputs "net-tools"))
698 (sed (assoc-ref inputs "sed")))
699 (substitute* "client/scripts/linux"
701 (string-append (assoc-ref inputs "iproute")
705 (copy-file "client/scripts/linux"
706 (string-append libexec "/dhclient-script"))
709 (string-append libexec "/dhclient-script")
712 (string-append dir "/bin:"
714 (list inetutils net-tools coreutils sed))))
717 (native-inputs `(("perl" ,perl)))
719 (inputs `(("inetutils" ,inetutils)
720 ("net-tools" ,net-tools)
723 ;; XXX isc-dhcp bundles a copy of bind that has security
724 ;; flaws, so we use a newer version.
725 ("bind-source-tarball"
728 (uri (string-append "https://ftp.isc.org/isc/bind9/"
730 "/bind-" bind-version ".tar.gz"))
733 "08zyy13b8ydfbg26b3y6mw299qs89ba90gymraqqjsgjicydrq5h"))))
735 ;; When cross-compiling, we need the cross Coreutils and sed.
736 ;; Otherwise just use those from %FINAL-INPUTS.
737 ,@(if (%current-target-system)
738 `(("coreutils" ,coreutils)
742 (home-page "https://www.isc.org/products/DHCP/")
743 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
745 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
746 reference implementation of all aspects of DHCP, through a suite of DHCP
747 tools: server, client, and relay agent.")
748 (license license:mpl2.0)
749 (properties '((cpe-name . "dhcp"))))))
751 (define-public libpcap
757 (uri (string-append "https://www.tcpdump.org/release/libpcap-"
761 "06bhydl4vr4z9c3vahl76f2j96z1fbrcl7wwismgs4sris08inrf"))))
762 (build-system gnu-build-system)
767 ;; There are some tests in testprogs/, but no automated test suite.
769 (home-page "https://www.tcpdump.org")
770 (synopsis "Network packet capture library")
772 "libpcap is an interface for user-level packet capture. It provides a
773 portable framework for low-level network monitoring. Applications include
774 network statistics collection, security monitoring, network debugging, etc.")
775 (license (list license:bsd-4 ; fad-*.c and several other source files
776 license:bsd-3 ; pcap/, sockutils.* & others
777 license:bsd-2)))) ; the rest
779 (define-public tcpdump
785 (uri (string-append "https://www.tcpdump.org/release/tcpdump-"
789 "0ygy0layzqaj838r5xd613iraz09wlfgpyh7pc6cwclql8v3b2vr"))))
790 (build-system gnu-build-system)
791 (inputs `(("libpcap" ,libpcap)
792 ("openssl" ,openssl)))
793 (native-inputs `(("perl" ,perl))) ; for tests
794 (home-page "https://www.tcpdump.org/")
795 (synopsis "Network packet analyzer")
797 "Tcpdump is a command-line tool to analyze network traffic passing
798 through the network interface controller.")
799 (license license:bsd-3)))
801 (define-public jnettop
807 (uri (string-append "http://jnettop.kubs.info/dist/jnettop-"
811 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
812 (build-system gnu-build-system)
814 `(("pkg-config" ,pkg-config)))
818 ("libpcap" ,libpcap)))
819 (home-page "http://jnettop.kubs.info/")
820 (synopsis "Visualize network traffic by bandwidth use")
822 "Jnettop is a traffic visualiser, which captures traffic going
823 through the host it is running from and displays streams sorted
824 by bandwidth they use.")
825 (license license:gpl2+)))
827 (define-public clusterssh
833 (uri (string-append "mirror://sourceforge/clusterssh/"
834 "2.%20ClusterSSH%20Series%204/"
835 "App-ClusterSSH-v" version ".tar.gz"))
838 "0rmk2p3f2wz1h092anidjclh212rv3gxyk0c641qk3frlrjnw6mp"))))
839 (build-system perl-build-system)
841 `(("perl-cpan-changes" ,perl-cpan-changes)
842 ("perl-file-slurp" ,perl-file-slurp)
843 ("perl-file-which" ,perl-file-which)
844 ("perl-module-build" ,perl-module-build)
845 ("perl-readonly" ,perl-readonly)
846 ("perl-test-differences" ,perl-test-differences)
847 ("perl-test-distmanifest" ,perl-test-distmanifest)
848 ("perl-test-perltidy" ,perl-test-perltidy)
849 ("perl-test-pod" ,perl-test-pod)
850 ("perl-test-pod-coverage" ,perl-test-pod-coverage)
851 ("perl-test-trap" ,perl-test-trap)
852 ("perltidy" ,perltidy)))
855 ("perl-exception-class" ,perl-exception-class)
857 ("perl-try-tiny" ,perl-try-tiny)
858 ("perl-x11-protocol" ,perl-x11-protocol)
859 ("perl-x11-protocol-other" ,perl-x11-protocol-other)))
860 ;; The clusterssh.sourceforge.net address requires login to view
861 (home-page "https://sourceforge.net/projects/clusterssh/")
862 (synopsis "Secure concurrent multi-server terminal control")
864 "ClusterSSH controls a number of xterm windows via a single graphical
865 console window to allow commands to be interactively run on multiple servers
866 over ssh connections.")
867 (license license:gpl2+)))
869 (define-public rename
876 "mirror://cpan/authors/id/R/RM/RMBARKER/File-Rename-"
880 "03yhf8nmqsb0zyliv501fdvwlp589jqfn44yqkrflmpzrbik3zxl"))))
881 (build-system perl-build-system)
884 (modify-phases %standard-phases
885 (add-after 'install 'find-itself
886 ;; Fix run-time 'Can't locate File/Rename.pm in @INC' failure.
887 (lambda* (#:key outputs #:allow-other-keys)
888 (let* ((out (assoc-ref outputs "out"))
889 (bin (string-append out "/bin")))
890 (with-directory-excursion bin
893 (wrap-program program
894 `("PERL5LIB" ":" prefix
895 (,(string-append out "/lib/perl5/site_perl")))))
896 (find-files "." ".*")))
899 `(("perl-module-build" ,perl-module-build)
900 ("perl-test-pod" ,perl-test-pod)
901 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
902 (home-page "https://metacpan.org/pod/distribution/File-Rename/rename.PL")
903 (synopsis "Perl extension for renaming multiple files")
905 "This package provides a Perl interface (@code{Perl::Rename}) as well
906 as a command-line utility (@command{rename}) that can rename multiple files
907 at once based on a Perl regular expression.")
908 (license license:perl-license)))
910 (define-public rottlog
916 (uri (string-append "mirror://gnu/rottlog/rottlog-"
920 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
921 (modules '((guix build utils)))
924 (substitute* "Makefile.in"
925 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
926 ;; Don't try to chown root.
928 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
929 ;; Don't attempt to create /var/lib/rottlog.
932 (build-system gnu-build-system)
934 '(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
935 "--localstatedir=/var")
937 ;; Install example config files in OUT/etc.
938 #:make-flags (list (string-append "ROTT_ETCDIR="
939 (assoc-ref %outputs "out")
942 #:phases (modify-phases %standard-phases
943 (add-after 'unpack 'patch-paths
946 (("/usr/sbin/sendmail") "sendmail"))
948 (add-after 'build 'set-packdir
950 ;; Set a default location for archived logs.
953 "packdir=\"/var/log\""))
955 (add-before 'install 'tweak-rc-weekly
957 (substitute* "rc/weekly"
961 ;; The file is called 'syslog.pid' (no 'd').
964 (add-after 'install 'install-info
966 (zero? (system* "make" "install-info")))))))
967 (native-inputs `(("texinfo" ,texinfo)
968 ("util-linux" ,util-linux))) ; for 'cal'
969 (home-page "https://www.gnu.org/software/rottlog/")
970 (synopsis "Log rotation and management")
972 "GNU Rot[t]log is a program for managing log files. It is used to
973 automatically rotate out log files when they have reached a given size or
974 according to a given schedule. It can also be used to automatically compress
975 and archive such logs. Rot[t]log will mail reports of its activity to the
976 system administrator.")
977 (license license:gpl3+)))
986 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
988 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
992 "0nqri46d4dpycj96zin2f2wszmhm7q9mr68hhj9sp81pgmx9rjcx"))
993 (modules '((guix build utils)))
996 (delete-file-recursively "lib/zlib")
998 (build-system gnu-build-system)
1001 (list "--with-logpath=/var/log/sudo.log"
1002 "--with-rundir=/var/run/sudo" ; must be cleaned up at boot time
1003 "--with-vardir=/var/db/sudo"
1004 "--with-iologdir=/var/log/sudo-io"
1006 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
1008 (string-append "CPPFLAGS=-D_PATH_MV='\""
1009 (assoc-ref %build-inputs "coreutils")
1012 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
1013 #:parallel-build? #f
1016 (modify-phases %standard-phases
1017 (add-before 'configure 'pre-configure
1019 (substitute* "src/sudo_usage.h.in"
1020 ;; Do not capture 'configure' arguments since we would
1021 ;; unduly retain references, and also because the
1022 ;; CPPFLAGS above would close the string literal
1024 (("@CONFIGURE_ARGS@") "\"\""))
1025 (substitute* (find-files "." "Makefile\\.in")
1026 (("-o [[:graph:]]+ -g [[:graph:]]+")
1027 ;; Allow installation as non-root.
1029 (("^install: (.*)install-sudoers(.*)" _ before after)
1030 ;; Don't try to create /etc/sudoers.
1031 (string-append "install: " before after "\n"))
1032 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
1033 ;; Don't try to create /run/sudo.
1035 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
1036 ;; Don't try to create /var/db/sudo.
1040 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
1041 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
1045 ("linux-pam" ,linux-pam)
1047 ("coreutils" ,coreutils)))
1048 (home-page "https://www.sudo.ws/")
1049 (synopsis "Run commands as root")
1051 "Sudo (su \"do\") allows a system administrator to delegate authority to
1052 give certain users (or groups of users) the ability to run some (or all)
1053 commands as root or another user while providing an audit trail of the
1054 commands and their arguments.")
1056 ;; See <http://www.sudo.ws/sudo/license.html>.
1057 (license license:x11)))
1059 (define-public wpa-supplicant-minimal
1061 (name "wpa-supplicant-minimal")
1066 "https://w1.fi/releases/wpa_supplicant-"
1069 (patches (search-patches "wpa-supplicant-CVE-2017-13082.patch"
1070 "wpa-supplicant-CVE-2018-14526.patch"
1071 "wpa-supplicant-fix-key-reuse.patch"
1072 "wpa-supplicant-fix-zeroed-keys.patch"
1073 "wpa-supplicant-fix-nonce-reuse.patch"
1074 "wpa-supplicant-krack-followups.patch"))
1077 "0l0l5gz3d5j9bqjsbjlfcv4w4jwndllp9fmyai4x9kg6qhs6v4xl"))))
1078 (build-system gnu-build-system)
1081 (modify-phases %standard-phases
1083 (lambda* (#:key outputs #:allow-other-keys)
1084 (chdir "wpa_supplicant")
1085 (copy-file "defconfig" ".config")
1086 (let ((port (open-file ".config" "al")))
1088 CONFIG_DEBUG_SYSLOG=y
1090 # Choose GnuTLS (the default is OpenSSL.)
1093 CONFIG_DRIVER_NL80211=y
1094 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
1096 CONFIG_READLINE=y\n" port)
1097 (close-port port))))
1098 (add-after 'install 'install-man-pages
1099 (lambda* (#:key outputs #:allow-other-keys)
1100 (let* ((out (assoc-ref outputs "out"))
1101 (man (string-append out "/share/man"))
1102 (man5 (string-append man "/man5"))
1103 (man8 (string-append man "/man8")))
1104 (define (copy-man-page target)
1106 (install-file file target)))
1108 (mkdir-p man5) (mkdir man8)
1109 (for-each (copy-man-page man5)
1110 (find-files "doc/docbook" "\\.5"))
1111 (for-each (copy-man-page man8)
1112 (find-files "doc/docbook" "\\.8"))
1115 #:make-flags (list "CC=gcc"
1116 (string-append "BINDIR=" (assoc-ref %outputs "out")
1118 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1122 `(("readline" ,readline)
1125 ("libgcrypt" ,libgcrypt))) ;needed by crypto_gnutls.c
1127 `(("pkg-config" ,pkg-config)))
1128 (home-page "https://w1.fi/wpa_supplicant/")
1129 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
1131 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
1132 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
1133 the client stations. It implements key negotiation with a WPA Authenticator
1134 and it controls the roaming and IEEE 802.11 authentication/association of the
1137 This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
1139 ;; In practice, this is linked against Readline, which makes it GPLv3+.
1140 (license license:bsd-3)))
1142 (define-public wpa-supplicant
1143 (package (inherit wpa-supplicant-minimal)
1144 (name "wpa-supplicant")
1145 (inputs `(("dbus" ,dbus)
1146 ,@(package-inputs wpa-supplicant-minimal)))
1148 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
1150 `(modify-phases ,phases
1151 (add-after 'configure 'configure-for-dbus
1153 (let ((port (open-file ".config" "al")))
1155 CONFIG_CTRL_IFACE_DBUS=y
1156 CONFIG_CTRL_IFACE_DBUS_NEW=y
1157 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
1160 (add-after 'install-man-pages 'install-dbus-conf
1161 (lambda* (#:key outputs #:allow-other-keys)
1162 (let* ((out (assoc-ref outputs "out"))
1163 (dir (string-append out "/etc/dbus-1/system.d")))
1165 (copy-file "dbus/dbus-wpa_supplicant.conf"
1166 (string-append dir "/wpa_supplicant.conf")))
1169 (define-public wpa-supplicant-gui
1171 (inherit wpa-supplicant)
1172 (name "wpa-supplicant-gui")
1173 (inputs `(("qtbase" ,qtbase)
1175 ,@(package-inputs wpa-supplicant)))
1178 `(("imagemagick" ,imagemagick)
1179 ("inkscape" ,inkscape)
1180 ,@(package-native-inputs wpa-supplicant)))
1182 `(#:phases (modify-phases %standard-phases
1183 (add-after 'unpack 'chdir
1185 (chdir "wpa_supplicant/wpa_gui-qt4")
1190 (invoke "qmake" "wpa_gui.pro")
1191 (invoke "make" "-j" (number->string (parallel-job-count)))
1192 (invoke "make" "-C" "icons")))
1194 (lambda* (#:key inputs outputs #:allow-other-keys)
1195 (let ((out (assoc-ref outputs "out"))
1196 (qt '("qtbase" "qtsvg")))
1197 (substitute* "wpa_gui.desktop"
1199 (string-append "Exec=" out "/bin/wpa_gui")))
1200 (install-file "wpa_gui" (string-append out "/bin"))
1201 (install-file "wpa_gui.desktop"
1202 (string-append out "/share/applications"))
1203 (copy-recursively "icons/hicolor"
1204 (string-append out "/share/icons/hicolor"))
1205 (wrap-program (string-append out "/bin/wpa_gui")
1206 `("QT_PLUGIN_PATH" ":" prefix
1207 ,(map (lambda (label)
1208 (string-append (assoc-ref inputs label)
1209 "/lib/qt5/plugins/"))
1212 (synopsis "Graphical user interface for WPA supplicant")))
1214 (define-public wakelan
1221 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
1225 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
1226 (build-system gnu-build-system)
1229 (modify-phases %standard-phases
1231 (lambda* (#:key outputs #:allow-other-keys)
1232 (let ((out (assoc-ref outputs "out")))
1233 (mkdir-p (string-append out "/bin"))
1234 (mkdir-p (string-append out "/share/man/man1"))
1236 ;; It's an old configure script that doesn't understand
1237 ;; the extra options we pass.
1238 (setenv "CONFIG_SHELL" (which "bash"))
1240 (system* "./configure"
1241 (string-append "--prefix=" out)
1242 (string-append "--mandir=" out
1245 (home-page "https://www.kernel.org") ; really, no home page
1246 (synopsis "Send a wake-on-LAN packet")
1248 "WakeLan broadcasts a properly formatted UDP packet across the local area
1249 network, which causes enabled computers to power on.")
1250 (license license:gpl2+)))
1252 (define-public dmidecode
1259 "mirror://savannah/dmidecode/dmidecode-"
1263 "1pcfhcgs2ifdjwp7amnsr3lq95pgxpr150bjhdinvl505px0cw07"))))
1264 (build-system gnu-build-system)
1266 '(#:phases (modify-phases %standard-phases (delete 'configure))
1267 #:tests? #f ; no 'check' target
1268 #:make-flags (list (string-append "prefix="
1269 (assoc-ref %outputs "out")))))
1270 (home-page "https://www.nongnu.org/dmidecode/")
1271 (synopsis "Read hardware information from the BIOS")
1273 "Dmidecode reports information about your system's hardware as described
1274 in your system BIOS according to the SMBIOS/DMI standard. This typically
1275 includes system manufacturer, model name, serial number, BIOS version, asset
1276 tag as well as a lot of other details of varying level of interest and
1277 reliability depending on the manufacturer. This will often include usage
1278 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1279 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1280 (license license:gpl2+)))
1282 (define-public acpica
1285 (version "20180810")
1289 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1293 "01drf32h0v1s8yd414rgc9bavb52yffrwpnbzfxd9sk1lwssr6v7"))))
1294 (build-system gnu-build-system)
1295 (native-inputs `(("flex" ,flex)
1298 '(#:make-flags (list (string-append "PREFIX=" %output)
1301 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1302 #:tests? #f ; no 'check' target
1303 #:phases (modify-phases %standard-phases (delete 'configure))))
1304 (home-page "https://acpica.org/")
1305 (synopsis "Tools for the development and debug of ACPI tables")
1307 "The ACPI Component Architecture (@dfn{ACPICA}) project provides an
1308 OS-independent reference implementation of the Advanced Configuration and
1309 Power Interface Specification (@dfn{ACPI}). ACPICA code contains those portions
1310 of ACPI meant to be directly integrated into the host OS as a kernel-resident
1311 subsystem, and a small set of tools to assist in developing and debugging ACPI
1312 tables. This package contains only the user-space tools needed for ACPI table
1313 development, not the kernel implementation of ACPI.")
1314 (license license:gpl2))) ; dual GPLv2/ACPICA Licence
1316 (define-public stress
1322 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1323 version ".orig.tar.gz"))
1326 "0nw210jajk38m3y7h8s130ps2qsbz7j75wab07hi2r3hlz14yzh5"))))
1327 (build-system gnu-build-system)
1328 (home-page "https://packages.debian.org/sid/stress")
1329 (synopsis "Impose load on and stress test a computer system")
1331 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
1332 or disk stress on a POSIX-compliant operating system and reports any errors it
1335 Stress is not a benchmark. It is a tool used by system administrators to
1336 evaluate how well their systems will scale, by kernel programmers to evaluate
1337 perceived performance characteristics, and by systems programmers to expose
1338 the classes of bugs which only or more frequently manifest themselves when the
1339 system is under heavy load.")
1340 (license license:gpl2+)))
1342 (define-public detox
1348 (uri (string-append "mirror://sourceforge/detox/detox/" version
1349 "/detox-" version ".tar.bz2"))
1352 "1y6vvjqsg54kl49cry73jbfhr04s7wjs779vrr9zrq6kww7dkymb"))))
1353 (build-system gnu-build-system)
1354 ;; Both flex and popt are used in this case for their runtime libraries
1355 ;; (libfl and libpopt).
1360 `(#:configure-flags `(,(string-append "--with-popt="
1361 (assoc-ref %build-inputs "popt")))
1362 #:tests? #f)) ;no 'check' target
1363 (home-page "http://detox.sourceforge.net")
1364 (synopsis "Clean up file names")
1366 "Detox is a program that renames files to make them easier to work with
1367 under Unix and related operating systems. Spaces and various other unsafe
1368 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1369 characters can be replaced as well, as can UTF-8 characters.")
1370 (license license:bsd-3)))
1372 (define-public testdisk
1378 (uri (string-append "http://www.cgsecurity.org/testdisk-"
1379 version ".tar.bz2"))
1382 "0ba4wfz2qrf60vwvb1qsq9l6j0pgg81qgf7fh22siaz649mkpfq0"))))
1383 (build-system gnu-build-system)
1385 `(("ntfs-3g" ,ntfs-3g)
1386 ("util-linux" ,util-linux)
1387 ("openssl" ,openssl)
1388 ;; FIXME: add reiserfs
1390 ("e2fsprogs" ,e2fsprogs)
1391 ("libjpeg" ,libjpeg)
1392 ("ncurses" ,ncurses)))
1393 (home-page "https://www.cgsecurity.org/wiki/TestDisk")
1394 (synopsis "Data recovery tool")
1396 "TestDisk is a program for data recovery, primarily designed to help
1397 recover lost partitions and/or make non-booting disks bootable again.")
1398 (license license:gpl2+)))
1407 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1410 (base32 "04kviw799qxly08zb8n5mgxfd96gyis6x69q2qiw86jnh87c4mv9"))))
1411 (build-system gnu-build-system)
1413 '(#:phases (modify-phases %standard-phases (delete 'configure))
1414 #:tests? #f ; no check target
1415 #:make-flags (let ((out (assoc-ref %outputs "out")))
1416 (list (string-append "prefix=" out)))))
1417 (synopsis "Recursively list the contents of a directory")
1419 "Tree is a recursive directory listing command that produces a depth
1420 indented listing of files, which is colorized ala dircolors if the LS_COLORS
1421 environment variable is set and output is to tty.")
1422 (home-page "http://mama.indstate.edu/users/ice/tree/")
1423 (license license:gpl2+)))
1425 (define-public direvent
1431 (uri (string-append "mirror://gnu/direvent/direvent-"
1435 "1nwvjmx7kb14ni34c0b8x9a3791pc20gvhj7xaj66d8q4h6n0qf4"))
1436 (modules '((guix build utils)))
1438 (substitute* "tests/testsuite"
1439 (("#![[:blank:]]?/bin/sh")
1442 (build-system gnu-build-system)
1445 (modify-phases %standard-phases
1446 (add-before 'build 'patch-/bin/sh
1447 (lambda* (#:key inputs #:allow-other-keys)
1448 ;; Use the right shell when executing the watcher and
1449 ;; user-provided shell commands.
1450 (let ((bash (assoc-ref inputs "bash")))
1451 (substitute* '("src/direvent.c" "src/progman.c")
1453 (string-append "\"" bash "/bin/sh\"")))
1455 ;; Adjust the 'shell.at' test accordingly.
1456 (substitute* "tests/testsuite"
1458 (string-append "SHELL=" bash "/bin/sh")))
1461 (home-page "https://www.gnu.org/software/direvent/")
1462 (synopsis "Daemon to monitor directories for events such as file removal")
1464 "A daemon that monitors directories for events, such as creating,
1465 deleting or modifying files. It can monitor different sets of directories for
1466 different events. When an event is detected, direvent calls a specified
1467 external program with information about the event, such as the location
1468 within the file system where it occurred. Thus, \"direvent\" provides an
1469 easy way to react immediately if given files undergo changes, for example, to
1470 track changes in important system configuration files.")
1471 (license license:gpl3+)))
1473 (define-public libcap-ng
1480 "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1484 "0a0k484kwv0zilry2mbl9k56cnpdhsjxdxin17jas6kkyfy345aa"))))
1485 (build-system gnu-build-system)
1488 (list "--without-python")))
1489 (home-page "https://people.redhat.com/sgrubb/libcap-ng/")
1490 (synopsis "Library for more easily working with POSIX capabilities")
1492 "The libcap-ng library is intended to make programming with POSIX
1493 capabilities easier than the traditional libcap library. It includes
1494 utilities that can analyse all currently running applications and print out
1495 any capabilities and whether or not it has an open ended bounding set. The
1496 included utilities are designed to let admins and developers spot apps from
1497 various ways that may be running with too much privilege.")
1498 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1499 (license (list license:lgpl2.1+ license:gpl2+))))
1501 (define-public smartmontools
1503 (name "smartmontools")
1508 "mirror://sourceforge/smartmontools/smartmontools/"
1509 version "/smartmontools-" version ".tar.gz"))
1512 "0m1hllbb78rr6cxkbalmz1gqkl0psgq8rrmv4gwcmz34n07kvx2i"))))
1513 (build-system gnu-build-system)
1514 (inputs `(("libcap-ng" ,libcap-ng)))
1515 (home-page "https://www.smartmontools.org/")
1516 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1518 "The smartmontools package contains utility programs to control and
1519 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1520 Technology System (@dfn{S.M.A.R.T.}) built into most modern ATA and SCSI hard
1521 disks. In many cases, these utilities will provide advanced warning of disk
1522 degradation and failure.")
1523 (license license:gpl2+)))
1525 (define-public fdupes
1533 "https://github.com/adrianlopezroche/fdupes/archive/v"
1535 (file-name (string-append name "-" version ".tar.gz"))
1538 "1sj9pa40pbz6xdwbxfwhdhkvhdf1xc5gvggk9mdq26c41gdnyswx"))))
1539 (build-system gnu-build-system)
1541 '(#:phases (modify-phases %standard-phases
1542 (delete 'configure))
1543 #:tests? #f ; no 'check' target
1544 #:make-flags (list "CC=gcc"
1545 (string-append "PREFIX="
1546 (assoc-ref %outputs "out")))))
1547 (home-page "https://github.com/adrianlopezroche/fdupes")
1548 (synopsis "Identify duplicate files")
1550 "fdupes is a program for identifying duplicate files residing within
1551 specified directories.")
1552 (license license:expat)))
1554 (define-public graphios
1562 "https://pypi.python.org/packages/source/g/graphios/graphios-"
1566 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1567 (build-system python-build-system)
1569 ;; Be warned: Building with Python 3 succeeds, but the build process
1570 ;; throws a syntax error that is ignored.
1571 `(#:python ,python-2
1573 (modify-phases %standard-phases
1574 (add-before 'build 'fix-setup.py
1575 (lambda* (#:key outputs #:allow-other-keys)
1576 ;; Fix hardcoded, unprefixed file names.
1577 (let ((out (assoc-ref outputs "out")))
1578 (substitute* '("setup.py")
1579 (("/etc") (string-append out "/etc"))
1581 (("distro_ver = .*") "distro_ver = ''"))
1583 (home-page "https://github.com/shawn-sterling/graphios")
1584 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1586 "Graphios is a script to emit nagios perfdata to various upstream metrics
1587 processing and time-series systems. It's currently compatible with Graphite,
1588 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1589 of supported upstream metrics systems simultaneously.")
1590 (license license:gpl2+)))
1592 (define-public ansible
1599 (uri (pypi-uri "ansible" version))
1602 "0wbsjjx3xjlm8g50a9j9c6p9rn23jx32yn1234bf5rmj1qgy3p85"))
1603 (patches (search-patches "ansible-wrap-program-hack.patch"))))
1604 (build-system python-build-system)
1606 `(("python-bcrypt" ,python-bcrypt)
1607 ("python-pynacl" ,python-pynacl)
1608 ("python-httplib2" ,python-httplib2)
1609 ("python-passlib" ,python-passlib)
1610 ("python-nose" ,python-nose)
1611 ("python-mock" ,python-mock)
1612 ("python-jinja2" ,python-jinja2)
1613 ("python-pyyaml" ,python-pyyaml)
1614 ("python-paramiko" ,python-paramiko)))
1616 `(("python-cryptography" ,python-cryptography)
1617 ("python-jinja2" ,python-jinja2)
1618 ("python-pyyaml" ,python-pyyaml)
1619 ("python-paramiko" ,python-paramiko)))
1620 (home-page "https://www.ansible.com/")
1621 (synopsis "Radically simple IT automation")
1622 (description "Ansible is a radically simple IT automation system. It
1623 handles configuration management, application deployment, cloud provisioning,
1624 ad hoc task execution, and multinode orchestration---including trivializing
1625 things like zero-downtime rolling updates with load balancers.")
1626 (license license:gpl3+)))
1628 (define-public cpulimit
1635 (uri (string-append "https://github.com/opsengine/cpulimit/archive/v"
1637 (file-name (string-append name "-" version ".tar.gz"))
1640 "1nn2w849xd5bw4y5sqnll29nxdwl5h0cv4smc7dwmpb9qnd2ycb4"))))
1641 (build-system gnu-build-system)
1643 `(#:phases (modify-phases %standard-phases
1648 (zero? (system* "make" "CC=gcc" "-Csrc"))))
1652 (zero? (system* "make" "CC=gcc" "-Ctests"))))
1655 (lambda* (#:key outputs #:allow-other-keys)
1656 (let* ((out (assoc-ref outputs "out"))
1657 (bin (string-append out "/bin")))
1658 (install-file "src/cpulimit" bin)))))))
1659 (home-page "https://github.com/opsengine/cpulimit")
1660 (synopsis "Limit CPU usage")
1662 "Cpulimit limits the CPU usage of a process. It does not change the nice
1663 value or other scheduling priority settings, but the real CPU usage, and is
1664 able to adapt itself dynamically to the overall system load. Children
1665 processes and threads of the specified process may optionally share the same
1667 (license license:gpl2+)))
1669 (define-public autojump
1676 (uri (string-append "https://github.com/wting/autojump/archive/"
1677 "release-v" version ".tar.gz"))
1678 (file-name (string-append name "-" version ".tar.gz"))
1681 "17z9j9936x0nizwrzf664bngh60x5qbvrrf1s5qdzd0f2gdanpvn"))))
1682 (build-system gnu-build-system)
1683 (native-inputs ;for tests
1684 `(("python-mock" ,python-mock)
1685 ("python-pytest" ,python-pytest)))
1687 `(("python" ,python-wrapper)))
1690 (modify-phases %standard-phases
1695 (invoke "python" "tests/unit/autojump_utils_test.py")))
1697 (lambda* (#:key outputs #:allow-other-keys)
1698 (setenv "SHELL" (which "bash"))
1699 (invoke "python" "install.py"
1700 (string-append "--destdir="
1701 (assoc-ref outputs "out"))))))))
1702 (home-page "https://github.com/wting/autojump")
1703 (synopsis "Shell extension for file system navigation")
1705 "Autojump provides a faster way to navigate your file system, with a \"cd
1706 command that learns\". It works by maintaining a database of the directories
1707 you use the most from the command line and allows you to \"jump\" to
1708 frequently used directories by typing only a small pattern.")
1709 (license license:gpl3+)))
1718 (url "https://github.com/clvv/fasd.git")
1720 (file-name (git-file-name name version))
1723 "1awi71jdv3mhjrmar2d4z1i90kn7apd7aq1w31sh6w4yibz9kiyj"))))
1724 (build-system gnu-build-system)
1726 `(#:phases (modify-phases %standard-phases
1727 (delete 'configure)) ;no configuration
1728 #:tests? #f ;no tests
1729 #:make-flags (list (string-append "PREFIX=" %output))))
1730 (home-page "https://github.com/clvv/fasd")
1731 (synopsis "Quick access to files and directories for shells")
1733 "Fasd (pronounced similar to \"fast\") is a command-line productivity
1734 booster. Fasd offers quick access to files and directories for POSIX shells.
1735 It is inspired by tools like autojump, z, and v. Fasd keeps track of files
1736 and directories you have accessed so that you can quickly reference them in
1738 (license license:x11)))
1740 (define-public iftop
1746 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
1747 "/iftop-" version ".tar.gz"))
1750 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
1751 (build-system gnu-build-system)
1753 `(("libpcap" ,libpcap)
1754 ("ncurses" ,ncurses)))
1755 (synopsis "Monitor network usage")
1756 (description "Iftop does for network usage what @command{top} does
1757 for CPU usage. It listens to network traffic on a named interface and
1758 displays a table of current bandwidth usage by pairs of hosts.")
1759 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
1760 (license license:gpl2+)))
1762 (define-public munge
1768 (uri (string-append "https://github.com/dun/munge/releases/"
1769 "download/munge-" version "/munge-"
1773 "1nj486bbg1adfg298zck96vgx57kchcypc1zdz1n7w540vyksxcr"))))
1775 `(("openssl" ,openssl)
1776 ("libgcrypt" ,libgcrypt)))
1777 (build-system gnu-build-system)
1778 (home-page "https://dun.github.io/munge/")
1779 (synopsis "Cluster computing authentication service")
1781 "Munge is an authentication service for creating and validating
1782 credentials. It allows a process to authenticate the UID and GID of another
1783 local or remote process within a group of hosts having common users and
1784 groups. These hosts form a security realm that is defined by a shared
1785 cryptographic key. Clients within this security realm can create and validate
1786 credentials without the use of root privileges, reserved ports, or
1787 platform-specific methods.")
1788 (license license:gpl3+)))
1790 (define-public audit
1793 (home-page "https://people.redhat.com/sgrubb/audit/")
1797 (uri (string-append home-page name "-" version ".tar.gz"))
1800 "0f4ci6ffznnmgblwgv7ich9mjfk3p6y5l6m6h3chhmzw156nj454"))))
1801 (build-system gnu-build-system)
1803 `(#:configure-flags (list "--with-python=no"
1804 "--disable-static")))
1806 `(("openldap" ,openldap)
1808 ("sasl" ,cyrus-sasl)))
1809 (synopsis "User-space component to the Linux auditing system")
1811 "auditd is the user-space component to the Linux auditing system, which
1812 allows logging of system calls made by user-land processes. It's responsible
1813 for writing audit records to the disk. Viewing the logs is done with the
1814 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
1815 done with the @code{auditctl} utility.")
1816 (license license:gpl2+)))
1824 (uri (string-append "https://nmap.org/dist/nmap-" version
1828 "063fg8adx23l4irrh5kn57hsmi1xvjkar4vm4k6g94ppan4hcyw4"))
1829 (modules '((guix build utils)))
1832 (for-each delete-file-recursively
1833 ;; Remove bundled lua, pcap, and pcre libraries.
1834 ;; FIXME: Remove bundled liblinear once packaged.
1838 ;; Remove pre-compiled binares.
1841 (build-system gnu-build-system)
1843 `(("openssl" ,openssl)
1844 ("libpcap" ,libpcap)
1847 ("zlib" ,zlib) ;for NSE compression support
1850 ("python" ,python-2)))
1852 ;; TODO Add zenmap output.
1853 (outputs '("out" "ndiff"))
1855 '(#:configure-flags '("--without-zenmap")
1857 (modify-phases %standard-phases
1858 (add-after 'configure 'patch-Makefile
1860 (substitute* "Makefile"
1861 ;; Do not attempt to build lua.
1862 (("build-dnet build-lua") "build-dnet"))
1865 (lambda* (#:key outputs #:allow-other-keys)
1866 (define (make out . args)
1867 (unless (zero? (apply system* "make"
1868 (string-append "prefix=" out)
1870 (error "make failed")))
1871 (define (python-path dir)
1872 (string-append dir "/lib/python2.7/site-packages"))
1873 (let ((out (assoc-ref outputs "out"))
1874 (ndiff (assoc-ref outputs "ndiff")))
1875 (for-each mkdir-p (list out ndiff))
1881 (make ndiff "install-ndiff")
1882 (wrap-program (string-append ndiff "/bin/ndiff")
1883 `("PYTHONPATH" prefix
1884 (,(python-path ndiff)))))))
1885 ;; These are the tests that do not require network access.
1887 (lambda _ (zero? (system* "make"
1891 ;; Nmap can't cope with out-of-source building.
1892 #:out-of-source? #f))
1893 (home-page "https://nmap.org/")
1894 (synopsis "Network discovery and security auditing tool")
1896 "Nmap (\"Network Mapper\") is a network discovery and security auditing
1897 tool. It is also useful for tasks such as network inventory, managing service
1898 upgrade schedules, and monitoring host or service uptime. It also provides an
1899 advanced netcat implementation (ncat), a utility for comparing scan
1900 results (ndiff), and a packet generation and response analysis tool (nping).")
1901 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
1902 ;; both use a 3-clause BSD license.
1903 (license (list license:nmap license:bsd-3))))
1905 (define-public dstat
1912 "https://github.com/dagwieers/dstat/archive/"
1914 (file-name (string-append "dstat-" version ".tar.gz"))
1917 "16286z3y2lc9nsq8njzjkv6k2vyxrj9xiixj1k3gnsbvhlhkirj6"))))
1918 (build-system gnu-build-system)
1920 `(#:tests? #f ;; no make check
1921 #:make-flags (let ((out (assoc-ref %outputs "out")))
1922 (list (string-append "DESTDIR=" out)
1924 ;; no configure script
1925 #:phases (modify-phases %standard-phases (delete 'configure))))
1926 (inputs `(("python-2" ,python-2)))
1927 (synopsis "Versatile resource statistics tool")
1928 (description "Dstat is a versatile replacement for @command{vmstat},
1929 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
1930 some of their limitations and adds some extra features, more counters and
1931 flexibility. Dstat is handy for monitoring systems during performance tuning
1932 tests, benchmarks or troubleshooting.
1934 Dstat allows you to view all of your system resources in real-time, you can,
1935 e.g., compare disk utilization in combination with interrupts from your IDE
1936 controller, or compare the network bandwidth numbers directly with the disk
1937 throughput (in the same interval).")
1938 (home-page "http://dag.wiee.rs/home-made/dstat/")
1939 (license license:gpl2+)))
1941 (define-public thefuck
1947 (uri (string-append "https://github.com/nvbn/thefuck/archive/"
1949 (file-name (string-append name "-" version ".tar.gz"))
1952 "0my32n2x8x0f0wr8ql7qgk9qhb6ibv5b1rqs5b2r4nadv0gpiv96"))
1953 (patches (search-patches "thefuck-test-environ.patch"))))
1954 (build-system python-build-system)
1957 (modify-phases %standard-phases
1959 (add-after 'install 'check
1960 (lambda* (#:key inputs outputs #:allow-other-keys)
1961 ;; Tests look for installed package
1962 (add-installed-pythonpath inputs outputs)
1963 ;; Some tests need write access to $HOME.
1964 (setenv "HOME" "/tmp")
1965 (invoke "py.test" "-v")
1968 `(("python-colorama" ,python-colorama)
1969 ("python-decorator" ,python-decorator)
1970 ("python-psutil" ,python-psutil)
1971 ("python-pyte" ,python-pyte)
1972 ("python-six" ,python-six)))
1974 `(("python-mock" ,python-mock)
1975 ("python-pytest" ,python-pytest)
1976 ("python-pytest-mock" ,python-pytest-mock)))
1977 (home-page "https://github.com/nvbn/thefuck")
1978 (synopsis "Correct mistyped console command")
1980 "The Fuck tries to match a rule for a previous, mistyped command, creates
1981 a new command using the matched rule, and runs it.")
1982 (license license:x11)))
1991 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
1993 (base32 "0zlapxlzjizwzwa8xwrwibhcbkh0wx7n74gvjpp6wlwq7cgiq0xm"))))
1994 (build-system gnu-build-system)
1996 `(#:tests? #f ; obscure test failures.
1998 (modify-phases %standard-phases
2000 (add-before 'build 'setup-environment
2001 (lambda* (#:key outputs #:allow-other-keys)
2003 (setenv "prefix" (assoc-ref outputs "out"))
2005 #:make-flags (list "--environment-overrides")))
2006 (home-page "https://www.gentoo.com/di/")
2007 (synopsis "Advanced df like disk information utility")
2009 "'di' is a disk information utility, displaying everything that your
2010 @code{df} command does and more. It features the ability to display your disk
2011 usage in whatever format you prefer. It is designed to be highly portable and
2012 produce uniform output across heterogeneous networks.")
2013 (license license:zlib)))
2015 (define-public cbatticon
2021 (uri (string-append "https://github.com/valr/"
2022 name "/archive/" version ".tar.gz"))
2025 "185lzvaijvyq7y8r7dvizhri0rf9lpc1anfgbbn4lznr1fr3z7rn"))
2026 (file-name (string-append name "-" version ".tar.gz"))))
2027 (build-system gnu-build-system)
2029 `(#:tests? #f ; no tests
2031 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2034 (modify-phases %standard-phases
2035 (delete 'configure)))) ; no configure script
2038 ("gettext" ,gettext-minimal)
2039 ("libnotify" ,libnotify)))
2041 `(("pkg-config" ,pkg-config)))
2042 (synopsis "Lightweight battery icon for the system tray")
2043 (description "cbatticon is a lightweight battery icon that displays
2044 the status of your battery in the system tray.")
2045 (home-page "https://github.com/valr/cbatticon")
2046 (license license:gpl2+)))
2048 (define-public interrobang
2049 (let ((revision "1")
2050 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
2052 (name "interrobang")
2053 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
2057 (url "https://github.com/TrilbyWhite/interrobang")
2059 (file-name (string-append name "-" version))
2062 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
2063 (build-system gnu-build-system)
2065 `(#:tests? #f ; no tests
2067 (modify-phases %standard-phases
2068 (delete 'configure)) ; no configure script
2069 #:make-flags (list (string-append "PREFIX="
2070 (assoc-ref %outputs "out")))))
2072 `(("libx11" ,libx11)))
2074 `(("pkg-config" ,pkg-config)))
2075 (synopsis "Scriptable launcher menu")
2076 (description "Interrobang is a scriptable launcher menu with a customizable
2077 shortcut syntax and completion options.")
2078 (home-page "https://github.com/TrilbyWhite/interrobang")
2079 (license license:gpl3+))))
2081 (define-public pam-krb5
2088 "https://archives.eyrie.org/software/kerberos/" name "-"
2092 "1qjp8i1s9bz7g6kiqrkzzkxn5pfspa4sy53b6z40fqmdf9przdfb"))))
2093 (build-system gnu-build-system)
2096 (modify-phases %standard-phases
2097 (add-before 'configure 'disable-tests
2099 ;; The build container seems to interfere with some tests.
2100 (substitute* "tests/TESTS"
2101 (("module/basic\n") ""))
2102 (substitute* "tests/TESTS"
2103 (("pam-util/vector\n") ""))
2106 `(("linux-pam" ,linux-pam)
2107 ("mit-krb5" ,mit-krb5)))
2110 ("perl-test-pod" ,perl-test-pod))) ; required for tests
2111 (synopsis "Kerberos PAM module")
2113 "Pam-krb5 is a Kerberos PAM module for either MIT Kerberos or Heimdal.
2114 It supports ticket refreshing by screen savers, configurable
2115 authorization handling, authentication of non-local accounts for network
2116 services, password changing, and password expiration, as well as all the
2117 standard expected PAM features. It works correctly with OpenSSH, even
2118 with @code{ChallengeResponseAuthentication} and @code{PrivilegeSeparation}
2119 enabled, and supports extensive configuration either by PAM options or in
2120 krb5.conf or both. PKINIT is supported with recent versions of both MIT
2121 Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
2122 (home-page "https://www.eyrie.org/~eagle/software/pam-krb5")
2123 ;; Dual licenced under a homebrew non-copyleft OR GPL (any version)
2124 ;; However, the tarball does not contain a copy of the GPL, so unless
2125 ;; we put one in, we cannot distribute it under GPL without violating
2126 ;; clause requiring us to give all recipients a copy.
2127 (license license:gpl1+)))
2129 (define-public sunxi-tools
2131 (name "sunxi-tools")
2136 (uri (string-append "https://github.com/linux-sunxi/"
2137 "sunxi-tools/archive/v" version ".tar.gz"))
2139 (base32 "08iqwj95qw2s7ilhrdi2lkbc8dx64zk5lzz1qk587jr0lla81x41"))
2140 (modules '((guix build utils)))
2142 ;; Remove binaries contained in the tarball which are only for the
2143 ;; target and can be regenerated anyway.
2145 (delete-file-recursively "bin")
2147 (file-name (string-append name "-" version ".tar.gz"))))
2149 `(("pkg-config" ,pkg-config)
2150 ("cross-gcc" ,(cross-gcc "arm-linux-gnueabihf"
2151 #:xbinutils (cross-binutils "arm-linux-gnueabihf")
2152 #:libc (cross-libc "arm-linux-gnueabihf")))
2153 ("cross-libc" ,(cross-libc "arm-linux-gnueabihf")) ; header files
2154 ("cross-libc-static" ,(cross-libc "arm-linux-gnueabihf") "static")))
2156 `(("libusb" ,libusb)))
2157 (build-system gnu-build-system)
2159 `(#:tests? #f ; no tests exist
2160 #:make-flags (list (string-append "PREFIX="
2161 (assoc-ref %outputs "out"))
2162 (string-append "CROSS_COMPILE="
2163 "arm-linux-gnueabihf-")
2166 (modify-phases %standard-phases
2168 (add-before 'build 'set-environment-up
2169 (lambda* (#:key make-flags #:allow-other-keys)
2171 (string-contains x "cross-arm-linux"))
2172 (define (filter-environment! filter-predicate
2173 environment-variable-names)
2176 (let* ((env-value (getenv env-name))
2177 (search-path (search-path-as-string->list env-value))
2178 (new-search-path (filter filter-predicate
2180 (new-env-value (list->search-path-as-string
2181 new-search-path ":")))
2182 (setenv env-name new-env-value)))
2183 environment-variable-names))
2184 (setenv "CROSS_C_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))
2185 (setenv "CROSS_CPLUS_INCLUDE_PATH" (getenv "CPLUS_INCLUDE_PATH"))
2186 (setenv "CROSS_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
2187 (filter-environment! cross?
2188 '("CROSS_C_INCLUDE_PATH" "CROSS_CPLUS_INCLUDE_PATH"
2189 "CROSS_LIBRARY_PATH"))
2190 (filter-environment! (lambda (e) (not (cross? e)))
2191 '("C_INCLUDE_PATH" "CPLUS_INCLUDE_PATH"
2195 (lambda* (#:key make-flags #:allow-other-keys)
2196 (zero? (apply system* "make" "tools" "misc" make-flags))))
2197 (add-after 'build 'build-armhf
2198 (lambda* (#:key make-flags #:allow-other-keys)
2199 (setenv "LIBRARY_PATH" #f)
2200 (zero? (apply system* "make" "target-tools" make-flags))))
2202 (lambda* (#:key make-flags #:allow-other-keys)
2203 (zero? (apply system* "make" "install-all" "install-misc"
2205 (home-page "https://github.com/linux-sunxi/sunxi-tools")
2206 (synopsis "Hardware management tools for Allwinner computers")
2207 (description "This package contains tools for Allwinner devices:
2209 @item @command{sunxi-fexc}, @command{bin2fex}, @command{fex2bin}: Compile
2210 a textual description of a board (.fex) to a binary representation (.bin).
2211 @item @command{sunxi-fel}: Puts an Allwinner device into FEL mode which
2212 makes it register as a special USB device (rather than USB host).
2213 You can then connect it to another computer and flash it from there.
2214 @item @command{sunxi-nand-part}: Partitions NAND flash.
2215 @item @command{sunxi-bootinfo}: Reads out boot0 and boot1 (Allwinner
2216 bootloader) parameters.
2217 @item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
2218 in order to be able to find it.
2219 @item @command{sunxi-meminfo}: Prints memory bus settings.
2220 @item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
2222 (license license:gpl2+)))
2224 (define-public sedsed
2231 (uri (string-append "https://github.com/aureliojargas/sedsed/"
2232 "archive/v" version ".tar.gz"))
2233 (file-name (string-append name "-" version ".tar.gz"))
2236 "0139jkqvm8ipiwfj7k69ry2f9b1ffgpk79arpz4r7w9kf6h23bnh"))))
2237 (build-system python-build-system)
2239 `(#:tests? #f ; No tests.
2242 (modify-phases %standard-phases
2243 (add-after 'unpack 'patch-sed-in
2245 (substitute* "sedsed.py"
2247 (string-append "sedbin = '" (which "sed") "'")))
2251 (lambda* (#:key outputs #:allow-other-keys)
2252 (let* ((out (assoc-ref outputs "out"))
2253 (bin (string-append out "/bin")))
2254 ;; Just one file to copy around
2255 (install-file "sedsed.py" bin)
2257 (add-after 'install 'symlink
2258 ;; Create 'sedsed' symlink to "sedsed.py".
2259 (lambda* (#:key outputs #:allow-other-keys)
2260 (let* ((out (assoc-ref outputs "out"))
2261 (bin (string-append out "/bin"))
2262 (sed (string-append bin "/sedsed"))
2263 (sedpy (string-append bin "/sedsed.py")))
2266 (home-page "http://aurelio.net/projects/sedsed")
2267 (synopsis "Sed sed scripts")
2269 "@code{sedsed} can debug, indent, tokenize and HTMLize your sed(1) script.
2271 In debug mode it reads your script and add extra commands to it. When
2272 executed you can see the data flow between the commands, revealing all the
2273 magic sed does on its internal buffers.
2275 In indent mode your script is reformatted with standard spacing.
2277 In tokenize mode you can see the elements of every command you use.
2279 In HTMLize mode your script is converted to a beautiful colored HTML file,
2280 with all the commands and parameters identified for your viewing pleasure.
2282 With sedsed you can master any sed script. No more secrets, no more hidden
2284 (license license:expat)))
2286 (define-public igt-gpu-tools
2288 (name "igt-gpu-tools")
2292 (uri (string-append "https://cgit.freedesktop.org/xorg/app/"
2293 "intel-gpu-tools/snapshot/"
2294 name "-" version ".tar.gz"))
2297 "0vzv2i4jfv2pkbqby5k3ap9pzidkmajwqmg3s7wnv8i1h33775iq"))))
2298 (build-system gnu-build-system)
2300 `(#:tests? #f ; many of the tests try to load kernel modules
2302 (modify-phases %standard-phases
2303 (add-after 'unpack 'autogen
2305 ;; Don't run configure in this phase.
2306 (setenv "NOCONFIGURE" "1")
2307 (invoke "sh" "autogen.sh"))))))
2314 ("libpciaccess" ,libpciaccess)
2315 ("libunwind" ,libunwind)
2316 ("libxrandr" ,libxrandr)
2317 ("openssl" ,openssl)
2319 ("util-macros" ,util-macros)))
2321 `(("autoconf" ,autoconf)
2322 ("automake" ,automake)
2323 ("libtool" ,libtool)
2324 ("pkg-config" ,pkg-config)))
2325 (home-page "https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/")
2326 (synopsis "Tools for development and testing of the Intel DRM driver")
2327 (description "IGT GPU Tools is a collection of tools for development and
2328 testing of the Intel DRM driver. There are many macro-level test suites that
2329 get used against the driver, including xtest, rendercheck, piglit, and
2330 oglconform, but failures from those can be difficult to track down to kernel
2331 changes, and many require complicated build procedures or specific testing
2332 environments to get useful results. Therefore, IGT GPU Tools includes
2333 low-level tools and tests specifically for development and testing of the
2335 (supported-systems '("i686-linux" "x86_64-linux"))
2336 (license license:expat)))
2338 (define-public intel-gpu-tools
2339 (deprecated-package "intel-gpu-tools" igt-gpu-tools))
2341 (define-public fabric
2348 (uri (pypi-uri "Fabric" version))
2351 "13r0b0hllgf8j9rh6x1knmbgvingbdmx046aazv6vck2ll120mw1"))))
2352 (build-system python-build-system)
2354 `(#:python ,python-2 ; Python 2 only
2356 (modify-phases %standard-phases
2360 "nosetests" "-v" "tests/"
2361 ;; This test hangs indefinitely when run on a single core VM
2362 ;; (see GNU bug #26647 and Debian bug #850230).
2363 "--exclude=test_nested_execution_with_explicit_ports"
2364 ;; This test randomly fails in certain environments causing too
2365 ;; much noise to be useful (see Debian bug #854686).
2366 "--exclude=test_should_use_sentinel_for_tasks_that_errored"))))))
2368 `(("python2-fudge" ,python2-fudge) ; Requires < 1.0
2369 ("python2-jinja2" ,python2-jinja2) ; Requires < 3.0
2370 ("python2-nose" ,python2-nose) ; Requires < 2.0
2371 ("python2-pynacl" ,python2-pynacl)
2372 ("python2-bcrypt" ,python2-bcrypt)))
2374 `(("python2-paramiko" ,python2-paramiko)))
2375 (home-page "http://fabfile.org")
2376 (synopsis "Simple Pythonic remote execution and deployment tool")
2378 "Fabric is designed to upload files and run shell commands on a number of
2379 servers in parallel or serially. These commands are grouped in tasks (which
2380 are regular Python functions) and specified in a @dfn{fabfile}.
2382 It is similar to Capistrano, except it's implemented in Python and doesn't
2383 expect you to be deploying Rails applications. Fabric is a simple, Pythonic
2384 tool for remote execution and deployment.")
2385 (license license:bsd-2)))
2387 (define-public neofetch
2394 (url "https://github.com/dylanaraps/neofetch")
2398 "0yzyi2p0d8xp576lxyv5m9h60dl1d5dmrn40aad307872835b9rr"))))
2399 (build-system gnu-build-system)
2401 `(#:tests? #f ; there are no tests
2403 (list (string-append "PREFIX=" %output))
2405 (modify-phases %standard-phases
2406 (delete 'configure)))) ; no configure script
2407 (home-page "https://github.com/dylanaraps/neofetch")
2408 (synopsis "System information script")
2409 (description "Neofetch is a command-line system information tool written in
2410 Bash. Neofetch displays information about your system next to an image, your OS
2411 logo, or any ASCII file of your choice. The main purpose of Neofetch is to be
2412 used in screenshots to show other users what operating system or distribution
2413 you are running, what theme or icon set you are using, etc.")
2414 (license license:expat)))
2423 (uri (string-append "https://github.com/jarun/nnn/releases/download/v"
2424 version "/" name "-v" version ".tar.gz"))
2426 (base32 "1d6z12y4rlg4dzhpm30irpq2ak8hjh5zykkp2n7vxnz5m4ki89zp"))))
2427 (build-system gnu-build-system)
2429 `(("ncurses" ,ncurses)
2430 ("readline" ,readline)))
2432 `(("pkg-config" ,pkg-config)))
2434 '(#:tests? #f ; no tests
2436 (modify-phases %standard-phases
2437 (delete 'configure)) ; no configure script
2440 (string-append "PREFIX="
2441 (assoc-ref %outputs "out"))
2443 (home-page "https://github.com/jarun/nnn")
2444 (synopsis "Terminal file browser")
2445 (description "@command{nnn} is a fork of @command{noice}, a blazing-fast
2446 lightweight terminal file browser with easy keyboard shortcuts for
2447 navigation, opening files and running tasks. There is no config file and
2448 mime associations are hard-coded. The incredible user-friendliness and speed
2449 make it a perfect utility on modern distros.")
2450 (license license:bsd-2)))
2452 (define-public thermald
2459 (uri (string-append "https://github.com/01org/thermal_daemon/archive/v"
2461 (file-name (string-append name "-" version ".tar.gz"))
2463 "15a6vb67y5wsmf0irrq7sxam18yqpz64130k83ryf24mp40h661b"))))
2464 (build-system gnu-build-system)
2467 (modify-phases %standard-phases
2468 (add-after 'unpack 'bootstrap
2470 (invoke "sh" "autogen.sh")
2473 (let ((out (assoc-ref %outputs "out")))
2474 (list (string-append "--sysconfdir="
2476 (string-append "--with-udev-dir="
2478 (string-append "--with-dbus-sys-dir="
2479 out "/etc/dbus-1/system.d")
2480 "--localstatedir=/var"))))
2482 `(("autoconf" ,autoconf)
2483 ("automake" ,automake)
2484 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
2485 ("pkg-config" ,pkg-config)))
2487 `(("dbus-glib" ,dbus-glib)
2488 ("libxml2" ,libxml2)))
2489 (home-page "https://01.org/linux-thermal-daemon/")
2490 (synopsis "CPU scaling for thermal management")
2491 (description "The Linux Thermal Daemon helps monitor and control temperature
2492 on systems running the Linux kernel.")
2493 ;; arm and aarch64 don't have cpuid.h.
2494 (supported-systems '("i686-linux" "x86_64-linux"))
2495 (license license:gpl2+)))
2497 (define-public masscan
2503 (uri (string-append "https://github.com/robertdavidgraham/masscan"
2504 "/archive/" version ".tar.gz"))
2505 (file-name (string-append name "-" version ".tar.gz"))
2508 "0wxddsgyx27z45906icdhdbfsvfj8ij805208qpqjx46i0lnjs50"))))
2509 (build-system gnu-build-system)
2511 `(("libpcap" ,libpcap)))
2513 '(#:test-target "regress"
2516 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2518 (modify-phases %standard-phases
2519 (delete 'configure) ; no ./configure script
2520 (add-after 'unpack 'patch-path
2521 (lambda* (#:key outputs inputs #:allow-other-keys)
2522 (let* ((out (assoc-ref outputs "out"))
2523 (pcap (assoc-ref inputs "libpcap")))
2524 (substitute* "src/rawsock-pcap.c"
2525 (("libpcap.so") (string-append pcap "/lib/libpcap.so")))
2527 (synopsis "TCP port scanner")
2528 (description "MASSCAN is an asynchronous TCP port scanner. It can detect
2529 open ports, and also complete the TCP connection and interact with the remote
2530 application, collecting the information received.")
2531 (home-page "https://github.com/robertdavidgraham/masscan")
2532 ;; 'src/siphash24.c' is the SipHash reference implementation, which
2533 ;; bears a CC0 Public Domain Dedication.
2534 (license license:agpl3+)))
2536 (define-public hungrycat
2542 (uri (string-append "https://github.com/jwilk/hungrycat/"
2543 "releases/download/" version "/"
2544 name "-" version ".tar.gz"))
2547 "03fc1zsrf99lvxa7b4ps6pbi43304wbxh1f6ci4q0vkal370yfwh"))))
2548 (build-system gnu-build-system)
2551 `(("python" ,python-wrapper)
2552 ("python-nose" ,python-nose)))
2554 `(#:test-target "test"))
2555 (synopsis "A single tool that combines @command{cat} & @command{rm}")
2557 "hungrycat prints the contents of a file to standard output, while
2558 simultaneously freeing the disk space it occupied. It is useful if you need
2559 to process a large file, don't have enough space to store both the input and
2560 output files, and don't need the input file afterwards.
2561 While similar in principle to running @command{cat} immediately followed by
2562 @command{rm}, @command{hungrycat} actually frees blocks as soon as they are
2563 printed instead of after the entire file has been read, which is often too
2565 (home-page "https://jwilk.net/software/hungrycat")
2566 (license license:expat)))
2568 (define-public launchmon
2575 "https://github.com/LLNL/LaunchMON/releases/download/v"
2576 version "/" name "-v" version ".tar.gz"))
2579 "0fm3nd9mydm9v2bf7bh01dbgrfnpwkapxa3dsvy3x1z0rz61qc0x"))))
2580 (build-system gnu-build-system)
2586 ("libgcrypt" ,libgcrypt)
2587 ("libgpg-error" ,libgpg-error)))
2588 (synopsis "Infrastructue for large scale tool daemon launching")
2590 "LaunchMON is a software infrastructure that enables HPC run-time
2591 tools to co-locate tool daemons with a parallel job. Its API allows a
2592 tool to identify all the remote processes of a job and to scalably
2593 launch daemons into the relevant nodes.")
2594 (home-page "https://github.com/LLNL/LaunchMON")
2595 (supported-systems '("i686-linux" "x86_64-linux"))
2596 (license license:lgpl2.1)))
2598 (define-public spindle
2603 ;; We use git checkout to avoid github auto-generated tarballs
2606 (url "https://github.com/hpc/Spindle.git")
2607 (commit (string-append "v" version))))
2608 (file-name (git-file-name name version))
2611 "15n3ay0qq81r5v7fif61q1vdjcq44pp2nynkh3fvbzc9fj3c39wd"))))
2612 (build-system gnu-build-system)
2613 (arguments '(#:configure-flags '("--enable-sec-launchmon"
2614 "--enable-sec-munge"
2615 "--enable-sec-none")))
2619 ("launchmon" ,launchmon)
2620 ("libgcrypt" ,libgcrypt)))
2621 (synopsis "Scalable library loading in HPC environments")
2623 "Spindle is a tool for improving the performance of dynamic library and
2624 Python loading in HPC environments.")
2625 (home-page "https://github.com/hpc/Spindle")
2626 ;; This package supports x86_64 and PowerPC64
2627 (supported-systems '("x86_64-linux"))
2628 (license license:lgpl2.1)))
2630 (define-public inxi-minimal
2631 (let ((real-name "inxi"))
2633 (name "inxi-minimal")
2634 (version "3.0.20-1")
2639 (url "https://github.com/smxi/inxi")
2643 "1k9148xnfznch1443niaa3w1kmsw4vp0xpwna6npgmi7zqg06ymy"))))
2644 (build-system trivial-build-system)
2657 (use-modules (guix build utils)
2660 (setenv "PATH" (string-append
2661 (assoc-ref %build-inputs "bash") "/bin" ":"
2662 (assoc-ref %build-inputs "gzip") "/bin" ":"
2663 (assoc-ref %build-inputs "perl") "/bin" ":"))
2664 (copy-recursively (assoc-ref %build-inputs "source")
2665 ,(string-append real-name "-" version))
2666 (with-directory-excursion ,(string-append real-name "-" version)
2667 (with-fluids ((%default-port-encoding #f))
2668 (substitute* "inxi" (("/usr/bin/env perl") (which "perl"))))
2669 (let ((bin (string-append %output "/bin")))
2670 (install-file "inxi" bin)
2671 (wrap-program (string-append bin "/inxi")
2674 ,@(map (lambda (input)
2678 (cut string-append store <>)))
2680 ((member name '("util-linux"))
2681 (string-append (store-append "/bin") ":"
2682 (store-append "/sbin")))
2683 ((member name '("dmidecode" "iproute2"))
2684 (store-append "/sbin"))
2685 (else (store-append "/bin")))))))
2691 (((? (cut string-prefix? "perl-" <>) name) . dir)
2692 (string-append dir "/lib/perl5/site_perl"))
2695 (invoke "gzip" "inxi.1")
2696 (install-file "inxi.1.gz"
2697 (string-append %output "/share/man/man1")))
2699 (home-page "https://smxi.org/docs/inxi.htm")
2700 (synopsis "Full-featured system information script")
2701 (description "Inxi is a system information script that can display
2702 various things about your hardware and software to users in an IRC chatroom or
2703 support forum. It runs with the @code{/exec} command in most IRC clients.")
2704 (license license:gpl3+))))
2708 (inherit inxi-minimal)
2711 `(("dmidecode" ,dmidecode)
2713 ("bind:utils" ,isc-bind "utils") ; dig
2715 ("iproute2" ,iproute) ; ip
2716 ("kmod" ,kmod) ; modinfo
2717 ("lm-sensors" ,lm-sensors)
2718 ("mesa-utils" ,mesa-utils)
2719 ("pciutils" ,pciutils)
2723 ("util-linux" ,util-linux) ; lsblk
2724 ("usbutils" ,usbutils) ; lsusb
2726 ("xdpyinfo" ,xdpyinfo)
2729 ("coreutils" ,coreutils) ; uptime
2730 ("inetutils" ,inetutils) ; ifconfig
2731 ("perl-cpanel-json-xs" ,perl-cpanel-json-xs)
2732 ("perl-http-tiny" ,perl-http-tiny)
2733 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
2734 ("perl-json-xs" ,perl-json-xs)
2735 ("perl-time-hires" ,perl-time-hires)
2736 ;; TODO: Add more inputs:
2741 ,@(package-inputs inxi-minimal)))))
2743 (define-public pscircle
2751 "https://gitlab.com/mildlyparallel/pscircle/-/archive/v"
2752 version "/pscircle-v" version ".tar.gz"))
2753 (file-name (string-append name "-" version ".tar.gz"))
2756 "1k757yf2bmgfrjd417l6kpcf83hlvi0z1791vz967mwcklrsb3fj"))))
2757 (build-system meson-build-system)
2759 `(("pkg-config" ,pkg-config)))
2763 ("libx11" ,libx11)))
2764 (home-page "https://gitlab.com/mildlyparallel/pscircle")
2765 (synopsis "Visualize Linux processes in a form of radial tree")
2767 "@code{pscircle} visualizes Linux processes in the form of a radial tree.")
2768 (license license:gpl2+)))
2770 (define-public python-pyudev
2772 (name "python-pyudev")
2777 (uri (pypi-uri "pyudev" version))
2780 "0arz0dqp75sszsmgm6vhg92n1lsx91ihddx3m944f4ah0487ljq9"))))
2781 (build-system python-build-system)
2783 `(#:tests? #f ; Tests require /sys
2785 (modify-phases %standard-phases
2786 (add-after 'unpack 'patch-ctypes-udev
2787 (lambda* (#:key inputs outputs #:allow-other-keys)
2788 (let ((eudev (assoc-ref inputs "eudev")))
2789 (substitute* "src/pyudev/core.py"
2791 (string-append "'" eudev "/lib/libudev.so'")))
2792 (substitute* "src/pyudev/_ctypeslib/utils.py"
2793 ;; Use absolute paths instead of keys.
2794 (("= find_library") "= "))
2797 `(("eudev" ,eudev)))
2799 `(("python-six" ,python-six)))
2801 `(("python-docutils" ,python-docutils)
2802 ("python-hypothesis" ,python-hypothesis)
2803 ("python-mock" ,python-mock)
2804 ("python-pytest" ,python-pytest)
2805 ("python-sphinx" ,python-sphinx)))
2806 (home-page "http://pyudev.readthedocs.org/")
2807 (synopsis "Python udev binding")
2808 (description "This package provides @code{udev} bindings for Python.")
2809 (license license:lgpl2.1)))
2811 (define-public solaar
2818 (url "https://github.com/pwr/Solaar.git")
2820 (file-name (git-file-name name version))
2823 "085mfa13dap3wqik1dqlad0d7kff4rv7j4ljh99c7l8nhczkqgwm"))))
2824 (build-system python-build-system)
2827 (modify-phases %standard-phases
2828 (add-after 'unpack 'fix-prefix-detection
2830 (substitute* "setup.py"
2831 (("'--prefix' in sys\\.argv")
2832 "len([x.startswith('--prefix=') for x in sys.argv]) > 0"))
2836 (invoke "python" "setup.py" "build")))
2837 (add-before 'check 'setenv-PATH
2839 (setenv "PYTHONPATH" (string-append "lib:" (getenv "PYTHONPATH")))
2842 `(("python-pygobject" ,python-pygobject)
2843 ("python-pyudev" ,python-pyudev)))
2844 (home-page "https://smxi.org/docs/inxi.htm")
2845 (synopsis "Linux devices manager for the Logitech Unifying Receiver")
2846 (description "This package provides tools to manage clients of the
2847 Logitech Unifying Receiver.")
2848 (license license:gpl2)))