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
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/librrd1
29 TITLE
:=Round Robin Database
(RRD
) management library
30 DESCRIPTION
:=Round Robin Database
(RRD
) management library.
\\\
31 RRD is the Acronym for Round Robin Database. RRD is a system to store and
\\\
32 display time-series data
(i.e. network bandwidth
, machine-room temperature
, \\\
33 server load average
). It stores the data in a very compact way that will
\\\
34 not expand over time
, and it presents useful graphs by processing the data
\\\
35 to enforce a certain data density. It can be used either via simple wrapper
\\\
36 scripts
(from
shell or Perl
) or via frontends that poll network devices and
\\\
37 put friendly user interface on it.
\\\
39 This is version
1.0.x with cgilib-0.4
, gd1.3 and libpng-1.0
.9 linked into
\\\
40 librrd.so. The library is much smaller compared to the
1.2.x version with
\\\
41 separate dynamic linked libraries.
\\\
43 This package contains a shared library
, used by other programs.
44 URL
:=http
://people.ee.ethz.ch
/~oetiker
/webtools
/rrdtool
/
47 define Package
/rrdcgi1
51 TITLE
:=Round Robin Database
(RRD
) CGI graphing tool
52 DESCRIPTION
:=Round Robin Database
(RRD
) CGI graphing tool.
\\\
53 RRD is the Acronym for Round Robin Database. RRD is a system to store and
\\\
54 display time-series data
(i.e. network bandwidth
, machine-room temperature
, \\\
55 server load average
). It stores the data in a very compact way that will
\\\
56 not expand over time
, and it presents useful graphs by processing the data
\\\
57 to enforce a certain data density. It can be used either via simple wrapper
\\\
58 scripts
(from
shell or Perl
) or via frontends that poll network devices and
\\\
59 put friendly user interface on it.
\\\
61 This is version
1.0.x with cgilib-0.4
, gd1.3 and libpng-1.0
.9 linked into
\\\
62 librrd.so. The library is much smaller compared to the
1.2.x version with
\\\
63 separate dynamic linked libraries.
\\\
65 This package contains the rrdcgi tool used to create web pages containing
\\\
66 RRD graphs based on templates.
67 URL
:=http
://people.ee.ethz.ch
/~oetiker
/webtools
/rrdtool
/
70 define Package
/rrdtool1
74 TITLE
:=Round Robin Database
(RRD
) management tools
75 DESCRIPTION
:=Round Robin Database
(RRD
) management tools.
\\\
76 RRD is the Acronym for Round Robin Database. RRD is a system to store and
\\\
77 display time-series data
(i.e. network bandwidth
, machine-room temperature
, \\\
78 server load average
). It stores the data in a very compact way that will
\\\
79 not expand over time
, and it presents useful graphs by processing the data
\\\
80 to enforce a certain data density. It can be used either via simple wrapper
\\\
81 scripts
(from
shell or Perl
) or via frontends that poll network devices and
\\\
82 put friendly user interface on it.
\\\
84 This is version
1.0.x with cgilib-0.4
, gd1.3 and libpng-1.0
.9 linked into
\\\
85 librrd.so. The library is much smaller compared to the
1.2.x version with
\\\
86 separate dynamic linked libraries.
\\\
88 This package contains command line tools used to manage RRDs.
89 URL
:=http
://people.ee.ethz.ch
/~oetiker
/webtools
/rrdtool
/
92 define Build
/Configure
93 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{status
,cache
} ; \
94 $(TARGET_CONFIGURE_OPTS
) \
95 CFLAGS
="$(TARGET_CFLAGS)" \
96 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
97 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
99 rd_cv_ieee_works
=yes \
102 --target
=$(GNU_TARGET_NAME
) \
103 --host
=$(GNU_TARGET_NAME
) \
104 --build
=$(GNU_HOST_NAME
) \
105 --program-prefix
="" \
106 --program-suffix
="" \
110 --datadir=/usr
/share \
111 --includedir=/usr
/include \
112 --infodir=/usr
/share
/info \
114 --libexecdir
=/usr
/lib \
115 --localstatedir
=/var \
116 --mandir=/usr
/share
/man \
117 --sbindir
=/usr
/sbin \
119 $(DISABLE_LARGEFILE
) \
121 --enable-shared
=yes \
122 --enable-static
=yes \
125 --enable-local-zlib \
130 rm -rf
$(PKG_INSTALL_DIR
)
131 mkdir
-p
$(PKG_INSTALL_DIR
)
132 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
133 DESTDIR
="$(PKG_INSTALL_DIR)" \
138 define Package
/rrdtool1
/install
139 $(INSTALL_DIR
) $(1)/usr
/bin
140 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/rrd
{tool
,update
} $(1)/usr
/bin
/
143 define Package
/rrdcgi1
/install
144 $(INSTALL_DIR
) $(1)/usr
/bin
145 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/rrdcgi
$(1)/usr
/bin
/
148 define Package
/librrd1
/install
149 $(INSTALL_DIR
) $(1)/usr
/lib
150 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/librrd.so.
* $(1)/usr
/lib
/
153 define Build
/InstallDev
154 mkdir
-p
$(STAGING_DIR
)/usr
/include
155 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/rrd.h
$(STAGING_DIR
)/usr
/include/
156 mkdir
-p
$(STAGING_DIR
)/usr
/lib
157 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/librrd.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
160 define Build
/UninstallDev
162 $(STAGING_DIR
)/usr
/include/rrd.h \
163 $(STAGING_DIR
)/usr
/lib
/librrd.
{a
,so
*}
166 $(eval
$(call BuildPackage
,librrd1
))
167 $(eval
$(call BuildPackage
,rrdcgi1
))
168 $(eval
$(call BuildPackage
,rrdtool1
))