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.

131 lines
3.5 KiB

  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=rrdtool1
  9. PKG_VERSION:=1.0.50
  10. PKG_RELEASE:=2
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/rrdtool-$(PKG_VERSION)
  12. PKG_SOURCE:=rrdtool-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:= \
  14. http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.0.x \
  15. http://www.fastmirrors.org/rrdtool/rrdtool-1.0.x \
  16. ftp://ftp.sunet.se/pub/network/monitoring/rrdtool/rrdtool-1.0.x
  17. PKG_MD5SUM:=c466e2e7df95fa8e318e46437da87686
  18. PKG_FIXUP:=autoreconf
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/rrdtool1/Default
  21. TITLE:=Round Robin Database (RRD)
  22. URL:=http://oss.oetiker.ch/rrdtool/
  23. endef
  24. define Package/rrdtool1/description/Default
  25. RRD is the Acronym for Round Robin Database. RRD is a system to store and
  26. display time-series data (i.e. network bandwidth, machine-room temperature,
  27. server load average). It stores the data in a very compact way that will
  28. not expand over time, and it presents useful graphs by processing the data
  29. to enforce a certain data density. It can be used either via simple wrapper
  30. scripts (from shell or Perl) or via frontends that poll network devices and
  31. put friendly user interface on it.
  32. This is version 1.0.x with cgilib-0.4, gd1.3 and libpng-1.0.9 linked into
  33. librrd.so. The library is much smaller compared to the 1.2.x version with
  34. separate dynamic linked libraries.
  35. endef
  36. define Package/librrd1
  37. $(call Package/rrdtool1/Default)
  38. SECTION:=libs
  39. CATEGORY:=Libraries
  40. DEPENDS:=+zlib
  41. TITLE+= management library
  42. endef
  43. define Package/librrd1/description
  44. $(call Package/rrdtool1/description/Default)
  45. This package contains a shared library, used by other programs.
  46. endef
  47. define Package/rrdcgi1
  48. $(call Package/rrdtool1/Default)
  49. SECTION:=utils
  50. CATEGORY:=Utilities
  51. DEPENDS:=+librrd1
  52. TITLE+= CGI graphing tool
  53. endef
  54. define Package/rrdcgi1/description
  55. $(call Package/rrdtool1/description/Default)
  56. This package contains the rrdcgi tool used to create web pages containing
  57. RRD graphs based on templates.
  58. endef
  59. define Package/rrdtool1
  60. $(call Package/rrdtool1/Default)
  61. SECTION:=utils
  62. CATEGORY:=Utilities
  63. DEPENDS:=+librrd1
  64. TITLE+= management tools
  65. endef
  66. define Package/rrdtool1/description
  67. $(call Package/rrdtool1/description/Default)
  68. This package contains command line tools used to manage RRDs.
  69. endef
  70. TARGET_CFLAGS += $(FPIC) --std=c99
  71. CONFIGURE_ARGS += \
  72. $(DISABLE_NLS) \
  73. --enable-shared=yes \
  74. --enable-static=yes \
  75. --disable-rpath \
  76. --with-gnu-ld \
  77. --enable-local-zlib
  78. CONFIGURE_VARS += \
  79. ac_cv_path_PERL=no \
  80. rd_cv_ieee_works=yes \
  81. shrext_cmds=".so"
  82. define Build/Compile
  83. $(MAKE) -C $(PKG_BUILD_DIR) \
  84. DESTDIR="$(PKG_INSTALL_DIR)" \
  85. shrext_cmds=".so" \
  86. all install
  87. endef
  88. define Package/rrdtool1/install
  89. $(INSTALL_DIR) $(1)/usr/bin
  90. $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrd{tool,update} $(1)/usr/bin/
  91. endef
  92. define Package/rrdcgi1/install
  93. $(INSTALL_DIR) $(1)/usr/bin
  94. $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrdcgi $(1)/usr/bin/
  95. endef
  96. define Package/librrd1/install
  97. $(INSTALL_DIR) $(1)/usr/lib
  98. $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.so.* $(1)/usr/lib/
  99. endef
  100. define Build/InstallDev
  101. $(INSTALL_DIR) $(1)/usr/lib/rrdtool-1.0/include
  102. $(CP) $(PKG_INSTALL_DIR)/usr/include/rrd.h $(1)/usr/lib/rrdtool-1.0/include/
  103. $(INSTALL_DIR) $(1)/usr/lib/rrdtool-1.0/lib
  104. $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.{a,so*} $(1)/usr/lib/rrdtool-1.0/lib/
  105. endef
  106. $(eval $(call BuildPackage,librrd1))
  107. $(eval $(call BuildPackage,rrdcgi1))
  108. $(eval $(call BuildPackage,rrdtool1))