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