diff options
| author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
|---|---|---|
| committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
| commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
| tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/nocatsplash | |
Initial import
Diffstat (limited to 'package/nocatsplash')
| -rw-r--r-- | package/nocatsplash/Config.in | 12 | ||||
| -rw-r--r-- | package/nocatsplash/Makefile | 30 | ||||
| -rw-r--r-- | package/nocatsplash/ipkg/nocatsplash.conffiles | 1 | ||||
| -rw-r--r-- | package/nocatsplash/ipkg/nocatsplash.control | 10 | ||||
| -rw-r--r-- | package/nocatsplash/patches/openwrt-firewall.patch | 19 |
5 files changed, 72 insertions, 0 deletions
diff --git a/package/nocatsplash/Config.in b/package/nocatsplash/Config.in new file mode 100644 index 000000000..38d38a044 --- /dev/null +++ b/package/nocatsplash/Config.in @@ -0,0 +1,12 @@ +config ADK_PACKAGE_NOCATSPLASH + prompt "nocatsplash....................... Open public network gateway daemon" + tristate + default n + help + NoCatSplash is an Open Public Network Gateway Daemon. + 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 + address and MAC address). + diff --git a/package/nocatsplash/Makefile b/package/nocatsplash/Makefile new file mode 100644 index 000000000..600e421f0 --- /dev/null +++ b/package/nocatsplash/Makefile @@ -0,0 +1,30 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= nocatsplash +PKG_VERSION:= 0.92 +PKG_RELEASE:= 1 +PKG_MD5SUM:= e0fcc0effe52e63bc31070d16d0b4a81 +MASTER_SITES:= http://nocat.net/download/NoCatSplash/ +DISTFILES:= NoCatSplash-${PKG_VERSION}.tar.gz +WRKDIST= ${WRKDIR}/NoCatSplash-${PKG_VERSION} + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,NOCATSPLASH,nocatsplash,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +CONFIGURE_STYLE:= gnu +CONFIGURE_ARGS+= --with-firewall=iptables \ + --with-glib-prefix="${STAGING_DIR}/usr" + +BUILD_STYLE:= auto +INSTALL_STYLE:= auto + +post-install: + ${CP} ${WRKINST}/* ${IDIR_NOCATSPLASH}/ + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/nocatsplash/ipkg/nocatsplash.conffiles b/package/nocatsplash/ipkg/nocatsplash.conffiles new file mode 100644 index 000000000..a25777d9a --- /dev/null +++ b/package/nocatsplash/ipkg/nocatsplash.conffiles @@ -0,0 +1 @@ +/etc/nocat.conf diff --git a/package/nocatsplash/ipkg/nocatsplash.control b/package/nocatsplash/ipkg/nocatsplash.control new file mode 100644 index 000000000..ec0bfc7e2 --- /dev/null +++ b/package/nocatsplash/ipkg/nocatsplash.control @@ -0,0 +1,10 @@ +Package: nocatsplash +Priority: optional +Section: net +Depends: iptables-extra, glib1 +Description: NoCatSplash is an Open Public Network Gateway Daemon. + 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 + address and MAC address). diff --git a/package/nocatsplash/patches/openwrt-firewall.patch b/package/nocatsplash/patches/openwrt-firewall.patch new file mode 100644 index 000000000..055b57f24 --- /dev/null +++ b/package/nocatsplash/patches/openwrt-firewall.patch @@ -0,0 +1,19 @@ +diff -urN NoCatSplash-0.92.old/libexec/iptables/initialize.fw NoCatSplash-0.92/libexec/iptables/initialize.fw +--- NoCatSplash-0.92.old/libexec/iptables/initialize.fw 2002-12-27 11:44:41.000000000 +0100 ++++ NoCatSplash-0.92/libexec/iptables/initialize.fw 2005-04-04 20:45:57.000000000 +0200 +@@ -28,13 +28,9 @@ + + # Load alllll the kernel modules we need. + # +-rmmod ipchains > /dev/null 2>&1 # for RH 7.1 users. + +-for module in ip_tables ipt_REDIRECT ipt_MASQUERADE ipt_MARK ipt_REJECT \ +- ipt_TOS ipt_LOG iptable_mangle iptable_filter iptable_nat ip_nat_ftp \ +- ip_conntrack ipt_mac ipt_state ipt_mark; do +- +- modprobe $module ++for module in ipt_TOS ipt_mac; do ++ insmod $module + done + + |
