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) |
c773aba8 | 32 | #:use-module (guix build-system trivial) |
59a43334 | 33 | #:use-module (gnu packages) |
c73d4c92 | 34 | #:use-module (gnu packages base) |
9a9e72d5 | 35 | #:use-module (gnu packages ncurses) |
9927622f | 36 | #:use-module (gnu packages readline) |
f15164e7 LC |
37 | #:use-module (gnu packages linux) |
38 | #:use-module (gnu packages guile) | |
1dba6407 | 39 | #:use-module (gnu packages gettext) |
c73d4c92 | 40 | #:use-module (gnu packages perl) |
87216303 | 41 | #:use-module (gnu packages tcl) |
f61e0e79 | 42 | #:use-module (gnu packages compression) |
b5b73a82 | 43 | #:use-module ((gnu packages openssl) #:prefix o:) |
61bdd0d8 LC |
44 | #:use-module (gnu packages gnutls) |
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") | |
9927622f | 155 | (version "1.9.2") |
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 | |
d525da85 LC |
162 | "04wrm0v7l4890mmbaawd6wjwdv08bkglgqhpz0q4dkb0l50fl8q4")) |
163 | (patches (list (search-patch "inetutils-syslogd.patch"))))) | |
1df895b0 | 164 | (build-system gnu-build-system) |
01eafd38 | 165 | (arguments `(;; FIXME: `tftp.sh' relies on `netstat' from utils-linux, |
1df895b0 LC |
166 | ;; which is currently missing. |
167 | #:tests? #f)) | |
9927622f LC |
168 | (inputs `(("ncurses" ,ncurses) |
169 | ("readline" ,readline))) ; for 'ftp' | |
d525da85 LC |
170 | |
171 | ;; Help2man is needed because of the patch that modifies syslogd.c. | |
172 | (native-inputs `(("help2man" ,help2man))) | |
173 | ||
1df895b0 | 174 | (home-page "http://www.gnu.org/software/inetutils/") |
f50d2669 | 175 | (synopsis "Basic networking utilities") |
1df895b0 | 176 | (description |
a22dc0c4 LC |
177 | "Inetutils is a collection of common network programs, such as an ftp |
178 | client and server, a telnet client and server, and an rsh client and server.") | |
f61e0e79 | 179 | (license license:gpl3+))) |
9a9e72d5 LC |
180 | |
181 | (define-public shadow | |
182 | (package | |
183 | (name "shadow") | |
184 | (version "4.1.5.1") | |
185 | (source (origin | |
aaff68ee LC |
186 | ;; Shadow has no real upstream, and not even tarballs. |
187 | ;; See <https://lists.gnu.org/archive/html/guix-devel/2014-03/msg00233.html>. | |
188 | (method git-fetch) | |
189 | (uri (git-reference | |
190 | (url "git://git.debian.org/git/pkg-shadow/shadow") | |
191 | (commit (string-append "upstream/" version)))) | |
9a9e72d5 LC |
192 | (sha256 |
193 | (base32 | |
aaff68ee | 194 | "1xx85d83kmacmjzqbamgydcjkwsqd5fi1s2wgwx6myq5wa39qx0n")))) |
9a9e72d5 LC |
195 | (build-system gnu-build-system) |
196 | (arguments | |
197 | '(;; Assume System V `setpgrp (void)', which is the default on GNU | |
198 | ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.) | |
199 | #:configure-flags '("--with-libpam" "ac_cv_func_setpgrp_void=yes") | |
200 | ||
201 | #:phases (alist-cons-before | |
202 | 'build 'set-nscd-file-name | |
203 | (lambda* (#:key inputs #:allow-other-keys) | |
204 | ;; Use the right file name for nscd. | |
205 | (let ((libc (assoc-ref inputs "libc"))) | |
206 | (substitute* "lib/nscd.c" | |
207 | (("/usr/sbin/nscd") | |
208 | (string-append libc "/sbin/nscd"))))) | |
209 | (alist-cons-after | |
210 | 'install 'remove-groups | |
211 | (lambda* (#:key outputs #:allow-other-keys) | |
212 | ;; Remove `groups', which is already provided by Coreutils. | |
213 | (let* ((out (assoc-ref outputs "out")) | |
214 | (bin (string-append out "/bin")) | |
215 | (man (string-append out "/share/man/man1"))) | |
216 | (delete-file (string-append bin "/groups")) | |
217 | (for-each delete-file (find-files man "^groups\\.")) | |
218 | #t)) | |
8d846470 | 219 | %standard-phases)))) |
9a9e72d5 LC |
220 | |
221 | (inputs (if (string-suffix? "-linux" | |
222 | (or (%current-target-system) | |
223 | (%current-system))) | |
224 | `(("linux-pam" ,linux-pam)) | |
225 | '())) | |
226 | (home-page "http://pkg-shadow.alioth.debian.org/") | |
227 | (synopsis "Authentication-related tools such as passwd, su, and login") | |
228 | (description | |
229 | "Shadow provides a number of authentication-related tools, including: | |
230 | login, passwd, su, groupadd, and useradd.") | |
231 | ||
232 | ;; The `vipw' program is GPLv2+. | |
233 | ;; libmisc/salt.c is public domain. | |
f61e0e79 | 234 | (license license:bsd-3))) |
1e151896 LC |
235 | |
236 | (define-public mingetty | |
237 | (package | |
238 | (name "mingetty") | |
239 | (version "1.08") | |
240 | (source (origin | |
241 | (method url-fetch) | |
242 | (uri (string-append "mirror://sourceforge/mingetty/mingetty-" | |
243 | version ".tar.gz")) | |
244 | (sha256 | |
245 | (base32 | |
246 | "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g")))) | |
247 | (build-system gnu-build-system) | |
248 | (arguments | |
249 | `(#:phases (alist-replace 'configure | |
250 | (lambda* (#:key inputs outputs | |
251 | #:allow-other-keys) | |
252 | (let* ((out (assoc-ref outputs "out")) | |
253 | (man8 (string-append | |
254 | out "/share/man/man8")) | |
255 | (sbin (string-append out "/sbin")) | |
256 | (shadow (assoc-ref inputs "shadow")) | |
257 | (login (string-append shadow | |
258 | "/bin/login"))) | |
259 | (substitute* "Makefile" | |
260 | (("^SBINDIR.*") | |
261 | (string-append "SBINDIR = " out | |
262 | "/sbin\n")) | |
263 | (("^MANDIR.*") | |
264 | (string-append "MANDIR = " out | |
265 | "/share/man/man8\n"))) | |
266 | ||
267 | ;; Pick the right 'login' by default. | |
268 | (substitute* "mingetty.c" | |
269 | (("\"/bin/login\"") | |
270 | (string-append "\"" login "\""))) | |
271 | ||
272 | (mkdir-p sbin) | |
273 | (mkdir-p man8))) | |
274 | %standard-phases) | |
275 | #:tests? #f)) ; no tests | |
276 | (inputs `(("shadow" ,shadow))) | |
277 | ||
278 | (home-page "http://sourceforge.net/projects/mingetty") | |
279 | (synopsis "Getty for the text console") | |
280 | (description | |
281 | "Small console getty that is started on the Linux text console, | |
282 | asks for a login name and then transfers over to 'login'. It is extended to | |
283 | allow automatic login and starting any app.") | |
f61e0e79 | 284 | (license license:gpl2+))) |
c773aba8 LC |
285 | |
286 | (define-public net-base | |
287 | (package | |
288 | (name "net-base") | |
db719df7 | 289 | (version "5.3") |
c773aba8 LC |
290 | (source (origin |
291 | (method url-fetch) | |
292 | (uri (string-append | |
34af3684 | 293 | "mirror://debian/pool/main/n/netbase/netbase_" |
db719df7 | 294 | version ".tar.xz")) |
c773aba8 LC |
295 | (sha256 |
296 | (base32 | |
db719df7 | 297 | "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1")))) |
c773aba8 LC |
298 | (build-system trivial-build-system) |
299 | (arguments | |
300 | `(#:modules ((guix build utils)) | |
301 | #:builder (begin | |
302 | (use-modules (guix build utils) | |
303 | (srfi srfi-26)) | |
304 | ||
305 | (let* ((source (assoc-ref %build-inputs "source")) | |
306 | (tar (assoc-ref %build-inputs "tar")) | |
db719df7 | 307 | (xz (assoc-ref %build-inputs "xz")) |
c773aba8 LC |
308 | (output (assoc-ref %outputs "out")) |
309 | (etc (string-append output "/etc"))) | |
db719df7 | 310 | (setenv "PATH" (string-append xz "/bin")) |
c773aba8 LC |
311 | (system* (string-append tar "/bin/tar") "xvf" |
312 | source) | |
313 | (chdir ,(string-append "netbase-" version)) | |
314 | (mkdir-p etc) | |
315 | (for-each copy-file | |
316 | '("etc-services" "etc-protocols" "etc-rpc") | |
317 | (map (cut string-append etc "/" <>) | |
318 | '("services" "protocols" "rpc"))) | |
319 | #t)))) | |
320 | (native-inputs `(("tar" ,tar) | |
f61e0e79 | 321 | ("xz" ,xz))) |
c773aba8 LC |
322 | (synopsis "IANA protocol, port, and RPC number assignments") |
323 | (description | |
324 | "This package provides the /etc/services, /etc/protocols, and /etc/rpc | |
325 | files, which contain information about the IANA-assigned port, protocol, and | |
326 | ONC RPC numbers") | |
327 | (home-page "http://packages.debian.org/sid/netbase") | |
f61e0e79 | 328 | (license license:gpl2))) |
94c4a58a LC |
329 | |
330 | (define-public netcat | |
331 | (package | |
332 | (name "netcat") | |
333 | (version "0.7.1") | |
334 | (source (origin | |
335 | (method url-fetch) | |
336 | (uri (string-append "mirror://sourceforge/netcat/netcat-" | |
337 | version ".tar.bz2")) | |
338 | (sha256 | |
339 | (base32 | |
340 | "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm")))) | |
341 | (build-system gnu-build-system) | |
0e4e89c2 MW |
342 | (arguments |
343 | `(#:configure-flags | |
344 | ;; By default, man and info pages are put in PREFIX/{man,info}, | |
345 | ;; but we want them in PREFIX/share/{man,info}. | |
346 | (let ((out (assoc-ref %outputs "out"))) | |
347 | (list (string-append "--mandir=" out "/share/man") | |
348 | (string-append "--infodir=" out "/share/info"))))) | |
94c4a58a LC |
349 | (home-page "http://netcat.sourceforge.net") |
350 | (synopsis "Read and write data over TCP/IP") | |
351 | (description | |
352 | "Netcat is a featured networking utility which reads and writes data | |
353 | across network connections, using the TCP/IP protocol. It is designed to be a | |
354 | reliable \"back-end\" tool that can be used directly or easily driven by other | |
35b9e423 | 355 | programs and scripts. At the same time, it is a feature-rich network debugging |
94c4a58a LC |
356 | and exploration tool, since it can create almost any kind of connection you |
357 | would need and has several interesting built-in capabilities.") | |
f61e0e79 | 358 | (license license:gpl2+))) |
d038cac1 LC |
359 | |
360 | (define-public alive | |
361 | (package | |
362 | (name "alive") | |
363 | (version "2.0.2") | |
364 | (source (origin | |
365 | (method url-fetch) | |
366 | (uri (string-append "mirror://gnu/alive/alive-" | |
367 | version ".tar.xz")) | |
368 | (sha256 | |
369 | (base32 | |
370 | "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j")))) | |
371 | (build-system gnu-build-system) | |
372 | (arguments '(#:configure-flags '("alive_cv_nice_ping=yes"))) | |
373 | (inputs `(("guile" ,guile-2.0) | |
374 | ("inetutils" ,inetutils))) | |
375 | (home-page "http://www.gnu.org/software/alive/") | |
376 | (synopsis "Autologin and keep-alive daemon") | |
377 | (description | |
378 | "GNU Alive sends periodic pings to a server, generally to keep a | |
379 | connection alive.") | |
f61e0e79 | 380 | (license license:gpl3+))) |
c73d4c92 LC |
381 | |
382 | (define-public isc-dhcp | |
383 | (package | |
384 | (name "isc-dhcp") | |
447ce591 | 385 | (version "4.3.1") |
c73d4c92 LC |
386 | (source (origin |
387 | (method url-fetch) | |
388 | (uri (string-append "http://ftp.isc.org/isc/dhcp/" | |
389 | version "/dhcp-" version ".tar.gz")) | |
390 | (sha256 | |
391 | (base32 | |
447ce591 | 392 | "1w4s7sni1m9223ya8m2a64lr62845c6xlraprjf8zfx6lylbqv16")))) |
c73d4c92 LC |
393 | (build-system gnu-build-system) |
394 | (arguments | |
395 | '(#:phases (alist-cons-after | |
396 | 'configure 'post-configure | |
397 | (lambda* (#:key outputs #:allow-other-keys) | |
398 | ;; Point to the right client script, which will be | |
399 | ;; installed in a later phase. | |
400 | (substitute* "includes/dhcpd.h" | |
401 | (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*") | |
402 | (let ((out (assoc-ref outputs "out"))) | |
403 | (string-append "#define _PATH_DHCLIENT_SCRIPT \"" | |
404 | out "/libexec/dhclient-script" | |
405 | "\"\n")))) | |
406 | ||
407 | ;; During the 'build' phase, 'bind.tar.gz' is extracted, so | |
408 | ;; we must patch shebangs in there and make sure the right | |
409 | ;; shell is used. | |
410 | (with-directory-excursion "bind" | |
411 | (substitute* "Makefile" | |
412 | (("\\./configure") | |
413 | (let ((sh (which "sh"))) | |
414 | (string-append "./configure CONFIG_SHELL=" | |
415 | sh " SHELL=" sh)))) | |
416 | ||
417 | (system* "tar" "xf" "bind.tar.gz") | |
418 | (for-each patch-shebang | |
447ce591 | 419 | (find-files "bind-9.9.5-P1" ".*")) |
c73d4c92 | 420 | (zero? (system* "tar" "cf" "bind.tar.gz" |
447ce591 | 421 | "bind-9.9.5-P1")))) |
c73d4c92 LC |
422 | (alist-cons-after |
423 | 'install 'post-install | |
424 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
425 | ;; Install the dhclient script for GNU/Linux and make sure | |
426 | ;; if finds all the programs it needs. | |
427 | (let* ((out (assoc-ref outputs "out")) | |
428 | (libexec (string-append out "/libexec")) | |
429 | (coreutils (assoc-ref inputs "coreutils")) | |
94c43007 | 430 | (inetutils (assoc-ref inputs "inetutils")) |
c73d4c92 LC |
431 | (net-tools (assoc-ref inputs "net-tools")) |
432 | (sed (assoc-ref inputs "sed"))) | |
433 | (substitute* "client/scripts/linux" | |
434 | (("/sbin/ip") | |
435 | (string-append (assoc-ref inputs "iproute") | |
436 | "/sbin/ip"))) | |
437 | ||
438 | (mkdir-p libexec) | |
439 | (copy-file "client/scripts/linux" | |
440 | (string-append libexec "/dhclient-script")) | |
441 | ||
94c43007 MW |
442 | (wrap-program |
443 | (string-append libexec "/dhclient-script") | |
444 | `("PATH" ":" prefix | |
445 | ,(map (lambda (dir) | |
446 | (string-append dir "/bin:" | |
447 | dir "/sbin")) | |
448 | (list inetutils net-tools coreutils sed)))))) | |
c73d4c92 LC |
449 | %standard-phases)))) |
450 | ||
451 | (native-inputs `(("perl" ,perl))) | |
452 | ||
94c43007 MW |
453 | (inputs `(("inetutils" ,inetutils) |
454 | ("net-tools" ,net-tools) | |
dc343935 LC |
455 | ("iproute" ,iproute) |
456 | ||
457 | ;; When cross-compiling, we need the cross Coreutils and sed. | |
458 | ;; Otherwise just use those from %FINAL-INPUTS. | |
459 | ,@(if (%current-target-system) | |
460 | `(("coreutils" ,coreutils) | |
461 | ("sed" ,sed)) | |
462 | '()))) | |
c73d4c92 LC |
463 | |
464 | (home-page "http://www.isc.org/products/DHCP/") | |
465 | (synopsis "Dynamic Host Configuration Protocol (DHCP) tools") | |
466 | (description | |
467 | "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a | |
468 | reference implementation of all aspects of DHCP, through a suite of DHCP | |
469 | tools: server, client, and relay agent.") | |
f61e0e79 | 470 | (license license:isc))) |
02c86a5e LC |
471 | |
472 | (define-public libpcap | |
473 | (package | |
474 | (name "libpcap") | |
475 | (version "1.5.3") | |
476 | (source (origin | |
477 | (method url-fetch) | |
478 | (uri (string-append "http://www.tcpdump.org/release/libpcap-" | |
479 | version ".tar.gz")) | |
480 | (sha256 | |
481 | (base32 | |
482 | "14wyjywrdi1ikaj6yc9c72m6m2r64z94lb0gm7k1a3q6q5cj3scs")))) | |
483 | (build-system gnu-build-system) | |
484 | (native-inputs `(("bison" ,bison) ("flex" ,flex))) | |
485 | (arguments '(#:tests? #f)) ; no 'check' target | |
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 LC |
508 | (inputs `(("libpcap" ,libpcap) |
509 | ("openssl" ,o: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 MW |
706 | (patches |
707 | (list (search-patch "wpa-supplicant-CVE-2015-1863.patch"))))) | |
952298d7 LC |
708 | (build-system gnu-build-system) |
709 | (arguments | |
710 | '(#:phases (alist-replace | |
711 | 'configure | |
712 | (lambda* (#:key outputs #:allow-other-keys) | |
713 | (chdir "wpa_supplicant") | |
714 | (copy-file "defconfig" ".config") | |
715 | (let ((port (open-file ".config" "al"))) | |
716 | (display " | |
717 | CONFIG_DEBUG_SYSLOG=y | |
40b4c6d6 | 718 | |
61bdd0d8 LC |
719 | # Choose GnuTLS (the default is OpenSSL.) |
720 | CONFIG_TLS=gnutls | |
721 | ||
952298d7 LC |
722 | CONFIG_DRIVER_NL80211=y |
723 | CFLAGS += $(shell pkg-config libnl-3.0 --cflags) | |
724 | CONFIG_LIBNL32=y | |
725 | CONFIG_READLINE=y\n" port) | |
726 | (close-port port))) | |
ffd74de0 LC |
727 | |
728 | (alist-cons-after | |
729 | 'install 'install-man-pages | |
730 | (lambda* (#:key outputs #:allow-other-keys) | |
731 | (let* ((out (assoc-ref outputs "out")) | |
732 | (man (string-append out "/share/man")) | |
733 | (man5 (string-append man "/man5")) | |
734 | (man8 (string-append man "/man8"))) | |
735 | (define (copy-man-page target) | |
736 | (lambda (file) | |
737 | (copy-file file | |
738 | (string-append target "/" | |
739 | (basename file))))) | |
740 | ||
741 | (mkdir-p man5) (mkdir man8) | |
742 | (for-each (copy-man-page man5) | |
743 | (find-files "doc/docbook" "\\.5")) | |
744 | (for-each (copy-man-page man8) | |
745 | (find-files "doc/docbook" "\\.8")) | |
746 | #t)) | |
747 | %standard-phases)) | |
952298d7 LC |
748 | |
749 | #:make-flags (list "CC=gcc" | |
750 | (string-append "BINDIR=" (assoc-ref %outputs "out") | |
751 | "/sbin") | |
752 | (string-append "LIBDIR=" (assoc-ref %outputs "out") | |
753 | "/lib")) | |
754 | #:tests? #f)) | |
755 | (inputs | |
756 | `(("readline" ,readline) | |
757 | ("libnl" ,libnl) | |
61bdd0d8 LC |
758 | ("gnutls" ,gnutls) |
759 | ("libgcrypt" ,libgcrypt))) ;needed by crypto_gnutls.c | |
952298d7 LC |
760 | (native-inputs |
761 | `(("pkg-config" ,pkg-config))) | |
9a727700 | 762 | (home-page "http://w1.fi/wpa_supplicant/") |
952298d7 LC |
763 | (synopsis "Connecting to WPA and WPA2-protected wireless networks") |
764 | (description | |
765 | "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE | |
766 | 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in | |
767 | the client stations. It implements key negotiation with a WPA Authenticator | |
768 | and it controls the roaming and IEEE 802.11 authentication/association of the | |
769 | WLAN driver. | |
770 | ||
771 | This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.") | |
772 | ||
773 | ;; In practice, this is linked against Readline, which makes it GPLv3+. | |
f61e0e79 | 774 | (license license:bsd-3))) |
c6b76405 | 775 | |
4fb7e0de MW |
776 | (define-public wpa-supplicant |
777 | (package (inherit wpa-supplicant-light) | |
778 | (name "wpa-supplicant") | |
779 | (inputs `(("dbus" ,dbus) | |
780 | ,@(package-inputs wpa-supplicant-light))) | |
781 | (arguments | |
782 | (substitute-keyword-arguments (package-arguments wpa-supplicant-light) | |
783 | ((#:phases phases) | |
784 | `(alist-cons-after | |
785 | 'configure 'configure-for-dbus | |
786 | (lambda _ | |
787 | (let ((port (open-file ".config" "al"))) | |
788 | (display " | |
789 | CONFIG_CTRL_IFACE_DBUS=y | |
790 | CONFIG_CTRL_IFACE_DBUS_NEW=y | |
791 | CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port) | |
792 | (close-port port)) | |
793 | #t) | |
24066017 TČ |
794 | (alist-cons-after |
795 | 'install-man-pages 'install-dbus-conf | |
796 | (lambda* (#:key outputs #:allow-other-keys) | |
797 | (let* ((out (assoc-ref outputs "out")) | |
798 | (dir (string-append out "/etc/dbus-1/system.d"))) | |
799 | (mkdir-p dir) | |
800 | (copy-file "dbus/dbus-wpa_supplicant.conf" | |
801 | (string-append dir "/wpa_supplicant.conf")))) | |
802 | ,phases))))))) | |
4fb7e0de | 803 | |
c6b76405 LC |
804 | (define-public wakelan |
805 | (package | |
806 | (name "wakelan") | |
807 | (version "1.1") | |
808 | (source (origin | |
809 | (method url-fetch) | |
810 | (uri (string-append | |
811 | "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-" | |
812 | version ".tar.gz")) | |
813 | (sha256 | |
814 | (base32 | |
815 | "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x")))) | |
816 | (build-system gnu-build-system) | |
817 | (arguments | |
818 | '(#:phases (alist-replace | |
819 | 'configure | |
820 | (lambda* (#:key outputs #:allow-other-keys) | |
821 | (let ((out (assoc-ref outputs "out"))) | |
822 | (mkdir-p (string-append out "/bin")) | |
823 | (mkdir-p (string-append out "/share/man/man1")) | |
824 | ||
825 | ;; It's an old configure script that doesn't understand | |
826 | ;; the extra options we pass. | |
827 | (setenv "CONFIG_SHELL" (which "bash")) | |
828 | (zero? | |
829 | (system* "./configure" | |
830 | (string-append "--prefix=" out) | |
831 | (string-append "--mandir=" out | |
832 | "/share/man"))))) | |
833 | %standard-phases) | |
834 | #:tests? #f)) | |
835 | (home-page "http://kernel.org") ; really, no home page | |
836 | (synopsis "Send a wake-on-LAN packet") | |
837 | (description | |
838 | "WakeLan broadcasts a properly formatted UDP packet across the local area | |
839 | network, which causes enabled computers to power on.") | |
f61e0e79 | 840 | (license license:gpl2+))) |
d43f4296 LC |
841 | |
842 | (define-public dmidecode | |
843 | (package | |
844 | (name "dmidecode") | |
845 | (version "2.12") | |
846 | (source (origin | |
847 | (method url-fetch) | |
848 | (uri (string-append | |
849 | "mirror://savannah/dmidecode/dmidecode-" | |
850 | version ".tar.bz2")) | |
851 | (sha256 | |
852 | (base32 | |
853 | "122hgaw8mpqdfra159lfl6pyk3837giqx6vq42j64fjnbl2z6gwi")))) | |
854 | (build-system gnu-build-system) | |
855 | (arguments | |
856 | '(#:phases (alist-delete 'configure %standard-phases) | |
857 | #:tests? #f ; no 'check' target | |
858 | #:make-flags (list (string-append "prefix=" | |
859 | (assoc-ref %outputs "out"))))) | |
860 | (home-page "http://www.nongnu.org/dmidecode/") | |
861 | (synopsis "Read hardware information from the BIOS") | |
862 | (description | |
863 | "Dmidecode reports information about your system's hardware as described | |
864 | in your system BIOS according to the SMBIOS/DMI standard. This typically | |
865 | includes system manufacturer, model name, serial number, BIOS version, asset | |
866 | tag as well as a lot of other details of varying level of interest and | |
867 | reliability depending on the manufacturer. This will often include usage | |
868 | status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory | |
869 | module slots, and the list of I/O ports (e.g. serial, parallel, USB).") | |
f61e0e79 | 870 | (license license:gpl2+))) |
42dc3af5 | 871 | |
13c8c2bf MW |
872 | (define-public acpica |
873 | (package | |
874 | (name "acpica") | |
875 | (version "20140724") | |
876 | (source (origin | |
877 | (method url-fetch) | |
878 | (uri (string-append | |
879 | "https://acpica.org/sites/acpica/files/acpica-unix2-" | |
880 | version ".tar.gz")) | |
881 | (sha256 | |
882 | (base32 | |
883 | "01vdgrh7dsxrrvg5yd8sxm63cw8210pnsi5qg9g15ac53gn243ac")))) | |
884 | (build-system gnu-build-system) | |
885 | (native-inputs `(("flex" ,flex) | |
886 | ("bison" ,bison))) | |
887 | (arguments | |
888 | '(#:make-flags (list (string-append "PREFIX=" %output) | |
889 | "HOST=_LINUX" | |
890 | "OPT_CFLAGS=-Wall -fno-strict-aliasing") | |
891 | #:tests? #f ; no 'check' target. | |
892 | #:phases (alist-delete 'configure %standard-phases))) | |
893 | (home-page "http://acpica.org/") | |
35b9e423 | 894 | (synopsis "Tools for the development and debug of ACPI tables") |
13c8c2bf MW |
895 | (description |
896 | "The ACPI Component Architecture (ACPICA) project provides an | |
897 | OS-independent reference implementation of the Advanced Configuration and | |
898 | Power Interface Specification (ACPI). ACPICA code contains those portions of | |
899 | ACPI meant to be directly integrated into the host OS as a kernel-resident | |
900 | subsystem, and a small set of tools to assist in developing and debugging ACPI | |
901 | tables. This package contains only the user-space tools needed for ACPI table | |
902 | development, not the kernel implementation of ACPI.") | |
f61e0e79 | 903 | (license license:gpl2))) ; Dual GPLv2/ACPICA Licence |
4cf7bd2b MW |
904 | |
905 | (define-public stress | |
906 | (package | |
907 | (name "stress") | |
908 | (version "1.0.1") | |
909 | (source (origin | |
910 | (method url-fetch) | |
911 | (uri (string-append "mirror://debian/pool/main/s/stress/stress_" | |
912 | version ".orig.tar.gz")) | |
913 | (sha256 | |
914 | (base32 | |
915 | "1v9vnzlihqfjsxa93hdbrq72pqqk00dkylmlg8jpxhm7s1w9qfl1")))) | |
916 | (build-system gnu-build-system) | |
917 | (home-page "http://packages.debian.org/wheezy/stress") | |
9e771e3b | 918 | (synopsis "Impose load on and stress test a computer system") |
4cf7bd2b | 919 | (description |
35b9e423 | 920 | "Stress is a tool that imposes a configurable amount of CPU, memory, I/O, |
4cf7bd2b MW |
921 | or disk stress on a POSIX-compliant operating system and reports any errors it |
922 | detects. | |
923 | ||
35b9e423 | 924 | Stress is not a benchmark. It is a tool used by system administrators to |
4cf7bd2b MW |
925 | evaluate how well their systems will scale, by kernel programmers to evaluate |
926 | perceived performance characteristics, and by systems programmers to expose | |
927 | the classes of bugs which only or more frequently manifest themselves when the | |
928 | system is under heavy load.") | |
f61e0e79 | 929 | (license license:gpl2+))) |
b36fcf95 EB |
930 | |
931 | (define-public detox | |
932 | (package | |
933 | (name "detox") | |
934 | (version "1.2.0") | |
935 | (source (origin | |
936 | (method url-fetch) | |
937 | (uri (string-append "mirror://sourceforge/detox/detox-" | |
938 | version ".tar.bz2")) | |
939 | (sha256 | |
940 | (base32 | |
941 | "1y6vvjqsg54kl49cry73jbfhr04s7wjs779vrr9zrq6kww7dkymb")))) | |
942 | (build-system gnu-build-system) | |
943 | ;; Both flex and popt are used in this case for their runtime libraries | |
944 | ;; (libfl and libpopt). | |
945 | (inputs | |
946 | `(("flex" ,flex) | |
947 | ("popt" ,popt))) | |
948 | (arguments | |
949 | `(#:configure-flags `(,(string-append "--with-popt=" | |
950 | (assoc-ref %build-inputs "popt"))) | |
951 | #:tests? #f)) ;no 'check' target | |
952 | (home-page "http://detox.sourceforge.net") | |
953 | (synopsis "Clean up filenames") | |
954 | (description | |
955 | "Detox is a program that renames files to make them easier to work with | |
956 | under Unix and related operating systems. Spaces and various other unsafe | |
957 | characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1) | |
958 | characters can be replaced as well, as can UTF-8 characters.") | |
f61e0e79 | 959 | (license license:bsd-3))) |
c4492a16 LC |
960 | |
961 | (define-public testdisk | |
962 | (package | |
963 | (name "testdisk") | |
964 | (version "6.14") | |
965 | (source (origin | |
966 | (method url-fetch) | |
967 | (uri (string-append "http://www.cgsecurity.org/testdisk-" | |
968 | version ".tar.bz2")) | |
969 | (sha256 | |
970 | (base32 | |
971 | "0v1jap83f5h99zv01v3qmqm160d36n4ysi0gyq7xzb3mqgmw75x5")))) | |
972 | (build-system gnu-build-system) | |
973 | (inputs | |
974 | `(;; ("ntfs" ,ntfs) | |
975 | ("util-linux" ,util-linux) | |
976 | ("openssl" ,o:openssl) | |
f61e0e79 | 977 | ("zlib" ,zlib) |
c4492a16 LC |
978 | ("e2fsprogs" ,e2fsprogs) |
979 | ("libjpeg" ,libjpeg) | |
980 | ("ncurses" ,ncurses))) | |
981 | (home-page "http://www.cgsecurity.org/wiki/TestDisk") | |
982 | (synopsis "Data recovery tool") | |
983 | (description | |
984 | "TestDisk is a program for data recovery, primarily designed to help | |
985 | recover lost partitions and/or make non-booting disks bootable again.") | |
f61e0e79 | 986 | (license license:gpl2+))) |
c4492a16 | 987 | |
15926aec AS |
988 | (define-public tree |
989 | (package | |
990 | (name "tree") | |
991 | (version "1.7.0") | |
992 | (source (origin | |
993 | (method url-fetch) | |
994 | (uri (string-append | |
995 | "http://mama.indstate.edu/users/ice/tree/src/tree-" | |
996 | version ".tgz")) | |
997 | (sha256 | |
998 | (base32 "04kviw799qxly08zb8n5mgxfd96gyis6x69q2qiw86jnh87c4mv9")))) | |
999 | (build-system gnu-build-system) | |
1000 | (arguments | |
1001 | '(#:phases (alist-delete 'configure %standard-phases) | |
1002 | #:tests? #f ; no check target | |
1003 | #:make-flags (let ((out (assoc-ref %outputs "out"))) | |
1004 | (list (string-append "prefix=" out))))) | |
1005 | (synopsis "Recursively list the contents of a directory") | |
1006 | (description | |
1007 | "Tree is a recursive directory listing command that produces a depth | |
1008 | indented listing of files, which is colorized ala dircolors if the LS_COLORS | |
1009 | environment variable is set and output is to tty.") | |
1010 | (home-page "http://mama.indstate.edu/users/ice/tree/") | |
1011 | (license license:gpl2+))) | |
1012 | ||
c2619e10 LC |
1013 | (define-public direvent |
1014 | (package | |
1015 | (name "direvent") | |
1016 | (version "5.0") | |
1017 | (source (origin | |
1018 | (method url-fetch) | |
1019 | (uri (string-append "mirror://gnu/direvent/direvent-" | |
1020 | version ".tar.gz")) | |
1021 | (sha256 | |
1022 | (base32 | |
1023 | "1i14131y6m8wvirz6piw4zxz2q1kbpl0lniv5kl55rx4k372dg8z")) | |
1024 | (modules '((guix build utils))) | |
1025 | (snippet '(substitute* "tests/testsuite" | |
1026 | (("#![[:blank:]]?/bin/sh") | |
1027 | "#!$SHELL"))))) | |
1028 | (build-system gnu-build-system) | |
1029 | (arguments | |
1030 | '(#:phases (alist-cons-before | |
1031 | 'build 'patch-/bin/sh | |
1032 | (lambda* (#:key inputs #:allow-other-keys) | |
1033 | ;; Use the right shell when executing the watcher. | |
1034 | (let ((bash (assoc-ref inputs "bash"))) | |
1035 | (substitute* "src/direvent.c" | |
1036 | (("\"/bin/sh\"") | |
1037 | (string-append "\"" bash "/bin/sh\""))))) | |
1038 | %standard-phases))) | |
1039 | (home-page "http://www.gnu.org/software/direvent/") | |
1040 | (synopsis "Daemon to monitor directories for events such as file removal") | |
1041 | (description | |
1042 | "A daemon that monitors directories for events, such as creating, | |
35b9e423 | 1043 | deleting or modifying files. It can monitor different sets of directories for |
c2619e10 LC |
1044 | different events. When an event is detected, direvent calls a specified |
1045 | external program with information about the event, such as the location | |
c5779c93 LC |
1046 | within the file system where it occurred. Thus, \"direvent\" provides an |
1047 | easy way to react immediately if given files undergo changes, for example, to | |
c2619e10 | 1048 | track changes in important system configuration files.") |
f61e0e79 | 1049 | (license license:gpl3+))) |
da6c3749 TUBK |
1050 | |
1051 | (define-public libcap-ng | |
1052 | (package | |
1053 | (name "libcap-ng") | |
1054 | (version "0.7.4") | |
1055 | (source (origin | |
1056 | (method url-fetch) | |
1057 | (uri (string-append | |
1058 | "http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-" | |
1059 | version ".tar.gz")) | |
1060 | (sha256 | |
1061 | (base32 | |
1062 | "0ssvnh4cvhya0c1j6k6192zvqcq7nc0x01fb5nwhr0prfqr0i8j8")))) | |
1063 | (build-system gnu-build-system) | |
1064 | (inputs `(("python" ,python))) | |
1065 | (home-page "http://people.redhat.com/sgrubb/libcap-ng/") | |
1066 | (synopsis "Library for more easily working with POSIX capabilities") | |
1067 | (description | |
1068 | "The libcap-ng library is intended to make programming with POSIX | |
1069 | capabilities easier than the traditional libcap library. It includes | |
1070 | utilities that can analyse all currently running applications and print out | |
1071 | any capabilities and whether or not it has an open ended bounding set. The | |
1072 | included utilities are designed to let admins and developers spot apps from | |
1073 | various ways that may be running with too much privilege.") | |
1074 | ;; The library is lgpl2.1+, but also ships some utils which are gpl2+. | |
f61e0e79 | 1075 | (license (list license:lgpl2.1+ license:gpl2+)))) |
d02f2cc4 TUBK |
1076 | |
1077 | (define-public smartmontools | |
1078 | (package | |
1079 | (name "smartmontools") | |
1080 | (version "6.3") | |
1081 | (source (origin | |
1082 | (method url-fetch) | |
1083 | (uri (string-append | |
1084 | "mirror://sourceforge/smartmontools/smartmontools/" | |
1085 | version "/smartmontools-" version ".tar.gz")) | |
1086 | (sha256 | |
1087 | (base32 | |
1088 | "06gy71jh2d3gcfmlbbrsqw7215knkfq59q3j6qdxfrar39fhcxx7")))) | |
1089 | (build-system gnu-build-system) | |
1090 | (inputs `(("libcap-ng" ,libcap-ng))) | |
1091 | (home-page "http://www.smartmontools.org/") | |
1092 | (synopsis "S.M.A.R.T. harddisk control and monitoring tools") | |
1093 | (description | |
1094 | "The smartmontools package contains utility programs to control and | |
1095 | monitor storage systems using the Self-Monitoring, Analysis and Reporting | |
1096 | Technology System (S.M.A.R.T.) built into most modern ATA and SCSI harddisks. | |
1097 | In many cases, these utilities will provide advanced warning of disk | |
1098 | degradation and failure.") | |
f61e0e79 | 1099 | (license license:gpl2+))) |
6efd0823 RW |
1100 | |
1101 | (define-public fdupes | |
1102 | (package | |
1103 | (name "fdupes") | |
1104 | (version "1.51") | |
1105 | (source | |
1106 | (origin | |
1107 | (method url-fetch) | |
1108 | (uri (string-append | |
1109 | "https://github.com/adrianlopezroche/fdupes/archive/fdupes-" | |
1110 | version ".tar.gz")) | |
1111 | (sha256 | |
1112 | (base32 | |
1113 | "11j96vxl9vg3jsnxqxskrv3gad6dh7hz2zpyc8n31xzyxka1c7kn")))) | |
1114 | (build-system gnu-build-system) | |
1115 | (arguments | |
1116 | '(#:phases (alist-delete 'configure %standard-phases) | |
1117 | #:tests? #f ; no 'check' target | |
1118 | #:make-flags (list (string-append "PREFIX=" | |
1119 | (assoc-ref %outputs "out"))))) | |
1120 | (home-page "https://github.com/adrianlopezroche/fdupes") | |
1121 | (synopsis "Identify duplicate files") | |
1122 | (description | |
1123 | "fdupes is a program for identifying duplicate files residing within | |
1124 | specified directories.") | |
1125 | (license license:expat))) |