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>
25 ;;; This file is part of GNU Guix.
27 ;;; GNU Guix is free software; you can redistribute it and/or modify it
28 ;;; under the terms of the GNU General Public License as published by
29 ;;; the Free Software Foundation; either version 3 of the License, or (at
30 ;;; your option) any later version.
32 ;;; GNU Guix is distributed in the hope that it will be useful, but
33 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
34 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35 ;;; GNU General Public License for more details.
37 ;;; You should have received a copy of the GNU General Public License
38 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
40 (define-module (gnu packages admin)
41 #:use-module ((guix licenses) #:prefix license:)
42 #:use-module (guix packages)
43 #:use-module (guix utils)
44 #:use-module (guix download)
45 #:use-module (guix git-download)
46 #:use-module (guix build-system cmake)
47 #:use-module (guix build-system gnu)
48 #:use-module (guix build-system perl)
49 #:use-module (guix build-system python)
50 #:use-module (guix build-system trivial)
51 #:use-module (gnu packages)
52 #:use-module (gnu packages base)
53 #:use-module (gnu packages bash)
54 #:use-module (gnu packages check)
55 #:use-module (gnu packages cyrus-sasl)
56 #:use-module (gnu packages dns)
57 #:use-module (gnu packages file)
58 #:use-module (gnu packages ncurses)
59 #:use-module (gnu packages readline)
60 #:use-module (gnu packages linux)
61 #:use-module (gnu packages lua)
62 #:use-module (gnu packages guile)
63 #:use-module (gnu packages gettext)
64 #:use-module (gnu packages imagemagick)
65 #:use-module (gnu packages inkscape)
66 #:use-module (gnu packages pcre)
67 #:use-module (gnu packages perl)
68 #:use-module (gnu packages perl-check)
69 #:use-module (gnu packages tcl)
70 #:use-module (gnu packages compression)
71 #:use-module (gnu packages cross-base)
72 #:use-module (gnu packages tls)
73 #:use-module (gnu packages gnupg)
74 #:use-module (gnu packages bison)
75 #:use-module (gnu packages flex)
76 #:use-module (gnu packages gl)
77 #:use-module (gnu packages glib)
78 #:use-module (gnu packages openldap)
79 #:use-module (gnu packages mcrypt)
80 #:use-module (gnu packages pkg-config)
81 #:use-module (gnu packages popt)
82 #:use-module (gnu packages python)
83 #:use-module (gnu packages python-crypto)
84 #:use-module (gnu packages python-web)
85 #:use-module (gnu packages qt)
86 #:use-module (gnu packages terminals)
87 #:use-module (gnu packages texinfo)
88 #:use-module (gnu packages groff)
89 #:use-module (gnu packages pciutils)
90 #:use-module (gnu packages libunwind)
91 #:use-module (gnu packages libusb)
92 #:use-module (gnu packages libftdi)
93 #:use-module (gnu packages image)
94 #:use-module (gnu packages xorg)
95 #:use-module (gnu packages xdisorg)
96 #:use-module (gnu packages man)
97 #:use-module (gnu packages autotools)
98 #:use-module (gnu packages gnome)
99 #:use-module (gnu packages kerberos)
100 #:use-module (gnu packages gtk)
101 #:use-module (gnu packages xml)
102 #:use-module (gnu packages boost)
103 #:use-module (gnu packages elf)
104 #:use-module (gnu packages mpi)
105 #:use-module (gnu packages web))
113 (uri (string-append "mirror://sourceforge/aide/aide/"
114 version "/aide-" version ".tar.gz"))
117 "0ibkv4z2gk14fn014kq13rp2ysiq6nn2cflv2q5i7zf466hm6758"))))
118 (build-system gnu-build-system)
123 `(("libgcrypt" ,libgcrypt)
124 ("libgpg-error" ,libgpg-error)
125 ("libmhash" ,libmhash)
128 (synopsis "File and directory integrity checker")
130 "AIDE (Advanced Intrusion Detection Environment) is a file and directory
131 integrity checker. It creates a database from the regular expression rules
132 that it finds from its configuration files. Once this database is initialized
133 it can be used to verify the integrity of the files. It has several message
134 digest algorithms that are used to check the integrity of files. All of the
135 usual file attributes can be checked for inconsistencies.")
136 (home-page "http://aide.sourceforge.net/")
137 (license license:gpl2+)))
139 (define-public progress
145 (uri (string-append "https://github.com/Xfennec/"
146 name "/archive/v" version ".tar.gz"))
148 (base32 "199rk6608q9m6l0fbjm0xl2w1c5krf8245dqnksdp4rqp7l9ak06"))
149 (file-name (string-append name "-" version ".tar.gz"))))
150 (build-system gnu-build-system)
152 `(("pkg-config" ,pkg-config)
155 `(("ncurses" ,ncurses)))
157 `(#:tests? #f ; There is no test suite.
158 #:make-flags (list "CC=gcc"
159 (string-append "PREFIX=" (assoc-ref %outputs "out")))
161 (modify-phases %standard-phases
162 (delete 'configure)))) ; There's no configure phase.
163 (home-page "https://github.com/Xfennec/progress")
164 (synopsis "Program to view the progress of the coreutils commands")
165 (description "A program that looks for coreutils basic commands (cp, mv,
166 dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
167 the percentage of copied data. It can also show estimated time and throughput,
168 and provides a \"top-like\" mode (monitoring).")
169 (license license:gpl3+)))
171 (define-public shepherd
177 (uri (string-append "https://alpha.gnu.org/gnu/shepherd/shepherd-"
181 "1lgmsbxn8i8xdasxzkdp2cml75n128pplw6icvmspl6s0n9xmw8n"))))
182 (build-system gnu-build-system)
184 '(#:configure-flags '("--localstatedir=/var")))
186 `(("pkg-config" ,pkg-config)
188 ;; This is the Guile we use as a cross-compiler...
189 ("guile" ,guile-2.2)))
191 ;; ... and this is the one that appears in shebangs when cross-compiling.
192 `(("guile" ,guile-2.2)
194 ;; The 'shepherd' command uses Readline when used interactively. It's
195 ;; an unusual use case though, so we don't propagate it.
196 ("guile-readline" ,guile-readline)))
197 (synopsis "System service manager")
199 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
200 the execution of system services, replacing similar functionality found in
201 typical init systems. It provides dependency-handling through a convenient
202 interface and is based on GNU Guile.")
203 (license license:gpl3+)
204 (home-page "https://www.gnu.org/software/shepherd/")
205 (properties '((ftp-server . "alpha.gnu.org")))))
207 (define-public daemontools
214 "https://cr.yp.to/" name "/"
215 name "-" version ".tar.gz"))
218 "07scvw88faxkscxi91031pjkpccql6wspk4yrlnsbrrb5c0kamd5"))))
219 (build-system gnu-build-system)
221 `(#:tests? #f ;; No tests as far as I can tell.
223 (modify-phases %standard-phases
224 (add-after 'unpack 'chdir
226 (chdir ,(string-append name "-" version))))
228 (add-before 'build 'patch
230 (substitute* "src/error.h"
231 (("extern int errno;")
232 "#include <errno.h>"))))
235 (invoke "package/compile")))
237 (lambda* (#:key outputs #:allow-other-keys)
238 (let* ((out (assoc-ref outputs "out"))
239 (bin (string-append out "/bin")))
240 (for-each (lambda (file)
241 (install-file file bin))
242 (find-files "command"))))))))
243 (synopsis "Tools for managing UNIX style services")
245 "@code{daemontools} is a collection of tools for managing UNIX
247 (license license:public-domain)
248 (home-page "https://cr.yp.to/daemontools.html")))
258 "http://projects.gw-computing.net/attachments/download/615/dfc-"
262 "0m1fd7l85ckb7bq4c5c3g257bkjglm8gq7x42pkmpp87fkknc94n"))))
263 (build-system cmake-build-system)
264 (arguments '(#:tests? #f)) ; There are no tests.
265 (native-inputs `(("gettext" ,gettext-minimal)))
266 (home-page "http://projects.gw-computing.net/projects/dfc")
267 (synopsis "Display file system space usage using graphs and colors")
269 "dfc (df color) is a modern version of df. It uses colors, draws pretty
270 graphs and can export its output to different formats.")
271 (license license:bsd-3)))
279 (uri (string-append "http://hisham.hm/htop/releases/"
280 version "/htop-" version ".tar.gz"))
283 "0mrwpb3cpn3ai7ar33m31yklj64c3pp576vh1naqff6f21pq5mnr"))))
284 (build-system gnu-build-system)
286 `(("ncurses" ,ncurses)))
288 `(("python" ,python-minimal-wrapper))) ; for scripts/MakeHeader.py
289 (home-page "https://hisham.hm/htop/")
290 (synopsis "Interactive process viewer")
292 "This is htop, an interactive process viewer. It is a text-mode
293 application (for console or X terminals) and requires ncurses.")
294 (license license:gpl2)))
303 (uri (string-append "mirror://gnu/pies/pies-"
307 "12r7rjjyibjdj08dvwbp0iflfpzl4s0zhn6cr6zj3hwf9gbzgl1g"))))
308 (build-system gnu-build-system)
310 '(#:phases (modify-phases %standard-phases
311 (add-before 'build 'patch-/bin/sh
312 (lambda* (#:key inputs #:allow-other-keys)
313 ;; Use the right shell when executing user-provided
315 (let ((bash (assoc-ref inputs "bash")))
316 (substitute* "src/progman.c"
318 (string-append "\"" bash "/bin/sh\"")))
320 (home-page "https://www.gnu.org/software/pies/")
321 (synopsis "Program invocation and execution supervisor")
323 "GNU pies is a program that supervises the invocation and execution of
324 other programs. It reads the list of programs to be started from its
325 configuration file, executes them, and then monitors their status,
326 re-executing them as necessary.")
327 (license license:gpl3+)))
329 (define-public inetutils
335 (uri (string-append "mirror://gnu/inetutils/inetutils-"
339 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
340 (build-system gnu-build-system)
342 `(#:configure-flags '("--localstatedir=/var"
344 ;; Make sure 'PATH_PROCNET_DEV' gets defined when
345 ;; cross-compiling (by default it does not.)
346 ,@(if (%current-target-system)
347 '("--with-path-procnet-dev=/proc/net/dev")
349 ;; On some systems, 'libls.sh' may fail with an error such as:
350 ;; "Failed to tell switch -a apart from -A".
351 #:parallel-tests? #f))
352 (inputs `(("ncurses" ,ncurses)
353 ("readline" ,readline))) ;for 'ftp'
354 (native-inputs `(("netstat" ,net-tools))) ;for tests
355 (home-page "https://www.gnu.org/software/inetutils/")
356 (synopsis "Basic networking utilities")
358 "Inetutils is a collection of common network programs, such as an ftp
359 client and server, a telnet client and server, an rsh client and server, and
361 (license license:gpl3+)))
363 (define-public shadow
370 "https://github.com/shadow-maint/shadow/releases/"
371 "download/" version "/shadow-" version ".tar.xz"))
374 "10smy01km2bqjjvsd2jz17zvrxbzj89qczyb1amk38j28bcci609"))))
375 (build-system gnu-build-system)
377 `(;; Assume System V `setpgrp (void)', which is the default on GNU
378 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
380 '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
383 (modify-phases %standard-phases
384 (add-before 'build 'set-nscd-file-name
385 (lambda* (#:key inputs #:allow-other-keys)
386 ;; Use the right file name for nscd.
387 (let ((libc (assoc-ref inputs
388 ,(if (%current-target-system)
391 (substitute* "lib/nscd.c"
393 (string-append libc "/sbin/nscd")))
395 (add-after 'install 'remove-groups
396 (lambda* (#:key outputs #:allow-other-keys)
397 ;; Remove `groups', which is already provided by Coreutils.
398 (let* ((out (assoc-ref outputs "out"))
399 (bin (string-append out "/bin"))
400 (man (string-append out "/share/man")))
401 (delete-file (string-append bin "/groups"))
402 (for-each delete-file (find-files man "^groups\\."))
405 (inputs (if (string-contains (or (%current-target-system)
408 `(("linux-pam" ,linux-pam))
410 (home-page "http://pkg-shadow.alioth.debian.org/")
411 (synopsis "Authentication-related tools such as passwd, su, and login")
413 "Shadow provides a number of authentication-related tools, including:
414 login, passwd, su, groupadd, and useradd.")
416 ;; The `vipw' program is GPLv2+.
417 ;; libmisc/salt.c is public domain.
418 (license license:bsd-3)))
420 (define-public mingetty
426 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
427 version "/mingetty-" version ".tar.gz"))
430 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
431 (build-system gnu-build-system)
434 (modify-phases %standard-phases
436 (lambda* (#:key inputs outputs #:allow-other-keys)
437 (let* ((out (assoc-ref outputs "out"))
438 (man8 (string-append out "/share/man/man8"))
439 (sbin (string-append out "/sbin"))
440 (shadow (assoc-ref inputs "shadow"))
441 (login (string-append shadow "/bin/login")))
442 (substitute* "Makefile"
444 (string-append "SBINDIR = " out
447 (string-append "MANDIR = " out
448 "/share/man/man8\n")))
450 ;; Pick the right 'login' by default.
451 (substitute* "mingetty.c"
453 (string-append "\"" login "\"")))
458 #:tests? #f)) ; no tests
459 (inputs `(("shadow" ,shadow)))
461 (home-page "https://sourceforge.net/projects/mingetty")
462 (synopsis "Getty for the text console")
464 "Small console getty that is started on the Linux text console,
465 asks for a login name and then transfers over to 'login'. It is extended to
466 allow automatic login and starting any app.")
467 (license license:gpl2+)))
469 (define-public net-base
476 "mirror://debian/pool/main/n/netbase/netbase_"
480 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
481 (build-system trivial-build-system)
483 `(#:modules ((guix build utils))
485 (use-modules (guix build utils)
488 (let* ((source (assoc-ref %build-inputs "source"))
489 (tar (assoc-ref %build-inputs "tar"))
490 (xz (assoc-ref %build-inputs "xz"))
491 (output (assoc-ref %outputs "out"))
492 (etc (string-append output "/etc")))
493 (setenv "PATH" (string-append xz "/bin"))
494 (invoke (string-append tar "/bin/tar") "xvf"
496 (chdir ,(string-append "netbase-" version))
499 '("etc-services" "etc-protocols" "etc-rpc")
500 (map (cut string-append etc "/" <>)
501 '("services" "protocols" "rpc")))
503 (native-inputs `(("tar" ,tar)
505 (synopsis "IANA protocol, port, and RPC number assignments")
507 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
508 files, which contain information about the IANA-assigned port, protocol, and
510 (home-page "http://packages.debian.org/sid/netbase")
511 (license license:gpl2)))
513 (define-public netcat
519 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
520 "/netcat-" version ".tar.bz2"))
523 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
524 (build-system gnu-build-system)
527 ;; By default, man and info pages are put in PREFIX/{man,info},
528 ;; but we want them in PREFIX/share/{man,info}.
529 (let ((out (assoc-ref %outputs "out")))
530 (list (string-append "--mandir=" out "/share/man")
531 (string-append "--infodir=" out "/share/info")))))
532 (home-page "http://netcat.sourceforge.net")
533 (synopsis "Read and write data over TCP/IP")
535 "Netcat is a featured networking utility which reads and writes data
536 across network connections, using the TCP/IP protocol. It is designed to be a
537 reliable \"back-end\" tool that can be used directly or easily driven by other
538 programs and scripts. At the same time, it is a feature-rich network debugging
539 and exploration tool, since it can create almost any kind of connection you
540 would need and has several interesting built-in capabilities.")
541 (license license:gpl2+)))
543 (define-public sipcalc
550 (uri (string-append "http://www.routemeister.net/projects"
551 "/sipcalc/files/sipcalc" "-" version ".tar.gz"))
554 "0mv3wndj4z2bsshh2k8d5sy3j8wxzgf8mzmmkvj1k8gpcz37dm6g"))))
555 (build-system gnu-build-system)
556 (home-page "http://www.routemeister.net/projects/sipcalc/")
557 (synopsis "Command-line IP subnet calculator")
559 "Sipcalc is an advanced command-line IP subnet calculator. It can take
560 multiple forms of input (IPv4/IPv6/interface/hostname) and output a multitude
561 of information about a given subnet.
568 @item Retrieving of address information from interfaces.
569 @item Classfull and CIDR output.
570 @item Multiple address and netmask input and output formats (dotted quad, hex,
572 @item Output of broadcast address, network class, Cisco wildcard,
573 hosts/range, network range.
574 @item The ability to split a network based on a smaller netmask, now also with
575 recursive runs on the generated subnets. (also IPv6)
579 @item Compressed and expanded input and output addresses.
580 @item Standard IPv6 network output.
581 @item v4 in v6 output.
582 @item Reverse DNS address generation.
585 (license license:bsd-3)))
593 (uri (string-append "mirror://gnu/alive/alive-"
597 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
598 (build-system gnu-build-system)
599 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
600 (inputs `(("guile" ,guile-2.0)
601 ("inetutils" ,inetutils)))
602 (home-page "https://www.gnu.org/software/alive/")
603 (synopsis "Autologin and keep-alive daemon")
605 "GNU Alive sends periodic pings to a server, generally to keep a
607 (license license:gpl3+)))
609 (define-public isc-dhcp
610 (let* ((bind-major-version "9")
611 (bind-minor-version "11")
612 (bind-patch-version "3")
613 (bind-release-type "") ; for patch release, use "-P"
614 (bind-release-version "") ; for patch release, e.g. "6"
615 (bind-version (string-append bind-major-version
621 bind-release-version)))
627 (uri (string-append "http://ftp.isc.org/isc/dhcp/"
628 version "/dhcp-" version ".tar.gz"))
631 "025nfqx4zwdgv4b3rkw26ihcj312vir08jk6yi57ndmb4a4m08ia"))))
632 (build-system gnu-build-system)
634 `(#:parallel-build? #f
636 (modify-phases %standard-phases
637 (add-after 'unpack 'replace-bundled-bind
638 (lambda* (#:key inputs #:allow-other-keys)
639 (delete-file "bind/bind.tar.gz")
640 (copy-file (assoc-ref inputs "bind-source-tarball")
642 (chmod "bind/bind.tar.gz" #o644)
643 (substitute* "bind/version.tmp"
645 (format #f "MAJORVER=~a\n" ,bind-major-version))
647 (format #f "MINORVER=~a\n" ,bind-minor-version))
649 (format #f "PATCHVER=~a\n" ,bind-patch-version))
651 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
653 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
655 (add-after 'configure 'post-configure
656 (lambda* (#:key outputs #:allow-other-keys)
657 ;; Point to the right client script, which will be
658 ;; installed in a later phase.
659 (substitute* "includes/dhcpd.h"
660 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
661 (let ((out (assoc-ref outputs "out")))
662 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
663 out "/libexec/dhclient-script"
666 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
667 ;; we must patch shebangs in there and make sure the right
669 (with-directory-excursion "bind"
670 (substitute* "Makefile"
672 (let ((sh (which "sh")))
673 (string-append "./configure CONFIG_SHELL="
676 (let ((bind-directory (string-append "bind-" ,bind-version)))
677 (invoke "tar" "xf" "bind.tar.gz")
678 (for-each patch-shebang
679 (find-files bind-directory ".*"))
680 (invoke "tar" "cf" "bind.tar.gz"
682 ;; avoid non-determinism in the archive
686 "--group=root:0")))))
687 (add-after 'install 'post-install
688 (lambda* (#:key inputs outputs #:allow-other-keys)
689 ;; Install the dhclient script for GNU/Linux and make sure
690 ;; if finds all the programs it needs.
691 (let* ((out (assoc-ref outputs "out"))
692 (libexec (string-append out "/libexec"))
693 (coreutils (assoc-ref inputs "coreutils"))
694 (inetutils (assoc-ref inputs "inetutils"))
695 (net-tools (assoc-ref inputs "net-tools"))
696 (sed (assoc-ref inputs "sed")))
697 (substitute* "client/scripts/linux"
699 (string-append (assoc-ref inputs "iproute")
703 (copy-file "client/scripts/linux"
704 (string-append libexec "/dhclient-script"))
707 (string-append libexec "/dhclient-script")
710 (string-append dir "/bin:"
712 (list inetutils net-tools coreutils sed))))
715 (native-inputs `(("perl" ,perl)))
717 (inputs `(("inetutils" ,inetutils)
718 ("net-tools" ,net-tools)
721 ;; XXX isc-dhcp bundles a copy of bind that has security
722 ;; flaws, so we use a newer version.
723 ("bind-source-tarball"
726 (uri (string-append "http://ftp.isc.org/isc/bind9/"
728 "/bind-" bind-version ".tar.gz"))
731 "1xbnb2b11274z9frc9y7nvkyxr52qx09bwb97gf9qzzcn8adx78d"))))
733 ;; When cross-compiling, we need the cross Coreutils and sed.
734 ;; Otherwise just use those from %FINAL-INPUTS.
735 ,@(if (%current-target-system)
736 `(("coreutils" ,coreutils)
740 (home-page "http://www.isc.org/products/DHCP/")
741 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
743 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
744 reference implementation of all aspects of DHCP, through a suite of DHCP
745 tools: server, client, and relay agent.")
746 (license license:mpl2.0)
747 (properties '((cpe-name . "dhcp"))))))
749 (define-public libpcap
755 (uri (string-append "http://www.tcpdump.org/release/libpcap-"
759 "07jlhc66z76dipj4j5v3dig8x6h3k6cb36kmnmpsixf3zmlvqgb7"))))
760 (build-system gnu-build-system)
761 (native-inputs `(("bison" ,bison) ("flex" ,flex)))
762 (arguments '(#:configure-flags '("--with-pcap=linux")
763 #:tests? #f)) ; no 'check' target
764 (home-page "http://www.tcpdump.org")
765 (synopsis "Network packet capture library")
767 "libpcap is an interface for user-level packet capture. It provides a
768 portable framework for low-level network monitoring. Applications include
769 network statistics collection, security monitoring, network debugging, etc.")
771 ;; fad-*.c and a couple other files are BSD-4, but the rest is BSD-3.
772 (license license:bsd-3)))
774 (define-public tcpdump
780 (uri (string-append "http://www.tcpdump.org/release/tcpdump-"
784 "0ygy0layzqaj838r5xd613iraz09wlfgpyh7pc6cwclql8v3b2vr"))))
785 (build-system gnu-build-system)
786 (inputs `(("libpcap" ,libpcap)
787 ("openssl" ,openssl)))
788 (native-inputs `(("perl" ,perl))) ; for tests
789 (home-page "http://www.tcpdump.org/")
790 (synopsis "Network packet analyzer")
792 "Tcpdump is a command-line tool to analyze network traffic passing
793 through the network interface controller.")
794 (license license:bsd-3)))
796 (define-public jnettop
802 (uri (string-append "http://jnettop.kubs.info/dist/jnettop-"
806 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
807 (build-system gnu-build-system)
809 `(("pkg-config" ,pkg-config)))
813 ("libpcap" ,libpcap)))
814 (home-page "http://jnettop.kubs.info/")
815 (synopsis "Visualize network traffic by bandwidth use")
817 "Jnettop is a traffic visualiser, which captures traffic going
818 through the host it is running from and displays streams sorted
819 by bandwidth they use.")
820 (license license:gpl2+)))
822 (define-public clusterssh
828 (uri (string-append "mirror://sourceforge/clusterssh/"
829 "1.%20ClusterSSH%20Series%203/" version
830 "/clusterssh-" version ".tar.gz"))
833 "1bwggpvaj2al5blg1ynapviv2kpydffpzq2zkhi81najnvzc1rr7"))))
834 (build-system gnu-build-system)
835 (inputs `(("perl" ,perl)))
836 (propagated-inputs `(("xterm" ,xterm)
838 ("perl-x11-protocol" ,perl-x11-protocol)))
841 (modify-phases %standard-phases
842 (add-after 'install 'set-load-paths
843 (lambda* (#:key inputs outputs #:allow-other-keys)
844 ;; Put the perl-tk and perl-x11-protocol modules in the perl inc
846 (let* ((out (assoc-ref outputs "out"))
847 (prog (string-append out "/bin/cssh"))
848 (perl-ver ,(package-version perl))
849 (x11-inc (string-append
850 (assoc-ref inputs "perl-x11-protocol")
851 "/lib/perl5/site_perl/" perl-ver))
852 (tk-inc (string-append
853 (assoc-ref inputs "perl-tk")
854 "/lib/perl5/site_perl/" perl-ver
858 `("PERL5LIB" ":" prefix (,x11-inc ,tk-inc))))
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 "1cf6xx2hiy1xalp35fh8g73j67r0w0g66jpcbc6971x9jbm7bvjy"))))
881 (build-system perl-build-system)
883 `(("perl-module-build" ,perl-module-build)
884 ("perl-test-pod" ,perl-test-pod)
885 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
886 (home-page "https://metacpan.org/pod/distribution/File-Rename/rename.PL")
887 (synopsis "Perl extension for renaming multiple files")
889 "This package provides a Perl interface (@code{Perl::Rename}) as well
890 as a command-line utility (@command{rename}) that can rename multiple files
891 at once based on a Perl regular expression.")
892 (license license:perl-license)))
894 (define-public rottlog
900 (uri (string-append "mirror://gnu/rottlog/rottlog-"
904 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
905 (modules '((guix build utils)))
908 (substitute* "Makefile.in"
909 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
910 ;; Don't try to chown root.
912 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
913 ;; Don't attempt to create /var/lib/rottlog.
916 (build-system gnu-build-system)
918 '(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
919 "--localstatedir=/var")
921 ;; Install example config files in OUT/etc.
922 #:make-flags (list (string-append "ROTT_ETCDIR="
923 (assoc-ref %outputs "out")
926 #:phases (modify-phases %standard-phases
927 (add-after 'unpack 'patch-paths
930 (("/usr/sbin/sendmail") "sendmail"))
932 (add-after 'build 'set-packdir
934 ;; Set a default location for archived logs.
937 "packdir=\"/var/log\""))
939 (add-before 'install 'tweak-rc-weekly
941 (substitute* "rc/weekly"
945 ;; The file is called 'syslog.pid' (no 'd').
948 (add-after 'install 'install-info
950 (zero? (system* "make" "install-info")))))))
951 (native-inputs `(("texinfo" ,texinfo)
952 ("util-linux" ,util-linux))) ; for 'cal'
953 (home-page "https://www.gnu.org/software/rottlog/")
954 (synopsis "Log rotation and management")
956 "GNU Rot[t]log is a program for managing log files. It is used to
957 automatically rotate out log files when they have reached a given size or
958 according to a given schedule. It can also be used to automatically compress
959 and archive such logs. Rot[t]log will mail reports of its activity to the
960 system administrator.")
961 (license license:gpl3+)))
970 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
972 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
976 "0yg62wq8rcrbr7qvh3wgfg2g4bwanbi50cr2lf2cfyy8dydx4qyq"))
977 (modules '((guix build utils)))
980 (delete-file-recursively "lib/zlib")
982 (build-system gnu-build-system)
985 (list "--with-logpath=/var/log/sudo.log"
986 "--with-rundir=/var/run/sudo" ;must be cleaned up at boot time
987 "--with-vardir=/var/db/sudo"
988 "--with-iologdir=/var/log/sudo-io"
990 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
992 (string-append "CPPFLAGS=-D_PATH_MV='\""
993 (assoc-ref %build-inputs "coreutils")
996 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
1000 (modify-phases %standard-phases
1001 (add-before 'configure 'pre-configure
1003 (substitute* "src/sudo_usage.h.in"
1004 ;; Do not capture 'configure' arguments since we would
1005 ;; unduly retain references, and also because the
1006 ;; CPPFLAGS above would close the string literal
1008 (("@CONFIGURE_ARGS@") "\"\""))
1009 (substitute* (find-files "." "Makefile\\.in")
1010 (("-o [[:graph:]]+ -g [[:graph:]]+")
1011 ;; Allow installation as non-root.
1013 (("^install: (.*)install-sudoers(.*)" _ before after)
1014 ;; Don't try to create /etc/sudoers.
1015 (string-append "install: " before after "\n"))
1016 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
1017 ;; Don't try to create /run/sudo.
1019 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
1020 ;; Don't try to create /var/db/sudo.
1024 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
1025 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
1029 ("linux-pam" ,linux-pam)
1031 ("coreutils" ,coreutils)))
1032 (home-page "https://www.sudo.ws/")
1033 (synopsis "Run commands as root")
1035 "Sudo (su \"do\") allows a system administrator to delegate authority to
1036 give certain users (or groups of users) the ability to run some (or all)
1037 commands as root or another user while providing an audit trail of the
1038 commands and their arguments.")
1040 ;; See <http://www.sudo.ws/sudo/license.html>.
1041 (license license:x11)))
1043 (define-public wpa-supplicant-minimal
1045 (name "wpa-supplicant-minimal")
1050 "http://w1.fi/releases/wpa_supplicant-"
1053 (patches (search-patches "wpa-supplicant-CVE-2017-13082.patch"
1054 "wpa-supplicant-fix-key-reuse.patch"
1055 "wpa-supplicant-fix-zeroed-keys.patch"
1056 "wpa-supplicant-fix-nonce-reuse.patch"
1057 "wpa-supplicant-krack-followups.patch"))
1060 "0l0l5gz3d5j9bqjsbjlfcv4w4jwndllp9fmyai4x9kg6qhs6v4xl"))))
1061 (build-system gnu-build-system)
1064 (modify-phases %standard-phases
1066 (lambda* (#:key outputs #:allow-other-keys)
1067 (chdir "wpa_supplicant")
1068 (copy-file "defconfig" ".config")
1069 (let ((port (open-file ".config" "al")))
1071 CONFIG_DEBUG_SYSLOG=y
1073 # Choose GnuTLS (the default is OpenSSL.)
1076 CONFIG_DRIVER_NL80211=y
1077 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
1079 CONFIG_READLINE=y\n" port)
1080 (close-port port))))
1081 (add-after 'install 'install-man-pages
1082 (lambda* (#:key outputs #:allow-other-keys)
1083 (let* ((out (assoc-ref outputs "out"))
1084 (man (string-append out "/share/man"))
1085 (man5 (string-append man "/man5"))
1086 (man8 (string-append man "/man8")))
1087 (define (copy-man-page target)
1089 (install-file file target)))
1091 (mkdir-p man5) (mkdir man8)
1092 (for-each (copy-man-page man5)
1093 (find-files "doc/docbook" "\\.5"))
1094 (for-each (copy-man-page man8)
1095 (find-files "doc/docbook" "\\.8"))
1098 #:make-flags (list "CC=gcc"
1099 (string-append "BINDIR=" (assoc-ref %outputs "out")
1101 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1105 `(("readline" ,readline)
1108 ("libgcrypt" ,libgcrypt))) ;needed by crypto_gnutls.c
1110 `(("pkg-config" ,pkg-config)))
1111 (home-page "http://w1.fi/wpa_supplicant/")
1112 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
1114 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
1115 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
1116 the client stations. It implements key negotiation with a WPA Authenticator
1117 and it controls the roaming and IEEE 802.11 authentication/association of the
1120 This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
1122 ;; In practice, this is linked against Readline, which makes it GPLv3+.
1123 (license license:bsd-3)))
1125 (define-public wpa-supplicant
1126 (package (inherit wpa-supplicant-minimal)
1127 (name "wpa-supplicant")
1128 (inputs `(("dbus" ,dbus)
1129 ,@(package-inputs wpa-supplicant-minimal)))
1131 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
1133 `(modify-phases ,phases
1134 (add-after 'configure 'configure-for-dbus
1136 (let ((port (open-file ".config" "al")))
1138 CONFIG_CTRL_IFACE_DBUS=y
1139 CONFIG_CTRL_IFACE_DBUS_NEW=y
1140 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
1143 (add-after 'install-man-pages 'install-dbus-conf
1144 (lambda* (#:key outputs #:allow-other-keys)
1145 (let* ((out (assoc-ref outputs "out"))
1146 (dir (string-append out "/etc/dbus-1/system.d")))
1148 (copy-file "dbus/dbus-wpa_supplicant.conf"
1149 (string-append dir "/wpa_supplicant.conf")))
1152 (define-public wpa-supplicant-gui
1154 (inherit wpa-supplicant)
1155 (name "wpa-supplicant-gui")
1156 (inputs `(("qtbase" ,qtbase)
1158 ,@(package-inputs wpa-supplicant)))
1161 `(("imagemagick" ,imagemagick)
1162 ("inkscape" ,inkscape)
1163 ,@(package-native-inputs wpa-supplicant)))
1165 `(#:phases (modify-phases %standard-phases
1166 (add-after 'unpack 'chdir
1168 (chdir "wpa_supplicant/wpa_gui-qt4")
1173 (invoke "qmake" "wpa_gui.pro")
1174 (invoke "make" "-j" (number->string (parallel-job-count)))
1175 (invoke "make" "-C" "icons")))
1177 (lambda* (#:key inputs outputs #:allow-other-keys)
1178 (let ((out (assoc-ref outputs "out"))
1179 (qt '("qtbase" "qtsvg")))
1180 (substitute* "wpa_gui.desktop"
1182 (string-append "Exec=" out "/bin/wpa_gui")))
1183 (install-file "wpa_gui" (string-append out "/bin"))
1184 (install-file "wpa_gui.desktop"
1185 (string-append out "/share/applications"))
1186 (copy-recursively "icons/hicolor"
1187 (string-append out "/share/icons/hicolor"))
1188 (wrap-program (string-append out "/bin/wpa_gui")
1189 `("QT_PLUGIN_PATH" ":" prefix
1190 ,(map (lambda (label)
1191 (string-append (assoc-ref inputs label)
1192 "/lib/qt5/plugins/"))
1195 (synopsis "Graphical user interface for WPA supplicant")))
1197 (define-public wakelan
1204 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
1208 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
1209 (build-system gnu-build-system)
1212 (modify-phases %standard-phases
1214 (lambda* (#:key outputs #:allow-other-keys)
1215 (let ((out (assoc-ref outputs "out")))
1216 (mkdir-p (string-append out "/bin"))
1217 (mkdir-p (string-append out "/share/man/man1"))
1219 ;; It's an old configure script that doesn't understand
1220 ;; the extra options we pass.
1221 (setenv "CONFIG_SHELL" (which "bash"))
1223 (system* "./configure"
1224 (string-append "--prefix=" out)
1225 (string-append "--mandir=" out
1228 (home-page "http://kernel.org") ; really, no home page
1229 (synopsis "Send a wake-on-LAN packet")
1231 "WakeLan broadcasts a properly formatted UDP packet across the local area
1232 network, which causes enabled computers to power on.")
1233 (license license:gpl2+)))
1235 (define-public dmidecode
1242 "mirror://savannah/dmidecode/dmidecode-"
1246 "1h0sg0lxa15nzf8s7884p6q7p6md9idm0c79wyqmk32l4ndwwrnp"))))
1247 (build-system gnu-build-system)
1249 '(#:phases (modify-phases %standard-phases (delete 'configure))
1250 #:tests? #f ; no 'check' target
1251 #:make-flags (list (string-append "prefix="
1252 (assoc-ref %outputs "out")))))
1253 (home-page "https://www.nongnu.org/dmidecode/")
1254 (synopsis "Read hardware information from the BIOS")
1256 "Dmidecode reports information about your system's hardware as described
1257 in your system BIOS according to the SMBIOS/DMI standard. This typically
1258 includes system manufacturer, model name, serial number, BIOS version, asset
1259 tag as well as a lot of other details of varying level of interest and
1260 reliability depending on the manufacturer. This will often include usage
1261 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1262 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1263 (license license:gpl2+)))
1265 (define-public acpica
1268 (version "20180531")
1272 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1276 "0q7vg1nr51f3rg16vjh4glz361a64r6gpm46fqkl2jf4fq7g43g5"))))
1277 (build-system gnu-build-system)
1278 (native-inputs `(("flex" ,flex)
1281 '(#:make-flags (list (string-append "PREFIX=" %output)
1284 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1285 #:tests? #f ; no 'check' target
1286 #:phases (modify-phases %standard-phases (delete 'configure))))
1287 (home-page "https://acpica.org/")
1288 (synopsis "Tools for the development and debug of ACPI tables")
1290 "The ACPI Component Architecture (@dfn{ACPICA}) project provides an
1291 OS-independent reference implementation of the Advanced Configuration and
1292 Power Interface Specification (@dfn{ACPI}). ACPICA code contains those portions
1293 of ACPI meant to be directly integrated into the host OS as a kernel-resident
1294 subsystem, and a small set of tools to assist in developing and debugging ACPI
1295 tables. This package contains only the user-space tools needed for ACPI table
1296 development, not the kernel implementation of ACPI.")
1297 (license license:gpl2))) ; dual GPLv2/ACPICA Licence
1299 (define-public stress
1305 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1306 version ".orig.tar.gz"))
1309 "0nw210jajk38m3y7h8s130ps2qsbz7j75wab07hi2r3hlz14yzh5"))))
1310 (build-system gnu-build-system)
1311 (home-page "https://packages.debian.org/sid/stress")
1312 (synopsis "Impose load on and stress test a computer system")
1314 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
1315 or disk stress on a POSIX-compliant operating system and reports any errors it
1318 Stress is not a benchmark. It is a tool used by system administrators to
1319 evaluate how well their systems will scale, by kernel programmers to evaluate
1320 perceived performance characteristics, and by systems programmers to expose
1321 the classes of bugs which only or more frequently manifest themselves when the
1322 system is under heavy load.")
1323 (license license:gpl2+)))
1325 (define-public detox
1331 (uri (string-append "mirror://sourceforge/detox/detox/" version
1332 "/detox-" version ".tar.bz2"))
1335 "1y6vvjqsg54kl49cry73jbfhr04s7wjs779vrr9zrq6kww7dkymb"))))
1336 (build-system gnu-build-system)
1337 ;; Both flex and popt are used in this case for their runtime libraries
1338 ;; (libfl and libpopt).
1343 `(#:configure-flags `(,(string-append "--with-popt="
1344 (assoc-ref %build-inputs "popt")))
1345 #:tests? #f)) ;no 'check' target
1346 (home-page "http://detox.sourceforge.net")
1347 (synopsis "Clean up file names")
1349 "Detox is a program that renames files to make them easier to work with
1350 under Unix and related operating systems. Spaces and various other unsafe
1351 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1352 characters can be replaced as well, as can UTF-8 characters.")
1353 (license license:bsd-3)))
1355 (define-public testdisk
1361 (uri (string-append "http://www.cgsecurity.org/testdisk-"
1362 version ".tar.bz2"))
1365 "0ba4wfz2qrf60vwvb1qsq9l6j0pgg81qgf7fh22siaz649mkpfq0"))))
1366 (build-system gnu-build-system)
1368 `(("ntfs-3g" ,ntfs-3g)
1369 ("util-linux" ,util-linux)
1370 ("openssl" ,openssl)
1371 ;; FIXME: add reiserfs
1373 ("e2fsprogs" ,e2fsprogs)
1374 ("libjpeg" ,libjpeg)
1375 ("ncurses" ,ncurses)))
1376 (home-page "https://www.cgsecurity.org/wiki/TestDisk")
1377 (synopsis "Data recovery tool")
1379 "TestDisk is a program for data recovery, primarily designed to help
1380 recover lost partitions and/or make non-booting disks bootable again.")
1381 (license license:gpl2+)))
1390 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1393 (base32 "04kviw799qxly08zb8n5mgxfd96gyis6x69q2qiw86jnh87c4mv9"))))
1394 (build-system gnu-build-system)
1396 '(#:phases (modify-phases %standard-phases (delete 'configure))
1397 #:tests? #f ; no check target
1398 #:make-flags (let ((out (assoc-ref %outputs "out")))
1399 (list (string-append "prefix=" out)))))
1400 (synopsis "Recursively list the contents of a directory")
1402 "Tree is a recursive directory listing command that produces a depth
1403 indented listing of files, which is colorized ala dircolors if the LS_COLORS
1404 environment variable is set and output is to tty.")
1405 (home-page "http://mama.indstate.edu/users/ice/tree/")
1406 (license license:gpl2+)))
1408 (define-public direvent
1414 (uri (string-append "mirror://gnu/direvent/direvent-"
1418 "1nwvjmx7kb14ni34c0b8x9a3791pc20gvhj7xaj66d8q4h6n0qf4"))
1419 (modules '((guix build utils)))
1421 (substitute* "tests/testsuite"
1422 (("#![[:blank:]]?/bin/sh")
1425 (build-system gnu-build-system)
1428 (modify-phases %standard-phases
1429 (add-before 'build 'patch-/bin/sh
1430 (lambda* (#:key inputs #:allow-other-keys)
1431 ;; Use the right shell when executing the watcher and
1432 ;; user-provided shell commands.
1433 (let ((bash (assoc-ref inputs "bash")))
1434 (substitute* '("src/direvent.c" "src/progman.c")
1436 (string-append "\"" bash "/bin/sh\"")))
1438 ;; Adjust the 'shell.at' test accordingly.
1439 (substitute* "tests/testsuite"
1441 (string-append "SHELL=" bash "/bin/sh")))
1444 (home-page "https://www.gnu.org/software/direvent/")
1445 (synopsis "Daemon to monitor directories for events such as file removal")
1447 "A daemon that monitors directories for events, such as creating,
1448 deleting or modifying files. It can monitor different sets of directories for
1449 different events. When an event is detected, direvent calls a specified
1450 external program with information about the event, such as the location
1451 within the file system where it occurred. Thus, \"direvent\" provides an
1452 easy way to react immediately if given files undergo changes, for example, to
1453 track changes in important system configuration files.")
1454 (license license:gpl3+)))
1456 (define-public libcap-ng
1463 "http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1467 "0a0k484kwv0zilry2mbl9k56cnpdhsjxdxin17jas6kkyfy345aa"))))
1468 (build-system gnu-build-system)
1471 (list "--without-python")))
1472 (home-page "https://people.redhat.com/sgrubb/libcap-ng/")
1473 (synopsis "Library for more easily working with POSIX capabilities")
1475 "The libcap-ng library is intended to make programming with POSIX
1476 capabilities easier than the traditional libcap library. It includes
1477 utilities that can analyse all currently running applications and print out
1478 any capabilities and whether or not it has an open ended bounding set. The
1479 included utilities are designed to let admins and developers spot apps from
1480 various ways that may be running with too much privilege.")
1481 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1482 (license (list license:lgpl2.1+ license:gpl2+))))
1484 (define-public smartmontools
1486 (name "smartmontools")
1491 "mirror://sourceforge/smartmontools/smartmontools/"
1492 version "/smartmontools-" version ".tar.gz"))
1495 "0m1hllbb78rr6cxkbalmz1gqkl0psgq8rrmv4gwcmz34n07kvx2i"))))
1496 (build-system gnu-build-system)
1497 (inputs `(("libcap-ng" ,libcap-ng)))
1498 (home-page "https://www.smartmontools.org/")
1499 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1501 "The smartmontools package contains utility programs to control and
1502 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1503 Technology System (@dfn{S.M.A.R.T.}) built into most modern ATA and SCSI hard
1504 disks. In many cases, these utilities will provide advanced warning of disk
1505 degradation and failure.")
1506 (license license:gpl2+)))
1508 (define-public fdupes
1516 "https://github.com/adrianlopezroche/fdupes/archive/v"
1518 (file-name (string-append name "-" version ".tar.gz"))
1521 "1sj9pa40pbz6xdwbxfwhdhkvhdf1xc5gvggk9mdq26c41gdnyswx"))))
1522 (build-system gnu-build-system)
1524 '(#:phases (modify-phases %standard-phases
1525 (delete 'configure))
1526 #:tests? #f ; no 'check' target
1527 #:make-flags (list "CC=gcc"
1528 (string-append "PREFIX="
1529 (assoc-ref %outputs "out")))))
1530 (home-page "https://github.com/adrianlopezroche/fdupes")
1531 (synopsis "Identify duplicate files")
1533 "fdupes is a program for identifying duplicate files residing within
1534 specified directories.")
1535 (license license:expat)))
1537 (define-public graphios
1545 "https://pypi.python.org/packages/source/g/graphios/graphios-"
1549 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1550 (build-system python-build-system)
1552 ;; Be warned: Building with Python 3 succeeds, but the build process
1553 ;; throws a syntax error that is ignored.
1554 `(#:python ,python-2
1556 (modify-phases %standard-phases
1557 (add-before 'build 'fix-setup.py
1558 (lambda* (#:key outputs #:allow-other-keys)
1559 ;; Fix hardcoded, unprefixed file names.
1560 (let ((out (assoc-ref outputs "out")))
1561 (substitute* '("setup.py")
1562 (("/etc") (string-append out "/etc"))
1564 (("distro_ver = .*") "distro_ver = ''"))
1566 (home-page "https://github.com/shawn-sterling/graphios")
1567 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1569 "Graphios is a script to emit nagios perfdata to various upstream metrics
1570 processing and time-series systems. It's currently compatible with Graphite,
1571 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1572 of supported upstream metrics systems simultaneously.")
1573 (license license:gpl2+)))
1575 (define-public ansible
1582 (uri (pypi-uri "ansible" version))
1585 "0n3n9py4s3aykiii31xq8g4wmd6693jvby0424pjrg0bna01apri"))
1586 (patches (search-patches "ansible-wrap-program-hack.patch"))))
1587 (build-system python-build-system)
1589 `(("python2-bcrypt" ,python2-bcrypt)
1590 ("python2-pycrypto" ,python2-pycrypto)
1591 ("python2-pynacl" ,python2-pynacl)
1592 ("python2-httplib2" ,python2-httplib2)
1593 ("python2-passlib" ,python2-passlib)
1594 ("python2-nose" ,python2-nose)
1595 ("python2-mock" ,python2-mock)
1596 ("python2-jinja2" ,python2-jinja2)
1597 ("python2-pyyaml" ,python2-pyyaml)
1598 ("python2-paramiko" ,python2-paramiko)))
1600 `(("python2-pycrypto" ,python2-pycrypto)
1601 ("python2-jinja2" ,python2-jinja2)
1602 ("python2-pyyaml" ,python2-pyyaml)
1603 ("python2-paramiko" ,python2-paramiko)))
1605 `(#:python ,python-2)) ; incompatible with Python 3
1606 (home-page "https://www.ansible.com/")
1607 (synopsis "Radically simple IT automation")
1608 (description "Ansible is a radically simple IT automation system. It
1609 handles configuration management, application deployment, cloud provisioning,
1610 ad hoc task execution, and multinode orchestration---including trivializing
1611 things like zero-downtime rolling updates with load balancers.")
1612 (license license:gpl3+)))
1614 (define-public cpulimit
1621 (uri (string-append "https://github.com/opsengine/cpulimit/archive/v"
1623 (file-name (string-append name "-" version ".tar.gz"))
1626 "1nn2w849xd5bw4y5sqnll29nxdwl5h0cv4smc7dwmpb9qnd2ycb4"))))
1627 (build-system gnu-build-system)
1629 `(#:phases (modify-phases %standard-phases
1634 (zero? (system* "make" "CC=gcc" "-Csrc"))))
1638 (zero? (system* "make" "CC=gcc" "-Ctests"))))
1641 (lambda* (#:key outputs #:allow-other-keys)
1642 (let* ((out (assoc-ref outputs "out"))
1643 (bin (string-append out "/bin")))
1644 (install-file "src/cpulimit" bin)))))))
1645 (home-page "https://github.com/opsengine/cpulimit")
1646 (synopsis "Limit CPU usage")
1648 "Cpulimit limits the CPU usage of a process. It does not change the nice
1649 value or other scheduling priority settings, but the real CPU usage, and is
1650 able to adapt itself dynamically to the overall system load. Children
1651 processes and threads of the specified process may optionally share the same
1653 (license license:gpl2+)))
1655 (define-public autojump
1662 (uri (string-append "https://github.com/wting/autojump/archive/"
1663 "release-v" version ".tar.gz"))
1664 (file-name (string-append name "-" version ".tar.gz"))
1667 "113rcpr37ngf2xs8da41qdarq5qmj0dwx8ggqy3lhlb0kvqq7g9z"))))
1668 (build-system gnu-build-system)
1669 (native-inputs ;for tests
1670 `(("python-mock" ,python-mock)
1671 ("python-pytest" ,python-pytest)))
1673 `(("python" ,python-wrapper)))
1675 `(#:phases (modify-phases %standard-phases
1681 (system* "python" "tests/unit/autojump_utils_test.py"))))
1683 ;; The install.py script doesn't allow system installation
1684 ;; into an arbitrary prefix, so do our own install.
1685 (lambda* (#:key outputs #:allow-other-keys)
1686 (let* ((out (assoc-ref outputs "out"))
1687 (bin (string-append out "/bin"))
1688 (share (string-append out "/share/autojump"))
1689 (py (string-append out "/lib/python"
1690 ,(version-major+minor
1691 (package-version python-wrapper))
1693 (man (string-append out "/share/man/man1")))
1694 (install-file "bin/autojump" bin)
1695 (for-each (λ (f) (install-file f py))
1696 (find-files "bin" "\\.py$"))
1697 (for-each (λ (f) (install-file f share))
1698 (find-files "bin" "autojump\\..*$"))
1699 (substitute* (string-append share "/autojump.sh")
1700 (("/usr/local") out))
1701 (install-file "docs/autojump.1" man)
1702 (wrap-program (string-append bin "/autojump")
1703 `("PYTHONPATH" ":" prefix (,py)))
1705 (home-page "https://github.com/wting/autojump")
1706 (synopsis "Shell extension for file system navigation")
1708 "Autojump provides a faster way to navigate your file system, with a \"cd
1709 command that learns\". It works by maintaining a database of the directories
1710 you use the most from the command line and allows you to \"jump\" to
1711 frequently used directories by typing only a small pattern.")
1712 (license license:gpl3+)))
1721 (url "https://github.com/clvv/fasd.git")
1723 (file-name (git-file-name name version))
1726 "1awi71jdv3mhjrmar2d4z1i90kn7apd7aq1w31sh6w4yibz9kiyj"))))
1727 (build-system gnu-build-system)
1729 `(#:phases (modify-phases %standard-phases
1730 (delete 'configure)) ;no configuration
1731 #:tests? #f ;no tests
1732 #:make-flags (list (string-append "PREFIX=" %output))))
1733 (home-page "https://github.com/clvv/fasd")
1734 (synopsis "Quick access to files and directories for shells")
1736 "Fasd (pronounced similar to \"fast\") is a command-line productivity
1737 booster. Fasd offers quick access to files and directories for POSIX shells.
1738 It is inspired by tools like autojump, z, and v. Fasd keeps track of files
1739 and directories you have accessed so that you can quickly reference them in
1741 (license license:x11)))
1743 (define-public iftop
1749 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
1750 "/iftop-" version ".tar.gz"))
1753 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
1754 (build-system gnu-build-system)
1756 `(("libpcap" ,libpcap)
1757 ("ncurses" ,ncurses)))
1758 (synopsis "Monitor network usage")
1759 (description "Iftop does for network usage what @command{top} does
1760 for CPU usage. It listens to network traffic on a named interface and
1761 displays a table of current bandwidth usage by pairs of hosts.")
1762 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
1763 (license license:gpl2+)))
1765 (define-public munge
1771 (uri (string-append "https://github.com/dun/munge/releases/"
1772 "download/munge-" version "/munge-"
1776 "1nj486bbg1adfg298zck96vgx57kchcypc1zdz1n7w540vyksxcr"))))
1778 `(("openssl" ,openssl)
1779 ("libgcrypt" ,libgcrypt)))
1780 (build-system gnu-build-system)
1781 (home-page "https://dun.github.io/munge/")
1782 (synopsis "Cluster computing authentication service")
1784 "Munge is an authentication service for creating and validating
1785 credentials. It allows a process to authenticate the UID and GID of another
1786 local or remote process within a group of hosts having common users and
1787 groups. These hosts form a security realm that is defined by a shared
1788 cryptographic key. Clients within this security realm can create and validate
1789 credentials without the use of root privileges, reserved ports, or
1790 platform-specific methods.")
1791 (license license:gpl3+)))
1793 (define-public audit
1799 (uri (string-append "http://people.redhat.com/sgrubb/audit/"
1800 "audit-" version ".tar.gz"))
1803 "1q1q51dvxscbi4kbakmd4bn0xrvwwaiwvaya79925cbrqwzxsg77"))))
1804 (build-system gnu-build-system)
1805 (home-page "http://people.redhat.com/sgrubb/audit/")
1807 `(#:configure-flags (list "--with-python=no")
1809 (modify-phases %standard-phases
1810 (add-after 'unpack 'fix-tests
1812 ;; In the build environmnte /etc/passwd does not contain an entry
1813 ;; for root/0, so we have to patch the expected value.
1814 (substitute* "auparse/test/auparse_test.ref"
1815 (("=0 \\(root\\)") "=0 (unknown(0))"))
1818 `(("openldap" ,openldap)
1820 ("sasl" ,cyrus-sasl)))
1821 (synopsis "User-space component to the Linux auditing system")
1823 "auditd is the user-space component to the Linux auditing system, which
1824 allows logging of system calls made by user-land processes. It's responsible
1825 for writing audit records to the disk. Viewing the logs is done with the
1826 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
1827 done with the @code{auditctl} utility.")
1828 (license license:gpl2+)))
1836 (uri (string-append "https://nmap.org/dist/nmap-" version
1840 "063fg8adx23l4irrh5kn57hsmi1xvjkar4vm4k6g94ppan4hcyw4"))
1841 (modules '((guix build utils)))
1844 (for-each delete-file-recursively
1845 ;; Remove bundled lua, pcap, and pcre libraries.
1846 ;; FIXME: Remove bundled liblinear once packaged.
1850 ;; Remove pre-compiled binares.
1853 (build-system gnu-build-system)
1855 `(("openssl" ,openssl)
1856 ("libpcap" ,libpcap)
1859 ("zlib" ,zlib) ;for NSE compression support
1862 ("python" ,python-2)))
1864 ;; TODO Add zenmap output.
1865 (outputs '("out" "ndiff"))
1867 '(#:configure-flags '("--without-zenmap")
1869 (modify-phases %standard-phases
1870 (add-after 'configure 'patch-Makefile
1872 (substitute* "Makefile"
1873 ;; Do not attempt to build lua.
1874 (("build-dnet build-lua") "build-dnet"))
1877 (lambda* (#:key outputs #:allow-other-keys)
1878 (define (make out . args)
1879 (unless (zero? (apply system* "make"
1880 (string-append "prefix=" out)
1882 (error "make failed")))
1883 (define (python-path dir)
1884 (string-append dir "/lib/python2.7/site-packages"))
1885 (let ((out (assoc-ref outputs "out"))
1886 (ndiff (assoc-ref outputs "ndiff")))
1887 (for-each mkdir-p (list out ndiff))
1893 (make ndiff "install-ndiff")
1894 (wrap-program (string-append ndiff "/bin/ndiff")
1895 `("PYTHONPATH" prefix
1896 (,(python-path ndiff)))))))
1897 ;; These are the tests that do not require network access.
1899 (lambda _ (zero? (system* "make"
1903 ;; Nmap can't cope with out-of-source building.
1904 #:out-of-source? #f))
1905 (home-page "https://nmap.org/")
1906 (synopsis "Network discovery and security auditing tool")
1908 "Nmap (\"Network Mapper\") is a network discovery and security auditing
1909 tool. It is also useful for tasks such as network inventory, managing service
1910 upgrade schedules, and monitoring host or service uptime. It also provides an
1911 advanced netcat implementation (ncat), a utility for comparing scan
1912 results (ndiff), and a packet generation and response analysis tool (nping).")
1913 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
1914 ;; both use a 3-clause BSD license.
1915 (license (list license:nmap license:bsd-3))))
1917 (define-public dstat
1924 "https://github.com/dagwieers/dstat/archive/"
1926 (file-name (string-append "dstat-" version ".tar.gz"))
1929 "16286z3y2lc9nsq8njzjkv6k2vyxrj9xiixj1k3gnsbvhlhkirj6"))))
1930 (build-system gnu-build-system)
1932 `(#:tests? #f ;; no make check
1933 #:make-flags (let ((out (assoc-ref %outputs "out")))
1934 (list (string-append "DESTDIR=" out)
1936 ;; no configure script
1937 #:phases (modify-phases %standard-phases (delete 'configure))))
1938 (inputs `(("python-2" ,python-2)))
1939 (synopsis "Versatile resource statistics tool")
1940 (description "Dstat is a versatile replacement for @command{vmstat},
1941 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
1942 some of their limitations and adds some extra features, more counters and
1943 flexibility. Dstat is handy for monitoring systems during performance tuning
1944 tests, benchmarks or troubleshooting.
1946 Dstat allows you to view all of your system resources in real-time, you can,
1947 e.g., compare disk utilization in combination with interrupts from your IDE
1948 controller, or compare the network bandwidth numbers directly with the disk
1949 throughput (in the same interval).")
1950 (home-page "http://dag.wiee.rs/home-made/dstat/")
1951 (license license:gpl2+)))
1953 (define-public thefuck
1959 (uri (string-append "https://github.com/nvbn/thefuck/archive/"
1961 (file-name (string-append name "-" version ".tar.gz"))
1964 "0my32n2x8x0f0wr8ql7qgk9qhb6ibv5b1rqs5b2r4nadv0gpiv96"))
1965 (patches (search-patches "thefuck-test-environ.patch"))))
1966 (build-system python-build-system)
1969 (modify-phases %standard-phases
1971 (add-after 'install 'check
1972 (lambda* (#:key inputs outputs #:allow-other-keys)
1973 ;; Tests look for installed package
1974 (add-installed-pythonpath inputs outputs)
1975 ;; Some tests need write access to $HOME.
1976 (setenv "HOME" "/tmp")
1977 (invoke "py.test" "-v")
1980 `(("python-colorama" ,python-colorama)
1981 ("python-decorator" ,python-decorator)
1982 ("python-psutil" ,python-psutil)
1983 ("python-pyte" ,python-pyte)
1984 ("python-six" ,python-six)))
1986 `(("python-mock" ,python-mock)
1987 ("python-pytest" ,python-pytest)
1988 ("python-pytest-mock" ,python-pytest-mock)))
1989 (home-page "https://github.com/nvbn/thefuck")
1990 (synopsis "Correct mistyped console command")
1992 "The Fuck tries to match a rule for a previous, mistyped command, creates
1993 a new command using the matched rule, and runs it.")
1994 (license license:x11)))
2003 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
2005 (base32 "0cskiqywiqkw44zdg4q78bjns6jjp1dz5lzdxrhpnpldc6075irw"))))
2006 (build-system gnu-build-system)
2008 `(#:tests? #f ; Obscure test failures.
2010 (modify-phases %standard-phases
2012 (add-before 'build 'setup-environment
2013 (lambda* (#:key outputs #:allow-other-keys)
2015 (setenv "prefix" (assoc-ref outputs "out"))
2017 #:make-flags (list "--environment-overrides")))
2018 (home-page "https://www.gentoo.com/di/")
2019 (synopsis "Advanced df like disk information utility")
2021 "'di' is a disk information utility, displaying everything that your
2022 @code{df} command does and more. It features the ability to display your disk
2023 usage in whatever format you prefer. It is designed to be highly portable and
2024 produce uniform output across heterogeneous networks.")
2025 (license license:zlib)))
2027 (define-public cbatticon
2033 (uri (string-append "https://github.com/valr/"
2034 name "/archive/" version ".tar.gz"))
2037 "185lzvaijvyq7y8r7dvizhri0rf9lpc1anfgbbn4lznr1fr3z7rn"))
2038 (file-name (string-append name "-" version ".tar.gz"))))
2039 (build-system gnu-build-system)
2041 `(#:tests? #f ; no tests
2043 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2046 (modify-phases %standard-phases
2047 (delete 'configure)))) ; no configure script
2050 ("gettext" ,gettext-minimal)
2051 ("libnotify" ,libnotify)))
2053 `(("pkg-config" ,pkg-config)))
2054 (synopsis "Lightweight battery icon for the system tray")
2055 (description "cbatticon is a lightweight battery icon that displays
2056 the status of your battery in the system tray.")
2057 (home-page "https://github.com/valr/cbatticon")
2058 (license license:gpl2+)))
2060 (define-public interrobang
2061 (let ((revision "1")
2062 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
2064 (name "interrobang")
2065 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
2069 (url "https://github.com/TrilbyWhite/interrobang")
2071 (file-name (string-append name "-" version))
2074 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
2075 (build-system gnu-build-system)
2077 `(#:tests? #f ; no tests
2079 (modify-phases %standard-phases
2080 (delete 'configure)) ; no configure script
2081 #:make-flags (list (string-append "PREFIX="
2082 (assoc-ref %outputs "out")))))
2084 `(("libx11" ,libx11)))
2086 `(("pkg-config" ,pkg-config)))
2087 (synopsis "Scriptable launcher menu")
2088 (description "Interrobang is a scriptable launcher menu with a customizable
2089 shortcut syntax and completion options.")
2090 (home-page "https://github.com/TrilbyWhite/interrobang")
2091 (license license:gpl3+))))
2093 (define-public pam-krb5
2100 "https://archives.eyrie.org/software/kerberos/" name "-"
2104 "1qjp8i1s9bz7g6kiqrkzzkxn5pfspa4sy53b6z40fqmdf9przdfb"))))
2105 (build-system gnu-build-system)
2108 (modify-phases %standard-phases
2109 (add-before 'configure 'disable-tests
2111 ;; The build container seems to interfere with some tests.
2112 (substitute* "tests/TESTS"
2113 (("module/basic\n") ""))
2114 (substitute* "tests/TESTS"
2115 (("pam-util/vector\n") ""))
2118 `(("linux-pam" ,linux-pam)
2119 ("mit-krb5" ,mit-krb5)))
2122 ("perl-test-pod" ,perl-test-pod))) ; required for tests
2123 (synopsis "Kerberos PAM module")
2125 "Pam-krb5 is a Kerberos PAM module for either MIT Kerberos or Heimdal.
2126 It supports ticket refreshing by screen savers, configurable
2127 authorization handling, authentication of non-local accounts for network
2128 services, password changing, and password expiration, as well as all the
2129 standard expected PAM features. It works correctly with OpenSSH, even
2130 with @code{ChallengeResponseAuthentication} and @code{PrivilegeSeparation}
2131 enabled, and supports extensive configuration either by PAM options or in
2132 krb5.conf or both. PKINIT is supported with recent versions of both MIT
2133 Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
2134 (home-page "http://www.eyrie.org/~eagle/software/pam-krb5")
2135 ;; Dual licenced under a homebrew non-copyleft OR GPL (any version)
2136 ;; However, the tarball does not contain a copy of the GPL, so unless
2137 ;; we put one in, we cannot distribute it under GPL without violating
2138 ;; clause requiring us to give all recipients a copy.
2139 (license license:gpl1+)))
2141 (define-public sunxi-tools
2143 (name "sunxi-tools")
2148 (uri (string-append "https://github.com/linux-sunxi/"
2149 "sunxi-tools/archive/v" version ".tar.gz"))
2151 (base32 "08iqwj95qw2s7ilhrdi2lkbc8dx64zk5lzz1qk587jr0lla81x41"))
2152 (modules '((guix build utils)))
2154 ;; Remove binaries contained in the tarball which are only for the
2155 ;; target and can be regenerated anyway.
2157 (delete-file-recursively "bin")
2159 (file-name (string-append name "-" version ".tar.gz"))))
2161 `(("pkg-config" ,pkg-config)
2162 ("cross-gcc" ,(cross-gcc "arm-linux-gnueabihf"
2163 #:xbinutils (cross-binutils "arm-linux-gnueabihf")
2164 #:libc (cross-libc "arm-linux-gnueabihf")))
2165 ("cross-libc" ,(cross-libc "arm-linux-gnueabihf")) ; header files
2166 ("cross-libc-static" ,(cross-libc "arm-linux-gnueabihf") "static")))
2168 `(("libusb" ,libusb)))
2169 (build-system gnu-build-system)
2171 `(#:tests? #f ; no tests exist
2172 #:make-flags (list (string-append "PREFIX="
2173 (assoc-ref %outputs "out"))
2174 (string-append "CROSS_COMPILE="
2175 "arm-linux-gnueabihf-")
2178 (modify-phases %standard-phases
2180 (add-before 'build 'set-environment-up
2181 (lambda* (#:key make-flags #:allow-other-keys)
2183 (string-contains x "cross-arm-linux"))
2184 (define (filter-environment! filter-predicate
2185 environment-variable-names)
2188 (let* ((env-value (getenv env-name))
2189 (search-path (search-path-as-string->list env-value))
2190 (new-search-path (filter filter-predicate
2192 (new-env-value (list->search-path-as-string
2193 new-search-path ":")))
2194 (setenv env-name new-env-value)))
2195 environment-variable-names))
2196 (setenv "CROSS_C_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))
2197 (setenv "CROSS_CPLUS_INCLUDE_PATH" (getenv "CPLUS_INCLUDE_PATH"))
2198 (setenv "CROSS_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
2199 (filter-environment! cross?
2200 '("CROSS_C_INCLUDE_PATH" "CROSS_CPLUS_INCLUDE_PATH"
2201 "CROSS_LIBRARY_PATH"))
2202 (filter-environment! (lambda (e) (not (cross? e)))
2203 '("C_INCLUDE_PATH" "CPLUS_INCLUDE_PATH"
2207 (lambda* (#:key make-flags #:allow-other-keys)
2208 (zero? (apply system* "make" "tools" "misc" make-flags))))
2209 (add-after 'build 'build-armhf
2210 (lambda* (#:key make-flags #:allow-other-keys)
2211 (setenv "LIBRARY_PATH" #f)
2212 (zero? (apply system* "make" "target-tools" make-flags))))
2214 (lambda* (#:key make-flags #:allow-other-keys)
2215 (zero? (apply system* "make" "install-all" "install-misc"
2217 (home-page "https://github.com/linux-sunxi/sunxi-tools")
2218 (synopsis "Hardware management tools for Allwinner computers")
2219 (description "This package contains tools for Allwinner devices:
2221 @item @command{sunxi-fexc}, @command{bin2fex}, @command{fex2bin}: Compile
2222 a textual description of a board (.fex) to a binary representation (.bin).
2223 @item @command{sunxi-fel}: Puts an Allwinner device into FEL mode which
2224 makes it register as a special USB device (rather than USB host).
2225 You can then connect it to another computer and flash it from there.
2226 @item @command{sunxi-nand-part}: Partitions NAND flash.
2227 @item @command{sunxi-bootinfo}: Reads out boot0 and boot1 (Allwinner
2228 bootloader) parameters.
2229 @item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
2230 in order to be able to find it.
2231 @item @command{sunxi-meminfo}: Prints memory bus settings.
2232 @item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
2234 (license license:gpl2+)))
2236 (define-public sedsed
2243 (uri (string-append "https://github.com/aureliojargas/sedsed/"
2244 "archive/v" version ".tar.gz"))
2245 (file-name (string-append name "-" version ".tar.gz"))
2248 "0139jkqvm8ipiwfj7k69ry2f9b1ffgpk79arpz4r7w9kf6h23bnh"))))
2249 (build-system python-build-system)
2251 `(#:tests? #f ; No tests.
2254 (modify-phases %standard-phases
2255 (add-after 'unpack 'patch-sed-in
2257 (substitute* "sedsed.py"
2259 (string-append "sedbin = '" (which "sed") "'")))
2263 (lambda* (#:key outputs #:allow-other-keys)
2264 (let* ((out (assoc-ref outputs "out"))
2265 (bin (string-append out "/bin")))
2266 ;; Just one file to copy around
2267 (install-file "sedsed.py" bin)
2269 (add-after 'install 'symlink
2270 ;; Create 'sedsed' symlink to "sedsed.py".
2271 (lambda* (#:key outputs #:allow-other-keys)
2272 (let* ((out (assoc-ref outputs "out"))
2273 (bin (string-append out "/bin"))
2274 (sed (string-append bin "/sedsed"))
2275 (sedpy (string-append bin "/sedsed.py")))
2278 (home-page "http://aurelio.net/projects/sedsed")
2279 (synopsis "Sed sed scripts")
2281 "@code{sedsed} can debug, indent, tokenize and HTMLize your sed(1) script.
2283 In debug mode it reads your script and add extra commands to it. When
2284 executed you can see the data flow between the commands, revealing all the
2285 magic sed does on its internal buffers.
2287 In indent mode your script is reformatted with standard spacing.
2289 In tokenize mode you can see the elements of every command you use.
2291 In HTMLize mode your script is converted to a beautiful colored HTML file,
2292 with all the commands and parameters identified for your viewing pleasure.
2294 With sedsed you can master any sed script. No more secrets, no more hidden
2296 (license license:expat)))
2298 (define-public intel-gpu-tools
2300 (name "intel-gpu-tools")
2304 (uri (string-append "https://cgit.freedesktop.org/xorg/app/"
2305 "intel-gpu-tools/snapshot/"
2306 "intel-gpu-tools-" version ".tar.gz"))
2309 "1jx5w5fr6jp67rcrlp5v79cn8kp9n0wgd5pbfgzamlah5cx6j3yd"))))
2310 (build-system gnu-build-system)
2312 `(#:tests? #f ; many of the tests try to load kernel modules
2314 (modify-phases %standard-phases
2315 (add-after 'unpack 'autogen
2317 ;; Don't run configure in this phase.
2318 (setenv "NOCONFIGURE" "1")
2319 (invoke "sh" "autogen.sh"))))))
2322 ("util-macros" ,util-macros)
2324 ("libpciaccess" ,libpciaccess)
2328 ("libunwind" ,libunwind)
2329 ("libxrandr" ,libxrandr)
2332 `(("autoconf" ,autoconf)
2333 ("automake" ,automake)
2334 ("libtool" ,libtool)
2335 ("pkg-config" ,pkg-config)))
2336 (home-page "https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/")
2337 (synopsis "Tools for development and testing of the Intel DRM driver")
2338 (description "Intel GPU Tools is a collection of tools for development and
2339 testing of the Intel DRM driver. There are many macro-level test suites that
2340 get used against the driver, including xtest, rendercheck, piglit, and
2341 oglconform, but failures from those can be difficult to track down to kernel
2342 changes, and many require complicated build procedures or specific testing
2343 environments to get useful results. Therefore, Intel GPU Tools includes
2344 low-level tools and tests specifically for development and testing of the
2346 (supported-systems '("i686-linux" "x86_64-linux"))
2347 (license license:expat)))
2349 (define-public fabric
2356 (uri (pypi-uri "Fabric" version))
2359 "13r0b0hllgf8j9rh6x1knmbgvingbdmx046aazv6vck2ll120mw1"))))
2360 (build-system python-build-system)
2362 `(#:python ,python-2)) ; Python 2 only
2364 `(("python2-fudge" ,python2-fudge)
2365 ("python2-jinja2" ,python2-jinja2)
2366 ("python2-nose" ,python2-nose)
2367 ("python2-pynacl" ,python2-pynacl)
2368 ("python2-bcrypt" ,python2-bcrypt)))
2370 `(("python2-paramiko" ,python2-paramiko)))
2371 (home-page "http://fabfile.org")
2372 (synopsis "Simple Pythonic remote execution and deployment tool")
2374 "Fabric is designed to upload files and run shell commands on a number of
2375 servers in parallel or serially. These commands are grouped in tasks (which
2376 are regular Python functions) and specified in a @dfn{fabfile}.
2378 It is similar to Capistrano, except it's implemented in Python and doesn't
2379 expect you to be deploying Rails applications. Fabric is a simple, Pythonic
2380 tool for remote execution and deployment.")
2381 (license license:bsd-2)))
2383 (define-public neofetch
2389 (uri (string-append "https://github.com/dylanaraps/neofetch/"
2390 "archive/" version ".tar.gz"))
2391 (file-name (string-append name "-" version ".tar.gz"))
2394 "18rhamy910ig03rr55y9x5i6pf78yj9xc6jpm6nfh3gqja7340rb"))))
2395 (build-system gnu-build-system)
2397 `(#:tests? #f ; there are no tests
2399 (list (string-append "PREFIX=" %output))
2401 (modify-phases %standard-phases
2402 (add-after 'unpack 'patch-target-directories
2403 (lambda* (#:key outputs #:allow-other-keys)
2404 (let ((out (assoc-ref outputs "out")))
2405 (substitute* "Makefile"
2406 (("\\$\\(DESTDIR\\)/etc/")
2408 (substitute* "neofetch"
2409 (("\"/etc/neofetch")
2410 (string-append "\"" out "/etc/neofetch"))
2411 (("\"/usr/share/neofetch")
2412 (string-append "\"" out "/share/neofetch"))))
2414 (delete 'configure) ; no configure script
2416 (lambda* (#:key make-flags outputs #:allow-other-keys)
2417 (let* ((out (assoc-ref outputs "out"))
2418 (doc (string-append out "/share/doc/" ,name "-" ,version))
2419 (etc (string-append doc "/examples/etc")))
2420 (zero? (apply system* `("make" ,@make-flags
2421 ,(string-append "SYSCONFDIR=" etc)
2423 (home-page "https://github.com/dylanaraps/neofetch")
2424 (synopsis "System info script")
2425 (description "Neofetch is a CLI system information tool written in Bash.
2426 Neofetch displays information about your system next to an image, your OS
2427 logo, or any ASCII file of your choice. The main purpose of Neofetch is to be
2428 used in screenshots to show other users what operating system or distribution
2429 you are running, what theme or icon set you are using, etc.")
2430 (license license:expat)))
2438 (uri (string-append "https://github.com/jarun/nnn/"
2439 "archive/v" version ".tar.gz"))
2440 (file-name (string-append name "-" version ".tar.gz"))
2443 "0z3lqbfx3y1caxvn7yq90b7whwyq2y32zf8kyd976ilbxpxnxqpv"))))
2444 (build-system gnu-build-system)
2445 (inputs `(("ncurses" ,ncurses)
2446 ("readline" ,readline)))
2448 '(#:tests? #f ; no tests
2450 ;; We do not provide `ncurses.h' within an `ncursesw'
2451 ;; sub-directory, so patch the source accordingly. See
2452 ;; <http://bugs.gnu.org/19018>.
2453 ;; Thanks to gtypist maintainer.
2454 (modify-phases %standard-phases
2455 (add-after 'unpack 'patch-curses-lib
2456 (lambda* (#:key outputs #:allow-other-keys)
2457 (let ((out (assoc-ref outputs "out")))
2458 (substitute* "Makefile"
2461 (substitute* "nnn.c"
2462 (("ncursesw\\/curses.h")
2465 (delete 'configure))
2468 (string-append "PREFIX="
2469 (assoc-ref %outputs "out"))
2470 (string-append "-Wl,-rpath="
2473 (home-page "https://github.com/jarun/nnn")
2474 (synopsis "Terminal file browser")
2475 (description "@command{nnn} is a fork of @command{noice}, a blazing-fast
2476 lightweight terminal file browser with easy keyboard shortcuts for
2477 navigation, opening files and running tasks. There is no config file and
2478 mime associations are hard-coded. The incredible user-friendliness and speed
2479 make it a perfect utility on modern distros.")
2480 (license license:bsd-2)))
2482 (define-public thermald
2489 (uri (string-append "https://github.com/01org/thermal_daemon/archive/v"
2491 (file-name (string-append name "-" version ".tar.gz"))
2493 "15a6vb67y5wsmf0irrq7sxam18yqpz64130k83ryf24mp40h661b"))))
2494 (build-system gnu-build-system)
2497 (modify-phases %standard-phases
2498 (add-after 'unpack 'bootstrap
2500 (invoke "sh" "autogen.sh")
2503 (let ((out (assoc-ref %outputs "out")))
2504 (list (string-append "--sysconfdir="
2506 (string-append "--with-udev-dir="
2508 (string-append "--with-dbus-sys-dir="
2509 out "/etc/dbus-1/system.d")
2510 "--localstatedir=/var"))))
2512 `(("autoconf" ,autoconf)
2513 ("automake" ,automake)
2514 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
2515 ("pkg-config" ,pkg-config)))
2517 `(("dbus-glib" ,dbus-glib)
2518 ("libxml2" ,libxml2)))
2519 (home-page "https://01.org/linux-thermal-daemon/")
2520 (synopsis "CPU scaling for thermal management")
2521 (description "The Linux Thermal Daemon helps monitor and control temperature
2522 on systems running the Linux kernel.")
2523 ;; arm and aarch64 don't have cpuid.h.
2524 (supported-systems '("i686-linux" "x86_64-linux"))
2525 (license license:gpl2+)))
2527 (define-public masscan
2533 (uri (string-append "https://github.com/robertdavidgraham/masscan"
2534 "/archive/" version ".tar.gz"))
2535 (file-name (string-append name "-" version ".tar.gz"))
2538 "0wxddsgyx27z45906icdhdbfsvfj8ij805208qpqjx46i0lnjs50"))))
2539 (build-system gnu-build-system)
2541 `(("libpcap" ,libpcap)))
2543 '(#:test-target "regress"
2546 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2548 (modify-phases %standard-phases
2549 (delete 'configure) ; no ./configure script
2550 (add-after 'unpack 'patch-path
2551 (lambda* (#:key outputs inputs #:allow-other-keys)
2552 (let* ((out (assoc-ref outputs "out"))
2553 (pcap (assoc-ref inputs "libpcap")))
2554 (substitute* "src/rawsock-pcap.c"
2555 (("libpcap.so") (string-append pcap "/lib/libpcap.so")))
2557 (synopsis "TCP port scanner")
2558 (description "MASSCAN is an asynchronous TCP port scanner. It can detect
2559 open ports, and also complete the TCP connection and interact with the remote
2560 application, collecting the information received.")
2561 (home-page "https://github.com/robertdavidgraham/masscan")
2562 ;; 'src/siphash24.c' is the SipHash reference implementation, which
2563 ;; bears a CC0 Public Domain Dedication.
2564 (license license:agpl3+)))
2566 (define-public hungrycat
2572 (uri (string-append "https://github.com/jwilk/hungrycat/"
2573 "releases/download/" version "/"
2574 name "-" version ".tar.gz"))
2577 "03fc1zsrf99lvxa7b4ps6pbi43304wbxh1f6ci4q0vkal370yfwh"))))
2578 (build-system gnu-build-system)
2581 `(("python" ,python-wrapper)
2582 ("python-nose" ,python-nose)))
2584 `(#:test-target "test"))
2585 (synopsis "A single tool that combines @command{cat} & @command{rm}")
2587 "hungrycat prints the contents of a file to standard output, while
2588 simultaneously freeing the disk space it occupied. It is useful if you need
2589 to process a large file, don't have enough space to store both the input and
2590 output files, and don't need the input file afterwards.
2591 While similar in principle to running @command{cat} immediately followed by
2592 @command{rm}, @command{hungrycat} actually frees blocks as soon as they are
2593 printed instead of after the entire file has been read, which is often too
2595 (home-page "https://jwilk.net/software/hungrycat")
2596 (license license:expat)))
2598 (define-public launchmon
2605 "https://github.com/LLNL/LaunchMON/releases/download/v"
2606 version "/" name "-v" version ".tar.gz"))
2609 "0fm3nd9mydm9v2bf7bh01dbgrfnpwkapxa3dsvy3x1z0rz61qc0x"))))
2610 (build-system gnu-build-system)
2616 ("libgcrypt" ,libgcrypt)
2617 ("libgpg-error" ,libgpg-error)))
2618 (synopsis "Infrastructue for large scale tool daemon launching")
2620 "LaunchMON is a software infrastructure that enables HPC run-time
2621 tools to co-locate tool daemons with a parallel job. Its API allows a
2622 tool to identify all the remote processes of a job and to scalably
2623 launch daemons into the relevant nodes.")
2624 (home-page "https://github.com/LLNL/LaunchMON")
2625 (supported-systems '("i686-linux" "x86_64-linux"))
2626 (license license:lgpl2.1)))
2628 (define-public spindle
2633 ;; We use git checkout to avoid github auto-generated tarballs
2636 (url "https://github.com/hpc/Spindle.git")
2637 (commit (string-append "v" version))))
2638 (file-name (git-file-name name version))
2641 "15n3ay0qq81r5v7fif61q1vdjcq44pp2nynkh3fvbzc9fj3c39wd"))))
2642 (build-system gnu-build-system)
2643 (arguments '(#:configure-flags '("--enable-sec-launchmon"
2644 "--enable-sec-munge"
2645 "--enable-sec-none")))
2649 ("launchmon" ,launchmon)
2650 ("libgcrypt" ,libgcrypt)))
2651 (synopsis "Scalable library loading in HPC environments")
2653 "Spindle is a tool for improving the performance of dynamic library and
2654 Python loading in HPC environments.")
2655 (home-page "https://github.com/hpc/Spindle")
2656 ;; This package supports x86_64 and PowerPC64
2657 (supported-systems '("x86_64-linux"))
2658 (license license:lgpl2.1)))
2660 (define-public inxi-minimal
2661 (let ((real-name "inxi"))
2663 (name "inxi-minimal")
2664 (version "3.0.11-1")
2669 (url "https://github.com/smxi/inxi")
2673 "07wihl4gsamq98mhxvm6k4vpphym75467cxfa19b3g5ggpyq894g"))))
2674 (build-system trivial-build-system)
2687 (use-modules (guix build utils)
2690 (setenv "PATH" (string-append
2691 (assoc-ref %build-inputs "bash") "/bin" ":"
2692 (assoc-ref %build-inputs "gzip") "/bin" ":"
2693 (assoc-ref %build-inputs "perl") "/bin" ":"))
2694 (copy-recursively (assoc-ref %build-inputs "source")
2695 ,(string-append real-name "-" version))
2696 (with-directory-excursion ,(string-append real-name "-" version)
2697 (with-fluids ((%default-port-encoding #f))
2698 (substitute* "inxi" (("/usr/bin/env perl") (which "perl"))))
2699 (let ((bin (string-append %output "/bin")))
2700 (install-file "inxi" bin)
2701 (wrap-program (string-append bin "/inxi")
2704 ,@(map (lambda (input)
2708 (cut string-append store <>)))
2710 ((member name '("util-linux"))
2711 (string-append (store-append "/bin") ":"
2712 (store-append "/sbin")))
2713 ((member name '("dmidecode" "iproute2"))
2714 (store-append "/sbin"))
2715 (else (store-append "/bin")))))))
2721 (((? (cut string-prefix? "perl-" <>) name) . dir)
2722 (string-append dir "/lib/perl5/site_perl"))
2725 (invoke "gzip" "inxi.1")
2726 (install-file "inxi.1.gz"
2727 (string-append %output "/share/man/man1")))
2729 (home-page "https://smxi.org/docs/inxi.htm")
2730 (synopsis "Full-featured system information script")
2731 (description "Inxi is a system information script that can display
2732 various things about your hardware and software to users in an IRC chatroom or
2733 support forum. It runs with the @code{/exec} command in most IRC clients.")
2734 (license license:gpl3+))))
2738 (inherit inxi-minimal)
2741 `(("dmidecode" ,dmidecode)
2743 ("bind:utils" ,isc-bind "utils") ; dig
2745 ("iproute2" ,iproute) ; ip
2746 ("kmod" ,kmod) ; modinfo
2747 ("lm-sensors" ,lm-sensors)
2748 ("mesa-utils" ,mesa-utils)
2749 ("pciutils" ,pciutils)
2753 ("util-linux" ,util-linux) ; lsblk
2754 ("usbutils" ,usbutils) ; lsusb
2756 ("xdpyinfo" ,xdpyinfo)
2759 ("coreutils" ,coreutils) ; uptime
2760 ("inetutils" ,inetutils) ; ifconfig
2761 ("perl-cpanel-json-xs" ,perl-cpanel-json-xs)
2762 ("perl-http-tiny" ,perl-http-tiny)
2763 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
2764 ("perl-json-xs" ,perl-json-xs)
2765 ("perl-time-hires" ,perl-time-hires)
2766 ;; TODO: Add more inputs:
2771 ,@(package-inputs inxi-minimal)))))