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