2 # Copyright (C) 2007-2013 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 \
27 COOVACHILLI_MATRIXSSL \
31 include $(INCLUDE_DIR)/package.mk
33 define Package/coova-chilli
34 SUBMENU:=Captive Portals
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 MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
44 define Package/coova-chilli/description
45 CoovaChilli is an open source access controller for wireless LAN
46 access points and is based on ChilliSpot. It is used for authenticating
47 users of a wireless (or wired) LAN. It supports web based login (UAM)
48 which is today's standard for public HotSpots and it supports Wireless
49 Protected Access (WPA) which is the standard of the future.
50 Authentication, authorization and accounting (AAA) is handled by your
51 favorite radius server.
54 define Package/coova-chilli/config
55 source "$(SOURCE)/Config.in"
58 define Build/Configure
59 $(call Build/Configure/Default, \
60 $(if $(CONFIG_COOVACHILLI_REDIR),--enable,--disable)-chilliredir \
61 $(if $(CONFIG_COOVACHILLI_DNSLOG),--enable,--disable)-dnslog \
62 $(if $(CONFIG_COOVACHILLI_MINIPORTAL),--enable,--disable)-miniportal \
63 $(if $(CONFIG_COOVACHILLI_USERAGENT),--enable,--disable)-useragent \
64 $(if $(CONFIG_COOVACHILLI_UAMDOMAINFILE),--enable,--disable)-uamdomainfile \
65 $(if $(CONFIG_COOVACHILLI_MATRIXSSL),--with,--without)-matrixssl \
66 $(if $(CONFIG_COOVACHILLI_CYASSL),--with,--without)-cyaxssl \
67 $(if $(CONFIG_COOVACHILLI_OPENSSL),--with,--without)-openssl \
71 define Package/coova-chilli/conffiles
75 define Package/coova-chilli/install
76 $(INSTALL_DIR) $(1)/etc
77 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/chilli.conf $(1)/etc/
78 $(INSTALL_DIR) $(1)/etc/chilli
79 $(CP) $(PKG_INSTALL_DIR)/etc/chilli/* $(1)/etc/chilli/
80 $(INSTALL_DIR) $(1)/usr/sbin
81 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/chilli* $(1)/usr/sbin/
82 $(INSTALL_DIR) $(1)/usr/lib/
83 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/
86 $(eval $(call BuildPackage,coova-chilli))