Changeset 4295


Ignore:
Timestamp:
2006-07-26T03:18:42+02:00 (12 years ago)
Author:
nico
Message:

port rrdtool-1.0.x to buildroot-ng

Location:
packages/libs/rrdtool-1.0.x
Files:
2 deleted
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • packages/libs/rrdtool-1.0.x/Makefile

    r3112 r4295  
     1#  
     2# Copyright (C) 2006 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
    17# $Id$ 
    28 
     
    612PKG_VERSION:=1.0.50 
    713PKG_RELEASE:=1 
     14 
     15PKG_BUILD_DIR:=$(BUILD_DIR)/rrdtool-$(PKG_VERSION) 
     16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     17PKG_SOURCE_URL:=http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-1.0.x 
    818PKG_MD5SUM:=c466e2e7df95fa8e318e46437da87686 
    9  
    10 PKG_SOURCE_URL:=http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-1.0.x 
    11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1219PKG_CAT:=zcat 
    1320 
    14 PKG_BUILD_DIR:=$(BUILD_DIR)/rrdtool-$(PKG_VERSION) 
    1521PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 
    1622 
    17 include $(TOPDIR)/package/rules.mk 
     23include $(INCLUDE_DIR)/package.mk 
    1824 
    19 $(eval $(call PKG_template,LIBRRD1,librrd1,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
    20 $(eval $(call PKG_template,RRDCGI1,rrdcgi1,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
    21 $(eval $(call PKG_template,RRDTOOL1,rrdtool1,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
     25define Package/librrd1 
     26  SECTION:=libs 
     27  CATEGORY:=Libraries 
     28  DEPENDS:=+zlib 
     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.\\\ 
     38    \\\ 
     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.\\\ 
     42    \\\ 
     43    This package contains a shared library, used by other programs. 
     44  URL:=http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/ 
     45endef 
    2246 
    23 $(PKG_BUILD_DIR)/.configured: 
     47define Package/rrdcgi1 
     48  SECTION:=utils 
     49  CATEGORY:=Utilities 
     50  DEPENDS:=+librrd1 
     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.\\\ 
     60    \\\ 
     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.\\\ 
     64    \\\ 
     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/ 
     68endef 
     69 
     70define Package/rrdtool1 
     71  SECTION:=utils 
     72  CATEGORY:=Utilities 
     73  DEPENDS:=+librrd1 
     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.\\\ 
     83    \\\ 
     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.\\\ 
     87    \\\ 
     88    This package contains command line tools used to manage RRDs. 
     89  URL:=http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/ 
     90endef 
     91 
     92define Build/Configure 
    2493        (cd $(PKG_BUILD_DIR); rm -rf config.{status,cache} ; \ 
    2594                $(TARGET_CONFIGURE_OPTS) \ 
     
    56125                        --enable-local-zlib \ 
    57126        ); 
    58         touch $@ 
     127endef 
    59128 
    60 $(PKG_BUILD_DIR)/.built: 
     129define Build/Compile 
    61130        rm -rf $(PKG_INSTALL_DIR) 
    62131        mkdir -p $(PKG_INSTALL_DIR) 
     
    65134                shrext_cmds=".so" \ 
    66135                all install 
    67         touch $@ 
     136endef 
    68137 
    69 $(IPKG_RRDTOOL1): 
    70         install -d -m0755 $(IDIR_RRDTOOL1)/usr/bin 
    71         $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrdtool $(IDIR_RRDTOOL1)/usr/bin/ 
    72         $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrdupdate $(IDIR_RRDTOOL1)/usr/bin/ 
    73         $(RSTRIP) $(IDIR_RRDTOOL1) 
    74         $(IPKG_BUILD) $(IDIR_RRDTOOL1) $(PACKAGE_DIR) 
     138define Package/rrdtool1/install 
     139        install -d -m0755 $(1)/usr/bin 
     140        $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrd{tool,update} $(1)/usr/bin/ 
     141endef 
    75142 
    76 $(IPKG_RRDCGI1): 
    77         install -d -m0755 $(IDIR_RRDCGI1)/usr/bin 
    78         $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrdcgi $(IDIR_RRDCGI1)/usr/bin/ 
    79         $(RSTRIP) $(IDIR_RRDCGI1) 
    80         $(IPKG_BUILD) $(IDIR_RRDCGI1) $(PACKAGE_DIR) 
     143define Package/rrdcgi1/install 
     144        install -d -m0755 $(1)/usr/bin 
     145        $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrdcgi $(1)/usr/bin/ 
     146endef 
    81147 
    82 $(IPKG_LIBRRD1): 
    83         install -d -m0755 $(IDIR_LIBRRD1)/usr/lib 
    84         $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.so.* $(IDIR_LIBRRD1)/usr/lib/ 
    85         $(RSTRIP) $(IDIR_LIBRRD1) 
    86         $(IPKG_BUILD) $(IDIR_LIBRRD1) $(PACKAGE_DIR) 
     148define Package/librrd1/install 
     149        install -d -m0755 $(1)/usr/lib 
     150        $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.so.* $(1)/usr/lib/ 
     151endef 
    87152 
    88 $(STAGING_DIR)/usr/lib/librrd.so: $(PKG_BUILD_DIR)/.built 
     153define Build/InstallDev 
    89154        mkdir -p $(STAGING_DIR)/usr/include 
    90155        $(CP) $(PKG_INSTALL_DIR)/usr/include/rrd.h $(STAGING_DIR)/usr/include/ 
    91156        mkdir -p $(STAGING_DIR)/usr/lib 
    92         $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.a $(STAGING_DIR)/usr/lib/ 
    93         $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.so* $(STAGING_DIR)/usr/lib/ 
    94         touch $@ 
     157        $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.{a,so*} $(STAGING_DIR)/usr/lib/ 
     158endef 
    95159 
    96 install-dev: $(STAGING_DIR)/usr/lib/librrd.so 
    97  
    98 uninstall-dev: 
     160define Build/UninstallDev 
    99161        rm -rf \ 
    100162                $(STAGING_DIR)/usr/include/rrd.h \ 
    101                 $(STAGING_DIR)/usr/lib/librrd.a \ 
    102                 $(STAGING_DIR)/usr/lib/librrd.so* \ 
     163                $(STAGING_DIR)/usr/lib/librrd.{a,so*} 
     164endef 
    103165 
    104 compile-targets: install-dev 
    105 clean-targets: uninstall-dev 
     166$(eval $(call BuildPackage,librrd1)) 
     167$(eval $(call BuildPackage,rrdcgi1)) 
     168$(eval $(call BuildPackage,rrdtool1)) 
Note: See TracChangeset for help on using the changeset viewer.