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.

91 lines
2.3 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:=wifidog
  9. PKG_VERSION:=1.3.0
  10. PKG_RELEASE:=8
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/wifidog/wifidog-gateway
  13. PKG_SOURCE_VERSION:=$(PKG_VERSION)
  14. PKG_MIRROR_HASH:=9ffd9f3ae54baceb723abb7a04e27a9b6a3ff1479f8a3bfda9b8a496e8b4050f
  15. PKG_MAINTAINER:=Michael Haas <haas@computerlinguist.org>
  16. PKG_LICENSE:=GPL-2.0-or-later
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=0
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/wifidog/Default
  22. SUBMENU:=Captive Portals
  23. SECTION:=net
  24. CATEGORY:=Network
  25. DEPENDS:=+iptables-mod-extra +iptables-mod-ipopt +iptables-mod-nat-extra +libpthread
  26. TITLE:=A wireless captive portal solution
  27. URL:=http://www.wifidog.org
  28. endef
  29. define Package/wifidog
  30. $(call Package/wifidog/Default)
  31. VARIANT:=normal
  32. endef
  33. define Package/wifidog-tls
  34. $(call Package/wifidog/Default)
  35. DEPENDS+= +PACKAGE_wifidog-tls:libwolfssl
  36. VARIANT:=tls
  37. endef
  38. define Package/wifidog/description
  39. The Wifidog project is a complete and embeddable captive
  40. portal solution for wireless community groups or individuals
  41. who wish to open a free Hotspot while still preventing abuse
  42. of their Internet connection.
  43. endef
  44. define Package/wifidog-tls/description
  45. $(call Package/wifidog/description)
  46. This variant can talk TLS to the auth server.
  47. endef
  48. define Package/wifidog/conffiles
  49. /etc/wifidog.conf
  50. endef
  51. Package/wifidog-tls/conffiles = $(Package/wifidog/conffiles)
  52. ifeq ($(BUILD_VARIANT),tls)
  53. CONFIGURE_ARGS += \
  54. --enable-cyassl
  55. endif
  56. define Package/wifidog/install
  57. $(INSTALL_DIR) $(1)/usr/bin
  58. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wifidog $(1)/usr/bin/
  59. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wdctl $(1)/usr/bin/
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhttpd.so.* $(1)/usr/lib/
  62. $(INSTALL_DIR) $(1)/etc
  63. $(INSTALL_DATA) $(PKG_BUILD_DIR)/wifidog.conf $(1)/etc/
  64. $(INSTALL_DATA) $(PKG_BUILD_DIR)/wifidog-msg.html $(1)/etc/
  65. $(INSTALL_DIR) $(1)/etc/init.d
  66. $(INSTALL_BIN) ./files/wifidog.init $(1)/etc/init.d/wifidog
  67. endef
  68. Package/wifidog-tls/install = $(Package/wifidog/install)
  69. $(eval $(call BuildPackage,wifidog))
  70. $(eval $(call BuildPackage,wifidog-tls))