gnu: inxi: Fix up synopsis & description.
[jackhill/guix/guix.git] / gnu / packages / admin.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
4 ;;; Copyright © 2014, 2015, 2016, 2018 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014, 2015, 2016, 2017, 2018 Eric Bavier <bavier@member.fsf.org>
6 ;;; Copyright © 2015, 2016 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
7 ;;; Copyright © 2015 Alex Sassmannshausen <alex.sassmannshausen@gmail.com>
8 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
9 ;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name>
10 ;;; Copyright © 2016 Pjotr Prins <pjotr.guix@thebird.nl>
11 ;;; Copyright © 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
12 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
13 ;;; Copyright © 2016 Peter Feigl <peter.feigl@nexoid.at>
14 ;;; Copyright © 2016 John J. Foerch <jjfoerch@earthlink.net>
15 ;;; Copyright © 2016, 2017 Nils Gillmann <ng0@n0.is>
16 ;;; Copyright © 2016, 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
17 ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
18 ;;; Copyright © 2017 Ben Sturmfels <ben@sturm.com.au>
19 ;;; Copyright © 2017 Ethan R. Jones <doubleplusgood23@gmail.com>
20 ;;; Copyright © 2017 Christopher Allan Webber <cwebber@dustycloud.org>
21 ;;; Copyright © 2017, 2018 Marius Bakke <mbakke@fastmail.com>
22 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
23 ;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
24 ;;;
25 ;;; This file is part of GNU Guix.
26 ;;;
27 ;;; GNU Guix is free software; you can redistribute it and/or modify it
28 ;;; under the terms of the GNU General Public License as published by
29 ;;; the Free Software Foundation; either version 3 of the License, or (at
30 ;;; your option) any later version.
31 ;;;
32 ;;; GNU Guix is distributed in the hope that it will be useful, but
33 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
34 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35 ;;; GNU General Public License for more details.
36 ;;;
37 ;;; You should have received a copy of the GNU General Public License
38 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
39
40 (define-module (gnu packages admin)
41 #:use-module ((guix licenses) #:prefix license:)
42 #:use-module (guix packages)
43 #:use-module (guix utils)
44 #:use-module (guix download)
45 #:use-module (guix git-download)
46 #:use-module (guix build-system cmake)
47 #:use-module (guix build-system gnu)
48 #:use-module (guix build-system perl)
49 #:use-module (guix build-system python)
50 #:use-module (guix build-system trivial)
51 #:use-module (gnu packages)
52 #:use-module (gnu packages base)
53 #:use-module (gnu packages bash)
54 #:use-module (gnu packages check)
55 #:use-module (gnu packages cyrus-sasl)
56 #:use-module (gnu packages dns)
57 #:use-module (gnu packages file)
58 #:use-module (gnu packages ncurses)
59 #:use-module (gnu packages readline)
60 #:use-module (gnu packages linux)
61 #:use-module (gnu packages lua)
62 #:use-module (gnu packages guile)
63 #:use-module (gnu packages gettext)
64 #:use-module (gnu packages imagemagick)
65 #:use-module (gnu packages inkscape)
66 #:use-module (gnu packages pcre)
67 #:use-module (gnu packages perl)
68 #:use-module (gnu packages perl-check)
69 #:use-module (gnu packages tcl)
70 #:use-module (gnu packages compression)
71 #:use-module (gnu packages cross-base)
72 #:use-module (gnu packages tls)
73 #:use-module (gnu packages gnupg)
74 #:use-module (gnu packages bison)
75 #:use-module (gnu packages flex)
76 #:use-module (gnu packages gl)
77 #:use-module (gnu packages glib)
78 #:use-module (gnu packages openldap)
79 #:use-module (gnu packages mcrypt)
80 #:use-module (gnu packages pkg-config)
81 #:use-module (gnu packages popt)
82 #:use-module (gnu packages python)
83 #:use-module (gnu packages python-crypto)
84 #:use-module (gnu packages python-web)
85 #:use-module (gnu packages qt)
86 #:use-module (gnu packages terminals)
87 #:use-module (gnu packages texinfo)
88 #:use-module (gnu packages groff)
89 #:use-module (gnu packages pciutils)
90 #:use-module (gnu packages libunwind)
91 #:use-module (gnu packages libusb)
92 #:use-module (gnu packages libftdi)
93 #:use-module (gnu packages image)
94 #:use-module (gnu packages xorg)
95 #:use-module (gnu packages xdisorg)
96 #:use-module (gnu packages man)
97 #:use-module (gnu packages autotools)
98 #:use-module (gnu packages gnome)
99 #:use-module (gnu packages kerberos)
100 #:use-module (gnu packages gtk)
101 #:use-module (gnu packages xml)
102 #:use-module (gnu packages boost)
103 #:use-module (gnu packages elf)
104 #:use-module (gnu packages mpi)
105 #:use-module (gnu packages web))
106
107 (define-public aide
108 (package
109 (name "aide")
110 (version "0.16")
111 (source (origin
112 (method url-fetch)
113 (uri (string-append "mirror://sourceforge/aide/aide/"
114 version "/aide-" version ".tar.gz"))
115 (sha256
116 (base32
117 "0ibkv4z2gk14fn014kq13rp2ysiq6nn2cflv2q5i7zf466hm6758"))))
118 (build-system gnu-build-system)
119 (native-inputs
120 `(("bison" ,bison)
121 ("flex" ,flex)))
122 (inputs
123 `(("libgcrypt" ,libgcrypt)
124 ("libgpg-error" ,libgpg-error)
125 ("libmhash" ,libmhash)
126 ("pcre" ,pcre)
127 ("zlib" ,zlib)))
128 (synopsis "File and directory integrity checker")
129 (description
130 "AIDE (Advanced Intrusion Detection Environment) is a file and directory
131 integrity checker. It creates a database from the regular expression rules
132 that it finds from its configuration files. Once this database is initialized
133 it can be used to verify the integrity of the files. It has several message
134 digest algorithms that are used to check the integrity of files. All of the
135 usual file attributes can be checked for inconsistencies.")
136 (home-page "http://aide.sourceforge.net/")
137 (license license:gpl2+)))
138
139 (define-public progress
140 (package
141 (name "progress")
142 (version "0.13.1")
143 (source (origin
144 (method url-fetch)
145 (uri (string-append "https://github.com/Xfennec/"
146 name "/archive/v" version ".tar.gz"))
147 (sha256
148 (base32 "199rk6608q9m6l0fbjm0xl2w1c5krf8245dqnksdp4rqp7l9ak06"))
149 (file-name (string-append name "-" version ".tar.gz"))))
150 (build-system gnu-build-system)
151 (native-inputs
152 `(("pkg-config" ,pkg-config)
153 ("which" ,which)))
154 (inputs
155 `(("ncurses" ,ncurses)))
156 (arguments
157 `(#:tests? #f ; There is no test suite.
158 #:make-flags (list "CC=gcc"
159 (string-append "PREFIX=" (assoc-ref %outputs "out")))
160 #:phases
161 (modify-phases %standard-phases
162 (delete 'configure)))) ; There's no configure phase.
163 (home-page "https://github.com/Xfennec/progress")
164 (synopsis "Program to view the progress of the coreutils commands")
165 (description "A program that looks for coreutils basic commands (cp, mv,
166 dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
167 the percentage of copied data. It can also show estimated time and throughput,
168 and provides a \"top-like\" mode (monitoring).")
169 (license license:gpl3+)))
170
171 (define-public shepherd
172 (package
173 (name "shepherd")
174 (version "0.4.0")
175 (source (origin
176 (method url-fetch)
177 (uri (string-append "https://alpha.gnu.org/gnu/shepherd/shepherd-"
178 version ".tar.gz"))
179 (sha256
180 (base32
181 "1lgmsbxn8i8xdasxzkdp2cml75n128pplw6icvmspl6s0n9xmw8n"))))
182 (build-system gnu-build-system)
183 (arguments
184 '(#:configure-flags '("--localstatedir=/var")))
185 (native-inputs
186 `(("pkg-config" ,pkg-config)
187
188 ;; This is the Guile we use as a cross-compiler...
189 ("guile" ,guile-2.2)))
190 (inputs
191 ;; ... and this is the one that appears in shebangs when cross-compiling.
192 `(("guile" ,guile-2.2)
193
194 ;; The 'shepherd' command uses Readline when used interactively. It's
195 ;; an unusual use case though, so we don't propagate it.
196 ("guile-readline" ,guile-readline)))
197 (synopsis "System service manager")
198 (description
199 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
200 the execution of system services, replacing similar functionality found in
201 typical init systems. It provides dependency-handling through a convenient
202 interface and is based on GNU Guile.")
203 (license license:gpl3+)
204 (home-page "https://www.gnu.org/software/shepherd/")
205 (properties '((ftp-server . "alpha.gnu.org")))))
206
207 (define-public daemontools
208 (package
209 (name "daemontools")
210 (version "0.76")
211 (source (origin
212 (method url-fetch)
213 (uri (string-append
214 "https://cr.yp.to/" name "/"
215 name "-" version ".tar.gz"))
216 (sha256
217 (base32
218 "07scvw88faxkscxi91031pjkpccql6wspk4yrlnsbrrb5c0kamd5"))))
219 (build-system gnu-build-system)
220 (arguments
221 `(#:tests? #f ;; No tests as far as I can tell.
222 #:phases
223 (modify-phases %standard-phases
224 (add-after 'unpack 'chdir
225 (lambda _
226 (chdir ,(string-append name "-" version))))
227 (delete 'configure)
228 (add-before 'build 'patch
229 (lambda _
230 (substitute* "src/error.h"
231 (("extern int errno;")
232 "#include <errno.h>"))))
233 (replace 'build
234 (lambda _
235 (invoke "package/compile")))
236 (replace 'install
237 (lambda* (#:key outputs #:allow-other-keys)
238 (let* ((out (assoc-ref outputs "out"))
239 (bin (string-append out "/bin")))
240 (for-each (lambda (file)
241 (install-file file bin))
242 (find-files "command"))))))))
243 (synopsis "Tools for managing UNIX style services")
244 (description
245 "@code{daemontools} is a collection of tools for managing UNIX
246 services.")
247 (license license:public-domain)
248 (home-page "https://cr.yp.to/daemontools.html")))
249
250 (define-public dfc
251 (package
252 (name "dfc")
253 (version "3.1.1")
254 (source
255 (origin
256 (method url-fetch)
257 (uri (string-append
258 "http://projects.gw-computing.net/attachments/download/615/dfc-"
259 version ".tar.gz"))
260 (sha256
261 (base32
262 "0m1fd7l85ckb7bq4c5c3g257bkjglm8gq7x42pkmpp87fkknc94n"))))
263 (build-system cmake-build-system)
264 (arguments '(#:tests? #f)) ; There are no tests.
265 (native-inputs `(("gettext" ,gettext-minimal)))
266 (home-page "http://projects.gw-computing.net/projects/dfc")
267 (synopsis "Display file system space usage using graphs and colors")
268 (description
269 "dfc (df color) is a modern version of df. It uses colors, draws pretty
270 graphs and can export its output to different formats.")
271 (license license:bsd-3)))
272
273 (define-public htop
274 (package
275 (name "htop")
276 (version "2.2.0")
277 (source (origin
278 (method url-fetch)
279 (uri (string-append "http://hisham.hm/htop/releases/"
280 version "/htop-" version ".tar.gz"))
281 (sha256
282 (base32
283 "0mrwpb3cpn3ai7ar33m31yklj64c3pp576vh1naqff6f21pq5mnr"))))
284 (build-system gnu-build-system)
285 (inputs
286 `(("ncurses" ,ncurses)))
287 (native-inputs
288 `(("python" ,python-minimal-wrapper))) ; for scripts/MakeHeader.py
289 (home-page "https://hisham.hm/htop/")
290 (synopsis "Interactive process viewer")
291 (description
292 "This is htop, an interactive process viewer. It is a text-mode
293 application (for console or X terminals) and requires ncurses.")
294 (license license:gpl2)))
295
296 (define-public pies
297 (package
298 (name "pies")
299 (version "1.3")
300 (source
301 (origin
302 (method url-fetch)
303 (uri (string-append "mirror://gnu/pies/pies-"
304 version ".tar.bz2"))
305 (sha256
306 (base32
307 "12r7rjjyibjdj08dvwbp0iflfpzl4s0zhn6cr6zj3hwf9gbzgl1g"))))
308 (build-system gnu-build-system)
309 (arguments
310 '(#:phases (modify-phases %standard-phases
311 (add-before 'build 'patch-/bin/sh
312 (lambda* (#:key inputs #:allow-other-keys)
313 ;; Use the right shell when executing user-provided
314 ;; shell commands.
315 (let ((bash (assoc-ref inputs "bash")))
316 (substitute* "src/progman.c"
317 (("\"/bin/sh\"")
318 (string-append "\"" bash "/bin/sh\"")))
319 #t))))))
320 (home-page "https://www.gnu.org/software/pies/")
321 (synopsis "Program invocation and execution supervisor")
322 (description
323 "GNU pies is a program that supervises the invocation and execution of
324 other programs. It reads the list of programs to be started from its
325 configuration file, executes them, and then monitors their status,
326 re-executing them as necessary.")
327 (license license:gpl3+)))
328
329 (define-public inetutils
330 (package
331 (name "inetutils")
332 (version "1.9.4")
333 (source (origin
334 (method url-fetch)
335 (uri (string-append "mirror://gnu/inetutils/inetutils-"
336 version ".tar.gz"))
337 (sha256
338 (base32
339 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
340 (build-system gnu-build-system)
341 (arguments
342 `(#:configure-flags '("--localstatedir=/var"
343
344 ;; Make sure 'PATH_PROCNET_DEV' gets defined when
345 ;; cross-compiling (by default it does not.)
346 ,@(if (%current-target-system)
347 '("--with-path-procnet-dev=/proc/net/dev")
348 '()))
349 ;; On some systems, 'libls.sh' may fail with an error such as:
350 ;; "Failed to tell switch -a apart from -A".
351 #:parallel-tests? #f))
352 (inputs `(("ncurses" ,ncurses)
353 ("readline" ,readline))) ;for 'ftp'
354 (native-inputs `(("netstat" ,net-tools))) ;for tests
355 (home-page "https://www.gnu.org/software/inetutils/")
356 (synopsis "Basic networking utilities")
357 (description
358 "Inetutils is a collection of common network programs, such as an ftp
359 client and server, a telnet client and server, an rsh client and server, and
360 hostname.")
361 (license license:gpl3+)))
362
363 (define-public shadow
364 (package
365 (name "shadow")
366 (version "4.6")
367 (source (origin
368 (method url-fetch)
369 (uri (string-append
370 "https://github.com/shadow-maint/shadow/releases/"
371 "download/" version "/shadow-" version ".tar.xz"))
372 (sha256
373 (base32
374 "10smy01km2bqjjvsd2jz17zvrxbzj89qczyb1amk38j28bcci609"))))
375 (build-system gnu-build-system)
376 (arguments
377 `(;; Assume System V `setpgrp (void)', which is the default on GNU
378 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
379 #:configure-flags
380 '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
381
382 #:phases
383 (modify-phases %standard-phases
384 (add-before 'build 'set-nscd-file-name
385 (lambda* (#:key inputs #:allow-other-keys)
386 ;; Use the right file name for nscd.
387 (let ((libc (assoc-ref inputs
388 ,(if (%current-target-system)
389 "cross-libc"
390 "libc"))))
391 (substitute* "lib/nscd.c"
392 (("/usr/sbin/nscd")
393 (string-append libc "/sbin/nscd")))
394 #t)))
395 (add-after 'install 'remove-groups
396 (lambda* (#:key outputs #:allow-other-keys)
397 ;; Remove `groups', which is already provided by Coreutils.
398 (let* ((out (assoc-ref outputs "out"))
399 (bin (string-append out "/bin"))
400 (man (string-append out "/share/man")))
401 (delete-file (string-append bin "/groups"))
402 (for-each delete-file (find-files man "^groups\\."))
403 #t))))))
404
405 (inputs (if (string-contains (or (%current-target-system)
406 (%current-system))
407 "-linux")
408 `(("linux-pam" ,linux-pam))
409 '()))
410 (home-page "http://pkg-shadow.alioth.debian.org/")
411 (synopsis "Authentication-related tools such as passwd, su, and login")
412 (description
413 "Shadow provides a number of authentication-related tools, including:
414 login, passwd, su, groupadd, and useradd.")
415
416 ;; The `vipw' program is GPLv2+.
417 ;; libmisc/salt.c is public domain.
418 (license license:bsd-3)))
419
420 (define-public mingetty
421 (package
422 (name "mingetty")
423 (version "1.08")
424 (source (origin
425 (method url-fetch)
426 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
427 version "/mingetty-" version ".tar.gz"))
428 (sha256
429 (base32
430 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
431 (build-system gnu-build-system)
432 (arguments
433 `(#:phases
434 (modify-phases %standard-phases
435 (replace 'configure
436 (lambda* (#:key inputs outputs #:allow-other-keys)
437 (let* ((out (assoc-ref outputs "out"))
438 (man8 (string-append out "/share/man/man8"))
439 (sbin (string-append out "/sbin"))
440 (shadow (assoc-ref inputs "shadow"))
441 (login (string-append shadow "/bin/login")))
442 (substitute* "Makefile"
443 (("^SBINDIR.*")
444 (string-append "SBINDIR = " out
445 "/sbin\n"))
446 (("^MANDIR.*")
447 (string-append "MANDIR = " out
448 "/share/man/man8\n")))
449
450 ;; Pick the right 'login' by default.
451 (substitute* "mingetty.c"
452 (("\"/bin/login\"")
453 (string-append "\"" login "\"")))
454
455 (mkdir-p sbin)
456 (mkdir-p man8))
457 #t)))
458 #:tests? #f)) ; no tests
459 (inputs `(("shadow" ,shadow)))
460
461 (home-page "https://sourceforge.net/projects/mingetty")
462 (synopsis "Getty for the text console")
463 (description
464 "Small console getty that is started on the Linux text console,
465 asks for a login name and then transfers over to 'login'. It is extended to
466 allow automatic login and starting any app.")
467 (license license:gpl2+)))
468
469 (define-public net-base
470 (package
471 (name "net-base")
472 (version "5.3")
473 (source (origin
474 (method url-fetch)
475 (uri (string-append
476 "mirror://debian/pool/main/n/netbase/netbase_"
477 version ".tar.xz"))
478 (sha256
479 (base32
480 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
481 (build-system trivial-build-system)
482 (arguments
483 `(#:modules ((guix build utils))
484 #:builder (begin
485 (use-modules (guix build utils)
486 (srfi srfi-26))
487
488 (let* ((source (assoc-ref %build-inputs "source"))
489 (tar (assoc-ref %build-inputs "tar"))
490 (xz (assoc-ref %build-inputs "xz"))
491 (output (assoc-ref %outputs "out"))
492 (etc (string-append output "/etc")))
493 (setenv "PATH" (string-append xz "/bin"))
494 (invoke (string-append tar "/bin/tar") "xvf"
495 source)
496 (chdir ,(string-append "netbase-" version))
497 (mkdir-p etc)
498 (for-each copy-file
499 '("etc-services" "etc-protocols" "etc-rpc")
500 (map (cut string-append etc "/" <>)
501 '("services" "protocols" "rpc")))
502 #t))))
503 (native-inputs `(("tar" ,tar)
504 ("xz" ,xz)))
505 (synopsis "IANA protocol, port, and RPC number assignments")
506 (description
507 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
508 files, which contain information about the IANA-assigned port, protocol, and
509 ONC RPC numbers.")
510 (home-page "http://packages.debian.org/sid/netbase")
511 (license license:gpl2)))
512
513 (define-public netcat
514 (package
515 (name "netcat")
516 (version "0.7.1")
517 (source (origin
518 (method url-fetch)
519 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
520 "/netcat-" version ".tar.bz2"))
521 (sha256
522 (base32
523 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
524 (build-system gnu-build-system)
525 (arguments
526 `(#:configure-flags
527 ;; By default, man and info pages are put in PREFIX/{man,info},
528 ;; but we want them in PREFIX/share/{man,info}.
529 (let ((out (assoc-ref %outputs "out")))
530 (list (string-append "--mandir=" out "/share/man")
531 (string-append "--infodir=" out "/share/info")))))
532 (home-page "http://netcat.sourceforge.net")
533 (synopsis "Read and write data over TCP/IP")
534 (description
535 "Netcat is a featured networking utility which reads and writes data
536 across network connections, using the TCP/IP protocol. It is designed to be a
537 reliable \"back-end\" tool that can be used directly or easily driven by other
538 programs and scripts. At the same time, it is a feature-rich network debugging
539 and exploration tool, since it can create almost any kind of connection you
540 would need and has several interesting built-in capabilities.")
541 (license license:gpl2+)))
542
543 (define-public sipcalc
544 (package
545 (name "sipcalc")
546 (version "1.1.6")
547 (source
548 (origin
549 (method url-fetch)
550 (uri (string-append "http://www.routemeister.net/projects"
551 "/sipcalc/files/sipcalc" "-" version ".tar.gz"))
552 (sha256
553 (base32
554 "0mv3wndj4z2bsshh2k8d5sy3j8wxzgf8mzmmkvj1k8gpcz37dm6g"))))
555 (build-system gnu-build-system)
556 (home-page "http://www.routemeister.net/projects/sipcalc/")
557 (synopsis "Command-line IP subnet calculator")
558 (description
559 "Sipcalc is an advanced command-line IP subnet calculator. It can take
560 multiple forms of input (IPv4/IPv6/interface/hostname) and output a multitude
561 of information about a given subnet.
562
563 Features include:
564
565 @itemize @bullet
566 @item IPv4
567 @itemize
568 @item Retrieving of address information from interfaces.
569 @item Classfull and CIDR output.
570 @item Multiple address and netmask input and output formats (dotted quad, hex,
571 number of bits).
572 @item Output of broadcast address, network class, Cisco wildcard,
573 hosts/range, network range.
574 @item The ability to split a network based on a smaller netmask, now also with
575 recursive runs on the generated subnets. (also IPv6)
576 @end itemize
577 @item IPv6
578 @itemize
579 @item Compressed and expanded input and output addresses.
580 @item Standard IPv6 network output.
581 @item v4 in v6 output.
582 @item Reverse DNS address generation.
583 @end itemize
584 @end itemize\n")
585 (license license:bsd-3)))
586
587 (define-public alive
588 (package
589 (name "alive")
590 (version "2.0.2")
591 (source (origin
592 (method url-fetch)
593 (uri (string-append "mirror://gnu/alive/alive-"
594 version ".tar.xz"))
595 (sha256
596 (base32
597 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
598 (build-system gnu-build-system)
599 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
600 (inputs `(("guile" ,guile-2.0)
601 ("inetutils" ,inetutils)))
602 (home-page "https://www.gnu.org/software/alive/")
603 (synopsis "Autologin and keep-alive daemon")
604 (description
605 "GNU Alive sends periodic pings to a server, generally to keep a
606 connection alive.")
607 (license license:gpl3+)))
608
609 (define-public isc-dhcp
610 (let* ((bind-major-version "9")
611 (bind-minor-version "11")
612 (bind-patch-version "3")
613 (bind-release-type "") ; for patch release, use "-P"
614 (bind-release-version "") ; for patch release, e.g. "6"
615 (bind-version (string-append bind-major-version
616 "."
617 bind-minor-version
618 "."
619 bind-patch-version
620 bind-release-type
621 bind-release-version)))
622 (package
623 (name "isc-dhcp")
624 (version "4.4.1")
625 (source (origin
626 (method url-fetch)
627 (uri (string-append "http://ftp.isc.org/isc/dhcp/"
628 version "/dhcp-" version ".tar.gz"))
629 (sha256
630 (base32
631 "025nfqx4zwdgv4b3rkw26ihcj312vir08jk6yi57ndmb4a4m08ia"))))
632 (build-system gnu-build-system)
633 (arguments
634 `(#:parallel-build? #f
635 #:phases
636 (modify-phases %standard-phases
637 (add-after 'unpack 'replace-bundled-bind
638 (lambda* (#:key inputs #:allow-other-keys)
639 (delete-file "bind/bind.tar.gz")
640 (copy-file (assoc-ref inputs "bind-source-tarball")
641 "bind/bind.tar.gz")
642 (chmod "bind/bind.tar.gz" #o644)
643 (substitute* "bind/version.tmp"
644 (("^MAJORVER=.*")
645 (format #f "MAJORVER=~a\n" ,bind-major-version))
646 (("^MINORVER=.*")
647 (format #f "MINORVER=~a\n" ,bind-minor-version))
648 (("^PATCHVER=.*")
649 (format #f "PATCHVER=~a\n" ,bind-patch-version))
650 (("^RELEASETYPE=.*")
651 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
652 (("^RELEASEVER=.*")
653 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
654 #t))
655 (add-after 'configure 'post-configure
656 (lambda* (#:key outputs #:allow-other-keys)
657 ;; Point to the right client script, which will be
658 ;; installed in a later phase.
659 (substitute* "includes/dhcpd.h"
660 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
661 (let ((out (assoc-ref outputs "out")))
662 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
663 out "/libexec/dhclient-script"
664 "\"\n"))))
665
666 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
667 ;; we must patch shebangs in there and make sure the right
668 ;; shell is used.
669 (with-directory-excursion "bind"
670 (substitute* "Makefile"
671 (("\\./configure")
672 (let ((sh (which "sh")))
673 (string-append "./configure CONFIG_SHELL="
674 sh " SHELL=" sh))))
675
676 (let ((bind-directory (string-append "bind-" ,bind-version)))
677 (invoke "tar" "xf" "bind.tar.gz")
678 (for-each patch-shebang
679 (find-files bind-directory ".*"))
680 (invoke "tar" "cf" "bind.tar.gz"
681 bind-directory
682 ;; avoid non-determinism in the archive
683 "--sort=name"
684 "--mtime=@0"
685 "--owner=root:0"
686 "--group=root:0")))))
687 (add-after 'install 'post-install
688 (lambda* (#:key inputs outputs #:allow-other-keys)
689 ;; Install the dhclient script for GNU/Linux and make sure
690 ;; if finds all the programs it needs.
691 (let* ((out (assoc-ref outputs "out"))
692 (libexec (string-append out "/libexec"))
693 (coreutils (assoc-ref inputs "coreutils"))
694 (inetutils (assoc-ref inputs "inetutils"))
695 (net-tools (assoc-ref inputs "net-tools"))
696 (sed (assoc-ref inputs "sed")))
697 (substitute* "client/scripts/linux"
698 (("/sbin/ip")
699 (string-append (assoc-ref inputs "iproute")
700 "/sbin/ip")))
701
702 (mkdir-p libexec)
703 (copy-file "client/scripts/linux"
704 (string-append libexec "/dhclient-script"))
705
706 (wrap-program
707 (string-append libexec "/dhclient-script")
708 `("PATH" ":" prefix
709 ,(map (lambda (dir)
710 (string-append dir "/bin:"
711 dir "/sbin"))
712 (list inetutils net-tools coreutils sed))))
713 #t))))))
714
715 (native-inputs `(("perl" ,perl)))
716
717 (inputs `(("inetutils" ,inetutils)
718 ("net-tools" ,net-tools)
719 ("iproute" ,iproute)
720
721 ;; XXX isc-dhcp bundles a copy of bind that has security
722 ;; flaws, so we use a newer version.
723 ("bind-source-tarball"
724 ,(origin
725 (method url-fetch)
726 (uri (string-append "http://ftp.isc.org/isc/bind9/"
727 bind-version
728 "/bind-" bind-version ".tar.gz"))
729 (sha256
730 (base32
731 "1xbnb2b11274z9frc9y7nvkyxr52qx09bwb97gf9qzzcn8adx78d"))))
732
733 ;; When cross-compiling, we need the cross Coreutils and sed.
734 ;; Otherwise just use those from %FINAL-INPUTS.
735 ,@(if (%current-target-system)
736 `(("coreutils" ,coreutils)
737 ("sed" ,sed))
738 '())))
739
740 (home-page "http://www.isc.org/products/DHCP/")
741 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
742 (description
743 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
744 reference implementation of all aspects of DHCP, through a suite of DHCP
745 tools: server, client, and relay agent.")
746 (license license:mpl2.0)
747 (properties '((cpe-name . "dhcp"))))))
748
749 (define-public libpcap
750 (package
751 (name "libpcap")
752 (version "1.8.1")
753 (source (origin
754 (method url-fetch)
755 (uri (string-append "http://www.tcpdump.org/release/libpcap-"
756 version ".tar.gz"))
757 (sha256
758 (base32
759 "07jlhc66z76dipj4j5v3dig8x6h3k6cb36kmnmpsixf3zmlvqgb7"))))
760 (build-system gnu-build-system)
761 (native-inputs `(("bison" ,bison) ("flex" ,flex)))
762 (arguments '(#:configure-flags '("--with-pcap=linux")
763 #:tests? #f)) ; no 'check' target
764 (home-page "http://www.tcpdump.org")
765 (synopsis "Network packet capture library")
766 (description
767 "libpcap is an interface for user-level packet capture. It provides a
768 portable framework for low-level network monitoring. Applications include
769 network statistics collection, security monitoring, network debugging, etc.")
770
771 ;; fad-*.c and a couple other files are BSD-4, but the rest is BSD-3.
772 (license license:bsd-3)))
773
774 (define-public tcpdump
775 (package
776 (name "tcpdump")
777 (version "4.9.2")
778 (source (origin
779 (method url-fetch)
780 (uri (string-append "http://www.tcpdump.org/release/tcpdump-"
781 version ".tar.gz"))
782 (sha256
783 (base32
784 "0ygy0layzqaj838r5xd613iraz09wlfgpyh7pc6cwclql8v3b2vr"))))
785 (build-system gnu-build-system)
786 (inputs `(("libpcap" ,libpcap)
787 ("openssl" ,openssl)))
788 (native-inputs `(("perl" ,perl))) ; for tests
789 (home-page "http://www.tcpdump.org/")
790 (synopsis "Network packet analyzer")
791 (description
792 "Tcpdump is a command-line tool to analyze network traffic passing
793 through the network interface controller.")
794 (license license:bsd-3)))
795
796 (define-public jnettop
797 (package
798 (name "jnettop")
799 (version "0.13.0")
800 (source (origin
801 (method url-fetch)
802 (uri (string-append "http://jnettop.kubs.info/dist/jnettop-"
803 version ".tar.gz"))
804 (sha256
805 (base32
806 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
807 (build-system gnu-build-system)
808 (native-inputs
809 `(("pkg-config" ,pkg-config)))
810 (inputs
811 `(("glib" ,glib)
812 ("ncurses" ,ncurses)
813 ("libpcap" ,libpcap)))
814 (home-page "http://jnettop.kubs.info/")
815 (synopsis "Visualize network traffic by bandwidth use")
816 (description
817 "Jnettop is a traffic visualiser, which captures traffic going
818 through the host it is running from and displays streams sorted
819 by bandwidth they use.")
820 (license license:gpl2+)))
821
822 (define-public clusterssh
823 (package
824 (name "clusterssh")
825 (version "3.28")
826 (source (origin
827 (method url-fetch)
828 (uri (string-append "mirror://sourceforge/clusterssh/"
829 "1.%20ClusterSSH%20Series%203/" version
830 "/clusterssh-" version ".tar.gz"))
831 (sha256
832 (base32
833 "1bwggpvaj2al5blg1ynapviv2kpydffpzq2zkhi81najnvzc1rr7"))))
834 (build-system gnu-build-system)
835 (inputs `(("perl" ,perl)))
836 (propagated-inputs `(("xterm" ,xterm)
837 ("perl-tk" ,perl-tk)
838 ("perl-x11-protocol" ,perl-x11-protocol)))
839 (arguments
840 `(#:phases
841 (modify-phases %standard-phases
842 (add-after 'install 'set-load-paths
843 (lambda* (#:key inputs outputs #:allow-other-keys)
844 ;; Put the perl-tk and perl-x11-protocol modules in the perl inc
845 ;; path for PROG
846 (let* ((out (assoc-ref outputs "out"))
847 (prog (string-append out "/bin/cssh"))
848 (perl-ver ,(package-version perl))
849 (x11-inc (string-append
850 (assoc-ref inputs "perl-x11-protocol")
851 "/lib/perl5/site_perl/" perl-ver))
852 (tk-inc (string-append
853 (assoc-ref inputs "perl-tk")
854 "/lib/perl5/site_perl/" perl-ver
855 "/x86_64-linux")))
856 (wrap-program
857 prog
858 `("PERL5LIB" ":" prefix (,x11-inc ,tk-inc))))
859 #t)))))
860 ;; The clusterssh.sourceforge.net address requires login to view
861 (home-page "https://sourceforge.net/projects/clusterssh/")
862 (synopsis "Secure concurrent multi-server terminal control")
863 (description
864 "ClusterSSH controls a number of xterm windows via a single graphical
865 console window to allow commands to be interactively run on multiple servers
866 over ssh connections.")
867 (license license:gpl2+)))
868
869 (define-public rename
870 (package
871 (name "rename")
872 (version "0.20")
873 (source (origin
874 (method url-fetch)
875 (uri (string-append
876 "mirror://cpan/authors/id/R/RM/RMBARKER/File-Rename-"
877 version ".tar.gz"))
878 (sha256
879 (base32
880 "1cf6xx2hiy1xalp35fh8g73j67r0w0g66jpcbc6971x9jbm7bvjy"))))
881 (build-system perl-build-system)
882 (native-inputs
883 `(("perl-module-build" ,perl-module-build)
884 ("perl-test-pod" ,perl-test-pod)
885 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
886 (home-page "https://metacpan.org/pod/distribution/File-Rename/rename.PL")
887 (synopsis "Perl extension for renaming multiple files")
888 (description
889 "This package provides a Perl interface (@code{Perl::Rename}) as well
890 as a command-line utility (@command{rename}) that can rename multiple files
891 at once based on a Perl regular expression.")
892 (license license:perl-license)))
893
894 (define-public rottlog
895 (package
896 (name "rottlog")
897 (version "0.72.2")
898 (source (origin
899 (method url-fetch)
900 (uri (string-append "mirror://gnu/rottlog/rottlog-"
901 version ".tar.gz"))
902 (sha256
903 (base32
904 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
905 (modules '((guix build utils)))
906 (snippet
907 '(begin
908 (substitute* "Makefile.in"
909 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
910 ;; Don't try to chown root.
911 "")
912 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
913 ;; Don't attempt to create /var/lib/rottlog.
914 "true"))
915 #t))))
916 (build-system gnu-build-system)
917 (arguments
918 '(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
919 "--localstatedir=/var")
920
921 ;; Install example config files in OUT/etc.
922 #:make-flags (list (string-append "ROTT_ETCDIR="
923 (assoc-ref %outputs "out")
924 "/etc"))
925
926 #:phases (modify-phases %standard-phases
927 (add-after 'unpack 'patch-paths
928 (lambda _
929 (substitute* "rc/rc"
930 (("/usr/sbin/sendmail") "sendmail"))
931 #t))
932 (add-after 'build 'set-packdir
933 (lambda _
934 ;; Set a default location for archived logs.
935 (substitute* "rc/rc"
936 (("packdir=\"\"")
937 "packdir=\"/var/log\""))
938 #t))
939 (add-before 'install 'tweak-rc-weekly
940 (lambda _
941 (substitute* "rc/weekly"
942 (("/bin/kill")
943 (which "kill"))
944 (("syslogd\\.pid")
945 ;; The file is called 'syslog.pid' (no 'd').
946 "syslog.pid"))
947 #t))
948 (add-after 'install 'install-info
949 (lambda _
950 (zero? (system* "make" "install-info")))))))
951 (native-inputs `(("texinfo" ,texinfo)
952 ("util-linux" ,util-linux))) ; for 'cal'
953 (home-page "https://www.gnu.org/software/rottlog/")
954 (synopsis "Log rotation and management")
955 (description
956 "GNU Rot[t]log is a program for managing log files. It is used to
957 automatically rotate out log files when they have reached a given size or
958 according to a given schedule. It can also be used to automatically compress
959 and archive such logs. Rot[t]log will mail reports of its activity to the
960 system administrator.")
961 (license license:gpl3+)))
962
963 (define-public sudo
964 (package
965 (name "sudo")
966 (version "1.8.23")
967 (source (origin
968 (method url-fetch)
969 (uri
970 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
971 version ".tar.gz")
972 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
973 version ".tar.gz")))
974 (sha256
975 (base32
976 "0yg62wq8rcrbr7qvh3wgfg2g4bwanbi50cr2lf2cfyy8dydx4qyq"))
977 (modules '((guix build utils)))
978 (snippet
979 '(begin
980 (delete-file-recursively "lib/zlib")
981 #t))))
982 (build-system gnu-build-system)
983 (arguments
984 `(#:configure-flags
985 (list "--with-logpath=/var/log/sudo.log"
986 "--with-rundir=/var/run/sudo" ;must be cleaned up at boot time
987 "--with-vardir=/var/db/sudo"
988 "--with-iologdir=/var/log/sudo-io"
989
990 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
991 ;; provide it.
992 (string-append "CPPFLAGS=-D_PATH_MV='\""
993 (assoc-ref %build-inputs "coreutils")
994 "/bin/mv\"'"))
995
996 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
997 #:parallel-build? #f
998
999 #:phases
1000 (modify-phases %standard-phases
1001 (add-before 'configure 'pre-configure
1002 (lambda _
1003 (substitute* "src/sudo_usage.h.in"
1004 ;; Do not capture 'configure' arguments since we would
1005 ;; unduly retain references, and also because the
1006 ;; CPPFLAGS above would close the string literal
1007 ;; prematurely.
1008 (("@CONFIGURE_ARGS@") "\"\""))
1009 (substitute* (find-files "." "Makefile\\.in")
1010 (("-o [[:graph:]]+ -g [[:graph:]]+")
1011 ;; Allow installation as non-root.
1012 "")
1013 (("^install: (.*)install-sudoers(.*)" _ before after)
1014 ;; Don't try to create /etc/sudoers.
1015 (string-append "install: " before after "\n"))
1016 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
1017 ;; Don't try to create /run/sudo.
1018 "$(TMPDIR)/dummy")
1019 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
1020 ;; Don't try to create /var/db/sudo.
1021 "$(TMPDIR)/dummy"))
1022 #t)))
1023
1024 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
1025 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
1026 #:tests? #f))
1027 (inputs
1028 `(("groff" ,groff)
1029 ("linux-pam" ,linux-pam)
1030 ("zlib" ,zlib)
1031 ("coreutils" ,coreutils)))
1032 (home-page "https://www.sudo.ws/")
1033 (synopsis "Run commands as root")
1034 (description
1035 "Sudo (su \"do\") allows a system administrator to delegate authority to
1036 give certain users (or groups of users) the ability to run some (or all)
1037 commands as root or another user while providing an audit trail of the
1038 commands and their arguments.")
1039
1040 ;; See <http://www.sudo.ws/sudo/license.html>.
1041 (license license:x11)))
1042
1043 (define-public wpa-supplicant-minimal
1044 (package
1045 (name "wpa-supplicant-minimal")
1046 (version "2.6")
1047 (source (origin
1048 (method url-fetch)
1049 (uri (string-append
1050 "http://w1.fi/releases/wpa_supplicant-"
1051 version
1052 ".tar.gz"))
1053 (patches (search-patches "wpa-supplicant-CVE-2017-13082.patch"
1054 "wpa-supplicant-fix-key-reuse.patch"
1055 "wpa-supplicant-fix-zeroed-keys.patch"
1056 "wpa-supplicant-fix-nonce-reuse.patch"
1057 "wpa-supplicant-krack-followups.patch"))
1058 (sha256
1059 (base32
1060 "0l0l5gz3d5j9bqjsbjlfcv4w4jwndllp9fmyai4x9kg6qhs6v4xl"))))
1061 (build-system gnu-build-system)
1062 (arguments
1063 '(#:phases
1064 (modify-phases %standard-phases
1065 (replace 'configure
1066 (lambda* (#:key outputs #:allow-other-keys)
1067 (chdir "wpa_supplicant")
1068 (copy-file "defconfig" ".config")
1069 (let ((port (open-file ".config" "al")))
1070 (display "
1071 CONFIG_DEBUG_SYSLOG=y
1072
1073 # Choose GnuTLS (the default is OpenSSL.)
1074 CONFIG_TLS=gnutls
1075
1076 CONFIG_DRIVER_NL80211=y
1077 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
1078 CONFIG_LIBNL32=y
1079 CONFIG_READLINE=y\n" port)
1080 (close-port port))))
1081 (add-after 'install 'install-man-pages
1082 (lambda* (#:key outputs #:allow-other-keys)
1083 (let* ((out (assoc-ref outputs "out"))
1084 (man (string-append out "/share/man"))
1085 (man5 (string-append man "/man5"))
1086 (man8 (string-append man "/man8")))
1087 (define (copy-man-page target)
1088 (lambda (file)
1089 (install-file file target)))
1090
1091 (mkdir-p man5) (mkdir man8)
1092 (for-each (copy-man-page man5)
1093 (find-files "doc/docbook" "\\.5"))
1094 (for-each (copy-man-page man8)
1095 (find-files "doc/docbook" "\\.8"))
1096 #t))))
1097
1098 #:make-flags (list "CC=gcc"
1099 (string-append "BINDIR=" (assoc-ref %outputs "out")
1100 "/sbin")
1101 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1102 "/lib"))
1103 #:tests? #f))
1104 (inputs
1105 `(("readline" ,readline)
1106 ("libnl" ,libnl)
1107 ("gnutls" ,gnutls)
1108 ("libgcrypt" ,libgcrypt))) ;needed by crypto_gnutls.c
1109 (native-inputs
1110 `(("pkg-config" ,pkg-config)))
1111 (home-page "http://w1.fi/wpa_supplicant/")
1112 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
1113 (description
1114 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
1115 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
1116 the client stations. It implements key negotiation with a WPA Authenticator
1117 and it controls the roaming and IEEE 802.11 authentication/association of the
1118 WLAN driver.
1119
1120 This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
1121
1122 ;; In practice, this is linked against Readline, which makes it GPLv3+.
1123 (license license:bsd-3)))
1124
1125 (define-public wpa-supplicant
1126 (package (inherit wpa-supplicant-minimal)
1127 (name "wpa-supplicant")
1128 (inputs `(("dbus" ,dbus)
1129 ,@(package-inputs wpa-supplicant-minimal)))
1130 (arguments
1131 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
1132 ((#:phases phases)
1133 `(modify-phases ,phases
1134 (add-after 'configure 'configure-for-dbus
1135 (lambda _
1136 (let ((port (open-file ".config" "al")))
1137 (display "
1138 CONFIG_CTRL_IFACE_DBUS=y
1139 CONFIG_CTRL_IFACE_DBUS_NEW=y
1140 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
1141 (close-port port))
1142 #t))
1143 (add-after 'install-man-pages 'install-dbus-conf
1144 (lambda* (#:key outputs #:allow-other-keys)
1145 (let* ((out (assoc-ref outputs "out"))
1146 (dir (string-append out "/etc/dbus-1/system.d")))
1147 (mkdir-p dir)
1148 (copy-file "dbus/dbus-wpa_supplicant.conf"
1149 (string-append dir "/wpa_supplicant.conf")))
1150 #t))))))))
1151
1152 (define-public wpa-supplicant-gui
1153 (package
1154 (inherit wpa-supplicant)
1155 (name "wpa-supplicant-gui")
1156 (inputs `(("qtbase" ,qtbase)
1157 ("qtsvg" ,qtsvg)
1158 ,@(package-inputs wpa-supplicant)))
1159 (native-inputs
1160 ;; For icons.
1161 `(("imagemagick" ,imagemagick)
1162 ("inkscape" ,inkscape)
1163 ,@(package-native-inputs wpa-supplicant)))
1164 (arguments
1165 `(#:phases (modify-phases %standard-phases
1166 (add-after 'unpack 'chdir
1167 (lambda _
1168 (chdir "wpa_supplicant/wpa_gui-qt4")
1169 #t))
1170 (delete 'configure)
1171 (replace 'build
1172 (lambda _
1173 (invoke "qmake" "wpa_gui.pro")
1174 (invoke "make" "-j" (number->string (parallel-job-count)))
1175 (invoke "make" "-C" "icons")))
1176 (replace 'install
1177 (lambda* (#:key inputs outputs #:allow-other-keys)
1178 (let ((out (assoc-ref outputs "out"))
1179 (qt '("qtbase" "qtsvg")))
1180 (substitute* "wpa_gui.desktop"
1181 (("Exec=wpa_gui")
1182 (string-append "Exec=" out "/bin/wpa_gui")))
1183 (install-file "wpa_gui" (string-append out "/bin"))
1184 (install-file "wpa_gui.desktop"
1185 (string-append out "/share/applications"))
1186 (copy-recursively "icons/hicolor"
1187 (string-append out "/share/icons/hicolor"))
1188 (wrap-program (string-append out "/bin/wpa_gui")
1189 `("QT_PLUGIN_PATH" ":" prefix
1190 ,(map (lambda (label)
1191 (string-append (assoc-ref inputs label)
1192 "/lib/qt5/plugins/"))
1193 qt)))
1194 #t))))))
1195 (synopsis "Graphical user interface for WPA supplicant")))
1196
1197 (define-public wakelan
1198 (package
1199 (name "wakelan")
1200 (version "1.1")
1201 (source (origin
1202 (method url-fetch)
1203 (uri (string-append
1204 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
1205 version ".tar.gz"))
1206 (sha256
1207 (base32
1208 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
1209 (build-system gnu-build-system)
1210 (arguments
1211 '(#:phases
1212 (modify-phases %standard-phases
1213 (replace 'configure
1214 (lambda* (#:key outputs #:allow-other-keys)
1215 (let ((out (assoc-ref outputs "out")))
1216 (mkdir-p (string-append out "/bin"))
1217 (mkdir-p (string-append out "/share/man/man1"))
1218
1219 ;; It's an old configure script that doesn't understand
1220 ;; the extra options we pass.
1221 (setenv "CONFIG_SHELL" (which "bash"))
1222 (zero?
1223 (system* "./configure"
1224 (string-append "--prefix=" out)
1225 (string-append "--mandir=" out
1226 "/share/man")))))))
1227 #:tests? #f))
1228 (home-page "http://kernel.org") ; really, no home page
1229 (synopsis "Send a wake-on-LAN packet")
1230 (description
1231 "WakeLan broadcasts a properly formatted UDP packet across the local area
1232 network, which causes enabled computers to power on.")
1233 (license license:gpl2+)))
1234
1235 (define-public dmidecode
1236 (package
1237 (name "dmidecode")
1238 (version "3.1")
1239 (source (origin
1240 (method url-fetch)
1241 (uri (string-append
1242 "mirror://savannah/dmidecode/dmidecode-"
1243 version ".tar.xz"))
1244 (sha256
1245 (base32
1246 "1h0sg0lxa15nzf8s7884p6q7p6md9idm0c79wyqmk32l4ndwwrnp"))))
1247 (build-system gnu-build-system)
1248 (arguments
1249 '(#:phases (modify-phases %standard-phases (delete 'configure))
1250 #:tests? #f ; no 'check' target
1251 #:make-flags (list (string-append "prefix="
1252 (assoc-ref %outputs "out")))))
1253 (home-page "https://www.nongnu.org/dmidecode/")
1254 (synopsis "Read hardware information from the BIOS")
1255 (description
1256 "Dmidecode reports information about your system's hardware as described
1257 in your system BIOS according to the SMBIOS/DMI standard. This typically
1258 includes system manufacturer, model name, serial number, BIOS version, asset
1259 tag as well as a lot of other details of varying level of interest and
1260 reliability depending on the manufacturer. This will often include usage
1261 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1262 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1263 (license license:gpl2+)))
1264
1265 (define-public acpica
1266 (package
1267 (name "acpica")
1268 (version "20180531")
1269 (source (origin
1270 (method url-fetch)
1271 (uri (string-append
1272 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1273 version ".tar.gz"))
1274 (sha256
1275 (base32
1276 "0q7vg1nr51f3rg16vjh4glz361a64r6gpm46fqkl2jf4fq7g43g5"))))
1277 (build-system gnu-build-system)
1278 (native-inputs `(("flex" ,flex)
1279 ("bison" ,bison)))
1280 (arguments
1281 '(#:make-flags (list (string-append "PREFIX=" %output)
1282 "CC=gcc"
1283 "HOST=_LINUX"
1284 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1285 #:tests? #f ; no 'check' target
1286 #:phases (modify-phases %standard-phases (delete 'configure))))
1287 (home-page "https://acpica.org/")
1288 (synopsis "Tools for the development and debug of ACPI tables")
1289 (description
1290 "The ACPI Component Architecture (@dfn{ACPICA}) project provides an
1291 OS-independent reference implementation of the Advanced Configuration and
1292 Power Interface Specification (@dfn{ACPI}). ACPICA code contains those portions
1293 of ACPI meant to be directly integrated into the host OS as a kernel-resident
1294 subsystem, and a small set of tools to assist in developing and debugging ACPI
1295 tables. This package contains only the user-space tools needed for ACPI table
1296 development, not the kernel implementation of ACPI.")
1297 (license license:gpl2))) ; dual GPLv2/ACPICA Licence
1298
1299 (define-public stress
1300 (package
1301 (name "stress")
1302 (version "1.0.4")
1303 (source (origin
1304 (method url-fetch)
1305 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1306 version ".orig.tar.gz"))
1307 (sha256
1308 (base32
1309 "0nw210jajk38m3y7h8s130ps2qsbz7j75wab07hi2r3hlz14yzh5"))))
1310 (build-system gnu-build-system)
1311 (home-page "https://packages.debian.org/sid/stress")
1312 (synopsis "Impose load on and stress test a computer system")
1313 (description
1314 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
1315 or disk stress on a POSIX-compliant operating system and reports any errors it
1316 detects.
1317
1318 Stress is not a benchmark. It is a tool used by system administrators to
1319 evaluate how well their systems will scale, by kernel programmers to evaluate
1320 perceived performance characteristics, and by systems programmers to expose
1321 the classes of bugs which only or more frequently manifest themselves when the
1322 system is under heavy load.")
1323 (license license:gpl2+)))
1324
1325 (define-public detox
1326 (package
1327 (name "detox")
1328 (version "1.2.0")
1329 (source (origin
1330 (method url-fetch)
1331 (uri (string-append "mirror://sourceforge/detox/detox/" version
1332 "/detox-" version ".tar.bz2"))
1333 (sha256
1334 (base32
1335 "1y6vvjqsg54kl49cry73jbfhr04s7wjs779vrr9zrq6kww7dkymb"))))
1336 (build-system gnu-build-system)
1337 ;; Both flex and popt are used in this case for their runtime libraries
1338 ;; (libfl and libpopt).
1339 (inputs
1340 `(("flex" ,flex)
1341 ("popt" ,popt)))
1342 (arguments
1343 `(#:configure-flags `(,(string-append "--with-popt="
1344 (assoc-ref %build-inputs "popt")))
1345 #:tests? #f)) ;no 'check' target
1346 (home-page "http://detox.sourceforge.net")
1347 (synopsis "Clean up file names")
1348 (description
1349 "Detox is a program that renames files to make them easier to work with
1350 under Unix and related operating systems. Spaces and various other unsafe
1351 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1352 characters can be replaced as well, as can UTF-8 characters.")
1353 (license license:bsd-3)))
1354
1355 (define-public testdisk
1356 (package
1357 (name "testdisk")
1358 (version "7.0")
1359 (source (origin
1360 (method url-fetch)
1361 (uri (string-append "http://www.cgsecurity.org/testdisk-"
1362 version ".tar.bz2"))
1363 (sha256
1364 (base32
1365 "0ba4wfz2qrf60vwvb1qsq9l6j0pgg81qgf7fh22siaz649mkpfq0"))))
1366 (build-system gnu-build-system)
1367 (inputs
1368 `(("ntfs-3g" ,ntfs-3g)
1369 ("util-linux" ,util-linux)
1370 ("openssl" ,openssl)
1371 ;; FIXME: add reiserfs
1372 ("zlib" ,zlib)
1373 ("e2fsprogs" ,e2fsprogs)
1374 ("libjpeg" ,libjpeg)
1375 ("ncurses" ,ncurses)))
1376 (home-page "https://www.cgsecurity.org/wiki/TestDisk")
1377 (synopsis "Data recovery tool")
1378 (description
1379 "TestDisk is a program for data recovery, primarily designed to help
1380 recover lost partitions and/or make non-booting disks bootable again.")
1381 (license license:gpl2+)))
1382
1383 (define-public tree
1384 (package
1385 (name "tree")
1386 (version "1.7.0")
1387 (source (origin
1388 (method url-fetch)
1389 (uri (string-append
1390 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1391 version ".tgz"))
1392 (sha256
1393 (base32 "04kviw799qxly08zb8n5mgxfd96gyis6x69q2qiw86jnh87c4mv9"))))
1394 (build-system gnu-build-system)
1395 (arguments
1396 '(#:phases (modify-phases %standard-phases (delete 'configure))
1397 #:tests? #f ; no check target
1398 #:make-flags (let ((out (assoc-ref %outputs "out")))
1399 (list (string-append "prefix=" out)))))
1400 (synopsis "Recursively list the contents of a directory")
1401 (description
1402 "Tree is a recursive directory listing command that produces a depth
1403 indented listing of files, which is colorized ala dircolors if the LS_COLORS
1404 environment variable is set and output is to tty.")
1405 (home-page "http://mama.indstate.edu/users/ice/tree/")
1406 (license license:gpl2+)))
1407
1408 (define-public direvent
1409 (package
1410 (name "direvent")
1411 (version "5.1")
1412 (source (origin
1413 (method url-fetch)
1414 (uri (string-append "mirror://gnu/direvent/direvent-"
1415 version ".tar.gz"))
1416 (sha256
1417 (base32
1418 "1nwvjmx7kb14ni34c0b8x9a3791pc20gvhj7xaj66d8q4h6n0qf4"))
1419 (modules '((guix build utils)))
1420 (snippet '(begin
1421 (substitute* "tests/testsuite"
1422 (("#![[:blank:]]?/bin/sh")
1423 "#!$SHELL"))
1424 #t))))
1425 (build-system gnu-build-system)
1426 (arguments
1427 '(#:phases
1428 (modify-phases %standard-phases
1429 (add-before 'build 'patch-/bin/sh
1430 (lambda* (#:key inputs #:allow-other-keys)
1431 ;; Use the right shell when executing the watcher and
1432 ;; user-provided shell commands.
1433 (let ((bash (assoc-ref inputs "bash")))
1434 (substitute* '("src/direvent.c" "src/progman.c")
1435 (("\"/bin/sh\"")
1436 (string-append "\"" bash "/bin/sh\"")))
1437
1438 ;; Adjust the 'shell.at' test accordingly.
1439 (substitute* "tests/testsuite"
1440 (("SHELL=/bin/sh")
1441 (string-append "SHELL=" bash "/bin/sh")))
1442
1443 #t))))))
1444 (home-page "https://www.gnu.org/software/direvent/")
1445 (synopsis "Daemon to monitor directories for events such as file removal")
1446 (description
1447 "A daemon that monitors directories for events, such as creating,
1448 deleting or modifying files. It can monitor different sets of directories for
1449 different events. When an event is detected, direvent calls a specified
1450 external program with information about the event, such as the location
1451 within the file system where it occurred. Thus, \"direvent\" provides an
1452 easy way to react immediately if given files undergo changes, for example, to
1453 track changes in important system configuration files.")
1454 (license license:gpl3+)))
1455
1456 (define-public libcap-ng
1457 (package
1458 (name "libcap-ng")
1459 (version "0.7.9")
1460 (source (origin
1461 (method url-fetch)
1462 (uri (string-append
1463 "http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1464 version ".tar.gz"))
1465 (sha256
1466 (base32
1467 "0a0k484kwv0zilry2mbl9k56cnpdhsjxdxin17jas6kkyfy345aa"))))
1468 (build-system gnu-build-system)
1469 (arguments
1470 `(#:configure-flags
1471 (list "--without-python")))
1472 (home-page "https://people.redhat.com/sgrubb/libcap-ng/")
1473 (synopsis "Library for more easily working with POSIX capabilities")
1474 (description
1475 "The libcap-ng library is intended to make programming with POSIX
1476 capabilities easier than the traditional libcap library. It includes
1477 utilities that can analyse all currently running applications and print out
1478 any capabilities and whether or not it has an open ended bounding set. The
1479 included utilities are designed to let admins and developers spot apps from
1480 various ways that may be running with too much privilege.")
1481 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1482 (license (list license:lgpl2.1+ license:gpl2+))))
1483
1484 (define-public smartmontools
1485 (package
1486 (name "smartmontools")
1487 (version "6.6")
1488 (source (origin
1489 (method url-fetch)
1490 (uri (string-append
1491 "mirror://sourceforge/smartmontools/smartmontools/"
1492 version "/smartmontools-" version ".tar.gz"))
1493 (sha256
1494 (base32
1495 "0m1hllbb78rr6cxkbalmz1gqkl0psgq8rrmv4gwcmz34n07kvx2i"))))
1496 (build-system gnu-build-system)
1497 (inputs `(("libcap-ng" ,libcap-ng)))
1498 (home-page "https://www.smartmontools.org/")
1499 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1500 (description
1501 "The smartmontools package contains utility programs to control and
1502 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1503 Technology System (@dfn{S.M.A.R.T.}) built into most modern ATA and SCSI hard
1504 disks. In many cases, these utilities will provide advanced warning of disk
1505 degradation and failure.")
1506 (license license:gpl2+)))
1507
1508 (define-public fdupes
1509 (package
1510 (name "fdupes")
1511 (version "1.6.1")
1512 (source
1513 (origin
1514 (method url-fetch)
1515 (uri (string-append
1516 "https://github.com/adrianlopezroche/fdupes/archive/v"
1517 version ".tar.gz"))
1518 (file-name (string-append name "-" version ".tar.gz"))
1519 (sha256
1520 (base32
1521 "1sj9pa40pbz6xdwbxfwhdhkvhdf1xc5gvggk9mdq26c41gdnyswx"))))
1522 (build-system gnu-build-system)
1523 (arguments
1524 '(#:phases (modify-phases %standard-phases
1525 (delete 'configure))
1526 #:tests? #f ; no 'check' target
1527 #:make-flags (list "CC=gcc"
1528 (string-append "PREFIX="
1529 (assoc-ref %outputs "out")))))
1530 (home-page "https://github.com/adrianlopezroche/fdupes")
1531 (synopsis "Identify duplicate files")
1532 (description
1533 "fdupes is a program for identifying duplicate files residing within
1534 specified directories.")
1535 (license license:expat)))
1536
1537 (define-public graphios
1538 (package
1539 (name "graphios")
1540 (version "2.0.3")
1541 (source
1542 (origin
1543 (method url-fetch)
1544 (uri (string-append
1545 "https://pypi.python.org/packages/source/g/graphios/graphios-"
1546 version ".tar.gz"))
1547 (sha256
1548 (base32
1549 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1550 (build-system python-build-system)
1551 (arguments
1552 ;; Be warned: Building with Python 3 succeeds, but the build process
1553 ;; throws a syntax error that is ignored.
1554 `(#:python ,python-2
1555 #:phases
1556 (modify-phases %standard-phases
1557 (add-before 'build 'fix-setup.py
1558 (lambda* (#:key outputs #:allow-other-keys)
1559 ;; Fix hardcoded, unprefixed file names.
1560 (let ((out (assoc-ref outputs "out")))
1561 (substitute* '("setup.py")
1562 (("/etc") (string-append out "/etc"))
1563 (("/usr") out)
1564 (("distro_ver = .*") "distro_ver = ''"))
1565 #t))))))
1566 (home-page "https://github.com/shawn-sterling/graphios")
1567 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1568 (description
1569 "Graphios is a script to emit nagios perfdata to various upstream metrics
1570 processing and time-series systems. It's currently compatible with Graphite,
1571 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1572 of supported upstream metrics systems simultaneously.")
1573 (license license:gpl2+)))
1574
1575 (define-public ansible
1576 (package
1577 (name "ansible")
1578 (version "2.4.2.0")
1579 (source
1580 (origin
1581 (method url-fetch)
1582 (uri (pypi-uri "ansible" version))
1583 (sha256
1584 (base32
1585 "0n3n9py4s3aykiii31xq8g4wmd6693jvby0424pjrg0bna01apri"))
1586 (patches (search-patches "ansible-wrap-program-hack.patch"))))
1587 (build-system python-build-system)
1588 (native-inputs
1589 `(("python2-bcrypt" ,python2-bcrypt)
1590 ("python2-pycrypto" ,python2-pycrypto)
1591 ("python2-pynacl" ,python2-pynacl)
1592 ("python2-httplib2" ,python2-httplib2)
1593 ("python2-passlib" ,python2-passlib)
1594 ("python2-nose" ,python2-nose)
1595 ("python2-mock" ,python2-mock)
1596 ("python2-jinja2" ,python2-jinja2)
1597 ("python2-pyyaml" ,python2-pyyaml)
1598 ("python2-paramiko" ,python2-paramiko)))
1599 (inputs
1600 `(("python2-pycrypto" ,python2-pycrypto)
1601 ("python2-jinja2" ,python2-jinja2)
1602 ("python2-pyyaml" ,python2-pyyaml)
1603 ("python2-paramiko" ,python2-paramiko)))
1604 (arguments
1605 `(#:python ,python-2)) ; incompatible with Python 3
1606 (home-page "https://www.ansible.com/")
1607 (synopsis "Radically simple IT automation")
1608 (description "Ansible is a radically simple IT automation system. It
1609 handles configuration management, application deployment, cloud provisioning,
1610 ad hoc task execution, and multinode orchestration---including trivializing
1611 things like zero-downtime rolling updates with load balancers.")
1612 (license license:gpl3+)))
1613
1614 (define-public cpulimit
1615 (package
1616 (name "cpulimit")
1617 (version "0.2")
1618 (source
1619 (origin
1620 (method url-fetch)
1621 (uri (string-append "https://github.com/opsengine/cpulimit/archive/v"
1622 version ".tar.gz"))
1623 (file-name (string-append name "-" version ".tar.gz"))
1624 (sha256
1625 (base32
1626 "1nn2w849xd5bw4y5sqnll29nxdwl5h0cv4smc7dwmpb9qnd2ycb4"))))
1627 (build-system gnu-build-system)
1628 (arguments
1629 `(#:phases (modify-phases %standard-phases
1630 (delete 'configure)
1631 (replace
1632 'build
1633 (lambda _
1634 (zero? (system* "make" "CC=gcc" "-Csrc"))))
1635 (replace
1636 'check
1637 (lambda _
1638 (zero? (system* "make" "CC=gcc" "-Ctests"))))
1639 (replace
1640 'install
1641 (lambda* (#:key outputs #:allow-other-keys)
1642 (let* ((out (assoc-ref outputs "out"))
1643 (bin (string-append out "/bin")))
1644 (install-file "src/cpulimit" bin)))))))
1645 (home-page "https://github.com/opsengine/cpulimit")
1646 (synopsis "Limit CPU usage")
1647 (description
1648 "Cpulimit limits the CPU usage of a process. It does not change the nice
1649 value or other scheduling priority settings, but the real CPU usage, and is
1650 able to adapt itself dynamically to the overall system load. Children
1651 processes and threads of the specified process may optionally share the same
1652 limits.")
1653 (license license:gpl2+)))
1654
1655 (define-public autojump
1656 (package
1657 (name "autojump")
1658 (version "22.3.4")
1659 (source
1660 (origin
1661 (method url-fetch)
1662 (uri (string-append "https://github.com/wting/autojump/archive/"
1663 "release-v" version ".tar.gz"))
1664 (file-name (string-append name "-" version ".tar.gz"))
1665 (sha256
1666 (base32
1667 "113rcpr37ngf2xs8da41qdarq5qmj0dwx8ggqy3lhlb0kvqq7g9z"))))
1668 (build-system gnu-build-system)
1669 (native-inputs ;for tests
1670 `(("python-mock" ,python-mock)
1671 ("python-pytest" ,python-pytest)))
1672 (inputs
1673 `(("python" ,python-wrapper)))
1674 (arguments
1675 `(#:phases (modify-phases %standard-phases
1676 (delete 'configure)
1677 (delete 'build)
1678 (replace 'check
1679 (lambda _
1680 (zero?
1681 (system* "python" "tests/unit/autojump_utils_test.py"))))
1682 (replace 'install
1683 ;; The install.py script doesn't allow system installation
1684 ;; into an arbitrary prefix, so do our own install.
1685 (lambda* (#:key outputs #:allow-other-keys)
1686 (let* ((out (assoc-ref outputs "out"))
1687 (bin (string-append out "/bin"))
1688 (share (string-append out "/share/autojump"))
1689 (py (string-append out "/lib/python"
1690 ,(version-major+minor
1691 (package-version python-wrapper))
1692 "/site-packages"))
1693 (man (string-append out "/share/man/man1")))
1694 (install-file "bin/autojump" bin)
1695 (for-each (λ (f) (install-file f py))
1696 (find-files "bin" "\\.py$"))
1697 (for-each (λ (f) (install-file f share))
1698 (find-files "bin" "autojump\\..*$"))
1699 (substitute* (string-append share "/autojump.sh")
1700 (("/usr/local") out))
1701 (install-file "docs/autojump.1" man)
1702 (wrap-program (string-append bin "/autojump")
1703 `("PYTHONPATH" ":" prefix (,py)))
1704 #t))))))
1705 (home-page "https://github.com/wting/autojump")
1706 (synopsis "Shell extension for file system navigation")
1707 (description
1708 "Autojump provides a faster way to navigate your file system, with a \"cd
1709 command that learns\". It works by maintaining a database of the directories
1710 you use the most from the command line and allows you to \"jump\" to
1711 frequently used directories by typing only a small pattern.")
1712 (license license:gpl3+)))
1713
1714 (define-public fasd
1715 (package
1716 (name "fasd")
1717 (version "1.0.1")
1718 (source (origin
1719 (method git-fetch)
1720 (uri (git-reference
1721 (url "https://github.com/clvv/fasd.git")
1722 (commit version)))
1723 (file-name (git-file-name name version))
1724 (sha256
1725 (base32
1726 "1awi71jdv3mhjrmar2d4z1i90kn7apd7aq1w31sh6w4yibz9kiyj"))))
1727 (build-system gnu-build-system)
1728 (arguments
1729 `(#:phases (modify-phases %standard-phases
1730 (delete 'configure)) ;no configuration
1731 #:tests? #f ;no tests
1732 #:make-flags (list (string-append "PREFIX=" %output))))
1733 (home-page "https://github.com/clvv/fasd")
1734 (synopsis "Quick access to files and directories for shells")
1735 (description
1736 "Fasd (pronounced similar to \"fast\") is a command-line productivity
1737 booster. Fasd offers quick access to files and directories for POSIX shells.
1738 It is inspired by tools like autojump, z, and v. Fasd keeps track of files
1739 and directories you have accessed so that you can quickly reference them in
1740 the command line.")
1741 (license license:x11)))
1742
1743 (define-public iftop
1744 (package
1745 (name "iftop")
1746 (version "1.0pre4")
1747 (source (origin
1748 (method url-fetch)
1749 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
1750 "/iftop-" version ".tar.gz"))
1751 (sha256
1752 (base32
1753 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
1754 (build-system gnu-build-system)
1755 (inputs
1756 `(("libpcap" ,libpcap)
1757 ("ncurses" ,ncurses)))
1758 (synopsis "Monitor network usage")
1759 (description "Iftop does for network usage what @command{top} does
1760 for CPU usage. It listens to network traffic on a named interface and
1761 displays a table of current bandwidth usage by pairs of hosts.")
1762 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
1763 (license license:gpl2+)))
1764
1765 (define-public munge
1766 (package
1767 (name "munge")
1768 (version "0.5.13")
1769 (source (origin
1770 (method url-fetch)
1771 (uri (string-append "https://github.com/dun/munge/releases/"
1772 "download/munge-" version "/munge-"
1773 version ".tar.xz"))
1774 (sha256
1775 (base32
1776 "1nj486bbg1adfg298zck96vgx57kchcypc1zdz1n7w540vyksxcr"))))
1777 (inputs
1778 `(("openssl" ,openssl)
1779 ("libgcrypt" ,libgcrypt)))
1780 (build-system gnu-build-system)
1781 (home-page "https://dun.github.io/munge/")
1782 (synopsis "Cluster computing authentication service")
1783 (description
1784 "Munge is an authentication service for creating and validating
1785 credentials. It allows a process to authenticate the UID and GID of another
1786 local or remote process within a group of hosts having common users and
1787 groups. These hosts form a security realm that is defined by a shared
1788 cryptographic key. Clients within this security realm can create and validate
1789 credentials without the use of root privileges, reserved ports, or
1790 platform-specific methods.")
1791 (license license:gpl3+)))
1792
1793 (define-public audit
1794 (package
1795 (name "audit")
1796 (version "2.4.5")
1797 (source (origin
1798 (method url-fetch)
1799 (uri (string-append "http://people.redhat.com/sgrubb/audit/"
1800 "audit-" version ".tar.gz"))
1801 (sha256
1802 (base32
1803 "1q1q51dvxscbi4kbakmd4bn0xrvwwaiwvaya79925cbrqwzxsg77"))))
1804 (build-system gnu-build-system)
1805 (home-page "http://people.redhat.com/sgrubb/audit/")
1806 (arguments
1807 `(#:configure-flags (list "--with-python=no")
1808 #:phases
1809 (modify-phases %standard-phases
1810 (add-after 'unpack 'fix-tests
1811 (lambda _
1812 ;; In the build environmnte /etc/passwd does not contain an entry
1813 ;; for root/0, so we have to patch the expected value.
1814 (substitute* "auparse/test/auparse_test.ref"
1815 (("=0 \\(root\\)") "=0 (unknown(0))"))
1816 #t)))))
1817 (inputs
1818 `(("openldap" ,openldap)
1819 ("gnutls" ,gnutls)
1820 ("sasl" ,cyrus-sasl)))
1821 (synopsis "User-space component to the Linux auditing system")
1822 (description
1823 "auditd is the user-space component to the Linux auditing system, which
1824 allows logging of system calls made by user-land processes. It's responsible
1825 for writing audit records to the disk. Viewing the logs is done with the
1826 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
1827 done with the @code{auditctl} utility.")
1828 (license license:gpl2+)))
1829
1830 (define-public nmap
1831 (package
1832 (name "nmap")
1833 (version "7.70")
1834 (source (origin
1835 (method url-fetch)
1836 (uri (string-append "https://nmap.org/dist/nmap-" version
1837 ".tar.bz2"))
1838 (sha256
1839 (base32
1840 "063fg8adx23l4irrh5kn57hsmi1xvjkar4vm4k6g94ppan4hcyw4"))
1841 (modules '((guix build utils)))
1842 (snippet
1843 '(begin
1844 (for-each delete-file-recursively
1845 ;; Remove bundled lua, pcap, and pcre libraries.
1846 ;; FIXME: Remove bundled liblinear once packaged.
1847 '("liblua"
1848 "libpcap"
1849 "libpcre"
1850 ;; Remove pre-compiled binares.
1851 "mswin32"))
1852 #t))))
1853 (build-system gnu-build-system)
1854 (inputs
1855 `(("openssl" ,openssl)
1856 ("libpcap" ,libpcap)
1857 ("pcre" ,pcre)
1858 ("lua" ,lua)
1859 ("zlib" ,zlib) ;for NSE compression support
1860
1861 ;; For 'ndiff'.
1862 ("python" ,python-2)))
1863
1864 ;; TODO Add zenmap output.
1865 (outputs '("out" "ndiff"))
1866 (arguments
1867 '(#:configure-flags '("--without-zenmap")
1868 #:phases
1869 (modify-phases %standard-phases
1870 (add-after 'configure 'patch-Makefile
1871 (lambda _
1872 (substitute* "Makefile"
1873 ;; Do not attempt to build lua.
1874 (("build-dnet build-lua") "build-dnet"))
1875 #t))
1876 (replace 'install
1877 (lambda* (#:key outputs #:allow-other-keys)
1878 (define (make out . args)
1879 (unless (zero? (apply system* "make"
1880 (string-append "prefix=" out)
1881 args))
1882 (error "make failed")))
1883 (define (python-path dir)
1884 (string-append dir "/lib/python2.7/site-packages"))
1885 (let ((out (assoc-ref outputs "out"))
1886 (ndiff (assoc-ref outputs "ndiff")))
1887 (for-each mkdir-p (list out ndiff))
1888 (make out
1889 "install-nmap"
1890 "install-nse"
1891 "install-ncat"
1892 "install-nping")
1893 (make ndiff "install-ndiff")
1894 (wrap-program (string-append ndiff "/bin/ndiff")
1895 `("PYTHONPATH" prefix
1896 (,(python-path ndiff)))))))
1897 ;; These are the tests that do not require network access.
1898 (replace 'check
1899 (lambda _ (zero? (system* "make"
1900 "check-nse"
1901 "check-ndiff"
1902 "check-dns")))))
1903 ;; Nmap can't cope with out-of-source building.
1904 #:out-of-source? #f))
1905 (home-page "https://nmap.org/")
1906 (synopsis "Network discovery and security auditing tool")
1907 (description
1908 "Nmap (\"Network Mapper\") is a network discovery and security auditing
1909 tool. It is also useful for tasks such as network inventory, managing service
1910 upgrade schedules, and monitoring host or service uptime. It also provides an
1911 advanced netcat implementation (ncat), a utility for comparing scan
1912 results (ndiff), and a packet generation and response analysis tool (nping).")
1913 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
1914 ;; both use a 3-clause BSD license.
1915 (license (list license:nmap license:bsd-3))))
1916
1917 (define-public dstat
1918 (package
1919 (name "dstat")
1920 (version "0.7.3")
1921 (source (origin
1922 (method url-fetch)
1923 (uri (string-append
1924 "https://github.com/dagwieers/dstat/archive/"
1925 version ".tar.gz"))
1926 (file-name (string-append "dstat-" version ".tar.gz"))
1927 (sha256
1928 (base32
1929 "16286z3y2lc9nsq8njzjkv6k2vyxrj9xiixj1k3gnsbvhlhkirj6"))))
1930 (build-system gnu-build-system)
1931 (arguments
1932 `(#:tests? #f ;; no make check
1933 #:make-flags (let ((out (assoc-ref %outputs "out")))
1934 (list (string-append "DESTDIR=" out)
1935 "prefix=/"))
1936 ;; no configure script
1937 #:phases (modify-phases %standard-phases (delete 'configure))))
1938 (inputs `(("python-2" ,python-2)))
1939 (synopsis "Versatile resource statistics tool")
1940 (description "Dstat is a versatile replacement for @command{vmstat},
1941 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
1942 some of their limitations and adds some extra features, more counters and
1943 flexibility. Dstat is handy for monitoring systems during performance tuning
1944 tests, benchmarks or troubleshooting.
1945
1946 Dstat allows you to view all of your system resources in real-time, you can,
1947 e.g., compare disk utilization in combination with interrupts from your IDE
1948 controller, or compare the network bandwidth numbers directly with the disk
1949 throughput (in the same interval).")
1950 (home-page "http://dag.wiee.rs/home-made/dstat/")
1951 (license license:gpl2+)))
1952
1953 (define-public thefuck
1954 (package
1955 (name "thefuck")
1956 (version "3.27")
1957 (source (origin
1958 (method url-fetch)
1959 (uri (string-append "https://github.com/nvbn/thefuck/archive/"
1960 version ".tar.gz"))
1961 (file-name (string-append name "-" version ".tar.gz"))
1962 (sha256
1963 (base32
1964 "0my32n2x8x0f0wr8ql7qgk9qhb6ibv5b1rqs5b2r4nadv0gpiv96"))
1965 (patches (search-patches "thefuck-test-environ.patch"))))
1966 (build-system python-build-system)
1967 (arguments
1968 '(#:phases
1969 (modify-phases %standard-phases
1970 (delete 'check)
1971 (add-after 'install 'check
1972 (lambda* (#:key inputs outputs #:allow-other-keys)
1973 ;; Tests look for installed package
1974 (add-installed-pythonpath inputs outputs)
1975 ;; Some tests need write access to $HOME.
1976 (setenv "HOME" "/tmp")
1977 (invoke "py.test" "-v")
1978 #t)))))
1979 (propagated-inputs
1980 `(("python-colorama" ,python-colorama)
1981 ("python-decorator" ,python-decorator)
1982 ("python-psutil" ,python-psutil)
1983 ("python-pyte" ,python-pyte)
1984 ("python-six" ,python-six)))
1985 (native-inputs
1986 `(("python-mock" ,python-mock)
1987 ("python-pytest" ,python-pytest)
1988 ("python-pytest-mock" ,python-pytest-mock)))
1989 (home-page "https://github.com/nvbn/thefuck")
1990 (synopsis "Correct mistyped console command")
1991 (description
1992 "The Fuck tries to match a rule for a previous, mistyped command, creates
1993 a new command using the matched rule, and runs it.")
1994 (license license:x11)))
1995
1996 (define-public di
1997 (package
1998 (name "di")
1999 (version "4.46")
2000 (source
2001 (origin
2002 (method url-fetch)
2003 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
2004 (sha256
2005 (base32 "0cskiqywiqkw44zdg4q78bjns6jjp1dz5lzdxrhpnpldc6075irw"))))
2006 (build-system gnu-build-system)
2007 (arguments
2008 `(#:tests? #f ; Obscure test failures.
2009 #:phases
2010 (modify-phases %standard-phases
2011 (delete 'configure)
2012 (add-before 'build 'setup-environment
2013 (lambda* (#:key outputs #:allow-other-keys)
2014 (setenv "CC" "gcc")
2015 (setenv "prefix" (assoc-ref outputs "out"))
2016 #t)))
2017 #:make-flags (list "--environment-overrides")))
2018 (home-page "https://www.gentoo.com/di/")
2019 (synopsis "Advanced df like disk information utility")
2020 (description
2021 "'di' is a disk information utility, displaying everything that your
2022 @code{df} command does and more. It features the ability to display your disk
2023 usage in whatever format you prefer. It is designed to be highly portable and
2024 produce uniform output across heterogeneous networks.")
2025 (license license:zlib)))
2026
2027 (define-public cbatticon
2028 (package
2029 (name "cbatticon")
2030 (version "1.6.8")
2031 (source (origin
2032 (method url-fetch)
2033 (uri (string-append "https://github.com/valr/"
2034 name "/archive/" version ".tar.gz"))
2035 (sha256
2036 (base32
2037 "185lzvaijvyq7y8r7dvizhri0rf9lpc1anfgbbn4lznr1fr3z7rn"))
2038 (file-name (string-append name "-" version ".tar.gz"))))
2039 (build-system gnu-build-system)
2040 (arguments
2041 `(#:tests? #f ; no tests
2042 #:make-flags
2043 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2044 "CC=gcc")
2045 #:phases
2046 (modify-phases %standard-phases
2047 (delete 'configure)))) ; no configure script
2048 (inputs
2049 `(("gtk+" ,gtk+)
2050 ("gettext" ,gettext-minimal)
2051 ("libnotify" ,libnotify)))
2052 (native-inputs
2053 `(("pkg-config" ,pkg-config)))
2054 (synopsis "Lightweight battery icon for the system tray")
2055 (description "cbatticon is a lightweight battery icon that displays
2056 the status of your battery in the system tray.")
2057 (home-page "https://github.com/valr/cbatticon")
2058 (license license:gpl2+)))
2059
2060 (define-public interrobang
2061 (let ((revision "1")
2062 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
2063 (package
2064 (name "interrobang")
2065 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
2066 (source (origin
2067 (method git-fetch)
2068 (uri (git-reference
2069 (url "https://github.com/TrilbyWhite/interrobang")
2070 (commit commit)))
2071 (file-name (string-append name "-" version))
2072 (sha256
2073 (base32
2074 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
2075 (build-system gnu-build-system)
2076 (arguments
2077 `(#:tests? #f ; no tests
2078 #:phases
2079 (modify-phases %standard-phases
2080 (delete 'configure)) ; no configure script
2081 #:make-flags (list (string-append "PREFIX="
2082 (assoc-ref %outputs "out")))))
2083 (inputs
2084 `(("libx11" ,libx11)))
2085 (native-inputs
2086 `(("pkg-config" ,pkg-config)))
2087 (synopsis "Scriptable launcher menu")
2088 (description "Interrobang is a scriptable launcher menu with a customizable
2089 shortcut syntax and completion options.")
2090 (home-page "https://github.com/TrilbyWhite/interrobang")
2091 (license license:gpl3+))))
2092
2093 (define-public pam-krb5
2094 (package
2095 (name "pam-krb5")
2096 (version "4.8")
2097 (source (origin
2098 (method url-fetch)
2099 (uri (string-append
2100 "https://archives.eyrie.org/software/kerberos/" name "-"
2101 version ".tar.xz"))
2102 (sha256
2103 (base32
2104 "1qjp8i1s9bz7g6kiqrkzzkxn5pfspa4sy53b6z40fqmdf9przdfb"))))
2105 (build-system gnu-build-system)
2106 (arguments
2107 `(#:phases
2108 (modify-phases %standard-phases
2109 (add-before 'configure 'disable-tests
2110 (lambda _
2111 ;; The build container seems to interfere with some tests.
2112 (substitute* "tests/TESTS"
2113 (("module/basic\n") ""))
2114 (substitute* "tests/TESTS"
2115 (("pam-util/vector\n") ""))
2116 #t)))))
2117 (inputs
2118 `(("linux-pam" ,linux-pam)
2119 ("mit-krb5" ,mit-krb5)))
2120 (native-inputs
2121 `(("perl" ,perl)
2122 ("perl-test-pod" ,perl-test-pod))) ; required for tests
2123 (synopsis "Kerberos PAM module")
2124 (description
2125 "Pam-krb5 is a Kerberos PAM module for either MIT Kerberos or Heimdal.
2126 It supports ticket refreshing by screen savers, configurable
2127 authorization handling, authentication of non-local accounts for network
2128 services, password changing, and password expiration, as well as all the
2129 standard expected PAM features. It works correctly with OpenSSH, even
2130 with @code{ChallengeResponseAuthentication} and @code{PrivilegeSeparation}
2131 enabled, and supports extensive configuration either by PAM options or in
2132 krb5.conf or both. PKINIT is supported with recent versions of both MIT
2133 Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
2134 (home-page "http://www.eyrie.org/~eagle/software/pam-krb5")
2135 ;; Dual licenced under a homebrew non-copyleft OR GPL (any version)
2136 ;; However, the tarball does not contain a copy of the GPL, so unless
2137 ;; we put one in, we cannot distribute it under GPL without violating
2138 ;; clause requiring us to give all recipients a copy.
2139 (license license:gpl1+)))
2140
2141 (define-public sunxi-tools
2142 (package
2143 (name "sunxi-tools")
2144 (version "1.4.2")
2145 (source
2146 (origin
2147 (method url-fetch)
2148 (uri (string-append "https://github.com/linux-sunxi/"
2149 "sunxi-tools/archive/v" version ".tar.gz"))
2150 (sha256
2151 (base32 "08iqwj95qw2s7ilhrdi2lkbc8dx64zk5lzz1qk587jr0lla81x41"))
2152 (modules '((guix build utils)))
2153 (snippet
2154 ;; Remove binaries contained in the tarball which are only for the
2155 ;; target and can be regenerated anyway.
2156 '(begin
2157 (delete-file-recursively "bin")
2158 #t))
2159 (file-name (string-append name "-" version ".tar.gz"))))
2160 (native-inputs
2161 `(("pkg-config" ,pkg-config)
2162 ("cross-gcc" ,(cross-gcc "arm-linux-gnueabihf"
2163 #:xbinutils (cross-binutils "arm-linux-gnueabihf")
2164 #:libc (cross-libc "arm-linux-gnueabihf")))
2165 ("cross-libc" ,(cross-libc "arm-linux-gnueabihf")) ; header files
2166 ("cross-libc-static" ,(cross-libc "arm-linux-gnueabihf") "static")))
2167 (inputs
2168 `(("libusb" ,libusb)))
2169 (build-system gnu-build-system)
2170 (arguments
2171 `(#:tests? #f ; no tests exist
2172 #:make-flags (list (string-append "PREFIX="
2173 (assoc-ref %outputs "out"))
2174 (string-append "CROSS_COMPILE="
2175 "arm-linux-gnueabihf-")
2176 "CC=gcc")
2177 #:phases
2178 (modify-phases %standard-phases
2179 (delete 'configure)
2180 (add-before 'build 'set-environment-up
2181 (lambda* (#:key make-flags #:allow-other-keys)
2182 (define (cross? x)
2183 (string-contains x "cross-arm-linux"))
2184 (define (filter-environment! filter-predicate
2185 environment-variable-names)
2186 (for-each
2187 (lambda (env-name)
2188 (let* ((env-value (getenv env-name))
2189 (search-path (search-path-as-string->list env-value))
2190 (new-search-path (filter filter-predicate
2191 search-path))
2192 (new-env-value (list->search-path-as-string
2193 new-search-path ":")))
2194 (setenv env-name new-env-value)))
2195 environment-variable-names))
2196 (setenv "CROSS_C_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))
2197 (setenv "CROSS_CPLUS_INCLUDE_PATH" (getenv "CPLUS_INCLUDE_PATH"))
2198 (setenv "CROSS_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
2199 (filter-environment! cross?
2200 '("CROSS_C_INCLUDE_PATH" "CROSS_CPLUS_INCLUDE_PATH"
2201 "CROSS_LIBRARY_PATH"))
2202 (filter-environment! (lambda (e) (not (cross? e)))
2203 '("C_INCLUDE_PATH" "CPLUS_INCLUDE_PATH"
2204 "LIBRARY_PATH"))
2205 #t))
2206 (replace 'build
2207 (lambda* (#:key make-flags #:allow-other-keys)
2208 (zero? (apply system* "make" "tools" "misc" make-flags))))
2209 (add-after 'build 'build-armhf
2210 (lambda* (#:key make-flags #:allow-other-keys)
2211 (setenv "LIBRARY_PATH" #f)
2212 (zero? (apply system* "make" "target-tools" make-flags))))
2213 (replace 'install
2214 (lambda* (#:key make-flags #:allow-other-keys)
2215 (zero? (apply system* "make" "install-all" "install-misc"
2216 make-flags)))))))
2217 (home-page "https://github.com/linux-sunxi/sunxi-tools")
2218 (synopsis "Hardware management tools for Allwinner computers")
2219 (description "This package contains tools for Allwinner devices:
2220 @enumerate
2221 @item @command{sunxi-fexc}, @command{bin2fex}, @command{fex2bin}: Compile
2222 a textual description of a board (.fex) to a binary representation (.bin).
2223 @item @command{sunxi-fel}: Puts an Allwinner device into FEL mode which
2224 makes it register as a special USB device (rather than USB host).
2225 You can then connect it to another computer and flash it from there.
2226 @item @command{sunxi-nand-part}: Partitions NAND flash.
2227 @item @command{sunxi-bootinfo}: Reads out boot0 and boot1 (Allwinner
2228 bootloader) parameters.
2229 @item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
2230 in order to be able to find it.
2231 @item @command{sunxi-meminfo}: Prints memory bus settings.
2232 @item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
2233 @end enumerate")
2234 (license license:gpl2+)))
2235
2236 (define-public sedsed
2237 (package
2238 (name "sedsed")
2239 (version "1.0")
2240 (source
2241 (origin
2242 (method url-fetch)
2243 (uri (string-append "https://github.com/aureliojargas/sedsed/"
2244 "archive/v" version ".tar.gz"))
2245 (file-name (string-append name "-" version ".tar.gz"))
2246 (sha256
2247 (base32
2248 "0139jkqvm8ipiwfj7k69ry2f9b1ffgpk79arpz4r7w9kf6h23bnh"))))
2249 (build-system python-build-system)
2250 (arguments
2251 `(#:tests? #f ; No tests.
2252 #:python ,python-2
2253 #:phases
2254 (modify-phases %standard-phases
2255 (add-after 'unpack 'patch-sed-in
2256 (lambda _
2257 (substitute* "sedsed.py"
2258 (("sedbin = 'sed'")
2259 (string-append "sedbin = '" (which "sed") "'")))
2260 #t))
2261 (delete 'build)
2262 (replace 'install
2263 (lambda* (#:key outputs #:allow-other-keys)
2264 (let* ((out (assoc-ref outputs "out"))
2265 (bin (string-append out "/bin")))
2266 ;; Just one file to copy around
2267 (install-file "sedsed.py" bin)
2268 #t)))
2269 (add-after 'install 'symlink
2270 ;; Create 'sedsed' symlink to "sedsed.py".
2271 (lambda* (#:key outputs #:allow-other-keys)
2272 (let* ((out (assoc-ref outputs "out"))
2273 (bin (string-append out "/bin"))
2274 (sed (string-append bin "/sedsed"))
2275 (sedpy (string-append bin "/sedsed.py")))
2276 (symlink sedpy sed)
2277 #t))))))
2278 (home-page "http://aurelio.net/projects/sedsed")
2279 (synopsis "Sed sed scripts")
2280 (description
2281 "@code{sedsed} can debug, indent, tokenize and HTMLize your sed(1) script.
2282
2283 In debug mode it reads your script and add extra commands to it. When
2284 executed you can see the data flow between the commands, revealing all the
2285 magic sed does on its internal buffers.
2286
2287 In indent mode your script is reformatted with standard spacing.
2288
2289 In tokenize mode you can see the elements of every command you use.
2290
2291 In HTMLize mode your script is converted to a beautiful colored HTML file,
2292 with all the commands and parameters identified for your viewing pleasure.
2293
2294 With sedsed you can master any sed script. No more secrets, no more hidden
2295 buffers.")
2296 (license license:expat)))
2297
2298 (define-public intel-gpu-tools
2299 (package
2300 (name "intel-gpu-tools")
2301 (version "1.22")
2302 (source (origin
2303 (method url-fetch)
2304 (uri (string-append "https://cgit.freedesktop.org/xorg/app/"
2305 "intel-gpu-tools/snapshot/"
2306 "intel-gpu-tools-" version ".tar.gz"))
2307 (sha256
2308 (base32
2309 "1jx5w5fr6jp67rcrlp5v79cn8kp9n0wgd5pbfgzamlah5cx6j3yd"))))
2310 (build-system gnu-build-system)
2311 (arguments
2312 `(#:tests? #f ; many of the tests try to load kernel modules
2313 #:phases
2314 (modify-phases %standard-phases
2315 (add-after 'unpack 'autogen
2316 (lambda _
2317 ;; Don't run configure in this phase.
2318 (setenv "NOCONFIGURE" "1")
2319 (invoke "sh" "autogen.sh"))))))
2320 (inputs
2321 `(("eudev" ,eudev)
2322 ("util-macros" ,util-macros)
2323 ("libdrm" ,libdrm)
2324 ("libpciaccess" ,libpciaccess)
2325 ("kmod" ,kmod)
2326 ("procps" ,procps)
2327 ("cairo" ,cairo)
2328 ("libunwind" ,libunwind)
2329 ("libxrandr" ,libxrandr)
2330 ("glib" ,glib)))
2331 (native-inputs
2332 `(("autoconf" ,autoconf)
2333 ("automake" ,automake)
2334 ("libtool" ,libtool)
2335 ("pkg-config" ,pkg-config)))
2336 (home-page "https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/")
2337 (synopsis "Tools for development and testing of the Intel DRM driver")
2338 (description "Intel GPU Tools is a collection of tools for development and
2339 testing of the Intel DRM driver. There are many macro-level test suites that
2340 get used against the driver, including xtest, rendercheck, piglit, and
2341 oglconform, but failures from those can be difficult to track down to kernel
2342 changes, and many require complicated build procedures or specific testing
2343 environments to get useful results. Therefore, Intel GPU Tools includes
2344 low-level tools and tests specifically for development and testing of the
2345 Intel DRM Driver.")
2346 (supported-systems '("i686-linux" "x86_64-linux"))
2347 (license license:expat)))
2348
2349 (define-public fabric
2350 (package
2351 (name "fabric")
2352 (version "1.14.0")
2353 (source
2354 (origin
2355 (method url-fetch)
2356 (uri (pypi-uri "Fabric" version))
2357 (sha256
2358 (base32
2359 "13r0b0hllgf8j9rh6x1knmbgvingbdmx046aazv6vck2ll120mw1"))))
2360 (build-system python-build-system)
2361 (arguments
2362 `(#:python ,python-2)) ; Python 2 only
2363 (native-inputs
2364 `(("python2-fudge" ,python2-fudge)
2365 ("python2-jinja2" ,python2-jinja2)
2366 ("python2-nose" ,python2-nose)
2367 ("python2-pynacl" ,python2-pynacl)
2368 ("python2-bcrypt" ,python2-bcrypt)))
2369 (propagated-inputs
2370 `(("python2-paramiko" ,python2-paramiko)))
2371 (home-page "http://fabfile.org")
2372 (synopsis "Simple Pythonic remote execution and deployment tool")
2373 (description
2374 "Fabric is designed to upload files and run shell commands on a number of
2375 servers in parallel or serially. These commands are grouped in tasks (which
2376 are regular Python functions) and specified in a @dfn{fabfile}.
2377
2378 It is similar to Capistrano, except it's implemented in Python and doesn't
2379 expect you to be deploying Rails applications. Fabric is a simple, Pythonic
2380 tool for remote execution and deployment.")
2381 (license license:bsd-2)))
2382
2383 (define-public neofetch
2384 (package
2385 (name "neofetch")
2386 (version "3.4.0")
2387 (source (origin
2388 (method url-fetch)
2389 (uri (string-append "https://github.com/dylanaraps/neofetch/"
2390 "archive/" version ".tar.gz"))
2391 (file-name (string-append name "-" version ".tar.gz"))
2392 (sha256
2393 (base32
2394 "18rhamy910ig03rr55y9x5i6pf78yj9xc6jpm6nfh3gqja7340rb"))))
2395 (build-system gnu-build-system)
2396 (arguments
2397 `(#:tests? #f ; there are no tests
2398 #:make-flags
2399 (list (string-append "PREFIX=" %output))
2400 #:phases
2401 (modify-phases %standard-phases
2402 (add-after 'unpack 'patch-target-directories
2403 (lambda* (#:key outputs #:allow-other-keys)
2404 (let ((out (assoc-ref outputs "out")))
2405 (substitute* "Makefile"
2406 (("\\$\\(DESTDIR\\)/etc/")
2407 "$(PREFIX)/etc/"))
2408 (substitute* "neofetch"
2409 (("\"/etc/neofetch")
2410 (string-append "\"" out "/etc/neofetch"))
2411 (("\"/usr/share/neofetch")
2412 (string-append "\"" out "/share/neofetch"))))
2413 #t))
2414 (delete 'configure) ; no configure script
2415 (replace 'install
2416 (lambda* (#:key make-flags outputs #:allow-other-keys)
2417 (let* ((out (assoc-ref outputs "out"))
2418 (doc (string-append out "/share/doc/" ,name "-" ,version))
2419 (etc (string-append doc "/examples/etc")))
2420 (zero? (apply system* `("make" ,@make-flags
2421 ,(string-append "SYSCONFDIR=" etc)
2422 "install")))))))))
2423 (home-page "https://github.com/dylanaraps/neofetch")
2424 (synopsis "System info script")
2425 (description "Neofetch is a CLI system information tool written in Bash.
2426 Neofetch displays information about your system next to an image, your OS
2427 logo, or any ASCII file of your choice. The main purpose of Neofetch is to be
2428 used in screenshots to show other users what operating system or distribution
2429 you are running, what theme or icon set you are using, etc.")
2430 (license license:expat)))
2431
2432 (define-public nnn
2433 (package
2434 (name "nnn")
2435 (version "1.7")
2436 (source (origin
2437 (method url-fetch)
2438 (uri (string-append "https://github.com/jarun/nnn/"
2439 "archive/v" version ".tar.gz"))
2440 (file-name (string-append name "-" version ".tar.gz"))
2441 (sha256
2442 (base32
2443 "0z3lqbfx3y1caxvn7yq90b7whwyq2y32zf8kyd976ilbxpxnxqpv"))))
2444 (build-system gnu-build-system)
2445 (inputs `(("ncurses" ,ncurses)
2446 ("readline" ,readline)))
2447 (arguments
2448 '(#:tests? #f ; no tests
2449 #:phases
2450 ;; We do not provide `ncurses.h' within an `ncursesw'
2451 ;; sub-directory, so patch the source accordingly. See
2452 ;; <http://bugs.gnu.org/19018>.
2453 ;; Thanks to gtypist maintainer.
2454 (modify-phases %standard-phases
2455 (add-after 'unpack 'patch-curses-lib
2456 (lambda* (#:key outputs #:allow-other-keys)
2457 (let ((out (assoc-ref outputs "out")))
2458 (substitute* "Makefile"
2459 (("-lncursesw")
2460 "-lncurses"))
2461 (substitute* "nnn.c"
2462 (("ncursesw\\/curses.h")
2463 "ncurses.h")))
2464 #t))
2465 (delete 'configure))
2466 #:make-flags
2467 (list
2468 (string-append "PREFIX="
2469 (assoc-ref %outputs "out"))
2470 (string-append "-Wl,-rpath="
2471 %output "/lib")
2472 "CC=gcc")))
2473 (home-page "https://github.com/jarun/nnn")
2474 (synopsis "Terminal file browser")
2475 (description "@command{nnn} is a fork of @command{noice}, a blazing-fast
2476 lightweight terminal file browser with easy keyboard shortcuts for
2477 navigation, opening files and running tasks. There is no config file and
2478 mime associations are hard-coded. The incredible user-friendliness and speed
2479 make it a perfect utility on modern distros.")
2480 (license license:bsd-2)))
2481
2482 (define-public thermald
2483 (package
2484 (name "thermald")
2485 (version "1.7.2")
2486 (source
2487 (origin
2488 (method url-fetch)
2489 (uri (string-append "https://github.com/01org/thermal_daemon/archive/v"
2490 version ".tar.gz"))
2491 (file-name (string-append name "-" version ".tar.gz"))
2492 (sha256 (base32
2493 "15a6vb67y5wsmf0irrq7sxam18yqpz64130k83ryf24mp40h661b"))))
2494 (build-system gnu-build-system)
2495 (arguments
2496 `(#:phases
2497 (modify-phases %standard-phases
2498 (add-after 'unpack 'bootstrap
2499 (lambda _
2500 (invoke "sh" "autogen.sh")
2501 #t)))
2502 #:configure-flags
2503 (let ((out (assoc-ref %outputs "out")))
2504 (list (string-append "--sysconfdir="
2505 out "/etc")
2506 (string-append "--with-udev-dir="
2507 out "/lib/udev")
2508 (string-append "--with-dbus-sys-dir="
2509 out "/etc/dbus-1/system.d")
2510 "--localstatedir=/var"))))
2511 (native-inputs
2512 `(("autoconf" ,autoconf)
2513 ("automake" ,automake)
2514 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
2515 ("pkg-config" ,pkg-config)))
2516 (inputs
2517 `(("dbus-glib" ,dbus-glib)
2518 ("libxml2" ,libxml2)))
2519 (home-page "https://01.org/linux-thermal-daemon/")
2520 (synopsis "CPU scaling for thermal management")
2521 (description "The Linux Thermal Daemon helps monitor and control temperature
2522 on systems running the Linux kernel.")
2523 ;; arm and aarch64 don't have cpuid.h.
2524 (supported-systems '("i686-linux" "x86_64-linux"))
2525 (license license:gpl2+)))
2526
2527 (define-public masscan
2528 (package
2529 (name "masscan")
2530 (version "1.0.5")
2531 (source (origin
2532 (method url-fetch)
2533 (uri (string-append "https://github.com/robertdavidgraham/masscan"
2534 "/archive/" version ".tar.gz"))
2535 (file-name (string-append name "-" version ".tar.gz"))
2536 (sha256
2537 (base32
2538 "0wxddsgyx27z45906icdhdbfsvfj8ij805208qpqjx46i0lnjs50"))))
2539 (build-system gnu-build-system)
2540 (inputs
2541 `(("libpcap" ,libpcap)))
2542 (arguments
2543 '(#:test-target "regress"
2544 #:make-flags
2545 (list "CC=gcc"
2546 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2547 #:phases
2548 (modify-phases %standard-phases
2549 (delete 'configure) ; no ./configure script
2550 (add-after 'unpack 'patch-path
2551 (lambda* (#:key outputs inputs #:allow-other-keys)
2552 (let* ((out (assoc-ref outputs "out"))
2553 (pcap (assoc-ref inputs "libpcap")))
2554 (substitute* "src/rawsock-pcap.c"
2555 (("libpcap.so") (string-append pcap "/lib/libpcap.so")))
2556 #t))))))
2557 (synopsis "TCP port scanner")
2558 (description "MASSCAN is an asynchronous TCP port scanner. It can detect
2559 open ports, and also complete the TCP connection and interact with the remote
2560 application, collecting the information received.")
2561 (home-page "https://github.com/robertdavidgraham/masscan")
2562 ;; 'src/siphash24.c' is the SipHash reference implementation, which
2563 ;; bears a CC0 Public Domain Dedication.
2564 (license license:agpl3+)))
2565
2566 (define-public hungrycat
2567 (package
2568 (name "hungrycat")
2569 (version "0.4.1")
2570 (source (origin
2571 (method url-fetch)
2572 (uri (string-append "https://github.com/jwilk/hungrycat/"
2573 "releases/download/" version "/"
2574 name "-" version ".tar.gz"))
2575 (sha256
2576 (base32
2577 "03fc1zsrf99lvxa7b4ps6pbi43304wbxh1f6ci4q0vkal370yfwh"))))
2578 (build-system gnu-build-system)
2579 (native-inputs
2580 ;; For tests.
2581 `(("python" ,python-wrapper)
2582 ("python-nose" ,python-nose)))
2583 (arguments
2584 `(#:test-target "test"))
2585 (synopsis "A single tool that combines @command{cat} & @command{rm}")
2586 (description
2587 "hungrycat prints the contents of a file to standard output, while
2588 simultaneously freeing the disk space it occupied. It is useful if you need
2589 to process a large file, don't have enough space to store both the input and
2590 output files, and don't need the input file afterwards.
2591 While similar in principle to running @command{cat} immediately followed by
2592 @command{rm}, @command{hungrycat} actually frees blocks as soon as they are
2593 printed instead of after the entire file has been read, which is often too
2594 late.")
2595 (home-page "https://jwilk.net/software/hungrycat")
2596 (license license:expat)))
2597
2598 (define-public launchmon
2599 (package
2600 (name "launchmon")
2601 (version "1.0.2")
2602 (source (origin
2603 (method url-fetch)
2604 (uri (string-append
2605 "https://github.com/LLNL/LaunchMON/releases/download/v"
2606 version "/" name "-v" version ".tar.gz"))
2607 (sha256
2608 (base32
2609 "0fm3nd9mydm9v2bf7bh01dbgrfnpwkapxa3dsvy3x1z0rz61qc0x"))))
2610 (build-system gnu-build-system)
2611 (inputs
2612 `(("mpi" ,openmpi)
2613 ("munge" ,munge)
2614 ("boost" ,boost)
2615 ("libelf" ,libelf)
2616 ("libgcrypt" ,libgcrypt)
2617 ("libgpg-error" ,libgpg-error)))
2618 (synopsis "Infrastructue for large scale tool daemon launching")
2619 (description
2620 "LaunchMON is a software infrastructure that enables HPC run-time
2621 tools to co-locate tool daemons with a parallel job. Its API allows a
2622 tool to identify all the remote processes of a job and to scalably
2623 launch daemons into the relevant nodes.")
2624 (home-page "https://github.com/LLNL/LaunchMON")
2625 (supported-systems '("i686-linux" "x86_64-linux"))
2626 (license license:lgpl2.1)))
2627
2628 (define-public spindle
2629 (package
2630 (name "spindle")
2631 (version "0.10")
2632 (source (origin
2633 ;; We use git checkout to avoid github auto-generated tarballs
2634 (method git-fetch)
2635 (uri (git-reference
2636 (url "https://github.com/hpc/Spindle.git")
2637 (commit (string-append "v" version))))
2638 (file-name (git-file-name name version))
2639 (sha256
2640 (base32
2641 "15n3ay0qq81r5v7fif61q1vdjcq44pp2nynkh3fvbzc9fj3c39wd"))))
2642 (build-system gnu-build-system)
2643 (arguments '(#:configure-flags '("--enable-sec-launchmon"
2644 "--enable-sec-munge"
2645 "--enable-sec-none")))
2646 (inputs
2647 `(("mpi" ,openmpi)
2648 ("munge" ,munge)
2649 ("launchmon" ,launchmon)
2650 ("libgcrypt" ,libgcrypt)))
2651 (synopsis "Scalable library loading in HPC environments")
2652 (description
2653 "Spindle is a tool for improving the performance of dynamic library and
2654 Python loading in HPC environments.")
2655 (home-page "https://github.com/hpc/Spindle")
2656 ;; This package supports x86_64 and PowerPC64
2657 (supported-systems '("x86_64-linux"))
2658 (license license:lgpl2.1)))
2659
2660 (define-public inxi-minimal
2661 (let ((real-name "inxi"))
2662 (package
2663 (name "inxi-minimal")
2664 (version "3.0.11-1")
2665 (source
2666 (origin
2667 (method git-fetch)
2668 (uri (git-reference
2669 (url "https://github.com/smxi/inxi")
2670 (commit version)))
2671 (sha256
2672 (base32
2673 "07wihl4gsamq98mhxvm6k4vpphym75467cxfa19b3g5ggpyq894g"))))
2674 (build-system trivial-build-system)
2675 (inputs
2676 `(("bash" ,bash)
2677 ("perl" ,perl)))
2678 (native-inputs
2679 `(("gzip" ,gzip)))
2680 (arguments
2681 `(#:modules
2682 ((guix build utils)
2683 (ice-9 match)
2684 (srfi srfi-26))
2685 #:builder
2686 (begin
2687 (use-modules (guix build utils)
2688 (ice-9 match)
2689 (srfi srfi-26))
2690 (setenv "PATH" (string-append
2691 (assoc-ref %build-inputs "bash") "/bin" ":"
2692 (assoc-ref %build-inputs "gzip") "/bin" ":"
2693 (assoc-ref %build-inputs "perl") "/bin" ":"))
2694 (copy-recursively (assoc-ref %build-inputs "source")
2695 ,(string-append real-name "-" version))
2696 (with-directory-excursion ,(string-append real-name "-" version)
2697 (with-fluids ((%default-port-encoding #f))
2698 (substitute* "inxi" (("/usr/bin/env perl") (which "perl"))))
2699 (let ((bin (string-append %output "/bin")))
2700 (install-file "inxi" bin)
2701 (wrap-program (string-append bin "/inxi")
2702 `("PATH" ":" =
2703 ("$PATH"
2704 ,@(map (lambda (input)
2705 (match input
2706 ((name . store)
2707 (let ((store-append
2708 (cut string-append store <>)))
2709 (cond
2710 ((member name '("util-linux"))
2711 (string-append (store-append "/bin") ":"
2712 (store-append "/sbin")))
2713 ((member name '("dmidecode" "iproute2"))
2714 (store-append "/sbin"))
2715 (else (store-append "/bin")))))))
2716 %build-inputs)))
2717 `("PERL5LIB" ":" =
2718 ,(delete
2719 ""
2720 (map (match-lambda
2721 (((? (cut string-prefix? "perl-" <>) name) . dir)
2722 (string-append dir "/lib/perl5/site_perl"))
2723 (_ ""))
2724 %build-inputs)))))
2725 (invoke "gzip" "inxi.1")
2726 (install-file "inxi.1.gz"
2727 (string-append %output "/share/man/man1")))
2728 #t)))
2729 (home-page "https://smxi.org/docs/inxi.htm")
2730 (synopsis "Full-featured system information script")
2731 (description "Inxi is a system information script that can display
2732 various things about your hardware and software to users in an IRC chatroom or
2733 support forum. It runs with the @code{/exec} command in most IRC clients.")
2734 (license license:gpl3+))))
2735
2736 (define-public inxi
2737 (package
2738 (inherit inxi-minimal)
2739 (name "inxi")
2740 (inputs
2741 `(("dmidecode" ,dmidecode)
2742 ("file" ,file)
2743 ("bind:utils" ,isc-bind "utils") ; dig
2744 ("gzip" ,gzip)
2745 ("iproute2" ,iproute) ; ip
2746 ("kmod" ,kmod) ; modinfo
2747 ("lm-sensors" ,lm-sensors)
2748 ("mesa-utils" ,mesa-utils)
2749 ("pciutils" ,pciutils)
2750 ("procps" ,procps)
2751 ("tar" ,tar)
2752 ("tree" ,tree)
2753 ("util-linux" ,util-linux) ; lsblk
2754 ("usbutils" ,usbutils) ; lsusb
2755 ("wmctrl" ,wmctrl)
2756 ("xdpyinfo" ,xdpyinfo)
2757 ("xprop" ,xprop)
2758 ("xrandr" ,xrandr)
2759 ("coreutils" ,coreutils) ; uptime
2760 ("inetutils" ,inetutils) ; ifconfig
2761 ("perl-cpanel-json-xs" ,perl-cpanel-json-xs)
2762 ("perl-http-tiny" ,perl-http-tiny)
2763 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
2764 ("perl-json-xs" ,perl-json-xs)
2765 ("perl-time-hires" ,perl-time-hires)
2766 ;; TODO: Add more inputs:
2767 ;; ipmi-sensors
2768 ;; hddtemp
2769 ;; perl-xml-dumper
2770 ;; ipmitool
2771 ,@(package-inputs inxi-minimal)))))