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