gnu: perl-archive-zip: Remove duplicate package definition.
[jackhill/guix/guix.git] / gnu / packages / admin.scm
CommitLineData
233e7676 1;;; GNU Guix --- Functional package management for GNU
89e34644 2;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017 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>
bf5b6fb2 5;;; Copyright © 2014, 2015, 2016, 2017 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>
d7c64ad5 9;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name>
f1957fc1 10;;; Copyright © 2016 Pjotr Prins <pjotr.guix@thebird.nl>
d10fa5c7 11;;; Copyright © 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
4fb14fad 12;;; Copyright © 2016, 2017 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>
1b5b24c9 15;;; Copyright © 2016, 2017 ng0 <contact.ng0@cryptolab.net>
7fae2063 16;;; Copyright © 2016, 2017 Tobias Geerinckx-Rice <me@tobias.gr>
1b5b24c9
BS
17;;; Copyright © 2016 John Darrington <jmd@gnu.org>
18;;; Copyright © 2017 Ben Sturmfels <ben@sturm.com.au>
6e75ea48 19;;; Copyright © 2017 Ethan R. Jones <doubleplusgood23@gmail.com>
58989684 20;;; Copyright © 2017 Christopher Allan Webber <cwebber@dustycloud.org>
1df895b0 21;;;
233e7676 22;;; This file is part of GNU Guix.
1df895b0 23;;;
233e7676 24;;; GNU Guix is free software; you can redistribute it and/or modify it
1df895b0
LC
25;;; under the terms of the GNU General Public License as published by
26;;; the Free Software Foundation; either version 3 of the License, or (at
27;;; your option) any later version.
28;;;
233e7676 29;;; GNU Guix is distributed in the hope that it will be useful, but
1df895b0
LC
30;;; WITHOUT ANY WARRANTY; without even the implied warranty of
31;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32;;; GNU General Public License for more details.
33;;;
34;;; You should have received a copy of the GNU General Public License
233e7676 35;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
1df895b0 36
4aeea896 37(define-module (gnu packages admin)
f61e0e79 38 #:use-module ((guix licenses) #:prefix license:)
1df895b0 39 #:use-module (guix packages)
4fb7e0de 40 #:use-module (guix utils)
1df895b0 41 #:use-module (guix download)
aaff68ee 42 #:use-module (guix git-download)
fbc1a58f 43 #:use-module (guix build-system cmake)
1df895b0 44 #:use-module (guix build-system gnu)
4ecfbda7 45 #:use-module (guix build-system python)
c773aba8 46 #:use-module (guix build-system trivial)
59a43334 47 #:use-module (gnu packages)
c73d4c92 48 #:use-module (gnu packages base)
ac257f12 49 #:use-module (gnu packages check)
3d7a157c 50 #:use-module (gnu packages cyrus-sasl)
9a9e72d5 51 #:use-module (gnu packages ncurses)
9927622f 52 #:use-module (gnu packages readline)
f15164e7 53 #:use-module (gnu packages linux)
d0457553 54 #:use-module (gnu packages lua)
f15164e7 55 #:use-module (gnu packages guile)
1dba6407 56 #:use-module (gnu packages gettext)
d0457553 57 #:use-module (gnu packages pcre)
c73d4c92 58 #:use-module (gnu packages perl)
5ccde207 59 #:use-module (gnu packages perl-check)
87216303 60 #:use-module (gnu packages tcl)
f61e0e79 61 #:use-module (gnu packages compression)
faa6bdf8 62 #:use-module (gnu packages cross-base)
a7fd7b68 63 #:use-module (gnu packages tls)
61bdd0d8 64 #:use-module (gnu packages gnupg)
02c86a5e
LC
65 #:use-module (gnu packages bison)
66 #:use-module (gnu packages flex)
67 #:use-module (gnu packages glib)
3d7a157c 68 #:use-module (gnu packages openldap)
c1f73569 69 #:use-module (gnu packages mcrypt)
87216303 70 #:use-module (gnu packages pkg-config)
b36fcf95 71 #:use-module (gnu packages popt)
1a0346f0 72 #:use-module (gnu packages python)
cc6f4912 73 #:use-module (gnu packages python-crypto)
1b2f753d 74 #:use-module (gnu packages python-web)
fccf2fe0 75 #:use-module (gnu packages texinfo)
e1485c7b 76 #:use-module (gnu packages groff)
42dc3af5 77 #:use-module (gnu packages pciutils)
d10fa5c7 78 #:use-module (gnu packages libunwind)
42dc3af5
MW
79 #:use-module (gnu packages libusb)
80 #:use-module (gnu packages libftdi)
c4492a16 81 #:use-module (gnu packages image)
da6c3749 82 #:use-module (gnu packages xorg)
d10fa5c7 83 #:use-module (gnu packages xdisorg)
e932d371 84 #:use-module (gnu packages man)
5ec8b02d 85 #:use-module (gnu packages autotools)
86 #:use-module (gnu packages gnome)
89e34644 87 #:use-module (gnu packages kerberos)
58989684
CAW
88 #:use-module (gnu packages gtk)
89 #:use-module (gnu packages xml))
f15164e7 90
c1f73569
RW
91(define-public aide
92 (package
93 (name "aide")
b067ad3e 94 (version "0.16")
c1f73569
RW
95 (source (origin
96 (method url-fetch)
97 (uri (string-append "mirror://sourceforge/aide/aide/"
98 version "/aide-" version ".tar.gz"))
99 (sha256
100 (base32
b067ad3e 101 "0ibkv4z2gk14fn014kq13rp2ysiq6nn2cflv2q5i7zf466hm6758"))))
c1f73569
RW
102 (build-system gnu-build-system)
103 (native-inputs
104 `(("bison" ,bison)
105 ("flex" ,flex)))
106 (inputs
107 `(("libgcrypt" ,libgcrypt)
108 ("libgpg-error" ,libgpg-error)
109 ("libmhash" ,libmhash)
b067ad3e 110 ("pcre" ,pcre)
c1f73569
RW
111 ("zlib" ,zlib)))
112 (synopsis "File and directory integrity checker")
113 (description
114 "AIDE (Advanced Intrusion Detection Environment) is a file and directory
115integrity checker. It creates a database from the regular expression rules
116that it finds from its configuration files. Once this database is initialized
117it can be used to verify the integrity of the files. It has several message
118digest algorithms that are used to check the integrity of files. All of the
119usual file attributes can be checked for inconsistencies.")
120 (home-page "http://aide.sourceforge.net/")
121 (license license:gpl2+)))
122
4971d5d0
RJ
123(define-public progress
124 (package
125 (name "progress")
eec9c4a7 126 (version "0.13.1")
4971d5d0
RJ
127 (source (origin
128 (method url-fetch)
129 (uri (string-append "https://github.com/Xfennec/"
130 name "/archive/v" version ".tar.gz"))
131 (sha256
eec9c4a7 132 (base32 "199rk6608q9m6l0fbjm0xl2w1c5krf8245dqnksdp4rqp7l9ak06"))
4971d5d0
RJ
133 (file-name (string-append name "-" version ".tar.gz"))))
134 (build-system gnu-build-system)
eec9c4a7
TGR
135 (native-inputs
136 `(("pkg-config" ,pkg-config)
137 ("which" ,which)))
4971d5d0
RJ
138 (inputs
139 `(("ncurses" ,ncurses)))
140 (arguments
141 `(#:tests? #f ; There is no test suite.
eec9c4a7 142 #:make-flags (list "CC=gcc"
4971d5d0
RJ
143 (string-append "PREFIX=" (assoc-ref %outputs "out")))
144 #:phases
145 (modify-phases %standard-phases
146 (delete 'configure)))) ; There's no configure phase.
147 (home-page "https://github.com/Xfennec/progress")
148 (synopsis "Program to view the progress of the coreutils commands")
149 (description "A program that looks for coreutils basic commands (cp, mv,
150dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
151the percentage of copied data. It can also show estimated time and throughput,
152and provides a \"top-like\" mode (monitoring).")
153 (license license:gpl3+)))
154
e932d371 155(define-public shepherd
133056bd
LC
156 (package
157 (name "shepherd")
95088559 158 (version "0.3.2")
133056bd
LC
159 (source (origin
160 (method url-fetch)
161 (uri (string-append "ftp://alpha.gnu.org/gnu/dmd/shepherd-"
162 version ".tar.gz"))
163 (sha256
164 (base32
4bd70904
LC
165 "174q1qg7yg6w1hfvlfv720hr6hid4h5xzw15y3ycfpspllzldhcb"))
166 (patches (search-patches "shepherd-close-fds.patch"))))
133056bd
LC
167 (build-system gnu-build-system)
168 (arguments
169 '(#:configure-flags '("--localstatedir=/var")))
425ab478
LC
170 (native-inputs
171 `(("pkg-config" ,pkg-config)
172
173 ;; This is the Guile we use as a cross-compiler...
c8eb2b8c 174 ("guile" ,guile-2.2)))
425ab478
LC
175 (inputs
176 ;; ... and this is the one that appears in shebangs when cross-compiling.
c8eb2b8c 177 `(("guile" ,guile-2.2)))
133056bd
LC
178 (synopsis "System service manager")
179 (description
180 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
181the execution of system services, replacing similar functionality found in
182typical init systems. It provides dependency-handling through a convenient
183interface and is based on GNU Guile.")
184 (license license:gpl3+)
95088559
LC
185 (home-page "https://www.gnu.org/software/shepherd/")
186 (properties '((ftp-server . "alpha.gnu.org")))))
e932d371 187
fbc1a58f
CR
188(define-public dfc
189 (package
190 (name "dfc")
180d7ac1 191 (version "3.0.4")
fbc1a58f
CR
192 (source
193 (origin
194 (method url-fetch)
195 (uri (string-append
180d7ac1 196 "http://projects.gw-computing.net/attachments/download/79/dfc-"
fbc1a58f
CR
197 version ".tar.gz"))
198 (sha256
199 (base32
180d7ac1 200 "0zk1ppx93ijimf4sbgqilxxikpsa2gmpbynknyh41xy7jbdjxp0b"))))
fbc1a58f
CR
201 (build-system cmake-build-system)
202 (arguments '(#:tests? #f)) ; There are no tests.
b94a6ca0 203 (native-inputs `(("gettext" ,gettext-minimal)))
fbc1a58f
CR
204 (home-page "http://projects.gw-computing.net/projects/dfc")
205 (synopsis "Display file system space usage using graphs and colors")
206 (description
207 "dfc (df color) is a modern version of df. It uses colors, draws pretty
208graphs and can export its output to different formats.")
f61e0e79 209 (license license:bsd-3)))
fbc1a58f 210
340c7033
CR
211(define-public htop
212 (package
213 (name "htop")
621954ba 214 (version "2.0.2")
340c7033
CR
215 (source (origin
216 (method url-fetch)
20e6c852 217 (uri (string-append "http://hisham.hm/htop/releases/"
340c7033
CR
218 version "/htop-" version ".tar.gz"))
219 (sha256
220 (base32
621954ba 221 "11zlwadm6dpkrlfvf3z3xll26yyffa7qrxd1w72y1kl0rgffk6qp"))))
340c7033
CR
222 (build-system gnu-build-system)
223 (inputs
224 `(("ncurses" ,ncurses)))
225 (home-page "http://htop.sourceforge.net/")
226 (synopsis "Interactive process viewer")
227 (description
228 "This is htop, an interactive process viewer. It is a text-mode
229application (for console or X terminals) and requires ncurses.")
f61e0e79 230 (license license:gpl2)))
340c7033 231
1df895b0
LC
232(define-public pies
233 (package
234 (name "pies")
a9764b7d 235 (version "1.3")
1df895b0
LC
236 (source
237 (origin
a9764b7d
LC
238 (method url-fetch)
239 (uri (string-append "mirror://gnu/pies/pies-"
240 version ".tar.bz2"))
241 (sha256
242 (base32
243 "12r7rjjyibjdj08dvwbp0iflfpzl4s0zhn6cr6zj3hwf9gbzgl1g"))))
1df895b0 244 (build-system gnu-build-system)
a9764b7d
LC
245 (arguments
246 '(#:phases (modify-phases %standard-phases
247 (add-before 'build 'patch-/bin/sh
248 (lambda* (#:key inputs #:allow-other-keys)
249 ;; Use the right shell when executing user-provided
250 ;; shell commands.
251 (let ((bash (assoc-ref inputs "bash")))
252 (substitute* "src/progman.c"
253 (("\"/bin/sh\"")
254 (string-append "\"" bash "/bin/sh\"")))
255 #t))))))
6fd52309 256 (home-page "https://www.gnu.org/software/pies/")
f50d2669 257 (synopsis "Program invocation and execution supervisor")
1df895b0 258 (description
79c311b8 259 "GNU pies is a program that supervises the invocation and execution of
a22dc0c4
LC
260other programs. It reads the list of programs to be started from its
261configuration file, executes them, and then monitors their status,
262re-executing them as necessary.")
f61e0e79 263 (license license:gpl3+)))
1df895b0
LC
264
265(define-public inetutils
266 (package
267 (name "inetutils")
8b1c8e4e 268 (version "1.9.4")
01eafd38
LC
269 (source (origin
270 (method url-fetch)
271 (uri (string-append "mirror://gnu/inetutils/inetutils-"
272 version ".tar.gz"))
273 (sha256
274 (base32
8b1c8e4e 275 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
1df895b0 276 (build-system gnu-build-system)
483188b7 277 (arguments
e4015e57
LC
278 `(#:configure-flags '("--localstatedir=/var"
279
280 ;; Make sure 'PATH_PROCNET_DEV' gets defined when
281 ;; cross-compiling (by default it does not.)
282 ,@(if (%current-target-system)
283 '("--with-path-procnet-dev=/proc/net/dev")
284 '()))
ed6a21b4
MB
285 ;; On some systems, 'libls.sh' may fail with an error such as:
286 ;; "Failed to tell switch -a apart from -A".
287 #:parallel-tests? #f))
9927622f 288 (inputs `(("ncurses" ,ncurses)
6f5d28f9
MC
289 ("readline" ,readline))) ;for 'ftp'
290 (native-inputs `(("netstat" ,net-tools))) ;for tests
6fd52309 291 (home-page "https://www.gnu.org/software/inetutils/")
f50d2669 292 (synopsis "Basic networking utilities")
1df895b0 293 (description
a22dc0c4 294 "Inetutils is a collection of common network programs, such as an ftp
e048de60
LF
295client and server, a telnet client and server, an rsh client and server, and
296hostname.")
f61e0e79 297 (license license:gpl3+)))
9a9e72d5
LC
298
299(define-public shadow
300 (package
301 (name "shadow")
b193fb28 302 (version "4.5")
9a9e72d5 303 (source (origin
ca2a55d4
SB
304 (method url-fetch)
305 (uri (string-append
4153ef23 306 "https://github.com/shadow-maint/shadow/releases/"
307 "download/" version "/shadow-" version ".tar.xz"))
ca2a55d4
SB
308 (sha256
309 (base32
b193fb28 310 "0hdpai78n63l3v3fgr3kkiqzhd0awrpfnnzz4mf7lmxdh61qb37w"))))
9a9e72d5
LC
311 (build-system gnu-build-system)
312 (arguments
ce6223e6 313 `(;; Assume System V `setpgrp (void)', which is the default on GNU
9a9e72d5 314 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
52701a3d 315 #:configure-flags
316 '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
9a9e72d5 317
52701a3d 318 #:phases
319 (modify-phases %standard-phases
320 (add-before 'build 'set-nscd-file-name
321 (lambda* (#:key inputs #:allow-other-keys)
322 ;; Use the right file name for nscd.
ce6223e6
LC
323 (let ((libc (assoc-ref inputs
324 ,(if (%current-target-system)
325 "cross-libc"
326 "libc"))))
52701a3d 327 (substitute* "lib/nscd.c"
328 (("/usr/sbin/nscd")
329 (string-append libc "/sbin/nscd"))))))
330 (add-after 'install 'remove-groups
331 (lambda* (#:key outputs #:allow-other-keys)
332 ;; Remove `groups', which is already provided by Coreutils.
333 (let* ((out (assoc-ref outputs "out"))
334 (bin (string-append out "/bin"))
335 (man (string-append out "/share/man")))
336 (delete-file (string-append bin "/groups"))
337 (for-each delete-file (find-files man "^groups\\."))
338 #t))))))
9a9e72d5 339
5dfbd769
LC
340 (inputs (if (string-contains (or (%current-target-system)
341 (%current-system))
342 "-linux")
343 `(("linux-pam" ,linux-pam))
344 '()))
9a9e72d5
LC
345 (home-page "http://pkg-shadow.alioth.debian.org/")
346 (synopsis "Authentication-related tools such as passwd, su, and login")
347 (description
348 "Shadow provides a number of authentication-related tools, including:
349login, passwd, su, groupadd, and useradd.")
350
351 ;; The `vipw' program is GPLv2+.
352 ;; libmisc/salt.c is public domain.
f61e0e79 353 (license license:bsd-3)))
1e151896
LC
354
355(define-public mingetty
356 (package
357 (name "mingetty")
358 (version "1.08")
359 (source (origin
360 (method url-fetch)
de67e922
LF
361 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
362 version "/mingetty-" version ".tar.gz"))
1e151896
LC
363 (sha256
364 (base32
365 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
366 (build-system gnu-build-system)
367 (arguments
dc1d3cde
KK
368 `(#:phases
369 (modify-phases %standard-phases
370 (replace 'configure
371 (lambda* (#:key inputs outputs #:allow-other-keys)
372 (let* ((out (assoc-ref outputs "out"))
373 (man8 (string-append out "/share/man/man8"))
374 (sbin (string-append out "/sbin"))
375 (shadow (assoc-ref inputs "shadow"))
376 (login (string-append shadow "/bin/login")))
377 (substitute* "Makefile"
378 (("^SBINDIR.*")
379 (string-append "SBINDIR = " out
380 "/sbin\n"))
381 (("^MANDIR.*")
382 (string-append "MANDIR = " out
383 "/share/man/man8\n")))
384
385 ;; Pick the right 'login' by default.
386 (substitute* "mingetty.c"
387 (("\"/bin/login\"")
388 (string-append "\"" login "\"")))
389
390 (mkdir-p sbin)
391 (mkdir-p man8))
392 #t)))
1e151896
LC
393 #:tests? #f)) ; no tests
394 (inputs `(("shadow" ,shadow)))
395
3b3b60d0 396 (home-page "https://sourceforge.net/projects/mingetty")
1e151896
LC
397 (synopsis "Getty for the text console")
398 (description
399 "Small console getty that is started on the Linux text console,
400asks for a login name and then transfers over to 'login'. It is extended to
401allow automatic login and starting any app.")
f61e0e79 402 (license license:gpl2+)))
c773aba8
LC
403
404(define-public net-base
405 (package
406 (name "net-base")
db719df7 407 (version "5.3")
c773aba8
LC
408 (source (origin
409 (method url-fetch)
410 (uri (string-append
34af3684 411 "mirror://debian/pool/main/n/netbase/netbase_"
db719df7 412 version ".tar.xz"))
c773aba8
LC
413 (sha256
414 (base32
db719df7 415 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
c773aba8
LC
416 (build-system trivial-build-system)
417 (arguments
418 `(#:modules ((guix build utils))
419 #:builder (begin
420 (use-modules (guix build utils)
421 (srfi srfi-26))
422
423 (let* ((source (assoc-ref %build-inputs "source"))
424 (tar (assoc-ref %build-inputs "tar"))
db719df7 425 (xz (assoc-ref %build-inputs "xz"))
c773aba8
LC
426 (output (assoc-ref %outputs "out"))
427 (etc (string-append output "/etc")))
db719df7 428 (setenv "PATH" (string-append xz "/bin"))
c773aba8
LC
429 (system* (string-append tar "/bin/tar") "xvf"
430 source)
431 (chdir ,(string-append "netbase-" version))
432 (mkdir-p etc)
433 (for-each copy-file
434 '("etc-services" "etc-protocols" "etc-rpc")
435 (map (cut string-append etc "/" <>)
436 '("services" "protocols" "rpc")))
437 #t))))
438 (native-inputs `(("tar" ,tar)
f61e0e79 439 ("xz" ,xz)))
c773aba8
LC
440 (synopsis "IANA protocol, port, and RPC number assignments")
441 (description
442 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
443files, which contain information about the IANA-assigned port, protocol, and
e881752c 444ONC RPC numbers.")
c773aba8 445 (home-page "http://packages.debian.org/sid/netbase")
f61e0e79 446 (license license:gpl2)))
94c4a58a
LC
447
448(define-public netcat
449 (package
450 (name "netcat")
451 (version "0.7.1")
452 (source (origin
453 (method url-fetch)
de67e922
LF
454 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
455 "/netcat-" version ".tar.bz2"))
94c4a58a
LC
456 (sha256
457 (base32
458 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
459 (build-system gnu-build-system)
0e4e89c2
MW
460 (arguments
461 `(#:configure-flags
462 ;; By default, man and info pages are put in PREFIX/{man,info},
463 ;; but we want them in PREFIX/share/{man,info}.
464 (let ((out (assoc-ref %outputs "out")))
465 (list (string-append "--mandir=" out "/share/man")
466 (string-append "--infodir=" out "/share/info")))))
94c4a58a
LC
467 (home-page "http://netcat.sourceforge.net")
468 (synopsis "Read and write data over TCP/IP")
469 (description
470 "Netcat is a featured networking utility which reads and writes data
471across network connections, using the TCP/IP protocol. It is designed to be a
472reliable \"back-end\" tool that can be used directly or easily driven by other
35b9e423 473programs and scripts. At the same time, it is a feature-rich network debugging
94c4a58a
LC
474and exploration tool, since it can create almost any kind of connection you
475would need and has several interesting built-in capabilities.")
f61e0e79 476 (license license:gpl2+)))
d038cac1
LC
477
478(define-public alive
479 (package
480 (name "alive")
481 (version "2.0.2")
482 (source (origin
483 (method url-fetch)
484 (uri (string-append "mirror://gnu/alive/alive-"
485 version ".tar.xz"))
486 (sha256
487 (base32
488 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
489 (build-system gnu-build-system)
490 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
491 (inputs `(("guile" ,guile-2.0)
492 ("inetutils" ,inetutils)))
6fd52309 493 (home-page "https://www.gnu.org/software/alive/")
d038cac1
LC
494 (synopsis "Autologin and keep-alive daemon")
495 (description
496 "GNU Alive sends periodic pings to a server, generally to keep a
497connection alive.")
f61e0e79 498 (license license:gpl3+)))
c73d4c92
LC
499
500(define-public isc-dhcp
6548b1e1
MW
501 (let* ((bind-major-version "9")
502 (bind-minor-version "9")
001f8cdc 503 (bind-patch-version "10")
8be2428e 504 (bind-release-type "-P") ; for patch release, use "-P"
2472f7a8 505 (bind-release-version "3") ; for patch release, e.g. "6"
6548b1e1
MW
506 (bind-version (string-append bind-major-version
507 "."
508 bind-minor-version
509 "."
510 bind-patch-version
511 bind-release-type
512 bind-release-version)))
513 (package
514 (name "isc-dhcp")
86c61a6b 515 (version "4.3.5")
6548b1e1
MW
516 (source (origin
517 (method url-fetch)
518 (uri (string-append "http://ftp.isc.org/isc/dhcp/"
519 version "/dhcp-" version ".tar.gz"))
520 (sha256
521 (base32
86c61a6b 522 "0m7rwxvpb7xrmfl9ynpckhl0hi0xgm9bq1fmbp2r68sxy5mr75gb"))))
6548b1e1
MW
523 (build-system gnu-build-system)
524 (arguments
e54465ff
MW
525 `(#:parallel-build? #f
526 #:phases
6548b1e1
MW
527 (modify-phases %standard-phases
528 (add-after 'unpack 'replace-bundled-bind
529 (lambda* (#:key inputs #:allow-other-keys)
530 (delete-file "bind/bind.tar.gz")
531 (copy-file (assoc-ref inputs "bind-source-tarball")
532 "bind/bind.tar.gz")
533 (chmod "bind/bind.tar.gz" #o644)
534 (substitute* "bind/version.tmp"
535 (("^MAJORVER=.*")
536 (format #f "MAJORVER=~a\n" ,bind-major-version))
537 (("^MINORVER=.*")
538 (format #f "MINORVER=~a\n" ,bind-minor-version))
539 (("^PATCHVER=.*")
540 (format #f "PATCHVER=~a\n" ,bind-patch-version))
541 (("^RELEASETYPE=.*")
542 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
543 (("^RELEASEVER=.*")
544 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
545 #t))
546 (add-after 'configure 'post-configure
547 (lambda* (#:key outputs #:allow-other-keys)
548 ;; Point to the right client script, which will be
549 ;; installed in a later phase.
550 (substitute* "includes/dhcpd.h"
551 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
552 (let ((out (assoc-ref outputs "out")))
553 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
554 out "/libexec/dhclient-script"
555 "\"\n"))))
c73d4c92 556
6548b1e1
MW
557 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
558 ;; we must patch shebangs in there and make sure the right
559 ;; shell is used.
560 (with-directory-excursion "bind"
561 (substitute* "Makefile"
562 (("\\./configure")
563 (let ((sh (which "sh")))
564 (string-append "./configure CONFIG_SHELL="
565 sh " SHELL=" sh))))
c73d4c92 566
6548b1e1
MW
567 (let ((bind-directory (string-append "bind-" ,bind-version)))
568 (system* "tar" "xf" "bind.tar.gz")
569 (for-each patch-shebang
570 (find-files bind-directory ".*"))
571 (zero? (system* "tar" "cf" "bind.tar.gz"
572 bind-directory
573 ;; avoid non-determinism in the archive
574 "--sort=name"
575 "--mtime=@0"
576 "--owner=root:0"
577 "--group=root:0"))))))
578 (add-after 'install 'post-install
579 (lambda* (#:key inputs outputs #:allow-other-keys)
580 ;; Install the dhclient script for GNU/Linux and make sure
581 ;; if finds all the programs it needs.
582 (let* ((out (assoc-ref outputs "out"))
583 (libexec (string-append out "/libexec"))
584 (coreutils (assoc-ref inputs "coreutils"))
585 (inetutils (assoc-ref inputs "inetutils"))
586 (net-tools (assoc-ref inputs "net-tools"))
587 (sed (assoc-ref inputs "sed")))
588 (substitute* "client/scripts/linux"
589 (("/sbin/ip")
590 (string-append (assoc-ref inputs "iproute")
591 "/sbin/ip")))
c73d4c92 592
6548b1e1
MW
593 (mkdir-p libexec)
594 (copy-file "client/scripts/linux"
595 (string-append libexec "/dhclient-script"))
c73d4c92 596
6548b1e1
MW
597 (wrap-program
598 (string-append libexec "/dhclient-script")
599 `("PATH" ":" prefix
600 ,(map (lambda (dir)
601 (string-append dir "/bin:"
602 dir "/sbin"))
603 (list inetutils net-tools coreutils sed))))))))))
c73d4c92 604
6548b1e1 605 (native-inputs `(("perl" ,perl)))
c73d4c92 606
6548b1e1
MW
607 (inputs `(("inetutils" ,inetutils)
608 ("net-tools" ,net-tools)
609 ("iproute" ,iproute)
dc343935 610
6548b1e1
MW
611 ;; XXX isc-dhcp bundles a copy of bind that has security
612 ;; flaws, so we use a newer version.
613 ("bind-source-tarball"
614 ,(origin
615 (method url-fetch)
616 (uri (string-append "http://ftp.isc.org/isc/bind9/"
617 bind-version
618 "/bind-" bind-version ".tar.gz"))
619 (sha256
620 (base32
2472f7a8 621 "00yh1d5shrq7y0kfwacax4f8dc0akaa2fha430j92n7mshms65m1"))))
c73d4c92 622
6548b1e1
MW
623 ;; When cross-compiling, we need the cross Coreutils and sed.
624 ;; Otherwise just use those from %FINAL-INPUTS.
625 ,@(if (%current-target-system)
626 `(("coreutils" ,coreutils)
627 ("sed" ,sed))
628 '())))
629
630 (home-page "http://www.isc.org/products/DHCP/")
631 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
632 (description
633 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
c73d4c92
LC
634reference implementation of all aspects of DHCP, through a suite of DHCP
635tools: server, client, and relay agent.")
159a5e01
LC
636 (license license:isc)
637 (properties '((cpe-name . "dhcp"))))))
02c86a5e
LC
638
639(define-public libpcap
640 (package
641 (name "libpcap")
df4a2b44 642 (version "1.8.1")
02c86a5e
LC
643 (source (origin
644 (method url-fetch)
645 (uri (string-append "http://www.tcpdump.org/release/libpcap-"
646 version ".tar.gz"))
647 (sha256
648 (base32
df4a2b44 649 "07jlhc66z76dipj4j5v3dig8x6h3k6cb36kmnmpsixf3zmlvqgb7"))))
02c86a5e
LC
650 (build-system gnu-build-system)
651 (native-inputs `(("bison" ,bison) ("flex" ,flex)))
e03f6d5e
RW
652 (arguments '(#:configure-flags '("--with-pcap=linux")
653 #:tests? #f)) ; no 'check' target
02c86a5e
LC
654 (home-page "http://www.tcpdump.org")
655 (synopsis "Network packet capture library")
656 (description
657 "libpcap is an interface for user-level packet capture. It provides a
658portable framework for low-level network monitoring. Applications include
659network statistics collection, security monitoring, network debugging, etc.")
660
661 ;; fad-*.c and a couple other files are BSD-4, but the rest is BSD-3.
f61e0e79 662 (license license:bsd-3)))
02c86a5e 663
1da34f5a
LC
664(define-public tcpdump
665 (package
666 (name "tcpdump")
81635ad0 667 (version "4.9.2")
1da34f5a
LC
668 (source (origin
669 (method url-fetch)
73a2ef36
LF
670 (uri (string-append "http://www.tcpdump.org/release/tcpdump-"
671 version ".tar.gz"))
1da34f5a
LC
672 (sha256
673 (base32
81635ad0 674 "0ygy0layzqaj838r5xd613iraz09wlfgpyh7pc6cwclql8v3b2vr"))))
1da34f5a 675 (build-system gnu-build-system)
10db1e6c 676 (inputs `(("libpcap" ,libpcap)
cc2b77df 677 ("openssl" ,openssl)))
1da34f5a 678 (native-inputs `(("perl" ,perl))) ; for tests
1da34f5a
LC
679 (home-page "http://www.tcpdump.org/")
680 (synopsis "Network packet analyzer")
681 (description
682 "Tcpdump is a command-line tool to analyze network traffic passing
683through the network interface controller.")
f61e0e79 684 (license license:bsd-3)))
1da34f5a 685
02c86a5e
LC
686(define-public jnettop
687 (package
688 (name "jnettop")
689 (version "0.13.0")
690 (source (origin
691 (method url-fetch)
692 (uri (string-append "http://jnettop.kubs.info/dist/jnettop-"
693 version ".tar.gz"))
694 (sha256
695 (base32
696 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
697 (build-system gnu-build-system)
698 (native-inputs
699 `(("pkg-config" ,pkg-config)))
700 (inputs
701 `(("glib" ,glib)
702 ("ncurses" ,ncurses)
703 ("libpcap" ,libpcap)))
704 (home-page "http://jnettop.kubs.info/")
705 (synopsis "Visualize network traffic by bandwidth use")
706 (description
707 "Jnettop is a traffic visualiser, which captures traffic going
708through the host it is running from and displays streams sorted
709by bandwidth they use.")
f61e0e79 710 (license license:gpl2+)))
87216303
EB
711
712(define-public clusterssh
713 (package
714 (name "clusterssh")
715 (version "3.28")
716 (source (origin
717 (method url-fetch)
718 (uri (string-append "mirror://sourceforge/clusterssh/"
de67e922
LF
719 "1.%20ClusterSSH%20Series%203/" version
720 "/clusterssh-" version ".tar.gz"))
87216303
EB
721 (sha256
722 (base32
723 "1bwggpvaj2al5blg1ynapviv2kpydffpzq2zkhi81najnvzc1rr7"))))
724 (build-system gnu-build-system)
725 (inputs `(("perl" ,perl)))
726 (propagated-inputs `(("xterm" ,xterm)
727 ("perl-tk" ,perl-tk)
728 ("perl-x11-protocol" ,perl-x11-protocol)))
729 (arguments
730 `(#:phases
dc1d3cde
KK
731 (modify-phases %standard-phases
732 (add-after 'install 'set-load-paths
733 (lambda* (#:key inputs outputs #:allow-other-keys)
734 ;; Put the perl-tk and perl-x11-protocol modules in the perl inc
735 ;; path for PROG
736 (let* ((out (assoc-ref outputs "out"))
737 (prog (string-append out "/bin/cssh"))
738 (perl-ver ,(package-version perl))
739 (x11-inc (string-append
740 (assoc-ref inputs "perl-x11-protocol")
741 "/lib/perl5/site_perl/" perl-ver))
742 (tk-inc (string-append
743 (assoc-ref inputs "perl-tk")
744 "/lib/perl5/site_perl/" perl-ver
745 "/x86_64-linux")))
746 (wrap-program
747 prog
748 `("PERL5LIB" ":" prefix (,x11-inc ,tk-inc))))
749 #t)))))
87216303 750 ;; The clusterssh.sourceforge.net address requires login to view
3b3b60d0 751 (home-page "https://sourceforge.net/projects/clusterssh/")
87216303
EB
752 (synopsis "Secure concurrent multi-server terminal control")
753 (description
754 "ClusterSSH controls a number of xterm windows via a single graphical
755console window to allow commands to be interactively run on multiple servers
756over ssh connections.")
f61e0e79 757 (license license:gpl2+)))
fccf2fe0
LC
758
759(define-public rottlog
760 (package
761 (name "rottlog")
762 (version "0.72.2")
763 (source (origin
764 (method url-fetch)
765 (uri (string-append "mirror://gnu/rottlog/rottlog-"
766 version ".tar.gz"))
767 (sha256
768 (base32
769 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
770 (modules '((guix build utils)))
771 (snippet
772 '(substitute* "Makefile.in"
773 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
774 ;; Don't try to chown root.
775 "")
776 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
777 ;; Don't attempt to create /var/lib/rottlog.
778 "true")))))
779 (build-system gnu-build-system)
780 (arguments
268ad34e 781 '(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
fccf2fe0 782 "--localstatedir=/var")
268ad34e
LC
783
784 ;; Install example config files in OUT/etc.
785 #:make-flags (list (string-append "ROTT_ETCDIR="
786 (assoc-ref %outputs "out")
787 "/etc"))
788
8dc0ecae 789 #:phases (modify-phases %standard-phases
d436c6b5
MB
790 (add-after 'unpack 'patch-paths
791 (lambda _
792 (substitute* "rc/rc"
793 (("/usr/sbin/sendmail") "sendmail"))
794 #t))
11e74634
JN
795 (add-after 'build 'set-packdir
796 (lambda _
797 ;; Set a default location for archived logs.
798 (substitute* "rc/rc"
799 (("packdir=\"\"")
800 "packdir=\"/var/log\""))
801 #t))
309e523e
LC
802 (add-before 'install 'tweak-rc-weekly
803 (lambda _
804 (substitute* "rc/weekly"
805 (("/bin/kill")
806 (which "kill"))
807 (("syslogd\\.pid")
808 ;; The file is called 'syslog.pid' (no 'd').
809 "syslog.pid"))
810 #t))
8dc0ecae
LC
811 (add-after 'install 'install-info
812 (lambda _
813 (zero? (system* "make" "install-info")))))))
fccf2fe0
LC
814 (native-inputs `(("texinfo" ,texinfo)
815 ("util-linux" ,util-linux))) ; for 'cal'
6fd52309 816 (home-page "https://www.gnu.org/software/rottlog/")
fccf2fe0
LC
817 (synopsis "Log rotation and management")
818 (description
819 "GNU Rot[t]log is a program for managing log files. It is used to
820automatically rotate out log files when they have reached a given size or
821according to a given schedule. It can also be used to automatically compress
822and archive such logs. Rot[t]log will mail reports of its activity to the
823system administrator.")
f61e0e79 824 (license license:gpl3+)))
e1485c7b
LC
825
826(define-public sudo
827 (package
828 (name "sudo")
4b052c6a 829 (version "1.8.21p2")
e1485c7b
LC
830 (source (origin
831 (method url-fetch)
832 (uri
6baa83d2 833 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
e1485c7b
LC
834 version ".tar.gz")
835 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
836 version ".tar.gz")))
837 (sha256
838 (base32
4b052c6a 839 "0s33szq6q59v5s377l4v6ybsdy7pfq6sz7y364j4x09ssdn79ibl"))
6b7f1b6c
MB
840 (modules '((guix build utils)))
841 (snippet
842 '(delete-file-recursively "lib/zlib"))))
e1485c7b
LC
843 (build-system gnu-build-system)
844 (arguments
0086ec73
LC
845 `(#:configure-flags
846 (list "--with-logpath=/var/log/sudo.log"
7b78f359 847 "--with-rundir=/var/run/sudo" ;must be cleaned up at boot time
0086ec73
LC
848 "--with-vardir=/var/db/sudo"
849 "--with-iologdir=/var/log/sudo-io"
850
851 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
852 ;; provide it.
853 (string-append "CPPFLAGS=-D_PATH_MV='\""
854 (assoc-ref %build-inputs "coreutils")
855 "/bin/mv\"'"))
511495fb
LC
856
857 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
858 #:parallel-build? #f
859
7fae2063
TGR
860 #:phases
861 (modify-phases %standard-phases
862 (add-before 'configure 'pre-configure
863 (lambda _
864 (substitute* "src/sudo_usage.h.in"
865 ;; Do not capture 'configure' arguments since we would
866 ;; unduly retain references, and also because the
867 ;; CPPFLAGS above would close the string literal
868 ;; prematurely.
869 (("@CONFIGURE_ARGS@") "\"\""))
870 (substitute* (find-files "." "Makefile\\.in")
871 (("-o [[:graph:]]+ -g [[:graph:]]+")
872 ;; Allow installation as non-root.
873 "")
874 (("^install: (.*)install-sudoers(.*)" _ before after)
875 ;; Don't try to create /etc/sudoers.
876 (string-append "install: " before after "\n"))
877 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
878 ;; Don't try to create /run/sudo.
879 "$(TMPDIR)/dummy")
880 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
881 ;; Don't try to create /var/db/sudo.
4b052c6a
EF
882 "$(TMPDIR)/dummy"))
883 #t)))
e1485c7b
LC
884
885 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
886 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
887 #:tests? #f))
888 (inputs
889 `(("groff" ,groff)
890 ("linux-pam" ,linux-pam)
6b7f1b6c 891 ("zlib" ,zlib)
e1485c7b 892 ("coreutils" ,coreutils)))
6baa83d2 893 (home-page "https://www.sudo.ws/")
e1485c7b
LC
894 (synopsis "Run commands as root")
895 (description
896 "Sudo (su \"do\") allows a system administrator to delegate authority to
897give certain users (or groups of users) the ability to run some (or all)
898commands as root or another user while providing an audit trail of the
899commands and their arguments.")
900
901 ;; See <http://www.sudo.ws/sudo/license.html>.
f61e0e79 902 (license license:x11)))
952298d7 903
1ce6f43a 904(define-public wpa-supplicant-minimal
952298d7 905 (package
1ce6f43a 906 (name "wpa-supplicant-minimal")
fc008121 907 (version "2.6")
952298d7
LC
908 (source (origin
909 (method url-fetch)
910 (uri (string-append
9a727700 911 "http://w1.fi/releases/wpa_supplicant-"
952298d7
LC
912 version
913 ".tar.gz"))
09748a35
LF
914 (patches (search-patches "wpa-supplicant-CVE-2017-13082.patch"
915 "wpa-supplicant-fix-key-reuse.patch"
916 "wpa-supplicant-fix-zeroed-keys.patch"
917 "wpa-supplicant-fix-nonce-reuse.patch"
918 "wpa-supplicant-krack-followups.patch"))
952298d7
LC
919 (sha256
920 (base32
fc008121 921 "0l0l5gz3d5j9bqjsbjlfcv4w4jwndllp9fmyai4x9kg6qhs6v4xl"))))
952298d7
LC
922 (build-system gnu-build-system)
923 (arguments
dc1d3cde
KK
924 '(#:phases
925 (modify-phases %standard-phases
926 (replace 'configure
927 (lambda* (#:key outputs #:allow-other-keys)
928 (chdir "wpa_supplicant")
929 (copy-file "defconfig" ".config")
930 (let ((port (open-file ".config" "al")))
931 (display "
952298d7 932 CONFIG_DEBUG_SYSLOG=y
40b4c6d6 933
61bdd0d8
LC
934 # Choose GnuTLS (the default is OpenSSL.)
935 CONFIG_TLS=gnutls
936
952298d7
LC
937 CONFIG_DRIVER_NL80211=y
938 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
939 CONFIG_LIBNL32=y
940 CONFIG_READLINE=y\n" port)
dc1d3cde
KK
941 (close-port port))))
942 (add-after 'install 'install-man-pages
943 (lambda* (#:key outputs #:allow-other-keys)
944 (let* ((out (assoc-ref outputs "out"))
945 (man (string-append out "/share/man"))
946 (man5 (string-append man "/man5"))
947 (man8 (string-append man "/man8")))
948 (define (copy-man-page target)
949 (lambda (file)
950 (install-file file target)))
951
952 (mkdir-p man5) (mkdir man8)
953 (for-each (copy-man-page man5)
954 (find-files "doc/docbook" "\\.5"))
955 (for-each (copy-man-page man8)
956 (find-files "doc/docbook" "\\.8"))
957 #t))))
952298d7
LC
958
959 #:make-flags (list "CC=gcc"
960 (string-append "BINDIR=" (assoc-ref %outputs "out")
961 "/sbin")
962 (string-append "LIBDIR=" (assoc-ref %outputs "out")
963 "/lib"))
964 #:tests? #f))
965 (inputs
966 `(("readline" ,readline)
967 ("libnl" ,libnl)
61bdd0d8
LC
968 ("gnutls" ,gnutls)
969 ("libgcrypt" ,libgcrypt))) ;needed by crypto_gnutls.c
952298d7
LC
970 (native-inputs
971 `(("pkg-config" ,pkg-config)))
9a727700 972 (home-page "http://w1.fi/wpa_supplicant/")
952298d7
LC
973 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
974 (description
975 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
976802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
977the client stations. It implements key negotiation with a WPA Authenticator
978and it controls the roaming and IEEE 802.11 authentication/association of the
979WLAN driver.
980
981This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
982
983 ;; In practice, this is linked against Readline, which makes it GPLv3+.
f61e0e79 984 (license license:bsd-3)))
c6b76405 985
4fb7e0de 986(define-public wpa-supplicant
1ce6f43a 987 (package (inherit wpa-supplicant-minimal)
4fb7e0de
MW
988 (name "wpa-supplicant")
989 (inputs `(("dbus" ,dbus)
1ce6f43a 990 ,@(package-inputs wpa-supplicant-minimal)))
4fb7e0de 991 (arguments
1ce6f43a 992 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
4fb7e0de 993 ((#:phases phases)
dc1d3cde
KK
994 `(modify-phases ,phases
995 (add-after 'configure 'configure-for-dbus
996 (lambda _
997 (let ((port (open-file ".config" "al")))
998 (display "
4fb7e0de
MW
999 CONFIG_CTRL_IFACE_DBUS=y
1000 CONFIG_CTRL_IFACE_DBUS_NEW=y
1001 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
dc1d3cde
KK
1002 (close-port port))
1003 #t))
1004 (add-after 'install-man-pages 'install-dbus-conf
1005 (lambda* (#:key outputs #:allow-other-keys)
1006 (let* ((out (assoc-ref outputs "out"))
1007 (dir (string-append out "/etc/dbus-1/system.d")))
1008 (mkdir-p dir)
1009 (copy-file "dbus/dbus-wpa_supplicant.conf"
1010 (string-append dir "/wpa_supplicant.conf")))
1011 #t))))))))
4fb7e0de 1012
c6b76405
LC
1013(define-public wakelan
1014 (package
1015 (name "wakelan")
1016 (version "1.1")
1017 (source (origin
1018 (method url-fetch)
1019 (uri (string-append
1020 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
1021 version ".tar.gz"))
1022 (sha256
1023 (base32
1024 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
1025 (build-system gnu-build-system)
1026 (arguments
dc1d3cde
KK
1027 '(#:phases
1028 (modify-phases %standard-phases
1029 (replace 'configure
1030 (lambda* (#:key outputs #:allow-other-keys)
1031 (let ((out (assoc-ref outputs "out")))
1032 (mkdir-p (string-append out "/bin"))
1033 (mkdir-p (string-append out "/share/man/man1"))
1034
1035 ;; It's an old configure script that doesn't understand
1036 ;; the extra options we pass.
1037 (setenv "CONFIG_SHELL" (which "bash"))
1038 (zero?
1039 (system* "./configure"
1040 (string-append "--prefix=" out)
1041 (string-append "--mandir=" out
1042 "/share/man")))))))
c6b76405
LC
1043 #:tests? #f))
1044 (home-page "http://kernel.org") ; really, no home page
1045 (synopsis "Send a wake-on-LAN packet")
1046 (description
1047 "WakeLan broadcasts a properly formatted UDP packet across the local area
1048network, which causes enabled computers to power on.")
f61e0e79 1049 (license license:gpl2+)))
d43f4296
LC
1050
1051(define-public dmidecode
1052 (package
1053 (name "dmidecode")
06438b07 1054 (version "3.0")
d43f4296
LC
1055 (source (origin
1056 (method url-fetch)
1057 (uri (string-append
1058 "mirror://savannah/dmidecode/dmidecode-"
06438b07 1059 version ".tar.xz"))
d43f4296
LC
1060 (sha256
1061 (base32
06438b07 1062 "0iby0xfk5x3cdr0x0gxj5888jjyjhafvaq0l79civ73jjfqmphvy"))))
d43f4296
LC
1063 (build-system gnu-build-system)
1064 (arguments
06438b07 1065 '(#:phases (modify-phases %standard-phases (delete 'configure))
d43f4296
LC
1066 #:tests? #f ; no 'check' target
1067 #:make-flags (list (string-append "prefix="
1068 (assoc-ref %outputs "out")))))
1069 (home-page "http://www.nongnu.org/dmidecode/")
1070 (synopsis "Read hardware information from the BIOS")
1071 (description
1072 "Dmidecode reports information about your system's hardware as described
1073in your system BIOS according to the SMBIOS/DMI standard. This typically
1074includes system manufacturer, model name, serial number, BIOS version, asset
1075tag as well as a lot of other details of varying level of interest and
1076reliability depending on the manufacturer. This will often include usage
1077status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1078module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
f61e0e79 1079 (license license:gpl2+)))
42dc3af5 1080
13c8c2bf
MW
1081(define-public acpica
1082 (package
1083 (name "acpica")
4a462aa7 1084 (version "20171110")
13c8c2bf
MW
1085 (source (origin
1086 (method url-fetch)
1087 (uri (string-append
1088 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1089 version ".tar.gz"))
1090 (sha256
1091 (base32
4a462aa7 1092 "08g83qvhfx04vzb3f3pfpkp0w601v6csjzdv7z1vjzz1k71h7yml"))))
13c8c2bf
MW
1093 (build-system gnu-build-system)
1094 (native-inputs `(("flex" ,flex)
1095 ("bison" ,bison)))
1096 (arguments
1097 '(#:make-flags (list (string-append "PREFIX=" %output)
4a462aa7 1098 "CC=gcc"
13c8c2bf
MW
1099 "HOST=_LINUX"
1100 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1101 #:tests? #f ; no 'check' target.
dc1d3cde 1102 #:phases (modify-phases %standard-phases (delete 'configure))))
6c441efc 1103 (home-page "https://acpica.org/")
35b9e423 1104 (synopsis "Tools for the development and debug of ACPI tables")
13c8c2bf 1105 (description
3908546a 1106 "The ACPI Component Architecture (@dfn{ACPICA}) project provides an
13c8c2bf 1107OS-independent reference implementation of the Advanced Configuration and
3908546a
TGR
1108Power Interface Specification (@dfn{ACPI}). ACPICA code contains those portions
1109of ACPI meant to be directly integrated into the host OS as a kernel-resident
13c8c2bf
MW
1110subsystem, and a small set of tools to assist in developing and debugging ACPI
1111tables. This package contains only the user-space tools needed for ACPI table
1112development, not the kernel implementation of ACPI.")
f61e0e79 1113 (license license:gpl2))) ; Dual GPLv2/ACPICA Licence
4cf7bd2b
MW
1114
1115(define-public stress
1116 (package
1117 (name "stress")
1118 (version "1.0.1")
1119 (source (origin
1120 (method url-fetch)
1121 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1122 version ".orig.tar.gz"))
1123 (sha256
1124 (base32
1125 "1v9vnzlihqfjsxa93hdbrq72pqqk00dkylmlg8jpxhm7s1w9qfl1"))))
1126 (build-system gnu-build-system)
1127 (home-page "http://packages.debian.org/wheezy/stress")
9e771e3b 1128 (synopsis "Impose load on and stress test a computer system")
4cf7bd2b 1129 (description
35b9e423 1130 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
4cf7bd2b
MW
1131or disk stress on a POSIX-compliant operating system and reports any errors it
1132detects.
1133
35b9e423 1134Stress is not a benchmark. It is a tool used by system administrators to
4cf7bd2b
MW
1135evaluate how well their systems will scale, by kernel programmers to evaluate
1136perceived performance characteristics, and by systems programmers to expose
1137the classes of bugs which only or more frequently manifest themselves when the
1138system is under heavy load.")
f61e0e79 1139 (license license:gpl2+)))
b36fcf95
EB
1140
1141(define-public detox
1142 (package
1143 (name "detox")
1144 (version "1.2.0")
1145 (source (origin
1146 (method url-fetch)
de67e922
LF
1147 (uri (string-append "mirror://sourceforge/detox/detox/" version
1148 "/detox-" version ".tar.bz2"))
b36fcf95
EB
1149 (sha256
1150 (base32
1151 "1y6vvjqsg54kl49cry73jbfhr04s7wjs779vrr9zrq6kww7dkymb"))))
1152 (build-system gnu-build-system)
1153 ;; Both flex and popt are used in this case for their runtime libraries
1154 ;; (libfl and libpopt).
1155 (inputs
1156 `(("flex" ,flex)
1157 ("popt" ,popt)))
1158 (arguments
1159 `(#:configure-flags `(,(string-append "--with-popt="
1160 (assoc-ref %build-inputs "popt")))
1161 #:tests? #f)) ;no 'check' target
1162 (home-page "http://detox.sourceforge.net")
e881752c 1163 (synopsis "Clean up file names")
b36fcf95
EB
1164 (description
1165 "Detox is a program that renames files to make them easier to work with
1166under Unix and related operating systems. Spaces and various other unsafe
1167characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1168characters can be replaced as well, as can UTF-8 characters.")
f61e0e79 1169 (license license:bsd-3)))
c4492a16
LC
1170
1171(define-public testdisk
1172 (package
1173 (name "testdisk")
cf91cfc0 1174 (version "7.0")
c4492a16
LC
1175 (source (origin
1176 (method url-fetch)
1177 (uri (string-append "http://www.cgsecurity.org/testdisk-"
1178 version ".tar.bz2"))
1179 (sha256
1180 (base32
cf91cfc0 1181 "0ba4wfz2qrf60vwvb1qsq9l6j0pgg81qgf7fh22siaz649mkpfq0"))))
c4492a16
LC
1182 (build-system gnu-build-system)
1183 (inputs
d6a08ec0 1184 `(("ntfs-3g" ,ntfs-3g)
c4492a16 1185 ("util-linux" ,util-linux)
cc2b77df 1186 ("openssl" ,openssl)
d6a08ec0 1187 ;; FIXME: add reiserfs
f61e0e79 1188 ("zlib" ,zlib)
c4492a16
LC
1189 ("e2fsprogs" ,e2fsprogs)
1190 ("libjpeg" ,libjpeg)
1191 ("ncurses" ,ncurses)))
1192 (home-page "http://www.cgsecurity.org/wiki/TestDisk")
1193 (synopsis "Data recovery tool")
1194 (description
1195 "TestDisk is a program for data recovery, primarily designed to help
1196recover lost partitions and/or make non-booting disks bootable again.")
f61e0e79 1197 (license license:gpl2+)))
c4492a16 1198
15926aec
AS
1199(define-public tree
1200 (package
1201 (name "tree")
1202 (version "1.7.0")
1203 (source (origin
1204 (method url-fetch)
1205 (uri (string-append
1206 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1207 version ".tgz"))
1208 (sha256
1209 (base32 "04kviw799qxly08zb8n5mgxfd96gyis6x69q2qiw86jnh87c4mv9"))))
1210 (build-system gnu-build-system)
1211 (arguments
dc1d3cde 1212 '(#:phases (modify-phases %standard-phases (delete 'configure))
15926aec
AS
1213 #:tests? #f ; no check target
1214 #:make-flags (let ((out (assoc-ref %outputs "out")))
1215 (list (string-append "prefix=" out)))))
1216 (synopsis "Recursively list the contents of a directory")
1217 (description
1218 "Tree is a recursive directory listing command that produces a depth
1219indented listing of files, which is colorized ala dircolors if the LS_COLORS
1220environment variable is set and output is to tty.")
1221 (home-page "http://mama.indstate.edu/users/ice/tree/")
1222 (license license:gpl2+)))
1223
c2619e10
LC
1224(define-public direvent
1225 (package
1226 (name "direvent")
bac67a5a 1227 (version "5.1")
c2619e10
LC
1228 (source (origin
1229 (method url-fetch)
1230 (uri (string-append "mirror://gnu/direvent/direvent-"
1231 version ".tar.gz"))
1232 (sha256
1233 (base32
bac67a5a 1234 "1nwvjmx7kb14ni34c0b8x9a3791pc20gvhj7xaj66d8q4h6n0qf4"))
c2619e10
LC
1235 (modules '((guix build utils)))
1236 (snippet '(substitute* "tests/testsuite"
1237 (("#![[:blank:]]?/bin/sh")
1238 "#!$SHELL")))))
1239 (build-system gnu-build-system)
1240 (arguments
dc1d3cde
KK
1241 '(#:phases
1242 (modify-phases %standard-phases
1243 (add-before 'build 'patch-/bin/sh
1244 (lambda* (#:key inputs #:allow-other-keys)
1245 ;; Use the right shell when executing the watcher and
1246 ;; user-provided shell commands.
1247 (let ((bash (assoc-ref inputs "bash")))
1248 (substitute* '("src/direvent.c" "src/progman.c")
1249 (("\"/bin/sh\"")
1250 (string-append "\"" bash "/bin/sh\"")))
1251
1252 ;; Adjust the 'shell.at' test accordingly.
1253 (substitute* "tests/testsuite"
1254 (("SHELL=/bin/sh")
1255 (string-append "SHELL=" bash "/bin/sh")))
1256
1257 #t))))))
6fd52309 1258 (home-page "https://www.gnu.org/software/direvent/")
c2619e10
LC
1259 (synopsis "Daemon to monitor directories for events such as file removal")
1260 (description
1261 "A daemon that monitors directories for events, such as creating,
35b9e423 1262deleting or modifying files. It can monitor different sets of directories for
c2619e10
LC
1263different events. When an event is detected, direvent calls a specified
1264external program with information about the event, such as the location
c5779c93
LC
1265within the file system where it occurred. Thus, \"direvent\" provides an
1266easy way to react immediately if given files undergo changes, for example, to
c2619e10 1267track changes in important system configuration files.")
f61e0e79 1268 (license license:gpl3+)))
da6c3749
TUBK
1269
1270(define-public libcap-ng
1271 (package
1272 (name "libcap-ng")
1273 (version "0.7.4")
1274 (source (origin
1275 (method url-fetch)
1276 (uri (string-append
1277 "http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1278 version ".tar.gz"))
1279 (sha256
1280 (base32
1281 "0ssvnh4cvhya0c1j6k6192zvqcq7nc0x01fb5nwhr0prfqr0i8j8"))))
1282 (build-system gnu-build-system)
1283 (inputs `(("python" ,python)))
1284 (home-page "http://people.redhat.com/sgrubb/libcap-ng/")
1285 (synopsis "Library for more easily working with POSIX capabilities")
1286 (description
1287 "The libcap-ng library is intended to make programming with POSIX
1288capabilities easier than the traditional libcap library. It includes
1289utilities that can analyse all currently running applications and print out
1290any capabilities and whether or not it has an open ended bounding set. The
1291included utilities are designed to let admins and developers spot apps from
1292various ways that may be running with too much privilege.")
1293 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
f61e0e79 1294 (license (list license:lgpl2.1+ license:gpl2+))))
d02f2cc4
TUBK
1295
1296(define-public smartmontools
1297 (package
1298 (name "smartmontools")
bd2eedd1 1299 (version "6.6")
d02f2cc4
TUBK
1300 (source (origin
1301 (method url-fetch)
1302 (uri (string-append
1303 "mirror://sourceforge/smartmontools/smartmontools/"
1304 version "/smartmontools-" version ".tar.gz"))
1305 (sha256
1306 (base32
bd2eedd1 1307 "0m1hllbb78rr6cxkbalmz1gqkl0psgq8rrmv4gwcmz34n07kvx2i"))))
d02f2cc4
TUBK
1308 (build-system gnu-build-system)
1309 (inputs `(("libcap-ng" ,libcap-ng)))
51b6a1dd 1310 (home-page "https://www.smartmontools.org/")
d02f2cc4
TUBK
1311 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1312 (description
1313 "The smartmontools package contains utility programs to control and
1314monitor storage systems using the Self-Monitoring, Analysis and Reporting
c115b2db
TGR
1315Technology System (@dfn{S.M.A.R.T.}) built into most modern ATA and SCSI hard
1316disks. In many cases, these utilities will provide advanced warning of disk
d02f2cc4 1317degradation and failure.")
f61e0e79 1318 (license license:gpl2+)))
6efd0823
RW
1319
1320(define-public fdupes
1321 (package
1322 (name "fdupes")
47d7b303 1323 (version "1.6.1")
6efd0823
RW
1324 (source
1325 (origin
1326 (method url-fetch)
1327 (uri (string-append
47d7b303 1328 "https://github.com/adrianlopezroche/fdupes/archive/v"
6efd0823 1329 version ".tar.gz"))
47d7b303 1330 (file-name (string-append name "-" version ".tar.gz"))
6efd0823
RW
1331 (sha256
1332 (base32
47d7b303 1333 "1sj9pa40pbz6xdwbxfwhdhkvhdf1xc5gvggk9mdq26c41gdnyswx"))))
6efd0823
RW
1334 (build-system gnu-build-system)
1335 (arguments
e192a230
TGR
1336 '(#:phases (modify-phases %standard-phases
1337 (delete 'configure))
6efd0823 1338 #:tests? #f ; no 'check' target
47d7b303
TGR
1339 #:make-flags (list "CC=gcc"
1340 (string-append "PREFIX="
6efd0823
RW
1341 (assoc-ref %outputs "out")))))
1342 (home-page "https://github.com/adrianlopezroche/fdupes")
1343 (synopsis "Identify duplicate files")
1344 (description
1345 "fdupes is a program for identifying duplicate files residing within
1346specified directories.")
1347 (license license:expat)))
4ecfbda7
DT
1348
1349(define-public graphios
1350 (package
1351 (name "graphios")
1352 (version "2.0.3")
1353 (source
1354 (origin
1355 (method url-fetch)
1356 (uri (string-append
1357 "https://pypi.python.org/packages/source/g/graphios/graphios-"
1358 version ".tar.gz"))
1359 (sha256
1360 (base32
1361 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1362 (build-system python-build-system)
1363 (arguments
1364 ;; Be warned: Building with Python 3 succeeds, but the build process
1365 ;; throws a syntax error that is ignored.
1366 `(#:python ,python-2
1367 #:phases
1368 (modify-phases %standard-phases
1369 (add-before 'build 'fix-setup.py
1370 (lambda* (#:key outputs #:allow-other-keys)
1371 ;; Fix hardcoded, unprefixed file names.
1372 (let ((out (assoc-ref outputs "out")))
1373 (substitute* '("setup.py")
1374 (("/etc") (string-append out "/etc"))
1375 (("/usr") out)
1376 (("distro_ver = .*") "distro_ver = ''"))
1377 #t))))))
4ecfbda7
DT
1378 (home-page "https://github.com/shawn-sterling/graphios")
1379 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1380 (description
1381 "Graphios is a script to emit nagios perfdata to various upstream metrics
1382processing and time-series systems. It's currently compatible with Graphite,
1383Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1384of supported upstream metrics systems simultaneously.")
1385 (license license:gpl2+)))
8d801045
ED
1386
1387(define-public ansible
1388 (package
1389 (name "ansible")
256ecba1 1390 (version "2.4.1.0")
8d801045
ED
1391 (source
1392 (origin
1393 (method url-fetch)
697e86dd 1394 (uri (pypi-uri "ansible" version))
8d801045
ED
1395 (sha256
1396 (base32
256ecba1 1397 "0spv0kjaicwss4q52s727b6grdizcxpa0bbsfg26pgf5kjrayqfs"))
b7866613 1398 (patches (search-patches "ansible-wrap-program-hack.patch"))))
8d801045
ED
1399 (build-system python-build-system)
1400 (native-inputs
f3b98f4f 1401 `(("python2-pycrypto" ,python2-pycrypto)
8d801045
ED
1402 ("python2-httplib2" ,python2-httplib2)
1403 ("python2-passlib" ,python2-passlib)
1404 ("python2-nose" ,python2-nose)
1405 ("python2-mock" ,python2-mock)
1406 ("python2-jinja2" ,python2-jinja2)
1407 ("python2-pyyaml" ,python2-pyyaml)
1408 ("python2-paramiko" ,python2-paramiko)))
1409 (inputs
1410 `(("python2-pycrypto" ,python2-pycrypto)
1411 ("python2-jinja2" ,python2-jinja2)
1412 ("python2-pyyaml" ,python2-pyyaml)
1413 ("python2-paramiko" ,python2-paramiko)))
1414 (arguments
1415 `(#:python ,python-2)) ; incompatible with Python 3
1416 (home-page "http://ansible.com/")
1417 (synopsis "Radically simple IT automation")
1418 (description "Ansible is a radically simple IT automation system. It
1419handles configuration-management, application deployment, cloud provisioning,
1420ad-hoc task-execution, and multinode orchestration - including trivializing
1421things like zero downtime rolling updates with load balancers.")
1422 (license license:gpl3+)))
44157e9f
EB
1423
1424(define-public cpulimit
1425 (package
1426 (name "cpulimit")
1427 (version "0.2")
1428 (source
1429 (origin
1430 (method url-fetch)
1431 (uri (string-append "https://github.com/opsengine/cpulimit/archive/v"
1432 version ".tar.gz"))
1433 (file-name (string-append name "-" version ".tar.gz"))
1434 (sha256
1435 (base32
1436 "1nn2w849xd5bw4y5sqnll29nxdwl5h0cv4smc7dwmpb9qnd2ycb4"))))
1437 (build-system gnu-build-system)
1438 (arguments
1439 `(#:phases (modify-phases %standard-phases
1440 (delete 'configure)
1441 (replace
1442 'build
1443 (lambda _
1444 (zero? (system* "make" "CC=gcc" "-Csrc"))))
1445 (replace
1446 'check
1447 (lambda _
1448 (zero? (system* "make" "CC=gcc" "-Ctests"))))
1449 (replace
1450 'install
1451 (lambda* (#:key outputs #:allow-other-keys)
1452 (let* ((out (assoc-ref outputs "out"))
1453 (bin (string-append out "/bin")))
1454 (install-file "src/cpulimit" bin)))))))
1455 (home-page "https://github.com/opsengine/cpulimit")
1456 (synopsis "Limit CPU usage")
1457 (description
1458 "Cpulimit limits the CPU usage of a process. It does not change the nice
1459value or other scheduling priority settings, but the real CPU usage, and is
1460able to adapt itself dynamically to the overall system load. Children
1461processes and threads of the specified process may optionally share the same
1462limits.")
1463 (license license:gpl2+)))
2328b47c
EB
1464
1465(define-public autojump
1466 (package
1467 (name "autojump")
1d33b9ea 1468 (version "22.3.4")
2328b47c
EB
1469 (source
1470 (origin
1471 (method url-fetch)
1472 (uri (string-append "https://github.com/wting/autojump/archive/"
1473 "release-v" version ".tar.gz"))
1474 (file-name (string-append name "-" version ".tar.gz"))
1475 (sha256
1476 (base32
1d33b9ea 1477 "113rcpr37ngf2xs8da41qdarq5qmj0dwx8ggqy3lhlb0kvqq7g9z"))))
2328b47c
EB
1478 (build-system gnu-build-system)
1479 (native-inputs ;for tests
1480 `(("python-mock" ,python-mock)
1481 ("python-pytest" ,python-pytest)))
1482 (inputs
1483 `(("python" ,python-wrapper)))
1484 (arguments
1485 `(#:phases (modify-phases %standard-phases
1486 (delete 'configure)
1487 (delete 'build)
1488 (replace 'check
1489 (lambda _
1490 (zero?
0c4520d6 1491 (system* "python" "tests/unit/autojump_utils_test.py"))))
2328b47c
EB
1492 (replace 'install
1493 ;; The install.py script doesn't allow system installation
1494 ;; into an arbitrary prefix, so do our own install.
1495 (lambda* (#:key outputs #:allow-other-keys)
1496 (let* ((out (assoc-ref outputs "out"))
1497 (bin (string-append out "/bin"))
1498 (share (string-append out "/share/autojump"))
1499 (py (string-append out "/lib/python"
1500 ,(version-major+minor
1501 (package-version python-wrapper))
1502 "/site-packages"))
1503 (man (string-append out "/share/man/man1")))
1504 (install-file "bin/autojump" bin)
1505 (for-each (λ (f) (install-file f py))
1506 (find-files "bin" "\\.py$"))
1507 (for-each (λ (f) (install-file f share))
1508 (find-files "bin" "autojump\\..*$"))
1509 (substitute* (string-append share "/autojump.sh")
1510 (("/usr/local") out))
1511 (install-file "docs/autojump.1" man)
1512 (wrap-program (string-append bin "/autojump")
1513 `("PYTHONPATH" ":" prefix (,py)))
1514 #t))))))
1515 (home-page "https://github.com/wting/autojump")
8f65585b 1516 (synopsis "Shell extension for file system navigation")
2328b47c 1517 (description
8f65585b 1518 "Autojump provides a faster way to navigate your file system, with a \"cd
2328b47c
EB
1519command that learns\". It works by maintaining a database of the directories
1520you use the most from the command line and allows you to \"jump\" to
1521frequently used directories by typing only a small pattern.")
1522 (license license:gpl3+)))
765973cd
LF
1523
1524(define-public iftop
1525 (package
1526 (name "iftop")
1527 (version "1.0pre4")
1528 (source (origin
1529 (method url-fetch)
1530 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
1531 "/iftop-" version ".tar.gz"))
1532 (sha256
1533 (base32
1534 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
1535 (build-system gnu-build-system)
1536 (inputs
1537 `(("libpcap" ,libpcap)
1538 ("ncurses" ,ncurses)))
1539 (synopsis "Monitor network usage")
1540 (description "Iftop does for network usage what @command{top} does
1541for CPU usage. It listens to network traffic on a named interface and
1542displays a table of current bandwidth usage by pairs of hosts.")
1543 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
d4e21fbb 1544 (license license:gpl2+)))
f1957fc1
PP
1545
1546(define-public munge
1547 (package
1548 (name "munge")
5578a9c6 1549 (version "0.5.13")
f1957fc1
PP
1550 (source (origin
1551 (method url-fetch)
b52ae4de
EF
1552 (uri (string-append "https://github.com/dun/munge/releases/"
1553 "download/munge-" version "/munge-"
1554 version ".tar.xz"))
f1957fc1
PP
1555 (sha256
1556 (base32
5578a9c6 1557 "1nj486bbg1adfg298zck96vgx57kchcypc1zdz1n7w540vyksxcr"))))
f1957fc1
PP
1558 (inputs
1559 `(("openssl" ,openssl)
1560 ("libgcrypt" ,libgcrypt)))
1561 (build-system gnu-build-system)
b52ae4de 1562 (home-page "https://dun.github.io/munge/")
f1957fc1
PP
1563 (synopsis "Cluster computing authentication service")
1564 (description
1565 "Munge is an authentication service for creating and validating
1566credentials. It allows a process to authenticate the UID and GID of another
1567local or remote process within a group of hosts having common users and
1568groups. These hosts form a security realm that is defined by a shared
1569cryptographic key. Clients within this security realm can create and validate
1570credentials without the use of root privileges, reserved ports, or
1571platform-specific methods.")
1572 (license license:gpl3+)))
3d7a157c
RW
1573
1574(define-public audit
1575 (package
1576 (name "audit")
1577 (version "2.4.5")
1578 (source (origin
1579 (method url-fetch)
1580 (uri (string-append "http://people.redhat.com/sgrubb/audit/"
1581 "audit-" version ".tar.gz"))
1582 (sha256
1583 (base32
1584 "1q1q51dvxscbi4kbakmd4bn0xrvwwaiwvaya79925cbrqwzxsg77"))))
1585 (build-system gnu-build-system)
1586 (home-page "http://people.redhat.com/sgrubb/audit/")
1587 (arguments
1588 `(#:configure-flags (list "--with-python=no")
1589 #:phases
1590 (modify-phases %standard-phases
1591 (add-after 'unpack 'fix-tests
1592 (lambda _
1593 ;; In the build environmnte /etc/passwd does not contain an entry
1594 ;; for root/0, so we have to patch the expected value.
1595 (substitute* "auparse/test/auparse_test.ref"
1596 (("=0 \\(root\\)") "=0 (unknown(0))"))
1597 #t)))))
1598 (inputs
1599 `(("openldap" ,openldap)
1bafad56 1600 ("gnutls" ,gnutls)
3d7a157c
RW
1601 ("sasl" ,cyrus-sasl)))
1602 (synopsis "User-space component to the Linux auditing system")
1603 (description
1604 "auditd is the user-space component to the Linux auditing system, which
1605allows logging of system calls made by user-land processes. It's responsible
1606for writing audit records to the disk. Viewing the logs is done with the
1607@code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
1608done with the @code{auditctl} utility.")
1609 (license license:gpl2+)))
d0457553
TUBK
1610
1611(define-public nmap
1612 (package
1613 (name "nmap")
4c6c6838 1614 (version "7.60")
d0457553
TUBK
1615 (source (origin
1616 (method url-fetch)
1617 (uri (string-append "https://nmap.org/dist/nmap-" version
1618 ".tar.bz2"))
1619 (sha256
1620 (base32
4c6c6838 1621 "08bga42ipymmbxd7wy4x5sl26c0ir1fm3n9rc6nqmhx69z66wyd8"))
d0457553
TUBK
1622 (modules '((guix build utils)))
1623 (snippet
1624 '(map delete-file-recursively
1625 ;; Remove bundled lua, pcap, and pcre libraries.
1626 ;; FIXME: Remove bundled liblinear once packaged.
1627 '("liblua"
1628 "libpcap"
1629 "libpcre"
1630 ;; Remove pre-compiled binares.
1631 "mswin32")))))
1632 (build-system gnu-build-system)
1633 (inputs
1634 `(("openssl" ,openssl)
1635 ("libpcap" ,libpcap)
1636 ("pcre" ,pcre)
1637 ("lua" ,lua)
1638 ;; For 'ndiff'.
1639 ("python" ,python-2)))
1640
1641 ;; TODO Add zenmap output.
1642 (outputs '("out" "ndiff"))
1643 (arguments
1644 '(#:configure-flags '("--without-zenmap")
1645 #:phases
1646 (modify-phases %standard-phases
f4dc22bc
MB
1647 (add-after 'configure 'patch-Makefile
1648 (lambda _
1649 (substitute* "Makefile"
1650 ;; Do not attempt to build lua.
1651 (("build-dnet build-lua") "build-dnet"))
1652 #t))
d0457553
TUBK
1653 (replace 'install
1654 (lambda* (#:key outputs #:allow-other-keys)
1655 (define (make out . args)
1656 (unless (zero? (apply system* "make"
1657 (string-append "prefix=" out)
1658 args))
1659 (error "make failed")))
1660 (define (python-path dir)
1661 (string-append dir "/lib/python2.7/site-packages"))
1662 (let ((out (assoc-ref outputs "out"))
1663 (ndiff (assoc-ref outputs "ndiff")))
1664 (for-each mkdir-p (list out ndiff))
1665 (make out
1666 "install-nmap"
1667 "install-nse"
1668 "install-ncat"
1669 "install-nping")
1670 (make ndiff "install-ndiff")
1671 (wrap-program (string-append ndiff "/bin/ndiff")
1672 `("PYTHONPATH" prefix
1673 (,(python-path ndiff)))))))
1674 ;; These are the tests that do not require network access.
1675 (replace 'check
1676 (lambda _ (zero? (system* "make"
1677 "check-nse"
1678 "check-ndiff"
1679 "check-dns")))))
1680 ;; Nmap can't cope with out-of-source building.
1681 #:out-of-source? #f))
1682 (home-page "https://nmap.org/")
1683 (synopsis "Network discovery and security auditing tool")
1684 (description
1685 "Nmap (\"Network Mapper\") is a network discovery and security auditing
1686tool. It is also useful for tasks such as network inventory, managing service
1687upgrade schedules, and monitoring host or service uptime. It also provides an
1688advanced netcat implementation (ncat), a utility for comparing scan
1689results (ndiff), and a packet generation and response analysis tool (nping).")
1690 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
1691 ;; both use a 3-clause BSD license.
1692 (license (list license:nmap license:bsd-3))))
1a0346f0
P
1693
1694(define-public dstat
1695 (package
1696 (name "dstat")
1697 (version "0.7.3")
1698 (source (origin
1699 (method url-fetch)
1700 (uri (string-append
1701 "https://github.com/dagwieers/dstat/archive/"
1702 version ".tar.gz"))
1703 (file-name (string-append "dstat-" version ".tar.gz"))
1704 (sha256
1705 (base32
1706 "16286z3y2lc9nsq8njzjkv6k2vyxrj9xiixj1k3gnsbvhlhkirj6"))))
1707 (build-system gnu-build-system)
1708 (arguments
1709 `(#:tests? #f ;; no make check
1710 #:make-flags (let ((out (assoc-ref %outputs "out")))
1711 (list (string-append "DESTDIR=" out)
1712 "prefix=/"))
1713 ;; no configure script
dc1d3cde 1714 #:phases (modify-phases %standard-phases (delete 'configure))))
1a0346f0
P
1715 (inputs `(("python-2" ,python-2)))
1716 (synopsis "Versatile resource statistics tool")
1717 (description "Dstat is a versatile replacement for @command{vmstat},
1718@command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
1719some of their limitations and adds some extra features, more counters and
1720flexibility. Dstat is handy for monitoring systems during performance tuning
1721tests, benchmarks or troubleshooting.
1722
1723Dstat allows you to view all of your system resources in real-time, you can,
1724e.g., compare disk utilization in combination with interrupts from your IDE
1725controller, or compare the network bandwidth numbers directly with the disk
1726throughput (in the same interval).")
1727 (home-page "http://dag.wiee.rs/home-made/dstat/")
c59f62e9 1728 (license license:gpl2+)))
0405e5f4
EB
1729
1730(define-public thefuck
1731 (package
1732 (name "thefuck")
0a3ecfd2 1733 (version "3.19")
0405e5f4
EB
1734 (source (origin
1735 (method url-fetch)
1736 (uri (string-append "https://github.com/nvbn/thefuck/archive/"
1737 version ".tar.gz"))
1738 (file-name (string-append name "-" version ".tar.gz"))
1739 (sha256
1740 (base32
0a3ecfd2 1741 "191zbvkyc02h0wwd46xwj4zzg7jhlr8xv0ji6knqkgjnk0nvqq01"))
bf5b6fb2 1742 (patches (search-patches "thefuck-test-environ.patch"))))
0405e5f4 1743 (build-system python-build-system)
1c1b67a3 1744 (arguments
bf5b6fb2
EB
1745 '(#:phases
1746 (modify-phases %standard-phases
1747 (delete 'check)
1748 (add-after 'install 'check
1749 (lambda* (#:key inputs outputs #:allow-other-keys)
1750 ;; Tests look for installed package
1751 (add-installed-pythonpath inputs outputs)
1752 ;; Some tests need write access to $HOME.
1753 (setenv "HOME" "/tmp")
1754 (zero? (system* "py.test" "-v")))))))
1c1b67a3 1755 (propagated-inputs
0405e5f4
EB
1756 `(("python-colorama" ,python-colorama)
1757 ("python-decorator" ,python-decorator)
1758 ("python-psutil" ,python-psutil)
1759 ("python-six" ,python-six)))
2d1ac1d1 1760 (native-inputs
1c1b67a3
MB
1761 `(("python-mock" ,python-mock)
1762 ("python-pytest" ,python-pytest)
424b1ae7
MB
1763 ("python-pytest-mock" ,python-pytest-mock)
1764 ;; Requires setuptools >= 17.1 due to some features used, while our
1765 ;; python currently only includes 12.0. TODO: Remove this input.
1766 ("python-setuptools" ,python-setuptools)))
0405e5f4
EB
1767 (home-page "https://github.com/nvbn/thefuck")
1768 (synopsis "Correct mistyped console command")
1769 (description
1770 "The Fuck tries to match a rule for a previous, mistyped command, creates
1771a new command using the matched rule, and runs it.")
1772 (license license:x11)))
61402398
JF
1773
1774(define-public di
1775 (package
1776 (name "di")
f7459997 1777 (version "4.44")
61402398
JF
1778 (source
1779 (origin
1780 (method url-fetch)
1781 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
1782 (sha256
f7459997 1783 (base32 "0803lp8kd3mp1jcm17i019xiqxdy85hhs6xk67zib8gmvg500gcn"))))
61402398
JF
1784 (build-system gnu-build-system)
1785 (arguments
1786 `(#:tests? #f ; Obscure test failures.
1787 #:phases
1788 (modify-phases %standard-phases
1789 (delete 'configure)
1790 (add-before 'build 'setup-environment
1791 (lambda* (#:key outputs #:allow-other-keys)
1792 (setenv "CC" "gcc")
1793 (setenv "prefix" (assoc-ref outputs "out"))
1794 #t)))
1795 #:make-flags (list "--environment-overrides")))
1796 (home-page "https://www.gentoo.com/di/")
1797 (synopsis "Advanced df like disk information utility")
1798 (description
26c6de8b
TGR
1799 "'di' is a disk information utility, displaying everything that your
1800@code{df} command does and more. It features the ability to display your disk
1801usage in whatever format you prefer. It is designed to be highly portable and
1802produce uniform output across heterogeneous networks.")
61402398 1803 (license license:zlib)))
5ec8b02d 1804
1805(define-public cbatticon
1806 (package
1807 (name "cbatticon")
9b9e3503 1808 (version "1.6.7")
5ec8b02d 1809 (source (origin
1810 (method url-fetch)
1811 (uri (string-append "https://github.com/valr/"
1812 name "/archive/" version ".tar.gz"))
1813 (sha256
1814 (base32
9b9e3503 1815 "1s2n49ydh7pznnf02fak4yy0wqkgi9ag7yiw1zg1lhp4m0h37hyh"))
5ec8b02d 1816 (file-name (string-append name "-" version ".tar.gz"))))
1817 (build-system gnu-build-system)
1818 (arguments
1819 `(#:tests? #f ; no tests
1820 #:make-flags
1821 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1822 "CC=gcc")
1823 #:phases
1824 (modify-phases %standard-phases
1825 (delete 'configure)))) ; no configure script
1826 (inputs
1827 `(("gtk+" ,gtk+)
b94a6ca0 1828 ("gettext" ,gettext-minimal)
5ec8b02d 1829 ("libnotify" ,libnotify)))
1830 (native-inputs
1831 `(("pkg-config" ,pkg-config)))
1832 (synopsis "Lightweight battery icon for the system tray")
1833 (description "cbatticon is a lightweight battery icon that displays
1834the status of your battery in the system tray.")
1835 (home-page "https://github.com/valr/cbatticon")
1836 (license license:gpl2+)))
c08533b2 1837
1838(define-public interrobang
1839 (let ((revision "1")
1840 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
1841 (package
1842 (name "interrobang")
1843 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
1844 (source (origin
1845 (method git-fetch)
1846 (uri (git-reference
5f13bf09 1847 (url "https://github.com/TrilbyWhite/interrobang")
c08533b2 1848 (commit commit)))
1849 (file-name (string-append name "-" version))
1850 (sha256
1851 (base32
1852 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
1853 (build-system gnu-build-system)
1854 (arguments
1855 `(#:tests? #f ; no tests
1856 #:phases
1857 (modify-phases %standard-phases
1858 (delete 'configure)) ; no configure script
1859 #:make-flags (list (string-append "PREFIX="
1860 (assoc-ref %outputs "out")))))
1861 (inputs
1862 `(("libx11" ,libx11)))
1863 (native-inputs
1864 `(("pkg-config" ,pkg-config)))
1865 (synopsis "Scriptable launcher menu")
1866 (description "Interrobang is a scriptable launcher menu with a customizable
1867shortcut syntax and completion options.")
1868 (home-page "https://github.com/TrilbyWhite/interrobang")
1869 (license license:gpl3+))))
94c5dc8c
JD
1870
1871
1872
1873(define-public pam-krb5
1874 (package
1875 (name "pam-krb5")
1876 (version "4.7")
1877 (source (origin
1878 (method url-fetch)
1879 (uri (string-append
1880 "https://archives.eyrie.org/software/kerberos/" name "-"
1881 version ".tar.xz"))
1882 (sha256
1883 (base32
1884 "0abf8cfpkprmhw5ca8iyqgrggh65lgqvmfllc1y6qz7zw1gas894"))))
1885 (build-system gnu-build-system)
1886 (arguments
1887 `(#:phases
1888 (modify-phases %standard-phases
1889 (add-before 'configure 'disable-tests
1890 (lambda _
1891 ;; The build container seems to interfere with some tests.
1892 (substitute* "tests/TESTS"
1893 (("module/basic\n") ""))
1894 (substitute* "tests/TESTS"
1895 (("pam-util/vector\n") ""))
1896 #t)))))
1897 (inputs
1898 `(("linux-pam" ,linux-pam)
1899 ("mit-krb5" ,mit-krb5)))
1900 (native-inputs
1901 `(("perl" ,perl)
1902 ("perl-test-pod" ,perl-test-pod))) ; required for tests
1903 (synopsis "Kerberos PAM module")
1904 (description
1905 "Pam-krb5 is a Kerberos PAM module for either MIT Kerberos or Heimdal.
1906It supports ticket refreshing by screen savers, configurable
1907authorization handling, authentication of non-local accounts for network
1908services, password changing, and password expiration, as well as all the
1909standard expected PAM features. It works correctly with OpenSSH, even
1910with ChallengeResponseAuthentication and PrivilegeSeparation enabled,
1911and supports extensive configuration either by PAM options or in
1912krb5.conf or both. PKINIT is supported with recent versions of both MIT
1913Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
1914 (home-page "http://www.eyrie.org/~eagle/software/pam-krb5")
1915 ;; Dual licenced under a homebrew non-copyleft OR GPL (any version)
1916 ;; However, the tarball does not contain a copy of the GPL, so unless
1917 ;; we put one in, we cannot distribute it under GPL without violating
1918 ;; clause requiring us to give all recipients a copy.
1919 (license license:gpl1+)))
1920
1921;;http://archives.eyrie.org/software/kerberos/pam-krb5-4.7.tar.xz
b04ca7a1
DM
1922
1923(define-public sunxi-tools
1924 (package
1925 (name "sunxi-tools")
0c6fc4b7 1926 (version "1.4.2")
b04ca7a1
DM
1927 (source
1928 (origin
1929 (method url-fetch)
1930 (uri (string-append "https://github.com/linux-sunxi/"
1931 "sunxi-tools/archive/v" version ".tar.gz"))
1932 (sha256
0c6fc4b7 1933 (base32 "08iqwj95qw2s7ilhrdi2lkbc8dx64zk5lzz1qk587jr0lla81x41"))
b04ca7a1
DM
1934 (modules '((guix build utils)))
1935 (snippet
1936 ;; Remove binaries contained in the tarball which are only for the
1937 ;; target and can be regenerated anyway.
1938 '(delete-file-recursively "bin"))
1939 (file-name (string-append name "-" version ".tar.gz"))))
1940 (native-inputs
faa6bdf8
DM
1941 `(("pkg-config" ,pkg-config)
1942 ("cross-gcc" ,(cross-gcc "arm-linux-gnueabihf"
1943 #:xbinutils (cross-binutils "arm-linux-gnueabihf")
1944 #:libc (cross-libc "arm-linux-gnueabihf")))
1945 ("cross-libc" ,(cross-libc "arm-linux-gnueabihf"))))
b04ca7a1
DM
1946 (inputs
1947 `(("libusb" ,libusb)))
1948 (build-system gnu-build-system)
1949 (arguments
faa6bdf8 1950 `(#:tests? #f ; no tests exist
b04ca7a1
DM
1951 #:make-flags (list (string-append "PREFIX="
1952 (assoc-ref %outputs "out"))
faa6bdf8
DM
1953 (string-append "CROSS_COMPILE="
1954 "arm-linux-gnueabihf-")
1955 "CC=gcc")
b04ca7a1
DM
1956 #:phases
1957 (modify-phases %standard-phases
b054b26a 1958 (delete 'configure)
faa6bdf8
DM
1959 (add-before 'build 'set-environment-up
1960 (lambda* (#:key make-flags #:allow-other-keys)
1961 (define (cross? x)
1962 (string-contains x "cross-arm-linux"))
1963 (setenv "CROSS_C_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))
1964 (setenv "CROSS_CPLUS_INCLUDE_PATH" (getenv "CPLUS_INCLUDE_PATH"))
1965 (setenv "CROSS_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
1966 (for-each
1967 (lambda (env-name)
1968 (let* ((env-value (getenv env-name))
1969 (search-path (search-path-as-string->list env-value))
1970 (new-search-path (filter (lambda (e) (not (cross? e)))
1971 search-path))
1972 (new-env-value (list->search-path-as-string
1973 new-search-path ":")))
1974 (setenv env-name new-env-value)))
1975 '("C_INCLUDE_PATH" "CPLUS_INCLUDE_PATH" "LIBRARY_PATH"))
1976 #t))
1977 (replace 'build
1978 (lambda* (#:key make-flags #:allow-other-keys)
1979 (zero? (apply system* "make" "tools" "misc" make-flags))))
1980 (add-after 'build 'build-armhf
1981 (lambda* (#:key make-flags #:allow-other-keys)
1982 (zero? (apply system* "make" "target-tools" make-flags))))
b054b26a
DM
1983 (replace 'install
1984 (lambda* (#:key make-flags #:allow-other-keys)
1985 (zero? (apply system* "make" "install-all" "install-misc"
1986 make-flags)))))))
b04ca7a1
DM
1987 (home-page "https://github.com/linux-sunxi/sunxi-tools")
1988 (synopsis "Hardware management tools for Allwinner computers")
1989 (description "This package contains tools for Allwinner devices:
1990@enumerate
1991@item @command{sunxi-fexc}, @command{bin2fex}, @command{fex2bin}: Compile
1992a textual description of a board (.fex) to a binary representation (.bin).
1993@item @command{sunxi-fel}: Puts an Allwinner device into FEL mode which
1994makes it register as a special USB device (rather than USB host).
1995You can then connect it to another computer and flash it from there.
1996@item @command{sunxi-nand-part}: Partitions NAND flash.
1997@item @command{sunxi-bootinfo}: Reads out boot0 and boot1 (Allwinner
1998bootloader) parameters.
1999@item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
2000in order to be able to find it.
2001@item @command{sunxi-meminfo}: Prints memory bus settings.
b054b26a 2002@item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
b04ca7a1
DM
2003@end enumerate")
2004 (license license:gpl2+)))
a054777e 2005
2006(define-public sedsed
2007 (package
2008 (name "sedsed")
2009 (version "1.0")
2010 (source
2011 (origin
2012 (method url-fetch)
2013 (uri (string-append "https://github.com/aureliojargas/sedsed/"
2014 "archive/v" version ".tar.gz"))
2015 (file-name (string-append name "-" version ".tar.gz"))
2016 (sha256
2017 (base32
2018 "0139jkqvm8ipiwfj7k69ry2f9b1ffgpk79arpz4r7w9kf6h23bnh"))))
2019 (build-system python-build-system)
2020 (arguments
2021 `(#:tests? #f ; No tests.
2022 #:python ,python-2
2023 #:phases
2024 (modify-phases %standard-phases
2025 (add-after 'unpack 'patch-sed-in
2026 (lambda _
2027 (substitute* "sedsed.py"
2028 (("sedbin = 'sed'")
2029 (string-append "sedbin = '" (which "sed") "'")))
2030 #t))
2031 (delete 'build)
2032 (replace 'install
2033 (lambda* (#:key outputs #:allow-other-keys)
2034 (let* ((out (assoc-ref outputs "out"))
2035 (bin (string-append out "/bin")))
2036 ;; Just one file to copy around
2037 (install-file "sedsed.py" bin)
2038 #t)))
2039 (add-after 'install 'symlink
2040 ;; Create 'sedsed' symlink to "sedsed.py".
2041 (lambda* (#:key outputs #:allow-other-keys)
2042 (let* ((out (assoc-ref outputs "out"))
2043 (bin (string-append out "/bin"))
2044 (sed (string-append bin "/sedsed"))
2045 (sedpy (string-append bin "/sedsed.py")))
2046 (symlink sedpy sed)
2047 #t))))))
2048 (home-page "http://aurelio.net/projects/sedsed")
2049 (synopsis "Sed sed scripts")
2050 (description
2051 "@code{sedsed} can debug, indent, tokenize and HTMLize your sed(1) script.
2052
2053In debug mode it reads your script and add extra commands to it. When
2054executed you can see the data flow between the commands, revealing all the
2055magic sed does on its internal buffers.
2056
2057In indent mode your script is reformatted with standard spacing.
2058
2059In tokenize mode you can see the elements of every command you use.
2060
2061In HTMLize mode your script is converted to a beautiful colored HTML file,
2062with all the commands and parameters identified for your viewing pleasure.
2063
2064With sedsed you can master any sed script. No more secrets, no more hidden
2065buffers.")
2066 (license license:expat)))
d10fa5c7
RW
2067
2068(define-public intel-gpu-tools
2069 (package
2070 (name "intel-gpu-tools")
2071 (version "1.18")
2072 (source (origin
2073 (method url-fetch)
2074 (uri (string-append "https://cgit.freedesktop.org/xorg/app/"
2075 "intel-gpu-tools/snapshot/"
2076 "intel-gpu-tools-" version ".tar.gz"))
2077 (sha256
2078 (base32
2079 "0w7djk0y5w76hzn1b3cm39zd5c6w9za1wfn80wd857h0v313rzq3"))))
2080 (build-system gnu-build-system)
2081 (arguments
2082 `(#:tests? #f ; many of the tests try to load kernel modules
2083 #:phases
2084 (modify-phases %standard-phases
2085 (add-after 'unpack 'autogen
2086 (lambda _
2087 ;; Don't run configure in this phase
2088 (setenv "NOCONFIGURE" "1")
2089 (zero? (system* "sh" "autogen.sh")))))))
2090 (inputs
2091 `(("util-macros" ,util-macros)
2092 ("libdrm" ,libdrm)
2093 ("libpciaccess" ,libpciaccess)
2094 ("kmod" ,kmod)
2095 ("procps" ,procps)
2096 ("cairo" ,cairo)
2097 ("libunwind" ,libunwind)
2098 ("libxrandr" ,libxrandr)
2099 ("glib" ,glib)))
2100 (native-inputs
2101 `(("autoconf" ,autoconf)
2102 ("automake" ,automake)
2103 ("libtool" ,libtool)
2104 ("pkg-config" ,pkg-config)))
2105 (home-page "https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/")
2106 (synopsis "Tools for development and testing of the Intel DRM driver")
2107 (description "Intel GPU Tools is a collection of tools for development and
2108testing of the Intel DRM driver. There are many macro-level test suites that
2109get used against the driver, including xtest, rendercheck, piglit, and
2110oglconform, but failures from those can be difficult to track down to kernel
2111changes, and many require complicated build procedures or specific testing
2112environments to get useful results. Therefore, Intel GPU Tools includes
2113low-level tools and tests specifically for development and testing of the
2114Intel DRM Driver.")
2115 (license license:expat)))
c1aba1a7 2116
b611f9c2
BS
2117(define-public fabric
2118 (package
2119 (name "fabric")
f58be417 2120 (version "1.13.2")
b611f9c2
BS
2121 (source
2122 (origin
2123 (method url-fetch)
2124 (uri (pypi-uri "Fabric" version))
2125 (sha256
2126 (base32
f58be417 2127 "0k944dxr41whw7ib6380q9x15wyskx7fqni656icdn8rzshn9bwq"))))
b611f9c2
BS
2128 (build-system python-build-system)
2129 (arguments
f58be417 2130 `(#:python ,python-2)) ; Python 2 only
1b5b24c9 2131 (native-inputs
f58be417
TGR
2132 `(("python2-fudge" ,python2-fudge)
2133 ("python2-jinja2" ,python2-jinja2)
2134 ("python2-nose" ,python2-nose)))
b611f9c2 2135 (propagated-inputs
b611f9c2
BS
2136 `(("python2-paramiko" ,python2-paramiko)))
2137 (home-page "http://fabfile.org")
2138 (synopsis "Simple Pythonic remote execution and deployment tool")
2139 (description
2140 "Fabric is designed to upload files and run shell commands on a number of
2141servers in parallel or serially. These commands are grouped in tasks (which
2142are regular Python functions) and specified in a @dfn{fabfile}.
2143
2144It is similar to Capistrano, except it's implemented in Python and doesn't
2145expect you to be deploying Rails applications. Fabric is a simple, Pythonic
2146tool for remote execution and deployment.")
2147 (license license:bsd-2)))
6e75ea48
EJ
2148
2149(define-public neofetch
2150 (package
2151 (name "neofetch")
378140e5 2152 (version "3.3.0")
6e75ea48
EJ
2153 (source (origin
2154 (method url-fetch)
2155 (uri (string-append "https://github.com/dylanaraps/neofetch/"
2156 "archive/" version ".tar.gz"))
2157 (file-name (string-append name "-" version ".tar.gz"))
2158 (sha256
2159 (base32
378140e5 2160 "15p69q0jchfms1fpb4i7kq8b28w2xpgh2zmynln618qxv1myf228"))))
6e75ea48
EJ
2161 (build-system gnu-build-system)
2162 (arguments
378140e5 2163 `(#:tests? #f ; there are no tests
6e75ea48
EJ
2164 #:make-flags
2165 (list (string-append "PREFIX=" %output))
2166 #:phases
2167 (modify-phases %standard-phases
2168 (add-after 'unpack 'patch-target-directories
2169 (lambda* (#:key outputs #:allow-other-keys)
2170 (let ((out (assoc-ref outputs "out")))
2171 (substitute* "Makefile"
2172 (("\\$\\(DESTDIR\\)/etc/")
2173 "$(PREFIX)/etc/"))
2174 (substitute* "neofetch"
2175 (("\"/etc/neofetch")
2176 (string-append "\"" out "/etc/neofetch"))
2177 (("\"/usr/share/neofetch")
af79852c 2178 (string-append "\"" out "/share/neofetch"))))
6e75ea48 2179 #t))
378140e5
TGR
2180 (delete 'configure) ; no configure script
2181 (replace 'install
2182 (lambda* (#:key make-flags outputs #:allow-other-keys)
2183 (let* ((out (assoc-ref outputs "out"))
2184 (doc (string-append out "/share/doc/" ,name "-" ,version))
2185 (etc (string-append doc "/examples/etc")))
2186 (zero? (apply system* `("make" ,@make-flags
2187 ,(string-append "SYSCONFDIR=" etc)
2188 "install")))))))))
6e75ea48
EJ
2189 (home-page "https://github.com/dylanaraps/neofetch")
2190 (synopsis "System info script")
2191 (description "Neofetch is a CLI system information tool written in Bash.
2192Neofetch displays information about your system next to an image, your OS
2193logo, or any ASCII file of your choice. The main purpose of Neofetch is to be
2194used in screenshots to show other users what operating system or distribution
2195you are running, what theme or icon set you are using, etc.")
2196 (license license:expat)))
a76ca052
EJ
2197
2198(define-public nnn
2199 (package
2200 (name "nnn")
913027f3 2201 (version "1.5")
a76ca052
EJ
2202 (source (origin
2203 (method url-fetch)
2204 (uri (string-append "https://github.com/jarun/nnn/"
2205 "archive/v" version ".tar.gz"))
2206 (file-name (string-append name "-" version ".tar.gz"))
2207 (sha256
2208 (base32
913027f3 2209 "0zswf8lb29zr1z642i1d0zi1y2mxal8qjqdrpdiqjh197jamj3zm"))))
a76ca052
EJ
2210 (build-system gnu-build-system)
2211 (inputs `(("ncurses" ,ncurses)
2212 ("readline" ,readline)))
2213 (arguments
2214 '(#:tests? #f ; no tests
2215 #:phases
2216 ;; We do not provide `ncurses.h' within an `ncursesw'
2217 ;; sub-directory, so patch the source accordingly. See
2218 ;; <http://bugs.gnu.org/19018>.
2219 ;; Thanks to gtypist maintainer.
2220 (modify-phases %standard-phases
2221 (add-after 'unpack 'patch-curses-lib
2222 (lambda* (#:key outputs #:allow-other-keys)
2223 (let ((out (assoc-ref outputs "out")))
2224 (substitute* "Makefile"
2225 (("-lncursesw")
2226 "-lncurses"))
2227 (substitute* "nnn.c"
2228 (("ncursesw\\/curses.h")
2229 "ncurses.h")))
2230 #t))
2231 (delete 'configure))
2232 #:make-flags
2233 (list
2234 (string-append "PREFIX="
2235 (assoc-ref %outputs "out"))
2236 (string-append "-Wl,-rpath="
2237 %output "/lib")
2238 "CC=gcc")))
2239 (home-page "https://github.com/jarun/nnn")
2240 (synopsis "Terminal file browser")
2241 (description "@command{nnn} is a fork of @command{noice}, a blazing-fast
2242lightweight terminal file browser with easy keyboard shortcuts for
2243navigation, opening files and running tasks. There is no config file and
2244mime associations are hard-coded. The incredible user-friendliness and speed
2245make it a perfect utility on modern distros.")
2246 (license license:bsd-2)))
58989684
CAW
2247
2248(define-public thermald
2249 (package
2250 (name "thermald")
2251 (version "1.6")
2252 (source
2253 (origin
2254 (method url-fetch)
2255 (uri (string-append "https://github.com/01org/thermal_daemon/archive/v"
2256 version ".tar.gz"))
1b6d3b7a 2257 (file-name (string-append name "-" version ".tar.gz"))
58989684
CAW
2258 (sha256 (base32
2259 "14klz9fnvi9jdlaqwrp61xa5nh051n8ykrs1fh1wxd7j66qf2fn6"))))
2260 (build-system gnu-build-system)
2261 (arguments
2262 `(#:phases (modify-phases %standard-phases
2263 (add-after
2264 'unpack 'autogen.sh-and-fix-paths
2265 (lambda* (#:key outputs #:allow-other-keys)
2266 (let ((out (assoc-ref outputs "out")))
2267 ;; upstartconfir is hardcoded to /etc/init and the build
2268 ;; system tries to mkdir that. We don't even need upstart
2269 ;; files at all; this is a fast and kludgy workaround
2270 (substitute* "data/Makefile.am"
2271 (("upstartconfdir = /etc/init")
2272 (string-append "upstartconfdir = "
2273 out "/etc/init")))
2274 ;; Now run autogen
2275 (zero? (system* "sh" "autogen.sh"))))))
2276 #:configure-flags
2277 (let ((out (assoc-ref %outputs "out")))
2278 (list (string-append "--sysconfdir="
2279 out "/etc")
2280 (string-append "--with-udev-dir="
2281 out "/lib/udev")
2282 (string-append "--with-dbus-sys-dir="
2283 out "/etc/dbus-1/system.d")
2284 "--localstatedir=/var"))))
2285 (native-inputs
2286 `(("autoconf" ,autoconf)
2287 ("automake" ,automake)
2288 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
2289 ("pkg-config" ,pkg-config)))
2290 (inputs
2291 `(("dbus-glib" ,dbus-glib)
2292 ("libxml2" ,libxml2)))
2293 (home-page "https://01.org/linux-thermal-daemon/")
2294 (synopsis "CPU scaling for thermal management")
2295 (description "The Linux Thermal Daemon helps monitor and control temperature
2296on systems running the Linux kernel.")
86ee7625
EF
2297 ;; arm and aarch64 don't have cpuid.h
2298 (supported-systems '("i686-linux" "x86_64-linux"))
58989684 2299 (license license:gpl2+)))
d7c64ad5
LF
2300
2301(define-public masscan
2302 (package
2303 (name "masscan")
2304 (version "1.0.4")
2305 (source (origin
2306 (method url-fetch)
2307 (uri (string-append "https://github.com/robertdavidgraham/masscan"
2308 "/archive/" version ".tar.gz"))
2309 (sha256
2310 (base32
2311 "1y9af345g00z83rliv6bmlqg37xwc7xpnx5xqdgmjikzcxgk9pji"))))
2312 (build-system gnu-build-system)
2313 (inputs
2314 `(("libpcap" ,libpcap)))
2315 (arguments
2316 '(#:test-target "regress"
2317 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2318 #:phases
2319 (modify-phases %standard-phases
2320 (delete 'configure) ; There is no ./configure script
2321 (add-after 'unpack 'patch-path
2322 (lambda* (#:key outputs inputs #:allow-other-keys)
2323 (let* ((out (assoc-ref outputs "out"))
2324 (pcap (assoc-ref inputs "libpcap")))
2325 (substitute* "src/rawsock-pcap.c"
2326 (("libpcap.so") (string-append pcap "/lib/libpcap.so")))
2327 #t))))))
2328 (synopsis "TCP port scanner")
2329 (description "MASSCAN is an asynchronous TCP port scanner. It can detect
2330open ports, and also complete the TCP connection and interact with the remote
2331application, collecting the information received.")
2332 (home-page "https://github.com/robertdavidgraham/masscan")
2333 ;; 'src/siphash24.c' is the SipHash reference implementation, which
2334 ;; bears a CC0 Public Domain Dedication.
2335 (license license:agpl3+)))
82d57f12
TGR
2336
2337(define-public hungrycat
2338 (package
2339 (name "hungrycat")
2340 (version "0.4.1")
2341 (source (origin
2342 (method url-fetch)
2343 (uri (string-append "https://github.com/jwilk/hungrycat/"
2344 "releases/download/" version "/"
2345 name "-" version ".tar.gz"))
2346 (sha256
2347 (base32
2348 "03fc1zsrf99lvxa7b4ps6pbi43304wbxh1f6ci4q0vkal370yfwh"))))
2349 (build-system gnu-build-system)
2350 (native-inputs
2351 ;; For tests.
2352 `(("python" ,python-wrapper)
2353 ("python-nose" ,python-nose)))
2354 (arguments
2355 `(#:test-target "test"))
2356 (synopsis "A single tool that combines @command{cat} & @command{rm}")
2357 (description
2358 "hungrycat prints the contents of a file to standard output, while
2359simultaneously freeing the disk space it occupied. It is useful if you need
2360to process a large file, don't have enough space to store both the input and
2361output files, and don't need the input file afterwards.
2362While similar in principle to running @command{cat} immediately followed by
2363@command{rm}, @command{hungrycat} actually frees blocks as soon as they are
2364printed instead of after the entire file has been read, which is often too
2365late.")
2366 (home-page "https://jwilk.net/software/hungrycat")
2367 (license license:expat)))