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