| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 |
|
| 22 | (define-module (gnu packages freeipmi)
|
| 23 | #:use-module (guix packages)
|
| 24 | #:use-module (guix utils)
|
| 25 | #:use-module (guix gexp)
|
| 26 | #:use-module (guix licenses)
|
| 27 | #:use-module (guix download)
|
| 28 | #:use-module (guix build-system gnu)
|
| 29 | #:use-module (gnu packages autotools)
|
| 30 | #:use-module (gnu packages gnupg))
|
| 31 |
|
| 32 | (define-public freeipmi
|
| 33 | (package
|
| 34 | (name "freeipmi")
|
| 35 | (version "1.6.16")
|
| 36 | (source (origin
|
| 37 | (method url-fetch)
|
| 38 | (uri (string-append "mirror://gnu/freeipmi/freeipmi-"
|
| 39 | version ".tar.gz"))
|
| 40 | (sha256
|
| 41 | (base32
|
| 42 | "078i0ilsv4czzr2j0nwjafgqkrxc62cmf8rn9ady905nksxzdkjv"))))
|
| 43 | (build-system gnu-build-system)
|
| 44 | (arguments
|
| 45 | (append
|
| 46 | (if (and (%current-target-system)
|
| 47 | (target-riscv64?))
|
| 48 | (list #:phases
|
| 49 | #~(modify-phases %standard-phases
|
| 50 | (add-after 'unpack 'update-config-scripts
|
| 51 | (lambda* (#:key inputs native-inputs #:allow-other-keys)
|
| 52 | |
| 53 | (for-each (lambda (file)
|
| 54 | (install-file
|
| 55 | (search-input-file
|
| 56 | (or native-inputs inputs)
|
| 57 | (string-append "/bin/" file)) "config"))
|
| 58 | '("config.guess" "config.sub"))))))
|
| 59 | '())
|
| 60 | (list #:configure-flags
|
| 61 | #~'(#$(string-append
|
| 62 | "CFLAGS=-g -O2"
|
| 63 | " -Wno-error=implicit-function-declaration"
|
| 64 | " -Wno-error=incompatible-pointer-types")
|
| 65 | "--disable-static"
|
| 66 | #$@(if (%current-target-system)
|
| 67 | |
| 68 | |
| 69 | `("ac_cv_file__dev_random=yes"
|
| 70 | "ac_cv_file__dev_urandom=yes")
|
| 71 | '())))))
|
| 72 | (native-inputs
|
| 73 | (if (and (%current-target-system)
|
| 74 | (target-riscv64?))
|
| 75 | (list config)
|
| 76 | '()))
|
| 77 | (inputs
|
| 78 | (list libgcrypt))
|
| 79 | (home-page "https://www.gnu.org/software/freeipmi/")
|
| 80 | (synopsis "Platform management, including sensor and power monitoring")
|
| 81 | (description
|
| 82 | "GNU FreeIPMI is a collection of in-band and out-of-band IPMI software
|
| 83 | in accordance with the IPMI v1.5/2.0 specification. These programs provide a
|
| 84 | set of interfaces for platform management. Common functionality includes
|
| 85 | sensor monitoring, system event monitoring, power control and
|
| 86 | serial-over-LAN.")
|
| 87 | (license gpl3+)))
|