#
-# Copyright (C) 2007 OpenWrt.org
+# Copyright (C) 2007-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
include $(TOPDIR)/rules.mk
PKG_NAME:=darkstat
-PKG_VERSION:=3.0.708
+PKG_VERSION:=3.0.713
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://dmr.ath.cx/net/darkstat
-PKG_MD5SUM:=21fe231f6ec84be082e9d41747dd0fc9
+PKG_MD5SUM:=3fd2a4ddb123ad11bb99f1094a6206d9
+
+PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libpcap +zlib
- TITLE:=Network bandwith monitor
+ TITLE:=Network bandwidth monitor
URL:=http://dmr.ath.cx/net/darkstat/
endef
define Package/darkstat/description
- darkstat is a packet sniffer that runs as a background process on a
- cable/DSL router, gathers all sorts of statistics about network usage,
- and serves them over HTTP.
+darkstat is a packet sniffer that runs as a background process on a cable/DSL
+router, gathers all sorts of statistics about network usage, and serves them
+over HTTP.
+endef
+
+define Package/darkstat/conffiles
+/etc/config/darkstat
endef
CONFIGURE_ARGS += \
- --with-chroot-dir /var/empty
+ --with-chroot-dir=/var/empty
define Build/Compile
- mkdir -p $(PKG_INSTALL_DIR)
$(HOSTCC) $(PKG_BUILD_DIR)/static/c-ify.c \
-o $(PKG_BUILD_DIR)/c-ify
- $(MAKE) -C $(PKG_BUILD_DIR) \
- DESTDIR="$(PKG_INSTALL_DIR)" \
- all install
+ $(call Build/Compile/Default)
endef
define Package/darkstat/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/darkstat.init $(1)/etc/init.d/darkstat
$(INSTALL_DIR) $(1)/etc/config
- $(INSTALL_DATA) ./files/darkstat.conf $(1)/etc/config/darkstat
+ $(INSTALL_CONF) ./files/darkstat.conf $(1)/etc/config/darkstat
endef
$(eval $(call BuildPackage,darkstat))