2006-08-06 12:36:46 +00:00
|
|
|
#
|
2009-07-12 11:41:22 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2006-08-06 12:36:46 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=nocatsplash
|
2010-04-10 00:33:47 +00:00
|
|
|
PKG_VERSION:=0.93pre2
|
2009-07-12 11:41:22 +00:00
|
|
|
PKG_RELEASE:=2
|
2006-08-06 12:36:46 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=NoCatSplash-$(PKG_VERSION).tar.gz
|
2010-04-10 00:38:04 +00:00
|
|
|
PKG_SOURCE_URL:=http://nocat.net/downloads/NoCatSplash/
|
2010-04-10 00:33:47 +00:00
|
|
|
PKG_MD5SUM:=b0aa5cc33a3bbdd8e65726ff3cfe3cd1
|
2006-08-06 12:36:46 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/NoCatSplash-$(PKG_VERSION)
|
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2006-08-06 12:36:46 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/nocatsplash
|
2007-09-25 18:16:27 +00:00
|
|
|
SUBMENU:=Captive Portals
|
2006-08-06 12:36:46 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2009-07-12 11:41:22 +00:00
|
|
|
DEPENDS:=+glib1 +iptables-mod-ipopt +iptables-mod-nat-extra
|
2006-08-06 12:36:46 +00:00
|
|
|
TITLE:=Open public network gateway daemon
|
|
|
|
URL:=http://nocat.net
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/nocatsplash/description
|
|
|
|
NoCatSplash is an Open Public Network Gateway Daemon.
|
2014-03-27 07:03:54 +00:00
|
|
|
It performs as a [captive/open/active] portal. When run on a gateway/router
|
|
|
|
on a network, all web requests are redirected until the client either logs
|
|
|
|
in or clicks "I Accept" to an AUP. The gateway daemon then changes the
|
|
|
|
firewall rules on the gateway to pass traffic for that client (based on IP
|
2007-10-14 04:32:56 +00:00
|
|
|
address and MAC address).
|
|
|
|
endef
|
|
|
|
|
2006-08-06 12:42:05 +00:00
|
|
|
define Package/nocatsplash/conffiles
|
|
|
|
/etc/nocat.conf
|
|
|
|
endef
|
|
|
|
|
2006-08-06 12:36:46 +00:00
|
|
|
define Build/Configure
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--with-firewall=iptables \
|
|
|
|
--with-glib-prefix="$(STAGING_DIR)/usr" \
|
|
|
|
)
|
2006-08-06 12:36:46 +00:00
|
|
|
endef
|
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
define Package/nocatsplash/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)
|
2010-02-18 13:10:21 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
|
2006-08-06 12:36:46 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,nocatsplash))
|