[packages] Various Makefile cleanups.
[openwrt/svn-archive/archive.git] / net / chillispot / Makefile
1 #
2 # Copyright (C) 2006-2009 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:=1
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
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/chillispot
22 SUBMENU:=Captive Portals
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=+kmod-tun
26 TITLE:=Wireless LAN HotSpot controller
27 URL:=http://www.chillispot.info/
28 endef
29
30 define Package/chillispot/description
31 ChilliSpot is an open source captive portal or wireless LAN
32 access point controller. It is used for authenticating users
33 of a wireless LAN. It supports web based login which is today's
34 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/chillispot/conffiles
41 /etc/chilli.conf
42 endef
43
44 # uses GNU configure
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 DESTDIR="$(PKG_INSTALL_DIR)" \
49 all install
50 endef
51
52 define Package/chillispot/install
53 $(INSTALL_DIR) $(1)/etc/init.d
54 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/chilli
55 $(INSTALL_DIR) $(1)/etc
56 $(INSTALL_DATA) $(PKG_BUILD_DIR)/doc/chilli.conf $(1)/etc/
57 $(INSTALL_DIR) $(1)/usr/sbin
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/chilli $(1)/usr/sbin/
59 endef
60
61 $(eval $(call BuildPackage,chillispot))