forked from wifidog/wifidog-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed #472, patch by Jean-Philippe Menil * Fixed #515, using the gateway interface instead of the gateway id in the iptables chain
- Loading branch information
Showing
9 changed files
with
124 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
# $Id$ | ||
|
||
2009-09-17 Geneviève Bastien <[email protected]> | ||
* Documented #537 | ||
* Fixed #472, patch by Jean-Philippe Menil | ||
* Fixed #515, using the gateway interface instead of the gateway id in the iptables chain | ||
|
||
2009-07-02 Benoit Grégoire <[email protected]> | ||
* Re-fix #505, #525 and fix #584, sorry about that. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# | ||
# Copyright (C) 2006,2008 OpenWrt.org | ||
# Copyright (C) 2008 Technologies Coeus inc. | ||
# | ||
# This is free software, licensed under the GNU General Public License v2. | ||
# See /LICENSE for more information. | ||
# | ||
# $Id$ | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=wifidog | ||
PKG_VERSION:=1.1.5 | ||
PKG_RELEASE:=2 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:= @SF/$(PKG_NAME) | ||
PKG_MD5SUM:= | ||
|
||
PKG_FIXUP = libtool | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/wifidog | ||
SUBMENU:=Captive Portals | ||
SECTION:=net | ||
CATEGORY:=Network | ||
DEPENDS:=+kmod-ipt-extra +iptables-mod-extra +kmod-ipt-ipopt +iptables-mod-ipopt +kmod-ipt-nat +iptables-mod-nat +libpthread +kmod-ipt-nat-extra +iptables-mod-nat-extra | ||
TITLE:=A wireless captive portal solution | ||
URL:=http://www.wifidog.org | ||
endef | ||
|
||
define Package/wifidog/description | ||
The Wifidog project is a complete and embeddable captive | ||
portal solution for wireless community groups or individuals | ||
who wish to open a free Hotspot while still preventing abuse | ||
of their Internet connection. | ||
endef | ||
|
||
define Package/wifidog/conffiles | ||
/etc/wifidog.conf | ||
endef | ||
|
||
MAKE_FLAGS += \ | ||
DESTDIR="$(PKG_INSTALL_DIR)" \ | ||
all install | ||
|
||
define Package/wifidog/install | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/init.d/wifidog $(1)/usr/bin/wifidog-init | ||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wifidog $(1)/usr/bin/ | ||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wdctl $(1)/usr/bin/ | ||
$(INSTALL_DIR) $(1)/usr/lib | ||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libhttpd.so* $(1)/usr/lib/ | ||
$(INSTALL_DIR) $(1)/etc | ||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/wifidog.conf $(1)/etc/ | ||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/wifidog-msg.html $(1)/etc/ | ||
$(INSTALL_DIR) $(1)/etc/init.d | ||
$(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/wifidog | ||
endef | ||
|
||
$(eval $(call BuildPackage,wifidog)) |
17 changes: 17 additions & 0 deletions
17
contrib/build-openwrt-kamikazeipk8.09up/wifidog/files/wifidog.init
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh /etc/rc.common | ||
# Copyright (C) 2006 OpenWrt.org | ||
START=65 | ||
EXTRA_COMMANDS="status" | ||
EXTRA_HELP=" status Print the status of the service" | ||
|
||
start() { | ||
/usr/bin/wifidog-init start | ||
} | ||
|
||
stop() { | ||
/usr/bin/wifidog-init stop | ||
} | ||
|
||
status() { | ||
/usr/bin/wifidog-init status | ||
} |
11 changes: 11 additions & 0 deletions
11
contrib/build-openwrt-kamikazeipk8.09up/wifidog/patches/001-wifidog_conf_patch.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- wifidog.org/wifidog.conf 2008-03-23 16:24:48.000000000 -0400 | ||
+++ wifidog/wifidog.conf 2008-03-23 16:26:10.000000000 -0400 | ||
@@ -30,7 +30,7 @@ | ||
# Set this to the internal interface (typically your wifi interface). | ||
# Typically br0 for OpenWrt, and eth1, wlan0, ath0, etc. otherwise | ||
|
||
-GatewayInterface br0 | ||
+GatewayInterface br-lan | ||
|
||
# Parameter: GatewayAddress | ||
# Default: Find it from GatewayInterface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 14 additions & 2 deletions
16
contrib/build-openwrt-whiterussianipk/wifidog/files/wifidog.init
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
#!/bin/sh | ||
/usr/bin/wifidog-init start | ||
#!/bin/sh /etc/rc.common | ||
# Copyright (C) 2006 OpenWrt.org | ||
START=50 | ||
|
||
start() { | ||
/usr/bin/wifidog-init start | ||
} | ||
|
||
stop() { | ||
/usr/bin/wifidog-init stop | ||
} | ||
|
||
status() { | ||
/usr/bin/wifidog-init status | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters