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