mirror of
				https://github.com/openwrt/packages.git
				synced 2025-11-04 08:09:39 +00:00 
			
		
		
		
	Update Makefile to include dependencies: conntrack and libmosquitto. Conntrack: Added to resolve a bug in Apfree-Wifidog that caused long-lived user connections to persist after logout. Libmosquitto: Integrated as a preparatory measure for future support of the MQTT protocol; implementation is still in progress. For detailed information, please refer to the release notes: https://github.com/liudf0716/apfree-wifidog/releases/tag/7.10.2082. Additionally, a new /etc/wifidogx directory has been created to store the local authentication portal page for users uploading their own portal pages. Signed-off-by: Dengfeng Liu <liudf0716@gmail.com>
		
			
				
	
	
		
			67 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
#
 | 
						|
# Copyright (C) 2018 Dengfeng Liu
 | 
						|
#
 | 
						|
# This is free software, licensed under the GNU General Public License v3.
 | 
						|
# See /LICENSE for more information.
 | 
						|
#
 | 
						|
 | 
						|
include $(TOPDIR)/rules.mk
 | 
						|
 | 
						|
PKG_NAME:=apfree-wifidog
 | 
						|
PKG_VERSION:=7.10.2082
 | 
						|
PKG_RELEASE:=1
 | 
						|
 | 
						|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 | 
						|
PKG_SOURCE_URL:=https://codeload.github.com/liudf0716/$(PKG_NAME)/tar.gz/$(PKG_VERSION)?
 | 
						|
PKG_HASH:=2b7b22221852732f2511e991bef5d135132a8cc50f3d612eaee77d74c51bc501
 | 
						|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 | 
						|
 | 
						|
PKG_MAINTAINER:=Dengfeng Liu <liudf0716@gmail.com>
 | 
						|
PKG_LICENSE:=GPL-3.0-or-later
 | 
						|
PKG_LICENSE_FILES:=COPYING
 | 
						|
 | 
						|
include $(INCLUDE_DIR)/package.mk
 | 
						|
include $(INCLUDE_DIR)/cmake.mk
 | 
						|
 | 
						|
define Package/apfree-wifidog
 | 
						|
  SUBMENU:=Captive Portals
 | 
						|
  SECTION:=net
 | 
						|
  CATEGORY:=Network
 | 
						|
  DEPENDS:=+zlib +libjson-c +libevent2 +libevent2-openssl +libuci +openssl-util +libnetfilter-queue +conntrack +libmosquitto
 | 
						|
  TITLE:=Apfree's wireless captive portal solution
 | 
						|
  URL:=https://github.com/liudf0716/apfree_wifidog
 | 
						|
endef
 | 
						|
 | 
						|
define Package/apfree-wifidog/description
 | 
						|
  The ApFree 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.
 | 
						|
  It's enhanced wifidog
 | 
						|
endef
 | 
						|
 | 
						|
define Package/apfree-wifidog/conffiles
 | 
						|
/etc/config/wifidogx
 | 
						|
endef
 | 
						|
 | 
						|
define Package/apfree-wifidog/install
 | 
						|
	$(INSTALL_DIR) $(1)/usr/bin
 | 
						|
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wifidogx $(1)/usr/bin/wifidogx
 | 
						|
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wdctlx $(1)/usr/bin/wdctlx
 | 
						|
	$(INSTALL_DIR) $(1)/usr/sbin
 | 
						|
	$(INSTALL_BIN) ./files/wdping $(1)/usr/sbin/
 | 
						|
	$(INSTALL_DIR) $(1)/etc
 | 
						|
	$(INSTALL_DATA) $(PKG_BUILD_DIR)/wifidog-msg.html $(1)/etc/
 | 
						|
	$(INSTALL_DATA) $(PKG_BUILD_DIR)/wifidog-redir.html $(1)/etc/
 | 
						|
	$(INSTALL_DATA) $(PKG_BUILD_DIR)/wifidog-redir.html.front $(1)/etc/
 | 
						|
	$(INSTALL_DATA) $(PKG_BUILD_DIR)/wifidog-redir.html.rear $(1)/etc/
 | 
						|
	$(INSTALL_DATA) $(PKG_BUILD_DIR)/authserver-offline.html $(1)/etc/
 | 
						|
	$(INSTALL_DATA) $(PKG_BUILD_DIR)/internet-offline.html $(1)/etc/
 | 
						|
	$(INSTALL_DIR) $(1)/etc/init.d
 | 
						|
	$(INSTALL_BIN) ./files/wifidogx.init $(1)/etc/init.d/wifidogx
 | 
						|
	$(INSTALL_DIR) $(1)/etc/config
 | 
						|
	$(CP) ./files/wifidogx.conf $(1)/etc/config/wifidogx
 | 
						|
	$(INSTALL_DIR) $(1)/etc/wifidogx
 | 
						|
endef
 | 
						|
 | 
						|
$(eval $(call BuildPackage,apfree-wifidog))
 |