2007-04-22 20:09:05 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2007-07-01 23:09:45 +00:00
|
|
|
# $Id$
|
2007-04-22 20:09:05 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=darkstat
|
2007-12-16 23:08:46 +00:00
|
|
|
PKG_VERSION:=3.0.707
|
2007-04-22 20:09:05 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=http://dmr.ath.cx/net/darkstat
|
2007-12-16 23:08:46 +00:00
|
|
|
PKG_MD5SUM:=91c70f96498dd679b21330214361e4dc
|
2007-04-22 20:09:05 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/darkstat
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2007-06-02 09:23:37 +00:00
|
|
|
DEPENDS:=+libpcap +zlib
|
2007-04-22 20:09:05 +00:00
|
|
|
TITLE:=Network bandwith monitor
|
|
|
|
URL:=http://dmr.ath.cx/net/darkstat/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/darkstat/description
|
|
|
|
A free open source utility for bandwith monitoring \ over web
|
|
|
|
endef
|
|
|
|
|
2007-12-17 10:21:16 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-chroot-dir /var/empty
|
|
|
|
|
|
|
|
define Build/Compile
|
2007-04-22 20:09:05 +00:00
|
|
|
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
|
|
|
|
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
|
|
|
|
$(INSTALL_DATA) ./files/darkstat.conf $(1)/etc/config/darkstat
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,darkstat))
|