2007-06-02 10:54:52 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007 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:=nodogsplash
|
2009-09-20 12:52:15 +00:00
|
|
|
PKG_VERSION:=0.9_beta9.9.5
|
|
|
|
PKG_RELEASE:=1
|
2007-06-02 10:54:52 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2007-08-21 08:11:29 +00:00
|
|
|
PKG_SOURCE_URL:=http://kokoro.ucsd.edu/nodogsplash/ \
|
|
|
|
http://kokoro.ucsd.edu/nodogsplash/old/
|
2009-09-20 12:52:15 +00:00
|
|
|
#PKG_MD5SUM:=96e597977717610186ed09ebd7fa54cf
|
2007-06-02 10:54:52 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/nodogsplash
|
2007-09-25 18:16:27 +00:00
|
|
|
SUBMENU:=Captive Portals
|
2007-06-02 10:54:52 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2009-09-20 12:52:15 +00:00
|
|
|
DEPENDS:=+libpthread +iptables-mod-ipopt
|
2007-06-02 10:54:52 +00:00
|
|
|
TITLE:=Open public network gateway daemon
|
|
|
|
URL:=http://kokoro.ucsd.edu/nodogsplash/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/nodogsplash/description
|
|
|
|
Nodogsplash offers a simple way to open a free hotspot providing restricted access to an
|
|
|
|
internet connection. It is intended for use on wireless access points running OpenWRT
|
|
|
|
(but may also work on other Linux-based devices).
|
|
|
|
endef
|
|
|
|
|
2007-06-02 10:54:52 +00:00
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default,\
|
|
|
|
--enable-static \
|
|
|
|
--enable-shared \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2009-09-20 12:52:15 +00:00
|
|
|
define Build/Compile
|
2007-06-02 10:54:52 +00:00
|
|
|
mkdir -p $(PKG_INSTALL_DIR)/usr/{share{,/doc/$(PKG_NAME)-$(PKG_VERSION)},lib,include{,/nodogsplash},bin,sbin}/
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
mkinstalldirs="$(SHELL) $(PKG_BUILD_DIR)/config/mkinstalldirs" \
|
|
|
|
install
|
|
|
|
endef
|
|
|
|
|
2009-09-20 12:52:15 +00:00
|
|
|
define Package/nodogsplash/install
|
2007-06-02 10:54:52 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
2007-06-02 10:54:52 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
|
2008-11-24 09:42:08 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
|
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/$(PKG_NAME).conf $(1)/etc/$(PKG_NAME)/
|
2009-09-20 12:52:15 +00:00
|
|
|
$(SED) 's,br0,br-lan,' $(1)/etc/$(PKG_NAME)/$(PKG_NAME).conf
|
2008-11-24 09:42:08 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/htdocs $(1)/etc/$(PKG_NAME)/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2009-09-20 12:52:15 +00:00
|
|
|
$(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
|
|
|
|
$(SED) 's,\(do_module_tests "imq"\),#\1,' $(1)/etc/init.d/$(PKG_NAME)
|
|
|
|
$(SED) 's,\(do_module_tests "ipt_IMQ"\),#\1,' $(1)/etc/init.d/$(PKG_NAME)
|
|
|
|
$(SED) 's,\(do_module_tests "sch_htb"\),#\1,' $(1)/etc/init.d/$(PKG_NAME)
|
2007-06-02 10:54:52 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,nodogsplash))
|