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