2 # Copyright (C) 2007-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_UCLIBC_VERSION
:=$(call qstrip
,$(CONFIG_UCLIBC_VERSION
))
14 ifneq (,$(or
$(findstring !0.9.29,!$(PKG_UCLIBC_VERSION
)),$(findstring !0.9.30.1!,!$(PKG_UCLIBC_VERSION
)!) ))
15 PKG_VERSION
:=2010.1.16
20 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
21 PKG_SOURCE_URL
:=http
://www.tuxera.com
/opensource
/
23 PKG_MD5SUM_2010.1
.16:=e104c914e8d7d29ee83e63d46afbba25
24 PKG_MD5SUM_2010.3
.6:=12ce21aa044c6068a4df6e8cbd3c5cfa
25 PKG_MD5SUM
=$(PKG_MD5SUM_
$(PKG_VERSION
))
30 include $(INCLUDE_DIR
)/package.mk
32 define Package
/ntfs-3g
/common
35 URL
:=http
://www.tuxera.com
37 TITLE
:=Stable Read
/Write NTFS Driver
38 MAINTAINER
:=Bud
<wrt_buddhay@gmx.net
>
41 define Package
/ntfs-3g
42 $(call Package
/ntfs-3g
/common
)
43 DEPENDS
:= +kmod-fuse
+PACKAGE_NTFS-3G_USE_LIBFUSE
:libfuse
47 define Package
/ntfs-3g
/description
48 Ntfs-3g is a NTFS driver
, which can create
, remove
, rename
,
49 move files
, directories
, hard links
, and streams. It can read
50 and write files
, including streams and sparse files. It can
51 handle special files like symbolic links
, devices
, and FIFOs.
52 Moreover it can also read transparently compressed files.
60 define Package
/ntfs-3g
/config
61 config PACKAGE_NTFS-3G_USE_LIBFUSE
62 bool
"use external FUSE library (package libfuse)"
63 depends PACKAGE_ntfs-3g
65 Ntfs-3g by default uses a minimalized lite version of FUSE.
66 If libfuse is part of your filesystem anyway
(because of sshfs
, owfs
67 etc.
) it makes sense to activate this option and save some kilobytes
71 define Package
/ntfs-3g-utils
72 $(call Package
/ntfs-3g
/common
)
73 TITLE
:=ntfs-3g utilities
(ntfs-3g.secaudit
, ntfs-3g.usermap
)
78 define Package
/ntfs-3g-utils
/description
79 Additional ntfs-3g utilities. Not included by default for size
80 considerations. All binaries except ntfs-3g
, ntfs-3g.probe.
92 # insert config with external libfuse
93 ifdef CONFIG_PACKAGE_NTFS-3G_USE_LIBFUSE
94 CONFIGURE_ARGS
+= --with-fuse
=external
95 PKG_RELEASE
:=$(PKG_RELEASE
)-fuseext
97 CONFIGURE_ARGS
+= --with-fuse
=internal
98 TARGET_CPPFLAGS
:=-I..
/include/fuse-lite
$(TARGET_CPPFLAGS
)
99 PKG_RELEASE
:=$(PKG_RELEASE
)-fuseint
102 define Build
/InstallDev
103 $(INSTALL_DIR
) $(1)/usr
/include
104 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ntfs-3g
$(1)/usr
/include/
105 $(INSTALL_DIR
) $(1)/usr
/lib
106 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libntfs-3g.
{a
,so
*} $(1)/usr
/lib
/
109 define Package
/ntfs-3g
/install
110 $(INSTALL_DIR
) $(1)/usr
/bin
111 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/ntfs-3g
{,.probe
} $(1)/usr
/bin
/
112 $(INSTALL_DIR
) $(1)/usr
/lib
113 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libntfs-3g.so.
* $(1)/usr
/lib
/
116 define Package
/ntfs-3g-utils
/install
117 $(INSTALL_DIR
) $(1)/usr
/bin
118 $(FIND
) $(PKG_INSTALL_DIR
)/usr
/bin
/ -type f
! -name ntfs-3g.probe
! -name ntfs-3g
-exec
$(INSTALL_BIN
) {} $(1)/usr
/bin
/ \
;
121 $(eval
$(call BuildPackage
,ntfs-3g
))
122 $(eval
$(call BuildPackage
,ntfs-3g-utils
))