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
2.2 KiB

  1. #
  2. # Copyright (C) 2018 Dengfeng Liu
  3. #
  4. # This is free software, licensed under the GNU General Public License v3.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=apfree-wifidog
  9. PKG_VERSION:=4.08.1771
  10. PKG_RELEASE:=6
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/liudf0716/apfree_wifidog.git
  13. PKG_SOURCE_VERSION:=$(PKG_VERSION)
  14. PKG_MIRROR_HASH:=0fadb7a0e139bf4a5c6daffdd0f200ee2a4c903aea71e46bc19212b054ca71a7
  15. PKG_MAINTAINER:=Dengfeng Liu <liudf0716@gmail.com>
  16. PKG_LICENSE:=GPL-3.0-or-later
  17. PKG_LICENSE_FILES:=COPYING
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. define Package/apfree-wifidog
  21. SUBMENU:=Captive Portals
  22. SECTION:=net
  23. CATEGORY:=Network
  24. DEPENDS:=+zlib +firewall4 +iptables +libip4tc +libjson-c +libevent2 +libevent2-openssl +libuci +px5g
  25. TITLE:=Apfree's wireless captive portal solution
  26. URL:=https://github.com/liudf0716/apfree_wifidog
  27. endef
  28. define Package/apfree-wifidog/description
  29. The ApFree Wifidog project is a complete and embeddable captive portal
  30. solution for wireless community groups or individuals who wish to open a free
  31. Hotspot while still preventing abuse of their Internet connection.
  32. It's enhanced wifidog
  33. endef
  34. define Package/apfree-wifidog/conffiles
  35. /etc/config/wifidogx
  36. endef
  37. define Package/apfree-wifidog/install
  38. $(INSTALL_DIR) $(1)/usr/bin
  39. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wifidogx $(1)/usr/bin/wifidogx
  40. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wdctlx $(1)/usr/bin/wdctlx
  41. $(INSTALL_DIR) $(1)/usr/sbin
  42. $(INSTALL_BIN) ./files/wdping $(1)/usr/sbin/
  43. $(INSTALL_DIR) $(1)/etc
  44. $(INSTALL_DATA) $(PKG_BUILD_DIR)/wifidog-msg.html $(1)/etc/
  45. $(INSTALL_DATA) $(PKG_BUILD_DIR)/wifidog-redir.html $(1)/etc/
  46. $(INSTALL_DATA) $(PKG_BUILD_DIR)/wifidog-redir.html.front $(1)/etc/
  47. $(INSTALL_DATA) $(PKG_BUILD_DIR)/wifidog-redir.html.rear $(1)/etc/
  48. $(INSTALL_DATA) $(PKG_BUILD_DIR)/authserver-offline.html $(1)/etc/
  49. $(INSTALL_DATA) $(PKG_BUILD_DIR)/internet-offline.html $(1)/etc/
  50. $(INSTALL_DIR) $(1)/etc/init.d
  51. $(INSTALL_BIN) ./files/wifidogx.init $(1)/etc/init.d/wifidogx
  52. $(INSTALL_DIR) $(1)/etc/config
  53. $(CP) ./files/wifidogx.conf $(1)/etc/config/wifidogx
  54. endef
  55. $(eval $(call BuildPackage,apfree-wifidog))