Changeset 19025


Ignore:
Timestamp:
2010-01-03T21:57:02+01:00 (8 years ago)
Author:
florian
Message:

[package] update vnstat to 1.10 (#6450)

Location:
packages/net/vnstat
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/vnstat/Makefile

    r17614 r19025  
    11# 
    2 # Copyright (C) 2006-2009 OpenWrt.org 
     2# Copyright (C) 2006-2010 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    99 
    1010PKG_NAME:=vnstat 
    11 PKG_VERSION:=1.9 
     11PKG_VERSION:=1.10 
    1212PKG_RELEASE:=1 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1515PKG_SOURCE_URL:=http://humdi.net/vnstat 
    16 PKG_MD5SUM:=ebaf8352fa3674faea2fe2ce1001a38d 
     16PKG_MD5SUM:=95421d968689130590348ceb80ff74a8 
     17 
     18PKG_INSTALL:=1 
     19 
     20PKG_BUILD_DEPENDS:= libgd 
    1721 
    1822include $(INCLUDE_DIR)/package.mk 
     
    7680define Package/vnstat/install 
    7781        $(INSTALL_DIR) $(1)/usr/bin 
    78         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/vnstat $(1)/usr/bin/ 
     82        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vnstat $(1)/usr/bin/ 
    7983        $(INSTALL_DIR) $(1)/usr/sbin 
    80         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/vnstatd $(1)/usr/sbin/ 
     84        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/vnstatd $(1)/usr/sbin/ 
    8185        $(INSTALL_DIR) $(1)/etc 
    82         $(INSTALL_CONF) $(PKG_BUILD_DIR)/cfg/vnstat.conf $(1)/etc/ 
     86        $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/vnstat.conf $(1)/etc/ 
    8387        $(INSTALL_DIR) $(1)/etc/config 
    8488        $(INSTALL_CONF) ./files/vnstat-uci.conf $(1)/etc/config/vnstat 
     
    8993define Package/vnstati/install 
    9094        $(INSTALL_DIR) $(1)/usr/bin 
    91         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/vnstati $(1)/usr/bin/ 
     95        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vnstati $(1)/usr/bin/ 
    9296endef 
    9397 
     
    96100BIN_REL=/usr/bin/vnstat 
    97101BIN=$${IPKG_INSTROOT}$${BIN_REL} 
    98 CRONTAB=$${IPKG_INSTROOT}/etc/crontabs/root 
    99102LIB_D_REL=/var/lib/vnstat 
    100103LIB_D=$${IPKG_INSTROOT}$${LIB_D_REL} 
    101 mkdir -p $${IPKG_INSTROOT}/etc/crontabs/ 
    102104[ -d $$LIB_D ] || mkdir -p $$LIB_D 
    103105IFACE_WAN=$$(uci get network.wan.ifname) 
     
    105107        [ -e $$LIB_D/$$IFACE_WAN ] || ( [ -x $$BIN ] && $$BIN -u -i $$IFACE_WAN ) 
    106108fi 
    107 grep -q "$$BIN_REL -u" $$CRONTAB 2>/dev/null 
    108 [ $$? -eq 0 ] && sed -i -e "/\/usr\/bin\/vnstat -u/d" $$CRONTAB 
    109109true 
    110110endef 
Note: See TracChangeset for help on using the changeset viewer.