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