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