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