nuke $Id$ in /packages as well
[openwrt/svn-archive/archive.git] / net / pepperspot / Makefile
1 #
2 # Copyright (C) 2008 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:=pepperspot
11 PKG_VERSION:=0.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/pepperspot
16 PKG_MD5SUM:=52e5861f6cae05a972b8a159be270bf7
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/pepperspot
21 SUBMENU:=Captive Portals
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+kmod-tun
25 TITLE:=Wireless LAN HotSpot controller
26 URL:=http://www.pepperspot.org/
27 endef
28
29 define Package/pepperspot/description
30 PepperSpot is a captive portal or wireless LAN access point controller
31 which support the IPv6 protocol. It supports web based login and it
32 supports Wireless Protected Access (WPA). Authentication is handled by
33 your favorite radius server (over IPv4/IPv6).
34 endef
35
36 define Package/pepperspot/conffiles
37 /etc/pepper.conf
38 endef
39
40 # uses GNU configure
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 DESTDIR="$(PKG_INSTALL_DIR)" \
45 all install
46 endef
47
48 define Package/pepperspot/install
49 $(INSTALL_DIR) $(1)/etc/init.d
50 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/pepper
51 $(INSTALL_DIR) $(1)/etc
52 $(INSTALL_DATA) $(PKG_BUILD_DIR)/doc/pepper.conf $(1)/etc/
53 $(INSTALL_DIR) $(1)/usr/sbin
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pepper $(1)/usr/sbin/
55 endef
56
57 $(eval $(call BuildPackage,pepperspot))