From 3ef32a3aebb7584d54ead965894c7816bcfb3781 Mon Sep 17 00:00:00 2001 From: remittor Date: Thu, 5 Dec 2024 11:24:40 +0300 Subject: [PATCH] xmake: Fix build for ntfs-3g package --- xmake.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xmake.sh b/xmake.sh index 09e5830..49e4e96 100755 --- a/xmake.sh +++ b/xmake.sh @@ -208,6 +208,15 @@ function build_target { sed -i '/"admin\/system\/users" : {/a "title": "Users",' $USERS_MENU fi fi + fi + + NTFS3G=$XDIR/package/feeds/packages/ntfs-3g/Makefile + if [ -f $NTFS3G ]; then + if grep -q -F '$(INSTALL_DIR) $(1)/usr/{bin,sbin}' $NTFS3G ; then + sed -i '/\$(INSTALL_DIR) \$(1)\/usr\/{bin,sbin}/a \\t\$(INSTALL_DIR) \$(1)\/usr\/bin' $NTFS3G + sed -i '/\$(INSTALL_DIR) \$(1)\/usr\/{bin,sbin}/a \\t\$(INSTALL_DIR) \$(1)\/usr\/sbin' $NTFS3G + sed -i 's/\$(INSTALL_DIR) \$(1)\/usr\/{bin,sbin}/#\$(INSTALL_DIR) \$(1)\/usr\/__bin_sbin__/g' $NTFS3G + fi fi OPKG_DIR=$XDIR/files/etc/opkg