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.
* Integrate with OpenWRT kamikaze build system
- Loading branch information
Showing
14 changed files
with
149 additions
and
22 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,7 @@ | ||
# $Id$ | ||
2008-03-24 Benoit Gr�goire <[email protected]> | ||
* Integrate with OpenWRT kamikaze build system | ||
|
||
2007-11-01 Benoit Gr�goire <[email protected]> | ||
* Apply portability patches by David Young <[email protected]>. These have been reviewed, but not tested. | ||
|
||
|
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 |
---|---|---|
|
@@ -25,13 +25,22 @@ EXTRA_DIST = \ | |
doc: | ||
$(MAKE) -C doc doc | ||
|
||
.PHONY: ipk | ||
ipk: dist | ||
.PHONY: whiterussianipk | ||
whiterussianipk: dist | ||
make -C $(OPENWRTSDK) distclean | ||
mkdir -p $(OPENWRTSDK)/dl | ||
cp -f ${srcdir}/wifidog-@[email protected] $(OPENWRTSDK)/dl/ | ||
make -C ${srcdir}/contrib/build-openwrt-ipk/wifidog TOPDIR=$(OPENWRTSDK) PKG_MD5SUM= V=99 | ||
make -C ${srcdir}/contrib/build-openwrt-whiterussianipk/wifidog TOPDIR=$(OPENWRTSDK) PKG_MD5SUM= V=99 | ||
@echo DONE. If there were no errors, your package should be in: $(OPENWRTSDK)/bin/packages/ | ||
|
||
.PHONY: kamikazeipk | ||
kamikazeipk: dist | ||
make -C $(OPENWRTSDK) distclean | ||
mkdir -p $(OPENWRTSDK)/dl | ||
cp -f ${srcdir}/wifidog-@[email protected] $(OPENWRTSDK)/dl/ | ||
make -C ${srcdir}/contrib/build-openwrt-kamikazeipk/wifidog TOPDIR=$(OPENWRTSDK) PKG_MD5SUM= V=99 SDK=1 DEVELOPER=1 | ||
@echo DONE. If there were no errors, your package should be in: $(OPENWRTSDK)/bin/packages/ | ||
|
||
.PHONY: rpm | ||
rpm: dist | ||
cp ${builddir}wifidog.spec /usr/src/RPM/SPECS | ||
|
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,61 @@ | ||
# | ||
# 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:=1 | ||
|
||
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 +kmod-ipt-ipopt +kmod-ipt-nat +libpthread | ||
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_DIR) $(1)/etc/init.d | ||
$(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/wifidog | ||
endef | ||
|
||
$(eval $(call BuildPackage,wifidog)) |
12 changes: 12 additions & 0 deletions
12
contrib/build-openwrt-kamikazeipk/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,12 @@ | ||
#!/bin/sh /etc/rc.common | ||
# Copyright (C) 2006 OpenWrt.org | ||
START=50 | ||
|
||
start() { | ||
/usr/bin/wifidog-init start | ||
} | ||
|
||
stop() { | ||
/usr/bin/wifidog-init stop | ||
} | ||
|
11 changes: 11 additions & 0 deletions
11
contrib/build-openwrt-kamikazeipk/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 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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