mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 15:54:04 +02:00
Add rrdtool package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1603 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e122fd3565
commit
5b87a75e7d
@ -24,6 +24,7 @@ source "package/sablevm/Config.in"
|
||||
source "package/sablevm-classpath/Config.in"
|
||||
source "package/libffi-sable/Config.in"
|
||||
endmenu
|
||||
source "package/rrdtool/Config.in"
|
||||
source "package/screen/Config.in"
|
||||
|
||||
comment "Networking"
|
||||
|
@ -114,6 +114,7 @@ package-$(BR2_PACKAGE_RADVD) += radvd
|
||||
package-$(BR2_PACKAGE_READLINE) += readline
|
||||
package-$(BR2_PACKAGE_ROBOCFG) += robocfg
|
||||
package-$(BR2_PACKAGE_RP_PPPOE) += rp-pppoe
|
||||
package-$(BR2_COMPILE_RRDTOOL) += rrdtool
|
||||
package-$(BR2_PACKAGE_RSYNC) += rsync
|
||||
package-$(BR2_PACKAGE_SABLEVM) += sablevm
|
||||
package-$(BR2_PACKAGE_SABLEVM_CLASSPATH) += sablevm-classpath
|
||||
@ -197,6 +198,7 @@ osiris-compile: openssl-compile
|
||||
portmap-compile: tcp_wrappers-compile
|
||||
postgresql-compile: zlib-compile
|
||||
quagga-compile: readline-compile ncurses-compile
|
||||
rrdtool-compile: cgilib-compile freetype-compile libart-compile libpng-compile
|
||||
rsync-compile: popt-compile
|
||||
screen-compile: ncurses-compile
|
||||
siproxd-compile: libosip2-compile
|
||||
|
73
package/rrdtool/Config.in
Normal file
73
package/rrdtool/Config.in
Normal file
@ -0,0 +1,73 @@
|
||||
menu "rrdtool - Round Robin Database (RRD) management tools and library"
|
||||
|
||||
config BR2_COMPILE_RRDTOOL
|
||||
bool
|
||||
default no
|
||||
depends BR2_PACKAGE_LIBRRD || BR2_PACKAGE_RRDCGI || BR2_PACKAGE_RRDTOOL
|
||||
|
||||
config BR2_PACKAGE_LIBRRD
|
||||
tristate "librrd - Round Robin Database (RRD) management library"
|
||||
# default m if CONFIG_DEVEL
|
||||
default n
|
||||
select BR2_COMPILE_RRDTOOL
|
||||
select BR2_PACKAGE_LIBART
|
||||
select BR2_PACKAGE_LIBFREETYPE
|
||||
select BR2_PACKAGE_LIBPNG
|
||||
help
|
||||
RRD is the Acronym for Round Robin Database. RRD is a system to store and
|
||||
display time-series data (i.e. network bandwidth, machine-room temperature,
|
||||
server load average). It stores the data in a very compact way that will
|
||||
not expand over time, and it presents useful graphs by processing the data
|
||||
to enforce a certain data density. It can be used either via simple wrapper
|
||||
scripts (from shell or Perl) or via frontends that poll network devices and
|
||||
put friendly user interface on it.
|
||||
|
||||
http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
|
||||
|
||||
This package contains command line tools used to manage RRDs.
|
||||
|
||||
|
||||
config BR2_PACKAGE_RRDCGI
|
||||
tristate "rrdcgi - Round Robin Database (RRD) CGI graphing tool"
|
||||
# default m if CONFIG_DEVEL
|
||||
default n
|
||||
select BR2_COMPILE_RRDTOOL
|
||||
select BR2_PACKAGE_CGILIB
|
||||
select BR2_PACKAGE_LIBRRD
|
||||
help
|
||||
RRD is the Acronym for Round Robin Database. RRD is a system to store and
|
||||
display time-series data (i.e. network bandwidth, machine-room temperature,
|
||||
server load average). It stores the data in a very compact way that will
|
||||
not expand over time, and it presents useful graphs by processing the data
|
||||
to enforce a certain data density. It can be used either via simple wrapper
|
||||
scripts (from shell or Perl) or via frontends that poll network devices and
|
||||
put friendly user interface on it.
|
||||
|
||||
http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
|
||||
|
||||
This package contains the rrdcgi tool used to create web pages containing
|
||||
RRD graphs based on templates.
|
||||
|
||||
|
||||
config BR2_PACKAGE_RRDTOOL
|
||||
tristate "rrdtool - Round Robin Database (RRD) management tools"
|
||||
# default m if CONFIG_DEVEL
|
||||
default n
|
||||
select BR2_COMPILE_RRDTOOL
|
||||
select BR2_PACKAGE_LIBRRD
|
||||
help
|
||||
RRD is the Acronym for Round Robin Database. RRD is a system to store and
|
||||
display time-series data (i.e. network bandwidth, machine-room temperature,
|
||||
server load average). It stores the data in a very compact way that will
|
||||
not expand over time, and it presents useful graphs by processing the data
|
||||
to enforce a certain data density. It can be used either via simple wrapper
|
||||
scripts (from shell or Perl) or via frontends that poll network devices and
|
||||
put friendly user interface on it.
|
||||
|
||||
http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
|
||||
|
||||
This package contains command line tools used to manage RRDs.
|
||||
|
||||
|
||||
endmenu
|
||||
|
107
package/rrdtool/Makefile
Normal file
107
package/rrdtool/Makefile
Normal file
@ -0,0 +1,107 @@
|
||||
# $Id$
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=rrdtool
|
||||
PKG_VERSION:=1.2.11
|
||||
PKG_RELEASE:=1
|
||||
PKG_MD5SUM:=d61c5755cb77207f9ad3584b26e8bf08
|
||||
|
||||
PKG_SOURCE_URL:=http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_CAT:=zcat
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
||||
|
||||
include $(TOPDIR)/package/rules.mk
|
||||
|
||||
$(eval $(call PKG_template,LIBRRD,librrd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||
$(eval $(call PKG_template,RRDCGI,rrdcgi,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||
$(eval $(call PKG_template,RRDTOOL,rrdtool,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||
|
||||
$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
|
||||
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/freetype2 -I$(STAGING_DIR)/usr/include/libart-2.0" \
|
||||
LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
|
||||
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
rd_cv_ieee_works=yes \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--program-prefix="" \
|
||||
--program-suffix="" \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
$(DISABLE_LARGEFILE) \
|
||||
--enable-shared=yes \
|
||||
--enable-static=yes \
|
||||
--disable-rpath \
|
||||
--enable-rrdcgi \
|
||||
--disable-mmap \
|
||||
--disable-perl \
|
||||
--disable-tcl \
|
||||
--disable-python \
|
||||
--without-x \
|
||||
--with-rrd-default-font=/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
|
||||
);
|
||||
touch $@
|
||||
|
||||
$(PKG_BUILD_DIR)/.built:
|
||||
rm -rf $(PKG_INSTALL_DIR)
|
||||
mkdir -p $(PKG_INSTALL_DIR)
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
all install
|
||||
touch $@
|
||||
|
||||
$(IPKG_RRDTOOL):
|
||||
install -d -m0755 $(IDIR_RRDTOOL)/usr/bin
|
||||
cp -fpR $(PKG_INSTALL_DIR)/usr/bin/rrdtool $(IDIR_RRDTOOL)/usr/bin/rrdtool
|
||||
cp -fpR $(PKG_INSTALL_DIR)/usr/bin/rrdupdate $(IDIR_RRDTOOL)/usr/bin/rrdupdate
|
||||
$(RSTRIP) $(IDIR_RRDTOOL)
|
||||
$(IPKG_BUILD) $(IDIR_RRDTOOL) $(PACKAGE_DIR)
|
||||
|
||||
$(IPKG_RRDCGI):
|
||||
install -d -m0755 $(IDIR_RRDCGI)/usr/bin
|
||||
cp -fpR $(PKG_INSTALL_DIR)/usr/bin/rrdcgi $(IDIR_RRDCGI)/usr/bin/rrdcgi
|
||||
$(RSTRIP) $(IDIR_RRDCGI)
|
||||
$(IPKG_BUILD) $(IDIR_RRDCGI) $(PACKAGE_DIR)
|
||||
|
||||
$(IPKG_LIBRRD):
|
||||
install -d -m0755 $(IDIR_LIBRRD)/usr/lib
|
||||
cp -fpR $(PKG_INSTALL_DIR)/usr/lib/librrd.so.* $(IDIR_LIBRRD)/usr/lib
|
||||
install -d -m0755 $(IDIR_LIBRRD)/usr/share/rrdtool/fonts
|
||||
cp -fpR $(PKG_BUILD_DIR)/src/DejaVuSansMono-Roman.ttf \
|
||||
$(IDIR_LIBRRD)/usr/share/rrdtool/fonts/
|
||||
$(RSTRIP) $(IDIR_LIBRRD)
|
||||
$(IPKG_BUILD) $(IDIR_LIBRRD) $(PACKAGE_DIR)
|
||||
|
||||
$(STAGING_DIR)/usr/lib/librrd.so: $(PKG_BUILD_DIR)/.built
|
||||
mkdir -p $(STAGING_DIR)/usr/include
|
||||
cp -fpR $(PKG_INSTALL_DIR)/usr/include/rrd.h $(STAGING_DIR)/usr/include/
|
||||
mkdir -p $(STAGING_DIR)/usr/lib
|
||||
cp -fpR $(PKG_INSTALL_DIR)/usr/lib/librrd.{a,so*} $(STAGING_DIR)/usr/lib/
|
||||
touch $@
|
||||
|
||||
install-dev: $(STAGING_DIR)/usr/lib/librrd.so
|
||||
|
||||
uninstall-dev:
|
||||
rm -rf \
|
||||
$(STAGING_DIR)/usr/include/rrd.h \
|
||||
$(STAGING_DIR)/usr/lib/librrd.{a,so*} \
|
||||
|
||||
compile: install-dev
|
||||
clean: uninstall-dev
|
16
package/rrdtool/ipkg/librrd.control
Normal file
16
package/rrdtool/ipkg/librrd.control
Normal file
@ -0,0 +1,16 @@
|
||||
Package: librrd
|
||||
Priority: optional
|
||||
Section: libs
|
||||
Maintainer: Oliver Ertl <oliver@ertl-net.net>, OpenWrt Developers <bugs@openwrt.org>
|
||||
Source: http://openwrt.org/cgi-bin/viewcvs.cgi/openwrt/package/rrdtool/
|
||||
Depends: libart, libfreetype, libpng, zlib
|
||||
Description: Round Robin Database (RRD) management library.
|
||||
RRD is the Acronym for Round Robin Database. RRD is a system to store and
|
||||
display time-series data (i.e. network bandwidth, machine-room temperature,
|
||||
server load average). It stores the data in a very compact way that will
|
||||
not expand over time, and it presents useful graphs by processing the data
|
||||
to enforce a certain data density. It can be used either via simple wrapper
|
||||
scripts (from shell or Perl) or via frontends that poll network devices and
|
||||
put friendly user interface on it.
|
||||
|
||||
This package contains the shared library used to manage RRDs.
|
17
package/rrdtool/ipkg/rrdcgi.control
Normal file
17
package/rrdtool/ipkg/rrdcgi.control
Normal file
@ -0,0 +1,17 @@
|
||||
Package: rrdcgi
|
||||
Priority: optional
|
||||
Section: web
|
||||
Maintainer: Oliver Ertl <oliver@ertl-net.net>, OpenWrt Developers <bugs@openwrt.org>
|
||||
Source: http://openwrt.org/cgi-bin/viewcvs.cgi/openwrt/package/rrdtool/
|
||||
Depends: cgilib, librrd
|
||||
Description: Round Robin Database (RRD) CGI graphing tool.
|
||||
RRD is the Acronym for Round Robin Database. RRD is a system to store and
|
||||
display time-series data (i.e. network bandwidth, machine-room temperature,
|
||||
server load average). It stores the data in a very compact way that will
|
||||
not expand over time, and it presents useful graphs by processing the data
|
||||
to enforce a certain data density. It can be used either via simple wrapper
|
||||
scripts (from shell or Perl) or via frontends that poll network devices and
|
||||
put friendly user interface on it.
|
||||
|
||||
This package contains the rrdcgi tool used to create web pages containing
|
||||
RRD graphs based on templates.
|
16
package/rrdtool/ipkg/rrdtool.control
Normal file
16
package/rrdtool/ipkg/rrdtool.control
Normal file
@ -0,0 +1,16 @@
|
||||
Package: rrdtool
|
||||
Priority: optional
|
||||
Section: admin
|
||||
Maintainer: Oliver Ertl <oliver@ertl-net.net>, OpenWrt Developers <bugs@openwrt.org>
|
||||
Source: http://openwrt.org/cgi-bin/viewcvs.cgi/openwrt/package/rrdtool/
|
||||
Depends: librrd
|
||||
Description: Round Robin Database (RRD) management tools.
|
||||
RRD is the Acronym for Round Robin Database. RRD is a system to store and
|
||||
display time-series data (i.e. network bandwidth, machine-room temperature,
|
||||
server load average). It stores the data in a very compact way that will
|
||||
not expand over time, and it presents useful graphs by processing the data
|
||||
to enforce a certain data density. It can be used either via simple wrapper
|
||||
scripts (from shell or Perl) or via frontends that poll network devices and
|
||||
put friendly user interface on it.
|
||||
|
||||
This package contains command line tools used to manage RRDs.
|
Loading…
Reference in New Issue
Block a user