2 # Copyright (C) 2006-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/rrdtool-
$(PKG_VERSION
)
15 PKG_SOURCE
:=rrdtool-
$(PKG_VERSION
).
tar.gz
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
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/rrdtool1
/Default
27 TITLE
:=Round Robin Database
(RRD
)
28 URL
:=http
://oss.oetiker.ch
/rrdtool
/
31 define Package
/rrdtool1
/description
/Default
32 RRD is the Acronym for Round Robin Database. RRD is a system to store and
33 display time-series data
(i.e. network bandwidth
, machine-room temperature
,
34 server load average
). It stores the data in a very compact way that will
35 not expand over time
, and it presents useful graphs by processing the data
36 to enforce a certain data density. It can be used either via simple wrapper
37 scripts
(from
shell or Perl
) or via frontends that poll network devices and
38 put friendly user interface on it.
40 This is version
1.0.x with cgilib-0.4
, gd1.3 and libpng-1.0
.9 linked into
41 librrd.so. The library is much smaller compared to the
1.2.x version with
42 separate dynamic linked libraries.
45 define Package
/librrd1
46 $(call Package
/rrdtool1
/Default
)
50 TITLE
+= management library
53 define Package
/librrd1
/description
54 $(call Package
/rrdtool1
/description
/Default
)
55 This package contains a shared library
, used by other programs.
58 define Package
/rrdcgi1
59 $(call Package
/rrdtool1
/Default
)
63 TITLE
+= CGI graphing tool
66 define Package
/rrdcgi1
/description
67 $(call Package
/rrdtool1
/description
/Default
)
68 This package contains the rrdcgi tool used to create web pages containing
69 RRD graphs based on templates.
72 define Package
/rrdtool1
73 $(call Package
/rrdtool1
/Default
)
77 TITLE
+= management tools
80 define Package
/rrdtool1
/description
81 $(call Package
/rrdtool1
/description
/Default
)
82 This package contains command line tools used to manage RRDs.
85 TARGET_CFLAGS
+= $(FPIC
) --std
=c99
97 rd_cv_ieee_works
=yes \
101 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
102 DESTDIR
="$(PKG_INSTALL_DIR)" \
107 define Package
/rrdtool1
/install
108 $(INSTALL_DIR
) $(1)/usr
/bin
109 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/rrd
{tool
,update
} $(1)/usr
/bin
/
112 define Package
/rrdcgi1
/install
113 $(INSTALL_DIR
) $(1)/usr
/bin
114 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/rrdcgi
$(1)/usr
/bin
/
117 define Package
/librrd1
/install
118 $(INSTALL_DIR
) $(1)/usr
/lib
119 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/librrd.so.
* $(1)/usr
/lib
/
122 define Build
/InstallDev
123 $(INSTALL_DIR
) $(1)/usr
/lib
/rrdtool-1.0
/include
124 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/rrd.h
$(1)/usr
/lib
/rrdtool-1.0
/include/
125 $(INSTALL_DIR
) $(1)/usr
/lib
/rrdtool-1.0
/lib
126 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/librrd.
{a
,so
*} $(1)/usr
/lib
/rrdtool-1.0
/lib
/
129 $(eval
$(call BuildPackage
,librrd1
))
130 $(eval
$(call BuildPackage
,rrdcgi1
))
131 $(eval
$(call BuildPackage
,rrdtool1
))