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.

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