jamvm: moved to github
[openwrt.org/packages.git] / net / pepperspot / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# Copyright (C) 2008-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PKG_NAME:=pepperspot
PKG_VERSION:=0.4
PKG_RELEASE:=1
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=@SF/pepperspot
PKG_MD5SUM:=977ad2d376190daadd863509110acf09
 
PKG_INSTALL:=1
 
include $(INCLUDE_DIR)/package.mk
 
define Package/pepperspot
  SUBMENU:=Captive Portals
  SECTION:=net
  CATEGORY:=Network
  TITLE:=Wireless LAN HotSpot controller
  URL:=http://pepperspot.sourceforge.net/
  DEPENDS:=+kmod-tun +kmod-ipv6
endef
 
define Package/pepperspot/description
  PepperSpot is a captive portal or wireless LAN access point controller
  which support the IPv6 protocol. It supports web based login and it
  supports Wireless Protected Access (WPA). Authentication is handled by
  your favorite radius server (over IPv4/IPv6).
endef
 
define Package/pepperspot/conffiles
/etc/pepper.conf
endef
 
# uses GNU configure
 
define Build/Prepare
$(call Build/Prepare/Default)
        # prevent autoconf invocation, since one the patches touched
        # configure
        (cd $(PKG_BUILD_DIR); \
                touch -r Makefile.am configure.in; \
                touch -r Makefile.in configure; \
        )
endef
 
define Package/pepperspot/install
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/pepper
        $(INSTALL_DIR) $(1)/etc
        $(INSTALL_CONF) $(PKG_BUILD_DIR)/extra/pepper.conf $(1)/etc/
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pepper $(1)/usr/sbin/
endef
 
$(eval $(call BuildPackage,pepperspot))
 
comments