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
|
2012-06-16 21:06:37 +00:00
|
|
|
PKG_VERSION:=2.9.0
|
2012-09-19 15:13:41 +00:00
|
|
|
PKG_RELEASE:=2
|
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)
|
2012-06-16 21:06:37 +00:00
|
|
|
PKG_MD5SUM:=894ee11674f89a915ae87524aed55bc4
|
2010-03-14 02:01:14 +00:00
|
|
|
|
2014-11-03 09:56:44 +00:00
|
|
|
PKG_LICENSE:=LGPLv2.1 GPLv2
|
2012-10-19 15:34:28 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING.LIB COPYING
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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-09-19 15:37:35 +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))
|