Add xwrt packages (natflow + url_logger)

This commit is contained in:
remittor
2024-11-11 14:30:06 +03:00
parent a3b6bdd9b1
commit 10bfad1223
3 changed files with 23 additions and 0 deletions

View File

@@ -55,3 +55,7 @@ CONFIG_FEED__amneziawg=m
#GIT_FEED _ruantiblock=https://github.com/gSpotx2f/ruantiblock_openwrt.git
CONFIG_FEED__ruantiblock=m
### xwrt-packages
#GIT_FEED _xwrt_packages=https://github.com/openwrt-xiaomi/xwrt-packages.git
CONFIG_FEED__xwrt_packages=m

View File

@@ -228,6 +228,14 @@ CONFIG_PACKAGE_luci-i18n-banip-ru=y
CONFIG_PACKAGE_luci-app-nlbwmon=y
CONFIG_PACKAGE_luci-i18n-nlbwmon-ru=y
### X-WRT Packages
CONFIG_PACKAGE_kmod-natflow=y
CONFIG_PACKAGE_natflow-auth=y
CONFIG_PACKAGE_natflow-hostacl=y
CONFIG_PACKAGE_urllogger=y
CONFIG_PACKAGE_luci-app-natflow-users=y
### Disabled services
#DISABLED_SVC=batmand
#DISABLED_SVC=watchcat

View File

@@ -177,6 +177,17 @@ function build_target {
sed -i "/config statistics 'collectd_thermal'/{n; s/option enable '0'/option enable '1'/}" $LUCISTATCONF
fi
XWRTDIR=$XDIR/package/feeds/_xwrt_packages
if [ -d $XWRTDIR ]; then
[ -f $XWRTDIR/natflow/files/hostacl.config ] && sed -i 's/192.168.15./192.168.1./g' $XWRTDIR/natflow/files/hostacl.config
[ -f $XWRTDIR/natflow/files/natflow.config ] && sed -i 's/192.168.15./192.168.1./g' $XWRTDIR/natflow/files/natflow.config
[ -f $XWRTDIR/lua-ipops/src/ipops.lua ] && sed -i 's/192.168.15./192.168.1./g' $XWRTDIR/lua-ipops/src/ipops.lua
XWRTJSDIR=$XWRTDIR/luci-app-natflow-users/htdocs/luci-static/resources/view
[ -f $XWRTJSDIR/network/hostacl.js ] && sed -i 's/192.168.15./192.168.1./g' $XWRTJSDIR/network/hostacl.js
[ -f $XWRTJSDIR/network/natflow-qos.js ] && sed -i 's/192.168.15./192.168.1./g' $XWRTJSDIR/network/natflow-qos.js
[ -f $XWRTJSDIR/system/natflow-users.js ] && sed -i 's/192.168.15./192.168.1./g' $XWRTJSDIR/system/natflow-users.js
fi
OPKG_DIR=$XDIR/files/etc/opkg
if [ -d $OPKG_DIR ]; then
rm -rf $OPKG_DIR