packages: Add 'armhf-linux' to '%hydra-supported-systems'.
[jackhill/guix/guix.git] / gnu / packages / admin.scm
CommitLineData
233e7676 1;;; GNU Guix --- Functional package management for GNU
61bdd0d8 2;;; Copyright © 2012, 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
340c7033 3;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
9a727700 4;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
87216303 5;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
da6c3749 6;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
15926aec 7;;; Copyright © 2015 Alex Sassmannshausen <alex.sassmannshausen@gmail.com>
8d801045 8;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
1df895b0 9;;;
233e7676 10;;; This file is part of GNU Guix.
1df895b0 11;;;
233e7676 12;;; GNU Guix is free software; you can redistribute it and/or modify it
1df895b0
LC
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.
16;;;
233e7676 17;;; GNU Guix is distributed in the hope that it will be useful, but
1df895b0
LC
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.
21;;;
22;;; You should have received a copy of the GNU General Public License
233e7676 23;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
1df895b0 24
4aeea896 25(define-module (gnu packages admin)
f61e0e79 26 #:use-module ((guix licenses) #:prefix license:)
1df895b0 27 #:use-module (guix packages)
4fb7e0de 28 #:use-module (guix utils)
1df895b0 29 #:use-module (guix download)
aaff68ee 30 #:use-module (guix git-download)
fbc1a58f 31 #:use-module (guix build-system cmake)
1df895b0 32 #:use-module (guix build-system gnu)
4ecfbda7 33 #:use-module (guix build-system python)
c773aba8 34 #:use-module (guix build-system trivial)
59a43334 35 #:use-module (gnu packages)
c73d4c92 36 #:use-module (gnu packages base)
9a9e72d5 37 #:use-module (gnu packages ncurses)
9927622f 38 #:use-module (gnu packages readline)
f15164e7
LC
39 #:use-module (gnu packages linux)
40 #:use-module (gnu packages guile)
1dba6407 41 #:use-module (gnu packages gettext)
c73d4c92 42 #:use-module (gnu packages perl)
87216303 43 #:use-module (gnu packages tcl)
f61e0e79 44 #:use-module (gnu packages compression)
a7fd7b68 45 #:use-module (gnu packages tls)
61bdd0d8 46 #:use-module (gnu packages gnupg)
02c86a5e
LC
47 #:use-module (gnu packages bison)
48 #:use-module (gnu packages flex)
49 #:use-module (gnu packages glib)
87216303 50 #:use-module (gnu packages pkg-config)
b36fcf95 51 #:use-module (gnu packages popt)
fccf2fe0 52 #:use-module (gnu packages texinfo)
e1485c7b 53 #:use-module (gnu packages groff)
42dc3af5
MW
54 #:use-module (gnu packages pciutils)
55 #:use-module (gnu packages libusb)
56 #:use-module (gnu packages libftdi)
c4492a16 57 #:use-module (gnu packages image)
da6c3749 58 #:use-module (gnu packages xorg)
d525da85
LC
59 #:use-module (gnu packages python)
60 #:use-module (gnu packages man))
f15164e7
LC
61
62(define-public dmd
4006fd87
LC
63 (let ((base-version "0.2")
64 (patch-level "01"))
65 (package
66 (name "dmd")
67 (version (string-append base-version "." patch-level))
68 (source (origin
69 (method url-fetch)
70 (uri (string-append "ftp://alpha.gnu.org/gnu/dmd/dmd-"
71 base-version ".tar.gz"))
72 (sha256
73 (base32
74 "10fl4k96f17gqx2fv8iw9c61ld26gsk4bbrlfqckdmiimz1k175z"))
75 (patches
76 (list (origin
77 ;; This patch augments 'make-fork+exec-constructor' and
78 ;; is used by a bunch of services.
79 (method url-fetch)
80 (uri (string-append
81 "http://git.savannah.gnu.org/cgit/dmd.git/patch/"
82 "?id=d1d0ff30b3ed2b86b0a3c9bc048d2a855f8e31e6"))
83 (sha256
84 (base32
85 "1lqymypixfiyb72d6bn24m06ry2q1ljnnv0qrc89pbb4z9azaa4d"))
86 (file-name "dmd-user-group.patch"))))))
87 (build-system gnu-build-system)
88 (arguments
89 '(#:configure-flags '("--localstatedir=/var")))
90 (native-inputs `(("pkg-config" ,pkg-config)))
91 (inputs `(("guile" ,guile-2.0)))
92 (synopsis "Daemon managing daemons")
93 (description
94 "GNU DMD is a daemon-managing daemon, meaning that it manages the
79c311b8
LC
95execution of system services, replacing similar functionality found in
96typical init systems. It provides dependency-handling through a convenient
97interface and is based on GNU Guile.")
4006fd87
LC
98 (license license:gpl3+)
99 (home-page "http://www.gnu.org/software/dmd/"))))
1df895b0 100
fbc1a58f
CR
101(define-public dfc
102 (package
103 (name "dfc")
180d7ac1 104 (version "3.0.4")
fbc1a58f
CR
105 (source
106 (origin
107 (method url-fetch)
108 (uri (string-append
180d7ac1 109 "http://projects.gw-computing.net/attachments/download/79/dfc-"
fbc1a58f
CR
110 version ".tar.gz"))
111 (sha256
112 (base32
180d7ac1 113 "0zk1ppx93ijimf4sbgqilxxikpsa2gmpbynknyh41xy7jbdjxp0b"))))
fbc1a58f
CR
114 (build-system cmake-build-system)
115 (arguments '(#:tests? #f)) ; There are no tests.
1dba6407 116 (native-inputs `(("gettext" ,gnu-gettext)))
fbc1a58f
CR
117 (home-page "http://projects.gw-computing.net/projects/dfc")
118 (synopsis "Display file system space usage using graphs and colors")
119 (description
120 "dfc (df color) is a modern version of df. It uses colors, draws pretty
121graphs and can export its output to different formats.")
f61e0e79 122 (license license:bsd-3)))
fbc1a58f 123
340c7033
CR
124(define-public htop
125 (package
126 (name "htop")
da891830 127 (version "1.0.3")
340c7033
CR
128 (source (origin
129 (method url-fetch)
20e6c852 130 (uri (string-append "http://hisham.hm/htop/releases/"
340c7033
CR
131 version "/htop-" version ".tar.gz"))
132 (sha256
133 (base32
da891830 134 "0a8qbpsifzjwc4f45xfwm48jhm59g6q5hlib4bf7z13mgy95fp05"))))
340c7033
CR
135 (build-system gnu-build-system)
136 (inputs
137 `(("ncurses" ,ncurses)))
138 (home-page "http://htop.sourceforge.net/")
139 (synopsis "Interactive process viewer")
140 (description
141 "This is htop, an interactive process viewer. It is a text-mode
142application (for console or X terminals) and requires ncurses.")
f61e0e79 143 (license license:gpl2)))
340c7033 144
1df895b0
LC
145(define-public pies
146 (package
147 (name "pies")
148 (version "1.2")
149 (source
150 (origin
151 (method url-fetch)
152 (uri (string-append "mirror://gnu/pies/pies-"
153 version ".tar.bz2"))
154 (sha256
155 (base32
156 "18w0dbg77i56cx1bwa789w0qi3l4xkkbascxcv2b6gbm0zmjg1g6"))))
157 (build-system gnu-build-system)
158 (home-page "http://www.gnu.org/software/pies/")
f50d2669 159 (synopsis "Program invocation and execution supervisor")
1df895b0 160 (description
79c311b8 161 "GNU pies is a program that supervises the invocation and execution of
a22dc0c4
LC
162other programs. It reads the list of programs to be started from its
163configuration file, executes them, and then monitors their status,
164re-executing them as necessary.")
f61e0e79 165 (license license:gpl3+)))
1df895b0
LC
166
167(define-public inetutils
168 (package
169 (name "inetutils")
8b1c8e4e 170 (version "1.9.4")
01eafd38
LC
171 (source (origin
172 (method url-fetch)
173 (uri (string-append "mirror://gnu/inetutils/inetutils-"
174 version ".tar.gz"))
175 (sha256
176 (base32
8b1c8e4e 177 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
1df895b0 178 (build-system gnu-build-system)
01eafd38 179 (arguments `(;; FIXME: `tftp.sh' relies on `netstat' from utils-linux,
1df895b0
LC
180 ;; which is currently missing.
181 #:tests? #f))
9927622f
LC
182 (inputs `(("ncurses" ,ncurses)
183 ("readline" ,readline))) ; for 'ftp'
1df895b0 184 (home-page "http://www.gnu.org/software/inetutils/")
f50d2669 185 (synopsis "Basic networking utilities")
1df895b0 186 (description
a22dc0c4
LC
187 "Inetutils is a collection of common network programs, such as an ftp
188client and server, a telnet client and server, and an rsh client and server.")
f61e0e79 189 (license license:gpl3+)))
9a9e72d5
LC
190
191(define-public shadow
192 (package
193 (name "shadow")
ca2a55d4 194 (version "4.2.1")
9a9e72d5 195 (source (origin
ca2a55d4
SB
196 (method url-fetch)
197 (uri (string-append
198 "http://pkg-shadow.alioth.debian.org/releases/"
199 name "-" version ".tar.xz"))
200 (sha256
201 (base32
202 "0h9x1zdbq0pqmygmc1x459jraiqw4gqz8849v268crk78z8r621v"))))
9a9e72d5
LC
203 (build-system gnu-build-system)
204 (arguments
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")
208
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"
215 (("/usr/sbin/nscd")
216 (string-append libc "/sbin/nscd")))))
217 (alist-cons-after
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"))
ca2a55d4 223 (man (string-append out "/share/man")))
9a9e72d5
LC
224 (delete-file (string-append bin "/groups"))
225 (for-each delete-file (find-files man "^groups\\."))
226 #t))
8d846470 227 %standard-phases))))
9a9e72d5
LC
228
229 (inputs (if (string-suffix? "-linux"
230 (or (%current-target-system)
231 (%current-system)))
232 `(("linux-pam" ,linux-pam))
233 '()))
234 (home-page "http://pkg-shadow.alioth.debian.org/")
235 (synopsis "Authentication-related tools such as passwd, su, and login")
236 (description
237 "Shadow provides a number of authentication-related tools, including:
238login, passwd, su, groupadd, and useradd.")
239
240 ;; The `vipw' program is GPLv2+.
241 ;; libmisc/salt.c is public domain.
f61e0e79 242 (license license:bsd-3)))
1e151896
LC
243
244(define-public mingetty
245 (package
246 (name "mingetty")
247 (version "1.08")
248 (source (origin
249 (method url-fetch)
250 (uri (string-append "mirror://sourceforge/mingetty/mingetty-"
251 version ".tar.gz"))
252 (sha256
253 (base32
254 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
255 (build-system gnu-build-system)
256 (arguments
257 `(#:phases (alist-replace 'configure
258 (lambda* (#:key inputs outputs
259 #:allow-other-keys)
260 (let* ((out (assoc-ref outputs "out"))
261 (man8 (string-append
262 out "/share/man/man8"))
263 (sbin (string-append out "/sbin"))
264 (shadow (assoc-ref inputs "shadow"))
265 (login (string-append shadow
266 "/bin/login")))
267 (substitute* "Makefile"
268 (("^SBINDIR.*")
269 (string-append "SBINDIR = " out
270 "/sbin\n"))
271 (("^MANDIR.*")
272 (string-append "MANDIR = " out
273 "/share/man/man8\n")))
274
275 ;; Pick the right 'login' by default.
276 (substitute* "mingetty.c"
277 (("\"/bin/login\"")
278 (string-append "\"" login "\"")))
279
280 (mkdir-p sbin)
281 (mkdir-p man8)))
282 %standard-phases)
283 #:tests? #f)) ; no tests
284 (inputs `(("shadow" ,shadow)))
285
286 (home-page "http://sourceforge.net/projects/mingetty")
287 (synopsis "Getty for the text console")
288 (description
289 "Small console getty that is started on the Linux text console,
290asks for a login name and then transfers over to 'login'. It is extended to
291allow automatic login and starting any app.")
f61e0e79 292 (license license:gpl2+)))
c773aba8
LC
293
294(define-public net-base
295 (package
296 (name "net-base")
db719df7 297 (version "5.3")
c773aba8
LC
298 (source (origin
299 (method url-fetch)
300 (uri (string-append
34af3684 301 "mirror://debian/pool/main/n/netbase/netbase_"
db719df7 302 version ".tar.xz"))
c773aba8
LC
303 (sha256
304 (base32
db719df7 305 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
c773aba8
LC
306 (build-system trivial-build-system)
307 (arguments
308 `(#:modules ((guix build utils))
309 #:builder (begin
310 (use-modules (guix build utils)
311 (srfi srfi-26))
312
313 (let* ((source (assoc-ref %build-inputs "source"))
314 (tar (assoc-ref %build-inputs "tar"))
db719df7 315 (xz (assoc-ref %build-inputs "xz"))
c773aba8
LC
316 (output (assoc-ref %outputs "out"))
317 (etc (string-append output "/etc")))
db719df7 318 (setenv "PATH" (string-append xz "/bin"))
c773aba8
LC
319 (system* (string-append tar "/bin/tar") "xvf"
320 source)
321 (chdir ,(string-append "netbase-" version))
322 (mkdir-p etc)
323 (for-each copy-file
324 '("etc-services" "etc-protocols" "etc-rpc")
325 (map (cut string-append etc "/" <>)
326 '("services" "protocols" "rpc")))
327 #t))))
328 (native-inputs `(("tar" ,tar)
f61e0e79 329 ("xz" ,xz)))
c773aba8
LC
330 (synopsis "IANA protocol, port, and RPC number assignments")
331 (description
332 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
333files, which contain information about the IANA-assigned port, protocol, and
e881752c 334ONC RPC numbers.")
c773aba8 335 (home-page "http://packages.debian.org/sid/netbase")
f61e0e79 336 (license license:gpl2)))
94c4a58a
LC
337
338(define-public netcat
339 (package
340 (name "netcat")
341 (version "0.7.1")
342 (source (origin
343 (method url-fetch)
344 (uri (string-append "mirror://sourceforge/netcat/netcat-"
345 version ".tar.bz2"))
346 (sha256
347 (base32
348 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
349 (build-system gnu-build-system)
0e4e89c2
MW
350 (arguments
351 `(#:configure-flags
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")))))
94c4a58a
LC
357 (home-page "http://netcat.sourceforge.net")
358 (synopsis "Read and write data over TCP/IP")
359 (description
360 "Netcat is a featured networking utility which reads and writes data
361across network connections, using the TCP/IP protocol. It is designed to be a
362reliable \"back-end\" tool that can be used directly or easily driven by other
35b9e423 363programs and scripts. At the same time, it is a feature-rich network debugging
94c4a58a
LC
364and exploration tool, since it can create almost any kind of connection you
365would need and has several interesting built-in capabilities.")
f61e0e79 366 (license license:gpl2+)))
d038cac1
LC
367
368(define-public alive
369 (package
370 (name "alive")
371 (version "2.0.2")
372 (source (origin
373 (method url-fetch)
374 (uri (string-append "mirror://gnu/alive/alive-"
375 version ".tar.xz"))
376 (sha256
377 (base32
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")
385 (description
386 "GNU Alive sends periodic pings to a server, generally to keep a
387connection alive.")
f61e0e79 388 (license license:gpl3+)))
c73d4c92
LC
389
390(define-public isc-dhcp
391 (package
392 (name "isc-dhcp")
447ce591 393 (version "4.3.1")
c73d4c92
LC
394 (source (origin
395 (method url-fetch)
396 (uri (string-append "http://ftp.isc.org/isc/dhcp/"
397 version "/dhcp-" version ".tar.gz"))
398 (sha256
399 (base32
447ce591 400 "1w4s7sni1m9223ya8m2a64lr62845c6xlraprjf8zfx6lylbqv16"))))
c73d4c92
LC
401 (build-system gnu-build-system)
402 (arguments
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"
413 "\"\n"))))
414
415 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
416 ;; we must patch shebangs in there and make sure the right
417 ;; shell is used.
418 (with-directory-excursion "bind"
419 (substitute* "Makefile"
420 (("\\./configure")
421 (let ((sh (which "sh")))
422 (string-append "./configure CONFIG_SHELL="
423 sh " SHELL=" sh))))
424
425 (system* "tar" "xf" "bind.tar.gz")
426 (for-each patch-shebang
447ce591 427 (find-files "bind-9.9.5-P1" ".*"))
c73d4c92 428 (zero? (system* "tar" "cf" "bind.tar.gz"
c09e6a5f
MW
429 "bind-9.9.5-P1"
430 ;; avoid non-determinism in the archive
431 "--mtime=@0"
432 "--owner=root:0"
433 "--group=root:0"))))
c73d4c92
LC
434 (alist-cons-after
435 'install 'post-install
436 (lambda* (#:key inputs outputs #:allow-other-keys)
437 ;; Install the dhclient script for GNU/Linux and make sure
438 ;; if finds all the programs it needs.
439 (let* ((out (assoc-ref outputs "out"))
440 (libexec (string-append out "/libexec"))
441 (coreutils (assoc-ref inputs "coreutils"))
94c43007 442 (inetutils (assoc-ref inputs "inetutils"))
c73d4c92
LC
443 (net-tools (assoc-ref inputs "net-tools"))
444 (sed (assoc-ref inputs "sed")))
445 (substitute* "client/scripts/linux"
446 (("/sbin/ip")
447 (string-append (assoc-ref inputs "iproute")
448 "/sbin/ip")))
449
450 (mkdir-p libexec)
451 (copy-file "client/scripts/linux"
452 (string-append libexec "/dhclient-script"))
453
94c43007
MW
454 (wrap-program
455 (string-append libexec "/dhclient-script")
456 `("PATH" ":" prefix
457 ,(map (lambda (dir)
458 (string-append dir "/bin:"
459 dir "/sbin"))
460 (list inetutils net-tools coreutils sed))))))
c73d4c92
LC
461 %standard-phases))))
462
463 (native-inputs `(("perl" ,perl)))
464
94c43007
MW
465 (inputs `(("inetutils" ,inetutils)
466 ("net-tools" ,net-tools)
dc343935
LC
467 ("iproute" ,iproute)
468
469 ;; When cross-compiling, we need the cross Coreutils and sed.
470 ;; Otherwise just use those from %FINAL-INPUTS.
471 ,@(if (%current-target-system)
472 `(("coreutils" ,coreutils)
473 ("sed" ,sed))
474 '())))
c73d4c92
LC
475
476 (home-page "http://www.isc.org/products/DHCP/")
477 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
478 (description
479 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
480reference implementation of all aspects of DHCP, through a suite of DHCP
481tools: server, client, and relay agent.")
f61e0e79 482 (license license:isc)))
02c86a5e
LC
483
484(define-public libpcap
485 (package
486 (name "libpcap")
487 (version "1.5.3")
488 (source (origin
489 (method url-fetch)
490 (uri (string-append "http://www.tcpdump.org/release/libpcap-"
491 version ".tar.gz"))
492 (sha256
493 (base32
494 "14wyjywrdi1ikaj6yc9c72m6m2r64z94lb0gm7k1a3q6q5cj3scs"))))
495 (build-system gnu-build-system)
496 (native-inputs `(("bison" ,bison) ("flex" ,flex)))
e03f6d5e
RW
497 (arguments '(#:configure-flags '("--with-pcap=linux")
498 #:tests? #f)) ; no 'check' target
02c86a5e
LC
499 (home-page "http://www.tcpdump.org")
500 (synopsis "Network packet capture library")
501 (description
502 "libpcap is an interface for user-level packet capture. It provides a
503portable framework for low-level network monitoring. Applications include
504network statistics collection, security monitoring, network debugging, etc.")
505
506 ;; fad-*.c and a couple other files are BSD-4, but the rest is BSD-3.
f61e0e79 507 (license license:bsd-3)))
02c86a5e 508
1da34f5a
LC
509(define-public tcpdump
510 (package
511 (name "tcpdump")
512 (version "4.5.1")
513 (source (origin
514 (method url-fetch)
515 (uri (string-append "http://www.tcpdump.org/release/tcpdump-"
516 version ".tar.gz"))
517 (sha256
518 (base32
519 "15hb7zkzd66nag102qbv100hcnf7frglbkylmr8adwr8f5jkkaql"))))
520 (build-system gnu-build-system)
10db1e6c 521 (inputs `(("libpcap" ,libpcap)
cc2b77df 522 ("openssl" ,openssl)))
1da34f5a 523 (native-inputs `(("perl" ,perl))) ; for tests
1da34f5a
LC
524 (home-page "http://www.tcpdump.org/")
525 (synopsis "Network packet analyzer")
526 (description
527 "Tcpdump is a command-line tool to analyze network traffic passing
528through the network interface controller.")
f61e0e79 529 (license license:bsd-3)))
1da34f5a 530
02c86a5e
LC
531(define-public jnettop
532 (package
533 (name "jnettop")
534 (version "0.13.0")
535 (source (origin
536 (method url-fetch)
537 (uri (string-append "http://jnettop.kubs.info/dist/jnettop-"
538 version ".tar.gz"))
539 (sha256
540 (base32
541 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
542 (build-system gnu-build-system)
543 (native-inputs
544 `(("pkg-config" ,pkg-config)))
545 (inputs
546 `(("glib" ,glib)
547 ("ncurses" ,ncurses)
548 ("libpcap" ,libpcap)))
549 (home-page "http://jnettop.kubs.info/")
550 (synopsis "Visualize network traffic by bandwidth use")
551 (description
552 "Jnettop is a traffic visualiser, which captures traffic going
553through the host it is running from and displays streams sorted
554by bandwidth they use.")
f61e0e79 555 (license license:gpl2+)))
87216303
EB
556
557(define-public clusterssh
558 (package
559 (name "clusterssh")
560 (version "3.28")
561 (source (origin
562 (method url-fetch)
563 (uri (string-append "mirror://sourceforge/clusterssh/"
564 "clusterssh-" version ".tar.gz"))
565 (sha256
566 (base32
567 "1bwggpvaj2al5blg1ynapviv2kpydffpzq2zkhi81najnvzc1rr7"))))
568 (build-system gnu-build-system)
569 (inputs `(("perl" ,perl)))
570 (propagated-inputs `(("xterm" ,xterm)
571 ("perl-tk" ,perl-tk)
572 ("perl-x11-protocol" ,perl-x11-protocol)))
573 (arguments
574 `(#:phases
575 (alist-cons-after
576 'install 'set-load-paths
577 (lambda* (#:key inputs outputs #:allow-other-keys)
578 ;; Put the perl-tk and perl-x11-protocol modules in the perl inc
579 ;; path for PROG
580 (let* ((out (assoc-ref outputs "out"))
581 (prog (string-append out "/bin/cssh"))
582 (perl-ver ,(package-version perl))
583 (x11-inc (string-append
584 (assoc-ref inputs "perl-x11-protocol")
585 "/lib/perl5/site_perl/" perl-ver))
586 (tk-inc (string-append
587 (assoc-ref inputs "perl-tk")
588 "/lib/perl5/site_perl/" perl-ver
589 "/x86_64-linux")))
590 (wrap-program
591 prog
592 `("PERL5LIB" ":" prefix (,x11-inc ,tk-inc)))))
593 %standard-phases)))
594 ;; The clusterssh.sourceforge.net address requires login to view
595 (home-page "http://sourceforge.net/projects/clusterssh/")
596 (synopsis "Secure concurrent multi-server terminal control")
597 (description
598 "ClusterSSH controls a number of xterm windows via a single graphical
599console window to allow commands to be interactively run on multiple servers
600over ssh connections.")
f61e0e79 601 (license license:gpl2+)))
fccf2fe0
LC
602
603(define-public rottlog
604 (package
605 (name "rottlog")
606 (version "0.72.2")
607 (source (origin
608 (method url-fetch)
609 (uri (string-append "mirror://gnu/rottlog/rottlog-"
610 version ".tar.gz"))
611 (sha256
612 (base32
613 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
614 (modules '((guix build utils)))
615 (snippet
616 '(substitute* "Makefile.in"
617 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
618 ;; Don't try to chown root.
619 "")
620 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
621 ;; Don't attempt to create /var/lib/rottlog.
622 "true")))))
623 (build-system gnu-build-system)
624 (arguments
625 '(#:configure-flags (list (string-append "ROTT_ETCDIR="
626 (assoc-ref %outputs "out")
627 "/etc")
628 "--localstatedir=/var")
629 #:phases (alist-cons-after
630 'install 'install-info
631 (lambda _
632 (zero? (system* "make" "install-info")))
633 %standard-phases)))
634 (native-inputs `(("texinfo" ,texinfo)
635 ("util-linux" ,util-linux))) ; for 'cal'
636 (home-page "http://www.gnu.org/software/rottlog/")
637 (synopsis "Log rotation and management")
638 (description
639 "GNU Rot[t]log is a program for managing log files. It is used to
640automatically rotate out log files when they have reached a given size or
641according to a given schedule. It can also be used to automatically compress
642and archive such logs. Rot[t]log will mail reports of its activity to the
643system administrator.")
f61e0e79 644 (license license:gpl3+)))
e1485c7b
LC
645
646(define-public sudo
647 (package
648 (name "sudo")
a915ab6a 649 (version "1.8.10p3")
e1485c7b
LC
650 (source (origin
651 (method url-fetch)
652 (uri
653 (list (string-append "http://www.sudo.ws/sudo/dist/sudo-"
654 version ".tar.gz")
655 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
656 version ".tar.gz")))
657 (sha256
658 (base32
a915ab6a 659 "002l6h27pnhb77b65frhazbhknsxvrsnkpi43j7i0qw1lrgi7nkf"))))
e1485c7b
LC
660 (build-system gnu-build-system)
661 (arguments
e1626e3b
SB
662 `(#:configure-flags '("--with-logpath=/var/log/sudo.log"
663 "--with-rundir=/run/sudo"
664 "--with-vardir=/var/db/sudo"
665 "--with-iologdir=/var/log/sudo-io")
e1485c7b
LC
666 #:phases (alist-cons-before
667 'configure 'pre-configure
668 (lambda _
669 (substitute* "configure"
670 ;; Refer to the right executables.
671 (("/usr/bin/mv") (which "mv"))
672 (("/usr/bin/sh") (which "sh")))
673 (substitute* (find-files "." "Makefile\\.in")
674 (("-O [[:graph:]]+ -G [[:graph:]]+")
675 ;; Allow installation as non-root.
676 "")
677 (("^install: (.*)install-sudoers(.*)" _ before after)
678 ;; Don't try to create /etc/sudoers.
e1626e3b
SB
679 (string-append "install: " before after "\n"))
680 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
681 ;; Don't try to create /run/sudo.
682 "$(TMPDIR)/dummy")
683 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
684 ;; Don't try to create /var/db/sudo.
685 "$(TMPDIR)/dummy")))
e1485c7b
LC
686 %standard-phases)
687
688 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
689 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
690 #:tests? #f))
691 (inputs
692 `(("groff" ,groff)
693 ("linux-pam" ,linux-pam)
694 ("coreutils" ,coreutils)))
695 (home-page "http://www.sudo.ws/")
696 (synopsis "Run commands as root")
697 (description
698 "Sudo (su \"do\") allows a system administrator to delegate authority to
699give certain users (or groups of users) the ability to run some (or all)
700commands as root or another user while providing an audit trail of the
701commands and their arguments.")
702
703 ;; See <http://www.sudo.ws/sudo/license.html>.
f61e0e79 704 (license license:x11)))
952298d7 705
4fb7e0de 706(define-public wpa-supplicant-light
952298d7 707 (package
4fb7e0de 708 (name "wpa-supplicant-light")
10d98240 709 (version "2.4")
952298d7
LC
710 (source (origin
711 (method url-fetch)
712 (uri (string-append
9a727700 713 "http://w1.fi/releases/wpa_supplicant-"
952298d7
LC
714 version
715 ".tar.gz"))
716 (sha256
717 (base32
10d98240 718 "08li21q1wjn5chrv289w666il9ah1w419y3dkq2rl4wnq0rci385"))
23d00fb0 719 (patches
d48c8e7b
MW
720 (map search-patch '("wpa-supplicant-CVE-2015-1863.patch"
721 "wpa-supplicant-2015-2-fix.patch"
722 "wpa-supplicant-2015-3-fix.patch"
723 "wpa-supplicant-2015-4-fix-pt1.patch"
724 "wpa-supplicant-2015-4-fix-pt2.patch"
725 "wpa-supplicant-2015-4-fix-pt3.patch"
726 "wpa-supplicant-2015-4-fix-pt4.patch"
9fb00f38
MW
727 "wpa-supplicant-2015-4-fix-pt5.patch"
728 "wpa-supplicant-2015-5-fix.patch")))))
952298d7
LC
729 (build-system gnu-build-system)
730 (arguments
731 '(#:phases (alist-replace
732 'configure
733 (lambda* (#:key outputs #:allow-other-keys)
734 (chdir "wpa_supplicant")
735 (copy-file "defconfig" ".config")
736 (let ((port (open-file ".config" "al")))
737 (display "
738 CONFIG_DEBUG_SYSLOG=y
40b4c6d6 739
61bdd0d8
LC
740 # Choose GnuTLS (the default is OpenSSL.)
741 CONFIG_TLS=gnutls
742
952298d7
LC
743 CONFIG_DRIVER_NL80211=y
744 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
745 CONFIG_LIBNL32=y
746 CONFIG_READLINE=y\n" port)
747 (close-port port)))
ffd74de0
LC
748
749 (alist-cons-after
750 'install 'install-man-pages
751 (lambda* (#:key outputs #:allow-other-keys)
752 (let* ((out (assoc-ref outputs "out"))
753 (man (string-append out "/share/man"))
754 (man5 (string-append man "/man5"))
755 (man8 (string-append man "/man8")))
756 (define (copy-man-page target)
757 (lambda (file)
758 (copy-file file
759 (string-append target "/"
760 (basename file)))))
761
762 (mkdir-p man5) (mkdir man8)
763 (for-each (copy-man-page man5)
764 (find-files "doc/docbook" "\\.5"))
765 (for-each (copy-man-page man8)
766 (find-files "doc/docbook" "\\.8"))
767 #t))
768 %standard-phases))
952298d7
LC
769
770 #:make-flags (list "CC=gcc"
771 (string-append "BINDIR=" (assoc-ref %outputs "out")
772 "/sbin")
773 (string-append "LIBDIR=" (assoc-ref %outputs "out")
774 "/lib"))
775 #:tests? #f))
776 (inputs
777 `(("readline" ,readline)
778 ("libnl" ,libnl)
61bdd0d8
LC
779 ("gnutls" ,gnutls)
780 ("libgcrypt" ,libgcrypt))) ;needed by crypto_gnutls.c
952298d7
LC
781 (native-inputs
782 `(("pkg-config" ,pkg-config)))
9a727700 783 (home-page "http://w1.fi/wpa_supplicant/")
952298d7
LC
784 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
785 (description
786 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
787802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
788the client stations. It implements key negotiation with a WPA Authenticator
789and it controls the roaming and IEEE 802.11 authentication/association of the
790WLAN driver.
791
792This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
793
794 ;; In practice, this is linked against Readline, which makes it GPLv3+.
f61e0e79 795 (license license:bsd-3)))
c6b76405 796
4fb7e0de
MW
797(define-public wpa-supplicant
798 (package (inherit wpa-supplicant-light)
799 (name "wpa-supplicant")
800 (inputs `(("dbus" ,dbus)
801 ,@(package-inputs wpa-supplicant-light)))
802 (arguments
803 (substitute-keyword-arguments (package-arguments wpa-supplicant-light)
804 ((#:phases phases)
6744aba8
MW
805 `(alist-cons-after
806 'configure 'configure-for-dbus
807 (lambda _
808 (let ((port (open-file ".config" "al")))
809 (display "
4fb7e0de
MW
810 CONFIG_CTRL_IFACE_DBUS=y
811 CONFIG_CTRL_IFACE_DBUS_NEW=y
812 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
6744aba8
MW
813 (close-port port))
814 #t)
815 (alist-cons-after
816 'install-man-pages 'install-dbus-conf
817 (lambda* (#:key outputs #:allow-other-keys)
818 (let* ((out (assoc-ref outputs "out"))
819 (dir (string-append out "/etc/dbus-1/system.d")))
820 (mkdir-p dir)
821 (copy-file "dbus/dbus-wpa_supplicant.conf"
822 (string-append dir "/wpa_supplicant.conf"))))
823 ,phases)))))))
4fb7e0de 824
c6b76405
LC
825(define-public wakelan
826 (package
827 (name "wakelan")
828 (version "1.1")
829 (source (origin
830 (method url-fetch)
831 (uri (string-append
832 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
833 version ".tar.gz"))
834 (sha256
835 (base32
836 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
837 (build-system gnu-build-system)
838 (arguments
839 '(#:phases (alist-replace
840 'configure
841 (lambda* (#:key outputs #:allow-other-keys)
842 (let ((out (assoc-ref outputs "out")))
843 (mkdir-p (string-append out "/bin"))
844 (mkdir-p (string-append out "/share/man/man1"))
845
846 ;; It's an old configure script that doesn't understand
847 ;; the extra options we pass.
848 (setenv "CONFIG_SHELL" (which "bash"))
849 (zero?
850 (system* "./configure"
851 (string-append "--prefix=" out)
852 (string-append "--mandir=" out
853 "/share/man")))))
854 %standard-phases)
855 #:tests? #f))
856 (home-page "http://kernel.org") ; really, no home page
857 (synopsis "Send a wake-on-LAN packet")
858 (description
859 "WakeLan broadcasts a properly formatted UDP packet across the local area
860network, which causes enabled computers to power on.")
f61e0e79 861 (license license:gpl2+)))
d43f4296
LC
862
863(define-public dmidecode
864 (package
865 (name "dmidecode")
866 (version "2.12")
867 (source (origin
868 (method url-fetch)
869 (uri (string-append
870 "mirror://savannah/dmidecode/dmidecode-"
871 version ".tar.bz2"))
872 (sha256
873 (base32
874 "122hgaw8mpqdfra159lfl6pyk3837giqx6vq42j64fjnbl2z6gwi"))))
875 (build-system gnu-build-system)
876 (arguments
877 '(#:phases (alist-delete 'configure %standard-phases)
878 #:tests? #f ; no 'check' target
879 #:make-flags (list (string-append "prefix="
880 (assoc-ref %outputs "out")))))
881 (home-page "http://www.nongnu.org/dmidecode/")
882 (synopsis "Read hardware information from the BIOS")
883 (description
884 "Dmidecode reports information about your system's hardware as described
885in your system BIOS according to the SMBIOS/DMI standard. This typically
886includes system manufacturer, model name, serial number, BIOS version, asset
887tag as well as a lot of other details of varying level of interest and
888reliability depending on the manufacturer. This will often include usage
889status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
890module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
f61e0e79 891 (license license:gpl2+)))
42dc3af5 892
13c8c2bf
MW
893(define-public acpica
894 (package
895 (name "acpica")
2036a648 896 (version "20150410")
13c8c2bf
MW
897 (source (origin
898 (method url-fetch)
899 (uri (string-append
900 "https://acpica.org/sites/acpica/files/acpica-unix2-"
901 version ".tar.gz"))
902 (sha256
903 (base32
2036a648 904 "0q1fjwkyw9x6gsva6fd0zbn7ly4fx0ha4853f416np9kf2irillw"))))
13c8c2bf
MW
905 (build-system gnu-build-system)
906 (native-inputs `(("flex" ,flex)
907 ("bison" ,bison)))
908 (arguments
909 '(#:make-flags (list (string-append "PREFIX=" %output)
910 "HOST=_LINUX"
911 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
912 #:tests? #f ; no 'check' target.
913 #:phases (alist-delete 'configure %standard-phases)))
914 (home-page "http://acpica.org/")
35b9e423 915 (synopsis "Tools for the development and debug of ACPI tables")
13c8c2bf
MW
916 (description
917 "The ACPI Component Architecture (ACPICA) project provides an
918OS-independent reference implementation of the Advanced Configuration and
919Power Interface Specification (ACPI). ACPICA code contains those portions of
920ACPI meant to be directly integrated into the host OS as a kernel-resident
921subsystem, and a small set of tools to assist in developing and debugging ACPI
922tables. This package contains only the user-space tools needed for ACPI table
923development, not the kernel implementation of ACPI.")
f61e0e79 924 (license license:gpl2))) ; Dual GPLv2/ACPICA Licence
4cf7bd2b
MW
925
926(define-public stress
927 (package
928 (name "stress")
929 (version "1.0.1")
930 (source (origin
931 (method url-fetch)
932 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
933 version ".orig.tar.gz"))
934 (sha256
935 (base32
936 "1v9vnzlihqfjsxa93hdbrq72pqqk00dkylmlg8jpxhm7s1w9qfl1"))))
937 (build-system gnu-build-system)
938 (home-page "http://packages.debian.org/wheezy/stress")
9e771e3b 939 (synopsis "Impose load on and stress test a computer system")
4cf7bd2b 940 (description
35b9e423 941 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
4cf7bd2b
MW
942or disk stress on a POSIX-compliant operating system and reports any errors it
943detects.
944
35b9e423 945Stress is not a benchmark. It is a tool used by system administrators to
4cf7bd2b
MW
946evaluate how well their systems will scale, by kernel programmers to evaluate
947perceived performance characteristics, and by systems programmers to expose
948the classes of bugs which only or more frequently manifest themselves when the
949system is under heavy load.")
f61e0e79 950 (license license:gpl2+)))
b36fcf95
EB
951
952(define-public detox
953 (package
954 (name "detox")
955 (version "1.2.0")
956 (source (origin
957 (method url-fetch)
958 (uri (string-append "mirror://sourceforge/detox/detox-"
959 version ".tar.bz2"))
960 (sha256
961 (base32
962 "1y6vvjqsg54kl49cry73jbfhr04s7wjs779vrr9zrq6kww7dkymb"))))
963 (build-system gnu-build-system)
964 ;; Both flex and popt are used in this case for their runtime libraries
965 ;; (libfl and libpopt).
966 (inputs
967 `(("flex" ,flex)
968 ("popt" ,popt)))
969 (arguments
970 `(#:configure-flags `(,(string-append "--with-popt="
971 (assoc-ref %build-inputs "popt")))
972 #:tests? #f)) ;no 'check' target
973 (home-page "http://detox.sourceforge.net")
e881752c 974 (synopsis "Clean up file names")
b36fcf95
EB
975 (description
976 "Detox is a program that renames files to make them easier to work with
977under Unix and related operating systems. Spaces and various other unsafe
978characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
979characters can be replaced as well, as can UTF-8 characters.")
f61e0e79 980 (license license:bsd-3)))
c4492a16
LC
981
982(define-public testdisk
983 (package
984 (name "testdisk")
985 (version "6.14")
986 (source (origin
987 (method url-fetch)
988 (uri (string-append "http://www.cgsecurity.org/testdisk-"
989 version ".tar.bz2"))
990 (sha256
991 (base32
992 "0v1jap83f5h99zv01v3qmqm160d36n4ysi0gyq7xzb3mqgmw75x5"))))
993 (build-system gnu-build-system)
994 (inputs
995 `(;; ("ntfs" ,ntfs)
996 ("util-linux" ,util-linux)
cc2b77df 997 ("openssl" ,openssl)
f61e0e79 998 ("zlib" ,zlib)
c4492a16
LC
999 ("e2fsprogs" ,e2fsprogs)
1000 ("libjpeg" ,libjpeg)
1001 ("ncurses" ,ncurses)))
1002 (home-page "http://www.cgsecurity.org/wiki/TestDisk")
1003 (synopsis "Data recovery tool")
1004 (description
1005 "TestDisk is a program for data recovery, primarily designed to help
1006recover lost partitions and/or make non-booting disks bootable again.")
f61e0e79 1007 (license license:gpl2+)))
c4492a16 1008
15926aec
AS
1009(define-public tree
1010 (package
1011 (name "tree")
1012 (version "1.7.0")
1013 (source (origin
1014 (method url-fetch)
1015 (uri (string-append
1016 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1017 version ".tgz"))
1018 (sha256
1019 (base32 "04kviw799qxly08zb8n5mgxfd96gyis6x69q2qiw86jnh87c4mv9"))))
1020 (build-system gnu-build-system)
1021 (arguments
1022 '(#:phases (alist-delete 'configure %standard-phases)
1023 #:tests? #f ; no check target
1024 #:make-flags (let ((out (assoc-ref %outputs "out")))
1025 (list (string-append "prefix=" out)))))
1026 (synopsis "Recursively list the contents of a directory")
1027 (description
1028 "Tree is a recursive directory listing command that produces a depth
1029indented listing of files, which is colorized ala dircolors if the LS_COLORS
1030environment variable is set and output is to tty.")
1031 (home-page "http://mama.indstate.edu/users/ice/tree/")
1032 (license license:gpl2+)))
1033
c2619e10
LC
1034(define-public direvent
1035 (package
1036 (name "direvent")
1037 (version "5.0")
1038 (source (origin
1039 (method url-fetch)
1040 (uri (string-append "mirror://gnu/direvent/direvent-"
1041 version ".tar.gz"))
1042 (sha256
1043 (base32
1044 "1i14131y6m8wvirz6piw4zxz2q1kbpl0lniv5kl55rx4k372dg8z"))
1045 (modules '((guix build utils)))
1046 (snippet '(substitute* "tests/testsuite"
1047 (("#![[:blank:]]?/bin/sh")
1048 "#!$SHELL")))))
1049 (build-system gnu-build-system)
1050 (arguments
1051 '(#:phases (alist-cons-before
1052 'build 'patch-/bin/sh
1053 (lambda* (#:key inputs #:allow-other-keys)
1054 ;; Use the right shell when executing the watcher.
1055 (let ((bash (assoc-ref inputs "bash")))
1056 (substitute* "src/direvent.c"
1057 (("\"/bin/sh\"")
1058 (string-append "\"" bash "/bin/sh\"")))))
1059 %standard-phases)))
1060 (home-page "http://www.gnu.org/software/direvent/")
1061 (synopsis "Daemon to monitor directories for events such as file removal")
1062 (description
1063 "A daemon that monitors directories for events, such as creating,
35b9e423 1064deleting or modifying files. It can monitor different sets of directories for
c2619e10
LC
1065different events. When an event is detected, direvent calls a specified
1066external program with information about the event, such as the location
c5779c93
LC
1067within the file system where it occurred. Thus, \"direvent\" provides an
1068easy way to react immediately if given files undergo changes, for example, to
c2619e10 1069track changes in important system configuration files.")
f61e0e79 1070 (license license:gpl3+)))
da6c3749
TUBK
1071
1072(define-public libcap-ng
1073 (package
1074 (name "libcap-ng")
1075 (version "0.7.4")
1076 (source (origin
1077 (method url-fetch)
1078 (uri (string-append
1079 "http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1080 version ".tar.gz"))
1081 (sha256
1082 (base32
1083 "0ssvnh4cvhya0c1j6k6192zvqcq7nc0x01fb5nwhr0prfqr0i8j8"))))
1084 (build-system gnu-build-system)
1085 (inputs `(("python" ,python)))
1086 (home-page "http://people.redhat.com/sgrubb/libcap-ng/")
1087 (synopsis "Library for more easily working with POSIX capabilities")
1088 (description
1089 "The libcap-ng library is intended to make programming with POSIX
1090capabilities easier than the traditional libcap library. It includes
1091utilities that can analyse all currently running applications and print out
1092any capabilities and whether or not it has an open ended bounding set. The
1093included utilities are designed to let admins and developers spot apps from
1094various ways that may be running with too much privilege.")
1095 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
f61e0e79 1096 (license (list license:lgpl2.1+ license:gpl2+))))
d02f2cc4
TUBK
1097
1098(define-public smartmontools
1099 (package
1100 (name "smartmontools")
1101 (version "6.3")
1102 (source (origin
1103 (method url-fetch)
1104 (uri (string-append
1105 "mirror://sourceforge/smartmontools/smartmontools/"
1106 version "/smartmontools-" version ".tar.gz"))
1107 (sha256
1108 (base32
1109 "06gy71jh2d3gcfmlbbrsqw7215knkfq59q3j6qdxfrar39fhcxx7"))))
1110 (build-system gnu-build-system)
1111 (inputs `(("libcap-ng" ,libcap-ng)))
1112 (home-page "http://www.smartmontools.org/")
1113 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1114 (description
1115 "The smartmontools package contains utility programs to control and
1116monitor storage systems using the Self-Monitoring, Analysis and Reporting
1117Technology System (S.M.A.R.T.) built into most modern ATA and SCSI harddisks.
1118In many cases, these utilities will provide advanced warning of disk
1119degradation and failure.")
f61e0e79 1120 (license license:gpl2+)))
6efd0823
RW
1121
1122(define-public fdupes
1123 (package
1124 (name "fdupes")
1125 (version "1.51")
1126 (source
1127 (origin
1128 (method url-fetch)
1129 (uri (string-append
1130 "https://github.com/adrianlopezroche/fdupes/archive/fdupes-"
1131 version ".tar.gz"))
1132 (sha256
1133 (base32
1134 "11j96vxl9vg3jsnxqxskrv3gad6dh7hz2zpyc8n31xzyxka1c7kn"))))
1135 (build-system gnu-build-system)
1136 (arguments
1137 '(#:phases (alist-delete 'configure %standard-phases)
1138 #:tests? #f ; no 'check' target
1139 #:make-flags (list (string-append "PREFIX="
1140 (assoc-ref %outputs "out")))))
1141 (home-page "https://github.com/adrianlopezroche/fdupes")
1142 (synopsis "Identify duplicate files")
1143 (description
1144 "fdupes is a program for identifying duplicate files residing within
1145specified directories.")
1146 (license license:expat)))
4ecfbda7
DT
1147
1148(define-public graphios
1149 (package
1150 (name "graphios")
1151 (version "2.0.3")
1152 (source
1153 (origin
1154 (method url-fetch)
1155 (uri (string-append
1156 "https://pypi.python.org/packages/source/g/graphios/graphios-"
1157 version ".tar.gz"))
1158 (sha256
1159 (base32
1160 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1161 (build-system python-build-system)
1162 (arguments
1163 ;; Be warned: Building with Python 3 succeeds, but the build process
1164 ;; throws a syntax error that is ignored.
1165 `(#:python ,python-2
1166 #:phases
1167 (modify-phases %standard-phases
1168 (add-before 'build 'fix-setup.py
1169 (lambda* (#:key outputs #:allow-other-keys)
1170 ;; Fix hardcoded, unprefixed file names.
1171 (let ((out (assoc-ref outputs "out")))
1172 (substitute* '("setup.py")
1173 (("/etc") (string-append out "/etc"))
1174 (("/usr") out)
1175 (("distro_ver = .*") "distro_ver = ''"))
1176 #t))))))
1177 (inputs
1178 `(("python-setuptools" ,python2-setuptools)))
1179 (home-page "https://github.com/shawn-sterling/graphios")
1180 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1181 (description
1182 "Graphios is a script to emit nagios perfdata to various upstream metrics
1183processing and time-series systems. It's currently compatible with Graphite,
1184Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1185of supported upstream metrics systems simultaneously.")
1186 (license license:gpl2+)))
8d801045
ED
1187
1188(define-public ansible
1189 (package
1190 (name "ansible")
1191 (version "1.9.2")
1192 (source
1193 (origin
1194 (method url-fetch)
1195 (uri (string-append
1196 "https://pypi.python.org/packages/source/a/ansible/ansible-"
1197 version
1198 ".tar.gz"))
1199 (sha256
1200 (base32
1201 "007fzgsqaahb0y4gjdxxmir9kcni7wph2z14jhqgpz88idrz8pn2"))))
1202 (build-system python-build-system)
1203 (native-inputs
1204 `(("python2-setuptools" ,python2-setuptools)
1205 ("python2-pycrypto" ,python2-pycrypto)
1206 ("python2-httplib2" ,python2-httplib2)
1207 ("python2-passlib" ,python2-passlib)
1208 ("python2-nose" ,python2-nose)
1209 ("python2-mock" ,python2-mock)
1210 ("python2-jinja2" ,python2-jinja2)
1211 ("python2-pyyaml" ,python2-pyyaml)
1212 ("python2-paramiko" ,python2-paramiko)))
1213 (inputs
1214 `(("python2-pycrypto" ,python2-pycrypto)
1215 ("python2-jinja2" ,python2-jinja2)
1216 ("python2-pyyaml" ,python2-pyyaml)
1217 ("python2-paramiko" ,python2-paramiko)))
1218 (arguments
1219 `(#:python ,python-2)) ; incompatible with Python 3
1220 (home-page "http://ansible.com/")
1221 (synopsis "Radically simple IT automation")
1222 (description "Ansible is a radically simple IT automation system. It
1223handles configuration-management, application deployment, cloud provisioning,
1224ad-hoc task-execution, and multinode orchestration - including trivializing
1225things like zero downtime rolling updates with load balancers.")
1226 (license license:gpl3+)))