You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
3.1 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2014 Mark H Weaver <mhw@netris.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. (define-module (gnu packages rrdtool)
  19. #:use-module ((guix licenses) #:prefix license:)
  20. #:use-module (guix packages)
  21. #:use-module (guix download)
  22. #:use-module (guix build-system gnu)
  23. #:use-module (gnu packages)
  24. #:use-module (gnu packages base)
  25. #:use-module (gnu packages pkg-config)
  26. #:use-module (gnu packages groff)
  27. #:use-module (gnu packages python)
  28. #:use-module (gnu packages fontutils)
  29. #:use-module (gnu packages glib)
  30. #:use-module (gnu packages gtk)
  31. #:use-module (gnu packages xml))
  32. (define-public rrdtool
  33. (package
  34. (name "rrdtool")
  35. (version "1.4.8")
  36. (source (origin
  37. (method url-fetch)
  38. (uri (string-append "http://oss.oetiker.ch/rrdtool/pub/rrdtool-"
  39. version ".tar.gz"))
  40. (sha256
  41. (base32
  42. "1mpki7pv5ql73h5al04dps6dky0nqc3mmb8ac21hd2s8mbsvk5fy"))))
  43. (build-system gnu-build-system)
  44. (inputs `(("cairo" ,cairo)
  45. ("glib" ,glib)
  46. ("gtk" ,gtk+-2)
  47. ("pango" ,pango)
  48. ("freetype" ,freetype)
  49. ("libxml2" ,libxml2)
  50. ("python" ,python-2)))
  51. (native-inputs `(("pkg-config" ,pkg-config)
  52. ("groff" ,groff)))
  53. (arguments
  54. '(#:phases (alist-cons-before
  55. 'configure 'pre-configure
  56. (lambda _
  57. (substitute* "libtool"
  58. (("/bin/sed") (which "sed")))
  59. (substitute* "src/Makefile.in"
  60. (("^rrdcached_LDADD = librrd_th.la")
  61. "rrdcached_LDADD = librrd_th.la -lglib-2.0")))
  62. %standard-phases)))
  63. (home-page "http://oss.oetiker.ch/rrdtool/")
  64. (synopsis "Time-series data storage and display system")
  65. (description
  66. "The Round Robin Database Tool (RRDtool) is a system to store and display
  67. time-series data (e.g. network bandwidth, machine-room temperature, server
  68. load average). It stores the data in Round Robin Databases (RRDs), a very
  69. compact way that will not expand over time. RRDtool processes the extracted
  70. data to enforce a certain data density, allowing for useful graphical
  71. representation of data values.")
  72. (license license:gpl2+))) ; with license exception that allows combining
  73. ; with many other licenses.