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.

51 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2006-2016 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-php
  9. PKG_VERSION:=2.0.1
  10. PKG_RELEASE:=2
  11. PKG_MAINTAINER:=Jean-Michel Lacroix <lacroix@lepine-lacroix.info>
  12. PKG_LICENSE:=GPL-2.0
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/bandwidthd-php
  15. SECTION:=utils
  16. CATEGORY:=Utilities
  17. DEPENDS:=+libpcre +libxml2 +php7 +php7-cgi +php7-mod-pgsql +php7-mod-gd
  18. TITLE:=PHP files to graph bandwidthd data in a postgresql database
  19. URL:=http://bandwidthd.sourceforge.net/
  20. endef
  21. define Package/bandwidthd-php/description
  22. PHP files to graph bandwidthd data in a postgresql database
  23. endef
  24. define Build/Compile
  25. endef
  26. define Package/bandwidthd-php/install
  27. $(INSTALL_DIR) $(1)/www/phphtdocs
  28. $(INSTALL_DATA) ./files/legend.gif $(1)/www/phphtdocs/
  29. $(INSTALL_DATA) ./files/logo.gif $(1)/www/phphtdocs/
  30. $(INSTALL_DATA) ./files/details.php $(1)/www/phphtdocs/
  31. $(INSTALL_DATA) ./files/footer.php $(1)/www/phphtdocs/
  32. $(INSTALL_DATA) ./files/graph.php $(1)/www/phphtdocs/
  33. $(INSTALL_DATA) ./files/include.php $(1)/www/phphtdocs/
  34. $(INSTALL_DATA) ./files/index.php $(1)/www/phphtdocs/
  35. ln -s /var/etc/bandwidthd-php.conf $(1)/www/phphtdocs/config.conf
  36. $(INSTALL_DIR) $(1)//etc/config
  37. $(INSTALL_CONF) ./files/bandwidthd-php.config $(1)/etc/config/bandwidthd-php
  38. $(INSTALL_DIR) $(1)/etc/init.d
  39. $(INSTALL_BIN) ./files/bandwidthd-php.init $(1)/etc/init.d/bandwidthd-php
  40. endef
  41. $(eval $(call BuildPackage,bandwidthd-php))