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