1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
4 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
6 ;;; Copyright © 2015 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>
10 ;;; This file is part of GNU Guix.
12 ;;; GNU Guix is free software; you can redistribute it and/or modify it
13 ;;; under the terms of the GNU General Public License as published by
14 ;;; the Free Software Foundation; either version 3 of the License, or (at
15 ;;; your option) any later version.
17 ;;; GNU Guix is distributed in the hope that it will be useful, but
18 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;;; GNU General Public License for more details.
22 ;;; You should have received a copy of the GNU General Public License
23 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
25 (define-module (gnu packages admin)
26 #:use-module ((guix licenses) #:prefix license:)
27 #:use-module (guix packages)
28 #:use-module (guix utils)
29 #:use-module (guix download)
30 #:use-module (guix git-download)
31 #:use-module (guix build-system cmake)
32 #:use-module (guix build-system gnu)
33 #:use-module (guix build-system python)
34 #:use-module (guix build-system trivial)
35 #:use-module (gnu packages)
36 #:use-module (gnu packages base)
37 #:use-module (gnu packages ncurses)
38 #:use-module (gnu packages readline)
39 #:use-module (gnu packages linux)
40 #:use-module (gnu packages guile)
41 #:use-module (gnu packages gettext)
42 #:use-module (gnu packages perl)
43 #:use-module (gnu packages tcl)
44 #:use-module (gnu packages compression)
45 #:use-module (gnu packages tls)
46 #:use-module (gnu packages gnupg)
47 #:use-module (gnu packages bison)
48 #:use-module (gnu packages flex)
49 #:use-module (gnu packages glib)
50 #:use-module (gnu packages pkg-config)
51 #:use-module (gnu packages popt)
52 #:use-module (gnu packages texinfo)
53 #:use-module (gnu packages groff)
54 #:use-module (gnu packages pciutils)
55 #:use-module (gnu packages libusb)
56 #:use-module (gnu packages libftdi)
57 #:use-module (gnu packages image)
58 #:use-module (gnu packages xorg)
59 #:use-module (gnu packages python)
60 #:use-module (gnu packages man))
63 (let ((base-version "0.2")
67 (version (string-append base-version "." patch-level))
70 (uri (string-append "ftp://alpha.gnu.org/gnu/dmd/dmd-"
71 base-version ".tar.gz"))
74 "10fl4k96f17gqx2fv8iw9c61ld26gsk4bbrlfqckdmiimz1k175z"))
77 ;; This patch augments 'make-fork+exec-constructor' and
78 ;; is used by a bunch of services.
81 "http://git.savannah.gnu.org/cgit/dmd.git/patch/"
82 "?id=d1d0ff30b3ed2b86b0a3c9bc048d2a855f8e31e6"))
85 "1lqymypixfiyb72d6bn24m06ry2q1ljnnv0qrc89pbb4z9azaa4d"))
86 (file-name "dmd-user-group.patch"))))))
87 (build-system gnu-build-system)
89 '(#:configure-flags '("--localstatedir=/var")))
90 (native-inputs `(("pkg-config" ,pkg-config)))
91 (inputs `(("guile" ,guile-2.0)))
92 (synopsis "Daemon managing daemons")
94 "GNU DMD is a daemon-managing daemon, meaning that it manages the
95 execution of system services, replacing similar functionality found in
96 typical init systems. It provides dependency-handling through a convenient
97 interface and is based on GNU Guile.")
98 (license license:gpl3+)
99 (home-page "http://www.gnu.org/software/dmd/"))))
109 "http://projects.gw-computing.net/attachments/download/79/dfc-"
113 "0zk1ppx93ijimf4sbgqilxxikpsa2gmpbynknyh41xy7jbdjxp0b"))))
114 (build-system cmake-build-system)
115 (arguments '(#:tests? #f)) ; There are no tests.
116 (native-inputs `(("gettext" ,gnu-gettext)))
117 (home-page "http://projects.gw-computing.net/projects/dfc")
118 (synopsis "Display file system space usage using graphs and colors")
120 "dfc (df color) is a modern version of df. It uses colors, draws pretty
121 graphs and can export its output to different formats.")
122 (license license:bsd-3)))
130 (uri (string-append "http://hisham.hm/htop/releases/"
131 version "/htop-" version ".tar.gz"))
134 "0a8qbpsifzjwc4f45xfwm48jhm59g6q5hlib4bf7z13mgy95fp05"))))
135 (build-system gnu-build-system)
137 `(("ncurses" ,ncurses)))
138 (home-page "http://htop.sourceforge.net/")
139 (synopsis "Interactive process viewer")
141 "This is htop, an interactive process viewer. It is a text-mode
142 application (for console or X terminals) and requires ncurses.")
143 (license license:gpl2)))
152 (uri (string-append "mirror://gnu/pies/pies-"
156 "18w0dbg77i56cx1bwa789w0qi3l4xkkbascxcv2b6gbm0zmjg1g6"))))
157 (build-system gnu-build-system)
158 (home-page "http://www.gnu.org/software/pies/")
159 (synopsis "Program invocation and execution supervisor")
161 "GNU pies is a program that supervises the invocation and execution of
162 other programs. It reads the list of programs to be started from its
163 configuration file, executes them, and then monitors their status,
164 re-executing them as necessary.")
165 (license license:gpl3+)))
167 (define-public inetutils
173 (uri (string-append "mirror://gnu/inetutils/inetutils-"
177 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
178 (build-system gnu-build-system)
179 (arguments `(;; FIXME: `tftp.sh' relies on `netstat' from utils-linux,
180 ;; which is currently missing.
182 (inputs `(("ncurses" ,ncurses)
183 ("readline" ,readline))) ; for 'ftp'
184 (home-page "http://www.gnu.org/software/inetutils/")
185 (synopsis "Basic networking utilities")
187 "Inetutils is a collection of common network programs, such as an ftp
188 client and server, a telnet client and server, and an rsh client and server.")
189 (license license:gpl3+)))
191 (define-public shadow
198 "http://pkg-shadow.alioth.debian.org/releases/"
199 name "-" version ".tar.xz"))
202 "0h9x1zdbq0pqmygmc1x459jraiqw4gqz8849v268crk78z8r621v"))))
203 (build-system gnu-build-system)
205 '(;; Assume System V `setpgrp (void)', which is the default on GNU
206 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
207 #:configure-flags '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
209 #:phases (alist-cons-before
210 'build 'set-nscd-file-name
211 (lambda* (#:key inputs #:allow-other-keys)
212 ;; Use the right file name for nscd.
213 (let ((libc (assoc-ref inputs "libc")))
214 (substitute* "lib/nscd.c"
216 (string-append libc "/sbin/nscd")))))
218 'install 'remove-groups
219 (lambda* (#:key outputs #:allow-other-keys)
220 ;; Remove `groups', which is already provided by Coreutils.
221 (let* ((out (assoc-ref outputs "out"))
222 (bin (string-append out "/bin"))
223 (man (string-append out "/share/man")))
224 (delete-file (string-append bin "/groups"))
225 (for-each delete-file (find-files man "^groups\\."))
229 (inputs (if (string-suffix? "-linux"
230 (or (%current-target-system)
232 `(("linux-pam" ,linux-pam))
234 (home-page "http://pkg-shadow.alioth.debian.org/")
235 (synopsis "Authentication-related tools such as passwd, su, and login")
237 "Shadow provides a number of authentication-related tools, including:
238 login, passwd, su, groupadd, and useradd.")
240 ;; The `vipw' program is GPLv2+.
241 ;; libmisc/salt.c is public domain.
242 (license license:bsd-3)))
244 (define-public mingetty
250 (uri (string-append "mirror://sourceforge/mingetty/mingetty-"
254 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
255 (build-system gnu-build-system)
257 `(#:phases (alist-replace 'configure
258 (lambda* (#:key inputs outputs
260 (let* ((out (assoc-ref outputs "out"))
262 out "/share/man/man8"))
263 (sbin (string-append out "/sbin"))
264 (shadow (assoc-ref inputs "shadow"))
265 (login (string-append shadow
267 (substitute* "Makefile"
269 (string-append "SBINDIR = " out
272 (string-append "MANDIR = " out
273 "/share/man/man8\n")))
275 ;; Pick the right 'login' by default.
276 (substitute* "mingetty.c"
278 (string-append "\"" login "\"")))
283 #:tests? #f)) ; no tests
284 (inputs `(("shadow" ,shadow)))
286 (home-page "http://sourceforge.net/projects/mingetty")
287 (synopsis "Getty for the text console")
289 "Small console getty that is started on the Linux text console,
290 asks for a login name and then transfers over to 'login'. It is extended to
291 allow automatic login and starting any app.")
292 (license license:gpl2+)))
294 (define-public net-base
301 "mirror://debian/pool/main/n/netbase/netbase_"
305 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
306 (build-system trivial-build-system)
308 `(#:modules ((guix build utils))
310 (use-modules (guix build utils)
313 (let* ((source (assoc-ref %build-inputs "source"))
314 (tar (assoc-ref %build-inputs "tar"))
315 (xz (assoc-ref %build-inputs "xz"))
316 (output (assoc-ref %outputs "out"))
317 (etc (string-append output "/etc")))
318 (setenv "PATH" (string-append xz "/bin"))
319 (system* (string-append tar "/bin/tar") "xvf"
321 (chdir ,(string-append "netbase-" version))
324 '("etc-services" "etc-protocols" "etc-rpc")
325 (map (cut string-append etc "/" <>)
326 '("services" "protocols" "rpc")))
328 (native-inputs `(("tar" ,tar)
330 (synopsis "IANA protocol, port, and RPC number assignments")
332 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
333 files, which contain information about the IANA-assigned port, protocol, and
335 (home-page "http://packages.debian.org/sid/netbase")
336 (license license:gpl2)))
338 (define-public netcat
344 (uri (string-append "mirror://sourceforge/netcat/netcat-"
348 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
349 (build-system gnu-build-system)
352 ;; By default, man and info pages are put in PREFIX/{man,info},
353 ;; but we want them in PREFIX/share/{man,info}.
354 (let ((out (assoc-ref %outputs "out")))
355 (list (string-append "--mandir=" out "/share/man")
356 (string-append "--infodir=" out "/share/info")))))
357 (home-page "http://netcat.sourceforge.net")
358 (synopsis "Read and write data over TCP/IP")
360 "Netcat is a featured networking utility which reads and writes data
361 across network connections, using the TCP/IP protocol. It is designed to be a
362 reliable \"back-end\" tool that can be used directly or easily driven by other
363 programs and scripts. At the same time, it is a feature-rich network debugging
364 and exploration tool, since it can create almost any kind of connection you
365 would need and has several interesting built-in capabilities.")
366 (license license:gpl2+)))
374 (uri (string-append "mirror://gnu/alive/alive-"
378 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
379 (build-system gnu-build-system)
380 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
381 (inputs `(("guile" ,guile-2.0)
382 ("inetutils" ,inetutils)))
383 (home-page "http://www.gnu.org/software/alive/")
384 (synopsis "Autologin and keep-alive daemon")
386 "GNU Alive sends periodic pings to a server, generally to keep a
388 (license license:gpl3+)))
390 (define-public isc-dhcp
396 (uri (string-append "http://ftp.isc.org/isc/dhcp/"
397 version "/dhcp-" version ".tar.gz"))
400 "1w4s7sni1m9223ya8m2a64lr62845c6xlraprjf8zfx6lylbqv16"))))
401 (build-system gnu-build-system)
403 '(#:phases (alist-cons-after
404 'configure 'post-configure
405 (lambda* (#:key outputs #:allow-other-keys)
406 ;; Point to the right client script, which will be
407 ;; installed in a later phase.
408 (substitute* "includes/dhcpd.h"
409 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
410 (let ((out (assoc-ref outputs "out")))
411 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
412 out "/libexec/dhclient-script"
415 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
416 ;; we must patch shebangs in there and make sure the right
418 (with-directory-excursion "bind"
419 (substitute* "Makefile"
421 (let ((sh (which "sh")))
422 (string-append "./configure CONFIG_SHELL="
425 (system* "tar" "xf" "bind.tar.gz")
426 (for-each patch-shebang
427 (find-files "bind-9.9.5-P1" ".*"))
428 (zero? (system* "tar" "cf" "bind.tar.gz"
430 ;; avoid non-determinism in the archive
436 'install 'post-install
437 (lambda* (#:key inputs outputs #:allow-other-keys)
438 ;; Install the dhclient script for GNU/Linux and make sure
439 ;; if finds all the programs it needs.
440 (let* ((out (assoc-ref outputs "out"))
441 (libexec (string-append out "/libexec"))
442 (coreutils (assoc-ref inputs "coreutils"))
443 (inetutils (assoc-ref inputs "inetutils"))
444 (net-tools (assoc-ref inputs "net-tools"))
445 (sed (assoc-ref inputs "sed")))
446 (substitute* "client/scripts/linux"
448 (string-append (assoc-ref inputs "iproute")
452 (copy-file "client/scripts/linux"
453 (string-append libexec "/dhclient-script"))
456 (string-append libexec "/dhclient-script")
459 (string-append dir "/bin:"
461 (list inetutils net-tools coreutils sed))))))
464 (native-inputs `(("perl" ,perl)))
466 (inputs `(("inetutils" ,inetutils)
467 ("net-tools" ,net-tools)
470 ;; When cross-compiling, we need the cross Coreutils and sed.
471 ;; Otherwise just use those from %FINAL-INPUTS.
472 ,@(if (%current-target-system)
473 `(("coreutils" ,coreutils)
477 (home-page "http://www.isc.org/products/DHCP/")
478 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
480 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
481 reference implementation of all aspects of DHCP, through a suite of DHCP
482 tools: server, client, and relay agent.")
483 (license license:isc)))
485 (define-public libpcap
491 (uri (string-append "http://www.tcpdump.org/release/libpcap-"
495 "1c28ykkizd7jqgzrfkg7ivqjlqs9p6lygp26bsw2i0z8hwhi3lvs"))))
496 (build-system gnu-build-system)
497 (native-inputs `(("bison" ,bison) ("flex" ,flex)))
498 (arguments '(#:configure-flags '("--with-pcap=linux")
499 #:tests? #f)) ; no 'check' target
500 (home-page "http://www.tcpdump.org")
501 (synopsis "Network packet capture library")
503 "libpcap is an interface for user-level packet capture. It provides a
504 portable framework for low-level network monitoring. Applications include
505 network statistics collection, security monitoring, network debugging, etc.")
507 ;; fad-*.c and a couple other files are BSD-4, but the rest is BSD-3.
508 (license license:bsd-3)))
510 (define-public tcpdump
516 (uri (string-append "http://www.tcpdump.org/release/tcpdump-"
520 "1byr8w6grk08fsq0444jmcz9ar89lq9nf4mjq2cny0w9k8k21rbb"))))
521 (build-system gnu-build-system)
522 (inputs `(("libpcap" ,libpcap)
523 ("openssl" ,openssl)))
524 (native-inputs `(("perl" ,perl))) ; for tests
525 (home-page "http://www.tcpdump.org/")
526 (synopsis "Network packet analyzer")
528 "Tcpdump is a command-line tool to analyze network traffic passing
529 through the network interface controller.")
530 (license license:bsd-3)))
532 (define-public jnettop
538 (uri (string-append "http://jnettop.kubs.info/dist/jnettop-"
542 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
543 (build-system gnu-build-system)
545 `(("pkg-config" ,pkg-config)))
549 ("libpcap" ,libpcap)))
550 (home-page "http://jnettop.kubs.info/")
551 (synopsis "Visualize network traffic by bandwidth use")
553 "Jnettop is a traffic visualiser, which captures traffic going
554 through the host it is running from and displays streams sorted
555 by bandwidth they use.")
556 (license license:gpl2+)))
558 (define-public clusterssh
564 (uri (string-append "mirror://sourceforge/clusterssh/"
565 "clusterssh-" version ".tar.gz"))
568 "1bwggpvaj2al5blg1ynapviv2kpydffpzq2zkhi81najnvzc1rr7"))))
569 (build-system gnu-build-system)
570 (inputs `(("perl" ,perl)))
571 (propagated-inputs `(("xterm" ,xterm)
573 ("perl-x11-protocol" ,perl-x11-protocol)))
577 'install 'set-load-paths
578 (lambda* (#:key inputs outputs #:allow-other-keys)
579 ;; Put the perl-tk and perl-x11-protocol modules in the perl inc
581 (let* ((out (assoc-ref outputs "out"))
582 (prog (string-append out "/bin/cssh"))
583 (perl-ver ,(package-version perl))
584 (x11-inc (string-append
585 (assoc-ref inputs "perl-x11-protocol")
586 "/lib/perl5/site_perl/" perl-ver))
587 (tk-inc (string-append
588 (assoc-ref inputs "perl-tk")
589 "/lib/perl5/site_perl/" perl-ver
593 `("PERL5LIB" ":" prefix (,x11-inc ,tk-inc)))))
595 ;; The clusterssh.sourceforge.net address requires login to view
596 (home-page "http://sourceforge.net/projects/clusterssh/")
597 (synopsis "Secure concurrent multi-server terminal control")
599 "ClusterSSH controls a number of xterm windows via a single graphical
600 console window to allow commands to be interactively run on multiple servers
601 over ssh connections.")
602 (license license:gpl2+)))
604 (define-public rottlog
610 (uri (string-append "mirror://gnu/rottlog/rottlog-"
614 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
615 (modules '((guix build utils)))
617 '(substitute* "Makefile.in"
618 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
619 ;; Don't try to chown root.
621 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
622 ;; Don't attempt to create /var/lib/rottlog.
624 (build-system gnu-build-system)
626 '(#:configure-flags (list (string-append "ROTT_ETCDIR="
627 (assoc-ref %outputs "out")
629 "--localstatedir=/var")
630 #:phases (alist-cons-after
631 'install 'install-info
633 (zero? (system* "make" "install-info")))
635 (native-inputs `(("texinfo" ,texinfo)
636 ("util-linux" ,util-linux))) ; for 'cal'
637 (home-page "http://www.gnu.org/software/rottlog/")
638 (synopsis "Log rotation and management")
640 "GNU Rot[t]log is a program for managing log files. It is used to
641 automatically rotate out log files when they have reached a given size or
642 according to a given schedule. It can also be used to automatically compress
643 and archive such logs. Rot[t]log will mail reports of its activity to the
644 system administrator.")
645 (license license:gpl3+)))
654 (list (string-append "http://www.sudo.ws/sudo/dist/sudo-"
656 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
660 "0263gi6i19fyzzc488n0qw3m518i39f6a7qmrfvahk9j10bkh5j3"))))
661 (build-system gnu-build-system)
664 (list "--with-logpath=/var/log/sudo.log"
665 "--with-rundir=/run/sudo"
666 "--with-vardir=/var/db/sudo"
667 "--with-iologdir=/var/log/sudo-io"
669 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
671 (string-append "CPPFLAGS=-D_PATH_MV='\""
672 (assoc-ref %build-inputs "coreutils")
674 #:phases (alist-cons-before
675 'configure 'pre-configure
677 (substitute* "src/sudo_usage.h.in"
678 ;; Do not capture 'configure' arguments since we would
679 ;; unduly retain references, and also because the
680 ;; CPPFLAGS above would close the string literal
682 (("@CONFIGURE_ARGS@") "\"\""))
683 (substitute* (find-files "." "Makefile\\.in")
684 (("-o [[:graph:]]+ -g [[:graph:]]+")
685 ;; Allow installation as non-root.
687 (("^install: (.*)install-sudoers(.*)" _ before after)
688 ;; Don't try to create /etc/sudoers.
689 (string-append "install: " before after "\n"))
690 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
691 ;; Don't try to create /run/sudo.
693 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
694 ;; Don't try to create /var/db/sudo.
698 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
699 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
703 ("linux-pam" ,linux-pam)
704 ("coreutils" ,coreutils)))
705 (home-page "http://www.sudo.ws/")
706 (synopsis "Run commands as root")
708 "Sudo (su \"do\") allows a system administrator to delegate authority to
709 give certain users (or groups of users) the ability to run some (or all)
710 commands as root or another user while providing an audit trail of the
711 commands and their arguments.")
713 ;; See <http://www.sudo.ws/sudo/license.html>.
714 (license license:x11)))
716 (define-public wpa-supplicant-minimal
718 (name "wpa-supplicant-minimal")
723 "http://w1.fi/releases/wpa_supplicant-"
728 "05mkp5bx1c3z7h5biddsv0p49gkrq9ksany3anp4wdiv92p5prfc"))
730 (map search-patch '("wpa-supplicant-CVE-2015-5310.patch"
731 "wpa-supplicant-CVE-2015-5314.patch"
732 "wpa-supplicant-CVE-2015-5315.patch"
733 "wpa-supplicant-CVE-2015-5316.patch")))))
734 (build-system gnu-build-system)
736 '(#:phases (alist-replace
738 (lambda* (#:key outputs #:allow-other-keys)
739 (chdir "wpa_supplicant")
740 (copy-file "defconfig" ".config")
741 (let ((port (open-file ".config" "al")))
743 CONFIG_DEBUG_SYSLOG=y
745 # Choose GnuTLS (the default is OpenSSL.)
748 CONFIG_DRIVER_NL80211=y
749 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
751 CONFIG_READLINE=y\n" port)
755 'install 'install-man-pages
756 (lambda* (#:key outputs #:allow-other-keys)
757 (let* ((out (assoc-ref outputs "out"))
758 (man (string-append out "/share/man"))
759 (man5 (string-append man "/man5"))
760 (man8 (string-append man "/man8")))
761 (define (copy-man-page target)
764 (string-append target "/"
767 (mkdir-p man5) (mkdir man8)
768 (for-each (copy-man-page man5)
769 (find-files "doc/docbook" "\\.5"))
770 (for-each (copy-man-page man8)
771 (find-files "doc/docbook" "\\.8"))
775 #:make-flags (list "CC=gcc"
776 (string-append "BINDIR=" (assoc-ref %outputs "out")
778 (string-append "LIBDIR=" (assoc-ref %outputs "out")
782 `(("readline" ,readline)
785 ("libgcrypt" ,libgcrypt))) ;needed by crypto_gnutls.c
787 `(("pkg-config" ,pkg-config)))
788 (home-page "http://w1.fi/wpa_supplicant/")
789 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
791 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
792 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
793 the client stations. It implements key negotiation with a WPA Authenticator
794 and it controls the roaming and IEEE 802.11 authentication/association of the
797 This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
799 ;; In practice, this is linked against Readline, which makes it GPLv3+.
800 (license license:bsd-3)))
802 (define-public wpa-supplicant
803 (package (inherit wpa-supplicant-minimal)
804 (name "wpa-supplicant")
805 (inputs `(("dbus" ,dbus)
806 ,@(package-inputs wpa-supplicant-minimal)))
808 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
811 'configure 'configure-for-dbus
813 (let ((port (open-file ".config" "al")))
815 CONFIG_CTRL_IFACE_DBUS=y
816 CONFIG_CTRL_IFACE_DBUS_NEW=y
817 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
821 'install-man-pages 'install-dbus-conf
822 (lambda* (#:key outputs #:allow-other-keys)
823 (let* ((out (assoc-ref outputs "out"))
824 (dir (string-append out "/etc/dbus-1/system.d")))
826 (copy-file "dbus/dbus-wpa_supplicant.conf"
827 (string-append dir "/wpa_supplicant.conf"))))
830 (define-public wakelan
837 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
841 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
842 (build-system gnu-build-system)
844 '(#:phases (alist-replace
846 (lambda* (#:key outputs #:allow-other-keys)
847 (let ((out (assoc-ref outputs "out")))
848 (mkdir-p (string-append out "/bin"))
849 (mkdir-p (string-append out "/share/man/man1"))
851 ;; It's an old configure script that doesn't understand
852 ;; the extra options we pass.
853 (setenv "CONFIG_SHELL" (which "bash"))
855 (system* "./configure"
856 (string-append "--prefix=" out)
857 (string-append "--mandir=" out
861 (home-page "http://kernel.org") ; really, no home page
862 (synopsis "Send a wake-on-LAN packet")
864 "WakeLan broadcasts a properly formatted UDP packet across the local area
865 network, which causes enabled computers to power on.")
866 (license license:gpl2+)))
868 (define-public dmidecode
875 "mirror://savannah/dmidecode/dmidecode-"
879 "122hgaw8mpqdfra159lfl6pyk3837giqx6vq42j64fjnbl2z6gwi"))))
880 (build-system gnu-build-system)
882 '(#:phases (alist-delete 'configure %standard-phases)
883 #:tests? #f ; no 'check' target
884 #:make-flags (list (string-append "prefix="
885 (assoc-ref %outputs "out")))))
886 (home-page "http://www.nongnu.org/dmidecode/")
887 (synopsis "Read hardware information from the BIOS")
889 "Dmidecode reports information about your system's hardware as described
890 in your system BIOS according to the SMBIOS/DMI standard. This typically
891 includes system manufacturer, model name, serial number, BIOS version, asset
892 tag as well as a lot of other details of varying level of interest and
893 reliability depending on the manufacturer. This will often include usage
894 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
895 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
896 (license license:gpl2+)))
898 (define-public acpica
905 "https://acpica.org/sites/acpica/files/acpica-unix2-"
909 "0q1fjwkyw9x6gsva6fd0zbn7ly4fx0ha4853f416np9kf2irillw"))))
910 (build-system gnu-build-system)
911 (native-inputs `(("flex" ,flex)
914 '(#:make-flags (list (string-append "PREFIX=" %output)
916 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
917 #:tests? #f ; no 'check' target.
918 #:phases (alist-delete 'configure %standard-phases)))
919 (home-page "http://acpica.org/")
920 (synopsis "Tools for the development and debug of ACPI tables")
922 "The ACPI Component Architecture (ACPICA) project provides an
923 OS-independent reference implementation of the Advanced Configuration and
924 Power Interface Specification (ACPI). ACPICA code contains those portions of
925 ACPI meant to be directly integrated into the host OS as a kernel-resident
926 subsystem, and a small set of tools to assist in developing and debugging ACPI
927 tables. This package contains only the user-space tools needed for ACPI table
928 development, not the kernel implementation of ACPI.")
929 (license license:gpl2))) ; Dual GPLv2/ACPICA Licence
931 (define-public stress
937 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
938 version ".orig.tar.gz"))
941 "1v9vnzlihqfjsxa93hdbrq72pqqk00dkylmlg8jpxhm7s1w9qfl1"))))
942 (build-system gnu-build-system)
943 (home-page "http://packages.debian.org/wheezy/stress")
944 (synopsis "Impose load on and stress test a computer system")
946 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
947 or disk stress on a POSIX-compliant operating system and reports any errors it
950 Stress is not a benchmark. It is a tool used by system administrators to
951 evaluate how well their systems will scale, by kernel programmers to evaluate
952 perceived performance characteristics, and by systems programmers to expose
953 the classes of bugs which only or more frequently manifest themselves when the
954 system is under heavy load.")
955 (license license:gpl2+)))
963 (uri (string-append "mirror://sourceforge/detox/detox-"
967 "1y6vvjqsg54kl49cry73jbfhr04s7wjs779vrr9zrq6kww7dkymb"))))
968 (build-system gnu-build-system)
969 ;; Both flex and popt are used in this case for their runtime libraries
970 ;; (libfl and libpopt).
975 `(#:configure-flags `(,(string-append "--with-popt="
976 (assoc-ref %build-inputs "popt")))
977 #:tests? #f)) ;no 'check' target
978 (home-page "http://detox.sourceforge.net")
979 (synopsis "Clean up file names")
981 "Detox is a program that renames files to make them easier to work with
982 under Unix and related operating systems. Spaces and various other unsafe
983 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
984 characters can be replaced as well, as can UTF-8 characters.")
985 (license license:bsd-3)))
987 (define-public testdisk
993 (uri (string-append "http://www.cgsecurity.org/testdisk-"
997 "0v1jap83f5h99zv01v3qmqm160d36n4ysi0gyq7xzb3mqgmw75x5"))))
998 (build-system gnu-build-system)
1001 ("util-linux" ,util-linux)
1002 ("openssl" ,openssl)
1004 ("e2fsprogs" ,e2fsprogs)
1005 ("libjpeg" ,libjpeg)
1006 ("ncurses" ,ncurses)))
1007 (home-page "http://www.cgsecurity.org/wiki/TestDisk")
1008 (synopsis "Data recovery tool")
1010 "TestDisk is a program for data recovery, primarily designed to help
1011 recover lost partitions and/or make non-booting disks bootable again.")
1012 (license license:gpl2+)))
1021 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1024 (base32 "04kviw799qxly08zb8n5mgxfd96gyis6x69q2qiw86jnh87c4mv9"))))
1025 (build-system gnu-build-system)
1027 '(#:phases (alist-delete 'configure %standard-phases)
1028 #:tests? #f ; no check target
1029 #:make-flags (let ((out (assoc-ref %outputs "out")))
1030 (list (string-append "prefix=" out)))))
1031 (synopsis "Recursively list the contents of a directory")
1033 "Tree is a recursive directory listing command that produces a depth
1034 indented listing of files, which is colorized ala dircolors if the LS_COLORS
1035 environment variable is set and output is to tty.")
1036 (home-page "http://mama.indstate.edu/users/ice/tree/")
1037 (license license:gpl2+)))
1039 (define-public direvent
1045 (uri (string-append "mirror://gnu/direvent/direvent-"
1049 "1i14131y6m8wvirz6piw4zxz2q1kbpl0lniv5kl55rx4k372dg8z"))
1050 (modules '((guix build utils)))
1051 (snippet '(substitute* "tests/testsuite"
1052 (("#![[:blank:]]?/bin/sh")
1054 (build-system gnu-build-system)
1056 '(#:phases (alist-cons-before
1057 'build 'patch-/bin/sh
1058 (lambda* (#:key inputs #:allow-other-keys)
1059 ;; Use the right shell when executing the watcher.
1060 (let ((bash (assoc-ref inputs "bash")))
1061 (substitute* "src/direvent.c"
1063 (string-append "\"" bash "/bin/sh\"")))))
1065 (home-page "http://www.gnu.org/software/direvent/")
1066 (synopsis "Daemon to monitor directories for events such as file removal")
1068 "A daemon that monitors directories for events, such as creating,
1069 deleting or modifying files. It can monitor different sets of directories for
1070 different events. When an event is detected, direvent calls a specified
1071 external program with information about the event, such as the location
1072 within the file system where it occurred. Thus, \"direvent\" provides an
1073 easy way to react immediately if given files undergo changes, for example, to
1074 track changes in important system configuration files.")
1075 (license license:gpl3+)))
1077 (define-public libcap-ng
1084 "http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1088 "0ssvnh4cvhya0c1j6k6192zvqcq7nc0x01fb5nwhr0prfqr0i8j8"))))
1089 (build-system gnu-build-system)
1090 (inputs `(("python" ,python)))
1091 (home-page "http://people.redhat.com/sgrubb/libcap-ng/")
1092 (synopsis "Library for more easily working with POSIX capabilities")
1094 "The libcap-ng library is intended to make programming with POSIX
1095 capabilities easier than the traditional libcap library. It includes
1096 utilities that can analyse all currently running applications and print out
1097 any capabilities and whether or not it has an open ended bounding set. The
1098 included utilities are designed to let admins and developers spot apps from
1099 various ways that may be running with too much privilege.")
1100 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1101 (license (list license:lgpl2.1+ license:gpl2+))))
1103 (define-public smartmontools
1105 (name "smartmontools")
1110 "mirror://sourceforge/smartmontools/smartmontools/"
1111 version "/smartmontools-" version ".tar.gz"))
1114 "06gy71jh2d3gcfmlbbrsqw7215knkfq59q3j6qdxfrar39fhcxx7"))))
1115 (build-system gnu-build-system)
1116 (inputs `(("libcap-ng" ,libcap-ng)))
1117 (home-page "http://www.smartmontools.org/")
1118 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1120 "The smartmontools package contains utility programs to control and
1121 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1122 Technology System (S.M.A.R.T.) built into most modern ATA and SCSI harddisks.
1123 In many cases, these utilities will provide advanced warning of disk
1124 degradation and failure.")
1125 (license license:gpl2+)))
1127 (define-public fdupes
1135 "https://github.com/adrianlopezroche/fdupes/archive/fdupes-"
1139 "11j96vxl9vg3jsnxqxskrv3gad6dh7hz2zpyc8n31xzyxka1c7kn"))))
1140 (build-system gnu-build-system)
1142 '(#:phases (alist-delete 'configure %standard-phases)
1143 #:tests? #f ; no 'check' target
1144 #:make-flags (list (string-append "PREFIX="
1145 (assoc-ref %outputs "out")))))
1146 (home-page "https://github.com/adrianlopezroche/fdupes")
1147 (synopsis "Identify duplicate files")
1149 "fdupes is a program for identifying duplicate files residing within
1150 specified directories.")
1151 (license license:expat)))
1153 (define-public graphios
1161 "https://pypi.python.org/packages/source/g/graphios/graphios-"
1165 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1166 (build-system python-build-system)
1168 ;; Be warned: Building with Python 3 succeeds, but the build process
1169 ;; throws a syntax error that is ignored.
1170 `(#:python ,python-2
1172 (modify-phases %standard-phases
1173 (add-before 'build 'fix-setup.py
1174 (lambda* (#:key outputs #:allow-other-keys)
1175 ;; Fix hardcoded, unprefixed file names.
1176 (let ((out (assoc-ref outputs "out")))
1177 (substitute* '("setup.py")
1178 (("/etc") (string-append out "/etc"))
1180 (("distro_ver = .*") "distro_ver = ''"))
1183 `(("python-setuptools" ,python2-setuptools)))
1184 (home-page "https://github.com/shawn-sterling/graphios")
1185 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1187 "Graphios is a script to emit nagios perfdata to various upstream metrics
1188 processing and time-series systems. It's currently compatible with Graphite,
1189 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1190 of supported upstream metrics systems simultaneously.")
1191 (license license:gpl2+)))
1193 (define-public ansible
1201 "https://pypi.python.org/packages/source/a/ansible/ansible-"
1206 "007fzgsqaahb0y4gjdxxmir9kcni7wph2z14jhqgpz88idrz8pn2"))))
1207 (build-system python-build-system)
1209 `(("python2-setuptools" ,python2-setuptools)
1210 ("python2-pycrypto" ,python2-pycrypto)
1211 ("python2-httplib2" ,python2-httplib2)
1212 ("python2-passlib" ,python2-passlib)
1213 ("python2-nose" ,python2-nose)
1214 ("python2-mock" ,python2-mock)
1215 ("python2-jinja2" ,python2-jinja2)
1216 ("python2-pyyaml" ,python2-pyyaml)
1217 ("python2-paramiko" ,python2-paramiko)))
1219 `(("python2-pycrypto" ,python2-pycrypto)
1220 ("python2-jinja2" ,python2-jinja2)
1221 ("python2-pyyaml" ,python2-pyyaml)
1222 ("python2-paramiko" ,python2-paramiko)))
1224 `(#:python ,python-2)) ; incompatible with Python 3
1225 (home-page "http://ansible.com/")
1226 (synopsis "Radically simple IT automation")
1227 (description "Ansible is a radically simple IT automation system. It
1228 handles configuration-management, application deployment, cloud provisioning,
1229 ad-hoc task-execution, and multinode orchestration - including trivializing
1230 things like zero downtime rolling updates with load balancers.")
1231 (license license:gpl3+)))