2014-08-08 19:03:14 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ntfs-3g
|
2022-06-02 23:01:50 +00:00
|
|
|
PKG_VERSION:=2022.5.17
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=1
|
2020-04-22 21:59:25 +00:00
|
|
|
|
2014-08-08 19:03:14 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)_ntfsprogs-$(PKG_VERSION).tgz
|
2017-04-30 16:21:51 +00:00
|
|
|
PKG_SOURCE_URL:=https://www.tuxera.com/opensource/
|
2022-06-02 23:01:50 +00:00
|
|
|
PKG_HASH:=0489fbb6972581e1b417ab578d543f6ae522e7fa648c3c9b49c789510fd5eb93
|
2014-08-08 19:03:14 +00:00
|
|
|
|
2020-04-22 21:59:25 +00:00
|
|
|
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
|
|
|
|
PKG_LICENSE:=GPL-2.0-only LGPL-2.1-or-later
|
2014-11-25 07:42:42 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING COPYING.LIB
|
2019-09-12 12:13:21 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:ntfs-3g:ntfs-3g
|
2014-08-08 19:03:14 +00:00
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_INSTALL:=1
|
2020-04-22 21:59:25 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2014-08-08 19:03:14 +00:00
|
|
|
|
|
|
|
# release contains fuseext/int hint
|
|
|
|
PKG_RELEASE:=$(PKG_RELEASE)$(if $(CONFIG_PACKAGE_NTFS-3G_USE_LIBFUSE),-fuseext,-fuseint)
|
|
|
|
|
|
|
|
# define build dir, respect fuseext/int
|
2020-04-22 21:59:25 +00:00
|
|
|
PKG_BUILD_DIR:= $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)
|
2014-08-08 19:03:14 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/ntfs-3g/common
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2020-04-22 21:59:25 +00:00
|
|
|
URL:=https://www.tuxera.com
|
2014-08-08 19:03:14 +00:00
|
|
|
SUBMENU:=Filesystem
|
|
|
|
TITLE:=Stable Read/Write NTFS Driver
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ntfs-3g
|
|
|
|
$(call Package/ntfs-3g/common)
|
|
|
|
DEPENDS+= +kmod-fuse +PACKAGE_NTFS-3G_USE_LIBFUSE:libfuse +libpthread
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ntfs-3g/description
|
|
|
|
Ntfs-3g is a NTFS driver, which can create, remove, rename,
|
|
|
|
move files, directories, hard links, and streams. It can read
|
|
|
|
and write files, including streams and sparse files. It can
|
|
|
|
handle special files like symbolic links, devices, and FIFOs.
|
|
|
|
Moreover it can also read transparently compressed files.
|
|
|
|
|
|
|
|
Contains:
|
|
|
|
- ntfs-3g
|
|
|
|
- ntfs-3g.probe
|
|
|
|
- mount.ntfs-3g (symlink to ntfs-3g)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ntfs-3g/config
|
|
|
|
config PACKAGE_NTFS-3G_USE_LIBFUSE
|
|
|
|
bool "use external FUSE library, selects package libfuse"
|
|
|
|
depends on PACKAGE_ntfs-3g
|
2021-10-28 13:18:57 +00:00
|
|
|
help
|
2014-08-08 19:03:14 +00:00
|
|
|
Ntfs-3g by default uses a minimalized lite version of FUSE.
|
|
|
|
If libfuse is part of your filesystem anyway (because of sshfs, owfs
|
|
|
|
etc.) it makes sense to activate this option and save some kilobytes
|
|
|
|
of space.
|
|
|
|
|
2019-04-18 02:23:11 +00:00
|
|
|
config PACKAGE_NTFS-3G_HAS_PROBE
|
|
|
|
bool "install the ntfs-3g.probe utility"
|
|
|
|
depends on PACKAGE_ntfs-3g
|
|
|
|
default y
|
2014-08-08 19:03:14 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ntfs-3g-low
|
|
|
|
$(call Package/ntfs-3g/common)
|
|
|
|
TITLE:=lowntfs-3g (alternative using the fuse low-level interface)
|
|
|
|
DEPENDS+= +ntfs-3g
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ntfs-3g-low/description
|
|
|
|
Contains:
|
|
|
|
- lowntfs-3g
|
|
|
|
- mount.lowntfs-3g (symlink to lowntfs-3g)
|
|
|
|
|
|
|
|
A driver variant using the fuse low-level interface missing some of the
|
|
|
|
enhanced functionality for streams or the like. You might want to check:
|
|
|
|
http://www.tuxera.com/community/ntfs-3g-manual/
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Package/ntfs-3g-utils/description
|
2015-08-20 17:43:13 +00:00
|
|
|
Suite of NTFS utilities for doing neat things with NTFS.
|
|
|
|
Contains:
|
|
|
|
- mkntfs - Create an NTFS filesystem.
|
|
|
|
- ntfscat - Dump a file's content to the standard output.
|
|
|
|
- ntfsclone - Efficiently clone, backup, restore or rescue NTFS.
|
|
|
|
- ntfscluster - Locate the files which use the given sectors or clusters.
|
|
|
|
- ntfscmp - Compare two NTFS filesystems and tell the differences.
|
|
|
|
- ntfscp - Copy a file to an NTFS volume.
|
2017-04-30 16:21:51 +00:00
|
|
|
- ntfssecaudit - Display ownership and permissions, check consistency
|
2015-08-20 17:43:13 +00:00
|
|
|
- ntfsfix - Check and fix some common errors, clear the LogFile.
|
|
|
|
- ntfsinfo - Show information about NTFS or one of the files or directories within it.
|
|
|
|
- ntfslabel - Show, or set, an NTFS filesystem's volume label.
|
|
|
|
- ntfsls - List information about files in a directory residing on an NTFS.
|
|
|
|
- ntfsresize - Resize NTFS without losing data.
|
|
|
|
- ntfsundelete - Recover deleted files from NTFS.
|
2017-04-30 16:21:51 +00:00
|
|
|
- ntfsusermap - Define mapping of Windows accounts to Linux logins
|
2014-08-08 19:03:14 +00:00
|
|
|
endef
|
|
|
|
|
2017-04-30 16:21:51 +00:00
|
|
|
define Package/ntfs-3g-utils
|
2014-08-08 19:03:14 +00:00
|
|
|
$(call Package/ntfs-3g/common)
|
2017-04-30 16:21:51 +00:00
|
|
|
TITLE:=ntfs-3g utilities
|
2014-08-08 19:03:14 +00:00
|
|
|
DEPENDS+= +ntfs-3g +libgcrypt +libuuid
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--with-uuid
|
|
|
|
|
|
|
|
# configure/make according selection
|
|
|
|
ifdef CONFIG_PACKAGE_NTFS-3G_USE_LIBFUSE
|
|
|
|
CONFIGURE_ARGS += --with-fuse=external
|
|
|
|
TARGET_CPPFLAGS:=-I$(STAGING_DIR)/usr/include/fuse $(TARGET_CPPFLAGS)
|
|
|
|
else
|
|
|
|
CONFIGURE_ARGS += --with-fuse=internal
|
|
|
|
TARGET_CPPFLAGS:=-I../include/fuse-lite $(TARGET_CPPFLAGS)
|
|
|
|
endif
|
|
|
|
|
2017-04-30 16:21:51 +00:00
|
|
|
# enable ntfsprogs and extras
|
|
|
|
ifneq ($(CONFIG_PACKAGE_ntfs-3g-utils)$(SDK)$(DEVELOPER),)
|
|
|
|
CONFIGURE_ARGS += --enable-ntfsprogs --enable-extras
|
2014-08-08 19:03:14 +00:00
|
|
|
else
|
2017-04-30 16:21:51 +00:00
|
|
|
CONFIGURE_ARGS += --disable-ntfsprogs --disable-extras
|
2014-08-08 19:03:14 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# redefine prepare to extract to our build dir
|
|
|
|
# apply patches
|
|
|
|
define Build/Prepare
|
|
|
|
rm -rf $(PKG_BUILD_DIR)/
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)/
|
|
|
|
$(TAR) -xzf $(DL_DIR)/$(PKG_SOURCE) -C $(PKG_BUILD_DIR) --strip 1
|
|
|
|
$(Build/Patch)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/ntfs-3g $(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs-3g.{la,a,so*} $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ntfs-3g/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2019-04-18 02:23:11 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ntfs-3g $(1)/usr/bin/
|
|
|
|
$(if $(CONFIG_PACKAGE_NTFS-3G_HAS_PROBE),$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ntfs-3g.probe $(1)/usr/bin/,)
|
2014-08-08 19:03:14 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs-3g.so.* $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
2020-12-18 00:48:14 +00:00
|
|
|
$(LN) ../usr/bin/ntfs-3g $(1)/sbin/mount.ntfs-3g
|
2014-08-08 19:03:14 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ntfs-3g/postinst
|
|
|
|
#!/bin/sh
|
|
|
|
FILE="$${IPKG_INSTROOT}/etc/filesystems"
|
|
|
|
ID="ntfs-3g"
|
|
|
|
|
|
|
|
if ! [ -f '/etc/filesystems' ]; then
|
|
|
|
echo "Create '$$FILE'."
|
|
|
|
touch "$$FILE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if ! grep -q -e '^ntfs-3g$$' "$$FILE"; then
|
|
|
|
echo "Add '$$ID' to known filesystems."
|
|
|
|
echo "$$ID" >> "$$FILE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
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
|
2020-12-18 00:48:14 +00:00
|
|
|
$(LN) ../usr/bin/lowntfs-3g $(1)/sbin/mount.lowntfs-3g
|
2014-08-08 19:03:14 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ntfs-3g-low/postinst
|
|
|
|
#!/bin/sh
|
|
|
|
FILE="$${IPKG_INSTROOT}/etc/filesystems"
|
|
|
|
ID="lowntfs-3g"
|
|
|
|
|
|
|
|
if ! [ -f '/etc/filesystems' ]; then
|
|
|
|
echo "Create '$$FILE'."
|
|
|
|
touch "$$FILE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if ! grep -q -e '^ntfs-3g$$' "$$FILE"; then
|
|
|
|
echo "Add '$$ID' to known filesystems."
|
|
|
|
echo "$$ID" >> "$$FILE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ntfs-3g-utils/install
|
2021-08-31 10:18:20 +00:00
|
|
|
rm -f $(PKG_INSTALL_DIR)/usr/sbin/mkfs.ntfs
|
|
|
|
$(INSTALL_DIR) $(1)/usr/{bin,sbin}
|
2014-08-08 19:03:14 +00:00
|
|
|
$(FIND) $(PKG_INSTALL_DIR)/usr/bin/ -type f ! -regex '.*[^/]*ntfs-3g[^/]*' -exec $(INSTALL_BIN) {} $(1)/usr/bin/ \;
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
|
2021-08-31 10:18:20 +00:00
|
|
|
$(LN) mkntfs $(1)/usr/sbin/mkfs.ntfs
|
2014-08-08 19:03:14 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,ntfs-3g))
|
|
|
|
$(eval $(call BuildPackage,ntfs-3g-low))
|
|
|
|
$(eval $(call BuildPackage,ntfs-3g-utils))
|