[packages] rrdtool-1.0.x: install in its on directory where collectd & rrdcollect are looking for it, cleanup

git-svn-id: svn://svn.openwrt.org/openwrt/packages@17949 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2009-10-06 04:29:14 +00:00
parent 3cfbb5d0e5
commit 6963c52f7c

View File

@ -19,82 +19,67 @@ PKG_SOURCE_URL:= \
ftp://ftp.sunet.se/pub/network/monitoring/rrdtool/rrdtool-1.0.x ftp://ftp.sunet.se/pub/network/monitoring/rrdtool/rrdtool-1.0.x
PKG_MD5SUM:=c466e2e7df95fa8e318e46437da87686 PKG_MD5SUM:=c466e2e7df95fa8e318e46437da87686
PKG_FIXUP:=libtool
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
define Package/rrdtool1/Default
TITLE:=Round Robin Database (RRD)
URL:=http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
endef
define Package/rrdtool1/description/Default
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 is version 1.0.x with cgilib-0.4, gd1.3 and libpng-1.0.9 linked into
librrd.so. The library is much smaller compared to the 1.2.x version with
separate dynamic linked libraries.
endef
define Package/librrd1 define Package/librrd1
$(call Package/rrdtool1/Default)
SECTION:=libs SECTION:=libs
CATEGORY:=Libraries CATEGORY:=Libraries
DEPENDS:=+zlib DEPENDS:=+zlib
TITLE:=Round Robin Database (RRD) management library TITLE+= management library
URL:=http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
endef endef
define Package/librrd1/description define Package/librrd1/description
Round Robin Database (RRD) management library. $(call Package/rrdtool1/description/Default)
RRD is the Acronym for Round Robin Database. RRD is a system to store and This package contains a shared library, used by other programs.
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 is version 1.0.x with cgilib-0.4, gd1.3 and libpng-1.0.9 linked into
librrd.so. The library is much smaller compared to the 1.2.x version with
separate dynamic linked libraries.
This package contains a shared library, used by other programs.
endef endef
define Package/rrdcgi1 define Package/rrdcgi1
$(call Package/rrdtool1/Default)
SECTION:=utils SECTION:=utils
CATEGORY:=Utilities CATEGORY:=Utilities
DEPENDS:=+librrd1 DEPENDS:=+librrd1
TITLE:=Round Robin Database (RRD) CGI graphing tool TITLE+= CGI graphing tool
URL:=http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
endef endef
define Package/rrdcgi1/description define Package/rrdcgi1/description
Round Robin Database (RRD) CGI graphing tool. $(call Package/rrdtool1/description/Default)
RRD is the Acronym for Round Robin Database. RRD is a system to store and This package contains the rrdcgi tool used to create web pages containing
display time-series data (i.e. network bandwidth, machine-room temperature, RRD graphs based on templates.
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 is version 1.0.x with cgilib-0.4, gd1.3 and libpng-1.0.9 linked into
librrd.so. The library is much smaller compared to the 1.2.x version with
separate dynamic linked libraries.
This package contains the rrdcgi tool used to create web pages containing
RRD graphs based on templates.
endef endef
define Package/rrdtool1 define Package/rrdtool1
$(call Package/rrdtool1/Default)
SECTION:=utils SECTION:=utils
CATEGORY:=Utilities CATEGORY:=Utilities
DEPENDS:=+librrd1 DEPENDS:=+librrd1
TITLE:=Round Robin Database (RRD) management tools TITLE+= management tools
URL:=http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
endef endef
define Package/rrdtool1/description define Package/rrdtool1/description
Round Robin Database (RRD) management tools. $(call Package/rrdtool1/description/Default)
RRD is the Acronym for Round Robin Database. RRD is a system to store and This package contains command line tools used to manage RRDs.
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 is version 1.0.x with cgilib-0.4, gd1.3 and libpng-1.0.9 linked into
librrd.so. The library is much smaller compared to the 1.2.x version with
separate dynamic linked libraries.
This package contains command line tools used to manage RRDs.
endef endef
TARGET_CFLAGS += $(FPIC) --std=c99 TARGET_CFLAGS += $(FPIC) --std=c99
@ -124,12 +109,12 @@ endef
define Package/rrdtool1/install define Package/rrdtool1/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rrd{tool,update} $(1)/usr/bin/ $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrd{tool,update} $(1)/usr/bin/
endef endef
define Package/rrdcgi1/install define Package/rrdcgi1/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rrdcgi $(1)/usr/bin/ $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrdcgi $(1)/usr/bin/
endef endef
define Package/librrd1/install define Package/librrd1/install
@ -138,10 +123,10 @@ define Package/librrd1/install
endef endef
define Build/InstallDev define Build/InstallDev
mkdir -p $(1)/usr/include $(INSTALL_DIR) $(1)/usr/lib/rrdtool-1.0/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/rrd.h $(1)/usr/include/ $(CP) $(PKG_INSTALL_DIR)/usr/include/rrd.h $(1)/usr/lib/rrdtool-1.0/include/
mkdir -p $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib/rrdtool-1.0/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.{a,so*} $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.{a,so*} $(1)/usr/lib/rrdtool-1.0/lib/
endef endef
$(eval $(call BuildPackage,librrd1)) $(eval $(call BuildPackage,librrd1))