2006-06-27 02:35:46 +02:00
|
|
|
#
|
2009-06-11 04:09:13 +02:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2006-06-27 02:35:46 +02:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2006-06-17 10:34:53 +02:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
2006-06-21 04:32:39 +02:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2006-06-17 10:34:53 +02:00
|
|
|
|
|
|
|
PKG_NAME:=fuse
|
2009-06-11 04:09:13 +02:00
|
|
|
PKG_VERSION:=2.7.4
|
2006-06-17 10:34:53 +02:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-09-23 15:40:25 +02:00
|
|
|
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
|
2009-06-11 04:09:13 +02:00
|
|
|
PKG_MD5SUM:=4879f06570d2225667534c37fea04213
|
2006-06-17 10:34:53 +02:00
|
|
|
|
2006-06-21 04:32:39 +02:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2006-06-17 10:34:53 +02:00
|
|
|
|
2006-09-23 15:40:25 +02:00
|
|
|
define Package/fuse/Default
|
|
|
|
TITLE:=FUSE
|
|
|
|
URL:=http://fuse.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
2007-09-07 10:34:51 +02:00
|
|
|
define Package/fuse/Default/description
|
|
|
|
FUSE (Filesystem in UserSpacE)
|
|
|
|
endef
|
|
|
|
|
2006-09-23 15:40:25 +02:00
|
|
|
define Package/fuse-utils
|
2007-09-07 10:34:51 +02:00
|
|
|
$(call Package/fuse/Default)
|
2006-09-23 15:40:25 +02:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2009-06-11 04:09:13 +02:00
|
|
|
DEPENDS:=+libfuse
|
2006-09-23 15:40:25 +02:00
|
|
|
TITLE+= (utilities)
|
2009-06-11 04:09:13 +02:00
|
|
|
SUBMENU:=filesystem
|
2007-09-07 10:34:51 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/fuse-utils/description
|
|
|
|
$(call Package/fuse/Default/description)
|
2009-06-11 04:09:13 +02:00
|
|
|
This package contains the FUSE utility 'fusermount'.
|
2006-09-23 15:40:25 +02:00
|
|
|
endef
|
|
|
|
|
2007-01-05 16:36:58 +01:00
|
|
|
define KernelPackage/fuse
|
2007-09-07 10:34:51 +02:00
|
|
|
$(call Package/fuse/Default)
|
2007-01-05 16:36:58 +01:00
|
|
|
SUBMENU:=Filesystems
|
2007-02-28 14:56:05 +01:00
|
|
|
DEPENDS:=@LINUX_2_6
|
2006-09-23 15:40:25 +02:00
|
|
|
TITLE+= (kernel module)
|
2008-05-12 00:27:32 +02:00
|
|
|
KCONFIG:= CONFIG_FUSE_FS
|
|
|
|
FILES:=$(LINUX_DIR)/fs/fuse/fuse.$(LINUX_KMOD_SUFFIX)
|
2007-02-28 14:45:37 +01:00
|
|
|
AUTOLOAD:=$(call AutoLoad,80,fuse)
|
2009-06-11 04:09:13 +02:00
|
|
|
VERSION:=$(LINUX_VERSION)
|
2007-02-28 14:45:37 +01:00
|
|
|
endef
|
|
|
|
|
2008-05-12 00:27:32 +02:00
|
|
|
define KernelPackage/fuse/description
|
2007-09-07 10:34:51 +02:00
|
|
|
$(call Package/fuse/Default/description)
|
|
|
|
This package contains the FUSE kernel module.
|
|
|
|
endef
|
|
|
|
|
2006-09-23 15:40:25 +02:00
|
|
|
define Package/libfuse
|
2007-09-07 10:34:51 +02:00
|
|
|
$(call Package/fuse/Default)
|
2006-09-23 15:40:25 +02:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE+= (library)
|
2009-06-11 04:09:13 +02:00
|
|
|
DEPENDS:=+LINUX_2_4:kmod-fuse24 +LINUX_2_6:kmod-fuse
|
|
|
|
SUBMENU:=filesystem
|
2007-09-07 10:34:51 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libfuse/description
|
|
|
|
$(call Package/fuse/Default/description)
|
|
|
|
This package contains the FUSE shared library, needed by other programs.
|
2006-06-17 10:34:53 +02:00
|
|
|
endef
|
|
|
|
|
2007-04-01 21:07:59 +02:00
|
|
|
CONFIGURE_VARS += \
|
|
|
|
kernsrcver="$(LINUX_VERSION)"
|
|
|
|
|
2007-02-26 00:38:02 +01:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-rpath \
|
|
|
|
--enable-lib \
|
|
|
|
--enable-util \
|
|
|
|
--disable-example \
|
|
|
|
--disable-auto-modprobe \
|
|
|
|
--with-kernel="$(LINUX_DIR)" \
|
2009-06-11 04:09:13 +02:00
|
|
|
--disable-mtab
|
|
|
|
|
|
|
|
# This section is disabled; since kernel 2.6.14 the fuse module is officially
|
|
|
|
# part of the kernel. The following enables this fuse packages kernel module
|
|
|
|
# instead of the kernel's, if the kernel is younger than 2.6.25.
|
|
|
|
# Generally it is better to use the kernel's module. Because it is DCACHE BUG
|
|
|
|
# patched and from fuse 2.8.0 on it will be removed from the fuse package
|
|
|
|
# anyway.
|
|
|
|
#
|
|
|
|
#ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),lt,2.6.25)),1)
|
|
|
|
# define KernelPackage/fuse/2.6
|
|
|
|
# KCONFIG:=
|
|
|
|
# FILES:=$(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/fuse/fuse.$(LINUX_KMOD_SUFFIX)
|
|
|
|
# endef
|
|
|
|
#
|
|
|
|
# CONFIGURE_ARGS += --enable-kernel-module
|
|
|
|
#else
|
|
|
|
# CONFIGURE_ARGS += --disable-kernel-module
|
|
|
|
#endif
|
2008-05-12 00:27:32 +02:00
|
|
|
|
2006-06-17 10:34:53 +02:00
|
|
|
define Build/Configure
|
2006-09-23 15:40:25 +02:00
|
|
|
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
|
2006-06-17 10:34:53 +02:00
|
|
|
touch configure.in ; \
|
|
|
|
touch aclocal.m4 ; \
|
|
|
|
touch Makefile.in ; \
|
|
|
|
touch include/config.h.in ; \
|
|
|
|
touch configure ; \
|
2007-02-26 00:38:02 +01:00
|
|
|
)
|
|
|
|
$(call Build/Configure/Default)
|
2006-06-17 10:34:53 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
ARCH="$(LINUX_KARCH)" \
|
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2007-02-27 16:13:59 +01:00
|
|
|
AM_CFLAGS="$(TARGET_CFLAGS) -DDISABLE_COMPAT=1" \
|
|
|
|
EXTRA_DIST="" \
|
2006-06-17 10:34:53 +02:00
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-09-28 03:45:11 +02:00
|
|
|
mkdir -p $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/fuse{,.h} $(1)/usr/include/
|
|
|
|
mkdir -p $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse.{a,so*} $(1)/usr/lib/
|
|
|
|
mkdir -p $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(1)/usr/lib/pkgconfig/
|
|
|
|
$(SED) 's,-I$$$${includedir}/fuse,,g' $(1)/usr/lib/pkgconfig/fuse.pc
|
|
|
|
$(SED) 's,-L$$$${libdir},,g' $(1)/usr/lib/pkgconfig/fuse.pc
|
2006-06-17 10:34:53 +02:00
|
|
|
endef
|
|
|
|
|
2006-09-23 15:40:25 +02:00
|
|
|
define Package/fuse-utils/install
|
2006-11-23 01:29:07 +01:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 19:53:06 +01:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fusermount $(1)/usr/bin/
|
2006-09-23 15:40:25 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libfuse/install
|
2006-11-23 01:29:07 +01:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-09-23 15:40:25 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,fuse-utils))
|
|
|
|
$(eval $(call BuildPackage,libfuse))
|
2007-01-05 16:36:58 +01:00
|
|
|
$(eval $(call KernelPackage,fuse))
|