2007-04-22 20:09:05 +00:00
|
|
|
#
|
2013-07-15 20:50:55 +00:00
|
|
|
# Copyright (C) 2007-2013 OpenWrt.org
|
2007-04-22 20:09:05 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=darkstat
|
2012-05-28 21:26:41 +00:00
|
|
|
PKG_VERSION:=3.0.715
|
2013-07-15 20:50:55 +00:00
|
|
|
PKG_RELEASE:=3
|
2007-04-22 20:09:05 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2012-05-28 21:26:41 +00:00
|
|
|
PKG_SOURCE_URL:=http://unix4lyfe.org/darkstat
|
|
|
|
PKG_MD5SUM:=5b7abc7538dcd8e30667dac150e81d77
|
2010-04-09 03:15:59 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2007-04-22 20:09:05 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/darkstat
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2007-06-02 09:23:37 +00:00
|
|
|
DEPENDS:=+libpcap +zlib
|
2010-04-09 03:15:59 +00:00
|
|
|
TITLE:=Network bandwidth monitor
|
2012-05-28 21:26:41 +00:00
|
|
|
URL:=http://unix4lyfe.org/darkstat/
|
2007-04-22 20:09:05 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/darkstat/description
|
2010-04-09 03:15:59 +00:00
|
|
|
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.
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
2009-07-17 11:09:40 +00:00
|
|
|
define Package/darkstat/conffiles
|
|
|
|
/etc/config/darkstat
|
|
|
|
endef
|
|
|
|
|
2007-12-17 10:21:16 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2011-07-03 21:07:13 +00:00
|
|
|
--disable-debug \
|
2010-04-09 03:15:59 +00:00
|
|
|
--with-chroot-dir=/var/empty
|
2007-12-17 10:21:16 +00:00
|
|
|
|
2011-10-14 10:07:50 +00:00
|
|
|
TARGET_CFLAGS += -std=gnu99
|
|
|
|
|
2007-12-17 10:21:16 +00:00
|
|
|
define Build/Compile
|
2007-04-22 20:09:05 +00:00
|
|
|
$(HOSTCC) $(PKG_BUILD_DIR)/static/c-ify.c \
|
|
|
|
-o $(PKG_BUILD_DIR)/c-ify
|
2010-04-09 03:15:59 +00:00
|
|
|
$(call Build/Compile/Default)
|
2007-04-22 20:09:05 +00:00
|
|
|
endef
|
|
|
|
|
2007-12-17 10:21:16 +00:00
|
|
|
define Package/darkstat/install
|
2007-04-22 20:09:05 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/darkstat $(1)/usr/sbin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/darkstat.init $(1)/etc/init.d/darkstat
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
2011-11-17 11:48:55 +00:00
|
|
|
$(INSTALL_CONF) ./files/darkstat.config $(1)/etc/config/darkstat
|
2007-04-22 20:09:05 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,darkstat))
|