Rename coova to coova-chilli (#2826)
[openwrt/svn-archive/archive.git] / net / coova-chilli / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=coova-chilli
12 PKG_VERSION:=1.0.11
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://ap.coova-chilli.org/chilli/
17 PKG_MD5SUM:=d932dc9ca42b90d56ef27552f049c44a
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/coova-chilli
22 SUBMENU:=Captive Portals
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=+kmod-tun
26 TITLE:=Wireless LAN HotSpot controller (Coova Chilli Version)
27 URL:=http://www.coova-chilli.org/
28 endef
29
30 define Package/coova-chilli/description
31 CoovaChilli is an open source access controller for wireless LAN
32 access points and is based on ChilliSpot. It is used for authenticating
33 users of a wireless (or wired) LAN. It supports web based login (UAM)
34 which is today's standard for public HotSpots and it supports Wireless Protected
35 Access (WPA) which is the standard of the future. Authentication,
36 authorization and accounting (AAA) is handled by your favorite
37 radius server.
38 endef
39
40 define Package/coova-chilli/conffiles
41 /etc/chilli.conf
42 endef
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
47 all install
48 endef
49
50 define Package/coova-chilli/install
51 $(INSTALL_DIR) $(1)/etc
52 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/chilli.conf $(1)/etc/
53 $(INSTALL_DIR) $(1)/etc/chilli
54 $(CP) $(PKG_INSTALL_DIR)/etc/chilli/* $(1)/etc/chilli/
55 $(INSTALL_DIR) $(1)/usr/sbin
56 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/chilli* $(1)/usr/sbin/
57 $(INSTALL_DIR) $(1)/usr/lib/
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/
59 endef
60
61 $(eval $(call BuildPackage,coova-chilli))