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