From b9c8f9def67971c2442963b746af145576d86b06 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 17 Dec 2020 16:48:14 -0800 Subject: [PATCH] ntfs-3g: make symlinks relative Fixes dead symlinks in InstallDev. Signed-off-by: Rosen Penev --- utils/ntfs-3g/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/ntfs-3g/Makefile b/utils/ntfs-3g/Makefile index 0c60ea184e..40d38e80e0 100644 --- a/utils/ntfs-3g/Makefile +++ b/utils/ntfs-3g/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ntfs-3g PKG_VERSION:=2017.3.23 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)_ntfsprogs-$(PKG_VERSION).tgz PKG_SOURCE_URL:=https://www.tuxera.com/opensource/ @@ -160,7 +160,7 @@ define Package/ntfs-3g/install $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs-3g.so.* $(1)/usr/lib/ $(INSTALL_DIR) $(1)/sbin - $(CP) $(PKG_INSTALL_DIR)/sbin/mount.ntfs-3g $(1)/sbin/ + $(LN) ../usr/bin/ntfs-3g $(1)/sbin/mount.ntfs-3g endef define Package/ntfs-3g/postinst @@ -184,7 +184,7 @@ define Package/ntfs-3g-low/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lowntfs-3g $(1)/usr/bin/ $(INSTALL_DIR) $(1)/sbin - $(CP) $(PKG_INSTALL_DIR)/sbin/mount.lowntfs-3g $(1)/sbin/ + $(LN) ../usr/bin/lowntfs-3g $(1)/sbin/mount.lowntfs-3g endef define Package/ntfs-3g-low/postinst @@ -206,7 +206,7 @@ endef define Package/ntfs-3g-utils/install $(INSTALL_DIR) $(1)/sbin - $(CP) $(PKG_INSTALL_DIR)/sbin/mkfs.ntfs $(1)/sbin/ + $(LN) ../usr/sbin/mkntfs $(1)/sbin/mkfs.ntfs $(INSTALL_DIR) $(1)/usr/bin $(FIND) $(PKG_INSTALL_DIR)/usr/bin/ -type f ! -regex '.*[^/]*ntfs-3g[^/]*' -exec $(INSTALL_BIN) {} $(1)/usr/bin/ \; $(INSTALL_DIR) $(1)/usr/sbin -- 2.30.2