small-package/luci-app-passwall2/Makefile

157 lines
4.7 KiB
Makefile
Raw Normal View History

2023-02-04 20:34:44 +08:00
# Copyright (C) 2022-2023 xiaorouji
2022-03-05 13:13:49 +08:00
#
# This is free software, licensed under the GNU General Public License v3.
include $(TOPDIR)/rules.mk
2022-03-11 18:29:27 +08:00
PKG_NAME:=luci-app-passwall2
2024-11-18 20:41:06 +08:00
PKG_VERSION:=24.11.18
PKG_RELEASE:=1
2022-03-05 13:13:49 +08:00
PKG_CONFIG_DEPENDS:= \
2023-05-25 23:35:42 +08:00
CONFIG_PACKAGE_$(PKG_NAME)_Iptables_Transparent_Proxy \
CONFIG_PACKAGE_$(PKG_NAME)_Nftables_Transparent_Proxy \
2023-05-03 09:24:21 +08:00
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Haproxy \
2022-03-05 13:13:49 +08:00
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Hysteria \
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_IPv6_Nat \
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_NaiveProxy \
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Client \
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Server \
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Rust_Client \
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Rust_Server \
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Client \
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Server \
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Simple_Obfs \
2023-09-05 19:23:30 +08:00
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_SingBox \
2023-07-24 09:28:06 +08:00
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_tuic_client \
2022-03-28 20:35:54 +08:00
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_Plugin
2022-03-05 13:13:49 +08:00
2022-03-11 18:29:27 +08:00
LUCI_TITLE:=LuCI support for PassWall 2
2022-03-05 13:13:49 +08:00
LUCI_PKGARCH:=all
LUCI_DEPENDS:=+coreutils +coreutils-base64 +coreutils-nohup +curl \
2022-03-11 18:29:27 +08:00
+ip-full +libuci-lua +lua +luci-compat +luci-lib-jsonc +resolveip +tcping \
2022-03-28 20:35:54 +08:00
+xray-core +v2ray-geoip +v2ray-geosite \
2022-03-05 13:13:49 +08:00
+unzip \
2024-03-17 19:17:01 +08:00
+PACKAGE_$(PKG_NAME)_INCLUDE_IPv6_Nat:ip6tables-mod-nat
2022-03-05 13:13:49 +08:00
define Package/$(PKG_NAME)/config
menu "Configuration"
2024-03-19 12:18:54 +08:00
config PACKAGE_$(PKG_NAME)_INCLUDE_IPv6_Nat
depends on PACKAGE_ip6tables
bool "Include IPv6 Nat"
default n
if PACKAGE_$(PKG_NAME)
2022-03-05 13:13:49 +08:00
2023-05-25 23:35:42 +08:00
config PACKAGE_$(PKG_NAME)_Iptables_Transparent_Proxy
bool "Iptables Transparent Proxy"
2022-03-11 18:29:27 +08:00
select PACKAGE_dnsmasq-full
2023-04-07 16:21:24 +08:00
select PACKAGE_dnsmasq_full_ipset
2022-03-11 18:29:27 +08:00
select PACKAGE_ipset
select PACKAGE_iptables
2023-05-25 23:35:42 +08:00
select PACKAGE_iptables-nft
2022-10-19 20:30:10 +08:00
select PACKAGE_iptables-zz-legacy
2023-05-25 23:35:42 +08:00
select PACKAGE_iptables-mod-conntrack-extra
2022-03-11 18:29:27 +08:00
select PACKAGE_iptables-mod-iprange
select PACKAGE_iptables-mod-socket
select PACKAGE_iptables-mod-tproxy
select PACKAGE_kmod-ipt-nat
2023-04-07 16:21:24 +08:00
default y if ! PACKAGE_firewall4
2024-03-17 19:17:01 +08:00
2023-05-25 23:35:42 +08:00
config PACKAGE_$(PKG_NAME)_Nftables_Transparent_Proxy
bool "Nftables Transparent Proxy"
2023-04-07 16:21:24 +08:00
select PACKAGE_dnsmasq-full
2023-05-25 23:35:42 +08:00
select PACKAGE_dnsmasq_full_nftset
select PACKAGE_nftables
select PACKAGE_kmod-nft-socket
select PACKAGE_kmod-nft-tproxy
select PACKAGE_kmod-nft-nat
2023-04-07 16:21:24 +08:00
default y if PACKAGE_firewall4
2022-03-11 18:29:27 +08:00
2023-05-03 09:24:21 +08:00
config PACKAGE_$(PKG_NAME)_INCLUDE_Haproxy
bool "Include Haproxy"
2024-03-17 19:17:01 +08:00
select PACKAGE_haproxy
2023-05-03 09:24:21 +08:00
default y if aarch64||arm||i386||x86_64
2022-03-05 13:13:49 +08:00
config PACKAGE_$(PKG_NAME)_INCLUDE_Hysteria
bool "Include Hysteria"
2024-03-17 19:17:01 +08:00
select PACKAGE_hysteria
2022-03-05 13:13:49 +08:00
default n
config PACKAGE_$(PKG_NAME)_INCLUDE_NaiveProxy
bool "Include NaiveProxy"
depends on !(arc||(arm&&TARGET_gemini)||armeb||mips||mips64||powerpc)
2024-03-17 19:17:01 +08:00
select PACKAGE_naiveproxy
2022-03-05 13:13:49 +08:00
default n
config PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Client
bool "Include Shadowsocks Libev Client"
2024-03-17 19:17:01 +08:00
select PACKAGE_shadowsocks-libev-ss-local
select PACKAGE_shadowsocks-libev-ss-redir
2022-03-05 13:13:49 +08:00
default y
config PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Server
bool "Include Shadowsocks Libev Server"
2024-03-17 19:17:01 +08:00
select PACKAGE_shadowsocks-libev-ss-server
2022-03-28 20:35:54 +08:00
default n
2022-03-05 13:13:49 +08:00
config PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Rust_Client
bool "Include Shadowsocks Rust Client"
depends on aarch64||arm||i386||mips||mipsel||x86_64
2024-03-17 19:17:01 +08:00
select PACKAGE_shadowsocks-rust-sslocal
2022-03-05 13:13:49 +08:00
default y if aarch64
2022-06-09 20:21:51 +08:00
config PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Rust_Server
bool "Include Shadowsocks Rust Server"
depends on aarch64||arm||i386||mips||mipsel||x86_64
2024-03-17 19:17:01 +08:00
select PACKAGE_shadowsocks-rust-ssserver
2022-06-09 20:21:51 +08:00
default n
2022-03-05 13:13:49 +08:00
config PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Client
bool "Include ShadowsocksR Libev Client"
2024-03-17 19:17:01 +08:00
select PACKAGE_shadowsocksr-libev-ssr-local
select PACKAGE_shadowsocksr-libev-ssr-redir
2022-03-05 13:13:49 +08:00
default y
config PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Server
bool "Include ShadowsocksR Libev Server"
2024-03-17 19:17:01 +08:00
select PACKAGE_shadowsocksr-libev-ssr-server
2022-03-05 13:13:49 +08:00
default n
config PACKAGE_$(PKG_NAME)_INCLUDE_Simple_Obfs
bool "Include Simple-Obfs (Shadowsocks Plugin)"
2024-03-17 19:17:01 +08:00
select PACKAGE_simple-obfs
2022-03-05 13:13:49 +08:00
default y
2023-09-05 19:23:30 +08:00
config PACKAGE_$(PKG_NAME)_INCLUDE_SingBox
bool "Include Sing-Box"
2024-03-17 19:17:01 +08:00
select PACKAGE_sing-box
2023-09-05 19:23:30 +08:00
default y if aarch64||arm||i386||x86_64
2023-07-24 09:28:06 +08:00
config PACKAGE_$(PKG_NAME)_INCLUDE_tuic_client
bool "Include tuic-client"
depends on aarch64||arm||i386||x86_64
2024-03-17 19:17:01 +08:00
select PACKAGE_tuic-client
2023-07-24 09:28:06 +08:00
default n
2022-03-05 13:13:49 +08:00
config PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_Plugin
bool "Include V2ray-Plugin (Shadowsocks Plugin)"
2024-03-17 19:17:01 +08:00
select PACKAGE_v2ray-plugin
2022-03-05 13:13:49 +08:00
default y if aarch64||arm||i386||x86_64
2024-03-19 12:18:54 +08:00
endif
2022-03-05 13:13:49 +08:00
endmenu
endef
define Package/$(PKG_NAME)/conffiles
2022-03-11 18:29:27 +08:00
/etc/config/passwall2
/etc/config/passwall2_server
2022-03-13 14:56:30 +08:00
/usr/share/passwall2/domains_excluded
2024-03-20 16:20:22 +08:00
/www/luci-static/resources/qrcode.min.js
2022-03-05 13:13:49 +08:00
endef
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature