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