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