Add new additional package luci-app-homeproxy

This commit is contained in:
remittor
2023-11-29 16:43:21 +03:00
parent e9e09c3f42
commit 270814fda7
4 changed files with 23 additions and 0 deletions

View File

@@ -45,3 +45,6 @@ CONFIG_FEED__alpine_fan_control=m
### luci-app-xray ### luci-app-xray
#GIT_PACKAGE luci-app-xray=https://github.com/yichya/luci-app-xray.git master #GIT_PACKAGE luci-app-xray=https://github.com/yichya/luci-app-xray.git master
### luci-app-homeproxy
#GIT_PACKAGE luci-app-homeproxy=https://github.com/immortalwrt/homeproxy.git master

View File

@@ -227,3 +227,4 @@ CONFIG_PACKAGE_luci-i18n-nlbwmon-ru=y
#DISABLED_SVC=shadowsocks-libev #DISABLED_SVC=shadowsocks-libev
#DISABLED_SVC=xray_core #DISABLED_SVC=xray_core
#DISABLED_SVC=xray #DISABLED_SVC=xray
#DISABLED_SVC=homeproxy

View File

@@ -28,3 +28,7 @@ CONFIG_PACKAGE_kmod-nft-tproxy=y
CONFIG_PACKAGE_luci-app-xray=y CONFIG_PACKAGE_luci-app-xray=y
#CONFIG_PACKAGE_v2ray-geoip=y #CONFIG_PACKAGE_v2ray-geoip=y
#CONFIG_PACKAGE_v2ray-geosite=y #CONFIG_PACKAGE_v2ray-geosite=y
#CONFIG_PACKAGE_sing-box=y
#CONFIG_PACKAGE_chinadns-ng=y
CONFIG_PACKAGE_luci-app-homeproxy=y

View File

@@ -72,6 +72,21 @@ if [ -f $LUCI_XRAY_MK ]; then
sed -i 's/ +xray-core / /g' $LUCI_XRAY_MK sed -i 's/ +xray-core / /g' $LUCI_XRAY_MK
fi fi
fi fi
HOMEPROXY_MK=$XDIR/package/addons/luci-app-homeproxy/Makefile
if [ -f $HOMEPROXY_MK ]; then
pkg_chinadns=$( get_cfg_pkg_flag $CFG chinadns-ng )
if [ "$pkg_chinadns" != "y" ]; then
# Forced disable chinadns-ng package
sed -i '/CONFIG_PACKAGE_chinadns-ng=/d' $CFG
sed -i 's/+chinadns-ng /+luci /g' $HOMEPROXY_MK
fi
pkg_sing_box=$( get_cfg_pkg_flag $CFG sing-box )
if [ "$pkg_sing_box" != "y" ]; then
# Forced disable sing-box package
sed -i '/CONFIG_PACKAGE_sing-box=/d' $CFG
sed -i 's/+sing-box /+luci /g' $HOMEPROXY_MK
fi
fi
make defconfig make defconfig