2006-06-27 03:35:46 +03:00
|
|
|
#
|
2010-03-14 04:01:14 +02:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-06-27 03:35:46 +03:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2006-06-17 11:34:53 +03:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
2006-06-21 05:32:39 +03:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2006-06-17 11:34:53 +03:00
|
|
|
|
|
|
|
PKG_NAME:=fuse
|
2010-05-02 16:45:51 +03:00
|
|
|
PKG_VERSION:=2.8.4
|
2010-03-14 04:01:14 +02:00
|
|
|
PKG_RELEASE:=1
|
2006-06-17 11:34:53 +03:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-09-23 16:40:25 +03:00
|
|
|
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
|
2010-05-02 16:45:51 +03:00
|
|
|
PKG_MD5SUM:=a26ec54e410bb826a387947b10c0fd2c
|
2010-03-14 04:01:14 +02:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2006-06-21 05:32:39 +03:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2006-06-17 11:34:53 +03:00
|
|
|
|
2006-09-23 16:40:25 +03:00
|
|
|
define Package/fuse/Default
|
|
|
|
TITLE:=FUSE
|
|
|
|
URL:=http://fuse.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
2007-09-07 11:34:51 +03:00
|
|
|
define Package/fuse/Default/description
|
|
|
|
FUSE (Filesystem in UserSpacE)
|
|
|
|
endef
|
|
|
|
|
2006-09-23 16:40:25 +03:00
|
|
|
define Package/fuse-utils
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/fuse/Default)
|
2006-09-23 16:40:25 +03:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2009-06-11 05:09:13 +03:00
|
|
|
DEPENDS:=+libfuse
|
2006-09-23 16:40:25 +03:00
|
|
|
TITLE+= (utilities)
|
2009-07-05 16:57:59 +03:00
|
|
|
SUBMENU:=Filesystem
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/fuse-utils/description
|
|
|
|
$(call Package/fuse/Default/description)
|
2010-03-14 04:01:14 +02:00
|
|
|
This package contains the FUSE utilities.
|
|
|
|
- fusermount
|
|
|
|
- ulockmgr_server
|
2006-09-23 16:40:25 +03:00
|
|
|
endef
|
|
|
|
|
2007-01-05 17:36:58 +02:00
|
|
|
define KernelPackage/fuse
|
2010-06-26 23:43:41 +03:00
|
|
|
$(call Package/fuse/Default)
|
|
|
|
SUBMENU:=Filesystems
|
|
|
|
TITLE+= (kernel module)
|
|
|
|
KCONFIG:= CONFIG_FUSE_FS
|
2010-07-12 17:06:13 +03:00
|
|
|
FILES:=$(LINUX_DIR)/fs/fuse/fuse.ko
|
2010-06-26 23:43:41 +03:00
|
|
|
VERSION:=$(LINUX_VERSION)-$(LINUX_RELEASE)
|
|
|
|
AUTOLOAD:=$(call AutoLoad,80,fuse)
|
2007-02-28 15:45:37 +02:00
|
|
|
endef
|
|
|
|
|
2008-05-12 01:27:32 +03:00
|
|
|
define KernelPackage/fuse/description
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/fuse/Default/description)
|
|
|
|
This package contains the FUSE kernel module.
|
|
|
|
endef
|
|
|
|
|
2006-09-23 16:40:25 +03:00
|
|
|
define Package/libfuse
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/fuse/Default)
|
2006-09-23 16:40:25 +03:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE+= (library)
|
2010-03-14 04:01:14 +02:00
|
|
|
DEPENDS:=kmod-fuse
|
2009-07-05 16:57:59 +03:00
|
|
|
SUBMENU:=Filesystem
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libfuse/description
|
|
|
|
$(call Package/fuse/Default/description)
|
2010-03-14 04:01:14 +02:00
|
|
|
This package contains the FUSE shared libraries, needed by other programs.
|
|
|
|
- libfuse
|
|
|
|
- libulockmgr
|
2006-06-17 11:34:53 +03:00
|
|
|
endef
|
|
|
|
|
2010-03-14 04:01:14 +02:00
|
|
|
# generic args
|
2007-02-26 01:38:02 +02:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-rpath \
|
|
|
|
--disable-example \
|
2010-06-26 23:43:41 +03:00
|
|
|
--disable-mtab
|
2010-03-14 04:01:14 +02:00
|
|
|
|
|
|
|
# generic package uses lib & utils
|
|
|
|
CONFIGURE_ARGS += --enable-lib --enable-util
|
|
|
|
|
2006-06-17 11:34:53 +03:00
|
|
|
define Build/InstallDev
|
2010-03-14 04:01:14 +02:00
|
|
|
@echo "--> Build/InstallDev enter"
|
2007-09-28 04:45:11 +03:00
|
|
|
mkdir -p $(1)/usr/include
|
2010-03-14 04:01:14 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/{fuse,*.h} $(1)/usr/include/
|
2007-09-28 04:45:11 +03:00
|
|
|
mkdir -p $(1)/usr/lib
|
2010-03-14 04:01:14 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,so*} $(1)/usr/lib/
|
2007-09-28 04:45:11 +03:00
|
|
|
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
|
2010-03-14 04:01:14 +02:00
|
|
|
@echo "--> Build/InstallDev leave"
|
2006-06-17 11:34:53 +03:00
|
|
|
endef
|
|
|
|
|
2006-09-23 16:40:25 +03:00
|
|
|
define Package/fuse-utils/install
|
2010-03-14 04:01:14 +02:00
|
|
|
@echo "--> Package/fuse-utils/install enter"
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2010-03-14 04:01:14 +02:00
|
|
|
# use cp and keep fusermount sticky bit
|
|
|
|
$(FIND) $(PKG_INSTALL_DIR)/usr/bin/ -type f -exec $(CP) -a {} $(1)/usr/bin/ \;
|
|
|
|
@echo "--> Package/fuse-utils/install leave"
|
2006-09-23 16:40:25 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libfuse/install
|
2010-03-14 04:01:14 +02:00
|
|
|
@echo "--> Package/libfuse/install enter"
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2010-03-14 04:01:14 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
|
|
|
|
@echo "--> Package/libfuse/install leave"
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/kmod-fuse/install
|
|
|
|
@echo "--> Package/kmod-fuse/install enter/leave"
|
2006-09-23 16:40:25 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,fuse-utils))
|
|
|
|
$(eval $(call BuildPackage,libfuse))
|
2007-01-05 17:36:58 +02:00
|
|
|
$(eval $(call KernelPackage,fuse))
|