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 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 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 cyrus-sasl)
50 #:use-module (gnu packages ncurses)
51 #:use-module (gnu packages readline)
52 #:use-module (gnu packages linux)
53 #:use-module (gnu packages lua)
54 #:use-module (gnu packages guile)
55 #:use-module (gnu packages gettext)
56 #:use-module (gnu packages pcre)
57 #:use-module (gnu packages perl)
58 #:use-module (gnu packages tcl)
59 #:use-module (gnu packages compression)
60 #:use-module (gnu packages cross-base)
61 #:use-module (gnu packages tls)
62 #:use-module (gnu packages gnupg)
63 #:use-module (gnu packages bison)
64 #:use-module (gnu packages flex)
65 #:use-module (gnu packages glib)
66 #:use-module (gnu packages openldap)
67 #:use-module (gnu packages mcrypt)
68 #:use-module (gnu packages pkg-config)
69 #:use-module (gnu packages popt)
70 #:use-module (gnu packages python)
71 #:use-module (gnu packages texinfo)
72 #:use-module (gnu packages groff)
73 #:use-module (gnu packages pciutils)
74 #:use-module (gnu packages libunwind)
75 #:use-module (gnu packages libusb)
76 #:use-module (gnu packages libftdi)
77 #:use-module (gnu packages image)
78 #:use-module (gnu packages xorg)
79 #:use-module (gnu packages xdisorg)
80 #:use-module (gnu packages python)
81 #:use-module (gnu packages man)
82 #:use-module (gnu packages autotools)
83 #:use-module (gnu packages gnome)
84 #:use-module (gnu packages kerberos)
85 #:use-module (gnu packages gtk)
86 #:use-module (gnu packages xml))
94 (uri (string-append "mirror://sourceforge/aide/aide/"
95 version "/aide-" version ".tar.gz"))
98 "0ibkv4z2gk14fn014kq13rp2ysiq6nn2cflv2q5i7zf466hm6758"))))
99 (build-system gnu-build-system)
104 `(("libgcrypt" ,libgcrypt)
105 ("libgpg-error" ,libgpg-error)
106 ("libmhash" ,libmhash)
109 (synopsis "File and directory integrity checker")
111 "AIDE (Advanced Intrusion Detection Environment) is a file and directory
112 integrity checker. It creates a database from the regular expression rules
113 that it finds from its configuration files. Once this database is initialized
114 it can be used to verify the integrity of the files. It has several message
115 digest algorithms that are used to check the integrity of files. All of the
116 usual file attributes can be checked for inconsistencies.")
117 (home-page "http://aide.sourceforge.net/")
118 (license license:gpl2+)))
120 (define-public progress
126 (uri (string-append "https://github.com/Xfennec/"
127 name "/archive/v" version ".tar.gz"))
129 (base32 "199rk6608q9m6l0fbjm0xl2w1c5krf8245dqnksdp4rqp7l9ak06"))
130 (file-name (string-append name "-" version ".tar.gz"))))
131 (build-system gnu-build-system)
133 `(("pkg-config" ,pkg-config)
136 `(("ncurses" ,ncurses)))
138 `(#:tests? #f ; There is no test suite.
139 #:make-flags (list "CC=gcc"
140 (string-append "PREFIX=" (assoc-ref %outputs "out")))
142 (modify-phases %standard-phases
143 (delete 'configure)))) ; There's no configure phase.
144 (home-page "https://github.com/Xfennec/progress")
145 (synopsis "Program to view the progress of the coreutils commands")
146 (description "A program that looks for coreutils basic commands (cp, mv,
147 dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
148 the percentage of copied data. It can also show estimated time and throughput,
149 and provides a \"top-like\" mode (monitoring).")
150 (license license:gpl3+)))
152 (define-public shepherd
158 (uri (string-append "ftp://alpha.gnu.org/gnu/dmd/shepherd-"
162 "174q1qg7yg6w1hfvlfv720hr6hid4h5xzw15y3ycfpspllzldhcb"))))
163 (build-system gnu-build-system)
165 '(#:configure-flags '("--localstatedir=/var")))
167 `(("pkg-config" ,pkg-config)
169 ;; This is the Guile we use as a cross-compiler...
170 ("guile" ,guile-2.2)))
172 ;; ... and this is the one that appears in shebangs when cross-compiling.
173 `(("guile" ,guile-2.2)))
174 (synopsis "System service manager")
176 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
177 the execution of system services, replacing similar functionality found in
178 typical init systems. It provides dependency-handling through a convenient
179 interface and is based on GNU Guile.")
180 (license license:gpl3+)
181 (home-page "https://www.gnu.org/software/shepherd/")
182 (properties '((ftp-server . "alpha.gnu.org")))))
192 "http://projects.gw-computing.net/attachments/download/79/dfc-"
196 "0zk1ppx93ijimf4sbgqilxxikpsa2gmpbynknyh41xy7jbdjxp0b"))))
197 (build-system cmake-build-system)
198 (arguments '(#:tests? #f)) ; There are no tests.
199 (native-inputs `(("gettext" ,gettext-minimal)))
200 (home-page "http://projects.gw-computing.net/projects/dfc")
201 (synopsis "Display file system space usage using graphs and colors")
203 "dfc (df color) is a modern version of df. It uses colors, draws pretty
204 graphs and can export its output to different formats.")
205 (license license:bsd-3)))
213 (uri (string-append "http://hisham.hm/htop/releases/"
214 version "/htop-" version ".tar.gz"))
217 "11zlwadm6dpkrlfvf3z3xll26yyffa7qrxd1w72y1kl0rgffk6qp"))))
218 (build-system gnu-build-system)
220 `(("ncurses" ,ncurses)))
221 (home-page "http://htop.sourceforge.net/")
222 (synopsis "Interactive process viewer")
224 "This is htop, an interactive process viewer. It is a text-mode
225 application (for console or X terminals) and requires ncurses.")
226 (license license:gpl2)))
235 (uri (string-append "mirror://gnu/pies/pies-"
239 "12r7rjjyibjdj08dvwbp0iflfpzl4s0zhn6cr6zj3hwf9gbzgl1g"))))
240 (build-system gnu-build-system)
242 '(#:phases (modify-phases %standard-phases
243 (add-before 'build 'patch-/bin/sh
244 (lambda* (#:key inputs #:allow-other-keys)
245 ;; Use the right shell when executing user-provided
247 (let ((bash (assoc-ref inputs "bash")))
248 (substitute* "src/progman.c"
250 (string-append "\"" bash "/bin/sh\"")))
252 (home-page "https://www.gnu.org/software/pies/")
253 (synopsis "Program invocation and execution supervisor")
255 "GNU pies is a program that supervises the invocation and execution of
256 other programs. It reads the list of programs to be started from its
257 configuration file, executes them, and then monitors their status,
258 re-executing them as necessary.")
259 (license license:gpl3+)))
261 (define-public inetutils
267 (uri (string-append "mirror://gnu/inetutils/inetutils-"
271 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
272 (build-system gnu-build-system)
274 `(#:configure-flags '("--localstatedir=/var"
276 ;; Make sure 'PATH_PROCNET_DEV' gets defined when
277 ;; cross-compiling (by default it does not.)
278 ,@(if (%current-target-system)
279 '("--with-path-procnet-dev=/proc/net/dev")
281 ;; On some systems, 'libls.sh' may fail with an error such as:
282 ;; "Failed to tell switch -a apart from -A".
283 #:parallel-tests? #f))
284 (inputs `(("ncurses" ,ncurses)
285 ("readline" ,readline))) ;for 'ftp'
286 (native-inputs `(("netstat" ,net-tools))) ;for tests
287 (home-page "https://www.gnu.org/software/inetutils/")
288 (synopsis "Basic networking utilities")
290 "Inetutils is a collection of common network programs, such as an ftp
291 client and server, a telnet client and server, an rsh client and server, and
293 (license license:gpl3+)))
295 (define-public shadow
302 "https://github.com/shadow-maint/shadow/releases/"
303 "download/" version "/shadow-" version ".tar.xz"))
306 "0hdpai78n63l3v3fgr3kkiqzhd0awrpfnnzz4mf7lmxdh61qb37w"))))
307 (build-system gnu-build-system)
309 `(;; Assume System V `setpgrp (void)', which is the default on GNU
310 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
312 '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
315 (modify-phases %standard-phases
316 (add-before 'build 'set-nscd-file-name
317 (lambda* (#:key inputs #:allow-other-keys)
318 ;; Use the right file name for nscd.
319 (let ((libc (assoc-ref inputs
320 ,(if (%current-target-system)
323 (substitute* "lib/nscd.c"
325 (string-append libc "/sbin/nscd"))))))
326 (add-after 'install 'remove-groups
327 (lambda* (#:key outputs #:allow-other-keys)
328 ;; Remove `groups', which is already provided by Coreutils.
329 (let* ((out (assoc-ref outputs "out"))
330 (bin (string-append out "/bin"))
331 (man (string-append out "/share/man")))
332 (delete-file (string-append bin "/groups"))
333 (for-each delete-file (find-files man "^groups\\."))
336 (inputs (if (string-contains (or (%current-target-system)
339 `(("linux-pam" ,linux-pam))
341 (home-page "http://pkg-shadow.alioth.debian.org/")
342 (synopsis "Authentication-related tools such as passwd, su, and login")
344 "Shadow provides a number of authentication-related tools, including:
345 login, passwd, su, groupadd, and useradd.")
347 ;; The `vipw' program is GPLv2+.
348 ;; libmisc/salt.c is public domain.
349 (license license:bsd-3)))
351 (define-public mingetty
357 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
358 version "/mingetty-" version ".tar.gz"))
361 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
362 (build-system gnu-build-system)
364 `(#:phases (alist-replace 'configure
365 (lambda* (#:key inputs outputs
367 (let* ((out (assoc-ref outputs "out"))
369 out "/share/man/man8"))
370 (sbin (string-append out "/sbin"))
371 (shadow (assoc-ref inputs "shadow"))
372 (login (string-append shadow
374 (substitute* "Makefile"
376 (string-append "SBINDIR = " out
379 (string-append "MANDIR = " out
380 "/share/man/man8\n")))
382 ;; Pick the right 'login' by default.
383 (substitute* "mingetty.c"
385 (string-append "\"" login "\"")))
390 #:tests? #f)) ; no tests
391 (inputs `(("shadow" ,shadow)))
393 (home-page "https://sourceforge.net/projects/mingetty")
394 (synopsis "Getty for the text console")
396 "Small console getty that is started on the Linux text console,
397 asks for a login name and then transfers over to 'login'. It is extended to
398 allow automatic login and starting any app.")
399 (license license:gpl2+)))
401 (define-public net-base
408 "mirror://debian/pool/main/n/netbase/netbase_"
412 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
413 (build-system trivial-build-system)
415 `(#:modules ((guix build utils))
417 (use-modules (guix build utils)
420 (let* ((source (assoc-ref %build-inputs "source"))
421 (tar (assoc-ref %build-inputs "tar"))
422 (xz (assoc-ref %build-inputs "xz"))
423 (output (assoc-ref %outputs "out"))
424 (etc (string-append output "/etc")))
425 (setenv "PATH" (string-append xz "/bin"))
426 (system* (string-append tar "/bin/tar") "xvf"
428 (chdir ,(string-append "netbase-" version))
431 '("etc-services" "etc-protocols" "etc-rpc")
432 (map (cut string-append etc "/" <>)
433 '("services" "protocols" "rpc")))
435 (native-inputs `(("tar" ,tar)
437 (synopsis "IANA protocol, port, and RPC number assignments")
439 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
440 files, which contain information about the IANA-assigned port, protocol, and
442 (home-page "http://packages.debian.org/sid/netbase")
443 (license license:gpl2)))
445 (define-public netcat
451 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
452 "/netcat-" version ".tar.bz2"))
455 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
456 (build-system gnu-build-system)
459 ;; By default, man and info pages are put in PREFIX/{man,info},
460 ;; but we want them in PREFIX/share/{man,info}.
461 (let ((out (assoc-ref %outputs "out")))
462 (list (string-append "--mandir=" out "/share/man")
463 (string-append "--infodir=" out "/share/info")))))
464 (home-page "http://netcat.sourceforge.net")
465 (synopsis "Read and write data over TCP/IP")
467 "Netcat is a featured networking utility which reads and writes data
468 across network connections, using the TCP/IP protocol. It is designed to be a
469 reliable \"back-end\" tool that can be used directly or easily driven by other
470 programs and scripts. At the same time, it is a feature-rich network debugging
471 and exploration tool, since it can create almost any kind of connection you
472 would need and has several interesting built-in capabilities.")
473 (license license:gpl2+)))
481 (uri (string-append "mirror://gnu/alive/alive-"
485 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
486 (build-system gnu-build-system)
487 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
488 (inputs `(("guile" ,guile-2.0)
489 ("inetutils" ,inetutils)))
490 (home-page "https://www.gnu.org/software/alive/")
491 (synopsis "Autologin and keep-alive daemon")
493 "GNU Alive sends periodic pings to a server, generally to keep a
495 (license license:gpl3+)))
497 (define-public isc-dhcp
498 (let* ((bind-major-version "9")
499 (bind-minor-version "9")
500 (bind-patch-version "10")
501 (bind-release-type "-P") ; for patch release, use "-P"
502 (bind-release-version "3") ; for patch release, e.g. "6"
503 (bind-version (string-append bind-major-version
509 bind-release-version)))
515 (uri (string-append "http://ftp.isc.org/isc/dhcp/"
516 version "/dhcp-" version ".tar.gz"))
519 "0m7rwxvpb7xrmfl9ynpckhl0hi0xgm9bq1fmbp2r68sxy5mr75gb"))))
520 (build-system gnu-build-system)
522 `(#:parallel-build? #f
524 (modify-phases %standard-phases
525 (add-after 'unpack 'replace-bundled-bind
526 (lambda* (#:key inputs #:allow-other-keys)
527 (delete-file "bind/bind.tar.gz")
528 (copy-file (assoc-ref inputs "bind-source-tarball")
530 (chmod "bind/bind.tar.gz" #o644)
531 (substitute* "bind/version.tmp"
533 (format #f "MAJORVER=~a\n" ,bind-major-version))
535 (format #f "MINORVER=~a\n" ,bind-minor-version))
537 (format #f "PATCHVER=~a\n" ,bind-patch-version))
539 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
541 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
543 (add-after 'configure 'post-configure
544 (lambda* (#:key outputs #:allow-other-keys)
545 ;; Point to the right client script, which will be
546 ;; installed in a later phase.
547 (substitute* "includes/dhcpd.h"
548 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
549 (let ((out (assoc-ref outputs "out")))
550 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
551 out "/libexec/dhclient-script"
554 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
555 ;; we must patch shebangs in there and make sure the right
557 (with-directory-excursion "bind"
558 (substitute* "Makefile"
560 (let ((sh (which "sh")))
561 (string-append "./configure CONFIG_SHELL="
564 (let ((bind-directory (string-append "bind-" ,bind-version)))
565 (system* "tar" "xf" "bind.tar.gz")
566 (for-each patch-shebang
567 (find-files bind-directory ".*"))
568 (zero? (system* "tar" "cf" "bind.tar.gz"
570 ;; avoid non-determinism in the archive
574 "--group=root:0"))))))
575 (add-after 'install 'post-install
576 (lambda* (#:key inputs outputs #:allow-other-keys)
577 ;; Install the dhclient script for GNU/Linux and make sure
578 ;; if finds all the programs it needs.
579 (let* ((out (assoc-ref outputs "out"))
580 (libexec (string-append out "/libexec"))
581 (coreutils (assoc-ref inputs "coreutils"))
582 (inetutils (assoc-ref inputs "inetutils"))
583 (net-tools (assoc-ref inputs "net-tools"))
584 (sed (assoc-ref inputs "sed")))
585 (substitute* "client/scripts/linux"
587 (string-append (assoc-ref inputs "iproute")
591 (copy-file "client/scripts/linux"
592 (string-append libexec "/dhclient-script"))
595 (string-append libexec "/dhclient-script")
598 (string-append dir "/bin:"
600 (list inetutils net-tools coreutils sed))))))))))
602 (native-inputs `(("perl" ,perl)))
604 (inputs `(("inetutils" ,inetutils)
605 ("net-tools" ,net-tools)
608 ;; XXX isc-dhcp bundles a copy of bind that has security
609 ;; flaws, so we use a newer version.
610 ("bind-source-tarball"
613 (uri (string-append "http://ftp.isc.org/isc/bind9/"
615 "/bind-" bind-version ".tar.gz"))
618 "00yh1d5shrq7y0kfwacax4f8dc0akaa2fha430j92n7mshms65m1"))))
620 ;; When cross-compiling, we need the cross Coreutils and sed.
621 ;; Otherwise just use those from %FINAL-INPUTS.
622 ,@(if (%current-target-system)
623 `(("coreutils" ,coreutils)
627 (home-page "http://www.isc.org/products/DHCP/")
628 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
630 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
631 reference implementation of all aspects of DHCP, through a suite of DHCP
632 tools: server, client, and relay agent.")
633 (license license:isc)
634 (properties '((cpe-name . "dhcp"))))))
636 (define-public libpcap
642 (uri (string-append "http://www.tcpdump.org/release/libpcap-"
646 "07jlhc66z76dipj4j5v3dig8x6h3k6cb36kmnmpsixf3zmlvqgb7"))))
647 (build-system gnu-build-system)
648 (native-inputs `(("bison" ,bison) ("flex" ,flex)))
649 (arguments '(#:configure-flags '("--with-pcap=linux")
650 #:tests? #f)) ; no 'check' target
651 (home-page "http://www.tcpdump.org")
652 (synopsis "Network packet capture library")
654 "libpcap is an interface for user-level packet capture. It provides a
655 portable framework for low-level network monitoring. Applications include
656 network statistics collection, security monitoring, network debugging, etc.")
658 ;; fad-*.c and a couple other files are BSD-4, but the rest is BSD-3.
659 (license license:bsd-3)))
661 (define-public tcpdump
667 (uri (string-append "http://www.tcpdump.org/release/tcpdump-"
671 "1wyqbg7bkmgqyslf1ns0xx9fcqi66hvcfm9nf77rl15jvvs8qi7r"))))
672 (build-system gnu-build-system)
673 (inputs `(("libpcap" ,libpcap)
674 ("openssl" ,openssl)))
675 (native-inputs `(("perl" ,perl))) ; for tests
676 (home-page "http://www.tcpdump.org/")
677 (synopsis "Network packet analyzer")
679 "Tcpdump is a command-line tool to analyze network traffic passing
680 through the network interface controller.")
681 (license license:bsd-3)))
683 (define-public jnettop
689 (uri (string-append "http://jnettop.kubs.info/dist/jnettop-"
693 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
694 (build-system gnu-build-system)
696 `(("pkg-config" ,pkg-config)))
700 ("libpcap" ,libpcap)))
701 (home-page "http://jnettop.kubs.info/")
702 (synopsis "Visualize network traffic by bandwidth use")
704 "Jnettop is a traffic visualiser, which captures traffic going
705 through the host it is running from and displays streams sorted
706 by bandwidth they use.")
707 (license license:gpl2+)))
709 (define-public clusterssh
715 (uri (string-append "mirror://sourceforge/clusterssh/"
716 "1.%20ClusterSSH%20Series%203/" version
717 "/clusterssh-" version ".tar.gz"))
720 "1bwggpvaj2al5blg1ynapviv2kpydffpzq2zkhi81najnvzc1rr7"))))
721 (build-system gnu-build-system)
722 (inputs `(("perl" ,perl)))
723 (propagated-inputs `(("xterm" ,xterm)
725 ("perl-x11-protocol" ,perl-x11-protocol)))
729 'install 'set-load-paths
730 (lambda* (#:key inputs outputs #:allow-other-keys)
731 ;; Put the perl-tk and perl-x11-protocol modules in the perl inc
733 (let* ((out (assoc-ref outputs "out"))
734 (prog (string-append out "/bin/cssh"))
735 (perl-ver ,(package-version perl))
736 (x11-inc (string-append
737 (assoc-ref inputs "perl-x11-protocol")
738 "/lib/perl5/site_perl/" perl-ver))
739 (tk-inc (string-append
740 (assoc-ref inputs "perl-tk")
741 "/lib/perl5/site_perl/" perl-ver
745 `("PERL5LIB" ":" prefix (,x11-inc ,tk-inc)))))
747 ;; The clusterssh.sourceforge.net address requires login to view
748 (home-page "https://sourceforge.net/projects/clusterssh/")
749 (synopsis "Secure concurrent multi-server terminal control")
751 "ClusterSSH controls a number of xterm windows via a single graphical
752 console window to allow commands to be interactively run on multiple servers
753 over ssh connections.")
754 (license license:gpl2+)))
756 (define-public rottlog
762 (uri (string-append "mirror://gnu/rottlog/rottlog-"
766 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
767 (modules '((guix build utils)))
769 '(substitute* "Makefile.in"
770 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
771 ;; Don't try to chown root.
773 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
774 ;; Don't attempt to create /var/lib/rottlog.
776 (build-system gnu-build-system)
778 '(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
779 "--localstatedir=/var")
781 ;; Install example config files in OUT/etc.
782 #:make-flags (list (string-append "ROTT_ETCDIR="
783 (assoc-ref %outputs "out")
786 #:phases (modify-phases %standard-phases
787 (add-after 'build 'set-packdir
789 ;; Set a default location for archived logs.
792 "packdir=\"/var/log\""))
794 (add-before 'install 'tweak-rc-weekly
796 (substitute* "rc/weekly"
800 ;; The file is called 'syslog.pid' (no 'd').
803 (add-after 'install 'install-info
805 (zero? (system* "make" "install-info")))))))
806 (native-inputs `(("texinfo" ,texinfo)
807 ("util-linux" ,util-linux))) ; for 'cal'
808 (home-page "https://www.gnu.org/software/rottlog/")
809 (synopsis "Log rotation and management")
811 "GNU Rot[t]log is a program for managing log files. It is used to
812 automatically rotate out log files when they have reached a given size or
813 according to a given schedule. It can also be used to automatically compress
814 and archive such logs. Rot[t]log will mail reports of its activity to the
815 system administrator.")
816 (license license:gpl3+)))
825 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
827 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
831 "1na5likm1srnd1g5sjx7b0543sczw0yppacyqsazfdg9b48awhmx"))
832 (modules '((guix build utils)))
834 '(delete-file-recursively "lib/zlib"))))
835 (build-system gnu-build-system)
838 (list "--with-logpath=/var/log/sudo.log"
839 "--with-rundir=/var/run/sudo" ;must be cleaned up at boot time
840 "--with-vardir=/var/db/sudo"
841 "--with-iologdir=/var/log/sudo-io"
843 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
845 (string-append "CPPFLAGS=-D_PATH_MV='\""
846 (assoc-ref %build-inputs "coreutils")
849 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
853 (modify-phases %standard-phases
854 (add-before 'configure 'pre-configure
856 (substitute* "src/sudo_usage.h.in"
857 ;; Do not capture 'configure' arguments since we would
858 ;; unduly retain references, and also because the
859 ;; CPPFLAGS above would close the string literal
861 (("@CONFIGURE_ARGS@") "\"\""))
862 (substitute* (find-files "." "Makefile\\.in")
863 (("-o [[:graph:]]+ -g [[:graph:]]+")
864 ;; Allow installation as non-root.
866 (("^install: (.*)install-sudoers(.*)" _ before after)
867 ;; Don't try to create /etc/sudoers.
868 (string-append "install: " before after "\n"))
869 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
870 ;; Don't try to create /run/sudo.
872 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
873 ;; Don't try to create /var/db/sudo.
874 "$(TMPDIR)/dummy")))))
876 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
877 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
881 ("linux-pam" ,linux-pam)
883 ("coreutils" ,coreutils)))
884 (home-page "https://www.sudo.ws/")
885 (synopsis "Run commands as root")
887 "Sudo (su \"do\") allows a system administrator to delegate authority to
888 give certain users (or groups of users) the ability to run some (or all)
889 commands as root or another user while providing an audit trail of the
890 commands and their arguments.")
892 ;; See <http://www.sudo.ws/sudo/license.html>.
893 (license license:x11)))
895 (define-public wpa-supplicant-minimal
897 (name "wpa-supplicant-minimal")
902 "http://w1.fi/releases/wpa_supplicant-"
907 "0l0l5gz3d5j9bqjsbjlfcv4w4jwndllp9fmyai4x9kg6qhs6v4xl"))))
908 (build-system gnu-build-system)
910 '(#:phases (alist-replace
912 (lambda* (#:key outputs #:allow-other-keys)
913 (chdir "wpa_supplicant")
914 (copy-file "defconfig" ".config")
915 (let ((port (open-file ".config" "al")))
917 CONFIG_DEBUG_SYSLOG=y
919 # Choose GnuTLS (the default is OpenSSL.)
922 CONFIG_DRIVER_NL80211=y
923 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
925 CONFIG_READLINE=y\n" port)
929 'install 'install-man-pages
930 (lambda* (#:key outputs #:allow-other-keys)
931 (let* ((out (assoc-ref outputs "out"))
932 (man (string-append out "/share/man"))
933 (man5 (string-append man "/man5"))
934 (man8 (string-append man "/man8")))
935 (define (copy-man-page target)
937 (install-file file target)))
939 (mkdir-p man5) (mkdir man8)
940 (for-each (copy-man-page man5)
941 (find-files "doc/docbook" "\\.5"))
942 (for-each (copy-man-page man8)
943 (find-files "doc/docbook" "\\.8"))
947 #:make-flags (list "CC=gcc"
948 (string-append "BINDIR=" (assoc-ref %outputs "out")
950 (string-append "LIBDIR=" (assoc-ref %outputs "out")
954 `(("readline" ,readline)
957 ("libgcrypt" ,libgcrypt))) ;needed by crypto_gnutls.c
959 `(("pkg-config" ,pkg-config)))
960 (home-page "http://w1.fi/wpa_supplicant/")
961 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
963 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
964 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
965 the client stations. It implements key negotiation with a WPA Authenticator
966 and it controls the roaming and IEEE 802.11 authentication/association of the
969 This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
971 ;; In practice, this is linked against Readline, which makes it GPLv3+.
972 (license license:bsd-3)))
974 (define-public wpa-supplicant
975 (package (inherit wpa-supplicant-minimal)
976 (name "wpa-supplicant")
977 (inputs `(("dbus" ,dbus)
978 ,@(package-inputs wpa-supplicant-minimal)))
980 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
983 'configure 'configure-for-dbus
985 (let ((port (open-file ".config" "al")))
987 CONFIG_CTRL_IFACE_DBUS=y
988 CONFIG_CTRL_IFACE_DBUS_NEW=y
989 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
993 'install-man-pages 'install-dbus-conf
994 (lambda* (#:key outputs #:allow-other-keys)
995 (let* ((out (assoc-ref outputs "out"))
996 (dir (string-append out "/etc/dbus-1/system.d")))
998 (copy-file "dbus/dbus-wpa_supplicant.conf"
999 (string-append dir "/wpa_supplicant.conf"))))
1002 (define-public wakelan
1009 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
1013 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
1014 (build-system gnu-build-system)
1016 '(#:phases (alist-replace
1018 (lambda* (#:key outputs #:allow-other-keys)
1019 (let ((out (assoc-ref outputs "out")))
1020 (mkdir-p (string-append out "/bin"))
1021 (mkdir-p (string-append out "/share/man/man1"))
1023 ;; It's an old configure script that doesn't understand
1024 ;; the extra options we pass.
1025 (setenv "CONFIG_SHELL" (which "bash"))
1027 (system* "./configure"
1028 (string-append "--prefix=" out)
1029 (string-append "--mandir=" out
1033 (home-page "http://kernel.org") ; really, no home page
1034 (synopsis "Send a wake-on-LAN packet")
1036 "WakeLan broadcasts a properly formatted UDP packet across the local area
1037 network, which causes enabled computers to power on.")
1038 (license license:gpl2+)))
1040 (define-public dmidecode
1047 "mirror://savannah/dmidecode/dmidecode-"
1051 "0iby0xfk5x3cdr0x0gxj5888jjyjhafvaq0l79civ73jjfqmphvy"))))
1052 (build-system gnu-build-system)
1054 '(#:phases (modify-phases %standard-phases (delete 'configure))
1055 #:tests? #f ; no 'check' target
1056 #:make-flags (list (string-append "prefix="
1057 (assoc-ref %outputs "out")))))
1058 (home-page "http://www.nongnu.org/dmidecode/")
1059 (synopsis "Read hardware information from the BIOS")
1061 "Dmidecode reports information about your system's hardware as described
1062 in your system BIOS according to the SMBIOS/DMI standard. This typically
1063 includes system manufacturer, model name, serial number, BIOS version, asset
1064 tag as well as a lot of other details of varying level of interest and
1065 reliability depending on the manufacturer. This will often include usage
1066 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1067 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1068 (license license:gpl2+)))
1070 (define-public acpica
1073 (version "20150410")
1077 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1081 "0q1fjwkyw9x6gsva6fd0zbn7ly4fx0ha4853f416np9kf2irillw"))))
1082 (build-system gnu-build-system)
1083 (native-inputs `(("flex" ,flex)
1086 '(#:make-flags (list (string-append "PREFIX=" %output)
1088 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1089 #:tests? #f ; no 'check' target.
1090 #:phases (alist-delete 'configure %standard-phases)))
1091 (home-page "http://acpica.org/")
1092 (synopsis "Tools for the development and debug of ACPI tables")
1094 "The ACPI Component Architecture (ACPICA) project provides an
1095 OS-independent reference implementation of the Advanced Configuration and
1096 Power Interface Specification (ACPI). ACPICA code contains those portions of
1097 ACPI meant to be directly integrated into the host OS as a kernel-resident
1098 subsystem, and a small set of tools to assist in developing and debugging ACPI
1099 tables. This package contains only the user-space tools needed for ACPI table
1100 development, not the kernel implementation of ACPI.")
1101 (license license:gpl2))) ; Dual GPLv2/ACPICA Licence
1103 (define-public stress
1109 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1110 version ".orig.tar.gz"))
1113 "1v9vnzlihqfjsxa93hdbrq72pqqk00dkylmlg8jpxhm7s1w9qfl1"))))
1114 (build-system gnu-build-system)
1115 (home-page "http://packages.debian.org/wheezy/stress")
1116 (synopsis "Impose load on and stress test a computer system")
1118 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
1119 or disk stress on a POSIX-compliant operating system and reports any errors it
1122 Stress is not a benchmark. It is a tool used by system administrators to
1123 evaluate how well their systems will scale, by kernel programmers to evaluate
1124 perceived performance characteristics, and by systems programmers to expose
1125 the classes of bugs which only or more frequently manifest themselves when the
1126 system is under heavy load.")
1127 (license license:gpl2+)))
1129 (define-public detox
1135 (uri (string-append "mirror://sourceforge/detox/detox/" version
1136 "/detox-" version ".tar.bz2"))
1139 "1y6vvjqsg54kl49cry73jbfhr04s7wjs779vrr9zrq6kww7dkymb"))))
1140 (build-system gnu-build-system)
1141 ;; Both flex and popt are used in this case for their runtime libraries
1142 ;; (libfl and libpopt).
1147 `(#:configure-flags `(,(string-append "--with-popt="
1148 (assoc-ref %build-inputs "popt")))
1149 #:tests? #f)) ;no 'check' target
1150 (home-page "http://detox.sourceforge.net")
1151 (synopsis "Clean up file names")
1153 "Detox is a program that renames files to make them easier to work with
1154 under Unix and related operating systems. Spaces and various other unsafe
1155 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1156 characters can be replaced as well, as can UTF-8 characters.")
1157 (license license:bsd-3)))
1159 (define-public testdisk
1165 (uri (string-append "http://www.cgsecurity.org/testdisk-"
1166 version ".tar.bz2"))
1169 "0ba4wfz2qrf60vwvb1qsq9l6j0pgg81qgf7fh22siaz649mkpfq0"))))
1170 (build-system gnu-build-system)
1172 `(("ntfs-3g" ,ntfs-3g)
1173 ("util-linux" ,util-linux)
1174 ("openssl" ,openssl)
1175 ;; FIXME: add reiserfs
1177 ("e2fsprogs" ,e2fsprogs)
1178 ("libjpeg" ,libjpeg)
1179 ("ncurses" ,ncurses)))
1180 (home-page "http://www.cgsecurity.org/wiki/TestDisk")
1181 (synopsis "Data recovery tool")
1183 "TestDisk is a program for data recovery, primarily designed to help
1184 recover lost partitions and/or make non-booting disks bootable again.")
1185 (license license:gpl2+)))
1194 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1197 (base32 "04kviw799qxly08zb8n5mgxfd96gyis6x69q2qiw86jnh87c4mv9"))))
1198 (build-system gnu-build-system)
1200 '(#:phases (alist-delete 'configure %standard-phases)
1201 #:tests? #f ; no check target
1202 #:make-flags (let ((out (assoc-ref %outputs "out")))
1203 (list (string-append "prefix=" out)))))
1204 (synopsis "Recursively list the contents of a directory")
1206 "Tree is a recursive directory listing command that produces a depth
1207 indented listing of files, which is colorized ala dircolors if the LS_COLORS
1208 environment variable is set and output is to tty.")
1209 (home-page "http://mama.indstate.edu/users/ice/tree/")
1210 (license license:gpl2+)))
1212 (define-public direvent
1218 (uri (string-append "mirror://gnu/direvent/direvent-"
1222 "1nwvjmx7kb14ni34c0b8x9a3791pc20gvhj7xaj66d8q4h6n0qf4"))
1223 (modules '((guix build utils)))
1224 (snippet '(substitute* "tests/testsuite"
1225 (("#![[:blank:]]?/bin/sh")
1227 (build-system gnu-build-system)
1229 '(#:phases (alist-cons-before
1230 'build 'patch-/bin/sh
1231 (lambda* (#:key inputs #:allow-other-keys)
1232 ;; Use the right shell when executing the watcher and
1233 ;; user-provided shell commands.
1234 (let ((bash (assoc-ref inputs "bash")))
1235 (substitute* '("src/direvent.c" "src/progman.c")
1237 (string-append "\"" bash "/bin/sh\"")))
1239 ;; Adjust the 'shell.at' test accordingly.
1240 (substitute* "tests/testsuite"
1242 (string-append "SHELL=" bash "/bin/sh")))
1246 (home-page "https://www.gnu.org/software/direvent/")
1247 (synopsis "Daemon to monitor directories for events such as file removal")
1249 "A daemon that monitors directories for events, such as creating,
1250 deleting or modifying files. It can monitor different sets of directories for
1251 different events. When an event is detected, direvent calls a specified
1252 external program with information about the event, such as the location
1253 within the file system where it occurred. Thus, \"direvent\" provides an
1254 easy way to react immediately if given files undergo changes, for example, to
1255 track changes in important system configuration files.")
1256 (license license:gpl3+)))
1258 (define-public libcap-ng
1265 "http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1269 "0ssvnh4cvhya0c1j6k6192zvqcq7nc0x01fb5nwhr0prfqr0i8j8"))))
1270 (build-system gnu-build-system)
1271 (inputs `(("python" ,python)))
1272 (home-page "http://people.redhat.com/sgrubb/libcap-ng/")
1273 (synopsis "Library for more easily working with POSIX capabilities")
1275 "The libcap-ng library is intended to make programming with POSIX
1276 capabilities easier than the traditional libcap library. It includes
1277 utilities that can analyse all currently running applications and print out
1278 any capabilities and whether or not it has an open ended bounding set. The
1279 included utilities are designed to let admins and developers spot apps from
1280 various ways that may be running with too much privilege.")
1281 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1282 (license (list license:lgpl2.1+ license:gpl2+))))
1284 (define-public smartmontools
1286 (name "smartmontools")
1291 "mirror://sourceforge/smartmontools/smartmontools/"
1292 version "/smartmontools-" version ".tar.gz"))
1295 "1g25r6sx85b5lay5n6sbnqv05qxzj6xsafsp93hnrg1h044bps49"))))
1296 (build-system gnu-build-system)
1297 (inputs `(("libcap-ng" ,libcap-ng)))
1298 (home-page "http://www.smartmontools.org/")
1299 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1301 "The smartmontools package contains utility programs to control and
1302 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1303 Technology System (S.M.A.R.T.) built into most modern ATA and SCSI harddisks.
1304 In many cases, these utilities will provide advanced warning of disk
1305 degradation and failure.")
1306 (license license:gpl2+)))
1308 (define-public fdupes
1316 "https://github.com/adrianlopezroche/fdupes/archive/v"
1318 (file-name (string-append name "-" version ".tar.gz"))
1321 "1sj9pa40pbz6xdwbxfwhdhkvhdf1xc5gvggk9mdq26c41gdnyswx"))))
1322 (build-system gnu-build-system)
1324 '(#:phases (modify-phases %standard-phases
1325 (delete 'configure))
1326 #:tests? #f ; no 'check' target
1327 #:make-flags (list "CC=gcc"
1328 (string-append "PREFIX="
1329 (assoc-ref %outputs "out")))))
1330 (home-page "https://github.com/adrianlopezroche/fdupes")
1331 (synopsis "Identify duplicate files")
1333 "fdupes is a program for identifying duplicate files residing within
1334 specified directories.")
1335 (license license:expat)))
1337 (define-public graphios
1345 "https://pypi.python.org/packages/source/g/graphios/graphios-"
1349 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1350 (build-system python-build-system)
1352 ;; Be warned: Building with Python 3 succeeds, but the build process
1353 ;; throws a syntax error that is ignored.
1354 `(#:python ,python-2
1356 (modify-phases %standard-phases
1357 (add-before 'build 'fix-setup.py
1358 (lambda* (#:key outputs #:allow-other-keys)
1359 ;; Fix hardcoded, unprefixed file names.
1360 (let ((out (assoc-ref outputs "out")))
1361 (substitute* '("setup.py")
1362 (("/etc") (string-append out "/etc"))
1364 (("distro_ver = .*") "distro_ver = ''"))
1366 (home-page "https://github.com/shawn-sterling/graphios")
1367 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1369 "Graphios is a script to emit nagios perfdata to various upstream metrics
1370 processing and time-series systems. It's currently compatible with Graphite,
1371 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1372 of supported upstream metrics systems simultaneously.")
1373 (license license:gpl2+)))
1375 (define-public ansible
1382 (uri (pypi-uri "ansible" version))
1385 "1xdr82fy8gahxh3586wm5k1bxksys7yl1f2n24shrk8gf99qyjyd"))
1386 (patches (search-patches "ansible-wrap-program-hack.patch"))))
1387 (build-system python-build-system)
1389 `(("python2-pycrypto" ,python2-pycrypto)
1390 ("python2-httplib2" ,python2-httplib2)
1391 ("python2-passlib" ,python2-passlib)
1392 ("python2-nose" ,python2-nose)
1393 ("python2-mock" ,python2-mock)
1394 ("python2-jinja2" ,python2-jinja2)
1395 ("python2-pyyaml" ,python2-pyyaml)
1396 ("python2-paramiko" ,python2-paramiko)))
1398 `(("python2-pycrypto" ,python2-pycrypto)
1399 ("python2-jinja2" ,python2-jinja2)
1400 ("python2-pyyaml" ,python2-pyyaml)
1401 ("python2-paramiko" ,python2-paramiko)))
1403 `(#:python ,python-2)) ; incompatible with Python 3
1404 (home-page "http://ansible.com/")
1405 (synopsis "Radically simple IT automation")
1406 (description "Ansible is a radically simple IT automation system. It
1407 handles configuration-management, application deployment, cloud provisioning,
1408 ad-hoc task-execution, and multinode orchestration - including trivializing
1409 things like zero downtime rolling updates with load balancers.")
1410 (license license:gpl3+)))
1412 (define-public cpulimit
1419 (uri (string-append "https://github.com/opsengine/cpulimit/archive/v"
1421 (file-name (string-append name "-" version ".tar.gz"))
1424 "1nn2w849xd5bw4y5sqnll29nxdwl5h0cv4smc7dwmpb9qnd2ycb4"))))
1425 (build-system gnu-build-system)
1427 `(#:phases (modify-phases %standard-phases
1432 (zero? (system* "make" "CC=gcc" "-Csrc"))))
1436 (zero? (system* "make" "CC=gcc" "-Ctests"))))
1439 (lambda* (#:key outputs #:allow-other-keys)
1440 (let* ((out (assoc-ref outputs "out"))
1441 (bin (string-append out "/bin")))
1442 (install-file "src/cpulimit" bin)))))))
1443 (home-page "https://github.com/opsengine/cpulimit")
1444 (synopsis "Limit CPU usage")
1446 "Cpulimit limits the CPU usage of a process. It does not change the nice
1447 value or other scheduling priority settings, but the real CPU usage, and is
1448 able to adapt itself dynamically to the overall system load. Children
1449 processes and threads of the specified process may optionally share the same
1451 (license license:gpl2+)))
1453 (define-public autojump
1460 (uri (string-append "https://github.com/wting/autojump/archive/"
1461 "release-v" version ".tar.gz"))
1462 (file-name (string-append name "-" version ".tar.gz"))
1465 "113rcpr37ngf2xs8da41qdarq5qmj0dwx8ggqy3lhlb0kvqq7g9z"))))
1466 (build-system gnu-build-system)
1467 (native-inputs ;for tests
1468 `(("python-mock" ,python-mock)
1469 ("python-pytest" ,python-pytest)))
1471 `(("python" ,python-wrapper)))
1473 `(#:phases (modify-phases %standard-phases
1479 (system* "python" "tests/unit/autojump_utils_test.py"))))
1481 ;; The install.py script doesn't allow system installation
1482 ;; into an arbitrary prefix, so do our own install.
1483 (lambda* (#:key outputs #:allow-other-keys)
1484 (let* ((out (assoc-ref outputs "out"))
1485 (bin (string-append out "/bin"))
1486 (share (string-append out "/share/autojump"))
1487 (py (string-append out "/lib/python"
1488 ,(version-major+minor
1489 (package-version python-wrapper))
1491 (man (string-append out "/share/man/man1")))
1492 (install-file "bin/autojump" bin)
1493 (for-each (λ (f) (install-file f py))
1494 (find-files "bin" "\\.py$"))
1495 (for-each (λ (f) (install-file f share))
1496 (find-files "bin" "autojump\\..*$"))
1497 (substitute* (string-append share "/autojump.sh")
1498 (("/usr/local") out))
1499 (install-file "docs/autojump.1" man)
1500 (wrap-program (string-append bin "/autojump")
1501 `("PYTHONPATH" ":" prefix (,py)))
1503 (home-page "https://github.com/wting/autojump")
1504 (synopsis "Shell extension for file system navigation")
1506 "Autojump provides a faster way to navigate your file system, with a \"cd
1507 command that learns\". It works by maintaining a database of the directories
1508 you use the most from the command line and allows you to \"jump\" to
1509 frequently used directories by typing only a small pattern.")
1510 (license license:gpl3+)))
1512 (define-public iftop
1518 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
1519 "/iftop-" version ".tar.gz"))
1522 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
1523 (build-system gnu-build-system)
1525 `(("libpcap" ,libpcap)
1526 ("ncurses" ,ncurses)))
1527 (synopsis "Monitor network usage")
1528 (description "Iftop does for network usage what @command{top} does
1529 for CPU usage. It listens to network traffic on a named interface and
1530 displays a table of current bandwidth usage by pairs of hosts.")
1531 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
1532 (license license:gpl2+)))
1534 (define-public munge
1540 (uri (string-append "https://github.com/dun/munge/releases/"
1541 "download/munge-" version "/munge-"
1545 "1s0vlwgm3hcx75vcmjf2y3icy5nv8y07bx93w2cmm6a7x71y6wp9"))))
1547 `(("openssl" ,openssl)
1548 ("libgcrypt" ,libgcrypt)))
1549 (build-system gnu-build-system)
1550 (home-page "https://dun.github.io/munge/")
1551 (synopsis "Cluster computing authentication service")
1553 "Munge is an authentication service for creating and validating
1554 credentials. It allows a process to authenticate the UID and GID of another
1555 local or remote process within a group of hosts having common users and
1556 groups. These hosts form a security realm that is defined by a shared
1557 cryptographic key. Clients within this security realm can create and validate
1558 credentials without the use of root privileges, reserved ports, or
1559 platform-specific methods.")
1560 (license license:gpl3+)))
1562 (define-public audit
1568 (uri (string-append "http://people.redhat.com/sgrubb/audit/"
1569 "audit-" version ".tar.gz"))
1572 "1q1q51dvxscbi4kbakmd4bn0xrvwwaiwvaya79925cbrqwzxsg77"))))
1573 (build-system gnu-build-system)
1574 (home-page "http://people.redhat.com/sgrubb/audit/")
1576 `(#:configure-flags (list "--with-python=no")
1578 (modify-phases %standard-phases
1579 (add-after 'unpack 'fix-tests
1581 ;; In the build environmnte /etc/passwd does not contain an entry
1582 ;; for root/0, so we have to patch the expected value.
1583 (substitute* "auparse/test/auparse_test.ref"
1584 (("=0 \\(root\\)") "=0 (unknown(0))"))
1587 `(("openldap" ,openldap)
1589 ("sasl" ,cyrus-sasl)))
1590 (synopsis "User-space component to the Linux auditing system")
1592 "auditd is the user-space component to the Linux auditing system, which
1593 allows logging of system calls made by user-land processes. It's responsible
1594 for writing audit records to the disk. Viewing the logs is done with the
1595 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
1596 done with the @code{auditctl} utility.")
1597 (license license:gpl2+)))
1605 (uri (string-append "https://nmap.org/dist/nmap-" version
1609 "08bga42ipymmbxd7wy4x5sl26c0ir1fm3n9rc6nqmhx69z66wyd8"))
1610 (modules '((guix build utils)))
1612 '(map delete-file-recursively
1613 ;; Remove bundled lua, pcap, and pcre libraries.
1614 ;; FIXME: Remove bundled liblinear once packaged.
1618 ;; Remove pre-compiled binares.
1620 (build-system gnu-build-system)
1622 `(("openssl" ,openssl)
1623 ("libpcap" ,libpcap)
1627 ("python" ,python-2)))
1629 ;; TODO Add zenmap output.
1630 (outputs '("out" "ndiff"))
1632 '(#:configure-flags '("--without-zenmap")
1634 (modify-phases %standard-phases
1635 (add-after 'configure 'patch-Makefile
1637 (substitute* "Makefile"
1638 ;; Do not attempt to build lua.
1639 (("build-dnet build-lua") "build-dnet"))
1642 (lambda* (#:key outputs #:allow-other-keys)
1643 (define (make out . args)
1644 (unless (zero? (apply system* "make"
1645 (string-append "prefix=" out)
1647 (error "make failed")))
1648 (define (python-path dir)
1649 (string-append dir "/lib/python2.7/site-packages"))
1650 (let ((out (assoc-ref outputs "out"))
1651 (ndiff (assoc-ref outputs "ndiff")))
1652 (for-each mkdir-p (list out ndiff))
1658 (make ndiff "install-ndiff")
1659 (wrap-program (string-append ndiff "/bin/ndiff")
1660 `("PYTHONPATH" prefix
1661 (,(python-path ndiff)))))))
1662 ;; These are the tests that do not require network access.
1664 (lambda _ (zero? (system* "make"
1668 ;; Nmap can't cope with out-of-source building.
1669 #:out-of-source? #f))
1670 (home-page "https://nmap.org/")
1671 (synopsis "Network discovery and security auditing tool")
1673 "Nmap (\"Network Mapper\") is a network discovery and security auditing
1674 tool. It is also useful for tasks such as network inventory, managing service
1675 upgrade schedules, and monitoring host or service uptime. It also provides an
1676 advanced netcat implementation (ncat), a utility for comparing scan
1677 results (ndiff), and a packet generation and response analysis tool (nping).")
1678 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
1679 ;; both use a 3-clause BSD license.
1680 (license (list license:nmap license:bsd-3))))
1682 (define-public dstat
1689 "https://github.com/dagwieers/dstat/archive/"
1691 (file-name (string-append "dstat-" version ".tar.gz"))
1694 "16286z3y2lc9nsq8njzjkv6k2vyxrj9xiixj1k3gnsbvhlhkirj6"))))
1695 (build-system gnu-build-system)
1697 `(#:tests? #f ;; no make check
1698 #:make-flags (let ((out (assoc-ref %outputs "out")))
1699 (list (string-append "DESTDIR=" out)
1701 ;; no configure script
1702 #:phases (alist-delete 'configure %standard-phases)))
1703 (inputs `(("python-2" ,python-2)))
1704 (synopsis "Versatile resource statistics tool")
1705 (description "Dstat is a versatile replacement for @command{vmstat},
1706 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
1707 some of their limitations and adds some extra features, more counters and
1708 flexibility. Dstat is handy for monitoring systems during performance tuning
1709 tests, benchmarks or troubleshooting.
1711 Dstat allows you to view all of your system resources in real-time, you can,
1712 e.g., compare disk utilization in combination with interrupts from your IDE
1713 controller, or compare the network bandwidth numbers directly with the disk
1714 throughput (in the same interval).")
1715 (home-page "http://dag.wiee.rs/home-made/dstat/")
1716 (license license:gpl2+)))
1718 (define-public thefuck
1724 (uri (string-append "https://github.com/nvbn/thefuck/archive/"
1726 (file-name (string-append name "-" version ".tar.gz"))
1729 "191zbvkyc02h0wwd46xwj4zzg7jhlr8xv0ji6knqkgjnk0nvqq01"))
1730 (patches (search-patches "thefuck-test-environ.patch"))))
1731 (build-system python-build-system)
1734 (modify-phases %standard-phases
1736 (add-after 'install 'check
1737 (lambda* (#:key inputs outputs #:allow-other-keys)
1738 ;; Tests look for installed package
1739 (add-installed-pythonpath inputs outputs)
1740 ;; Some tests need write access to $HOME.
1741 (setenv "HOME" "/tmp")
1742 (zero? (system* "py.test" "-v")))))))
1744 `(("python-colorama" ,python-colorama)
1745 ("python-decorator" ,python-decorator)
1746 ("python-psutil" ,python-psutil)
1747 ("python-six" ,python-six)))
1749 `(("python-mock" ,python-mock)
1750 ("python-pytest" ,python-pytest)
1751 ("python-pytest-mock" ,python-pytest-mock)
1752 ;; Requires setuptools >= 17.1 due to some features used, while our
1753 ;; python currently only includes 12.0. TODO: Remove this input.
1754 ("python-setuptools" ,python-setuptools)))
1755 (home-page "https://github.com/nvbn/thefuck")
1756 (synopsis "Correct mistyped console command")
1758 "The Fuck tries to match a rule for a previous, mistyped command, creates
1759 a new command using the matched rule, and runs it.")
1760 (license license:x11)))
1769 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
1771 (base32 "1q25jy51qfzsym9b2w0cqzscq2j492gn60dy6gbp88m8nwm4sdy8"))))
1772 (build-system gnu-build-system)
1774 `(#:tests? #f ; Obscure test failures.
1776 (modify-phases %standard-phases
1778 (add-before 'build 'setup-environment
1779 (lambda* (#:key outputs #:allow-other-keys)
1781 (setenv "prefix" (assoc-ref outputs "out"))
1783 #:make-flags (list "--environment-overrides")))
1784 (home-page "https://www.gentoo.com/di/")
1785 (synopsis "Advanced df like disk information utility")
1787 "'di' is a disk information utility, displaying everything
1788 (and more) that your @code{df} command does. It features the ability to
1789 display your disk usage in whatever format you prefer. It is designed to be
1790 highly portable. Great for heterogeneous networks.")
1791 (license license:zlib)))
1793 (define-public cbatticon
1799 (uri (string-append "https://github.com/valr/"
1800 name "/archive/" version ".tar.gz"))
1803 "1rxlrwd817f2zl4fsc5ha43wjzfidq3yyagq4lgyi150qg36svv3"))
1804 (file-name (string-append name "-" version ".tar.gz"))))
1805 (build-system gnu-build-system)
1807 `(#:tests? #f ; no tests
1809 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1812 (modify-phases %standard-phases
1813 (delete 'configure)))) ; no configure script
1816 ("gettext" ,gettext-minimal)
1817 ("libnotify" ,libnotify)))
1819 `(("pkg-config" ,pkg-config)))
1820 (synopsis "Lightweight battery icon for the system tray")
1821 (description "cbatticon is a lightweight battery icon that displays
1822 the status of your battery in the system tray.")
1823 (home-page "https://github.com/valr/cbatticon")
1824 (license license:gpl2+)))
1826 (define-public interrobang
1827 (let ((revision "1")
1828 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
1830 (name "interrobang")
1831 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
1835 (url "git://github.com/TrilbyWhite/interrobang")
1837 (file-name (string-append name "-" version))
1840 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
1841 (build-system gnu-build-system)
1843 `(#:tests? #f ; no tests
1845 (modify-phases %standard-phases
1846 (delete 'configure)) ; no configure script
1847 #:make-flags (list (string-append "PREFIX="
1848 (assoc-ref %outputs "out")))))
1850 `(("libx11" ,libx11)))
1852 `(("pkg-config" ,pkg-config)))
1853 (synopsis "Scriptable launcher menu")
1854 (description "Interrobang is a scriptable launcher menu with a customizable
1855 shortcut syntax and completion options.")
1856 (home-page "https://github.com/TrilbyWhite/interrobang")
1857 (license license:gpl3+))))
1861 (define-public pam-krb5
1868 "https://archives.eyrie.org/software/kerberos/" name "-"
1872 "0abf8cfpkprmhw5ca8iyqgrggh65lgqvmfllc1y6qz7zw1gas894"))))
1873 (build-system gnu-build-system)
1876 (modify-phases %standard-phases
1877 (add-before 'configure 'disable-tests
1879 ;; The build container seems to interfere with some tests.
1880 (substitute* "tests/TESTS"
1881 (("module/basic\n") ""))
1882 (substitute* "tests/TESTS"
1883 (("pam-util/vector\n") ""))
1886 `(("linux-pam" ,linux-pam)
1887 ("mit-krb5" ,mit-krb5)))
1890 ("perl-test-pod" ,perl-test-pod))) ; required for tests
1891 (synopsis "Kerberos PAM module")
1893 "Pam-krb5 is a Kerberos PAM module for either MIT Kerberos or Heimdal.
1894 It supports ticket refreshing by screen savers, configurable
1895 authorization handling, authentication of non-local accounts for network
1896 services, password changing, and password expiration, as well as all the
1897 standard expected PAM features. It works correctly with OpenSSH, even
1898 with ChallengeResponseAuthentication and PrivilegeSeparation enabled,
1899 and supports extensive configuration either by PAM options or in
1900 krb5.conf or both. PKINIT is supported with recent versions of both MIT
1901 Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
1902 (home-page "http://www.eyrie.org/~eagle/software/pam-krb5")
1903 ;; Dual licenced under a homebrew non-copyleft OR GPL (any version)
1904 ;; However, the tarball does not contain a copy of the GPL, so unless
1905 ;; we put one in, we cannot distribute it under GPL without violating
1906 ;; clause requiring us to give all recipients a copy.
1907 (license license:gpl1+)))
1909 ;;http://archives.eyrie.org/software/kerberos/pam-krb5-4.7.tar.xz
1911 (define-public sunxi-tools
1913 (name "sunxi-tools")
1918 (uri (string-append "https://github.com/linux-sunxi/"
1919 "sunxi-tools/archive/v" version ".tar.gz"))
1921 (base32 "08iqwj95qw2s7ilhrdi2lkbc8dx64zk5lzz1qk587jr0lla81x41"))
1922 (modules '((guix build utils)))
1924 ;; Remove binaries contained in the tarball which are only for the
1925 ;; target and can be regenerated anyway.
1926 '(delete-file-recursively "bin"))
1927 (file-name (string-append name "-" version ".tar.gz"))))
1929 `(("pkg-config" ,pkg-config)
1930 ("cross-gcc" ,(cross-gcc "arm-linux-gnueabihf"
1931 #:xbinutils (cross-binutils "arm-linux-gnueabihf")
1932 #:libc (cross-libc "arm-linux-gnueabihf")))
1933 ("cross-libc" ,(cross-libc "arm-linux-gnueabihf"))))
1935 `(("libusb" ,libusb)))
1936 (build-system gnu-build-system)
1938 `(#:tests? #f ; no tests exist
1939 #:make-flags (list (string-append "PREFIX="
1940 (assoc-ref %outputs "out"))
1941 (string-append "CROSS_COMPILE="
1942 "arm-linux-gnueabihf-")
1945 (modify-phases %standard-phases
1947 (add-before 'build 'set-environment-up
1948 (lambda* (#:key make-flags #:allow-other-keys)
1950 (string-contains x "cross-arm-linux"))
1951 (setenv "CROSS_C_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))
1952 (setenv "CROSS_CPLUS_INCLUDE_PATH" (getenv "CPLUS_INCLUDE_PATH"))
1953 (setenv "CROSS_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
1956 (let* ((env-value (getenv env-name))
1957 (search-path (search-path-as-string->list env-value))
1958 (new-search-path (filter (lambda (e) (not (cross? e)))
1960 (new-env-value (list->search-path-as-string
1961 new-search-path ":")))
1962 (setenv env-name new-env-value)))
1963 '("C_INCLUDE_PATH" "CPLUS_INCLUDE_PATH" "LIBRARY_PATH"))
1966 (lambda* (#:key make-flags #:allow-other-keys)
1967 (zero? (apply system* "make" "tools" "misc" make-flags))))
1968 (add-after 'build 'build-armhf
1969 (lambda* (#:key make-flags #:allow-other-keys)
1970 (zero? (apply system* "make" "target-tools" make-flags))))
1972 (lambda* (#:key make-flags #:allow-other-keys)
1973 (zero? (apply system* "make" "install-all" "install-misc"
1975 (home-page "https://github.com/linux-sunxi/sunxi-tools")
1976 (synopsis "Hardware management tools for Allwinner computers")
1977 (description "This package contains tools for Allwinner devices:
1979 @item @command{sunxi-fexc}, @command{bin2fex}, @command{fex2bin}: Compile
1980 a textual description of a board (.fex) to a binary representation (.bin).
1981 @item @command{sunxi-fel}: Puts an Allwinner device into FEL mode which
1982 makes it register as a special USB device (rather than USB host).
1983 You can then connect it to another computer and flash it from there.
1984 @item @command{sunxi-nand-part}: Partitions NAND flash.
1985 @item @command{sunxi-bootinfo}: Reads out boot0 and boot1 (Allwinner
1986 bootloader) parameters.
1987 @item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
1988 in order to be able to find it.
1989 @item @command{sunxi-meminfo}: Prints memory bus settings.
1990 @item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
1992 (license license:gpl2+)))
1994 (define-public sedsed
2001 (uri (string-append "https://github.com/aureliojargas/sedsed/"
2002 "archive/v" version ".tar.gz"))
2003 (file-name (string-append name "-" version ".tar.gz"))
2006 "0139jkqvm8ipiwfj7k69ry2f9b1ffgpk79arpz4r7w9kf6h23bnh"))))
2007 (build-system python-build-system)
2009 `(#:tests? #f ; No tests.
2012 (modify-phases %standard-phases
2013 (add-after 'unpack 'patch-sed-in
2015 (substitute* "sedsed.py"
2017 (string-append "sedbin = '" (which "sed") "'")))
2021 (lambda* (#:key outputs #:allow-other-keys)
2022 (let* ((out (assoc-ref outputs "out"))
2023 (bin (string-append out "/bin")))
2024 ;; Just one file to copy around
2025 (install-file "sedsed.py" bin)
2027 (add-after 'install 'symlink
2028 ;; Create 'sedsed' symlink to "sedsed.py".
2029 (lambda* (#:key outputs #:allow-other-keys)
2030 (let* ((out (assoc-ref outputs "out"))
2031 (bin (string-append out "/bin"))
2032 (sed (string-append bin "/sedsed"))
2033 (sedpy (string-append bin "/sedsed.py")))
2036 (home-page "http://aurelio.net/projects/sedsed")
2037 (synopsis "Sed sed scripts")
2039 "@code{sedsed} can debug, indent, tokenize and HTMLize your sed(1) script.
2041 In debug mode it reads your script and add extra commands to it. When
2042 executed you can see the data flow between the commands, revealing all the
2043 magic sed does on its internal buffers.
2045 In indent mode your script is reformatted with standard spacing.
2047 In tokenize mode you can see the elements of every command you use.
2049 In HTMLize mode your script is converted to a beautiful colored HTML file,
2050 with all the commands and parameters identified for your viewing pleasure.
2052 With sedsed you can master any sed script. No more secrets, no more hidden
2054 (license license:expat)))
2056 (define-public intel-gpu-tools
2058 (name "intel-gpu-tools")
2062 (uri (string-append "https://cgit.freedesktop.org/xorg/app/"
2063 "intel-gpu-tools/snapshot/"
2064 "intel-gpu-tools-" version ".tar.gz"))
2067 "0w7djk0y5w76hzn1b3cm39zd5c6w9za1wfn80wd857h0v313rzq3"))))
2068 (build-system gnu-build-system)
2070 `(#:tests? #f ; many of the tests try to load kernel modules
2072 (modify-phases %standard-phases
2073 (add-after 'unpack 'autogen
2075 ;; Don't run configure in this phase
2076 (setenv "NOCONFIGURE" "1")
2077 (zero? (system* "sh" "autogen.sh")))))))
2079 `(("util-macros" ,util-macros)
2081 ("libpciaccess" ,libpciaccess)
2085 ("libunwind" ,libunwind)
2086 ("libxrandr" ,libxrandr)
2089 `(("autoconf" ,autoconf)
2090 ("automake" ,automake)
2091 ("libtool" ,libtool)
2092 ("pkg-config" ,pkg-config)))
2093 (home-page "https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/")
2094 (synopsis "Tools for development and testing of the Intel DRM driver")
2095 (description "Intel GPU Tools is a collection of tools for development and
2096 testing of the Intel DRM driver. There are many macro-level test suites that
2097 get used against the driver, including xtest, rendercheck, piglit, and
2098 oglconform, but failures from those can be difficult to track down to kernel
2099 changes, and many require complicated build procedures or specific testing
2100 environments to get useful results. Therefore, Intel GPU Tools includes
2101 low-level tools and tests specifically for development and testing of the
2103 (license license:expat)))
2105 (define-public fabric
2112 (uri (pypi-uri "Fabric" version))
2115 "0k944dxr41whw7ib6380q9x15wyskx7fqni656icdn8rzshn9bwq"))))
2116 (build-system python-build-system)
2118 `(#:python ,python-2)) ; Python 2 only
2120 `(("python2-fudge" ,python2-fudge)
2121 ("python2-jinja2" ,python2-jinja2)
2122 ("python2-nose" ,python2-nose)))
2124 `(("python2-paramiko" ,python2-paramiko)))
2125 (home-page "http://fabfile.org")
2126 (synopsis "Simple Pythonic remote execution and deployment tool")
2128 "Fabric is designed to upload files and run shell commands on a number of
2129 servers in parallel or serially. These commands are grouped in tasks (which
2130 are regular Python functions) and specified in a @dfn{fabfile}.
2132 It is similar to Capistrano, except it's implemented in Python and doesn't
2133 expect you to be deploying Rails applications. Fabric is a simple, Pythonic
2134 tool for remote execution and deployment.")
2135 (license license:bsd-2)))
2137 (define-public neofetch
2143 (uri (string-append "https://github.com/dylanaraps/neofetch/"
2144 "archive/" version ".tar.gz"))
2145 (file-name (string-append name "-" version ".tar.gz"))
2148 "07a32rzmch51znxspzyc7zyaldmr383v70b49wmnjdjs2qfdbv3a"))))
2149 (build-system gnu-build-system)
2151 '(#:tests? #f ; there are no tests
2153 (list (string-append "PREFIX=" %output))
2155 (modify-phases %standard-phases
2156 (add-after 'unpack 'patch-target-directories
2157 (lambda* (#:key outputs #:allow-other-keys)
2158 (let ((out (assoc-ref outputs "out")))
2159 (substitute* "Makefile"
2160 (("\\$\\(DESTDIR\\)/etc/")
2162 (substitute* "neofetch"
2163 (("\"/etc/neofetch")
2164 (string-append "\"" out "/etc/neofetch"))
2165 (("\"/usr/share/neofetch")
2166 (string-append "\"" out "/share/neofetch"))))
2168 (delete 'configure))))
2169 (home-page "https://github.com/dylanaraps/neofetch")
2170 (synopsis "System info script")
2171 (description "Neofetch is a CLI system information tool written in Bash.
2172 Neofetch displays information about your system next to an image, your OS
2173 logo, or any ASCII file of your choice. The main purpose of Neofetch is to be
2174 used in screenshots to show other users what operating system or distribution
2175 you are running, what theme or icon set you are using, etc.")
2176 (license license:expat)))
2184 (uri (string-append "https://github.com/jarun/nnn/"
2185 "archive/v" version ".tar.gz"))
2186 (file-name (string-append name "-" version ".tar.gz"))
2189 "0sivgcmg3hihz15v2wgbxnd0icn06pyvvqdqh8x0mwkhvm434fpb"))))
2190 (build-system gnu-build-system)
2191 (inputs `(("ncurses" ,ncurses)
2192 ("readline" ,readline)))
2194 '(#:tests? #f ; no tests
2196 ;; We do not provide `ncurses.h' within an `ncursesw'
2197 ;; sub-directory, so patch the source accordingly. See
2198 ;; <http://bugs.gnu.org/19018>.
2199 ;; Thanks to gtypist maintainer.
2200 (modify-phases %standard-phases
2201 (add-after 'unpack 'patch-curses-lib
2202 (lambda* (#:key outputs #:allow-other-keys)
2203 (let ((out (assoc-ref outputs "out")))
2204 (substitute* "Makefile"
2207 (substitute* "nnn.c"
2208 (("ncursesw\\/curses.h")
2211 (delete 'configure))
2214 (string-append "PREFIX="
2215 (assoc-ref %outputs "out"))
2216 (string-append "-Wl,-rpath="
2219 (home-page "https://github.com/jarun/nnn")
2220 (synopsis "Terminal file browser")
2221 (description "@command{nnn} is a fork of @command{noice}, a blazing-fast
2222 lightweight terminal file browser with easy keyboard shortcuts for
2223 navigation, opening files and running tasks. There is no config file and
2224 mime associations are hard-coded. The incredible user-friendliness and speed
2225 make it a perfect utility on modern distros.")
2226 (license license:bsd-2)))
2228 (define-public thermald
2235 (uri (string-append "https://github.com/01org/thermal_daemon/archive/v"
2237 (file-name (string-append name "-" version ".tar.gz"))
2239 "14klz9fnvi9jdlaqwrp61xa5nh051n8ykrs1fh1wxd7j66qf2fn6"))))
2240 (build-system gnu-build-system)
2242 `(#:phases (modify-phases %standard-phases
2244 'unpack 'autogen.sh-and-fix-paths
2245 (lambda* (#:key outputs #:allow-other-keys)
2246 (let ((out (assoc-ref outputs "out")))
2247 ;; upstartconfir is hardcoded to /etc/init and the build
2248 ;; system tries to mkdir that. We don't even need upstart
2249 ;; files at all; this is a fast and kludgy workaround
2250 (substitute* "data/Makefile.am"
2251 (("upstartconfdir = /etc/init")
2252 (string-append "upstartconfdir = "
2255 (zero? (system* "sh" "autogen.sh"))))))
2257 (let ((out (assoc-ref %outputs "out")))
2258 (list (string-append "--sysconfdir="
2260 (string-append "--with-udev-dir="
2262 (string-append "--with-dbus-sys-dir="
2263 out "/etc/dbus-1/system.d")
2264 "--localstatedir=/var"))))
2266 `(("autoconf" ,autoconf)
2267 ("automake" ,automake)
2268 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
2269 ("pkg-config" ,pkg-config)))
2271 `(("dbus-glib" ,dbus-glib)
2272 ("libxml2" ,libxml2)))
2273 (home-page "https://01.org/linux-thermal-daemon/")
2274 (synopsis "CPU scaling for thermal management")
2275 (description "The Linux Thermal Daemon helps monitor and control temperature
2276 on systems running the Linux kernel.")
2277 ;; arm and aarch64 don't have cpuid.h
2278 (supported-systems '("i686-linux" "x86_64-linux"))
2279 (license license:gpl2+)))