gnu: Add emacs-ahungry-theme.
[jackhill/guix/guix.git] / gnu / packages / admin.scm
CommitLineData
233e7676 1;;; GNU Guix --- Functional package management for GNU
7b78f359 2;;; Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
340c7033 3;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
75418ae0 4;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
2328b47c 5;;; Copyright © 2014, 2015, 2016 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>
765973cd 9;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
f1957fc1 10;;; Copyright © 2016 Pjotr Prins <pjotr.guix@thebird.nl>
3d7a157c 11;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
2f9862ff 12;;; Copyright © 2016 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>
5ec8b02d 15;;; Coypright © 2016 ng0 <ng0@we.make.ritual.n0.is>
1df895b0 16;;;
233e7676 17;;; This file is part of GNU Guix.
1df895b0 18;;;
233e7676 19;;; GNU Guix is free software; you can redistribute it and/or modify it
1df895b0
LC
20;;; under the terms of the GNU General Public License as published by
21;;; the Free Software Foundation; either version 3 of the License, or (at
22;;; your option) any later version.
23;;;
233e7676 24;;; GNU Guix is distributed in the hope that it will be useful, but
1df895b0
LC
25;;; WITHOUT ANY WARRANTY; without even the implied warranty of
26;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27;;; GNU General Public License for more details.
28;;;
29;;; You should have received a copy of the GNU General Public License
233e7676 30;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
1df895b0 31
4aeea896 32(define-module (gnu packages admin)
f61e0e79 33 #:use-module ((guix licenses) #:prefix license:)
1df895b0 34 #:use-module (guix packages)
4fb7e0de 35 #:use-module (guix utils)
1df895b0 36 #:use-module (guix download)
aaff68ee 37 #:use-module (guix git-download)
fbc1a58f 38 #:use-module (guix build-system cmake)
1df895b0 39 #:use-module (guix build-system gnu)
4ecfbda7 40 #:use-module (guix build-system python)
c773aba8 41 #:use-module (guix build-system trivial)
59a43334 42 #:use-module (gnu packages)
c73d4c92 43 #:use-module (gnu packages base)
3d7a157c 44 #:use-module (gnu packages cyrus-sasl)
9a9e72d5 45 #:use-module (gnu packages ncurses)
9927622f 46 #:use-module (gnu packages readline)
f15164e7 47 #:use-module (gnu packages linux)
d0457553 48 #:use-module (gnu packages lua)
f15164e7 49 #:use-module (gnu packages guile)
1dba6407 50 #:use-module (gnu packages gettext)
d0457553 51 #:use-module (gnu packages pcre)
c73d4c92 52 #:use-module (gnu packages perl)
87216303 53 #:use-module (gnu packages tcl)
f61e0e79 54 #:use-module (gnu packages compression)
a7fd7b68 55 #:use-module (gnu packages tls)
61bdd0d8 56 #:use-module (gnu packages gnupg)
02c86a5e
LC
57 #:use-module (gnu packages bison)
58 #:use-module (gnu packages flex)
59 #:use-module (gnu packages glib)
3d7a157c 60 #:use-module (gnu packages openldap)
c1f73569 61 #:use-module (gnu packages mcrypt)
87216303 62 #:use-module (gnu packages pkg-config)
b36fcf95 63 #:use-module (gnu packages popt)
1a0346f0 64 #:use-module (gnu packages python)
fccf2fe0 65 #:use-module (gnu packages texinfo)
e1485c7b 66 #:use-module (gnu packages groff)
42dc3af5
MW
67 #:use-module (gnu packages pciutils)
68 #:use-module (gnu packages libusb)
69 #:use-module (gnu packages libftdi)
c4492a16 70 #:use-module (gnu packages image)
da6c3749 71 #:use-module (gnu packages xorg)
d525da85 72 #:use-module (gnu packages python)
e932d371 73 #:use-module (gnu packages man)
5ec8b02d 74 #:use-module (gnu packages autotools)
75 #:use-module (gnu packages gnome)
76 #:use-module (gnu packages gtk))
f15164e7 77
c1f73569
RW
78(define-public aide
79 (package
80 (name "aide")
81 (version "0.15.1")
82 (source (origin
83 (method url-fetch)
84 (uri (string-append "mirror://sourceforge/aide/aide/"
85 version "/aide-" version ".tar.gz"))
86 (sha256
87 (base32
88 "1vsrc0s62kv1i84skm6k6zy868gayjck268qwj38rpspc8c5qgih"))))
89 (build-system gnu-build-system)
90 (native-inputs
91 `(("bison" ,bison)
92 ("flex" ,flex)))
93 (inputs
94 `(("libgcrypt" ,libgcrypt)
95 ("libgpg-error" ,libgpg-error)
96 ("libmhash" ,libmhash)
97 ("zlib" ,zlib)))
98 (synopsis "File and directory integrity checker")
99 (description
100 "AIDE (Advanced Intrusion Detection Environment) is a file and directory
101integrity checker. It creates a database from the regular expression rules
102that it finds from its configuration files. Once this database is initialized
103it can be used to verify the integrity of the files. It has several message
104digest algorithms that are used to check the integrity of files. All of the
105usual file attributes can be checked for inconsistencies.")
106 (home-page "http://aide.sourceforge.net/")
107 (license license:gpl2+)))
108
4971d5d0
RJ
109(define-public progress
110 (package
111 (name "progress")
112 (version "0.13")
113 (source (origin
114 (method url-fetch)
115 (uri (string-append "https://github.com/Xfennec/"
116 name "/archive/v" version ".tar.gz"))
117 (sha256
118 (base32 "133iar4vq5vlklydb4cyazjy6slmpbndrws474mg738bd8avc30n"))
119 (file-name (string-append name "-" version ".tar.gz"))))
120 (build-system gnu-build-system)
121 (inputs
122 `(("ncurses" ,ncurses)))
123 (arguments
124 `(#:tests? #f ; There is no test suite.
125 #:make-flags (list "CC=gcc" "LDFLAGS+=-lncurses"
126 (string-append "PREFIX=" (assoc-ref %outputs "out")))
127 #:phases
128 (modify-phases %standard-phases
129 (delete 'configure)))) ; There's no configure phase.
130 (home-page "https://github.com/Xfennec/progress")
131 (synopsis "Program to view the progress of the coreutils commands")
132 (description "A program that looks for coreutils basic commands (cp, mv,
133dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
134the percentage of copied data. It can also show estimated time and throughput,
135and provides a \"top-like\" mode (monitoring).")
136 (license license:gpl3+)))
137
e932d371 138(define-public shepherd
133056bd
LC
139 (package
140 (name "shepherd")
ee37e1e5 141 (version "0.3.1")
133056bd
LC
142 (source (origin
143 (method url-fetch)
144 (uri (string-append "ftp://alpha.gnu.org/gnu/dmd/shepherd-"
145 version ".tar.gz"))
146 (sha256
147 (base32
ee37e1e5 148 "0f3yi3n4sl9myiay95yhv2a9an338qddfjrbv7da753ip66dkfz6"))))
133056bd
LC
149 (build-system gnu-build-system)
150 (arguments
151 '(#:configure-flags '("--localstatedir=/var")))
152 (native-inputs `(("pkg-config" ,pkg-config)))
153 (inputs `(("guile" ,guile-2.0)))
154 (synopsis "System service manager")
155 (description
156 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
157the execution of system services, replacing similar functionality found in
158typical init systems. It provides dependency-handling through a convenient
159interface and is based on GNU Guile.")
160 (license license:gpl3+)
161 (home-page "http://www.gnu.org/software/shepherd/")))
e932d371 162
fbc1a58f
CR
163(define-public dfc
164 (package
165 (name "dfc")
180d7ac1 166 (version "3.0.4")
fbc1a58f
CR
167 (source
168 (origin
169 (method url-fetch)
170 (uri (string-append
180d7ac1 171 "http://projects.gw-computing.net/attachments/download/79/dfc-"
fbc1a58f
CR
172 version ".tar.gz"))
173 (sha256
174 (base32
180d7ac1 175 "0zk1ppx93ijimf4sbgqilxxikpsa2gmpbynknyh41xy7jbdjxp0b"))))
fbc1a58f
CR
176 (build-system cmake-build-system)
177 (arguments '(#:tests? #f)) ; There are no tests.
1dba6407 178 (native-inputs `(("gettext" ,gnu-gettext)))
fbc1a58f
CR
179 (home-page "http://projects.gw-computing.net/projects/dfc")
180 (synopsis "Display file system space usage using graphs and colors")
181 (description
182 "dfc (df color) is a modern version of df. It uses colors, draws pretty
183graphs and can export its output to different formats.")
f61e0e79 184 (license license:bsd-3)))
fbc1a58f 185
340c7033
CR
186(define-public htop
187 (package
188 (name "htop")
621954ba 189 (version "2.0.2")
340c7033
CR
190 (source (origin
191 (method url-fetch)
20e6c852 192 (uri (string-append "http://hisham.hm/htop/releases/"
340c7033
CR
193 version "/htop-" version ".tar.gz"))
194 (sha256
195 (base32
621954ba 196 "11zlwadm6dpkrlfvf3z3xll26yyffa7qrxd1w72y1kl0rgffk6qp"))))
340c7033
CR
197 (build-system gnu-build-system)
198 (inputs
199 `(("ncurses" ,ncurses)))
200 (home-page "http://htop.sourceforge.net/")
201 (synopsis "Interactive process viewer")
202 (description
203 "This is htop, an interactive process viewer. It is a text-mode
204application (for console or X terminals) and requires ncurses.")
f61e0e79 205 (license license:gpl2)))
340c7033 206
1df895b0
LC
207(define-public pies
208 (package
209 (name "pies")
210 (version "1.2")
211 (source
212 (origin
213 (method url-fetch)
214 (uri (string-append "mirror://gnu/pies/pies-"
215 version ".tar.bz2"))
216 (sha256
217 (base32
218 "18w0dbg77i56cx1bwa789w0qi3l4xkkbascxcv2b6gbm0zmjg1g6"))))
219 (build-system gnu-build-system)
220 (home-page "http://www.gnu.org/software/pies/")
f50d2669 221 (synopsis "Program invocation and execution supervisor")
1df895b0 222 (description
79c311b8 223 "GNU pies is a program that supervises the invocation and execution of
a22dc0c4
LC
224other programs. It reads the list of programs to be started from its
225configuration file, executes them, and then monitors their status,
226re-executing them as necessary.")
f61e0e79 227 (license license:gpl3+)))
1df895b0
LC
228
229(define-public inetutils
230 (package
231 (name "inetutils")
8b1c8e4e 232 (version "1.9.4")
01eafd38
LC
233 (source (origin
234 (method url-fetch)
235 (uri (string-append "mirror://gnu/inetutils/inetutils-"
236 version ".tar.gz"))
237 (sha256
238 (base32
8b1c8e4e 239 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
1df895b0 240 (build-system gnu-build-system)
01eafd38 241 (arguments `(;; FIXME: `tftp.sh' relies on `netstat' from utils-linux,
1df895b0
LC
242 ;; which is currently missing.
243 #:tests? #f))
9927622f
LC
244 (inputs `(("ncurses" ,ncurses)
245 ("readline" ,readline))) ; for 'ftp'
1df895b0 246 (home-page "http://www.gnu.org/software/inetutils/")
f50d2669 247 (synopsis "Basic networking utilities")
1df895b0 248 (description
a22dc0c4
LC
249 "Inetutils is a collection of common network programs, such as an ftp
250client and server, a telnet client and server, and an rsh client and server.")
f61e0e79 251 (license license:gpl3+)))
9a9e72d5
LC
252
253(define-public shadow
254 (package
255 (name "shadow")
ca2a55d4 256 (version "4.2.1")
9a9e72d5 257 (source (origin
ca2a55d4
SB
258 (method url-fetch)
259 (uri (string-append
260 "http://pkg-shadow.alioth.debian.org/releases/"
261 name "-" version ".tar.xz"))
262 (sha256
263 (base32
264 "0h9x1zdbq0pqmygmc1x459jraiqw4gqz8849v268crk78z8r621v"))))
9a9e72d5
LC
265 (build-system gnu-build-system)
266 (arguments
267 '(;; Assume System V `setpgrp (void)', which is the default on GNU
268 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
269 #:configure-flags '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
270
271 #:phases (alist-cons-before
272 'build 'set-nscd-file-name
273 (lambda* (#:key inputs #:allow-other-keys)
274 ;; Use the right file name for nscd.
275 (let ((libc (assoc-ref inputs "libc")))
276 (substitute* "lib/nscd.c"
277 (("/usr/sbin/nscd")
278 (string-append libc "/sbin/nscd")))))
279 (alist-cons-after
280 'install 'remove-groups
281 (lambda* (#:key outputs #:allow-other-keys)
282 ;; Remove `groups', which is already provided by Coreutils.
283 (let* ((out (assoc-ref outputs "out"))
284 (bin (string-append out "/bin"))
ca2a55d4 285 (man (string-append out "/share/man")))
9a9e72d5
LC
286 (delete-file (string-append bin "/groups"))
287 (for-each delete-file (find-files man "^groups\\."))
288 #t))
8d846470 289 %standard-phases))))
9a9e72d5
LC
290
291 (inputs (if (string-suffix? "-linux"
292 (or (%current-target-system)
293 (%current-system)))
294 `(("linux-pam" ,linux-pam))
295 '()))
296 (home-page "http://pkg-shadow.alioth.debian.org/")
297 (synopsis "Authentication-related tools such as passwd, su, and login")
298 (description
299 "Shadow provides a number of authentication-related tools, including:
300login, passwd, su, groupadd, and useradd.")
301
302 ;; The `vipw' program is GPLv2+.
303 ;; libmisc/salt.c is public domain.
f61e0e79 304 (license license:bsd-3)))
1e151896
LC
305
306(define-public mingetty
307 (package
308 (name "mingetty")
309 (version "1.08")
310 (source (origin
311 (method url-fetch)
de67e922
LF
312 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
313 version "/mingetty-" version ".tar.gz"))
1e151896
LC
314 (sha256
315 (base32
316 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
317 (build-system gnu-build-system)
318 (arguments
319 `(#:phases (alist-replace 'configure
320 (lambda* (#:key inputs outputs
321 #:allow-other-keys)
322 (let* ((out (assoc-ref outputs "out"))
323 (man8 (string-append
324 out "/share/man/man8"))
325 (sbin (string-append out "/sbin"))
326 (shadow (assoc-ref inputs "shadow"))
327 (login (string-append shadow
328 "/bin/login")))
329 (substitute* "Makefile"
330 (("^SBINDIR.*")
331 (string-append "SBINDIR = " out
332 "/sbin\n"))
333 (("^MANDIR.*")
334 (string-append "MANDIR = " out
335 "/share/man/man8\n")))
336
337 ;; Pick the right 'login' by default.
338 (substitute* "mingetty.c"
339 (("\"/bin/login\"")
340 (string-append "\"" login "\"")))
341
342 (mkdir-p sbin)
343 (mkdir-p man8)))
344 %standard-phases)
345 #:tests? #f)) ; no tests
346 (inputs `(("shadow" ,shadow)))
347
348 (home-page "http://sourceforge.net/projects/mingetty")
349 (synopsis "Getty for the text console")
350 (description
351 "Small console getty that is started on the Linux text console,
352asks for a login name and then transfers over to 'login'. It is extended to
353allow automatic login and starting any app.")
f61e0e79 354 (license license:gpl2+)))
c773aba8
LC
355
356(define-public net-base
357 (package
358 (name "net-base")
db719df7 359 (version "5.3")
c773aba8
LC
360 (source (origin
361 (method url-fetch)
362 (uri (string-append
34af3684 363 "mirror://debian/pool/main/n/netbase/netbase_"
db719df7 364 version ".tar.xz"))
c773aba8
LC
365 (sha256
366 (base32
db719df7 367 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
c773aba8
LC
368 (build-system trivial-build-system)
369 (arguments
370 `(#:modules ((guix build utils))
371 #:builder (begin
372 (use-modules (guix build utils)
373 (srfi srfi-26))
374
375 (let* ((source (assoc-ref %build-inputs "source"))
376 (tar (assoc-ref %build-inputs "tar"))
db719df7 377 (xz (assoc-ref %build-inputs "xz"))
c773aba8
LC
378 (output (assoc-ref %outputs "out"))
379 (etc (string-append output "/etc")))
db719df7 380 (setenv "PATH" (string-append xz "/bin"))
c773aba8
LC
381 (system* (string-append tar "/bin/tar") "xvf"
382 source)
383 (chdir ,(string-append "netbase-" version))
384 (mkdir-p etc)
385 (for-each copy-file
386 '("etc-services" "etc-protocols" "etc-rpc")
387 (map (cut string-append etc "/" <>)
388 '("services" "protocols" "rpc")))
389 #t))))
390 (native-inputs `(("tar" ,tar)
f61e0e79 391 ("xz" ,xz)))
c773aba8
LC
392 (synopsis "IANA protocol, port, and RPC number assignments")
393 (description
394 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
395files, which contain information about the IANA-assigned port, protocol, and
e881752c 396ONC RPC numbers.")
c773aba8 397 (home-page "http://packages.debian.org/sid/netbase")
f61e0e79 398 (license license:gpl2)))
94c4a58a
LC
399
400(define-public netcat
401 (package
402 (name "netcat")
403 (version "0.7.1")
404 (source (origin
405 (method url-fetch)
de67e922
LF
406 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
407 "/netcat-" version ".tar.bz2"))
94c4a58a
LC
408 (sha256
409 (base32
410 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
411 (build-system gnu-build-system)
0e4e89c2
MW
412 (arguments
413 `(#:configure-flags
414 ;; By default, man and info pages are put in PREFIX/{man,info},
415 ;; but we want them in PREFIX/share/{man,info}.
416 (let ((out (assoc-ref %outputs "out")))
417 (list (string-append "--mandir=" out "/share/man")
418 (string-append "--infodir=" out "/share/info")))))
94c4a58a
LC
419 (home-page "http://netcat.sourceforge.net")
420 (synopsis "Read and write data over TCP/IP")
421 (description
422 "Netcat is a featured networking utility which reads and writes data
423across network connections, using the TCP/IP protocol. It is designed to be a
424reliable \"back-end\" tool that can be used directly or easily driven by other
35b9e423 425programs and scripts. At the same time, it is a feature-rich network debugging
94c4a58a
LC
426and exploration tool, since it can create almost any kind of connection you
427would need and has several interesting built-in capabilities.")
f61e0e79 428 (license license:gpl2+)))
d038cac1
LC
429
430(define-public alive
431 (package
432 (name "alive")
433 (version "2.0.2")
434 (source (origin
435 (method url-fetch)
436 (uri (string-append "mirror://gnu/alive/alive-"
437 version ".tar.xz"))
438 (sha256
439 (base32
440 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
441 (build-system gnu-build-system)
442 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
443 (inputs `(("guile" ,guile-2.0)
444 ("inetutils" ,inetutils)))
445 (home-page "http://www.gnu.org/software/alive/")
446 (synopsis "Autologin and keep-alive daemon")
447 (description
448 "GNU Alive sends periodic pings to a server, generally to keep a
449connection alive.")
f61e0e79 450 (license license:gpl3+)))
c73d4c92
LC
451
452(define-public isc-dhcp
6548b1e1
MW
453 (let* ((bind-major-version "9")
454 (bind-minor-version "9")
ef3b9047
MW
455 (bind-patch-version "9")
456 (bind-release-type "") ; for patch release, use "-P"
457 (bind-release-version "") ; for patch release, e.g. "4"
6548b1e1
MW
458 (bind-version (string-append bind-major-version
459 "."
460 bind-minor-version
461 "."
462 bind-patch-version
463 bind-release-type
464 bind-release-version)))
465 (package
466 (name "isc-dhcp")
ef3b9047 467 (version "4.3.4")
6548b1e1
MW
468 (source (origin
469 (method url-fetch)
470 (uri (string-append "http://ftp.isc.org/isc/dhcp/"
471 version "/dhcp-" version ".tar.gz"))
472 (sha256
473 (base32
ef3b9047 474 "0zk0imll6bfyp9p4ndn8h6s4ifijnw5bhixswifr5rnk7pp5l4gm"))))
6548b1e1
MW
475 (build-system gnu-build-system)
476 (arguments
e54465ff
MW
477 `(#:parallel-build? #f
478 #:phases
6548b1e1
MW
479 (modify-phases %standard-phases
480 (add-after 'unpack 'replace-bundled-bind
481 (lambda* (#:key inputs #:allow-other-keys)
482 (delete-file "bind/bind.tar.gz")
483 (copy-file (assoc-ref inputs "bind-source-tarball")
484 "bind/bind.tar.gz")
485 (chmod "bind/bind.tar.gz" #o644)
486 (substitute* "bind/version.tmp"
487 (("^MAJORVER=.*")
488 (format #f "MAJORVER=~a\n" ,bind-major-version))
489 (("^MINORVER=.*")
490 (format #f "MINORVER=~a\n" ,bind-minor-version))
491 (("^PATCHVER=.*")
492 (format #f "PATCHVER=~a\n" ,bind-patch-version))
493 (("^RELEASETYPE=.*")
494 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
495 (("^RELEASEVER=.*")
496 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
497 #t))
498 (add-after 'configure 'post-configure
499 (lambda* (#:key outputs #:allow-other-keys)
500 ;; Point to the right client script, which will be
501 ;; installed in a later phase.
502 (substitute* "includes/dhcpd.h"
503 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
504 (let ((out (assoc-ref outputs "out")))
505 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
506 out "/libexec/dhclient-script"
507 "\"\n"))))
c73d4c92 508
6548b1e1
MW
509 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
510 ;; we must patch shebangs in there and make sure the right
511 ;; shell is used.
512 (with-directory-excursion "bind"
513 (substitute* "Makefile"
514 (("\\./configure")
515 (let ((sh (which "sh")))
516 (string-append "./configure CONFIG_SHELL="
517 sh " SHELL=" sh))))
c73d4c92 518
6548b1e1
MW
519 (let ((bind-directory (string-append "bind-" ,bind-version)))
520 (system* "tar" "xf" "bind.tar.gz")
521 (for-each patch-shebang
522 (find-files bind-directory ".*"))
523 (zero? (system* "tar" "cf" "bind.tar.gz"
524 bind-directory
525 ;; avoid non-determinism in the archive
526 "--sort=name"
527 "--mtime=@0"
528 "--owner=root:0"
529 "--group=root:0"))))))
530 (add-after 'install 'post-install
531 (lambda* (#:key inputs outputs #:allow-other-keys)
532 ;; Install the dhclient script for GNU/Linux and make sure
533 ;; if finds all the programs it needs.
534 (let* ((out (assoc-ref outputs "out"))
535 (libexec (string-append out "/libexec"))
536 (coreutils (assoc-ref inputs "coreutils"))
537 (inetutils (assoc-ref inputs "inetutils"))
538 (net-tools (assoc-ref inputs "net-tools"))
539 (sed (assoc-ref inputs "sed")))
540 (substitute* "client/scripts/linux"
541 (("/sbin/ip")
542 (string-append (assoc-ref inputs "iproute")
543 "/sbin/ip")))
c73d4c92 544
6548b1e1
MW
545 (mkdir-p libexec)
546 (copy-file "client/scripts/linux"
547 (string-append libexec "/dhclient-script"))
c73d4c92 548
6548b1e1
MW
549 (wrap-program
550 (string-append libexec "/dhclient-script")
551 `("PATH" ":" prefix
552 ,(map (lambda (dir)
553 (string-append dir "/bin:"
554 dir "/sbin"))
555 (list inetutils net-tools coreutils sed))))))))))
c73d4c92 556
6548b1e1 557 (native-inputs `(("perl" ,perl)))
c73d4c92 558
6548b1e1
MW
559 (inputs `(("inetutils" ,inetutils)
560 ("net-tools" ,net-tools)
561 ("iproute" ,iproute)
dc343935 562
6548b1e1
MW
563 ;; XXX isc-dhcp bundles a copy of bind that has security
564 ;; flaws, so we use a newer version.
565 ("bind-source-tarball"
566 ,(origin
567 (method url-fetch)
568 (uri (string-append "http://ftp.isc.org/isc/bind9/"
569 bind-version
570 "/bind-" bind-version ".tar.gz"))
571 (sha256
572 (base32
ef3b9047 573 "0w8qqm6p2y6x57j2l0a3278g173wd84dsr4py9z00191f3wra74q"))))
c73d4c92 574
6548b1e1
MW
575 ;; When cross-compiling, we need the cross Coreutils and sed.
576 ;; Otherwise just use those from %FINAL-INPUTS.
577 ,@(if (%current-target-system)
578 `(("coreutils" ,coreutils)
579 ("sed" ,sed))
580 '())))
581
582 (home-page "http://www.isc.org/products/DHCP/")
583 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
584 (description
585 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
c73d4c92
LC
586reference implementation of all aspects of DHCP, through a suite of DHCP
587tools: server, client, and relay agent.")
159a5e01
LC
588 (license license:isc)
589 (properties '((cpe-name . "dhcp"))))))
02c86a5e
LC
590
591(define-public libpcap
592 (package
593 (name "libpcap")
42e8f734 594 (version "1.7.4")
02c86a5e
LC
595 (source (origin
596 (method url-fetch)
597 (uri (string-append "http://www.tcpdump.org/release/libpcap-"
598 version ".tar.gz"))
599 (sha256
600 (base32
42e8f734 601 "1c28ykkizd7jqgzrfkg7ivqjlqs9p6lygp26bsw2i0z8hwhi3lvs"))))
02c86a5e
LC
602 (build-system gnu-build-system)
603 (native-inputs `(("bison" ,bison) ("flex" ,flex)))
e03f6d5e
RW
604 (arguments '(#:configure-flags '("--with-pcap=linux")
605 #:tests? #f)) ; no 'check' target
02c86a5e
LC
606 (home-page "http://www.tcpdump.org")
607 (synopsis "Network packet capture library")
608 (description
609 "libpcap is an interface for user-level packet capture. It provides a
610portable framework for low-level network monitoring. Applications include
611network statistics collection, security monitoring, network debugging, etc.")
612
613 ;; fad-*.c and a couple other files are BSD-4, but the rest is BSD-3.
f61e0e79 614 (license license:bsd-3)))
02c86a5e 615
1da34f5a
LC
616(define-public tcpdump
617 (package
618 (name "tcpdump")
6e32aa56 619 (version "4.7.4")
1da34f5a
LC
620 (source (origin
621 (method url-fetch)
622 (uri (string-append "http://www.tcpdump.org/release/tcpdump-"
623 version ".tar.gz"))
624 (sha256
625 (base32
6e32aa56 626 "1byr8w6grk08fsq0444jmcz9ar89lq9nf4mjq2cny0w9k8k21rbb"))))
1da34f5a 627 (build-system gnu-build-system)
10db1e6c 628 (inputs `(("libpcap" ,libpcap)
cc2b77df 629 ("openssl" ,openssl)))
1da34f5a 630 (native-inputs `(("perl" ,perl))) ; for tests
1da34f5a
LC
631 (home-page "http://www.tcpdump.org/")
632 (synopsis "Network packet analyzer")
633 (description
634 "Tcpdump is a command-line tool to analyze network traffic passing
635through the network interface controller.")
f61e0e79 636 (license license:bsd-3)))
1da34f5a 637
02c86a5e
LC
638(define-public jnettop
639 (package
640 (name "jnettop")
641 (version "0.13.0")
642 (source (origin
643 (method url-fetch)
644 (uri (string-append "http://jnettop.kubs.info/dist/jnettop-"
645 version ".tar.gz"))
646 (sha256
647 (base32
648 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
649 (build-system gnu-build-system)
650 (native-inputs
651 `(("pkg-config" ,pkg-config)))
652 (inputs
653 `(("glib" ,glib)
654 ("ncurses" ,ncurses)
655 ("libpcap" ,libpcap)))
656 (home-page "http://jnettop.kubs.info/")
657 (synopsis "Visualize network traffic by bandwidth use")
658 (description
659 "Jnettop is a traffic visualiser, which captures traffic going
660through the host it is running from and displays streams sorted
661by bandwidth they use.")
f61e0e79 662 (license license:gpl2+)))
87216303
EB
663
664(define-public clusterssh
665 (package
666 (name "clusterssh")
667 (version "3.28")
668 (source (origin
669 (method url-fetch)
670 (uri (string-append "mirror://sourceforge/clusterssh/"
de67e922
LF
671 "1.%20ClusterSSH%20Series%203/" version
672 "/clusterssh-" version ".tar.gz"))
87216303
EB
673 (sha256
674 (base32
675 "1bwggpvaj2al5blg1ynapviv2kpydffpzq2zkhi81najnvzc1rr7"))))
676 (build-system gnu-build-system)
677 (inputs `(("perl" ,perl)))
678 (propagated-inputs `(("xterm" ,xterm)
679 ("perl-tk" ,perl-tk)
680 ("perl-x11-protocol" ,perl-x11-protocol)))
681 (arguments
682 `(#:phases
683 (alist-cons-after
684 'install 'set-load-paths
685 (lambda* (#:key inputs outputs #:allow-other-keys)
686 ;; Put the perl-tk and perl-x11-protocol modules in the perl inc
687 ;; path for PROG
688 (let* ((out (assoc-ref outputs "out"))
689 (prog (string-append out "/bin/cssh"))
690 (perl-ver ,(package-version perl))
691 (x11-inc (string-append
692 (assoc-ref inputs "perl-x11-protocol")
693 "/lib/perl5/site_perl/" perl-ver))
694 (tk-inc (string-append
695 (assoc-ref inputs "perl-tk")
696 "/lib/perl5/site_perl/" perl-ver
697 "/x86_64-linux")))
698 (wrap-program
699 prog
700 `("PERL5LIB" ":" prefix (,x11-inc ,tk-inc)))))
701 %standard-phases)))
702 ;; The clusterssh.sourceforge.net address requires login to view
703 (home-page "http://sourceforge.net/projects/clusterssh/")
704 (synopsis "Secure concurrent multi-server terminal control")
705 (description
706 "ClusterSSH controls a number of xterm windows via a single graphical
707console window to allow commands to be interactively run on multiple servers
708over ssh connections.")
f61e0e79 709 (license license:gpl2+)))
fccf2fe0
LC
710
711(define-public rottlog
712 (package
713 (name "rottlog")
714 (version "0.72.2")
715 (source (origin
716 (method url-fetch)
717 (uri (string-append "mirror://gnu/rottlog/rottlog-"
718 version ".tar.gz"))
719 (sha256
720 (base32
721 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
722 (modules '((guix build utils)))
723 (snippet
724 '(substitute* "Makefile.in"
725 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
726 ;; Don't try to chown root.
727 "")
728 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
729 ;; Don't attempt to create /var/lib/rottlog.
730 "true")))))
731 (build-system gnu-build-system)
732 (arguments
733 '(#:configure-flags (list (string-append "ROTT_ETCDIR="
734 (assoc-ref %outputs "out")
735 "/etc")
736 "--localstatedir=/var")
737 #:phases (alist-cons-after
738 'install 'install-info
739 (lambda _
740 (zero? (system* "make" "install-info")))
741 %standard-phases)))
742 (native-inputs `(("texinfo" ,texinfo)
743 ("util-linux" ,util-linux))) ; for 'cal'
744 (home-page "http://www.gnu.org/software/rottlog/")
745 (synopsis "Log rotation and management")
746 (description
747 "GNU Rot[t]log is a program for managing log files. It is used to
748automatically rotate out log files when they have reached a given size or
749according to a given schedule. It can also be used to automatically compress
750and archive such logs. Rot[t]log will mail reports of its activity to the
751system administrator.")
f61e0e79 752 (license license:gpl3+)))
e1485c7b
LC
753
754(define-public sudo
755 (package
756 (name "sudo")
6baa83d2 757 (version "1.8.17p1")
e1485c7b
LC
758 (source (origin
759 (method url-fetch)
760 (uri
6baa83d2 761 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
e1485c7b
LC
762 version ".tar.gz")
763 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
764 version ".tar.gz")))
765 (sha256
766 (base32
6baa83d2 767 "1k2mn65l1kmsxm8wh0gjxy496xhbpiimbpm6yv6kw6snzc3xg466"))))
e1485c7b
LC
768 (build-system gnu-build-system)
769 (arguments
0086ec73
LC
770 `(#:configure-flags
771 (list "--with-logpath=/var/log/sudo.log"
7b78f359 772 "--with-rundir=/var/run/sudo" ;must be cleaned up at boot time
0086ec73
LC
773 "--with-vardir=/var/db/sudo"
774 "--with-iologdir=/var/log/sudo-io"
775
776 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
777 ;; provide it.
778 (string-append "CPPFLAGS=-D_PATH_MV='\""
779 (assoc-ref %build-inputs "coreutils")
780 "/bin/mv\"'"))
511495fb
LC
781
782 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
783 #:parallel-build? #f
784
e1485c7b
LC
785 #:phases (alist-cons-before
786 'configure 'pre-configure
787 (lambda _
0086ec73
LC
788 (substitute* "src/sudo_usage.h.in"
789 ;; Do not capture 'configure' arguments since we would
790 ;; unduly retain references, and also because the
791 ;; CPPFLAGS above would close the string literal
792 ;; prematurely.
793 (("@CONFIGURE_ARGS@") "\"\""))
e1485c7b 794 (substitute* (find-files "." "Makefile\\.in")
0086ec73 795 (("-o [[:graph:]]+ -g [[:graph:]]+")
e1485c7b
LC
796 ;; Allow installation as non-root.
797 "")
798 (("^install: (.*)install-sudoers(.*)" _ before after)
799 ;; Don't try to create /etc/sudoers.
e1626e3b
SB
800 (string-append "install: " before after "\n"))
801 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
802 ;; Don't try to create /run/sudo.
803 "$(TMPDIR)/dummy")
804 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
805 ;; Don't try to create /var/db/sudo.
806 "$(TMPDIR)/dummy")))
e1485c7b
LC
807 %standard-phases)
808
809 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
810 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
811 #:tests? #f))
812 (inputs
813 `(("groff" ,groff)
814 ("linux-pam" ,linux-pam)
815 ("coreutils" ,coreutils)))
6baa83d2 816 (home-page "https://www.sudo.ws/")
e1485c7b
LC
817 (synopsis "Run commands as root")
818 (description
819 "Sudo (su \"do\") allows a system administrator to delegate authority to
820give certain users (or groups of users) the ability to run some (or all)
821commands as root or another user while providing an audit trail of the
822commands and their arguments.")
823
824 ;; See <http://www.sudo.ws/sudo/license.html>.
f61e0e79 825 (license license:x11)))
952298d7 826
1ce6f43a 827(define-public wpa-supplicant-minimal
952298d7 828 (package
1ce6f43a 829 (name "wpa-supplicant-minimal")
e91e28d6 830 (version "2.5")
952298d7
LC
831 (source (origin
832 (method url-fetch)
833 (uri (string-append
9a727700 834 "http://w1.fi/releases/wpa_supplicant-"
952298d7
LC
835 version
836 ".tar.gz"))
837 (sha256
838 (base32
419630e0
MW
839 "05mkp5bx1c3z7h5biddsv0p49gkrq9ksany3anp4wdiv92p5prfc"))
840 (patches
fc1adab1
AK
841 (search-patches "wpa-supplicant-CVE-2015-5310.patch"
842 "wpa-supplicant-CVE-2015-5314.patch"
843 "wpa-supplicant-CVE-2015-5315.patch"
0a17fd7c
MW
844 "wpa-supplicant-CVE-2015-5316.patch"
845 "wpa-supplicant-CVE-2016-4476.patch"
846 "wpa-supplicant-CVE-2016-4477-pt1.patch"
847 "wpa-supplicant-CVE-2016-4477-pt2.patch"
848 "wpa-supplicant-CVE-2016-4477-pt3.patch"
849 "wpa-supplicant-CVE-2016-4477-pt4.patch"))))
952298d7
LC
850 (build-system gnu-build-system)
851 (arguments
852 '(#:phases (alist-replace
853 'configure
854 (lambda* (#:key outputs #:allow-other-keys)
855 (chdir "wpa_supplicant")
856 (copy-file "defconfig" ".config")
857 (let ((port (open-file ".config" "al")))
858 (display "
859 CONFIG_DEBUG_SYSLOG=y
40b4c6d6 860
61bdd0d8
LC
861 # Choose GnuTLS (the default is OpenSSL.)
862 CONFIG_TLS=gnutls
863
952298d7
LC
864 CONFIG_DRIVER_NL80211=y
865 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
866 CONFIG_LIBNL32=y
867 CONFIG_READLINE=y\n" port)
868 (close-port port)))
ffd74de0
LC
869
870 (alist-cons-after
871 'install 'install-man-pages
872 (lambda* (#:key outputs #:allow-other-keys)
873 (let* ((out (assoc-ref outputs "out"))
874 (man (string-append out "/share/man"))
875 (man5 (string-append man "/man5"))
876 (man8 (string-append man "/man8")))
877 (define (copy-man-page target)
878 (lambda (file)
879 (copy-file file
880 (string-append target "/"
881 (basename file)))))
882
883 (mkdir-p man5) (mkdir man8)
884 (for-each (copy-man-page man5)
885 (find-files "doc/docbook" "\\.5"))
886 (for-each (copy-man-page man8)
887 (find-files "doc/docbook" "\\.8"))
888 #t))
889 %standard-phases))
952298d7
LC
890
891 #:make-flags (list "CC=gcc"
892 (string-append "BINDIR=" (assoc-ref %outputs "out")
893 "/sbin")
894 (string-append "LIBDIR=" (assoc-ref %outputs "out")
895 "/lib"))
896 #:tests? #f))
897 (inputs
898 `(("readline" ,readline)
899 ("libnl" ,libnl)
61bdd0d8
LC
900 ("gnutls" ,gnutls)
901 ("libgcrypt" ,libgcrypt))) ;needed by crypto_gnutls.c
952298d7
LC
902 (native-inputs
903 `(("pkg-config" ,pkg-config)))
9a727700 904 (home-page "http://w1.fi/wpa_supplicant/")
952298d7
LC
905 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
906 (description
907 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
908802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
909the client stations. It implements key negotiation with a WPA Authenticator
910and it controls the roaming and IEEE 802.11 authentication/association of the
911WLAN driver.
912
913This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
914
915 ;; In practice, this is linked against Readline, which makes it GPLv3+.
f61e0e79 916 (license license:bsd-3)))
c6b76405 917
4fb7e0de 918(define-public wpa-supplicant
1ce6f43a 919 (package (inherit wpa-supplicant-minimal)
4fb7e0de
MW
920 (name "wpa-supplicant")
921 (inputs `(("dbus" ,dbus)
1ce6f43a 922 ,@(package-inputs wpa-supplicant-minimal)))
4fb7e0de 923 (arguments
1ce6f43a 924 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
4fb7e0de 925 ((#:phases phases)
6744aba8
MW
926 `(alist-cons-after
927 'configure 'configure-for-dbus
928 (lambda _
929 (let ((port (open-file ".config" "al")))
930 (display "
4fb7e0de
MW
931 CONFIG_CTRL_IFACE_DBUS=y
932 CONFIG_CTRL_IFACE_DBUS_NEW=y
933 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
6744aba8
MW
934 (close-port port))
935 #t)
936 (alist-cons-after
937 'install-man-pages 'install-dbus-conf
938 (lambda* (#:key outputs #:allow-other-keys)
939 (let* ((out (assoc-ref outputs "out"))
940 (dir (string-append out "/etc/dbus-1/system.d")))
941 (mkdir-p dir)
942 (copy-file "dbus/dbus-wpa_supplicant.conf"
943 (string-append dir "/wpa_supplicant.conf"))))
944 ,phases)))))))
4fb7e0de 945
c6b76405
LC
946(define-public wakelan
947 (package
948 (name "wakelan")
949 (version "1.1")
950 (source (origin
951 (method url-fetch)
952 (uri (string-append
953 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
954 version ".tar.gz"))
955 (sha256
956 (base32
957 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
958 (build-system gnu-build-system)
959 (arguments
960 '(#:phases (alist-replace
961 'configure
962 (lambda* (#:key outputs #:allow-other-keys)
963 (let ((out (assoc-ref outputs "out")))
964 (mkdir-p (string-append out "/bin"))
965 (mkdir-p (string-append out "/share/man/man1"))
966
967 ;; It's an old configure script that doesn't understand
968 ;; the extra options we pass.
969 (setenv "CONFIG_SHELL" (which "bash"))
970 (zero?
971 (system* "./configure"
972 (string-append "--prefix=" out)
973 (string-append "--mandir=" out
974 "/share/man")))))
975 %standard-phases)
976 #:tests? #f))
977 (home-page "http://kernel.org") ; really, no home page
978 (synopsis "Send a wake-on-LAN packet")
979 (description
980 "WakeLan broadcasts a properly formatted UDP packet across the local area
981network, which causes enabled computers to power on.")
f61e0e79 982 (license license:gpl2+)))
d43f4296
LC
983
984(define-public dmidecode
985 (package
986 (name "dmidecode")
06438b07 987 (version "3.0")
d43f4296
LC
988 (source (origin
989 (method url-fetch)
990 (uri (string-append
991 "mirror://savannah/dmidecode/dmidecode-"
06438b07 992 version ".tar.xz"))
d43f4296
LC
993 (sha256
994 (base32
06438b07 995 "0iby0xfk5x3cdr0x0gxj5888jjyjhafvaq0l79civ73jjfqmphvy"))))
d43f4296
LC
996 (build-system gnu-build-system)
997 (arguments
06438b07 998 '(#:phases (modify-phases %standard-phases (delete 'configure))
d43f4296
LC
999 #:tests? #f ; no 'check' target
1000 #:make-flags (list (string-append "prefix="
1001 (assoc-ref %outputs "out")))))
1002 (home-page "http://www.nongnu.org/dmidecode/")
1003 (synopsis "Read hardware information from the BIOS")
1004 (description
1005 "Dmidecode reports information about your system's hardware as described
1006in your system BIOS according to the SMBIOS/DMI standard. This typically
1007includes system manufacturer, model name, serial number, BIOS version, asset
1008tag as well as a lot of other details of varying level of interest and
1009reliability depending on the manufacturer. This will often include usage
1010status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1011module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
f61e0e79 1012 (license license:gpl2+)))
42dc3af5 1013
13c8c2bf
MW
1014(define-public acpica
1015 (package
1016 (name "acpica")
2036a648 1017 (version "20150410")
13c8c2bf
MW
1018 (source (origin
1019 (method url-fetch)
1020 (uri (string-append
1021 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1022 version ".tar.gz"))
1023 (sha256
1024 (base32
2036a648 1025 "0q1fjwkyw9x6gsva6fd0zbn7ly4fx0ha4853f416np9kf2irillw"))))
13c8c2bf
MW
1026 (build-system gnu-build-system)
1027 (native-inputs `(("flex" ,flex)
1028 ("bison" ,bison)))
1029 (arguments
1030 '(#:make-flags (list (string-append "PREFIX=" %output)
1031 "HOST=_LINUX"
1032 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1033 #:tests? #f ; no 'check' target.
1034 #:phases (alist-delete 'configure %standard-phases)))
1035 (home-page "http://acpica.org/")
35b9e423 1036 (synopsis "Tools for the development and debug of ACPI tables")
13c8c2bf
MW
1037 (description
1038 "The ACPI Component Architecture (ACPICA) project provides an
1039OS-independent reference implementation of the Advanced Configuration and
1040Power Interface Specification (ACPI). ACPICA code contains those portions of
1041ACPI meant to be directly integrated into the host OS as a kernel-resident
1042subsystem, and a small set of tools to assist in developing and debugging ACPI
1043tables. This package contains only the user-space tools needed for ACPI table
1044development, not the kernel implementation of ACPI.")
f61e0e79 1045 (license license:gpl2))) ; Dual GPLv2/ACPICA Licence
4cf7bd2b
MW
1046
1047(define-public stress
1048 (package
1049 (name "stress")
1050 (version "1.0.1")
1051 (source (origin
1052 (method url-fetch)
1053 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1054 version ".orig.tar.gz"))
1055 (sha256
1056 (base32
1057 "1v9vnzlihqfjsxa93hdbrq72pqqk00dkylmlg8jpxhm7s1w9qfl1"))))
1058 (build-system gnu-build-system)
1059 (home-page "http://packages.debian.org/wheezy/stress")
9e771e3b 1060 (synopsis "Impose load on and stress test a computer system")
4cf7bd2b 1061 (description
35b9e423 1062 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
4cf7bd2b
MW
1063or disk stress on a POSIX-compliant operating system and reports any errors it
1064detects.
1065
35b9e423 1066Stress is not a benchmark. It is a tool used by system administrators to
4cf7bd2b
MW
1067evaluate how well their systems will scale, by kernel programmers to evaluate
1068perceived performance characteristics, and by systems programmers to expose
1069the classes of bugs which only or more frequently manifest themselves when the
1070system is under heavy load.")
f61e0e79 1071 (license license:gpl2+)))
b36fcf95
EB
1072
1073(define-public detox
1074 (package
1075 (name "detox")
1076 (version "1.2.0")
1077 (source (origin
1078 (method url-fetch)
de67e922
LF
1079 (uri (string-append "mirror://sourceforge/detox/detox/" version
1080 "/detox-" version ".tar.bz2"))
b36fcf95
EB
1081 (sha256
1082 (base32
1083 "1y6vvjqsg54kl49cry73jbfhr04s7wjs779vrr9zrq6kww7dkymb"))))
1084 (build-system gnu-build-system)
1085 ;; Both flex and popt are used in this case for their runtime libraries
1086 ;; (libfl and libpopt).
1087 (inputs
1088 `(("flex" ,flex)
1089 ("popt" ,popt)))
1090 (arguments
1091 `(#:configure-flags `(,(string-append "--with-popt="
1092 (assoc-ref %build-inputs "popt")))
1093 #:tests? #f)) ;no 'check' target
1094 (home-page "http://detox.sourceforge.net")
e881752c 1095 (synopsis "Clean up file names")
b36fcf95
EB
1096 (description
1097 "Detox is a program that renames files to make them easier to work with
1098under Unix and related operating systems. Spaces and various other unsafe
1099characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1100characters can be replaced as well, as can UTF-8 characters.")
f61e0e79 1101 (license license:bsd-3)))
c4492a16
LC
1102
1103(define-public testdisk
1104 (package
1105 (name "testdisk")
cf91cfc0 1106 (version "7.0")
c4492a16
LC
1107 (source (origin
1108 (method url-fetch)
1109 (uri (string-append "http://www.cgsecurity.org/testdisk-"
1110 version ".tar.bz2"))
1111 (sha256
1112 (base32
cf91cfc0 1113 "0ba4wfz2qrf60vwvb1qsq9l6j0pgg81qgf7fh22siaz649mkpfq0"))))
c4492a16
LC
1114 (build-system gnu-build-system)
1115 (inputs
d6a08ec0 1116 `(("ntfs-3g" ,ntfs-3g)
c4492a16 1117 ("util-linux" ,util-linux)
cc2b77df 1118 ("openssl" ,openssl)
d6a08ec0 1119 ;; FIXME: add reiserfs
f61e0e79 1120 ("zlib" ,zlib)
c4492a16
LC
1121 ("e2fsprogs" ,e2fsprogs)
1122 ("libjpeg" ,libjpeg)
1123 ("ncurses" ,ncurses)))
1124 (home-page "http://www.cgsecurity.org/wiki/TestDisk")
1125 (synopsis "Data recovery tool")
1126 (description
1127 "TestDisk is a program for data recovery, primarily designed to help
1128recover lost partitions and/or make non-booting disks bootable again.")
f61e0e79 1129 (license license:gpl2+)))
c4492a16 1130
15926aec
AS
1131(define-public tree
1132 (package
1133 (name "tree")
1134 (version "1.7.0")
1135 (source (origin
1136 (method url-fetch)
1137 (uri (string-append
1138 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1139 version ".tgz"))
1140 (sha256
1141 (base32 "04kviw799qxly08zb8n5mgxfd96gyis6x69q2qiw86jnh87c4mv9"))))
1142 (build-system gnu-build-system)
1143 (arguments
1144 '(#:phases (alist-delete 'configure %standard-phases)
1145 #:tests? #f ; no check target
1146 #:make-flags (let ((out (assoc-ref %outputs "out")))
1147 (list (string-append "prefix=" out)))))
1148 (synopsis "Recursively list the contents of a directory")
1149 (description
1150 "Tree is a recursive directory listing command that produces a depth
1151indented listing of files, which is colorized ala dircolors if the LS_COLORS
1152environment variable is set and output is to tty.")
1153 (home-page "http://mama.indstate.edu/users/ice/tree/")
1154 (license license:gpl2+)))
1155
c2619e10
LC
1156(define-public direvent
1157 (package
1158 (name "direvent")
1159 (version "5.0")
1160 (source (origin
1161 (method url-fetch)
1162 (uri (string-append "mirror://gnu/direvent/direvent-"
1163 version ".tar.gz"))
1164 (sha256
1165 (base32
1166 "1i14131y6m8wvirz6piw4zxz2q1kbpl0lniv5kl55rx4k372dg8z"))
1167 (modules '((guix build utils)))
1168 (snippet '(substitute* "tests/testsuite"
1169 (("#![[:blank:]]?/bin/sh")
1170 "#!$SHELL")))))
1171 (build-system gnu-build-system)
1172 (arguments
1173 '(#:phases (alist-cons-before
1174 'build 'patch-/bin/sh
1175 (lambda* (#:key inputs #:allow-other-keys)
1176 ;; Use the right shell when executing the watcher.
1177 (let ((bash (assoc-ref inputs "bash")))
1178 (substitute* "src/direvent.c"
1179 (("\"/bin/sh\"")
1180 (string-append "\"" bash "/bin/sh\"")))))
1181 %standard-phases)))
1182 (home-page "http://www.gnu.org/software/direvent/")
1183 (synopsis "Daemon to monitor directories for events such as file removal")
1184 (description
1185 "A daemon that monitors directories for events, such as creating,
35b9e423 1186deleting or modifying files. It can monitor different sets of directories for
c2619e10
LC
1187different events. When an event is detected, direvent calls a specified
1188external program with information about the event, such as the location
c5779c93
LC
1189within the file system where it occurred. Thus, \"direvent\" provides an
1190easy way to react immediately if given files undergo changes, for example, to
c2619e10 1191track changes in important system configuration files.")
f61e0e79 1192 (license license:gpl3+)))
da6c3749
TUBK
1193
1194(define-public libcap-ng
1195 (package
1196 (name "libcap-ng")
1197 (version "0.7.4")
1198 (source (origin
1199 (method url-fetch)
1200 (uri (string-append
1201 "http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1202 version ".tar.gz"))
1203 (sha256
1204 (base32
1205 "0ssvnh4cvhya0c1j6k6192zvqcq7nc0x01fb5nwhr0prfqr0i8j8"))))
1206 (build-system gnu-build-system)
1207 (inputs `(("python" ,python)))
1208 (home-page "http://people.redhat.com/sgrubb/libcap-ng/")
1209 (synopsis "Library for more easily working with POSIX capabilities")
1210 (description
1211 "The libcap-ng library is intended to make programming with POSIX
1212capabilities easier than the traditional libcap library. It includes
1213utilities that can analyse all currently running applications and print out
1214any capabilities and whether or not it has an open ended bounding set. The
1215included utilities are designed to let admins and developers spot apps from
1216various ways that may be running with too much privilege.")
1217 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
f61e0e79 1218 (license (list license:lgpl2.1+ license:gpl2+))))
d02f2cc4
TUBK
1219
1220(define-public smartmontools
1221 (package
1222 (name "smartmontools")
85de4365 1223 (version "6.5")
d02f2cc4
TUBK
1224 (source (origin
1225 (method url-fetch)
1226 (uri (string-append
1227 "mirror://sourceforge/smartmontools/smartmontools/"
1228 version "/smartmontools-" version ".tar.gz"))
1229 (sha256
1230 (base32
85de4365 1231 "1g25r6sx85b5lay5n6sbnqv05qxzj6xsafsp93hnrg1h044bps49"))))
d02f2cc4
TUBK
1232 (build-system gnu-build-system)
1233 (inputs `(("libcap-ng" ,libcap-ng)))
1234 (home-page "http://www.smartmontools.org/")
1235 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1236 (description
1237 "The smartmontools package contains utility programs to control and
1238monitor storage systems using the Self-Monitoring, Analysis and Reporting
1239Technology System (S.M.A.R.T.) built into most modern ATA and SCSI harddisks.
1240In many cases, these utilities will provide advanced warning of disk
1241degradation and failure.")
f61e0e79 1242 (license license:gpl2+)))
6efd0823
RW
1243
1244(define-public fdupes
1245 (package
1246 (name "fdupes")
1247 (version "1.51")
1248 (source
1249 (origin
1250 (method url-fetch)
1251 (uri (string-append
1252 "https://github.com/adrianlopezroche/fdupes/archive/fdupes-"
1253 version ".tar.gz"))
1254 (sha256
1255 (base32
1256 "11j96vxl9vg3jsnxqxskrv3gad6dh7hz2zpyc8n31xzyxka1c7kn"))))
1257 (build-system gnu-build-system)
1258 (arguments
1259 '(#:phases (alist-delete 'configure %standard-phases)
1260 #:tests? #f ; no 'check' target
1261 #:make-flags (list (string-append "PREFIX="
1262 (assoc-ref %outputs "out")))))
1263 (home-page "https://github.com/adrianlopezroche/fdupes")
1264 (synopsis "Identify duplicate files")
1265 (description
1266 "fdupes is a program for identifying duplicate files residing within
1267specified directories.")
1268 (license license:expat)))
4ecfbda7
DT
1269
1270(define-public graphios
1271 (package
1272 (name "graphios")
1273 (version "2.0.3")
1274 (source
1275 (origin
1276 (method url-fetch)
1277 (uri (string-append
1278 "https://pypi.python.org/packages/source/g/graphios/graphios-"
1279 version ".tar.gz"))
1280 (sha256
1281 (base32
1282 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1283 (build-system python-build-system)
1284 (arguments
1285 ;; Be warned: Building with Python 3 succeeds, but the build process
1286 ;; throws a syntax error that is ignored.
1287 `(#:python ,python-2
1288 #:phases
1289 (modify-phases %standard-phases
1290 (add-before 'build 'fix-setup.py
1291 (lambda* (#:key outputs #:allow-other-keys)
1292 ;; Fix hardcoded, unprefixed file names.
1293 (let ((out (assoc-ref outputs "out")))
1294 (substitute* '("setup.py")
1295 (("/etc") (string-append out "/etc"))
1296 (("/usr") out)
1297 (("distro_ver = .*") "distro_ver = ''"))
1298 #t))))))
1299 (inputs
1300 `(("python-setuptools" ,python2-setuptools)))
1301 (home-page "https://github.com/shawn-sterling/graphios")
1302 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1303 (description
1304 "Graphios is a script to emit nagios perfdata to various upstream metrics
1305processing and time-series systems. It's currently compatible with Graphite,
1306Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1307of supported upstream metrics systems simultaneously.")
1308 (license license:gpl2+)))
8d801045
ED
1309
1310(define-public ansible
1311 (package
1312 (name "ansible")
697e86dd 1313 (version "2.1.0.0")
8d801045
ED
1314 (source
1315 (origin
1316 (method url-fetch)
697e86dd 1317 (uri (pypi-uri "ansible" version))
8d801045
ED
1318 (sha256
1319 (base32
697e86dd 1320 "1bfc2xiplpad6f2nwi48y0kps7xqnsll85dlz63cy8k5bysl6d20"))))
8d801045
ED
1321 (build-system python-build-system)
1322 (native-inputs
1323 `(("python2-setuptools" ,python2-setuptools)
1324 ("python2-pycrypto" ,python2-pycrypto)
1325 ("python2-httplib2" ,python2-httplib2)
1326 ("python2-passlib" ,python2-passlib)
1327 ("python2-nose" ,python2-nose)
1328 ("python2-mock" ,python2-mock)
1329 ("python2-jinja2" ,python2-jinja2)
1330 ("python2-pyyaml" ,python2-pyyaml)
1331 ("python2-paramiko" ,python2-paramiko)))
1332 (inputs
1333 `(("python2-pycrypto" ,python2-pycrypto)
1334 ("python2-jinja2" ,python2-jinja2)
1335 ("python2-pyyaml" ,python2-pyyaml)
1336 ("python2-paramiko" ,python2-paramiko)))
1337 (arguments
1338 `(#:python ,python-2)) ; incompatible with Python 3
1339 (home-page "http://ansible.com/")
1340 (synopsis "Radically simple IT automation")
1341 (description "Ansible is a radically simple IT automation system. It
1342handles configuration-management, application deployment, cloud provisioning,
1343ad-hoc task-execution, and multinode orchestration - including trivializing
1344things like zero downtime rolling updates with load balancers.")
1345 (license license:gpl3+)))
44157e9f
EB
1346
1347(define-public cpulimit
1348 (package
1349 (name "cpulimit")
1350 (version "0.2")
1351 (source
1352 (origin
1353 (method url-fetch)
1354 (uri (string-append "https://github.com/opsengine/cpulimit/archive/v"
1355 version ".tar.gz"))
1356 (file-name (string-append name "-" version ".tar.gz"))
1357 (sha256
1358 (base32
1359 "1nn2w849xd5bw4y5sqnll29nxdwl5h0cv4smc7dwmpb9qnd2ycb4"))))
1360 (build-system gnu-build-system)
1361 (arguments
1362 `(#:phases (modify-phases %standard-phases
1363 (delete 'configure)
1364 (replace
1365 'build
1366 (lambda _
1367 (zero? (system* "make" "CC=gcc" "-Csrc"))))
1368 (replace
1369 'check
1370 (lambda _
1371 (zero? (system* "make" "CC=gcc" "-Ctests"))))
1372 (replace
1373 'install
1374 (lambda* (#:key outputs #:allow-other-keys)
1375 (let* ((out (assoc-ref outputs "out"))
1376 (bin (string-append out "/bin")))
1377 (install-file "src/cpulimit" bin)))))))
1378 (home-page "https://github.com/opsengine/cpulimit")
1379 (synopsis "Limit CPU usage")
1380 (description
1381 "Cpulimit limits the CPU usage of a process. It does not change the nice
1382value or other scheduling priority settings, but the real CPU usage, and is
1383able to adapt itself dynamically to the overall system load. Children
1384processes and threads of the specified process may optionally share the same
1385limits.")
1386 (license license:gpl2+)))
2328b47c
EB
1387
1388(define-public autojump
1389 (package
1390 (name "autojump")
1d33b9ea 1391 (version "22.3.4")
2328b47c
EB
1392 (source
1393 (origin
1394 (method url-fetch)
1395 (uri (string-append "https://github.com/wting/autojump/archive/"
1396 "release-v" version ".tar.gz"))
1397 (file-name (string-append name "-" version ".tar.gz"))
1398 (sha256
1399 (base32
1d33b9ea 1400 "113rcpr37ngf2xs8da41qdarq5qmj0dwx8ggqy3lhlb0kvqq7g9z"))))
2328b47c
EB
1401 (build-system gnu-build-system)
1402 (native-inputs ;for tests
1403 `(("python-mock" ,python-mock)
1404 ("python-pytest" ,python-pytest)))
1405 (inputs
1406 `(("python" ,python-wrapper)))
1407 (arguments
1408 `(#:phases (modify-phases %standard-phases
1409 (delete 'configure)
1410 (delete 'build)
1411 (replace 'check
1412 (lambda _
1413 (zero?
1414 (system* "python" "tests/autojump_utils_test.py"))))
1415 (replace 'install
1416 ;; The install.py script doesn't allow system installation
1417 ;; into an arbitrary prefix, so do our own install.
1418 (lambda* (#:key outputs #:allow-other-keys)
1419 (let* ((out (assoc-ref outputs "out"))
1420 (bin (string-append out "/bin"))
1421 (share (string-append out "/share/autojump"))
1422 (py (string-append out "/lib/python"
1423 ,(version-major+minor
1424 (package-version python-wrapper))
1425 "/site-packages"))
1426 (man (string-append out "/share/man/man1")))
1427 (install-file "bin/autojump" bin)
1428 (for-each (λ (f) (install-file f py))
1429 (find-files "bin" "\\.py$"))
1430 (for-each (λ (f) (install-file f share))
1431 (find-files "bin" "autojump\\..*$"))
1432 (substitute* (string-append share "/autojump.sh")
1433 (("/usr/local") out))
1434 (install-file "docs/autojump.1" man)
1435 (wrap-program (string-append bin "/autojump")
1436 `("PYTHONPATH" ":" prefix (,py)))
1437 #t))))))
1438 (home-page "https://github.com/wting/autojump")
1439 (synopsis "Shell extension for filesystem navigation")
1440 (description
1441 "Autojump provides a faster way to navigate your filesystem, with a \"cd
1442command that learns\". It works by maintaining a database of the directories
1443you use the most from the command line and allows you to \"jump\" to
1444frequently used directories by typing only a small pattern.")
1445 (license license:gpl3+)))
765973cd
LF
1446
1447(define-public iftop
1448 (package
1449 (name "iftop")
1450 (version "1.0pre4")
1451 (source (origin
1452 (method url-fetch)
1453 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
1454 "/iftop-" version ".tar.gz"))
1455 (sha256
1456 (base32
1457 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
1458 (build-system gnu-build-system)
1459 (inputs
1460 `(("libpcap" ,libpcap)
1461 ("ncurses" ,ncurses)))
1462 (synopsis "Monitor network usage")
1463 (description "Iftop does for network usage what @command{top} does
1464for CPU usage. It listens to network traffic on a named interface and
1465displays a table of current bandwidth usage by pairs of hosts.")
1466 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
d4e21fbb 1467 (license license:gpl2+)))
f1957fc1
PP
1468
1469(define-public munge
1470 (package
1471 (name "munge")
b52ae4de 1472 (version "0.5.12")
f1957fc1
PP
1473 (source (origin
1474 (method url-fetch)
b52ae4de
EF
1475 (uri (string-append "https://github.com/dun/munge/releases/"
1476 "download/munge-" version "/munge-"
1477 version ".tar.xz"))
f1957fc1
PP
1478 (sha256
1479 (base32
b52ae4de 1480 "1s0vlwgm3hcx75vcmjf2y3icy5nv8y07bx93w2cmm6a7x71y6wp9"))))
f1957fc1
PP
1481 (inputs
1482 `(("openssl" ,openssl)
1483 ("libgcrypt" ,libgcrypt)))
1484 (build-system gnu-build-system)
b52ae4de 1485 (home-page "https://dun.github.io/munge/")
f1957fc1
PP
1486 (synopsis "Cluster computing authentication service")
1487 (description
1488 "Munge is an authentication service for creating and validating
1489credentials. It allows a process to authenticate the UID and GID of another
1490local or remote process within a group of hosts having common users and
1491groups. These hosts form a security realm that is defined by a shared
1492cryptographic key. Clients within this security realm can create and validate
1493credentials without the use of root privileges, reserved ports, or
1494platform-specific methods.")
1495 (license license:gpl3+)))
3d7a157c
RW
1496
1497(define-public audit
1498 (package
1499 (name "audit")
1500 (version "2.4.5")
1501 (source (origin
1502 (method url-fetch)
1503 (uri (string-append "http://people.redhat.com/sgrubb/audit/"
1504 "audit-" version ".tar.gz"))
1505 (sha256
1506 (base32
1507 "1q1q51dvxscbi4kbakmd4bn0xrvwwaiwvaya79925cbrqwzxsg77"))))
1508 (build-system gnu-build-system)
1509 (home-page "http://people.redhat.com/sgrubb/audit/")
1510 (arguments
1511 `(#:configure-flags (list "--with-python=no")
1512 #:phases
1513 (modify-phases %standard-phases
1514 (add-after 'unpack 'fix-tests
1515 (lambda _
1516 ;; In the build environmnte /etc/passwd does not contain an entry
1517 ;; for root/0, so we have to patch the expected value.
1518 (substitute* "auparse/test/auparse_test.ref"
1519 (("=0 \\(root\\)") "=0 (unknown(0))"))
1520 #t)))))
1521 (inputs
1522 `(("openldap" ,openldap)
1523 ("openssl" ,openssl)
1524 ("sasl" ,cyrus-sasl)))
1525 (synopsis "User-space component to the Linux auditing system")
1526 (description
1527 "auditd is the user-space component to the Linux auditing system, which
1528allows logging of system calls made by user-land processes. It's responsible
1529for writing audit records to the disk. Viewing the logs is done with the
1530@code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
1531done with the @code{auditctl} utility.")
1532 (license license:gpl2+)))
d0457553
TUBK
1533
1534(define-public nmap
1535 (package
1536 (name "nmap")
dbffd7d7 1537 (version "7.12")
d0457553
TUBK
1538 (source (origin
1539 (method url-fetch)
1540 (uri (string-append "https://nmap.org/dist/nmap-" version
1541 ".tar.bz2"))
1542 (sha256
1543 (base32
dbffd7d7 1544 "014vagh9ak10hidwzp9s6g30y5h5fhsh8wykcnc1hnn9hwm0ipv3"))
d0457553
TUBK
1545 (modules '((guix build utils)))
1546 (snippet
1547 '(map delete-file-recursively
1548 ;; Remove bundled lua, pcap, and pcre libraries.
1549 ;; FIXME: Remove bundled liblinear once packaged.
1550 '("liblua"
1551 "libpcap"
1552 "libpcre"
1553 ;; Remove pre-compiled binares.
1554 "mswin32")))))
1555 (build-system gnu-build-system)
1556 (inputs
1557 `(("openssl" ,openssl)
1558 ("libpcap" ,libpcap)
1559 ("pcre" ,pcre)
1560 ("lua" ,lua)
1561 ;; For 'ndiff'.
1562 ("python" ,python-2)))
1563
1564 ;; TODO Add zenmap output.
1565 (outputs '("out" "ndiff"))
1566 (arguments
1567 '(#:configure-flags '("--without-zenmap")
1568 #:phases
1569 (modify-phases %standard-phases
1570 (replace 'install
1571 (lambda* (#:key outputs #:allow-other-keys)
1572 (define (make out . args)
1573 (unless (zero? (apply system* "make"
1574 (string-append "prefix=" out)
1575 args))
1576 (error "make failed")))
1577 (define (python-path dir)
1578 (string-append dir "/lib/python2.7/site-packages"))
1579 (let ((out (assoc-ref outputs "out"))
1580 (ndiff (assoc-ref outputs "ndiff")))
1581 (for-each mkdir-p (list out ndiff))
1582 (make out
1583 "install-nmap"
1584 "install-nse"
1585 "install-ncat"
1586 "install-nping")
1587 (make ndiff "install-ndiff")
1588 (wrap-program (string-append ndiff "/bin/ndiff")
1589 `("PYTHONPATH" prefix
1590 (,(python-path ndiff)))))))
1591 ;; These are the tests that do not require network access.
1592 (replace 'check
1593 (lambda _ (zero? (system* "make"
1594 "check-nse"
1595 "check-ndiff"
1596 "check-dns")))))
1597 ;; Nmap can't cope with out-of-source building.
1598 #:out-of-source? #f))
1599 (home-page "https://nmap.org/")
1600 (synopsis "Network discovery and security auditing tool")
1601 (description
1602 "Nmap (\"Network Mapper\") is a network discovery and security auditing
1603tool. It is also useful for tasks such as network inventory, managing service
1604upgrade schedules, and monitoring host or service uptime. It also provides an
1605advanced netcat implementation (ncat), a utility for comparing scan
1606results (ndiff), and a packet generation and response analysis tool (nping).")
1607 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
1608 ;; both use a 3-clause BSD license.
1609 (license (list license:nmap license:bsd-3))))
1a0346f0
P
1610
1611(define-public dstat
1612 (package
1613 (name "dstat")
1614 (version "0.7.3")
1615 (source (origin
1616 (method url-fetch)
1617 (uri (string-append
1618 "https://github.com/dagwieers/dstat/archive/"
1619 version ".tar.gz"))
1620 (file-name (string-append "dstat-" version ".tar.gz"))
1621 (sha256
1622 (base32
1623 "16286z3y2lc9nsq8njzjkv6k2vyxrj9xiixj1k3gnsbvhlhkirj6"))))
1624 (build-system gnu-build-system)
1625 (arguments
1626 `(#:tests? #f ;; no make check
1627 #:make-flags (let ((out (assoc-ref %outputs "out")))
1628 (list (string-append "DESTDIR=" out)
1629 "prefix=/"))
1630 ;; no configure script
1631 #:phases (alist-delete 'configure %standard-phases)))
1632 (inputs `(("python-2" ,python-2)))
1633 (synopsis "Versatile resource statistics tool")
1634 (description "Dstat is a versatile replacement for @command{vmstat},
1635@command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
1636some of their limitations and adds some extra features, more counters and
1637flexibility. Dstat is handy for monitoring systems during performance tuning
1638tests, benchmarks or troubleshooting.
1639
1640Dstat allows you to view all of your system resources in real-time, you can,
1641e.g., compare disk utilization in combination with interrupts from your IDE
1642controller, or compare the network bandwidth numbers directly with the disk
1643throughput (in the same interval).")
1644 (home-page "http://dag.wiee.rs/home-made/dstat/")
c59f62e9 1645 (license license:gpl2+)))
0405e5f4
EB
1646
1647(define-public thefuck
1648 (package
1649 (name "thefuck")
d24e011e 1650 (version "3.11")
0405e5f4
EB
1651 (source (origin
1652 (method url-fetch)
1653 (uri (string-append "https://github.com/nvbn/thefuck/archive/"
1654 version ".tar.gz"))
1655 (file-name (string-append name "-" version ".tar.gz"))
1656 (sha256
1657 (base32
d24e011e 1658 "04q2cn8c83f6z6wn1scla1ilrpi5ssjc64987hvmwfvwvb82bvkp"))))
0405e5f4
EB
1659 (build-system python-build-system)
1660 (native-inputs
1661 `(("python-setuptools" ,python-setuptools)))
1662 (inputs
1663 `(("python-colorama" ,python-colorama)
1664 ("python-decorator" ,python-decorator)
1665 ("python-psutil" ,python-psutil)
1666 ("python-six" ,python-six)))
1667 (home-page "https://github.com/nvbn/thefuck")
1668 (synopsis "Correct mistyped console command")
1669 (description
1670 "The Fuck tries to match a rule for a previous, mistyped command, creates
1671a new command using the matched rule, and runs it.")
1672 (license license:x11)))
61402398
JF
1673
1674(define-public di
1675 (package
1676 (name "di")
1677 (version "4.42")
1678 (source
1679 (origin
1680 (method url-fetch)
1681 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
1682 (sha256
1683 (base32 "1i6m9zdnidn8268q1lz9fd8payk7s4pgwh5zlam9rr4dy6h6a67n"))))
1684 (build-system gnu-build-system)
1685 (arguments
1686 `(#:tests? #f ; Obscure test failures.
1687 #:phases
1688 (modify-phases %standard-phases
1689 (delete 'configure)
1690 (add-before 'build 'setup-environment
1691 (lambda* (#:key outputs #:allow-other-keys)
1692 (setenv "CC" "gcc")
1693 (setenv "prefix" (assoc-ref outputs "out"))
1694 #t)))
1695 #:make-flags (list "--environment-overrides")))
1696 (home-page "https://www.gentoo.com/di/")
1697 (synopsis "Advanced df like disk information utility")
1698 (description
1699 "'di' is a disk information utility, displaying everything
1700(and more) that your @code{df} command does. It features the ability to
1701display your disk usage in whatever format you prefer. It is designed to be
1702highly portable. Great for heterogenous networks.")
1703 (license license:zlib)))
5ec8b02d 1704
1705(define-public cbatticon
1706 (package
1707 (name "cbatticon")
1708 (version "1.6.4")
1709 (source (origin
1710 (method url-fetch)
1711 (uri (string-append "https://github.com/valr/"
1712 name "/archive/" version ".tar.gz"))
1713 (sha256
1714 (base32
1715 "023fvsa4q7rl98rqgwrb1shyzaybdkkbyz5sywd0s5p7ixkksxqx"))
1716 (file-name (string-append name "-" version ".tar.gz"))))
1717 (build-system gnu-build-system)
1718 (arguments
1719 `(#:tests? #f ; no tests
1720 #:make-flags
1721 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1722 "CC=gcc")
1723 #:phases
1724 (modify-phases %standard-phases
1725 (delete 'configure)))) ; no configure script
1726 (inputs
1727 `(("gtk+" ,gtk+)
1728 ("gnu-gettext" ,gnu-gettext)
1729 ("libnotify" ,libnotify)))
1730 (native-inputs
1731 `(("pkg-config" ,pkg-config)))
1732 (synopsis "Lightweight battery icon for the system tray")
1733 (description "cbatticon is a lightweight battery icon that displays
1734the status of your battery in the system tray.")
1735 (home-page "https://github.com/valr/cbatticon")
1736 (license license:gpl2+)))
c08533b2 1737
1738(define-public interrobang
1739 (let ((revision "1")
1740 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
1741 (package
1742 (name "interrobang")
1743 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
1744 (source (origin
1745 (method git-fetch)
1746 (uri (git-reference
1747 (url "git://github.com/TrilbyWhite/interrobang")
1748 (commit commit)))
1749 (file-name (string-append name "-" version))
1750 (sha256
1751 (base32
1752 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
1753 (build-system gnu-build-system)
1754 (arguments
1755 `(#:tests? #f ; no tests
1756 #:phases
1757 (modify-phases %standard-phases
1758 (delete 'configure)) ; no configure script
1759 #:make-flags (list (string-append "PREFIX="
1760 (assoc-ref %outputs "out")))))
1761 (inputs
1762 `(("libx11" ,libx11)))
1763 (native-inputs
1764 `(("pkg-config" ,pkg-config)))
1765 (synopsis "Scriptable launcher menu")
1766 (description "Interrobang is a scriptable launcher menu with a customizable
1767shortcut syntax and completion options.")
1768 (home-page "https://github.com/TrilbyWhite/interrobang")
1769 (license license:gpl3+))))