2 # Copyright (C) 2007-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 PKG_NAME:=coova-chilli
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://ap.coova.org/chilli
16 PKG_MD5SUM:=dc0037e3cdebcb60508081b4e42e984a
20 PKG_CONFIG_DEPENDS := \
21 COOVACHILLI_MINIPORTAL \
23 COOVACHILLI_USERAGENT \
25 COOVACHILLI_UAMDOMAINFILE \
26 COOVACHILLI_LARGELIMITS \
28 COOVACHILLI_MATRIXSSL \
32 include $(INCLUDE_DIR)/package.mk
34 define Package/coova-chilli
35 SUBMENU:=Captive Portals
38 DEPENDS:=+kmod-tun +librt +COOVACHILLI_MATRIXSSL:libmatrixssl +COOVACHILLI_CYASSL:libcyassl +COOVACHILLI_OPENSSL:libopenssl
39 TITLE:=Wireless LAN HotSpot controller (Coova Chilli Version)
40 URL:=http://www.coova.org/CoovaChilli
41 MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
45 define Package/coova-chilli/description
46 CoovaChilli is an open source access controller for wireless LAN
47 access points and is based on ChilliSpot. It is used for authenticating
48 users of a wireless (or wired) LAN. It supports web based login (UAM)
49 which is today's standard for public HotSpots and it supports Wireless
50 Protected Access (WPA) which is the standard of the future.
51 Authentication, authorization and accounting (AAA) is handled by your
52 favorite radius server.
55 define Package/coova-chilli/config
56 source "$(SOURCE)/Config.in"
59 define Build/Configure
60 $(call Build/Configure/Default, \
61 $(if $(CONFIG_COOVACHILLI_REDIR),--enable,--disable)-chilliredir \
62 $(if $(CONFIG_COOVACHILLI_DNSLOG),--enable,--disable)-dnslog \
63 $(if $(CONFIG_COOVACHILLI_MINIPORTAL),--enable,--disable)-miniportal \
64 $(if $(CONFIG_COOVACHILLI_USERAGENT),--enable,--disable)-useragent \
65 $(if $(CONFIG_COOVACHILLI_LARGELIMITS),--enable,--disable)-largelimits \
66 $(if $(CONFIG_COOVACHILLI_UAMDOMAINFILE),--enable,--disable)-uamdomainfile \
67 $(if $(CONFIG_COOVACHILLI_MATRIXSSL),--with,--without)-matrixssl \
68 $(if $(CONFIG_COOVACHILLI_CYASSL),--with,--without)-cyaxssl \
69 $(if $(CONFIG_COOVACHILLI_OPENSSL),--with,--without)-openssl \
73 define Package/coova-chilli/conffiles
77 define Package/coova-chilli/install
78 $(INSTALL_DIR) $(1)/etc
79 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/chilli.conf $(1)/etc/
80 $(INSTALL_DIR) $(1)/etc/chilli
81 $(CP) $(PKG_INSTALL_DIR)/etc/chilli/* $(1)/etc/chilli/
82 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
83 $(INSTALL_DATA) ./files/chilli.hotplug $(1)/etc/hotplug.d/iface/30-chilli
84 $(INSTALL_DIR) $(1)/usr/sbin
85 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/chilli* $(1)/usr/sbin/
86 $(INSTALL_DIR) $(1)/usr/lib/
87 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/
90 $(eval $(call BuildPackage,coova-chilli))