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