You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2006-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=bandwidthd
  9. PKG_VERSION:=2.0.1
  10. PKG_RELEASE:=4
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
  12. PKG_SOURCE_URL:=@SF/bandwidthd
  13. PKG_MD5SUM:=aa79aad7bd489fd2cae1f7dc086ca8b6
  14. PKG_MAINTAINER:=Jean-Michel Lacroix <lacroix@lepine-lacroix.info>
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/bandwidthd
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. TITLE:=Bandwidthd
  22. URL:=http://bandwidthd.sourceforge.net/
  23. DEPENDS:=+libgd +libpcap
  24. endef
  25. define Package/bandwidthd/daemon
  26. This package contains bandwidthd a bandwith tracking utility.
  27. endef
  28. CONFIGURE_ARGS += \
  29. ac_cv_file__sw_lib=no \
  30. ac_cv_file__sw_include=no \
  31. ac_cv_file__usr_pkg_lib=no \
  32. ac_cv_file__usr_pkg_include=no \
  33. ac_cv_file__usr_local_pgsql_lib=no \
  34. ac_cv_file__usr_local_pgsql_include=no \
  35. ac_cv_lib_pq_PQconnectdb=no \
  36. EXTRA_CFLAGS+= $(TARGET_CPPFLAGS)
  37. EXTRA_LDFLAGS+= $(TARGET_LDFLAGS) -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
  38. define Package/bandwidthd/install
  39. $(INSTALL_DIR) $(1)/usr/sbin
  40. $(INSTALL_BIN) $(PKG_BUILD_DIR)/bandwidthd $(1)/usr/sbin/
  41. $(INSTALL_DIR) $(1)/etc/config
  42. $(INSTALL_DATA) ./files/bandwidthd.config $(1)/etc/config/bandwidthd
  43. $(INSTALL_DIR) $(1)/etc/init.d
  44. $(INSTALL_BIN) ./files/bandwidthd.init $(1)/etc/init.d/bandwidthd
  45. $(INSTALL_DIR) $(1)/www
  46. $(INSTALL_DATA) $(PKG_BUILD_DIR)/htdocs/legend.gif $(1)/www/
  47. $(INSTALL_DATA) $(PKG_BUILD_DIR)/htdocs/logo.gif $(1)/www/
  48. endef
  49. define Package/bandwidthd/conffiles
  50. /etc/config/bandwidthd
  51. endef
  52. $(eval $(call BuildPackage,bandwidthd))