[coova-chilli]: add some compile time options (more to come)
[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:=2
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
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/coova-chilli
30   SUBMENU:=Captive Portals
31   SECTION:=net
32   CATEGORY:=Network
33   DEPENDS:=+kmod-tun +librt
34   TITLE:=Wireless LAN HotSpot controller (Coova Chilli Version)
35   URL:=http://www.coova.org/CoovaChilli
36   MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
37   MENU:=1
38 endef
39
40 define Package/coova-chilli/description
41         CoovaChilli is an open source access controller for wireless LAN
42         access points and is based on ChilliSpot. It is used for authenticating
43         users of a wireless (or wired) LAN. It supports web based login (UAM)
44         which is today's standard for public HotSpots and it supports Wireless
45         Protected Access (WPA) which is the standard of the future.
46         Authentication, authorization and accounting (AAA) is handled by your
47         favorite radius server.
48 endef
49
50 define Package/coova-chilli/config
51   source "$(SOURCE)/Config.in"
52 endef
53
54 define Build/Configure
55         $(call Build/Configure/Default, \
56         $(if $(CONFIG_COOVACHILLI_REDIR),--enable,--disable)-chilliredir \
57         $(if $(CONFIG_COOVACHILLI_DNSLOG),--enable,--disable)-dnslog \
58         $(if $(CONFIG_COOVACHILLI_MINIPORTAL),--enable,--disable)-miniportal \
59         $(if $(CONFIG_COOVACHILLI_USERAGENT),--enable,--disable)-useragent \
60         $(if $(CONFIG_COOVACHILLI_UAMDOMAINFILE),--enable,--disable)-uamdomainfile \
61         )
62 endef
63
64 define Package/coova-chilli/conffiles
65 /etc/chilli.conf
66 endef
67
68 define Package/coova-chilli/install
69         $(INSTALL_DIR) $(1)/etc
70         $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/chilli.conf $(1)/etc/
71         $(INSTALL_DIR) $(1)/etc/chilli
72         $(CP) $(PKG_INSTALL_DIR)/etc/chilli/* $(1)/etc/chilli/
73         $(INSTALL_DIR) $(1)/usr/sbin
74         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/chilli* $(1)/usr/sbin/
75         $(INSTALL_DIR) $(1)/usr/lib/
76         $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/
77 endef
78
79 $(eval $(call BuildPackage,coova-chilli))