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