# SPDX-License-Identifier: MIT
#
# Copyright (C) 2025 CyberMind.fr
#
# LuCI Tor Shield - Tor Anonymization Dashboard
#

include $(TOPDIR)/rules.mk

PKG_NAME:=luci-app-tor-shield
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_ARCH:=all

PKG_LICENSE:=MIT
PKG_MAINTAINER:=CyberMind <contact@cybermind.fr>

LUCI_TITLE:=LuCI Tor Shield
LUCI_DESCRIPTION:=Modern dashboard for Tor anonymization on OpenWrt
LUCI_DEPENDS:=+luci-base +luci-lib-jsonc +rpcd +rpcd-mod-luci +secubox-app-tor

LUCI_PKGARCH:=all


# File permissions (CRITICAL: RPCD scripts MUST be executable 755)
# Format: path:owner:group:mode
# - RPCD scripts: 755 (executable by root, required for ubus calls)
PKG_FILE_MODES:=/usr/libexec/rpcd/luci.tor-shield:root:root:755

include $(TOPDIR)/feeds/luci/luci.mk

define Package/$(PKG_NAME)/conffiles
/etc/config/tor-shield
endef

# call BuildPackage - OpenWrt buildroot
