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