2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=@SF/bandwidthd
16 PKG_MD5SUM:=aa79aad7bd489fd2cae1f7dc086ca8b6
18 include $(INCLUDE_DIR)/package.mk
20 define Package/bandwidthd
24 URL:=http://bandwidthd.sourceforge.net/
25 DEPENDS:=+libgd +libpcap
28 define Package/bandwidthd/daemon
29 This package contains bandwidthd a bandwith tracking utility.
33 ac_cv_file__sw_lib=no \
34 ac_cv_file__sw_include=no \
35 ac_cv_file__usr_pkg_lib=no \
36 ac_cv_file__usr_pkg_include=no \
37 ac_cv_file__usr_local_pgsql_lib=no \
38 ac_cv_file__usr_local_pgsql_include=no \
39 ac_cv_lib_pq_PQconnectdb=no \
41 EXTRA_CFLAGS+= $(TARGET_CPPFLAGS)
42 EXTRA_LDFLAGS+= $(TARGET_LDFLAGS) -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/
53 $(INSTALL_DATA) $(PKG_BUILD_DIR)/htdocs/logo.gif $(1)/www/
56 $(eval $(call BuildPackage,bandwidthd))