2006-08-26 07:45:45 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# 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
|
2007-07-01 09:01:47 +00:00
|
|
|
PKG_VERSION:=1.1.3_rc1
|
2006-08-26 07:45:45 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:= @SF/$(PKG_NAME)
|
2007-07-01 09:01:47 +00:00
|
|
|
PKG_MD5SUM:=2df210852bace3eb740f9344b843f6c3
|
2006-08-26 07:45:45 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/wifidog
|
2007-09-25 18:16:27 +00:00
|
|
|
SUBMENU:=Captive Portals
|
2006-08-26 07:45:45 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2007-07-01 15:02:24 +00:00
|
|
|
DEPENDS:=+iptables-mod-extra +iptables-mod-ipopt +iptables-mod-nat +libgcc +libpthread
|
2006-08-26 07:45:45 +00:00
|
|
|
TITLE:=A wireless captive portal solution
|
|
|
|
URL:=http://www.wifidog.org
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
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
|
|
|
|
|
2006-08-26 07:45:45 +00:00
|
|
|
define Package/wifidog/conffiles
|
|
|
|
/etc/wifidog.conf
|
|
|
|
endef
|
|
|
|
|
2007-07-01 09:01:47 +00:00
|
|
|
MAKE_FLAGS += \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
2006-08-26 07:45:45 +00:00
|
|
|
|
|
|
|
define Package/wifidog/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/init.d/wifidog $(1)/usr/bin/wifidog-init
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wifidog $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wdctl $(1)/usr/bin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-08-26 07:45:45 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libhttpd.so* $(1)/usr/lib/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_DATA) ./files/wifidog.conf $(1)/etc/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/wifidog
|
2006-08-26 07:45:45 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,wifidog))
|