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.

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