Add ruantiblock modules

Source: https://github.com/gSpotx2f/ruantiblock_openwrt
This commit is contained in:
remittor
2024-08-06 16:40:50 +03:00
parent 90be17ed2f
commit fa2b41d576
4 changed files with 17 additions and 1 deletions

View File

@@ -51,3 +51,7 @@ CONFIG_FEED__alpine_fan_control=m
#GIT_FEED _amneziawg=https://github.com/lolo6oT/awg-openwrt.git
CONFIG_FEED__amneziawg=m
### ruantiblock
#GIT_FEED _ruantiblock=https://github.com/gSpotx2f/ruantiblock_openwrt.git
CONFIG_FEED__ruantiblock=m

View File

@@ -238,4 +238,4 @@ CONFIG_PACKAGE_luci-i18n-nlbwmon-ru=y
#DISABLED_SVC=xray_core
#DISABLED_SVC=xray
#DISABLED_SVC=https-dns-proxy
#DISABLED_SVC=ruantiblock

View File

@@ -33,3 +33,8 @@ CONFIG_PACKAGE_kmod-nft-tproxy=y
#CONFIG_PACKAGE_luci-app-xray=y
#CONFIG_PACKAGE_v2ray-geoip=y
#CONFIG_PACKAGE_v2ray-geosite=y
CONFIG_PACKAGE_ruantiblock=y
CONFIG_PACKAGE_luci-app-ruantiblock=y
CONFIG_PACKAGE_ruantiblock-mod-lua=y
CONFIG_PACKAGE_ruantiblock-mod-py=y

View File

@@ -116,6 +116,13 @@ function build_target {
sed -i 's/ squashfs-sys/ sys/g' $XDIR/target/linux/mediatek/image/mt7622.mk
sed -i 's/ squashfs-sys/ sys/g' $XDIR/target/linux/mediatek/image/mt7623.mk
fi
fi
AWG_LUCI_MK=$XDIR/package/feeds/_ruantiblock/luci-app-ruantiblock/Makefile
if [ -f $AWG_LUCI_MK ]; then
if ! grep "PKG_PROVIDES" $AWG_LUCI_MK >/dev/null ; then
sed -i 's/LUCI_PKGARCH:=all/LUCI_PKGARCH:=all\nPKG_PROVIDES:=luci-app-ruantiblock/g' $AWG_LUCI_MK
fi
fi
make defconfig