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