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