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_HASH
:=42aa7c213dedbd95d33ca84d92f4187880f7e96062c6a3fb05bfb16f77ba2a91
21 PKG_MAINTAINER
:=Jo-Philipp Wich
<jo@mein.io
>
24 PKG_CHECK_FORMAT_SECURITY
:=0
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/rrdtool1
/Default
29 TITLE
:=Round Robin Database
(RRD
)
30 URL
:=http
://oss.oetiker.ch
/rrdtool
/
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.
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.
47 define Package
/librrd1
48 $(call Package
/rrdtool1
/Default
)
52 TITLE
+= management library
55 define Package
/librrd1
/description
56 $(call Package
/rrdtool1
/description
/Default
)
57 This package contains a shared library
, used by other programs.
60 define Package
/rrdcgi1
61 $(call Package
/rrdtool1
/Default
)
66 TITLE
+= CGI graphing tool
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.
75 define Package
/rrdtool1
76 $(call Package
/rrdtool1
/Default
)
81 TITLE
+= management tools
84 define Package
/rrdtool1
/description
85 $(call Package
/rrdtool1
/description
/Default
)
86 This package contains command line tools used to manage RRDs.
89 TARGET_CFLAGS
+= $(FPIC
) --std
=c99
101 rd_cv_ieee_works
=yes \
105 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
106 DESTDIR
="$(PKG_INSTALL_DIR)" \
111 define Package
/rrdtool1
/install
112 $(INSTALL_DIR
) $(1)/usr
/bin
113 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/rrd
{tool
,update
} $(1)/usr
/bin
/
116 define Package
/rrdcgi1
/install
117 $(INSTALL_DIR
) $(1)/usr
/bin
118 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/rrdcgi
$(1)/usr
/bin
/
121 define Package
/librrd1
/install
122 $(INSTALL_DIR
) $(1)/usr
/lib
123 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/librrd.so.
* $(1)/usr
/lib
/
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
/
133 $(eval
$(call BuildPackage
,librrd1
))
134 $(eval
$(call BuildPackage
,rrdcgi1
))
135 $(eval
$(call BuildPackage
,rrdtool1
))