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