[package] add mount.ntfs-3.g
This patch defines new ntfs-3g package mount.ntfs-3g. The package helps to add ntfs hotplug mount support for block-hotplug package. Please dont forget to enable mount helper support in Busybox. Signed-off-by: Zintis Petersons <zintis.petersons@abcsolutions.lv> git-svn-id: svn://svn.openwrt.org/openwrt/packages@22430 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
b1823276be
commit
3f072dbc06
@ -40,30 +40,30 @@ PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)
|
|||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/ntfs-3g/common
|
define Package/ntfs-3g/common
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
URL:=http://www.tuxera.com
|
URL:=http://www.tuxera.com
|
||||||
SUBMENU:=Filesystem
|
SUBMENU:=Filesystem
|
||||||
TITLE:=Stable Read/Write NTFS Driver
|
TITLE:=Stable Read/Write NTFS Driver
|
||||||
MAINTAINER:=Bud <wrt_buddhay@gmx.net>
|
MAINTAINER:=Bud <wrt_buddhay@gmx.net>
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ntfs-3g
|
define Package/ntfs-3g
|
||||||
$(call Package/ntfs-3g/common)
|
$(call Package/ntfs-3g/common)
|
||||||
DEPENDS:= +kmod-fuse +PACKAGE_NTFS-3G_USE_LIBFUSE:libfuse
|
DEPENDS:= +kmod-fuse +PACKAGE_NTFS-3G_USE_LIBFUSE:libfuse
|
||||||
DEPENDS+= +libpthread
|
DEPENDS+= +libpthread
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ntfs-3g/description
|
define Package/ntfs-3g/description
|
||||||
Ntfs-3g is a NTFS driver, which can create, remove, rename,
|
Ntfs-3g is a NTFS driver, which can create, remove, rename,
|
||||||
move files, directories, hard links, and streams. It can read
|
move files, directories, hard links, and streams. It can read
|
||||||
and write files, including streams and sparse files. It can
|
and write files, including streams and sparse files. It can
|
||||||
handle special files like symbolic links, devices, and FIFOs.
|
handle special files like symbolic links, devices, and FIFOs.
|
||||||
Moreover it can also read transparently compressed files.
|
Moreover it can also read transparently compressed files.
|
||||||
|
|
||||||
Contains:
|
Contains:
|
||||||
- ntfs-3g
|
- ntfs-3g
|
||||||
- ntfs-3g.probe
|
- ntfs-3g.probe
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -81,22 +81,33 @@ config PACKAGE_NTFS-3G_USE_LIBFUSE
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ntfs-3g-utils
|
define Package/ntfs-3g-utils
|
||||||
$(call Package/ntfs-3g/common)
|
$(call Package/ntfs-3g/common)
|
||||||
TITLE:=ntfs-3g utilities (ntfs-3g.secaudit, ntfs-3g.usermap)
|
TITLE:=ntfs-3g utilities (ntfs-3g.secaudit, ntfs-3g.usermap)
|
||||||
DEFAULT:=n
|
DEFAULT:=n
|
||||||
DEPENDS+= +ntfs-3g
|
DEPENDS+= +ntfs-3g
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ntfs-3g-utils/description
|
define Package/ntfs-3g-utils/description
|
||||||
Additional ntfs-3g utilities. Not included by default for size
|
Additional ntfs-3g utilities. Not included by default for size
|
||||||
considerations. All binaries except ntfs-3g, ntfs-3g.probe.
|
considerations. All binaries except ntfs-3g, ntfs-3g.probe.
|
||||||
|
|
||||||
Currently:
|
Currently:
|
||||||
- ntfs-3g.secaudit
|
- ntfs-3g.secaudit
|
||||||
- ntfs-3g.usermap
|
- ntfs-3g.usermap
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/mount.ntfs-3g
|
||||||
|
$(call Package/ntfs-3g/common)
|
||||||
|
TITLE:=ntfs-3g mount helper
|
||||||
|
DEFAULT:=y
|
||||||
|
DEPENDS+= +ntfs-3g
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/mount.ntfs-3g/description
|
||||||
|
ntfs-3g mount helper. You must enable busybox mount helper too.
|
||||||
|
endef
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--enable-static
|
--enable-static
|
||||||
@ -131,6 +142,20 @@ define Package/ntfs-3g/install
|
|||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs-3g.so.* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs-3g.so.* $(1)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/mount.ntfs-3g/install
|
||||||
|
$(INSTALL_DIR) $(1)/sbin
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/sbin/mount.ntfs-3g $(1)/sbin/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/mount.ntfs-3g/postinst
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ -z "$$(grep ^\\ntfs-3g: $${IPKG_INSTROOT}/etc/filesystems)" ]; then
|
||||||
|
echo "ntfs-3g" >> $${IPKG_INSTROOT}/etc/filesystems
|
||||||
|
fi
|
||||||
|
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/ntfs-3g-utils/install
|
define Package/ntfs-3g-utils/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(FIND) $(PKG_INSTALL_DIR)/usr/bin/ -type f ! -name ntfs-3g.probe ! -name ntfs-3g -exec $(INSTALL_BIN) {} $(1)/usr/bin/ \;
|
$(FIND) $(PKG_INSTALL_DIR)/usr/bin/ -type f ! -name ntfs-3g.probe ! -name ntfs-3g -exec $(INSTALL_BIN) {} $(1)/usr/bin/ \;
|
||||||
@ -138,4 +163,5 @@ endef
|
|||||||
|
|
||||||
$(eval $(call BuildPackage,ntfs-3g))
|
$(eval $(call BuildPackage,ntfs-3g))
|
||||||
$(eval $(call BuildPackage,ntfs-3g-utils))
|
$(eval $(call BuildPackage,ntfs-3g-utils))
|
||||||
|
$(eval $(call BuildPackage,mount.ntfs-3g))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user