Commit | Line | Data |
---|---|---|
468d2a2a DL |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2017 Dave Love <fx@gnu.org> | |
3 | ;;; | |
4 | ;;; This file is part of GNU Guix. | |
5 | ;;; | |
6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
7 | ;;; under the terms of the GNU General Public License as published by | |
8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
9 | ;;; your option) any later version. | |
10 | ;;; | |
11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ;;; GNU General Public License for more details. | |
15 | ;;; | |
16 | ;;; You should have received a copy of the GNU General Public License | |
17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
18 | ||
19 | (define-module (gnu packages fabric-management) | |
20 | #:use-module (guix packages) | |
21 | #:use-module (guix licenses) | |
22 | #:use-module (guix download) | |
23 | #:use-module (guix utils) | |
24 | #:use-module (guix build-system gnu) | |
25 | #:use-module (gnu packages) | |
26 | #:use-module (gnu packages bison) | |
27 | #:use-module (gnu packages flex) | |
28 | #:use-module (gnu packages linux)) | |
29 | ||
30 | ;; Fixme: Done for the library, but needs support for running the daemon | |
31 | ;; (shepherd definition). | |
32 | ;; We should probably have a lib output, but that currently generates | |
33 | ;; a cycle. | |
34 | (define-public opensm | |
35 | (package | |
36 | (name "opensm") | |
37 | (version "3.3.20") | |
38 | (source | |
39 | (origin | |
40 | (method url-fetch) | |
41 | (uri | |
42 | (string-append "https://www.openfabrics.org/downloads/management/opensm-" | |
43 | version ".tar.gz")) | |
44 | (sha256 (base32 "162sg1w7kgy8ayl8a4dcbrfacmnfy2lr9a2yjyq0k65rmd378zg1")))) | |
45 | (build-system gnu-build-system) | |
46 | (native-inputs | |
47 | `(("flex" ,flex) | |
48 | ("bison" ,bison))) | |
49 | (inputs | |
50 | `(("rdma-core" ,rdma-core))) | |
51 | (arguments | |
52 | `(#:configure-flags '("--disable-static") | |
53 | #:phases | |
54 | (modify-phases %standard-phases | |
55 | (add-after 'install 'doc | |
56 | (lambda* (#:key outputs #:allow-other-keys) | |
57 | (let* ((base (assoc-ref outputs "out")) | |
58 | (doc (string-append base "/share/doc/" | |
59 | ,name "-" ,version))) | |
60 | (for-each (lambda (file) | |
61 | (install-file file doc)) | |
62 | (append (list "AUTHORS" "COPYING" "ChangeLog") | |
63 | (find-files "doc"))) | |
64 | #t)))))) | |
65 | (home-page "https://www.openfabrics.org/") | |
66 | (synopsis "OpenIB InfiniBand Subnet Manager and management utilities") | |
67 | (description "\ | |
68 | OpenSM is the OpenIB project's Subnet Manager for Infiniband networks. | |
69 | The subnet manager is run as a system daemon on one of the machines in | |
70 | the infiniband fabric to manage the fabric's routing state. This package | |
71 | also contains various tools for diagnosing and testing Infiniband networks | |
72 | that can be used from any machine and do not need to be run on a machine | |
73 | running the opensm daemon.") | |
74 | (license (list gpl2 bsd-2)))) |