+define KernelPackage/fuse
+$(call Package/fuse/Default)
+ SUBMENU:=Filesystems
+ DEPENDS:=@LINUX_2_6
+ TITLE+= (kernel module)
+ KCONFIG:= CONFIG_FUSE_FS
+ FILES:=$(LINUX_DIR)/fs/fuse/fuse.$(LINUX_KMOD_SUFFIX)
+ AUTOLOAD:=$(call AutoLoad,80,fuse)
+ VERSION:=$(LINUX_VERSION)
+endef
+
+define KernelPackage/fuse/description
+$(call Package/fuse/Default/description)
+ This package contains the FUSE kernel module.
+endef
+
+define Package/libfuse
+$(call Package/fuse/Default)
+ SECTION:=libs
+ CATEGORY:=Libraries
+ TITLE+= (library)
+ DEPENDS:=+LINUX_2_4:kmod-fuse24 +LINUX_2_6:kmod-fuse
+ SUBMENU:=Filesystem
+endef
+
+define Package/libfuse/description
+$(call Package/fuse/Default/description)
+ This package contains the FUSE shared library, needed by other programs.
+endef
+
+CONFIGURE_VARS += \
+ kernsrcver="$(LINUX_VERSION)"
+
+CONFIGURE_ARGS += \
+ --enable-shared \
+ --enable-static \
+ --disable-rpath \
+ --enable-lib \
+ --enable-util \
+ --disable-example \
+ --disable-auto-modprobe \
+ --with-kernel="$(LINUX_DIR)" \
+ --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
+