2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_BUILD_DIR:=$(BUILD_DIR)/rrdtool-$(PKG_VERSION)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-1.0.x
18 PKG_MD5SUM:=c466e2e7df95fa8e318e46437da87686
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22 include $(INCLUDE_DIR)/package.mk
24 define Package/librrd1
28 TITLE:=Round Robin Database (RRD) management library
29 URL:=http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
32 define Package/librrd1/description
33 Round Robin Database (RRD) management library.
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.
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.
46 This package contains a shared library, used by other programs.
49 define Package/rrdcgi1
53 TITLE:=Round Robin Database (RRD) CGI graphing tool
54 URL:=http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
57 define Package/rrdcgi1/description
58 Round Robin Database (RRD) CGI graphing tool.
59 RRD is the Acronym for Round Robin Database. RRD is a system to store and
60 display time-series data (i.e. network bandwidth, machine-room temperature,
61 server load average). It stores the data in a very compact way that will
62 not expand over time, and it presents useful graphs by processing the data
63 to enforce a certain data density. It can be used either via simple wrapper
64 scripts (from shell or Perl) or via frontends that poll network devices and
65 put friendly user interface on it.
67 This is version 1.0.x with cgilib-0.4, gd1.3 and libpng-1.0.9 linked into
68 librrd.so. The library is much smaller compared to the 1.2.x version with
69 separate dynamic linked libraries.
71 This package contains the rrdcgi tool used to create web pages containing
72 RRD graphs based on templates.
75 define Package/rrdtool1
79 TITLE:=Round Robin Database (RRD) management tools
80 URL:=http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
83 define Package/rrdtool1/description
84 Round Robin Database (RRD) management tools.
85 RRD is the Acronym for Round Robin Database. RRD is a system to store and
86 display time-series data (i.e. network bandwidth, machine-room temperature,
87 server load average). It stores the data in a very compact way that will
88 not expand over time, and it presents useful graphs by processing the data
89 to enforce a certain data density. It can be used either via simple wrapper
90 scripts (from shell or Perl) or via frontends that poll network devices and
91 put friendly user interface on it.
93 This is version 1.0.x with cgilib-0.4, gd1.3 and libpng-1.0.9 linked into
94 librrd.so. The library is much smaller compared to the 1.2.x version with
95 separate dynamic linked libraries.
97 This package contains command line tools used to manage RRDs.
100 define Build/Configure
101 (cd $(PKG_BUILD_DIR); rm -rf config.{status,cache} ; \
102 $(TARGET_CONFIGURE_OPTS) \
103 CFLAGS="$(TARGET_CFLAGS)" \
104 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
105 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
107 rd_cv_ieee_works=yes \
110 --target=$(GNU_TARGET_NAME) \
111 --host=$(GNU_TARGET_NAME) \
112 --build=$(GNU_HOST_NAME) \
113 --program-prefix="" \
114 --program-suffix="" \
118 --datadir=/usr/share \
119 --includedir=/usr/include \
120 --infodir=/usr/share/info \
122 --libexecdir=/usr/lib \
123 --localstatedir=/var \
124 --mandir=/usr/share/man \
125 --sbindir=/usr/sbin \
127 $(DISABLE_LARGEFILE) \
129 --enable-shared=yes \
130 --enable-static=yes \
133 --enable-local-zlib \
138 rm -rf $(PKG_INSTALL_DIR)
139 mkdir -p $(PKG_INSTALL_DIR)
140 $(MAKE) -C $(PKG_BUILD_DIR) \
141 DESTDIR="$(PKG_INSTALL_DIR)" \
146 define Package/rrdtool1/install
147 $(INSTALL_DIR) $(1)/usr/bin
148 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rrd{tool,update} $(1)/usr/bin/
151 define Package/rrdcgi1/install
152 $(INSTALL_DIR) $(1)/usr/bin
153 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rrdcgi $(1)/usr/bin/
156 define Package/librrd1/install
157 $(INSTALL_DIR) $(1)/usr/lib
158 $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.so.* $(1)/usr/lib/
161 define Build/InstallDev
162 mkdir -p $(1)/usr/include
163 $(CP) $(PKG_INSTALL_DIR)/usr/include/rrd.h $(1)/usr/include/
164 mkdir -p $(1)/usr/lib
165 $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.{a,so*} $(1)/usr/lib/
168 define Build/UninstallDev
170 $(STAGING_DIR)/usr/include/rrd.h \
171 $(STAGING_DIR)/usr/lib/librrd.{a,so*}
174 $(eval $(call BuildPackage,librrd1))
175 $(eval $(call BuildPackage,rrdcgi1))
176 $(eval $(call BuildPackage,rrdtool1))