open-plc-utils: moved to github
[packages.git] / net / coova-chilli / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=coova-chilli
11 PKG_VERSION:=1.3.0
12 PKG_RELEASE:=5
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_LARGELIMITS \
27   COOVACHILLI_NOSSL \
28   COOVACHILLI_MATRIXSSL \
29   COOVACHILLI_CYASSL \
30   COOVACHILLI_OPENSSL
31
32 include $(INCLUDE_DIR)/package.mk
33
34 define Package/coova-chilli
35   SUBMENU:=Captive Portals
36   SECTION:=net
37   CATEGORY:=Network
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>
42   MENU:=1
43 endef
44
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.
53 endef
54
55 define Package/coova-chilli/config
56   source "$(SOURCE)/Config.in"
57 endef
58
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 \
70         )
71 endef
72
73 define Package/coova-chilli/conffiles
74 /etc/chilli.conf
75 endef
76
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/
88 endef
89
90 $(eval $(call BuildPackage,coova-chilli))