1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
4 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014, 2015, 2016, 2017 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 ng0 <contact.ng0@cryptolab.net>
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>
22 ;;; This file is part of GNU Guix.
24 ;;; GNU Guix is free software; you can redistribute it and/or modify it
25 ;;; under the terms of the GNU General Public License as published by
26 ;;; the Free Software Foundation; either version 3 of the License, or (at
27 ;;; your option) any later version.
29 ;;; GNU Guix is distributed in the hope that it will be useful, but
30 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
31 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 ;;; GNU General Public License for more details.
34 ;;; You should have received a copy of the GNU General Public License
35 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
37 (define-module (gnu packages admin)
38 #:use-module ((guix licenses) #:prefix license:)
39 #:use-module (guix packages)
40 #:use-module (guix utils)
41 #:use-module (guix download)
42 #:use-module (guix git-download)
43 #:use-module (guix build-system cmake)
44 #:use-module (guix build-system gnu)
45 #:use-module (guix build-system python)
46 #:use-module (guix build-system trivial)
47 #:use-module (gnu packages)
48 #:use-module (gnu packages base)
49 #:use-module (gnu packages check)
50 #:use-module (gnu packages cyrus-sasl)
51 #:use-module (gnu packages ncurses)
52 #:use-module (gnu packages readline)
53 #:use-module (gnu packages linux)
54 #:use-module (gnu packages lua)
55 #:use-module (gnu packages guile)
56 #:use-module (gnu packages gettext)
57 #:use-module (gnu packages pcre)
58 #:use-module (gnu packages perl)
59 #:use-module (gnu packages perl-check)
60 #:use-module (gnu packages tcl)
61 #:use-module (gnu packages compression)
62 #:use-module (gnu packages cross-base)
63 #:use-module (gnu packages tls)
64 #:use-module (gnu packages gnupg)
65 #:use-module (gnu packages bison)
66 #:use-module (gnu packages flex)
67 #:use-module (gnu packages glib)
68 #:use-module (gnu packages openldap)
69 #:use-module (gnu packages mcrypt)
70 #:use-module (gnu packages pkg-config)
71 #:use-module (gnu packages popt)
72 #:use-module (gnu packages python)
73 #:use-module (gnu packages python-crypto)
74 #:use-module (gnu packages python-web)
75 #:use-module (gnu packages texinfo)
76 #:use-module (gnu packages groff)
77 #:use-module (gnu packages pciutils)
78 #:use-module (gnu packages libunwind)
79 #:use-module (gnu packages libusb)
80 #:use-module (gnu packages libftdi)
81 #:use-module (gnu packages image)
82 #:use-module (gnu packages xorg)
83 #:use-module (gnu packages xdisorg)
84 #:use-module (gnu packages man)
85 #:use-module (gnu packages autotools)
86 #:use-module (gnu packages gnome)
87 #:use-module (gnu packages kerberos)
88 #:use-module (gnu packages gtk)
89 #:use-module (gnu packages xml))
97 (uri (string-append "mirror://sourceforge/aide/aide/"
98 version "/aide-" version ".tar.gz"))
101 "0ibkv4z2gk14fn014kq13rp2ysiq6nn2cflv2q5i7zf466hm6758"))))
102 (build-system gnu-build-system)
107 `(("libgcrypt" ,libgcrypt)
108 ("libgpg-error" ,libgpg-error)
109 ("libmhash" ,libmhash)
112 (synopsis "File and directory integrity checker")
114 "AIDE (Advanced Intrusion Detection Environment) is a file and directory
115 integrity checker. It creates a database from the regular expression rules
116 that it finds from its configuration files. Once this database is initialized
117 it can be used to verify the integrity of the files. It has several message
118 digest algorithms that are used to check the integrity of files. All of the
119 usual file attributes can be checked for inconsistencies.")
120 (home-page "http://aide.sourceforge.net/")
121 (license license:gpl2+)))
123 (define-public progress
129 (uri (string-append "https://github.com/Xfennec/"
130 name "/archive/v" version ".tar.gz"))
132 (base32 "199rk6608q9m6l0fbjm0xl2w1c5krf8245dqnksdp4rqp7l9ak06"))
133 (file-name (string-append name "-" version ".tar.gz"))))
134 (build-system gnu-build-system)
136 `(("pkg-config" ,pkg-config)
139 `(("ncurses" ,ncurses)))
141 `(#:tests? #f ; There is no test suite.
142 #:make-flags (list "CC=gcc"
143 (string-append "PREFIX=" (assoc-ref %outputs "out")))
145 (modify-phases %standard-phases
146 (delete 'configure)))) ; There's no configure phase.
147 (home-page "https://github.com/Xfennec/progress")
148 (synopsis "Program to view the progress of the coreutils commands")
149 (description "A program that looks for coreutils basic commands (cp, mv,
150 dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
151 the percentage of copied data. It can also show estimated time and throughput,
152 and provides a \"top-like\" mode (monitoring).")
153 (license license:gpl3+)))
155 (define-public shepherd
161 (uri (string-append "ftp://alpha.gnu.org/gnu/dmd/shepherd-"
165 "174q1qg7yg6w1hfvlfv720hr6hid4h5xzw15y3ycfpspllzldhcb"))
166 (patches (search-patches "shepherd-close-fds.patch"))))
167 (build-system gnu-build-system)
169 '(#:configure-flags '("--localstatedir=/var")))
171 `(("pkg-config" ,pkg-config)
173 ;; This is the Guile we use as a cross-compiler...
174 ("guile" ,guile-2.2)))
176 ;; ... and this is the one that appears in shebangs when cross-compiling.
177 `(("guile" ,guile-2.2)))
178 (synopsis "System service manager")
180 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
181 the execution of system services, replacing similar functionality found in
182 typical init systems. It provides dependency-handling through a convenient
183 interface and is based on GNU Guile.")
184 (license license:gpl3+)
185 (home-page "https://www.gnu.org/software/shepherd/")
186 (properties '((ftp-server . "alpha.gnu.org")))))
196 "http://projects.gw-computing.net/attachments/download/79/dfc-"
200 "0zk1ppx93ijimf4sbgqilxxikpsa2gmpbynknyh41xy7jbdjxp0b"))))
201 (build-system cmake-build-system)
202 (arguments '(#:tests? #f)) ; There are no tests.
203 (native-inputs `(("gettext" ,gettext-minimal)))
204 (home-page "http://projects.gw-computing.net/projects/dfc")
205 (synopsis "Display file system space usage using graphs and colors")
207 "dfc (df color) is a modern version of df. It uses colors, draws pretty
208 graphs and can export its output to different formats.")
209 (license license:bsd-3)))
217 (uri (string-append "http://hisham.hm/htop/releases/"
218 version "/htop-" version ".tar.gz"))
221 "11zlwadm6dpkrlfvf3z3xll26yyffa7qrxd1w72y1kl0rgffk6qp"))))
222 (build-system gnu-build-system)
224 `(("ncurses" ,ncurses)))
225 (home-page "http://htop.sourceforge.net/")
226 (synopsis "Interactive process viewer")
228 "This is htop, an interactive process viewer. It is a text-mode
229 application (for console or X terminals) and requires ncurses.")
230 (license license:gpl2)))
239 (uri (string-append "mirror://gnu/pies/pies-"
243 "12r7rjjyibjdj08dvwbp0iflfpzl4s0zhn6cr6zj3hwf9gbzgl1g"))))
244 (build-system gnu-build-system)
246 '(#:phases (modify-phases %standard-phases
247 (add-before 'build 'patch-/bin/sh
248 (lambda* (#:key inputs #:allow-other-keys)
249 ;; Use the right shell when executing user-provided
251 (let ((bash (assoc-ref inputs "bash")))
252 (substitute* "src/progman.c"
254 (string-append "\"" bash "/bin/sh\"")))
256 (home-page "https://www.gnu.org/software/pies/")
257 (synopsis "Program invocation and execution supervisor")
259 "GNU pies is a program that supervises the invocation and execution of
260 other programs. It reads the list of programs to be started from its
261 configuration file, executes them, and then monitors their status,
262 re-executing them as necessary.")
263 (license license:gpl3+)))
265 (define-public inetutils
271 (uri (string-append "mirror://gnu/inetutils/inetutils-"
275 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
276 (build-system gnu-build-system)
278 `(#:configure-flags '("--localstatedir=/var"
280 ;; Make sure 'PATH_PROCNET_DEV' gets defined when
281 ;; cross-compiling (by default it does not.)
282 ,@(if (%current-target-system)
283 '("--with-path-procnet-dev=/proc/net/dev")
285 ;; On some systems, 'libls.sh' may fail with an error such as:
286 ;; "Failed to tell switch -a apart from -A".
287 #:parallel-tests? #f))
288 (inputs `(("ncurses" ,ncurses)
289 ("readline" ,readline))) ;for 'ftp'
290 (native-inputs `(("netstat" ,net-tools))) ;for tests
291 (home-page "https://www.gnu.org/software/inetutils/")
292 (synopsis "Basic networking utilities")
294 "Inetutils is a collection of common network programs, such as an ftp
295 client and server, a telnet client and server, an rsh client and server, and
297 (license license:gpl3+)))
299 (define-public shadow
306 "https://github.com/shadow-maint/shadow/releases/"
307 "download/" version "/shadow-" version ".tar.xz"))
310 "0hdpai78n63l3v3fgr3kkiqzhd0awrpfnnzz4mf7lmxdh61qb37w"))))
311 (build-system gnu-build-system)
313 `(;; Assume System V `setpgrp (void)', which is the default on GNU
314 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
316 '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
319 (modify-phases %standard-phases
320 (add-before 'build 'set-nscd-file-name
321 (lambda* (#:key inputs #:allow-other-keys)
322 ;; Use the right file name for nscd.
323 (let ((libc (assoc-ref inputs
324 ,(if (%current-target-system)
327 (substitute* "lib/nscd.c"
329 (string-append libc "/sbin/nscd"))))))
330 (add-after 'install 'remove-groups
331 (lambda* (#:key outputs #:allow-other-keys)
332 ;; Remove `groups', which is already provided by Coreutils.
333 (let* ((out (assoc-ref outputs "out"))
334 (bin (string-append out "/bin"))
335 (man (string-append out "/share/man")))
336 (delete-file (string-append bin "/groups"))
337 (for-each delete-file (find-files man "^groups\\."))
340 (inputs (if (string-contains (or (%current-target-system)
343 `(("linux-pam" ,linux-pam))
345 (home-page "http://pkg-shadow.alioth.debian.org/")
346 (synopsis "Authentication-related tools such as passwd, su, and login")
348 "Shadow provides a number of authentication-related tools, including:
349 login, passwd, su, groupadd, and useradd.")
351 ;; The `vipw' program is GPLv2+.
352 ;; libmisc/salt.c is public domain.
353 (license license:bsd-3)))
355 (define-public mingetty
361 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
362 version "/mingetty-" version ".tar.gz"))
365 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
366 (build-system gnu-build-system)
369 (modify-phases %standard-phases
371 (lambda* (#:key inputs outputs #:allow-other-keys)
372 (let* ((out (assoc-ref outputs "out"))
373 (man8 (string-append out "/share/man/man8"))
374 (sbin (string-append out "/sbin"))
375 (shadow (assoc-ref inputs "shadow"))
376 (login (string-append shadow "/bin/login")))
377 (substitute* "Makefile"
379 (string-append "SBINDIR = " out
382 (string-append "MANDIR = " out
383 "/share/man/man8\n")))
385 ;; Pick the right 'login' by default.
386 (substitute* "mingetty.c"
388 (string-append "\"" login "\"")))
393 #:tests? #f)) ; no tests
394 (inputs `(("shadow" ,shadow)))
396 (home-page "https://sourceforge.net/projects/mingetty")
397 (synopsis "Getty for the text console")
399 "Small console getty that is started on the Linux text console,
400 asks for a login name and then transfers over to 'login'. It is extended to
401 allow automatic login and starting any app.")
402 (license license:gpl2+)))
404 (define-public net-base
411 "mirror://debian/pool/main/n/netbase/netbase_"
415 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
416 (build-system trivial-build-system)
418 `(#:modules ((guix build utils))
420 (use-modules (guix build utils)
423 (let* ((source (assoc-ref %build-inputs "source"))
424 (tar (assoc-ref %build-inputs "tar"))
425 (xz (assoc-ref %build-inputs "xz"))
426 (output (assoc-ref %outputs "out"))
427 (etc (string-append output "/etc")))
428 (setenv "PATH" (string-append xz "/bin"))
429 (system* (string-append tar "/bin/tar") "xvf"
431 (chdir ,(string-append "netbase-" version))
434 '("etc-services" "etc-protocols" "etc-rpc")
435 (map (cut string-append etc "/" <>)
436 '("services" "protocols" "rpc")))
438 (native-inputs `(("tar" ,tar)
440 (synopsis "IANA protocol, port, and RPC number assignments")
442 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
443 files, which contain information about the IANA-assigned port, protocol, and
445 (home-page "http://packages.debian.org/sid/netbase")
446 (license license:gpl2)))
448 (define-public netcat
454 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
455 "/netcat-" version ".tar.bz2"))
458 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
459 (build-system gnu-build-system)
462 ;; By default, man and info pages are put in PREFIX/{man,info},
463 ;; but we want them in PREFIX/share/{man,info}.
464 (let ((out (assoc-ref %outputs "out")))
465 (list (string-append "--mandir=" out "/share/man")
466 (string-append "--infodir=" out "/share/info")))))
467 (home-page "http://netcat.sourceforge.net")
468 (synopsis "Read and write data over TCP/IP")
470 "Netcat is a featured networking utility which reads and writes data
471 across network connections, using the TCP/IP protocol. It is designed to be a
472 reliable \"back-end\" tool that can be used directly or easily driven by other
473 programs and scripts. At the same time, it is a feature-rich network debugging
474 and exploration tool, since it can create almost any kind of connection you
475 would need and has several interesting built-in capabilities.")
476 (license license:gpl2+)))
484 (uri (string-append "mirror://gnu/alive/alive-"
488 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
489 (build-system gnu-build-system)
490 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
491 (inputs `(("guile" ,guile-2.0)
492 ("inetutils" ,inetutils)))
493 (home-page "https://www.gnu.org/software/alive/")
494 (synopsis "Autologin and keep-alive daemon")
496 "GNU Alive sends periodic pings to a server, generally to keep a
498 (license license:gpl3+)))
500 (define-public isc-dhcp
501 (let* ((bind-major-version "9")
502 (bind-minor-version "9")
503 (bind-patch-version "10")
504 (bind-release-type "-P") ; for patch release, use "-P"
505 (bind-release-version "3") ; for patch release, e.g. "6"
506 (bind-version (string-append bind-major-version
512 bind-release-version)))
518 (uri (string-append "http://ftp.isc.org/isc/dhcp/"
519 version "/dhcp-" version ".tar.gz"))
522 "0m7rwxvpb7xrmfl9ynpckhl0hi0xgm9bq1fmbp2r68sxy5mr75gb"))))
523 (build-system gnu-build-system)
525 `(#:parallel-build? #f
527 (modify-phases %standard-phases
528 (add-after 'unpack 'replace-bundled-bind
529 (lambda* (#:key inputs #:allow-other-keys)
530 (delete-file "bind/bind.tar.gz")
531 (copy-file (assoc-ref inputs "bind-source-tarball")
533 (chmod "bind/bind.tar.gz" #o644)
534 (substitute* "bind/version.tmp"
536 (format #f "MAJORVER=~a\n" ,bind-major-version))
538 (format #f "MINORVER=~a\n" ,bind-minor-version))
540 (format #f "PATCHVER=~a\n" ,bind-patch-version))
542 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
544 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
546 (add-after 'configure 'post-configure
547 (lambda* (#:key outputs #:allow-other-keys)
548 ;; Point to the right client script, which will be
549 ;; installed in a later phase.
550 (substitute* "includes/dhcpd.h"
551 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
552 (let ((out (assoc-ref outputs "out")))
553 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
554 out "/libexec/dhclient-script"
557 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
558 ;; we must patch shebangs in there and make sure the right
560 (with-directory-excursion "bind"
561 (substitute* "Makefile"
563 (let ((sh (which "sh")))
564 (string-append "./configure CONFIG_SHELL="
567 (let ((bind-directory (string-append "bind-" ,bind-version)))
568 (system* "tar" "xf" "bind.tar.gz")
569 (for-each patch-shebang
570 (find-files bind-directory ".*"))
571 (zero? (system* "tar" "cf" "bind.tar.gz"
573 ;; avoid non-determinism in the archive
577 "--group=root:0"))))))
578 (add-after 'install 'post-install
579 (lambda* (#:key inputs outputs #:allow-other-keys)
580 ;; Install the dhclient script for GNU/Linux and make sure
581 ;; if finds all the programs it needs.
582 (let* ((out (assoc-ref outputs "out"))
583 (libexec (string-append out "/libexec"))
584 (coreutils (assoc-ref inputs "coreutils"))
585 (inetutils (assoc-ref inputs "inetutils"))
586 (net-tools (assoc-ref inputs "net-tools"))
587 (sed (assoc-ref inputs "sed")))
588 (substitute* "client/scripts/linux"
590 (string-append (assoc-ref inputs "iproute")
594 (copy-file "client/scripts/linux"
595 (string-append libexec "/dhclient-script"))
598 (string-append libexec "/dhclient-script")
601 (string-append dir "/bin:"
603 (list inetutils net-tools coreutils sed))))))))))
605 (native-inputs `(("perl" ,perl)))
607 (inputs `(("inetutils" ,inetutils)
608 ("net-tools" ,net-tools)
611 ;; XXX isc-dhcp bundles a copy of bind that has security
612 ;; flaws, so we use a newer version.
613 ("bind-source-tarball"
616 (uri (string-append "http://ftp.isc.org/isc/bind9/"
618 "/bind-" bind-version ".tar.gz"))
621 "00yh1d5shrq7y0kfwacax4f8dc0akaa2fha430j92n7mshms65m1"))))
623 ;; When cross-compiling, we need the cross Coreutils and sed.
624 ;; Otherwise just use those from %FINAL-INPUTS.
625 ,@(if (%current-target-system)
626 `(("coreutils" ,coreutils)
630 (home-page "http://www.isc.org/products/DHCP/")
631 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
633 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
634 reference implementation of all aspects of DHCP, through a suite of DHCP
635 tools: server, client, and relay agent.")
636 (license license:isc)
637 (properties '((cpe-name . "dhcp"))))))
639 (define-public libpcap
645 (uri (string-append "http://www.tcpdump.org/release/libpcap-"
649 "07jlhc66z76dipj4j5v3dig8x6h3k6cb36kmnmpsixf3zmlvqgb7"))))
650 (build-system gnu-build-system)
651 (native-inputs `(("bison" ,bison) ("flex" ,flex)))
652 (arguments '(#:configure-flags '("--with-pcap=linux")
653 #:tests? #f)) ; no 'check' target
654 (home-page "http://www.tcpdump.org")
655 (synopsis "Network packet capture library")
657 "libpcap is an interface for user-level packet capture. It provides a
658 portable framework for low-level network monitoring. Applications include
659 network statistics collection, security monitoring, network debugging, etc.")
661 ;; fad-*.c and a couple other files are BSD-4, but the rest is BSD-3.
662 (license license:bsd-3)))
664 (define-public tcpdump
670 (uri (string-append "http://www.tcpdump.org/release/tcpdump-"
674 "0ygy0layzqaj838r5xd613iraz09wlfgpyh7pc6cwclql8v3b2vr"))))
675 (build-system gnu-build-system)
676 (inputs `(("libpcap" ,libpcap)
677 ("openssl" ,openssl)))
678 (native-inputs `(("perl" ,perl))) ; for tests
679 (home-page "http://www.tcpdump.org/")
680 (synopsis "Network packet analyzer")
682 "Tcpdump is a command-line tool to analyze network traffic passing
683 through the network interface controller.")
684 (license license:bsd-3)))
686 (define-public jnettop
692 (uri (string-append "http://jnettop.kubs.info/dist/jnettop-"
696 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
697 (build-system gnu-build-system)
699 `(("pkg-config" ,pkg-config)))
703 ("libpcap" ,libpcap)))
704 (home-page "http://jnettop.kubs.info/")
705 (synopsis "Visualize network traffic by bandwidth use")
707 "Jnettop is a traffic visualiser, which captures traffic going
708 through the host it is running from and displays streams sorted
709 by bandwidth they use.")
710 (license license:gpl2+)))
712 (define-public clusterssh
718 (uri (string-append "mirror://sourceforge/clusterssh/"
719 "1.%20ClusterSSH%20Series%203/" version
720 "/clusterssh-" version ".tar.gz"))
723 "1bwggpvaj2al5blg1ynapviv2kpydffpzq2zkhi81najnvzc1rr7"))))
724 (build-system gnu-build-system)
725 (inputs `(("perl" ,perl)))
726 (propagated-inputs `(("xterm" ,xterm)
728 ("perl-x11-protocol" ,perl-x11-protocol)))
731 (modify-phases %standard-phases
732 (add-after 'install 'set-load-paths
733 (lambda* (#:key inputs outputs #:allow-other-keys)
734 ;; Put the perl-tk and perl-x11-protocol modules in the perl inc
736 (let* ((out (assoc-ref outputs "out"))
737 (prog (string-append out "/bin/cssh"))
738 (perl-ver ,(package-version perl))
739 (x11-inc (string-append
740 (assoc-ref inputs "perl-x11-protocol")
741 "/lib/perl5/site_perl/" perl-ver))
742 (tk-inc (string-append
743 (assoc-ref inputs "perl-tk")
744 "/lib/perl5/site_perl/" perl-ver
748 `("PERL5LIB" ":" prefix (,x11-inc ,tk-inc))))
750 ;; The clusterssh.sourceforge.net address requires login to view
751 (home-page "https://sourceforge.net/projects/clusterssh/")
752 (synopsis "Secure concurrent multi-server terminal control")
754 "ClusterSSH controls a number of xterm windows via a single graphical
755 console window to allow commands to be interactively run on multiple servers
756 over ssh connections.")
757 (license license:gpl2+)))
759 (define-public rottlog
765 (uri (string-append "mirror://gnu/rottlog/rottlog-"
769 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
770 (modules '((guix build utils)))
772 '(substitute* "Makefile.in"
773 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
774 ;; Don't try to chown root.
776 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
777 ;; Don't attempt to create /var/lib/rottlog.
779 (build-system gnu-build-system)
781 '(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
782 "--localstatedir=/var")
784 ;; Install example config files in OUT/etc.
785 #:make-flags (list (string-append "ROTT_ETCDIR="
786 (assoc-ref %outputs "out")
789 #:phases (modify-phases %standard-phases
790 (add-after 'unpack 'patch-paths
793 (("/usr/sbin/sendmail") "sendmail"))
795 (add-after 'build 'set-packdir
797 ;; Set a default location for archived logs.
800 "packdir=\"/var/log\""))
802 (add-before 'install 'tweak-rc-weekly
804 (substitute* "rc/weekly"
808 ;; The file is called 'syslog.pid' (no 'd').
811 (add-after 'install 'install-info
813 (zero? (system* "make" "install-info")))))))
814 (native-inputs `(("texinfo" ,texinfo)
815 ("util-linux" ,util-linux))) ; for 'cal'
816 (home-page "https://www.gnu.org/software/rottlog/")
817 (synopsis "Log rotation and management")
819 "GNU Rot[t]log is a program for managing log files. It is used to
820 automatically rotate out log files when they have reached a given size or
821 according to a given schedule. It can also be used to automatically compress
822 and archive such logs. Rot[t]log will mail reports of its activity to the
823 system administrator.")
824 (license license:gpl3+)))
833 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
835 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
839 "0s33szq6q59v5s377l4v6ybsdy7pfq6sz7y364j4x09ssdn79ibl"))
840 (modules '((guix build utils)))
842 '(delete-file-recursively "lib/zlib"))))
843 (build-system gnu-build-system)
846 (list "--with-logpath=/var/log/sudo.log"
847 "--with-rundir=/var/run/sudo" ;must be cleaned up at boot time
848 "--with-vardir=/var/db/sudo"
849 "--with-iologdir=/var/log/sudo-io"
851 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
853 (string-append "CPPFLAGS=-D_PATH_MV='\""
854 (assoc-ref %build-inputs "coreutils")
857 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
861 (modify-phases %standard-phases
862 (add-before 'configure 'pre-configure
864 (substitute* "src/sudo_usage.h.in"
865 ;; Do not capture 'configure' arguments since we would
866 ;; unduly retain references, and also because the
867 ;; CPPFLAGS above would close the string literal
869 (("@CONFIGURE_ARGS@") "\"\""))
870 (substitute* (find-files "." "Makefile\\.in")
871 (("-o [[:graph:]]+ -g [[:graph:]]+")
872 ;; Allow installation as non-root.
874 (("^install: (.*)install-sudoers(.*)" _ before after)
875 ;; Don't try to create /etc/sudoers.
876 (string-append "install: " before after "\n"))
877 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
878 ;; Don't try to create /run/sudo.
880 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
881 ;; Don't try to create /var/db/sudo.
885 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
886 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
890 ("linux-pam" ,linux-pam)
892 ("coreutils" ,coreutils)))
893 (home-page "https://www.sudo.ws/")
894 (synopsis "Run commands as root")
896 "Sudo (su \"do\") allows a system administrator to delegate authority to
897 give certain users (or groups of users) the ability to run some (or all)
898 commands as root or another user while providing an audit trail of the
899 commands and their arguments.")
901 ;; See <http://www.sudo.ws/sudo/license.html>.
902 (license license:x11)))
904 (define-public wpa-supplicant-minimal
906 (name "wpa-supplicant-minimal")
911 "http://w1.fi/releases/wpa_supplicant-"
914 (patches (search-patches "wpa-supplicant-CVE-2017-13082.patch"
915 "wpa-supplicant-fix-key-reuse.patch"
916 "wpa-supplicant-fix-zeroed-keys.patch"
917 "wpa-supplicant-fix-nonce-reuse.patch"
918 "wpa-supplicant-krack-followups.patch"))
921 "0l0l5gz3d5j9bqjsbjlfcv4w4jwndllp9fmyai4x9kg6qhs6v4xl"))))
922 (build-system gnu-build-system)
925 (modify-phases %standard-phases
927 (lambda* (#:key outputs #:allow-other-keys)
928 (chdir "wpa_supplicant")
929 (copy-file "defconfig" ".config")
930 (let ((port (open-file ".config" "al")))
932 CONFIG_DEBUG_SYSLOG=y
934 # Choose GnuTLS (the default is OpenSSL.)
937 CONFIG_DRIVER_NL80211=y
938 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
940 CONFIG_READLINE=y\n" port)
942 (add-after 'install 'install-man-pages
943 (lambda* (#:key outputs #:allow-other-keys)
944 (let* ((out (assoc-ref outputs "out"))
945 (man (string-append out "/share/man"))
946 (man5 (string-append man "/man5"))
947 (man8 (string-append man "/man8")))
948 (define (copy-man-page target)
950 (install-file file target)))
952 (mkdir-p man5) (mkdir man8)
953 (for-each (copy-man-page man5)
954 (find-files "doc/docbook" "\\.5"))
955 (for-each (copy-man-page man8)
956 (find-files "doc/docbook" "\\.8"))
959 #:make-flags (list "CC=gcc"
960 (string-append "BINDIR=" (assoc-ref %outputs "out")
962 (string-append "LIBDIR=" (assoc-ref %outputs "out")
966 `(("readline" ,readline)
969 ("libgcrypt" ,libgcrypt))) ;needed by crypto_gnutls.c
971 `(("pkg-config" ,pkg-config)))
972 (home-page "http://w1.fi/wpa_supplicant/")
973 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
975 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
976 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
977 the client stations. It implements key negotiation with a WPA Authenticator
978 and it controls the roaming and IEEE 802.11 authentication/association of the
981 This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
983 ;; In practice, this is linked against Readline, which makes it GPLv3+.
984 (license license:bsd-3)))
986 (define-public wpa-supplicant
987 (package (inherit wpa-supplicant-minimal)
988 (name "wpa-supplicant")
989 (inputs `(("dbus" ,dbus)
990 ,@(package-inputs wpa-supplicant-minimal)))
992 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
994 `(modify-phases ,phases
995 (add-after 'configure 'configure-for-dbus
997 (let ((port (open-file ".config" "al")))
999 CONFIG_CTRL_IFACE_DBUS=y
1000 CONFIG_CTRL_IFACE_DBUS_NEW=y
1001 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
1004 (add-after 'install-man-pages 'install-dbus-conf
1005 (lambda* (#:key outputs #:allow-other-keys)
1006 (let* ((out (assoc-ref outputs "out"))
1007 (dir (string-append out "/etc/dbus-1/system.d")))
1009 (copy-file "dbus/dbus-wpa_supplicant.conf"
1010 (string-append dir "/wpa_supplicant.conf")))
1013 (define-public wakelan
1020 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
1024 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
1025 (build-system gnu-build-system)
1028 (modify-phases %standard-phases
1030 (lambda* (#:key outputs #:allow-other-keys)
1031 (let ((out (assoc-ref outputs "out")))
1032 (mkdir-p (string-append out "/bin"))
1033 (mkdir-p (string-append out "/share/man/man1"))
1035 ;; It's an old configure script that doesn't understand
1036 ;; the extra options we pass.
1037 (setenv "CONFIG_SHELL" (which "bash"))
1039 (system* "./configure"
1040 (string-append "--prefix=" out)
1041 (string-append "--mandir=" out
1044 (home-page "http://kernel.org") ; really, no home page
1045 (synopsis "Send a wake-on-LAN packet")
1047 "WakeLan broadcasts a properly formatted UDP packet across the local area
1048 network, which causes enabled computers to power on.")
1049 (license license:gpl2+)))
1051 (define-public dmidecode
1058 "mirror://savannah/dmidecode/dmidecode-"
1062 "0iby0xfk5x3cdr0x0gxj5888jjyjhafvaq0l79civ73jjfqmphvy"))))
1063 (build-system gnu-build-system)
1065 '(#:phases (modify-phases %standard-phases (delete 'configure))
1066 #:tests? #f ; no 'check' target
1067 #:make-flags (list (string-append "prefix="
1068 (assoc-ref %outputs "out")))))
1069 (home-page "http://www.nongnu.org/dmidecode/")
1070 (synopsis "Read hardware information from the BIOS")
1072 "Dmidecode reports information about your system's hardware as described
1073 in your system BIOS according to the SMBIOS/DMI standard. This typically
1074 includes system manufacturer, model name, serial number, BIOS version, asset
1075 tag as well as a lot of other details of varying level of interest and
1076 reliability depending on the manufacturer. This will often include usage
1077 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1078 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1079 (license license:gpl2+)))
1081 (define-public acpica
1084 (version "20171110")
1088 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1092 "08g83qvhfx04vzb3f3pfpkp0w601v6csjzdv7z1vjzz1k71h7yml"))))
1093 (build-system gnu-build-system)
1094 (native-inputs `(("flex" ,flex)
1097 '(#:make-flags (list (string-append "PREFIX=" %output)
1100 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1101 #:tests? #f ; no 'check' target.
1102 #:phases (modify-phases %standard-phases (delete 'configure))))
1103 (home-page "https://acpica.org/")
1104 (synopsis "Tools for the development and debug of ACPI tables")
1106 "The ACPI Component Architecture (@dfn{ACPICA}) project provides an
1107 OS-independent reference implementation of the Advanced Configuration and
1108 Power Interface Specification (@dfn{ACPI}). ACPICA code contains those portions
1109 of ACPI meant to be directly integrated into the host OS as a kernel-resident
1110 subsystem, and a small set of tools to assist in developing and debugging ACPI
1111 tables. This package contains only the user-space tools needed for ACPI table
1112 development, not the kernel implementation of ACPI.")
1113 (license license:gpl2))) ; Dual GPLv2/ACPICA Licence
1115 (define-public stress
1121 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1122 version ".orig.tar.gz"))
1125 "1v9vnzlihqfjsxa93hdbrq72pqqk00dkylmlg8jpxhm7s1w9qfl1"))))
1126 (build-system gnu-build-system)
1127 (home-page "http://packages.debian.org/wheezy/stress")
1128 (synopsis "Impose load on and stress test a computer system")
1130 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
1131 or disk stress on a POSIX-compliant operating system and reports any errors it
1134 Stress is not a benchmark. It is a tool used by system administrators to
1135 evaluate how well their systems will scale, by kernel programmers to evaluate
1136 perceived performance characteristics, and by systems programmers to expose
1137 the classes of bugs which only or more frequently manifest themselves when the
1138 system is under heavy load.")
1139 (license license:gpl2+)))
1141 (define-public detox
1147 (uri (string-append "mirror://sourceforge/detox/detox/" version
1148 "/detox-" version ".tar.bz2"))
1151 "1y6vvjqsg54kl49cry73jbfhr04s7wjs779vrr9zrq6kww7dkymb"))))
1152 (build-system gnu-build-system)
1153 ;; Both flex and popt are used in this case for their runtime libraries
1154 ;; (libfl and libpopt).
1159 `(#:configure-flags `(,(string-append "--with-popt="
1160 (assoc-ref %build-inputs "popt")))
1161 #:tests? #f)) ;no 'check' target
1162 (home-page "http://detox.sourceforge.net")
1163 (synopsis "Clean up file names")
1165 "Detox is a program that renames files to make them easier to work with
1166 under Unix and related operating systems. Spaces and various other unsafe
1167 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1168 characters can be replaced as well, as can UTF-8 characters.")
1169 (license license:bsd-3)))
1171 (define-public testdisk
1177 (uri (string-append "http://www.cgsecurity.org/testdisk-"
1178 version ".tar.bz2"))
1181 "0ba4wfz2qrf60vwvb1qsq9l6j0pgg81qgf7fh22siaz649mkpfq0"))))
1182 (build-system gnu-build-system)
1184 `(("ntfs-3g" ,ntfs-3g)
1185 ("util-linux" ,util-linux)
1186 ("openssl" ,openssl)
1187 ;; FIXME: add reiserfs
1189 ("e2fsprogs" ,e2fsprogs)
1190 ("libjpeg" ,libjpeg)
1191 ("ncurses" ,ncurses)))
1192 (home-page "http://www.cgsecurity.org/wiki/TestDisk")
1193 (synopsis "Data recovery tool")
1195 "TestDisk is a program for data recovery, primarily designed to help
1196 recover lost partitions and/or make non-booting disks bootable again.")
1197 (license license:gpl2+)))
1206 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1209 (base32 "04kviw799qxly08zb8n5mgxfd96gyis6x69q2qiw86jnh87c4mv9"))))
1210 (build-system gnu-build-system)
1212 '(#:phases (modify-phases %standard-phases (delete 'configure))
1213 #:tests? #f ; no check target
1214 #:make-flags (let ((out (assoc-ref %outputs "out")))
1215 (list (string-append "prefix=" out)))))
1216 (synopsis "Recursively list the contents of a directory")
1218 "Tree is a recursive directory listing command that produces a depth
1219 indented listing of files, which is colorized ala dircolors if the LS_COLORS
1220 environment variable is set and output is to tty.")
1221 (home-page "http://mama.indstate.edu/users/ice/tree/")
1222 (license license:gpl2+)))
1224 (define-public direvent
1230 (uri (string-append "mirror://gnu/direvent/direvent-"
1234 "1nwvjmx7kb14ni34c0b8x9a3791pc20gvhj7xaj66d8q4h6n0qf4"))
1235 (modules '((guix build utils)))
1236 (snippet '(substitute* "tests/testsuite"
1237 (("#![[:blank:]]?/bin/sh")
1239 (build-system gnu-build-system)
1242 (modify-phases %standard-phases
1243 (add-before 'build 'patch-/bin/sh
1244 (lambda* (#:key inputs #:allow-other-keys)
1245 ;; Use the right shell when executing the watcher and
1246 ;; user-provided shell commands.
1247 (let ((bash (assoc-ref inputs "bash")))
1248 (substitute* '("src/direvent.c" "src/progman.c")
1250 (string-append "\"" bash "/bin/sh\"")))
1252 ;; Adjust the 'shell.at' test accordingly.
1253 (substitute* "tests/testsuite"
1255 (string-append "SHELL=" bash "/bin/sh")))
1258 (home-page "https://www.gnu.org/software/direvent/")
1259 (synopsis "Daemon to monitor directories for events such as file removal")
1261 "A daemon that monitors directories for events, such as creating,
1262 deleting or modifying files. It can monitor different sets of directories for
1263 different events. When an event is detected, direvent calls a specified
1264 external program with information about the event, such as the location
1265 within the file system where it occurred. Thus, \"direvent\" provides an
1266 easy way to react immediately if given files undergo changes, for example, to
1267 track changes in important system configuration files.")
1268 (license license:gpl3+)))
1270 (define-public libcap-ng
1277 "http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1281 "0ssvnh4cvhya0c1j6k6192zvqcq7nc0x01fb5nwhr0prfqr0i8j8"))))
1282 (build-system gnu-build-system)
1283 (inputs `(("python" ,python)))
1284 (home-page "http://people.redhat.com/sgrubb/libcap-ng/")
1285 (synopsis "Library for more easily working with POSIX capabilities")
1287 "The libcap-ng library is intended to make programming with POSIX
1288 capabilities easier than the traditional libcap library. It includes
1289 utilities that can analyse all currently running applications and print out
1290 any capabilities and whether or not it has an open ended bounding set. The
1291 included utilities are designed to let admins and developers spot apps from
1292 various ways that may be running with too much privilege.")
1293 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1294 (license (list license:lgpl2.1+ license:gpl2+))))
1296 (define-public smartmontools
1298 (name "smartmontools")
1303 "mirror://sourceforge/smartmontools/smartmontools/"
1304 version "/smartmontools-" version ".tar.gz"))
1307 "0m1hllbb78rr6cxkbalmz1gqkl0psgq8rrmv4gwcmz34n07kvx2i"))))
1308 (build-system gnu-build-system)
1309 (inputs `(("libcap-ng" ,libcap-ng)))
1310 (home-page "https://www.smartmontools.org/")
1311 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1313 "The smartmontools package contains utility programs to control and
1314 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1315 Technology System (@dfn{S.M.A.R.T.}) built into most modern ATA and SCSI hard
1316 disks. In many cases, these utilities will provide advanced warning of disk
1317 degradation and failure.")
1318 (license license:gpl2+)))
1320 (define-public fdupes
1328 "https://github.com/adrianlopezroche/fdupes/archive/v"
1330 (file-name (string-append name "-" version ".tar.gz"))
1333 "1sj9pa40pbz6xdwbxfwhdhkvhdf1xc5gvggk9mdq26c41gdnyswx"))))
1334 (build-system gnu-build-system)
1336 '(#:phases (modify-phases %standard-phases
1337 (delete 'configure))
1338 #:tests? #f ; no 'check' target
1339 #:make-flags (list "CC=gcc"
1340 (string-append "PREFIX="
1341 (assoc-ref %outputs "out")))))
1342 (home-page "https://github.com/adrianlopezroche/fdupes")
1343 (synopsis "Identify duplicate files")
1345 "fdupes is a program for identifying duplicate files residing within
1346 specified directories.")
1347 (license license:expat)))
1349 (define-public graphios
1357 "https://pypi.python.org/packages/source/g/graphios/graphios-"
1361 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1362 (build-system python-build-system)
1364 ;; Be warned: Building with Python 3 succeeds, but the build process
1365 ;; throws a syntax error that is ignored.
1366 `(#:python ,python-2
1368 (modify-phases %standard-phases
1369 (add-before 'build 'fix-setup.py
1370 (lambda* (#:key outputs #:allow-other-keys)
1371 ;; Fix hardcoded, unprefixed file names.
1372 (let ((out (assoc-ref outputs "out")))
1373 (substitute* '("setup.py")
1374 (("/etc") (string-append out "/etc"))
1376 (("distro_ver = .*") "distro_ver = ''"))
1378 (home-page "https://github.com/shawn-sterling/graphios")
1379 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1381 "Graphios is a script to emit nagios perfdata to various upstream metrics
1382 processing and time-series systems. It's currently compatible with Graphite,
1383 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1384 of supported upstream metrics systems simultaneously.")
1385 (license license:gpl2+)))
1387 (define-public ansible
1394 (uri (pypi-uri "ansible" version))
1397 "0n3n9py4s3aykiii31xq8g4wmd6693jvby0424pjrg0bna01apri"))
1398 (patches (search-patches "ansible-wrap-program-hack.patch"))))
1399 (build-system python-build-system)
1401 `(("python2-pycrypto" ,python2-pycrypto)
1402 ("python2-httplib2" ,python2-httplib2)
1403 ("python2-passlib" ,python2-passlib)
1404 ("python2-nose" ,python2-nose)
1405 ("python2-mock" ,python2-mock)
1406 ("python2-jinja2" ,python2-jinja2)
1407 ("python2-pyyaml" ,python2-pyyaml)
1408 ("python2-paramiko" ,python2-paramiko)))
1410 `(("python2-pycrypto" ,python2-pycrypto)
1411 ("python2-jinja2" ,python2-jinja2)
1412 ("python2-pyyaml" ,python2-pyyaml)
1413 ("python2-paramiko" ,python2-paramiko)))
1415 `(#:python ,python-2)) ; incompatible with Python 3
1416 (home-page "https://www.ansible.com/")
1417 (synopsis "Radically simple IT automation")
1418 (description "Ansible is a radically simple IT automation system. It
1419 handles configuration management, application deployment, cloud provisioning,
1420 ad hoc task execution, and multinode orchestration---including trivializing
1421 things like zero-downtime rolling updates with load balancers.")
1422 (license license:gpl3+)))
1424 (define-public cpulimit
1431 (uri (string-append "https://github.com/opsengine/cpulimit/archive/v"
1433 (file-name (string-append name "-" version ".tar.gz"))
1436 "1nn2w849xd5bw4y5sqnll29nxdwl5h0cv4smc7dwmpb9qnd2ycb4"))))
1437 (build-system gnu-build-system)
1439 `(#:phases (modify-phases %standard-phases
1444 (zero? (system* "make" "CC=gcc" "-Csrc"))))
1448 (zero? (system* "make" "CC=gcc" "-Ctests"))))
1451 (lambda* (#:key outputs #:allow-other-keys)
1452 (let* ((out (assoc-ref outputs "out"))
1453 (bin (string-append out "/bin")))
1454 (install-file "src/cpulimit" bin)))))))
1455 (home-page "https://github.com/opsengine/cpulimit")
1456 (synopsis "Limit CPU usage")
1458 "Cpulimit limits the CPU usage of a process. It does not change the nice
1459 value or other scheduling priority settings, but the real CPU usage, and is
1460 able to adapt itself dynamically to the overall system load. Children
1461 processes and threads of the specified process may optionally share the same
1463 (license license:gpl2+)))
1465 (define-public autojump
1472 (uri (string-append "https://github.com/wting/autojump/archive/"
1473 "release-v" version ".tar.gz"))
1474 (file-name (string-append name "-" version ".tar.gz"))
1477 "113rcpr37ngf2xs8da41qdarq5qmj0dwx8ggqy3lhlb0kvqq7g9z"))))
1478 (build-system gnu-build-system)
1479 (native-inputs ;for tests
1480 `(("python-mock" ,python-mock)
1481 ("python-pytest" ,python-pytest)))
1483 `(("python" ,python-wrapper)))
1485 `(#:phases (modify-phases %standard-phases
1491 (system* "python" "tests/unit/autojump_utils_test.py"))))
1493 ;; The install.py script doesn't allow system installation
1494 ;; into an arbitrary prefix, so do our own install.
1495 (lambda* (#:key outputs #:allow-other-keys)
1496 (let* ((out (assoc-ref outputs "out"))
1497 (bin (string-append out "/bin"))
1498 (share (string-append out "/share/autojump"))
1499 (py (string-append out "/lib/python"
1500 ,(version-major+minor
1501 (package-version python-wrapper))
1503 (man (string-append out "/share/man/man1")))
1504 (install-file "bin/autojump" bin)
1505 (for-each (λ (f) (install-file f py))
1506 (find-files "bin" "\\.py$"))
1507 (for-each (λ (f) (install-file f share))
1508 (find-files "bin" "autojump\\..*$"))
1509 (substitute* (string-append share "/autojump.sh")
1510 (("/usr/local") out))
1511 (install-file "docs/autojump.1" man)
1512 (wrap-program (string-append bin "/autojump")
1513 `("PYTHONPATH" ":" prefix (,py)))
1515 (home-page "https://github.com/wting/autojump")
1516 (synopsis "Shell extension for file system navigation")
1518 "Autojump provides a faster way to navigate your file system, with a \"cd
1519 command that learns\". It works by maintaining a database of the directories
1520 you use the most from the command line and allows you to \"jump\" to
1521 frequently used directories by typing only a small pattern.")
1522 (license license:gpl3+)))
1524 (define-public iftop
1530 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
1531 "/iftop-" version ".tar.gz"))
1534 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
1535 (build-system gnu-build-system)
1537 `(("libpcap" ,libpcap)
1538 ("ncurses" ,ncurses)))
1539 (synopsis "Monitor network usage")
1540 (description "Iftop does for network usage what @command{top} does
1541 for CPU usage. It listens to network traffic on a named interface and
1542 displays a table of current bandwidth usage by pairs of hosts.")
1543 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
1544 (license license:gpl2+)))
1546 (define-public munge
1552 (uri (string-append "https://github.com/dun/munge/releases/"
1553 "download/munge-" version "/munge-"
1557 "1nj486bbg1adfg298zck96vgx57kchcypc1zdz1n7w540vyksxcr"))))
1559 `(("openssl" ,openssl)
1560 ("libgcrypt" ,libgcrypt)))
1561 (build-system gnu-build-system)
1562 (home-page "https://dun.github.io/munge/")
1563 (synopsis "Cluster computing authentication service")
1565 "Munge is an authentication service for creating and validating
1566 credentials. It allows a process to authenticate the UID and GID of another
1567 local or remote process within a group of hosts having common users and
1568 groups. These hosts form a security realm that is defined by a shared
1569 cryptographic key. Clients within this security realm can create and validate
1570 credentials without the use of root privileges, reserved ports, or
1571 platform-specific methods.")
1572 (license license:gpl3+)))
1574 (define-public audit
1580 (uri (string-append "http://people.redhat.com/sgrubb/audit/"
1581 "audit-" version ".tar.gz"))
1584 "1q1q51dvxscbi4kbakmd4bn0xrvwwaiwvaya79925cbrqwzxsg77"))))
1585 (build-system gnu-build-system)
1586 (home-page "http://people.redhat.com/sgrubb/audit/")
1588 `(#:configure-flags (list "--with-python=no")
1590 (modify-phases %standard-phases
1591 (add-after 'unpack 'fix-tests
1593 ;; In the build environmnte /etc/passwd does not contain an entry
1594 ;; for root/0, so we have to patch the expected value.
1595 (substitute* "auparse/test/auparse_test.ref"
1596 (("=0 \\(root\\)") "=0 (unknown(0))"))
1599 `(("openldap" ,openldap)
1601 ("sasl" ,cyrus-sasl)))
1602 (synopsis "User-space component to the Linux auditing system")
1604 "auditd is the user-space component to the Linux auditing system, which
1605 allows logging of system calls made by user-land processes. It's responsible
1606 for writing audit records to the disk. Viewing the logs is done with the
1607 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
1608 done with the @code{auditctl} utility.")
1609 (license license:gpl2+)))
1617 (uri (string-append "https://nmap.org/dist/nmap-" version
1621 "08bga42ipymmbxd7wy4x5sl26c0ir1fm3n9rc6nqmhx69z66wyd8"))
1622 (modules '((guix build utils)))
1624 '(map delete-file-recursively
1625 ;; Remove bundled lua, pcap, and pcre libraries.
1626 ;; FIXME: Remove bundled liblinear once packaged.
1630 ;; Remove pre-compiled binares.
1632 (build-system gnu-build-system)
1634 `(("openssl" ,openssl)
1635 ("libpcap" ,libpcap)
1639 ("python" ,python-2)))
1641 ;; TODO Add zenmap output.
1642 (outputs '("out" "ndiff"))
1644 '(#:configure-flags '("--without-zenmap")
1646 (modify-phases %standard-phases
1647 (add-after 'configure 'patch-Makefile
1649 (substitute* "Makefile"
1650 ;; Do not attempt to build lua.
1651 (("build-dnet build-lua") "build-dnet"))
1654 (lambda* (#:key outputs #:allow-other-keys)
1655 (define (make out . args)
1656 (unless (zero? (apply system* "make"
1657 (string-append "prefix=" out)
1659 (error "make failed")))
1660 (define (python-path dir)
1661 (string-append dir "/lib/python2.7/site-packages"))
1662 (let ((out (assoc-ref outputs "out"))
1663 (ndiff (assoc-ref outputs "ndiff")))
1664 (for-each mkdir-p (list out ndiff))
1670 (make ndiff "install-ndiff")
1671 (wrap-program (string-append ndiff "/bin/ndiff")
1672 `("PYTHONPATH" prefix
1673 (,(python-path ndiff)))))))
1674 ;; These are the tests that do not require network access.
1676 (lambda _ (zero? (system* "make"
1680 ;; Nmap can't cope with out-of-source building.
1681 #:out-of-source? #f))
1682 (home-page "https://nmap.org/")
1683 (synopsis "Network discovery and security auditing tool")
1685 "Nmap (\"Network Mapper\") is a network discovery and security auditing
1686 tool. It is also useful for tasks such as network inventory, managing service
1687 upgrade schedules, and monitoring host or service uptime. It also provides an
1688 advanced netcat implementation (ncat), a utility for comparing scan
1689 results (ndiff), and a packet generation and response analysis tool (nping).")
1690 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
1691 ;; both use a 3-clause BSD license.
1692 (license (list license:nmap license:bsd-3))))
1694 (define-public dstat
1701 "https://github.com/dagwieers/dstat/archive/"
1703 (file-name (string-append "dstat-" version ".tar.gz"))
1706 "16286z3y2lc9nsq8njzjkv6k2vyxrj9xiixj1k3gnsbvhlhkirj6"))))
1707 (build-system gnu-build-system)
1709 `(#:tests? #f ;; no make check
1710 #:make-flags (let ((out (assoc-ref %outputs "out")))
1711 (list (string-append "DESTDIR=" out)
1713 ;; no configure script
1714 #:phases (modify-phases %standard-phases (delete 'configure))))
1715 (inputs `(("python-2" ,python-2)))
1716 (synopsis "Versatile resource statistics tool")
1717 (description "Dstat is a versatile replacement for @command{vmstat},
1718 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
1719 some of their limitations and adds some extra features, more counters and
1720 flexibility. Dstat is handy for monitoring systems during performance tuning
1721 tests, benchmarks or troubleshooting.
1723 Dstat allows you to view all of your system resources in real-time, you can,
1724 e.g., compare disk utilization in combination with interrupts from your IDE
1725 controller, or compare the network bandwidth numbers directly with the disk
1726 throughput (in the same interval).")
1727 (home-page "http://dag.wiee.rs/home-made/dstat/")
1728 (license license:gpl2+)))
1730 (define-public thefuck
1736 (uri (string-append "https://github.com/nvbn/thefuck/archive/"
1738 (file-name (string-append name "-" version ".tar.gz"))
1741 "191zbvkyc02h0wwd46xwj4zzg7jhlr8xv0ji6knqkgjnk0nvqq01"))
1742 (patches (search-patches "thefuck-test-environ.patch"))))
1743 (build-system python-build-system)
1746 (modify-phases %standard-phases
1748 (add-after 'install 'check
1749 (lambda* (#:key inputs outputs #:allow-other-keys)
1750 ;; Tests look for installed package
1751 (add-installed-pythonpath inputs outputs)
1752 ;; Some tests need write access to $HOME.
1753 (setenv "HOME" "/tmp")
1754 (zero? (system* "py.test" "-v")))))))
1756 `(("python-colorama" ,python-colorama)
1757 ("python-decorator" ,python-decorator)
1758 ("python-psutil" ,python-psutil)
1759 ("python-six" ,python-six)))
1761 `(("python-mock" ,python-mock)
1762 ("python-pytest" ,python-pytest)
1763 ("python-pytest-mock" ,python-pytest-mock)
1764 ;; Requires setuptools >= 17.1 due to some features used, while our
1765 ;; python currently only includes 12.0. TODO: Remove this input.
1766 ("python-setuptools" ,python-setuptools)))
1767 (home-page "https://github.com/nvbn/thefuck")
1768 (synopsis "Correct mistyped console command")
1770 "The Fuck tries to match a rule for a previous, mistyped command, creates
1771 a new command using the matched rule, and runs it.")
1772 (license license:x11)))
1781 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
1783 (base32 "0803lp8kd3mp1jcm17i019xiqxdy85hhs6xk67zib8gmvg500gcn"))))
1784 (build-system gnu-build-system)
1786 `(#:tests? #f ; Obscure test failures.
1788 (modify-phases %standard-phases
1790 (add-before 'build 'setup-environment
1791 (lambda* (#:key outputs #:allow-other-keys)
1793 (setenv "prefix" (assoc-ref outputs "out"))
1795 #:make-flags (list "--environment-overrides")))
1796 (home-page "https://www.gentoo.com/di/")
1797 (synopsis "Advanced df like disk information utility")
1799 "'di' is a disk information utility, displaying everything that your
1800 @code{df} command does and more. It features the ability to display your disk
1801 usage in whatever format you prefer. It is designed to be highly portable and
1802 produce uniform output across heterogeneous networks.")
1803 (license license:zlib)))
1805 (define-public cbatticon
1811 (uri (string-append "https://github.com/valr/"
1812 name "/archive/" version ".tar.gz"))
1815 "1s2n49ydh7pznnf02fak4yy0wqkgi9ag7yiw1zg1lhp4m0h37hyh"))
1816 (file-name (string-append name "-" version ".tar.gz"))))
1817 (build-system gnu-build-system)
1819 `(#:tests? #f ; no tests
1821 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1824 (modify-phases %standard-phases
1825 (delete 'configure)))) ; no configure script
1828 ("gettext" ,gettext-minimal)
1829 ("libnotify" ,libnotify)))
1831 `(("pkg-config" ,pkg-config)))
1832 (synopsis "Lightweight battery icon for the system tray")
1833 (description "cbatticon is a lightweight battery icon that displays
1834 the status of your battery in the system tray.")
1835 (home-page "https://github.com/valr/cbatticon")
1836 (license license:gpl2+)))
1838 (define-public interrobang
1839 (let ((revision "1")
1840 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
1842 (name "interrobang")
1843 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
1847 (url "https://github.com/TrilbyWhite/interrobang")
1849 (file-name (string-append name "-" version))
1852 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
1853 (build-system gnu-build-system)
1855 `(#:tests? #f ; no tests
1857 (modify-phases %standard-phases
1858 (delete 'configure)) ; no configure script
1859 #:make-flags (list (string-append "PREFIX="
1860 (assoc-ref %outputs "out")))))
1862 `(("libx11" ,libx11)))
1864 `(("pkg-config" ,pkg-config)))
1865 (synopsis "Scriptable launcher menu")
1866 (description "Interrobang is a scriptable launcher menu with a customizable
1867 shortcut syntax and completion options.")
1868 (home-page "https://github.com/TrilbyWhite/interrobang")
1869 (license license:gpl3+))))
1873 (define-public pam-krb5
1880 "https://archives.eyrie.org/software/kerberos/" name "-"
1884 "0abf8cfpkprmhw5ca8iyqgrggh65lgqvmfllc1y6qz7zw1gas894"))))
1885 (build-system gnu-build-system)
1888 (modify-phases %standard-phases
1889 (add-before 'configure 'disable-tests
1891 ;; The build container seems to interfere with some tests.
1892 (substitute* "tests/TESTS"
1893 (("module/basic\n") ""))
1894 (substitute* "tests/TESTS"
1895 (("pam-util/vector\n") ""))
1898 `(("linux-pam" ,linux-pam)
1899 ("mit-krb5" ,mit-krb5)))
1902 ("perl-test-pod" ,perl-test-pod))) ; required for tests
1903 (synopsis "Kerberos PAM module")
1905 "Pam-krb5 is a Kerberos PAM module for either MIT Kerberos or Heimdal.
1906 It supports ticket refreshing by screen savers, configurable
1907 authorization handling, authentication of non-local accounts for network
1908 services, password changing, and password expiration, as well as all the
1909 standard expected PAM features. It works correctly with OpenSSH, even
1910 with ChallengeResponseAuthentication and PrivilegeSeparation enabled,
1911 and supports extensive configuration either by PAM options or in
1912 krb5.conf or both. PKINIT is supported with recent versions of both MIT
1913 Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
1914 (home-page "http://www.eyrie.org/~eagle/software/pam-krb5")
1915 ;; Dual licenced under a homebrew non-copyleft OR GPL (any version)
1916 ;; However, the tarball does not contain a copy of the GPL, so unless
1917 ;; we put one in, we cannot distribute it under GPL without violating
1918 ;; clause requiring us to give all recipients a copy.
1919 (license license:gpl1+)))
1921 ;;http://archives.eyrie.org/software/kerberos/pam-krb5-4.7.tar.xz
1923 (define-public sunxi-tools
1925 (name "sunxi-tools")
1930 (uri (string-append "https://github.com/linux-sunxi/"
1931 "sunxi-tools/archive/v" version ".tar.gz"))
1933 (base32 "08iqwj95qw2s7ilhrdi2lkbc8dx64zk5lzz1qk587jr0lla81x41"))
1934 (modules '((guix build utils)))
1936 ;; Remove binaries contained in the tarball which are only for the
1937 ;; target and can be regenerated anyway.
1938 '(delete-file-recursively "bin"))
1939 (file-name (string-append name "-" version ".tar.gz"))))
1941 `(("pkg-config" ,pkg-config)
1942 ("cross-gcc" ,(cross-gcc "arm-linux-gnueabihf"
1943 #:xbinutils (cross-binutils "arm-linux-gnueabihf")
1944 #:libc (cross-libc "arm-linux-gnueabihf")))
1945 ("cross-libc" ,(cross-libc "arm-linux-gnueabihf"))))
1947 `(("libusb" ,libusb)))
1948 (build-system gnu-build-system)
1950 `(#:tests? #f ; no tests exist
1951 #:make-flags (list (string-append "PREFIX="
1952 (assoc-ref %outputs "out"))
1953 (string-append "CROSS_COMPILE="
1954 "arm-linux-gnueabihf-")
1957 (modify-phases %standard-phases
1959 (add-before 'build 'set-environment-up
1960 (lambda* (#:key make-flags #:allow-other-keys)
1962 (string-contains x "cross-arm-linux"))
1963 (setenv "CROSS_C_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))
1964 (setenv "CROSS_CPLUS_INCLUDE_PATH" (getenv "CPLUS_INCLUDE_PATH"))
1965 (setenv "CROSS_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
1968 (let* ((env-value (getenv env-name))
1969 (search-path (search-path-as-string->list env-value))
1970 (new-search-path (filter (lambda (e) (not (cross? e)))
1972 (new-env-value (list->search-path-as-string
1973 new-search-path ":")))
1974 (setenv env-name new-env-value)))
1975 '("C_INCLUDE_PATH" "CPLUS_INCLUDE_PATH" "LIBRARY_PATH"))
1978 (lambda* (#:key make-flags #:allow-other-keys)
1979 (zero? (apply system* "make" "tools" "misc" make-flags))))
1980 (add-after 'build 'build-armhf
1981 (lambda* (#:key make-flags #:allow-other-keys)
1982 (zero? (apply system* "make" "target-tools" make-flags))))
1984 (lambda* (#:key make-flags #:allow-other-keys)
1985 (zero? (apply system* "make" "install-all" "install-misc"
1987 (home-page "https://github.com/linux-sunxi/sunxi-tools")
1988 (synopsis "Hardware management tools for Allwinner computers")
1989 (description "This package contains tools for Allwinner devices:
1991 @item @command{sunxi-fexc}, @command{bin2fex}, @command{fex2bin}: Compile
1992 a textual description of a board (.fex) to a binary representation (.bin).
1993 @item @command{sunxi-fel}: Puts an Allwinner device into FEL mode which
1994 makes it register as a special USB device (rather than USB host).
1995 You can then connect it to another computer and flash it from there.
1996 @item @command{sunxi-nand-part}: Partitions NAND flash.
1997 @item @command{sunxi-bootinfo}: Reads out boot0 and boot1 (Allwinner
1998 bootloader) parameters.
1999 @item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
2000 in order to be able to find it.
2001 @item @command{sunxi-meminfo}: Prints memory bus settings.
2002 @item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
2004 (license license:gpl2+)))
2006 (define-public sedsed
2013 (uri (string-append "https://github.com/aureliojargas/sedsed/"
2014 "archive/v" version ".tar.gz"))
2015 (file-name (string-append name "-" version ".tar.gz"))
2018 "0139jkqvm8ipiwfj7k69ry2f9b1ffgpk79arpz4r7w9kf6h23bnh"))))
2019 (build-system python-build-system)
2021 `(#:tests? #f ; No tests.
2024 (modify-phases %standard-phases
2025 (add-after 'unpack 'patch-sed-in
2027 (substitute* "sedsed.py"
2029 (string-append "sedbin = '" (which "sed") "'")))
2033 (lambda* (#:key outputs #:allow-other-keys)
2034 (let* ((out (assoc-ref outputs "out"))
2035 (bin (string-append out "/bin")))
2036 ;; Just one file to copy around
2037 (install-file "sedsed.py" bin)
2039 (add-after 'install 'symlink
2040 ;; Create 'sedsed' symlink to "sedsed.py".
2041 (lambda* (#:key outputs #:allow-other-keys)
2042 (let* ((out (assoc-ref outputs "out"))
2043 (bin (string-append out "/bin"))
2044 (sed (string-append bin "/sedsed"))
2045 (sedpy (string-append bin "/sedsed.py")))
2048 (home-page "http://aurelio.net/projects/sedsed")
2049 (synopsis "Sed sed scripts")
2051 "@code{sedsed} can debug, indent, tokenize and HTMLize your sed(1) script.
2053 In debug mode it reads your script and add extra commands to it. When
2054 executed you can see the data flow between the commands, revealing all the
2055 magic sed does on its internal buffers.
2057 In indent mode your script is reformatted with standard spacing.
2059 In tokenize mode you can see the elements of every command you use.
2061 In HTMLize mode your script is converted to a beautiful colored HTML file,
2062 with all the commands and parameters identified for your viewing pleasure.
2064 With sedsed you can master any sed script. No more secrets, no more hidden
2066 (license license:expat)))
2068 (define-public intel-gpu-tools
2070 (name "intel-gpu-tools")
2074 (uri (string-append "https://cgit.freedesktop.org/xorg/app/"
2075 "intel-gpu-tools/snapshot/"
2076 "intel-gpu-tools-" version ".tar.gz"))
2079 "0w7djk0y5w76hzn1b3cm39zd5c6w9za1wfn80wd857h0v313rzq3"))))
2080 (build-system gnu-build-system)
2082 `(#:tests? #f ; many of the tests try to load kernel modules
2084 (modify-phases %standard-phases
2085 (add-after 'unpack 'autogen
2087 ;; Don't run configure in this phase
2088 (setenv "NOCONFIGURE" "1")
2089 (zero? (system* "sh" "autogen.sh")))))))
2091 `(("util-macros" ,util-macros)
2093 ("libpciaccess" ,libpciaccess)
2097 ("libunwind" ,libunwind)
2098 ("libxrandr" ,libxrandr)
2101 `(("autoconf" ,autoconf)
2102 ("automake" ,automake)
2103 ("libtool" ,libtool)
2104 ("pkg-config" ,pkg-config)))
2105 (home-page "https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/")
2106 (synopsis "Tools for development and testing of the Intel DRM driver")
2107 (description "Intel GPU Tools is a collection of tools for development and
2108 testing of the Intel DRM driver. There are many macro-level test suites that
2109 get used against the driver, including xtest, rendercheck, piglit, and
2110 oglconform, but failures from those can be difficult to track down to kernel
2111 changes, and many require complicated build procedures or specific testing
2112 environments to get useful results. Therefore, Intel GPU Tools includes
2113 low-level tools and tests specifically for development and testing of the
2115 (license license:expat)))
2117 (define-public fabric
2124 (uri (pypi-uri "Fabric" version))
2127 "0k944dxr41whw7ib6380q9x15wyskx7fqni656icdn8rzshn9bwq"))))
2128 (build-system python-build-system)
2130 `(#:python ,python-2)) ; Python 2 only
2132 `(("python2-fudge" ,python2-fudge)
2133 ("python2-jinja2" ,python2-jinja2)
2134 ("python2-nose" ,python2-nose)))
2136 `(("python2-paramiko" ,python2-paramiko)))
2137 (home-page "http://fabfile.org")
2138 (synopsis "Simple Pythonic remote execution and deployment tool")
2140 "Fabric is designed to upload files and run shell commands on a number of
2141 servers in parallel or serially. These commands are grouped in tasks (which
2142 are regular Python functions) and specified in a @dfn{fabfile}.
2144 It is similar to Capistrano, except it's implemented in Python and doesn't
2145 expect you to be deploying Rails applications. Fabric is a simple, Pythonic
2146 tool for remote execution and deployment.")
2147 (license license:bsd-2)))
2149 (define-public neofetch
2155 (uri (string-append "https://github.com/dylanaraps/neofetch/"
2156 "archive/" version ".tar.gz"))
2157 (file-name (string-append name "-" version ".tar.gz"))
2160 "15p69q0jchfms1fpb4i7kq8b28w2xpgh2zmynln618qxv1myf228"))))
2161 (build-system gnu-build-system)
2163 `(#:tests? #f ; there are no tests
2165 (list (string-append "PREFIX=" %output))
2167 (modify-phases %standard-phases
2168 (add-after 'unpack 'patch-target-directories
2169 (lambda* (#:key outputs #:allow-other-keys)
2170 (let ((out (assoc-ref outputs "out")))
2171 (substitute* "Makefile"
2172 (("\\$\\(DESTDIR\\)/etc/")
2174 (substitute* "neofetch"
2175 (("\"/etc/neofetch")
2176 (string-append "\"" out "/etc/neofetch"))
2177 (("\"/usr/share/neofetch")
2178 (string-append "\"" out "/share/neofetch"))))
2180 (delete 'configure) ; no configure script
2182 (lambda* (#:key make-flags outputs #:allow-other-keys)
2183 (let* ((out (assoc-ref outputs "out"))
2184 (doc (string-append out "/share/doc/" ,name "-" ,version))
2185 (etc (string-append doc "/examples/etc")))
2186 (zero? (apply system* `("make" ,@make-flags
2187 ,(string-append "SYSCONFDIR=" etc)
2189 (home-page "https://github.com/dylanaraps/neofetch")
2190 (synopsis "System info script")
2191 (description "Neofetch is a CLI system information tool written in Bash.
2192 Neofetch displays information about your system next to an image, your OS
2193 logo, or any ASCII file of your choice. The main purpose of Neofetch is to be
2194 used in screenshots to show other users what operating system or distribution
2195 you are running, what theme or icon set you are using, etc.")
2196 (license license:expat)))
2204 (uri (string-append "https://github.com/jarun/nnn/"
2205 "archive/v" version ".tar.gz"))
2206 (file-name (string-append name "-" version ".tar.gz"))
2209 "0zswf8lb29zr1z642i1d0zi1y2mxal8qjqdrpdiqjh197jamj3zm"))))
2210 (build-system gnu-build-system)
2211 (inputs `(("ncurses" ,ncurses)
2212 ("readline" ,readline)))
2214 '(#:tests? #f ; no tests
2216 ;; We do not provide `ncurses.h' within an `ncursesw'
2217 ;; sub-directory, so patch the source accordingly. See
2218 ;; <http://bugs.gnu.org/19018>.
2219 ;; Thanks to gtypist maintainer.
2220 (modify-phases %standard-phases
2221 (add-after 'unpack 'patch-curses-lib
2222 (lambda* (#:key outputs #:allow-other-keys)
2223 (let ((out (assoc-ref outputs "out")))
2224 (substitute* "Makefile"
2227 (substitute* "nnn.c"
2228 (("ncursesw\\/curses.h")
2231 (delete 'configure))
2234 (string-append "PREFIX="
2235 (assoc-ref %outputs "out"))
2236 (string-append "-Wl,-rpath="
2239 (home-page "https://github.com/jarun/nnn")
2240 (synopsis "Terminal file browser")
2241 (description "@command{nnn} is a fork of @command{noice}, a blazing-fast
2242 lightweight terminal file browser with easy keyboard shortcuts for
2243 navigation, opening files and running tasks. There is no config file and
2244 mime associations are hard-coded. The incredible user-friendliness and speed
2245 make it a perfect utility on modern distros.")
2246 (license license:bsd-2)))
2248 (define-public thermald
2255 (uri (string-append "https://github.com/01org/thermal_daemon/archive/v"
2257 (file-name (string-append name "-" version ".tar.gz"))
2259 "14klz9fnvi9jdlaqwrp61xa5nh051n8ykrs1fh1wxd7j66qf2fn6"))))
2260 (build-system gnu-build-system)
2262 `(#:phases (modify-phases %standard-phases
2264 'unpack 'autogen.sh-and-fix-paths
2265 (lambda* (#:key outputs #:allow-other-keys)
2266 (let ((out (assoc-ref outputs "out")))
2267 ;; upstartconfir is hardcoded to /etc/init and the build
2268 ;; system tries to mkdir that. We don't even need upstart
2269 ;; files at all; this is a fast and kludgy workaround
2270 (substitute* "data/Makefile.am"
2271 (("upstartconfdir = /etc/init")
2272 (string-append "upstartconfdir = "
2275 (zero? (system* "sh" "autogen.sh"))))))
2277 (let ((out (assoc-ref %outputs "out")))
2278 (list (string-append "--sysconfdir="
2280 (string-append "--with-udev-dir="
2282 (string-append "--with-dbus-sys-dir="
2283 out "/etc/dbus-1/system.d")
2284 "--localstatedir=/var"))))
2286 `(("autoconf" ,autoconf)
2287 ("automake" ,automake)
2288 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
2289 ("pkg-config" ,pkg-config)))
2291 `(("dbus-glib" ,dbus-glib)
2292 ("libxml2" ,libxml2)))
2293 (home-page "https://01.org/linux-thermal-daemon/")
2294 (synopsis "CPU scaling for thermal management")
2295 (description "The Linux Thermal Daemon helps monitor and control temperature
2296 on systems running the Linux kernel.")
2297 ;; arm and aarch64 don't have cpuid.h
2298 (supported-systems '("i686-linux" "x86_64-linux"))
2299 (license license:gpl2+)))
2301 (define-public masscan
2307 (uri (string-append "https://github.com/robertdavidgraham/masscan"
2308 "/archive/" version ".tar.gz"))
2311 "1y9af345g00z83rliv6bmlqg37xwc7xpnx5xqdgmjikzcxgk9pji"))))
2312 (build-system gnu-build-system)
2314 `(("libpcap" ,libpcap)))
2316 '(#:test-target "regress"
2317 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2319 (modify-phases %standard-phases
2320 (delete 'configure) ; There is no ./configure script
2321 (add-after 'unpack 'patch-path
2322 (lambda* (#:key outputs inputs #:allow-other-keys)
2323 (let* ((out (assoc-ref outputs "out"))
2324 (pcap (assoc-ref inputs "libpcap")))
2325 (substitute* "src/rawsock-pcap.c"
2326 (("libpcap.so") (string-append pcap "/lib/libpcap.so")))
2328 (synopsis "TCP port scanner")
2329 (description "MASSCAN is an asynchronous TCP port scanner. It can detect
2330 open ports, and also complete the TCP connection and interact with the remote
2331 application, collecting the information received.")
2332 (home-page "https://github.com/robertdavidgraham/masscan")
2333 ;; 'src/siphash24.c' is the SipHash reference implementation, which
2334 ;; bears a CC0 Public Domain Dedication.
2335 (license license:agpl3+)))
2337 (define-public hungrycat
2343 (uri (string-append "https://github.com/jwilk/hungrycat/"
2344 "releases/download/" version "/"
2345 name "-" version ".tar.gz"))
2348 "03fc1zsrf99lvxa7b4ps6pbi43304wbxh1f6ci4q0vkal370yfwh"))))
2349 (build-system gnu-build-system)
2352 `(("python" ,python-wrapper)
2353 ("python-nose" ,python-nose)))
2355 `(#:test-target "test"))
2356 (synopsis "A single tool that combines @command{cat} & @command{rm}")
2358 "hungrycat prints the contents of a file to standard output, while
2359 simultaneously freeing the disk space it occupied. It is useful if you need
2360 to process a large file, don't have enough space to store both the input and
2361 output files, and don't need the input file afterwards.
2362 While similar in principle to running @command{cat} immediately followed by
2363 @command{rm}, @command{hungrycat} actually frees blocks as soon as they are
2364 printed instead of after the entire file has been read, which is often too
2366 (home-page "https://jwilk.net/software/hungrycat")
2367 (license license:expat)))