Files
packages/net/simple-captive-portal/Makefile
T
Andris PE 737c40fbb9 simple-captive-portal: order nft chains predictably
Adjust simple-captive-portal firewall chain priority to apply before
default chain deterministically

Signed-off-by: Andris PE <neandris@gmail.com>
2026-05-18 21:26:42 -04:00

48 lines
1.7 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=simple-captive-portal
PKG_VERSION:=2025.06.22
PKG_RELEASE:=2
PKG_MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
PKG_LICENSE:=GPL-2.0-or-later
include $(INCLUDE_DIR)/package.mk
Build/Compile=
define Package/simple-captive-portal
SUBMENU:=Captive Portals
SECTION:=net
CATEGORY:=Network
TITLE:=Simple captive portal
PKGARCH:=all
DEPENDS:=+uhttpd +uhttpd-mod-lua +luci-lib-ip
endef
define Package/simple-captive-portal/install
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/etc/config/simple-captive-portal $(1)/etc/config/simple-captive-portal
$(INSTALL_DIR) $(1)/etc/hotplug.d/net/
$(INSTALL_DATA) ./files/etc/hotplug.d/net/00-simple-captive-portal $(1)/etc/hotplug.d/net/00-simple-captive-portal
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/etc/init.d/simple-captive-portal $(1)/etc/init.d/simple-captive-portal
$(INSTALL_DIR) $(1)/etc/simple-captive-portal/
$(INSTALL_DATA) ./files/etc/simple-captive-portal/index.html $(1)/etc/simple-captive-portal/index.html
$(INSTALL_DIR) $(1)/usr/share/simple-captive-portal/
$(INSTALL_DATA) ./files/usr/share/simple-captive-portal/capabilities.json $(1)/usr/share/simple-captive-portal/capabilities.json
$(INSTALL_DATA) ./files/usr/share/simple-captive-portal/portal.lua $(1)/usr/share/simple-captive-portal/portal.lua
$(INSTALL_DATA) ./files/usr/share/simple-captive-portal/redirect.lua $(1)/usr/share/simple-captive-portal/redirect.lua
endef
define Package/simple-captive-portal/conffiles
/etc/simple-captive-portal/
/etc/config/simple-captive-portal
endef
define Package/simple-captive-portal/description
Provides a simple captive portal splash page.
endef
$(eval $(call BuildPackage,simple-captive-portal))