ba49be988697a277057a0dfd9d02f354ecce0ee8
[packages.git] / net / coova-chilli / Makefile
1 #
2 # Copyright (C) 2007-2013 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=coova-chilli
11 PKG_VERSION:=1.3.0
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://ap.coova.org/chilli
16 PKG_MD5SUM:=dc0037e3cdebcb60508081b4e42e984a
17
18 PKG_INSTALL:=1
19
20 PKG_CONFIG_DEPENDS := \
21   COOVACHILLI_MINIPORTAL \
22   COOVACHILLI_REDIR \
23   COOVACHILLI_USERAGENT \
24   COOVACHILLI_DNSLOG \
25   COOVACHILLI_UAMDOMAINFILE \
26   COOVACHILLI_NOSSL \
27   COOVACHILLI_MATRIXSSL \
28   COOVACHILLI_CYASSL \
29   COOVACHILLI_OPENSSL
30
31 include $(INCLUDE_DIR)/package.mk
32
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   MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
41   MENU:=1
42 endef
43
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.
52 endef
53
54 define Package/coova-chilli/config
55   source "$(SOURCE)/Config.in"
56 endef
57
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 \
68         )
69 endef
70
71 define Package/coova-chilli/conffiles
72 /etc/chilli.conf
73 endef
74
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/
84 endef
85
86 $(eval $(call BuildPackage,coova-chilli))