2006-08-26 07:45:45 +00:00
|
|
|
#
|
2013-10-20 15:58:18 +00:00
|
|
|
# Copyright (C) 2006,2013 OpenWrt.org
|
2006-08-26 07:45:45 +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:=wifidog
|
2013-10-20 15:58:18 +00:00
|
|
|
PKG_VERSION:=20130917
|
|
|
|
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
2006-08-26 07:45:45 +00:00
|
|
|
|
2013-10-20 15:58:18 +00:00
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_URL:=git://github.com/wifidog/wifidog-gateway.git
|
2012-10-16 15:55:37 +00:00
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
2013-10-20 15:58:18 +00:00
|
|
|
PKG_SOURCE_VERSION:=440445db60b0c3aff528ea703a828b0567293387
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
2006-08-26 07:45:45 +00:00
|
|
|
|
2012-06-11 21:18:33 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
2006-08-26 07:45:45 +00:00
|
|
|
|
|
|
|
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
|
2013-10-20 15:58:18 +00:00
|
|
|
DEPENDS:=+iptables-mod-extra +iptables-mod-ipopt +iptables-mod-nat-extra +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
|
2008-07-05 13:07:12 +00:00
|
|
|
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
|
2007-10-14 04:32:56 +00:00
|
|
|
of their Internet connection.
|
|
|
|
endef
|
|
|
|
|
2006-08-26 07:45:45 +00:00
|
|
|
define Package/wifidog/conffiles
|
|
|
|
/etc/wifidog.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
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
|
2013-10-20 15:58:18 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/wifidog.conf $(1)/etc/
|
2009-09-27 13:04:48 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/wifidog-msg.html $(1)/etc/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2013-10-20 15:58:18 +00:00
|
|
|
$(INSTALL_BIN) ./files/wifidog.init $(1)/etc/init.d/wifidog
|
2006-08-26 07:45:45 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,wifidog))
|