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