e4d2a98f20b288ca66c388d3ed6d026dc94d5dc3
[packages.git] / net / chillispot / Makefile
1
2 # Copyright (C) 2006 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:=chillispot
12 PKG_VERSION:=1.1.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.chillispot.org/download
17 PKG_MD5SUM:=9d2597756af3fa14d7331b4a3651fc9b
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/chillispot
25   SUBMENU:=Captive Portals
26   SECTION:=net
27   CATEGORY:=Network
28   DEPENDS:=+kmod-tun
29   TITLE:=Wireless LAN HotSpot controller
30   URL:=http://www.chillispot.org/
31 endef
32
33 define Package/chillispot/description
34         ChilliSpot is an open source captive portal or wireless LAN 
35         access point controller. It is used for authenticating users 
36         of a wireless LAN. It supports web based login which is today's 
37         standard for public HotSpots and it supports Wireless Protected 
38         Access (WPA) which is the standard of the future. Authentication, 
39         authorization and accounting (AAA) is handled by your favorite 
40         radius server.
41 endef
42
43 define Package/chillispot/conffiles
44 /etc/chilli.conf
45 endef
46
47 # uses GNU configure
48
49 define Build/Compile
50         $(MAKE) -C $(PKG_BUILD_DIR) \
51                 DESTDIR="$(PKG_INSTALL_DIR)" \
52                 all install
53 endef
54
55 define Package/chillispot/install
56         $(INSTALL_DIR) $(1)/etc/init.d
57         $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/chilli
58         $(INSTALL_DIR) $(1)/etc
59         $(INSTALL_DATA) $(PKG_BUILD_DIR)/doc/chilli.conf $(1)/etc/
60         $(INSTALL_DIR) $(1)/usr/sbin
61         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/chilli $(1)/usr/sbin/
62 endef
63
64 $(eval $(call BuildPackage,chillispot))