source: packages/net/darkstat/Makefile @ 29224

Last change on this file since 29224 was 29224, checked in by nico, 4 years ago

packages/darkstat: rename uci config file

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