2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 11018 2008-05-03 12:11:35Z nico $
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=@SF/bandwidthd
17 PKG_MD5SUM:=aa79aad7bd489fd2cae1f7dc086ca8b6
19 include $(INCLUDE_DIR)/package.mk
21 define Package/bandwidthd
25 URL:=http://bandwidthd.sourceforge.net/
26 DEPENDS:=+libpng +libgd +libpcap
29 define Package/bandwidthd/daemon
30 This package contains bandwidthd a bandwith tracking utility.
34 ac_cv_file__sw_lib=no \
35 ac_cv_file__sw_include=no \
36 ac_cv_file__usr_pkg_lib=no \
37 ac_cv_file__usr_pkg_include=no \
38 ac_cv_file__usr_local_pgsql_lib=no \
39 ac_cv_file__usr_local_pgsql_include=no \
41 EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
42 EXTRA_LDFLAGS+=-L$(STAGING_DIR)/usr/lib -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
44 define Package/bandwidthd/install
45 $(INSTALL_DIR) $(1)/usr/sbin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bandwidthd $(1)/usr/sbin/
47 $(INSTALL_DIR) $(1)/etc/config
48 $(INSTALL_DATA) ./files/bandwidthd.config $(1)/etc/config/bandwidthd
49 $(INSTALL_DIR) $(1)/etc/init.d
50 $(INSTALL_BIN) ./files/bandwidthd.init $(1)/etc/init.d/bandwidthd
51 $(INSTALL_DIR) $(1)/www
52 $(INSTALL_DATA) $(PKG_BUILD_DIR)/htdocs/legend.gif $(1)/www/
55 $(eval $(call BuildPackage,bandwidthd))