ntfsprogs: new package
authorOlaf Rempel <razzor@kopf-tisch.de>
Mon, 2 Mar 2009 16:58:13 +0000 (17:58 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 1 Aug 2009 21:17:48 +0000 (23:17 +0200)
Closes #247

wide collection of NTFS utilities from http://www.linux-ntfs.org/

[Peter: misc Config.in cleanups/fixes]

Signed-off-by: Olaf Rempel <razzor@kopf-tisch.de>
Tested-By: Will Newton <will.newton@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
package/Config.in
package/ntfsprogs/Config.in [new file with mode: 0644]
package/ntfsprogs/ntfsprogs.mk [new file with mode: 0644]

diff --git a/CHANGES b/CHANGES
index 527383c9d988a534f57783b60a8f3d34337e0832..73b3c3ffe2ef92a48db28e5156a99d813bef2fb4 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -19,6 +19,7 @@
        #171: xorg-server / kernel headers 2.6.26 - vm86.c compilation issue
        #241: device mapper + lvm2: build together
        #243: ctorrent: new package
+       #247: ntfsprogs: new package
        #271: Library 'libgcc_s.so.1' not installed in search path
        #287: New package libnl
        #331: Update MPlayer to version 1.0rc2
index bd15b62bca78f0dd7ba9f8655b802c45a8bd0475..cb5e9e0554e24303595b0d828ef32a99845f6f8e 100644 (file)
@@ -262,6 +262,7 @@ source "package/mdadm/Config.in"
 source "package/memtester/Config.in"
 source "package/mtd/Config.in"
 source "package/ntfs-3g/Config.in"
+source "package/ntfsprogs/Config.in"
 source "package/pciutils/Config.in"
 source "package/pcmcia/Config.in"
 source "package/setserial/Config.in"
diff --git a/package/ntfsprogs/Config.in b/package/ntfsprogs/Config.in
new file mode 100644 (file)
index 0000000..38b955e
--- /dev/null
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_NTFSPROGS
+       bool "ntfsprogs"
+       depends on BR2_USE_WCHAR
+       help
+         wide collection of NTFS utilities
+
+         http://www.linux-ntfs.org/
+
+comment "ntfsprogs requires a toolchain with WCHAR support"
+       depends on !BR2_USE_WCHAR
diff --git a/package/ntfsprogs/ntfsprogs.mk b/package/ntfsprogs/ntfsprogs.mk
new file mode 100644 (file)
index 0000000..b34fe7a
--- /dev/null
@@ -0,0 +1,40 @@
+#############################################################
+#
+# ntfsprogs
+#
+#############################################################
+NTFSPROGS_VERSION:=2.0.0
+NTFSPROGS_SOURCE:=ntfsprogs-$(NTFSPROGS_VERSION).tar.gz
+NTFSPROGS_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/linux-ntfs/
+NTFSPROGS_CONF_OPT:=--disable-gnome-vfs --program-prefix=""
+NTFSPROGS_INSTALL_STAGING:=yes
+
+NTFSPROGS_BIN:=ntfscat ntfscluster ntfscmp ntfsfix ntfsinfo ntfsls
+NTFSPROGS_SBIN:=ntfsclone ntfscp ntfslabel ntfsresize ntfsundelete mkntfs
+
+$(eval $(call AUTOTARGETS,package,ntfsprogs))
+
+$(NTFSPROGS_TARGET_INSTALL_TARGET): $(NTFSPROGS_TARGET_INSTALL_STAGING)
+       $(call MESSAGE,"Installing to target")
+       cp -dpf $(STAGING_DIR)/usr/lib/libntfs.so* $(TARGET_DIR)/usr/lib/
+       $(INSTALL) -m 0755 $(addprefix $(STAGING_DIR)/usr/bin/,$(NTFSPROGS_BIN)) $(TARGET_DIR)/usr/bin
+       $(INSTALL) -m 0755 $(addprefix $(STAGING_DIR)/usr/sbin/,$(NTFSPROGS_SBIN)) $(TARGET_DIR)/usr/sbin
+       ln -s /usr/sbin/mkntfs $(TARGET_DIR)/sbin/mkfs.ntfs
+       touch $@
+
+ifeq ($(BR2_ENABLE_DEBUG),)
+$(NTFSPROGS_HOOK_POST_INSTALL): $(NTFSPROGS_TARGET_INSTALL_TARGET)
+       $(STRIPCMD) $(STRIP_STRIP_ALL) $(TARGET_DIR)/usr/lib/libntfs.so*
+       $(STRIPCMD) $(STRIP_STRIP_ALL) $(addprefix $(TARGET_DIR)/usr/bin/,$(NTFSPROGS_BIN))
+       $(STRIPCMD) $(STRIP_STRIP_ALL) $(addprefix $(TARGET_DIR)/usr/sbin/,$(NTFSPROGS_SBIN))
+       touch $@
+endif
+
+$(NTFSPROGS_TARGET_UNINSTALL):
+       $(call MESSAGE,"Uninstalling")
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(NTFSPROGS_DIR) uninstall
+       rm -f $(TARGET_DIR)/usr/lib/libntfs.so*
+       rm -f $(addprefix $(TARGET_DIR)/usr/bin/,$(NTFSPROGS_BIN))
+       rm -f $(addprefix $(TARGET_DIR)/usr/sbin/,$(NTFSPROGS_SBIN))
+       -unlink $(TARGET_DIR)/sbin/mkfs.ntfs
+       rm -f $(NTFSPROGS_TARGET_INSTALL_STAGING) $(NTFSPROGS_TARGET_INSTALL_TARGET) $(NTFSPROGS_HOOK_POST_INSTALL)