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.

135 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_HASH:=42aa7c213dedbd95d33ca84d92f4187880f7e96062c6a3fb05bfb16f77ba2a91
  18. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  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. SUBMENU:=database
  54. DEPENDS:=+librrd1
  55. TITLE+= CGI graphing tool
  56. endef
  57. define Package/rrdcgi1/description
  58. $(call Package/rrdtool1/description/Default)
  59. This package contains the rrdcgi tool used to create web pages containing
  60. RRD graphs based on templates.
  61. endef
  62. define Package/rrdtool1
  63. $(call Package/rrdtool1/Default)
  64. SECTION:=utils
  65. CATEGORY:=Utilities
  66. SUBMENU:=database
  67. DEPENDS:=+librrd1
  68. TITLE+= management tools
  69. endef
  70. define Package/rrdtool1/description
  71. $(call Package/rrdtool1/description/Default)
  72. This package contains command line tools used to manage RRDs.
  73. endef
  74. TARGET_CFLAGS += $(FPIC) --std=c99
  75. CONFIGURE_ARGS += \
  76. $(DISABLE_NLS) \
  77. --enable-shared=yes \
  78. --enable-static=yes \
  79. --disable-rpath \
  80. --with-gnu-ld \
  81. --enable-local-zlib
  82. CONFIGURE_VARS += \
  83. ac_cv_path_PERL=no \
  84. rd_cv_ieee_works=yes \
  85. shrext_cmds=".so"
  86. define Build/Compile
  87. $(MAKE) -C $(PKG_BUILD_DIR) \
  88. DESTDIR="$(PKG_INSTALL_DIR)" \
  89. shrext_cmds=".so" \
  90. all install
  91. endef
  92. define Package/rrdtool1/install
  93. $(INSTALL_DIR) $(1)/usr/bin
  94. $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrd{tool,update} $(1)/usr/bin/
  95. endef
  96. define Package/rrdcgi1/install
  97. $(INSTALL_DIR) $(1)/usr/bin
  98. $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrdcgi $(1)/usr/bin/
  99. endef
  100. define Package/librrd1/install
  101. $(INSTALL_DIR) $(1)/usr/lib
  102. $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.so.* $(1)/usr/lib/
  103. endef
  104. define Build/InstallDev
  105. $(INSTALL_DIR) $(1)/usr/lib/rrdtool-1.0/include
  106. $(CP) $(PKG_INSTALL_DIR)/usr/include/rrd.h $(1)/usr/lib/rrdtool-1.0/include/
  107. $(INSTALL_DIR) $(1)/usr/lib/rrdtool-1.0/lib
  108. $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.{a,so*} $(1)/usr/lib/rrdtool-1.0/lib/
  109. endef
  110. $(eval $(call BuildPackage,librrd1))
  111. $(eval $(call BuildPackage,rrdcgi1))
  112. $(eval $(call BuildPackage,rrdtool1))