| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 |
|
| 21 | (define-module (gnu packages rrdtool)
|
| 22 | #:use-module (guix git-download)
|
| 23 | #:use-module (gnu packages)
|
| 24 | #:use-module (gnu packages algebra)
|
| 25 | #:use-module (gnu packages autotools)
|
| 26 | #:use-module (gnu packages base)
|
| 27 | #:use-module (gnu packages fontutils)
|
| 28 | #:use-module (gnu packages gettext)
|
| 29 | #:use-module (gnu packages glib)
|
| 30 | #:use-module (gnu packages groff)
|
| 31 | #:use-module (gnu packages gtk)
|
| 32 | #:use-module (gnu packages perl)
|
| 33 | #:use-module (gnu packages pkg-config)
|
| 34 | #:use-module (gnu packages python)
|
| 35 | #:use-module (gnu packages python-build)
|
| 36 | #:use-module (gnu packages xml)
|
| 37 | #:use-module (guix build-system gnu)
|
| 38 | #:use-module (guix download)
|
| 39 | #:use-module (guix gexp)
|
| 40 | #:use-module ((guix licenses) #:prefix license:)
|
| 41 | #:use-module (guix packages))
|
| 42 |
|
| 43 | (define-public rrdtool
|
| 44 | (package
|
| 45 | (name "rrdtool")
|
| 46 | (version "1.9.0")
|
| 47 | (source (origin
|
| 48 | (method git-fetch)
|
| 49 | (uri (git-reference
|
| 50 | (url "https://github.com/oetiker/rrdtool-1.x")
|
| 51 | (commit (string-append "v" version))))
|
| 52 | (file-name (git-file-name name version))
|
| 53 | (sha256
|
| 54 | (base32
|
| 55 | "1h9zv9yxvcf86g4zp4g3k45vk1np8zaqisk9ixgxkc58b6xx5xh8"))))
|
| 56 | (build-system gnu-build-system)
|
| 57 | (inputs
|
| 58 | (list cairo
|
| 59 | freetype
|
| 60 | glib
|
| 61 | libxml2
|
| 62 | pango
|
| 63 | python))
|
| 64 | (native-inputs
|
| 65 | (list autoconf
|
| 66 | automake
|
| 67 | gettext-minimal
|
| 68 | groff
|
| 69 | libtool
|
| 70 | pkg-config
|
| 71 | python-setuptools
|
| 72 | |
| 73 | bc
|
| 74 | perl |
| 75 | tzdata-for-tests))
|
| 76 | (arguments
|
| 77 | (list
|
| 78 | #:disallowed-references (list (this-package-native-input "tzdata"))
|
| 79 | #:phases
|
| 80 | #~(modify-phases %standard-phases
|
| 81 | (add-before 'check 'prepare-test-environment
|
| 82 | (lambda* (#:key inputs #:allow-other-keys)
|
| 83 | (setenv "TZDIR"
|
| 84 | (search-input-directory inputs "share/zoneinfo"))))
|
| 85 | (add-after 'install 'remove-native-input-references
|
| 86 | (lambda _
|
| 87 | (let ((examples (string-append #$output
|
| 88 | "/share/rrdtool/examples")))
|
| 89 | |
| 90 | |
| 91 | (substitute* (find-files examples "\\.pl$")
|
| 92 | (("^#!.*") ""))))))))
|
| 93 | (home-page "https://oss.oetiker.ch/rrdtool/")
|
| 94 | (synopsis "Time-series data storage and display system")
|
| 95 | (description
|
| 96 | "The Round Robin Database Tool (RRDtool) is a system to store and display
|
| 97 | time-series data (e.g. network bandwidth, machine-room temperature, server
|
| 98 | load average). It stores the data in Round Robin Databases (RRDs), a very
|
| 99 | compact way that will not expand over time. RRDtool processes the extracted
|
| 100 | data to enforce a certain data density, allowing for useful graphical
|
| 101 | representation of data values.")
|
| 102 | (license license:gpl2+))) |
| 103 | |