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.

105 lines
3.3 KiB

  1. #
  2. # Copyright (C) 2007-2014 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:=coova-chilli
  9. PKG_VERSION:=1.3.0+20141128
  10. PKG_MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
  11. PKG_LICENSE:=GPL-2.0+
  12. PKG_LICENSE_FILES:=COPYING
  13. PKG_RELEASE:=1
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_URL:=git://github.com/coova/coova-chilli
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_SOURCE_VERSION:=b93de20a288c01c2ba28e96e31ad6da01627f45f
  18. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  19. PKG_MD5SUM:=2adb27ec56172b18c5beee359dd7898d
  20. PKG_INSTALL:=1
  21. PKG_CONFIG_DEPENDS := \
  22. COOVACHILLI_MINIPORTAL \
  23. COOVACHILLI_REDIR \
  24. COOVACHILLI_USERAGENT \
  25. COOVACHILLI_DNSLOG \
  26. COOVACHILLI_UAMDOMAINFILE \
  27. COOVACHILLI_LARGELIMITS \
  28. COOVACHILLI_NOSSL \
  29. COOVACHILLI_MATRIXSSL \
  30. COOVACHILLI_CYASSL \
  31. COOVACHILLI_OPENSSL
  32. include $(INCLUDE_DIR)/package.mk
  33. define Package/coova-chilli
  34. SUBMENU:=Captive Portals
  35. SECTION:=net
  36. CATEGORY:=Network
  37. DEPENDS:=+kmod-tun +librt +COOVACHILLI_MATRIXSSL:libmatrixssl +COOVACHILLI_CYASSL:libcyassl +COOVACHILLI_OPENSSL:libopenssl
  38. TITLE:=Wireless LAN HotSpot controller (Coova Chilli Version)
  39. URL:=http://www.coova.org/CoovaChilli
  40. MENU:=1
  41. endef
  42. define Package/coova-chilli/description
  43. CoovaChilli is an open source access controller for wireless LAN
  44. access points and is based on ChilliSpot. It is used for authenticating
  45. users of a wireless (or wired) LAN. It supports web based login (UAM)
  46. which is today's standard for public HotSpots and it supports Wireless
  47. Protected Access (WPA) which is the standard of the future.
  48. Authentication, authorization and accounting (AAA) is handled by your
  49. favorite radius server.
  50. endef
  51. define Package/coova-chilli/config
  52. source "$(SOURCE)/Config.in"
  53. endef
  54. define Build/Prepare
  55. $(call Build/Prepare/Default)
  56. ( cd $(PKG_BUILD_DIR) ; \
  57. [ -f ./configure ] || { \
  58. ./bootstrap ; \
  59. } \
  60. )
  61. endef
  62. define Build/Configure
  63. $(call Build/Configure/Default, \
  64. $(if $(CONFIG_COOVACHILLI_PROXY),--enable,--disable)-chilliproxy \
  65. $(if $(CONFIG_COOVACHILLI_REDIR),--enable,--disable)-chilliredir \
  66. $(if $(CONFIG_COOVACHILLI_DNSLOG),--enable,--disable)-dnslog \
  67. $(if $(CONFIG_COOVACHILLI_MINIPORTAL),--enable,--disable)-miniportal \
  68. $(if $(CONFIG_COOVACHILLI_USERAGENT),--enable,--disable)-useragent \
  69. $(if $(CONFIG_COOVACHILLI_LARGELIMITS),--enable,--disable)-largelimits \
  70. $(if $(CONFIG_COOVACHILLI_UAMDOMAINFILE),--enable,--disable)-uamdomainfile \
  71. $(if $(CONFIG_COOVACHILLI_MATRIXSSL),--with,--without)-matrixssl \
  72. $(if $(CONFIG_COOVACHILLI_CYASSL),--with,--without)-cyaxssl \
  73. $(if $(CONFIG_COOVACHILLI_OPENSSL),--with,--without)-openssl \
  74. )
  75. endef
  76. define Package/coova-chilli/conffiles
  77. /etc/chilli.conf
  78. endef
  79. define Package/coova-chilli/install
  80. $(INSTALL_DIR) $(1)/etc
  81. $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/chilli.conf $(1)/etc/
  82. $(INSTALL_DIR) $(1)/etc/chilli
  83. $(CP) $(PKG_INSTALL_DIR)/etc/chilli/* $(1)/etc/chilli/
  84. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  85. $(INSTALL_DATA) ./files/chilli.hotplug $(1)/etc/hotplug.d/iface/30-chilli
  86. $(INSTALL_DIR) $(1)/usr/sbin
  87. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/chilli* $(1)/usr/sbin/
  88. $(INSTALL_DIR) $(1)/usr/lib/
  89. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/
  90. endef
  91. $(eval $(call BuildPackage,coova-chilli))