- bump version to 2010.3.6 for uClibc 0.9.30.2+

- added ntfs-3g.probe to package ntfs-3g
- menuconfig reworked: external fuse now bool selector
- new package ntfs-3g-utils containing all binaries except ntfs-3g, ntfs-3g.probe



git-svn-id: svn://svn.openwrt.org/openwrt/packages@20291 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
bud 2010-03-18 21:41:54 +00:00
parent 9cb6f12ea8
commit d49f948a0a

View File

@ -8,12 +8,21 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=ntfs-3g PKG_NAME:=ntfs-3g
PKG_VERSION:=2010.1.16 PKG_RELEASE:=3
PKG_RELEASE:=2
PKG_UCLIBC_VERSION:=$(call qstrip,$(CONFIG_UCLIBC_VERSION))
ifneq (,$(or $(findstring !0.9.29,!$(PKG_UCLIBC_VERSION)),$(findstring !0.9.30.1!,!$(PKG_UCLIBC_VERSION)!) ))
PKG_VERSION:=2010.1.16
else
PKG_VERSION:=2010.3.6
endif
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://www.tuxera.com/opensource/ PKG_SOURCE_URL:=http://www.tuxera.com/opensource/
PKG_MD5SUM:=e104c914e8d7d29ee83e63d46afbba25
PKG_MD5SUM_2010.1.16:=e104c914e8d7d29ee83e63d46afbba25
PKG_MD5SUM_2010.3.6:=12ce21aa044c6068a4df6e8cbd3c5cfa
PKG_MD5SUM=$(PKG_MD5SUM_$(PKG_VERSION))
PKG_FIXUP:=libtool PKG_FIXUP:=libtool
PKG_INSTALL:=1 PKG_INSTALL:=1
@ -21,72 +30,75 @@ PKG_INSTALL:=1
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.ntfs-3g.org URL:=http://www.tuxera.com
SUBMENU:=Filesystem SUBMENU:=Filesystem
TITLE:=Stable Read/Write NTFS Driver (build options) TITLE:=Stable Read/Write NTFS Driver
endef MAINTAINER:=Bud <wrt_buddhay@gmx.net>
define Package/ntfs-3g/description
ntfs-3g is an 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.
endef endef
define Package/ntfs-3g define Package/ntfs-3g
$(call Package/ntfs-3g/common) $(call Package/ntfs-3g/common)
DEPENDS+= +LINUX_2_4:kmod-fuse24 +libpthread +LINUX_2_6:kmod-fuse DEPENDS:= +kmod-fuse +PACKAGE_NTFS-3G_USE_LIBFUSE:libfuse
MENU:=1 DEPENDS+= +libpthread
endef endef
define Package/externalFUSE define Package/ntfs-3g/description
$(call Package/ntfs-3g/common) Ntfs-3g is a NTFS driver, which can create, remove, rename,
TITLE:=use external FUSE library (package libfuse) move files, directories, hard links, and streams. It can read
DEFAULT:=n and write files, including streams and sparse files. It can
DEPENDS+=ntfs-3g +libfuse handle special files like symbolic links, devices, and FIFOs.
Moreover it can also read transparently compressed files.
Contains:
- ntfs-3g
- ntfs-3g.probe
endef endef
define Package/externalFUSE/description define Package/ntfs-3g/config
Ntfs-3g by default uses a lite version of FUSE for the ease config PACKAGE_NTFS-3G_USE_LIBFUSE
of use and some special features. If you'd rather like to use bool "use external FUSE library (package libfuse)"
the systemwide standard FUSE library activate this option [M|*]. depends PACKAGE_ntfs-3g
---help---
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.
endef
define Package/ntfs-3g-utils
$(call Package/ntfs-3g/common)
TITLE:=ntfs-3g utilities (ntfs-3g.secaudit, ntfs-3g.usermap)
DEFAULT:=n
DEPENDS+= +ntfs-3g
endef
define Package/ntfs-3g-utils/description
Additional ntfs-3g utilities. Not included by default for size
considerations. All binaries except ntfs-3g, ntfs-3g.probe.
Currently:
- ntfs-3g.secaudit
- ntfs-3g.usermap
endef endef
CONFIGURE_ARGS += \ CONFIGURE_ARGS += \
--enable-shared \ --enable-shared \
--enable-static \ --enable-static
# insert config with external libfuse # insert config with external libfuse
ifdef CONFIG_PACKAGE_externalFUSE ifdef CONFIG_PACKAGE_NTFS-3G_USE_LIBFUSE
CONFIGURE_ARGS += --with-fuse=external \ CONFIGURE_ARGS += --with-fuse=external
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ PKG_RELEASE:=$(PKG_RELEASE)-fuseext
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib"
PKG_RELEASE:=$(PKG_RELEASE)-fuseext
else else
CONFIGURE_ARGS += --with-fuse=internal CONFIGURE_ARGS += --with-fuse=internal
PKG_RELEASE:=$(PKG_RELEASE)-fuseint TARGET_CPPFLAGS:=-I../include/fuse-lite $(TARGET_CPPFLAGS)
PKG_RELEASE:=$(PKG_RELEASE)-fuseint
endif endif
CONFIGURE_VARS+= \
CFLAGS="$(TARGET_CFLAGS)" \
$(TARGET_CONFIGURE_OPTS) CPPFLAGS='' LDFLAGS=''
define Build/Configure
(cd $(PKG_BUILD_DIR) ; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
./configure \
$(CONFIGURE_ARGS) \
)
endef
MAKE_ARGS += ARCH="$(LINUX_KARCH)" \
CROSS_COMPILE="$(TARGET_CROSS)"
define Build/InstallDev define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include $(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/ntfs-3g $(1)/usr/include/ $(CP) $(PKG_INSTALL_DIR)/usr/include/ntfs-3g $(1)/usr/include/
@ -96,12 +108,16 @@ endef
define Package/ntfs-3g/install define Package/ntfs-3g/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ntfs-3g $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ntfs-3g{,.probe} $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib
$(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
# order matters!!! else a probably missing fuse lib might not be build beforehand define Package/ntfs-3g-utils/install
$(eval $(call BuildPackage,externalFUSE)) $(INSTALL_DIR) $(1)/usr/bin
$(eval $(call BuildPackage,ntfs-3g)) $(FIND) $(PKG_INSTALL_DIR)/usr/bin/ -type f ! -name ntfs-3g.probe ! -name ntfs-3g -exec $(INSTALL_BIN) {} $(1)/usr/bin/ \;
endef
$(eval $(call BuildPackage,ntfs-3g))
$(eval $(call BuildPackage,ntfs-3g-utils))