1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
4 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014, 2015, 2016 Eric Bavier <bavier@member.fsf.org>
6 ;;; Copyright © 2015, 2016 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
7 ;;; Copyright © 2015 Alex Sassmannshausen <alex.sassmannshausen@gmail.com>
8 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
9 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
10 ;;; Copyright © 2016 Pjotr Prins <pjotr.guix@thebird.nl>
11 ;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
12 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
13 ;;; Copyright © 2016 Peter Feigl <peter.feigl@nexoid.at>
14 ;;; Copyright © 2016 John J. Foerch <jjfoerch@earthlink.net>
15 ;;; Coypright © 2016, 2017 ng0 <contact.ng0@cryptolab.net>
16 ;;; Coypright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
17 ;;; Coypright © 2016 John Darrington <jmd@gnu.org>
19 ;;; This file is part of GNU Guix.
21 ;;; GNU Guix is free software; you can redistribute it and/or modify it
22 ;;; under the terms of the GNU General Public License as published by
23 ;;; the Free Software Foundation; either version 3 of the License, or (at
24 ;;; your option) any later version.
26 ;;; GNU Guix is distributed in the hope that it will be useful, but
27 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
28 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 ;;; GNU General Public License for more details.
31 ;;; You should have received a copy of the GNU General Public License
32 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
34 (define-module (gnu packages admin)
35 #:use-module ((guix licenses) #:prefix license:)
36 #:use-module (guix packages)
37 #:use-module (guix utils)
38 #:use-module (guix download)
39 #:use-module (guix git-download)
40 #:use-module (guix build-system cmake)
41 #:use-module (guix build-system gnu)
42 #:use-module (guix build-system python)
43 #:use-module (guix build-system trivial)
44 #:use-module (gnu packages)
45 #:use-module (gnu packages base)
46 #:use-module (gnu packages cyrus-sasl)
47 #:use-module (gnu packages ncurses)
48 #:use-module (gnu packages readline)
49 #:use-module (gnu packages linux)
50 #:use-module (gnu packages lua)
51 #:use-module (gnu packages guile)
52 #:use-module (gnu packages gettext)
53 #:use-module (gnu packages pcre)
54 #:use-module (gnu packages perl)
55 #:use-module (gnu packages tcl)
56 #:use-module (gnu packages compression)
57 #:use-module (gnu packages tls)
58 #:use-module (gnu packages gnupg)
59 #:use-module (gnu packages bison)
60 #:use-module (gnu packages flex)
61 #:use-module (gnu packages glib)
62 #:use-module (gnu packages openldap)
63 #:use-module (gnu packages mcrypt)
64 #:use-module (gnu packages pkg-config)
65 #:use-module (gnu packages popt)
66 #:use-module (gnu packages python)
67 #:use-module (gnu packages texinfo)
68 #:use-module (gnu packages groff)
69 #:use-module (gnu packages pciutils)
70 #:use-module (gnu packages libusb)
71 #:use-module (gnu packages libftdi)
72 #:use-module (gnu packages image)
73 #:use-module (gnu packages xorg)
74 #:use-module (gnu packages python)
75 #:use-module (gnu packages man)
76 #:use-module (gnu packages autotools)
77 #:use-module (gnu packages gnome)
78 #:use-module (gnu packages kerberos)
79 #:use-module (gnu packages gtk))
87 (uri (string-append "mirror://sourceforge/aide/aide/"
88 version "/aide-" version ".tar.gz"))
91 "1vsrc0s62kv1i84skm6k6zy868gayjck268qwj38rpspc8c5qgih"))))
92 (build-system gnu-build-system)
97 `(("libgcrypt" ,libgcrypt)
98 ("libgpg-error" ,libgpg-error)
99 ("libmhash" ,libmhash)
101 (synopsis "File and directory integrity checker")
103 "AIDE (Advanced Intrusion Detection Environment) is a file and directory
104 integrity checker. It creates a database from the regular expression rules
105 that it finds from its configuration files. Once this database is initialized
106 it can be used to verify the integrity of the files. It has several message
107 digest algorithms that are used to check the integrity of files. All of the
108 usual file attributes can be checked for inconsistencies.")
109 (home-page "http://aide.sourceforge.net/")
110 (license license:gpl2+)))
112 (define-public progress
118 (uri (string-append "https://github.com/Xfennec/"
119 name "/archive/v" version ".tar.gz"))
121 (base32 "133iar4vq5vlklydb4cyazjy6slmpbndrws474mg738bd8avc30n"))
122 (file-name (string-append name "-" version ".tar.gz"))))
123 (build-system gnu-build-system)
125 `(("ncurses" ,ncurses)))
127 `(#:tests? #f ; There is no test suite.
128 #:make-flags (list "CC=gcc" "LDFLAGS+=-lncurses"
129 (string-append "PREFIX=" (assoc-ref %outputs "out")))
131 (modify-phases %standard-phases
132 (delete 'configure)))) ; There's no configure phase.
133 (home-page "https://github.com/Xfennec/progress")
134 (synopsis "Program to view the progress of the coreutils commands")
135 (description "A program that looks for coreutils basic commands (cp, mv,
136 dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
137 the percentage of copied data. It can also show estimated time and throughput,
138 and provides a \"top-like\" mode (monitoring).")
139 (license license:gpl3+)))
141 (define-public shepherd
147 (uri (string-append "ftp://alpha.gnu.org/gnu/dmd/shepherd-"
151 "174q1qg7yg6w1hfvlfv720hr6hid4h5xzw15y3ycfpspllzldhcb"))))
152 (build-system gnu-build-system)
154 '(#:configure-flags '("--localstatedir=/var")))
155 (native-inputs `(("pkg-config" ,pkg-config)))
156 (inputs `(("guile" ,guile-2.0)))
157 (synopsis "System service manager")
159 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
160 the execution of system services, replacing similar functionality found in
161 typical init systems. It provides dependency-handling through a convenient
162 interface and is based on GNU Guile.")
163 (license license:gpl3+)
164 (home-page "https://www.gnu.org/software/shepherd/")
165 (properties '((ftp-server . "alpha.gnu.org")))))
175 "http://projects.gw-computing.net/attachments/download/79/dfc-"
179 "0zk1ppx93ijimf4sbgqilxxikpsa2gmpbynknyh41xy7jbdjxp0b"))))
180 (build-system cmake-build-system)
181 (arguments '(#:tests? #f)) ; There are no tests.
182 (native-inputs `(("gettext" ,gettext-minimal)))
183 (home-page "http://projects.gw-computing.net/projects/dfc")
184 (synopsis "Display file system space usage using graphs and colors")
186 "dfc (df color) is a modern version of df. It uses colors, draws pretty
187 graphs and can export its output to different formats.")
188 (license license:bsd-3)))
196 (uri (string-append "http://hisham.hm/htop/releases/"
197 version "/htop-" version ".tar.gz"))
200 "11zlwadm6dpkrlfvf3z3xll26yyffa7qrxd1w72y1kl0rgffk6qp"))))
201 (build-system gnu-build-system)
203 `(("ncurses" ,ncurses)))
204 (home-page "http://htop.sourceforge.net/")
205 (synopsis "Interactive process viewer")
207 "This is htop, an interactive process viewer. It is a text-mode
208 application (for console or X terminals) and requires ncurses.")
209 (license license:gpl2)))
218 (uri (string-append "mirror://gnu/pies/pies-"
222 "12r7rjjyibjdj08dvwbp0iflfpzl4s0zhn6cr6zj3hwf9gbzgl1g"))))
223 (build-system gnu-build-system)
225 '(#:phases (modify-phases %standard-phases
226 (add-before 'build 'patch-/bin/sh
227 (lambda* (#:key inputs #:allow-other-keys)
228 ;; Use the right shell when executing user-provided
230 (let ((bash (assoc-ref inputs "bash")))
231 (substitute* "src/progman.c"
233 (string-append "\"" bash "/bin/sh\"")))
235 (home-page "http://www.gnu.org/software/pies/")
236 (synopsis "Program invocation and execution supervisor")
238 "GNU pies is a program that supervises the invocation and execution of
239 other programs. It reads the list of programs to be started from its
240 configuration file, executes them, and then monitors their status,
241 re-executing them as necessary.")
242 (license license:gpl3+)))
244 (define-public inetutils
250 (uri (string-append "mirror://gnu/inetutils/inetutils-"
254 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
255 (build-system gnu-build-system)
257 '(#:configure-flags '("--localstatedir=/var")
258 ;; On some systems, 'libls.sh' may fail with an error such as:
259 ;; "Failed to tell switch -a apart from -A".
260 #:parallel-tests? #f))
261 (inputs `(("ncurses" ,ncurses)
262 ("readline" ,readline))) ;for 'ftp'
263 (native-inputs `(("netstat" ,net-tools))) ;for tests
264 (home-page "http://www.gnu.org/software/inetutils/")
265 (synopsis "Basic networking utilities")
267 "Inetutils is a collection of common network programs, such as an ftp
268 client and server, a telnet client and server, and an rsh client and server.")
269 (license license:gpl3+)))
271 (define-public shadow
278 "https://github.com/shadow-maint/shadow/releases/"
279 "download/" version "/shadow-" version ".tar.xz"))
280 (patches (search-patches "shadow-4.4-su-snprintf-fix.patch"
281 "shadow-CVE-2017-2616.patch"))
284 "0g7hf55ar2pafg5g3ldx0fwzjk36wf4xb21p4ndanbjm3c2a9ab1"))))
285 (build-system gnu-build-system)
287 '(;; Assume System V `setpgrp (void)', which is the default on GNU
288 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
290 '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
293 (modify-phases %standard-phases
294 (add-before 'build 'set-nscd-file-name
295 (lambda* (#:key inputs #:allow-other-keys)
296 ;; Use the right file name for nscd.
297 (let ((libc (assoc-ref inputs "libc")))
298 (substitute* "lib/nscd.c"
300 (string-append libc "/sbin/nscd"))))))
301 (add-after 'install 'remove-groups
302 (lambda* (#:key outputs #:allow-other-keys)
303 ;; Remove `groups', which is already provided by Coreutils.
304 (let* ((out (assoc-ref outputs "out"))
305 (bin (string-append out "/bin"))
306 (man (string-append out "/share/man")))
307 (delete-file (string-append bin "/groups"))
308 (for-each delete-file (find-files man "^groups\\."))
311 (inputs (if (string-suffix? "-linux"
312 (or (%current-target-system)
314 `(("linux-pam" ,linux-pam))
316 (home-page "http://pkg-shadow.alioth.debian.org/")
317 (synopsis "Authentication-related tools such as passwd, su, and login")
319 "Shadow provides a number of authentication-related tools, including:
320 login, passwd, su, groupadd, and useradd.")
322 ;; The `vipw' program is GPLv2+.
323 ;; libmisc/salt.c is public domain.
324 (license license:bsd-3)))
326 (define-public mingetty
332 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
333 version "/mingetty-" version ".tar.gz"))
336 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
337 (build-system gnu-build-system)
339 `(#:phases (alist-replace 'configure
340 (lambda* (#:key inputs outputs
342 (let* ((out (assoc-ref outputs "out"))
344 out "/share/man/man8"))
345 (sbin (string-append out "/sbin"))
346 (shadow (assoc-ref inputs "shadow"))
347 (login (string-append shadow
349 (substitute* "Makefile"
351 (string-append "SBINDIR = " out
354 (string-append "MANDIR = " out
355 "/share/man/man8\n")))
357 ;; Pick the right 'login' by default.
358 (substitute* "mingetty.c"
360 (string-append "\"" login "\"")))
365 #:tests? #f)) ; no tests
366 (inputs `(("shadow" ,shadow)))
368 (home-page "https://sourceforge.net/projects/mingetty")
369 (synopsis "Getty for the text console")
371 "Small console getty that is started on the Linux text console,
372 asks for a login name and then transfers over to 'login'. It is extended to
373 allow automatic login and starting any app.")
374 (license license:gpl2+)))
376 (define-public net-base
383 "mirror://debian/pool/main/n/netbase/netbase_"
387 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
388 (build-system trivial-build-system)
390 `(#:modules ((guix build utils))
392 (use-modules (guix build utils)
395 (let* ((source (assoc-ref %build-inputs "source"))
396 (tar (assoc-ref %build-inputs "tar"))
397 (xz (assoc-ref %build-inputs "xz"))
398 (output (assoc-ref %outputs "out"))
399 (etc (string-append output "/etc")))
400 (setenv "PATH" (string-append xz "/bin"))
401 (system* (string-append tar "/bin/tar") "xvf"
403 (chdir ,(string-append "netbase-" version))
406 '("etc-services" "etc-protocols" "etc-rpc")
407 (map (cut string-append etc "/" <>)
408 '("services" "protocols" "rpc")))
410 (native-inputs `(("tar" ,tar)
412 (synopsis "IANA protocol, port, and RPC number assignments")
414 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
415 files, which contain information about the IANA-assigned port, protocol, and
417 (home-page "http://packages.debian.org/sid/netbase")
418 (license license:gpl2)))
420 (define-public netcat
426 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
427 "/netcat-" version ".tar.bz2"))
430 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
431 (build-system gnu-build-system)
434 ;; By default, man and info pages are put in PREFIX/{man,info},
435 ;; but we want them in PREFIX/share/{man,info}.
436 (let ((out (assoc-ref %outputs "out")))
437 (list (string-append "--mandir=" out "/share/man")
438 (string-append "--infodir=" out "/share/info")))))
439 (home-page "http://netcat.sourceforge.net")
440 (synopsis "Read and write data over TCP/IP")
442 "Netcat is a featured networking utility which reads and writes data
443 across network connections, using the TCP/IP protocol. It is designed to be a
444 reliable \"back-end\" tool that can be used directly or easily driven by other
445 programs and scripts. At the same time, it is a feature-rich network debugging
446 and exploration tool, since it can create almost any kind of connection you
447 would need and has several interesting built-in capabilities.")
448 (license license:gpl2+)))
456 (uri (string-append "mirror://gnu/alive/alive-"
460 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
461 (build-system gnu-build-system)
462 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
463 (inputs `(("guile" ,guile-2.0)
464 ("inetutils" ,inetutils)))
465 (home-page "http://www.gnu.org/software/alive/")
466 (synopsis "Autologin and keep-alive daemon")
468 "GNU Alive sends periodic pings to a server, generally to keep a
470 (license license:gpl3+)))
472 (define-public isc-dhcp
473 (let* ((bind-major-version "9")
474 (bind-minor-version "9")
475 (bind-patch-version "9")
476 (bind-release-type "-P") ; for patch release, use "-P"
477 (bind-release-version "6") ; for patch release, e.g. "6"
478 (bind-version (string-append bind-major-version
484 bind-release-version)))
490 (uri (string-append "http://ftp.isc.org/isc/dhcp/"
491 version "/dhcp-" version ".tar.gz"))
494 "0m7rwxvpb7xrmfl9ynpckhl0hi0xgm9bq1fmbp2r68sxy5mr75gb"))))
495 (build-system gnu-build-system)
497 `(#:parallel-build? #f
499 (modify-phases %standard-phases
500 (add-after 'unpack 'replace-bundled-bind
501 (lambda* (#:key inputs #:allow-other-keys)
502 (delete-file "bind/bind.tar.gz")
503 (copy-file (assoc-ref inputs "bind-source-tarball")
505 (chmod "bind/bind.tar.gz" #o644)
506 (substitute* "bind/version.tmp"
508 (format #f "MAJORVER=~a\n" ,bind-major-version))
510 (format #f "MINORVER=~a\n" ,bind-minor-version))
512 (format #f "PATCHVER=~a\n" ,bind-patch-version))
514 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
516 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
518 (add-after 'configure 'post-configure
519 (lambda* (#:key outputs #:allow-other-keys)
520 ;; Point to the right client script, which will be
521 ;; installed in a later phase.
522 (substitute* "includes/dhcpd.h"
523 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
524 (let ((out (assoc-ref outputs "out")))
525 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
526 out "/libexec/dhclient-script"
529 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
530 ;; we must patch shebangs in there and make sure the right
532 (with-directory-excursion "bind"
533 (substitute* "Makefile"
535 (let ((sh (which "sh")))
536 (string-append "./configure CONFIG_SHELL="
539 (let ((bind-directory (string-append "bind-" ,bind-version)))
540 (system* "tar" "xf" "bind.tar.gz")
541 (for-each patch-shebang
542 (find-files bind-directory ".*"))
543 (zero? (system* "tar" "cf" "bind.tar.gz"
545 ;; avoid non-determinism in the archive
549 "--group=root:0"))))))
550 (add-after 'install 'post-install
551 (lambda* (#:key inputs outputs #:allow-other-keys)
552 ;; Install the dhclient script for GNU/Linux and make sure
553 ;; if finds all the programs it needs.
554 (let* ((out (assoc-ref outputs "out"))
555 (libexec (string-append out "/libexec"))
556 (coreutils (assoc-ref inputs "coreutils"))
557 (inetutils (assoc-ref inputs "inetutils"))
558 (net-tools (assoc-ref inputs "net-tools"))
559 (sed (assoc-ref inputs "sed")))
560 (substitute* "client/scripts/linux"
562 (string-append (assoc-ref inputs "iproute")
566 (copy-file "client/scripts/linux"
567 (string-append libexec "/dhclient-script"))
570 (string-append libexec "/dhclient-script")
573 (string-append dir "/bin:"
575 (list inetutils net-tools coreutils sed))))))))))
577 (native-inputs `(("perl" ,perl)))
579 (inputs `(("inetutils" ,inetutils)
580 ("net-tools" ,net-tools)
583 ;; XXX isc-dhcp bundles a copy of bind that has security
584 ;; flaws, so we use a newer version.
585 ("bind-source-tarball"
588 (uri (string-append "http://ftp.isc.org/isc/bind9/"
590 "/bind-" bind-version ".tar.gz"))
593 "1qf9j0nyqx0qy871mj22xh4dg0n1pqlv94lpiijb8vr7n7m3svhr"))))
595 ;; When cross-compiling, we need the cross Coreutils and sed.
596 ;; Otherwise just use those from %FINAL-INPUTS.
597 ,@(if (%current-target-system)
598 `(("coreutils" ,coreutils)
602 (home-page "http://www.isc.org/products/DHCP/")
603 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
605 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
606 reference implementation of all aspects of DHCP, through a suite of DHCP
607 tools: server, client, and relay agent.")
608 (license license:isc)
609 (properties '((cpe-name . "dhcp"))))))
611 (define-public libpcap
617 (uri (string-append "http://www.tcpdump.org/release/libpcap-"
621 "07jlhc66z76dipj4j5v3dig8x6h3k6cb36kmnmpsixf3zmlvqgb7"))))
622 (build-system gnu-build-system)
623 (native-inputs `(("bison" ,bison) ("flex" ,flex)))
624 (arguments '(#:configure-flags '("--with-pcap=linux")
625 #:tests? #f)) ; no 'check' target
626 (home-page "http://www.tcpdump.org")
627 (synopsis "Network packet capture library")
629 "libpcap is an interface for user-level packet capture. It provides a
630 portable framework for low-level network monitoring. Applications include
631 network statistics collection, security monitoring, network debugging, etc.")
633 ;; fad-*.c and a couple other files are BSD-4, but the rest is BSD-3.
634 (license license:bsd-3)))
636 (define-public tcpdump
642 (uri (string-append "http://www.tcpdump.org/release/tcpdump-"
646 "0pjsxsy8l71i813sa934cwf1ryp9xbr7nxwsvnzavjdirchq3sga"))))
647 (build-system gnu-build-system)
648 (inputs `(("libpcap" ,libpcap)
649 ("openssl" ,openssl)))
650 (native-inputs `(("perl" ,perl))) ; for tests
651 (home-page "http://www.tcpdump.org/")
652 (synopsis "Network packet analyzer")
654 "Tcpdump is a command-line tool to analyze network traffic passing
655 through the network interface controller.")
656 (license license:bsd-3)))
658 (define-public jnettop
664 (uri (string-append "http://jnettop.kubs.info/dist/jnettop-"
668 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
669 (build-system gnu-build-system)
671 `(("pkg-config" ,pkg-config)))
675 ("libpcap" ,libpcap)))
676 (home-page "http://jnettop.kubs.info/")
677 (synopsis "Visualize network traffic by bandwidth use")
679 "Jnettop is a traffic visualiser, which captures traffic going
680 through the host it is running from and displays streams sorted
681 by bandwidth they use.")
682 (license license:gpl2+)))
684 (define-public clusterssh
690 (uri (string-append "mirror://sourceforge/clusterssh/"
691 "1.%20ClusterSSH%20Series%203/" version
692 "/clusterssh-" version ".tar.gz"))
695 "1bwggpvaj2al5blg1ynapviv2kpydffpzq2zkhi81najnvzc1rr7"))))
696 (build-system gnu-build-system)
697 (inputs `(("perl" ,perl)))
698 (propagated-inputs `(("xterm" ,xterm)
700 ("perl-x11-protocol" ,perl-x11-protocol)))
704 'install 'set-load-paths
705 (lambda* (#:key inputs outputs #:allow-other-keys)
706 ;; Put the perl-tk and perl-x11-protocol modules in the perl inc
708 (let* ((out (assoc-ref outputs "out"))
709 (prog (string-append out "/bin/cssh"))
710 (perl-ver ,(package-version perl))
711 (x11-inc (string-append
712 (assoc-ref inputs "perl-x11-protocol")
713 "/lib/perl5/site_perl/" perl-ver))
714 (tk-inc (string-append
715 (assoc-ref inputs "perl-tk")
716 "/lib/perl5/site_perl/" perl-ver
720 `("PERL5LIB" ":" prefix (,x11-inc ,tk-inc)))))
722 ;; The clusterssh.sourceforge.net address requires login to view
723 (home-page "https://sourceforge.net/projects/clusterssh/")
724 (synopsis "Secure concurrent multi-server terminal control")
726 "ClusterSSH controls a number of xterm windows via a single graphical
727 console window to allow commands to be interactively run on multiple servers
728 over ssh connections.")
729 (license license:gpl2+)))
731 (define-public rottlog
737 (uri (string-append "mirror://gnu/rottlog/rottlog-"
741 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
742 (modules '((guix build utils)))
744 '(substitute* "Makefile.in"
745 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
746 ;; Don't try to chown root.
748 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
749 ;; Don't attempt to create /var/lib/rottlog.
751 (build-system gnu-build-system)
753 '(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
754 "--localstatedir=/var")
756 ;; Install example config files in OUT/etc.
757 #:make-flags (list (string-append "ROTT_ETCDIR="
758 (assoc-ref %outputs "out")
761 #:phases (modify-phases %standard-phases
762 (add-after 'build 'set-packdir
764 ;; Set a default location for archived logs.
767 "packdir=\"/var/log\""))
769 (add-before 'install 'tweak-rc-weekly
771 (substitute* "rc/weekly"
775 ;; The file is called 'syslog.pid' (no 'd').
778 (add-after 'install 'install-info
780 (zero? (system* "make" "install-info")))))))
781 (native-inputs `(("texinfo" ,texinfo)
782 ("util-linux" ,util-linux))) ; for 'cal'
783 (home-page "http://www.gnu.org/software/rottlog/")
784 (synopsis "Log rotation and management")
786 "GNU Rot[t]log is a program for managing log files. It is used to
787 automatically rotate out log files when they have reached a given size or
788 according to a given schedule. It can also be used to automatically compress
789 and archive such logs. Rot[t]log will mail reports of its activity to the
790 system administrator.")
791 (license license:gpl3+)))
800 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
802 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
806 "14pwdwl03kdbbyjkvxrfx409x3c1fjqz8aqz2wgwddinhz7v3bxq"))))
807 (build-system gnu-build-system)
810 (list "--with-logpath=/var/log/sudo.log"
811 "--with-rundir=/var/run/sudo" ;must be cleaned up at boot time
812 "--with-vardir=/var/db/sudo"
813 "--with-iologdir=/var/log/sudo-io"
815 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
817 (string-append "CPPFLAGS=-D_PATH_MV='\""
818 (assoc-ref %build-inputs "coreutils")
821 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
824 #:phases (alist-cons-before
825 'configure 'pre-configure
827 (substitute* "src/sudo_usage.h.in"
828 ;; Do not capture 'configure' arguments since we would
829 ;; unduly retain references, and also because the
830 ;; CPPFLAGS above would close the string literal
832 (("@CONFIGURE_ARGS@") "\"\""))
833 (substitute* (find-files "." "Makefile\\.in")
834 (("-o [[:graph:]]+ -g [[:graph:]]+")
835 ;; Allow installation as non-root.
837 (("^install: (.*)install-sudoers(.*)" _ before after)
838 ;; Don't try to create /etc/sudoers.
839 (string-append "install: " before after "\n"))
840 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
841 ;; Don't try to create /run/sudo.
843 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
844 ;; Don't try to create /var/db/sudo.
848 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
849 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
853 ("linux-pam" ,linux-pam)
854 ("coreutils" ,coreutils)))
855 (home-page "https://www.sudo.ws/")
856 (synopsis "Run commands as root")
858 "Sudo (su \"do\") allows a system administrator to delegate authority to
859 give certain users (or groups of users) the ability to run some (or all)
860 commands as root or another user while providing an audit trail of the
861 commands and their arguments.")
863 ;; See <http://www.sudo.ws/sudo/license.html>.
864 (license license:x11)))
866 (define-public wpa-supplicant-minimal
868 (name "wpa-supplicant-minimal")
873 "http://w1.fi/releases/wpa_supplicant-"
878 "0l0l5gz3d5j9bqjsbjlfcv4w4jwndllp9fmyai4x9kg6qhs6v4xl"))))
879 (build-system gnu-build-system)
881 '(#:phases (alist-replace
883 (lambda* (#:key outputs #:allow-other-keys)
884 (chdir "wpa_supplicant")
885 (copy-file "defconfig" ".config")
886 (let ((port (open-file ".config" "al")))
888 CONFIG_DEBUG_SYSLOG=y
890 # Choose GnuTLS (the default is OpenSSL.)
893 CONFIG_DRIVER_NL80211=y
894 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
896 CONFIG_READLINE=y\n" port)
900 'install 'install-man-pages
901 (lambda* (#:key outputs #:allow-other-keys)
902 (let* ((out (assoc-ref outputs "out"))
903 (man (string-append out "/share/man"))
904 (man5 (string-append man "/man5"))
905 (man8 (string-append man "/man8")))
906 (define (copy-man-page target)
909 (string-append target "/"
912 (mkdir-p man5) (mkdir man8)
913 (for-each (copy-man-page man5)
914 (find-files "doc/docbook" "\\.5"))
915 (for-each (copy-man-page man8)
916 (find-files "doc/docbook" "\\.8"))
920 #:make-flags (list "CC=gcc"
921 (string-append "BINDIR=" (assoc-ref %outputs "out")
923 (string-append "LIBDIR=" (assoc-ref %outputs "out")
927 `(("readline" ,readline)
930 ("libgcrypt" ,libgcrypt))) ;needed by crypto_gnutls.c
932 `(("pkg-config" ,pkg-config)))
933 (home-page "http://w1.fi/wpa_supplicant/")
934 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
936 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
937 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
938 the client stations. It implements key negotiation with a WPA Authenticator
939 and it controls the roaming and IEEE 802.11 authentication/association of the
942 This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
944 ;; In practice, this is linked against Readline, which makes it GPLv3+.
945 (license license:bsd-3)))
947 (define-public wpa-supplicant
948 (package (inherit wpa-supplicant-minimal)
949 (name "wpa-supplicant")
950 (inputs `(("dbus" ,dbus)
951 ,@(package-inputs wpa-supplicant-minimal)))
953 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
956 'configure 'configure-for-dbus
958 (let ((port (open-file ".config" "al")))
960 CONFIG_CTRL_IFACE_DBUS=y
961 CONFIG_CTRL_IFACE_DBUS_NEW=y
962 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
966 'install-man-pages 'install-dbus-conf
967 (lambda* (#:key outputs #:allow-other-keys)
968 (let* ((out (assoc-ref outputs "out"))
969 (dir (string-append out "/etc/dbus-1/system.d")))
971 (copy-file "dbus/dbus-wpa_supplicant.conf"
972 (string-append dir "/wpa_supplicant.conf"))))
975 (define-public wakelan
982 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
986 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
987 (build-system gnu-build-system)
989 '(#:phases (alist-replace
991 (lambda* (#:key outputs #:allow-other-keys)
992 (let ((out (assoc-ref outputs "out")))
993 (mkdir-p (string-append out "/bin"))
994 (mkdir-p (string-append out "/share/man/man1"))
996 ;; It's an old configure script that doesn't understand
997 ;; the extra options we pass.
998 (setenv "CONFIG_SHELL" (which "bash"))
1000 (system* "./configure"
1001 (string-append "--prefix=" out)
1002 (string-append "--mandir=" out
1006 (home-page "http://kernel.org") ; really, no home page
1007 (synopsis "Send a wake-on-LAN packet")
1009 "WakeLan broadcasts a properly formatted UDP packet across the local area
1010 network, which causes enabled computers to power on.")
1011 (license license:gpl2+)))
1013 (define-public dmidecode
1020 "mirror://savannah/dmidecode/dmidecode-"
1024 "0iby0xfk5x3cdr0x0gxj5888jjyjhafvaq0l79civ73jjfqmphvy"))))
1025 (build-system gnu-build-system)
1027 '(#:phases (modify-phases %standard-phases (delete 'configure))
1028 #:tests? #f ; no 'check' target
1029 #:make-flags (list (string-append "prefix="
1030 (assoc-ref %outputs "out")))))
1031 (home-page "http://www.nongnu.org/dmidecode/")
1032 (synopsis "Read hardware information from the BIOS")
1034 "Dmidecode reports information about your system's hardware as described
1035 in your system BIOS according to the SMBIOS/DMI standard. This typically
1036 includes system manufacturer, model name, serial number, BIOS version, asset
1037 tag as well as a lot of other details of varying level of interest and
1038 reliability depending on the manufacturer. This will often include usage
1039 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1040 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1041 (license license:gpl2+)))
1043 (define-public acpica
1046 (version "20150410")
1050 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1054 "0q1fjwkyw9x6gsva6fd0zbn7ly4fx0ha4853f416np9kf2irillw"))))
1055 (build-system gnu-build-system)
1056 (native-inputs `(("flex" ,flex)
1059 '(#:make-flags (list (string-append "PREFIX=" %output)
1061 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1062 #:tests? #f ; no 'check' target.
1063 #:phases (alist-delete 'configure %standard-phases)))
1064 (home-page "http://acpica.org/")
1065 (synopsis "Tools for the development and debug of ACPI tables")
1067 "The ACPI Component Architecture (ACPICA) project provides an
1068 OS-independent reference implementation of the Advanced Configuration and
1069 Power Interface Specification (ACPI). ACPICA code contains those portions of
1070 ACPI meant to be directly integrated into the host OS as a kernel-resident
1071 subsystem, and a small set of tools to assist in developing and debugging ACPI
1072 tables. This package contains only the user-space tools needed for ACPI table
1073 development, not the kernel implementation of ACPI.")
1074 (license license:gpl2))) ; Dual GPLv2/ACPICA Licence
1076 (define-public stress
1082 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1083 version ".orig.tar.gz"))
1086 "1v9vnzlihqfjsxa93hdbrq72pqqk00dkylmlg8jpxhm7s1w9qfl1"))))
1087 (build-system gnu-build-system)
1088 (home-page "http://packages.debian.org/wheezy/stress")
1089 (synopsis "Impose load on and stress test a computer system")
1091 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
1092 or disk stress on a POSIX-compliant operating system and reports any errors it
1095 Stress is not a benchmark. It is a tool used by system administrators to
1096 evaluate how well their systems will scale, by kernel programmers to evaluate
1097 perceived performance characteristics, and by systems programmers to expose
1098 the classes of bugs which only or more frequently manifest themselves when the
1099 system is under heavy load.")
1100 (license license:gpl2+)))
1102 (define-public detox
1108 (uri (string-append "mirror://sourceforge/detox/detox/" version
1109 "/detox-" version ".tar.bz2"))
1112 "1y6vvjqsg54kl49cry73jbfhr04s7wjs779vrr9zrq6kww7dkymb"))))
1113 (build-system gnu-build-system)
1114 ;; Both flex and popt are used in this case for their runtime libraries
1115 ;; (libfl and libpopt).
1120 `(#:configure-flags `(,(string-append "--with-popt="
1121 (assoc-ref %build-inputs "popt")))
1122 #:tests? #f)) ;no 'check' target
1123 (home-page "http://detox.sourceforge.net")
1124 (synopsis "Clean up file names")
1126 "Detox is a program that renames files to make them easier to work with
1127 under Unix and related operating systems. Spaces and various other unsafe
1128 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1129 characters can be replaced as well, as can UTF-8 characters.")
1130 (license license:bsd-3)))
1132 (define-public testdisk
1138 (uri (string-append "http://www.cgsecurity.org/testdisk-"
1139 version ".tar.bz2"))
1142 "0ba4wfz2qrf60vwvb1qsq9l6j0pgg81qgf7fh22siaz649mkpfq0"))))
1143 (build-system gnu-build-system)
1145 `(("ntfs-3g" ,ntfs-3g)
1146 ("util-linux" ,util-linux)
1147 ("openssl" ,openssl)
1148 ;; FIXME: add reiserfs
1150 ("e2fsprogs" ,e2fsprogs)
1151 ("libjpeg" ,libjpeg)
1152 ("ncurses" ,ncurses)))
1153 (home-page "http://www.cgsecurity.org/wiki/TestDisk")
1154 (synopsis "Data recovery tool")
1156 "TestDisk is a program for data recovery, primarily designed to help
1157 recover lost partitions and/or make non-booting disks bootable again.")
1158 (license license:gpl2+)))
1167 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1170 (base32 "04kviw799qxly08zb8n5mgxfd96gyis6x69q2qiw86jnh87c4mv9"))))
1171 (build-system gnu-build-system)
1173 '(#:phases (alist-delete 'configure %standard-phases)
1174 #:tests? #f ; no check target
1175 #:make-flags (let ((out (assoc-ref %outputs "out")))
1176 (list (string-append "prefix=" out)))))
1177 (synopsis "Recursively list the contents of a directory")
1179 "Tree is a recursive directory listing command that produces a depth
1180 indented listing of files, which is colorized ala dircolors if the LS_COLORS
1181 environment variable is set and output is to tty.")
1182 (home-page "http://mama.indstate.edu/users/ice/tree/")
1183 (license license:gpl2+)))
1185 (define-public direvent
1191 (uri (string-append "mirror://gnu/direvent/direvent-"
1195 "1nwvjmx7kb14ni34c0b8x9a3791pc20gvhj7xaj66d8q4h6n0qf4"))
1196 (modules '((guix build utils)))
1197 (snippet '(substitute* "tests/testsuite"
1198 (("#![[:blank:]]?/bin/sh")
1200 (build-system gnu-build-system)
1202 '(#:phases (alist-cons-before
1203 'build 'patch-/bin/sh
1204 (lambda* (#:key inputs #:allow-other-keys)
1205 ;; Use the right shell when executing the watcher and
1206 ;; user-provided shell commands.
1207 (let ((bash (assoc-ref inputs "bash")))
1208 (substitute* '("src/direvent.c" "src/progman.c")
1210 (string-append "\"" bash "/bin/sh\"")))
1212 ;; Adjust the 'shell.at' test accordingly.
1213 (substitute* "tests/testsuite"
1215 (string-append "SHELL=" bash "/bin/sh")))
1219 (home-page "http://www.gnu.org/software/direvent/")
1220 (synopsis "Daemon to monitor directories for events such as file removal")
1222 "A daemon that monitors directories for events, such as creating,
1223 deleting or modifying files. It can monitor different sets of directories for
1224 different events. When an event is detected, direvent calls a specified
1225 external program with information about the event, such as the location
1226 within the file system where it occurred. Thus, \"direvent\" provides an
1227 easy way to react immediately if given files undergo changes, for example, to
1228 track changes in important system configuration files.")
1229 (license license:gpl3+)))
1231 (define-public libcap-ng
1238 "http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1242 "0ssvnh4cvhya0c1j6k6192zvqcq7nc0x01fb5nwhr0prfqr0i8j8"))))
1243 (build-system gnu-build-system)
1244 (inputs `(("python" ,python)))
1245 (home-page "http://people.redhat.com/sgrubb/libcap-ng/")
1246 (synopsis "Library for more easily working with POSIX capabilities")
1248 "The libcap-ng library is intended to make programming with POSIX
1249 capabilities easier than the traditional libcap library. It includes
1250 utilities that can analyse all currently running applications and print out
1251 any capabilities and whether or not it has an open ended bounding set. The
1252 included utilities are designed to let admins and developers spot apps from
1253 various ways that may be running with too much privilege.")
1254 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1255 (license (list license:lgpl2.1+ license:gpl2+))))
1257 (define-public smartmontools
1259 (name "smartmontools")
1264 "mirror://sourceforge/smartmontools/smartmontools/"
1265 version "/smartmontools-" version ".tar.gz"))
1268 "1g25r6sx85b5lay5n6sbnqv05qxzj6xsafsp93hnrg1h044bps49"))))
1269 (build-system gnu-build-system)
1270 (inputs `(("libcap-ng" ,libcap-ng)))
1271 (home-page "http://www.smartmontools.org/")
1272 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1274 "The smartmontools package contains utility programs to control and
1275 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1276 Technology System (S.M.A.R.T.) built into most modern ATA and SCSI harddisks.
1277 In many cases, these utilities will provide advanced warning of disk
1278 degradation and failure.")
1279 (license license:gpl2+)))
1281 (define-public fdupes
1289 "https://github.com/adrianlopezroche/fdupes/archive/v"
1291 (file-name (string-append name "-" version ".tar.gz"))
1294 "1sj9pa40pbz6xdwbxfwhdhkvhdf1xc5gvggk9mdq26c41gdnyswx"))))
1295 (build-system gnu-build-system)
1297 '(#:phases (modify-phases %standard-phases
1298 (delete 'configure))
1299 #:tests? #f ; no 'check' target
1300 #:make-flags (list "CC=gcc"
1301 (string-append "PREFIX="
1302 (assoc-ref %outputs "out")))))
1303 (home-page "https://github.com/adrianlopezroche/fdupes")
1304 (synopsis "Identify duplicate files")
1306 "fdupes is a program for identifying duplicate files residing within
1307 specified directories.")
1308 (license license:expat)))
1310 (define-public graphios
1318 "https://pypi.python.org/packages/source/g/graphios/graphios-"
1322 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1323 (build-system python-build-system)
1325 ;; Be warned: Building with Python 3 succeeds, but the build process
1326 ;; throws a syntax error that is ignored.
1327 `(#:python ,python-2
1329 (modify-phases %standard-phases
1330 (add-before 'build 'fix-setup.py
1331 (lambda* (#:key outputs #:allow-other-keys)
1332 ;; Fix hardcoded, unprefixed file names.
1333 (let ((out (assoc-ref outputs "out")))
1334 (substitute* '("setup.py")
1335 (("/etc") (string-append out "/etc"))
1337 (("distro_ver = .*") "distro_ver = ''"))
1339 (home-page "https://github.com/shawn-sterling/graphios")
1340 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1342 "Graphios is a script to emit nagios perfdata to various upstream metrics
1343 processing and time-series systems. It's currently compatible with Graphite,
1344 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1345 of supported upstream metrics systems simultaneously.")
1346 (license license:gpl2+)))
1348 (define-public ansible
1355 (uri (pypi-uri "ansible" version))
1358 "0gz9i30pdmkchi936ijy873k8di6fmf3v5rv551hxyf0hjkjx8b3"))))
1359 (build-system python-build-system)
1361 `(("python2-pycrypto" ,python2-pycrypto)
1362 ("python2-httplib2" ,python2-httplib2)
1363 ("python2-passlib" ,python2-passlib)
1364 ("python2-nose" ,python2-nose)
1365 ("python2-mock" ,python2-mock)
1366 ("python2-jinja2" ,python2-jinja2)
1367 ("python2-pyyaml" ,python2-pyyaml)
1368 ("python2-paramiko" ,python2-paramiko)))
1370 `(("python2-pycrypto" ,python2-pycrypto)
1371 ("python2-jinja2" ,python2-jinja2)
1372 ("python2-pyyaml" ,python2-pyyaml)
1373 ("python2-paramiko" ,python2-paramiko)))
1375 `(#:python ,python-2)) ; incompatible with Python 3
1376 (home-page "http://ansible.com/")
1377 (synopsis "Radically simple IT automation")
1378 (description "Ansible is a radically simple IT automation system. It
1379 handles configuration-management, application deployment, cloud provisioning,
1380 ad-hoc task-execution, and multinode orchestration - including trivializing
1381 things like zero downtime rolling updates with load balancers.")
1382 (license license:gpl3+)))
1384 (define-public cpulimit
1391 (uri (string-append "https://github.com/opsengine/cpulimit/archive/v"
1393 (file-name (string-append name "-" version ".tar.gz"))
1396 "1nn2w849xd5bw4y5sqnll29nxdwl5h0cv4smc7dwmpb9qnd2ycb4"))))
1397 (build-system gnu-build-system)
1399 `(#:phases (modify-phases %standard-phases
1404 (zero? (system* "make" "CC=gcc" "-Csrc"))))
1408 (zero? (system* "make" "CC=gcc" "-Ctests"))))
1411 (lambda* (#:key outputs #:allow-other-keys)
1412 (let* ((out (assoc-ref outputs "out"))
1413 (bin (string-append out "/bin")))
1414 (install-file "src/cpulimit" bin)))))))
1415 (home-page "https://github.com/opsengine/cpulimit")
1416 (synopsis "Limit CPU usage")
1418 "Cpulimit limits the CPU usage of a process. It does not change the nice
1419 value or other scheduling priority settings, but the real CPU usage, and is
1420 able to adapt itself dynamically to the overall system load. Children
1421 processes and threads of the specified process may optionally share the same
1423 (license license:gpl2+)))
1425 (define-public autojump
1432 (uri (string-append "https://github.com/wting/autojump/archive/"
1433 "release-v" version ".tar.gz"))
1434 (file-name (string-append name "-" version ".tar.gz"))
1437 "113rcpr37ngf2xs8da41qdarq5qmj0dwx8ggqy3lhlb0kvqq7g9z"))))
1438 (build-system gnu-build-system)
1439 (native-inputs ;for tests
1440 `(("python-mock" ,python-mock)
1441 ("python-pytest" ,python-pytest)))
1443 `(("python" ,python-wrapper)))
1445 `(#:phases (modify-phases %standard-phases
1451 (system* "python" "tests/unit/autojump_utils_test.py"))))
1453 ;; The install.py script doesn't allow system installation
1454 ;; into an arbitrary prefix, so do our own install.
1455 (lambda* (#:key outputs #:allow-other-keys)
1456 (let* ((out (assoc-ref outputs "out"))
1457 (bin (string-append out "/bin"))
1458 (share (string-append out "/share/autojump"))
1459 (py (string-append out "/lib/python"
1460 ,(version-major+minor
1461 (package-version python-wrapper))
1463 (man (string-append out "/share/man/man1")))
1464 (install-file "bin/autojump" bin)
1465 (for-each (λ (f) (install-file f py))
1466 (find-files "bin" "\\.py$"))
1467 (for-each (λ (f) (install-file f share))
1468 (find-files "bin" "autojump\\..*$"))
1469 (substitute* (string-append share "/autojump.sh")
1470 (("/usr/local") out))
1471 (install-file "docs/autojump.1" man)
1472 (wrap-program (string-append bin "/autojump")
1473 `("PYTHONPATH" ":" prefix (,py)))
1475 (home-page "https://github.com/wting/autojump")
1476 (synopsis "Shell extension for file system navigation")
1478 "Autojump provides a faster way to navigate your file system, with a \"cd
1479 command that learns\". It works by maintaining a database of the directories
1480 you use the most from the command line and allows you to \"jump\" to
1481 frequently used directories by typing only a small pattern.")
1482 (license license:gpl3+)))
1484 (define-public iftop
1490 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
1491 "/iftop-" version ".tar.gz"))
1494 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
1495 (build-system gnu-build-system)
1497 `(("libpcap" ,libpcap)
1498 ("ncurses" ,ncurses)))
1499 (synopsis "Monitor network usage")
1500 (description "Iftop does for network usage what @command{top} does
1501 for CPU usage. It listens to network traffic on a named interface and
1502 displays a table of current bandwidth usage by pairs of hosts.")
1503 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
1504 (license license:gpl2+)))
1506 (define-public munge
1512 (uri (string-append "https://github.com/dun/munge/releases/"
1513 "download/munge-" version "/munge-"
1517 "1s0vlwgm3hcx75vcmjf2y3icy5nv8y07bx93w2cmm6a7x71y6wp9"))))
1519 `(("openssl" ,openssl)
1520 ("libgcrypt" ,libgcrypt)))
1521 (build-system gnu-build-system)
1522 (home-page "https://dun.github.io/munge/")
1523 (synopsis "Cluster computing authentication service")
1525 "Munge is an authentication service for creating and validating
1526 credentials. It allows a process to authenticate the UID and GID of another
1527 local or remote process within a group of hosts having common users and
1528 groups. These hosts form a security realm that is defined by a shared
1529 cryptographic key. Clients within this security realm can create and validate
1530 credentials without the use of root privileges, reserved ports, or
1531 platform-specific methods.")
1532 (license license:gpl3+)))
1534 (define-public audit
1540 (uri (string-append "http://people.redhat.com/sgrubb/audit/"
1541 "audit-" version ".tar.gz"))
1544 "1q1q51dvxscbi4kbakmd4bn0xrvwwaiwvaya79925cbrqwzxsg77"))))
1545 (build-system gnu-build-system)
1546 (home-page "http://people.redhat.com/sgrubb/audit/")
1548 `(#:configure-flags (list "--with-python=no")
1550 (modify-phases %standard-phases
1551 (add-after 'unpack 'fix-tests
1553 ;; In the build environmnte /etc/passwd does not contain an entry
1554 ;; for root/0, so we have to patch the expected value.
1555 (substitute* "auparse/test/auparse_test.ref"
1556 (("=0 \\(root\\)") "=0 (unknown(0))"))
1559 `(("openldap" ,openldap)
1561 ("sasl" ,cyrus-sasl)))
1562 (synopsis "User-space component to the Linux auditing system")
1564 "auditd is the user-space component to the Linux auditing system, which
1565 allows logging of system calls made by user-land processes. It's responsible
1566 for writing audit records to the disk. Viewing the logs is done with the
1567 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
1568 done with the @code{auditctl} utility.")
1569 (license license:gpl2+)))
1577 (uri (string-append "https://nmap.org/dist/nmap-" version
1581 "121i9mgyc28ra2825akd0ix5qyssv4xc2qlx296mam6hzxgnc54y"))
1582 (modules '((guix build utils)))
1584 '(map delete-file-recursively
1585 ;; Remove bundled lua, pcap, and pcre libraries.
1586 ;; FIXME: Remove bundled liblinear once packaged.
1590 ;; Remove pre-compiled binares.
1592 (build-system gnu-build-system)
1594 `(("openssl" ,openssl)
1595 ("libpcap" ,libpcap)
1599 ("python" ,python-2)))
1601 ;; TODO Add zenmap output.
1602 (outputs '("out" "ndiff"))
1604 '(#:configure-flags '("--without-zenmap")
1606 (modify-phases %standard-phases
1607 (add-after 'configure 'patch-Makefile
1609 (substitute* "Makefile"
1610 ;; Do not attempt to build lua.
1611 (("build-dnet build-lua") "build-dnet"))
1614 (lambda* (#:key outputs #:allow-other-keys)
1615 (define (make out . args)
1616 (unless (zero? (apply system* "make"
1617 (string-append "prefix=" out)
1619 (error "make failed")))
1620 (define (python-path dir)
1621 (string-append dir "/lib/python2.7/site-packages"))
1622 (let ((out (assoc-ref outputs "out"))
1623 (ndiff (assoc-ref outputs "ndiff")))
1624 (for-each mkdir-p (list out ndiff))
1630 (make ndiff "install-ndiff")
1631 (wrap-program (string-append ndiff "/bin/ndiff")
1632 `("PYTHONPATH" prefix
1633 (,(python-path ndiff)))))))
1634 ;; These are the tests that do not require network access.
1636 (lambda _ (zero? (system* "make"
1640 ;; Nmap can't cope with out-of-source building.
1641 #:out-of-source? #f))
1642 (home-page "https://nmap.org/")
1643 (synopsis "Network discovery and security auditing tool")
1645 "Nmap (\"Network Mapper\") is a network discovery and security auditing
1646 tool. It is also useful for tasks such as network inventory, managing service
1647 upgrade schedules, and monitoring host or service uptime. It also provides an
1648 advanced netcat implementation (ncat), a utility for comparing scan
1649 results (ndiff), and a packet generation and response analysis tool (nping).")
1650 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
1651 ;; both use a 3-clause BSD license.
1652 (license (list license:nmap license:bsd-3))))
1654 (define-public dstat
1661 "https://github.com/dagwieers/dstat/archive/"
1663 (file-name (string-append "dstat-" version ".tar.gz"))
1666 "16286z3y2lc9nsq8njzjkv6k2vyxrj9xiixj1k3gnsbvhlhkirj6"))))
1667 (build-system gnu-build-system)
1669 `(#:tests? #f ;; no make check
1670 #:make-flags (let ((out (assoc-ref %outputs "out")))
1671 (list (string-append "DESTDIR=" out)
1673 ;; no configure script
1674 #:phases (alist-delete 'configure %standard-phases)))
1675 (inputs `(("python-2" ,python-2)))
1676 (synopsis "Versatile resource statistics tool")
1677 (description "Dstat is a versatile replacement for @command{vmstat},
1678 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
1679 some of their limitations and adds some extra features, more counters and
1680 flexibility. Dstat is handy for monitoring systems during performance tuning
1681 tests, benchmarks or troubleshooting.
1683 Dstat allows you to view all of your system resources in real-time, you can,
1684 e.g., compare disk utilization in combination with interrupts from your IDE
1685 controller, or compare the network bandwidth numbers directly with the disk
1686 throughput (in the same interval).")
1687 (home-page "http://dag.wiee.rs/home-made/dstat/")
1688 (license license:gpl2+)))
1690 (define-public thefuck
1696 (uri (string-append "https://github.com/nvbn/thefuck/archive/"
1698 (file-name (string-append name "-" version ".tar.gz"))
1701 "04q2cn8c83f6z6wn1scla1ilrpi5ssjc64987hvmwfvwvb82bvkp"))))
1702 (build-system python-build-system)
1705 ;; FIXME: 10 test failures. Some require newer pytest (> 2.9.2).
1706 ;; Others need more work. Un-comment the below to run the tests.
1708 ;; (modify-phases %standard-phases
1711 ;; ;; Some tests need write access to $HOME.
1712 ;; (setenv "HOME" "/tmp")
1713 ;; (zero? (system* "py.test" "-v")))))))
1715 `(("python-colorama" ,python-colorama)
1716 ("python-decorator" ,python-decorator)
1717 ("python-psutil" ,python-psutil)
1718 ("python-six" ,python-six)))
1720 `(("python-mock" ,python-mock)
1721 ("python-pytest" ,python-pytest)
1722 ("python-pytest-mock" ,python-pytest-mock)
1723 ;; Requires setuptools >= 17.1 due to some features used, while our
1724 ;; python currently only includes 12.0. TODO: Remove this input.
1725 ("python-setuptools" ,python-setuptools)))
1726 (home-page "https://github.com/nvbn/thefuck")
1727 (synopsis "Correct mistyped console command")
1729 "The Fuck tries to match a rule for a previous, mistyped command, creates
1730 a new command using the matched rule, and runs it.")
1731 (license license:x11)))
1740 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
1742 (base32 "1q25jy51qfzsym9b2w0cqzscq2j492gn60dy6gbp88m8nwm4sdy8"))))
1743 (build-system gnu-build-system)
1745 `(#:tests? #f ; Obscure test failures.
1747 (modify-phases %standard-phases
1749 (add-before 'build 'setup-environment
1750 (lambda* (#:key outputs #:allow-other-keys)
1752 (setenv "prefix" (assoc-ref outputs "out"))
1754 #:make-flags (list "--environment-overrides")))
1755 (home-page "https://www.gentoo.com/di/")
1756 (synopsis "Advanced df like disk information utility")
1758 "'di' is a disk information utility, displaying everything
1759 (and more) that your @code{df} command does. It features the ability to
1760 display your disk usage in whatever format you prefer. It is designed to be
1761 highly portable. Great for heterogenous networks.")
1762 (license license:zlib)))
1764 (define-public cbatticon
1770 (uri (string-append "https://github.com/valr/"
1771 name "/archive/" version ".tar.gz"))
1774 "0xzz1faqgm57bwlkw6sjdfbckf5hck81879zbfk18p7xn9vhvixv"))
1775 (file-name (string-append name "-" version ".tar.gz"))))
1776 (build-system gnu-build-system)
1778 `(#:tests? #f ; no tests
1780 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1783 (modify-phases %standard-phases
1784 (delete 'configure)))) ; no configure script
1787 ("gettext" ,gettext-minimal)
1788 ("libnotify" ,libnotify)))
1790 `(("pkg-config" ,pkg-config)))
1791 (synopsis "Lightweight battery icon for the system tray")
1792 (description "cbatticon is a lightweight battery icon that displays
1793 the status of your battery in the system tray.")
1794 (home-page "https://github.com/valr/cbatticon")
1795 (license license:gpl2+)))
1797 (define-public interrobang
1798 (let ((revision "1")
1799 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
1801 (name "interrobang")
1802 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
1806 (url "git://github.com/TrilbyWhite/interrobang")
1808 (file-name (string-append name "-" version))
1811 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
1812 (build-system gnu-build-system)
1814 `(#:tests? #f ; no tests
1816 (modify-phases %standard-phases
1817 (delete 'configure)) ; no configure script
1818 #:make-flags (list (string-append "PREFIX="
1819 (assoc-ref %outputs "out")))))
1821 `(("libx11" ,libx11)))
1823 `(("pkg-config" ,pkg-config)))
1824 (synopsis "Scriptable launcher menu")
1825 (description "Interrobang is a scriptable launcher menu with a customizable
1826 shortcut syntax and completion options.")
1827 (home-page "https://github.com/TrilbyWhite/interrobang")
1828 (license license:gpl3+))))
1832 (define-public pam-krb5
1839 "https://archives.eyrie.org/software/kerberos/" name "-"
1843 "0abf8cfpkprmhw5ca8iyqgrggh65lgqvmfllc1y6qz7zw1gas894"))))
1844 (build-system gnu-build-system)
1847 (modify-phases %standard-phases
1848 (add-before 'configure 'disable-tests
1850 ;; The build container seems to interfere with some tests.
1851 (substitute* "tests/TESTS"
1852 (("module/basic\n") ""))
1853 (substitute* "tests/TESTS"
1854 (("pam-util/vector\n") ""))
1857 `(("linux-pam" ,linux-pam)
1858 ("mit-krb5" ,mit-krb5)))
1861 ("perl-test-pod" ,perl-test-pod))) ; required for tests
1862 (synopsis "Kerberos PAM module")
1864 "Pam-krb5 is a Kerberos PAM module for either MIT Kerberos or Heimdal.
1865 It supports ticket refreshing by screen savers, configurable
1866 authorization handling, authentication of non-local accounts for network
1867 services, password changing, and password expiration, as well as all the
1868 standard expected PAM features. It works correctly with OpenSSH, even
1869 with ChallengeResponseAuthentication and PrivilegeSeparation enabled,
1870 and supports extensive configuration either by PAM options or in
1871 krb5.conf or both. PKINIT is supported with recent versions of both MIT
1872 Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
1873 (home-page "http://www.eyrie.org/~eagle/software/pam-krb5")
1874 ;; Dual licenced under a homebrew non-copyleft OR GPL (any version)
1875 ;; However, the tarball does not contain a copy of the GPL, so unless
1876 ;; we put one in, we cannot distribute it under GPL without violating
1877 ;; clause requiring us to give all recipients a copy.
1878 (license license:gpl1+)))
1880 ;;http://archives.eyrie.org/software/kerberos/pam-krb5-4.7.tar.xz
1882 (define-public sunxi-tools
1884 (name "sunxi-tools")
1889 (uri (string-append "https://github.com/linux-sunxi/"
1890 "sunxi-tools/archive/v" version ".tar.gz"))
1892 (base32 "08iqwj95qw2s7ilhrdi2lkbc8dx64zk5lzz1qk587jr0lla81x41"))
1893 (modules '((guix build utils)))
1895 ;; Remove binaries contained in the tarball which are only for the
1896 ;; target and can be regenerated anyway.
1897 '(delete-file-recursively "bin"))
1898 (file-name (string-append name "-" version ".tar.gz"))))
1900 `(("pkg-config" ,pkg-config)))
1902 `(("libusb" ,libusb)))
1903 (build-system gnu-build-system)
1905 `(#:tests? #f ; no tests exist
1906 #:make-flags (list (string-append "PREFIX="
1907 (assoc-ref %outputs "out"))
1912 (modify-phases %standard-phases
1915 (lambda* (#:key make-flags #:allow-other-keys)
1916 (zero? (apply system* "make" "install-all" "install-misc"
1918 (home-page "https://github.com/linux-sunxi/sunxi-tools")
1919 (synopsis "Hardware management tools for Allwinner computers")
1920 (description "This package contains tools for Allwinner devices:
1922 @item @command{sunxi-fexc}, @command{bin2fex}, @command{fex2bin}: Compile
1923 a textual description of a board (.fex) to a binary representation (.bin).
1924 @item @command{sunxi-fel}: Puts an Allwinner device into FEL mode which
1925 makes it register as a special USB device (rather than USB host).
1926 You can then connect it to another computer and flash it from there.
1927 @item @command{sunxi-nand-part}: Partitions NAND flash.
1928 @item @command{sunxi-bootinfo}: Reads out boot0 and boot1 (Allwinner
1929 bootloader) parameters.
1930 @item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
1931 in order to be able to find it.
1932 @item @command{sunxi-meminfo}: Prints memory bus settings.
1933 @item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
1935 (license license:gpl2+)))
1937 (define-public sedsed
1944 (uri (string-append "https://github.com/aureliojargas/sedsed/"
1945 "archive/v" version ".tar.gz"))
1946 (file-name (string-append name "-" version ".tar.gz"))
1949 "0139jkqvm8ipiwfj7k69ry2f9b1ffgpk79arpz4r7w9kf6h23bnh"))))
1950 (build-system python-build-system)
1952 `(#:tests? #f ; No tests.
1955 (modify-phases %standard-phases
1956 (add-after 'unpack 'patch-sed-in
1958 (substitute* "sedsed.py"
1960 (string-append "sedbin = '" (which "sed") "'")))
1964 (lambda* (#:key outputs #:allow-other-keys)
1965 (let* ((out (assoc-ref outputs "out"))
1966 (bin (string-append out "/bin")))
1967 ;; Just one file to copy around
1968 (install-file "sedsed.py" bin)
1970 (add-after 'install 'symlink
1971 ;; Create 'sedsed' symlink to "sedsed.py".
1972 (lambda* (#:key outputs #:allow-other-keys)
1973 (let* ((out (assoc-ref outputs "out"))
1974 (bin (string-append out "/bin"))
1975 (sed (string-append bin "/sedsed"))
1976 (sedpy (string-append bin "/sedsed.py")))
1979 (home-page "http://aurelio.net/projects/sedsed")
1980 (synopsis "Sed sed scripts")
1982 "@code{sedsed} can debug, indent, tokenize and HTMLize your sed(1) script.
1984 In debug mode it reads your script and add extra commands to it. When
1985 executed you can see the data flow between the commands, revealing all the
1986 magic sed does on its internal buffers.
1988 In indent mode your script is reformatted with standard spacing.
1990 In tokenize mode you can see the elements of every command you use.
1992 In HTMLize mode your script is converted to a beautiful colored HTML file,
1993 with all the commands and parameters identified for your viewing pleasure.
1995 With sedsed you can master any sed script. No more secrets, no more hidden
1997 (license license:expat)))