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