source: packages/net/darkstat/Makefile @ 11915

Last change on this file since 11915 was 11915, checked in by florian, 8 years ago

Update darkstat to 3.0.708 (#2885)

  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1#
2# Copyright (C) 2007 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7# $Id$
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=darkstat
12PKG_VERSION:=3.0.708
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16PKG_SOURCE_URL:=http://dmr.ath.cx/net/darkstat
17PKG_MD5SUM:=21fe231f6ec84be082e9d41747dd0fc9
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/darkstat
22  SECTION:=net
23  CATEGORY:=Network
24  DEPENDS:=+libpcap +zlib
25  TITLE:=Network bandwith monitor
26  URL:=http://dmr.ath.cx/net/darkstat/
27endef
28
29define Package/darkstat/description
30        darkstat is a packet sniffer that runs as a background process on a
31        cable/DSL router, gathers all sorts of statistics about network usage,
32        and serves them over HTTP.
33endef
34
35CONFIGURE_ARGS += \
36        --with-chroot-dir /var/empty
37
38define Build/Compile
39        mkdir -p $(PKG_INSTALL_DIR)
40        $(HOSTCC) $(PKG_BUILD_DIR)/static/c-ify.c \
41                -o $(PKG_BUILD_DIR)/c-ify
42        $(MAKE) -C $(PKG_BUILD_DIR) \
43                DESTDIR="$(PKG_INSTALL_DIR)" \
44                all install
45endef
46
47define Package/darkstat/install
48        $(INSTALL_DIR) $(1)/usr/sbin
49        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/darkstat $(1)/usr/sbin/
50        $(INSTALL_DIR) $(1)/etc/init.d
51        $(INSTALL_BIN) ./files/darkstat.init $(1)/etc/init.d/darkstat
52        $(INSTALL_DIR) $(1)/etc/config
53        $(INSTALL_DATA) ./files/darkstat.conf $(1)/etc/config/darkstat
54endef
55
56$(eval $(call BuildPackage,darkstat))
Note: See TracBrowser for help on using the repository browser.