862b6a2e158985a6d73e0d354ef96724b6bd2d0d
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=coova-chilli
11 PKG_VERSION:=1.0.13
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://ap.coova.org/chilli/
16 PKG_MD5SUM:=130c565ea117e3595190c7a2bfe5676a
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/coova-chilli
21 SUBMENU:=Captive Portals
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+kmod-tun
25 TITLE:=Wireless LAN HotSpot controller (Coova Chilli Version)
26 URL:=http://www.coova.org/CoovaChilli
27 endef
28
29 define Package/coova-chilli/description
30 CoovaChilli is an open source access controller for wireless LAN
31 access points and is based on ChilliSpot. It is used for authenticating
32 users of a wireless (or wired) LAN. It supports web based login (UAM)
33 which is today's standard for public HotSpots and it supports Wireless
34 Protected Access (WPA) which is the standard of the future.
35 Authentication, authorization and accounting (AAA) is handled by your
36 favorite radius server.
37 endef
38
39 define Package/coova-chilli/conffiles
40 /etc/chilli.conf
41 endef
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 all install
47 endef
48
49 define Package/coova-chilli/install
50 $(INSTALL_DIR) $(1)/etc
51 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/chilli.conf $(1)/etc/
52 $(INSTALL_DIR) $(1)/etc/chilli
53 $(CP) $(PKG_INSTALL_DIR)/etc/chilli/* $(1)/etc/chilli/
54 $(INSTALL_DIR) $(1)/usr/sbin
55 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/chilli* $(1)/usr/sbin/
56 $(INSTALL_DIR) $(1)/usr/lib/
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,coova-chilli))