From 3d0f73ea676b7e1e0bb1184f9f1e0d1b7f18a3fe Mon Sep 17 00:00:00 2001 From: Michal Hrusecky Date: Thu, 28 Oct 2021 14:43:22 +0200 Subject: [PATCH] afuse: Add new package This commit add new package afuse into packages feed. afuse is an automounting file system implemented in user-space using FUSE. It implements the most basic functionality that can be expected by an automounter; that is it manages a directory of virtual directories. If one of these virtual directories is accessed and is not already automounted, afuse will attempt to mount a filesystem onto that directory. If the mount succeeds the requested access proceeds as normal, otherwise it will fail with an error. Signed-off-by: Michal Hrusecky --- utils/afuse/Makefile | 53 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 utils/afuse/Makefile diff --git a/utils/afuse/Makefile b/utils/afuse/Makefile new file mode 100644 index 0000000000..bae53b60bb --- /dev/null +++ b/utils/afuse/Makefile @@ -0,0 +1,53 @@ +# +# Copyright (C) 2021 Michal Hrusecky +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=afuse +PKG_VERSION:=0.4.1 +PKG_RELEASE:=1 + +PKG_MAINTAINER:=Michal Hrusecky +PKG_LICENSE:=GPL-2.0-or-later +PKG_LICENSE_FILES:=COPYING + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://github.com/pcarrier/$(PKG_NAME)/archive/refs/tags/v$(PKG_VERSION).tar.gz? +PKG_HASH:=8c7950cdeb24cdff828cdd3807537ee12cab87b18ecef4496b7bdedb2b8bd0e9 + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/afuse + SECTION:=net + CATEGORY:=Utilities + SUBMENU:=Filesystem + TITLE:=Automounting file system implemented in user-space using FUSE + DEPENDS:=+libfuse +fuse-utils + URL:=https://github.com/pcarrier/afuse +endef + +define Package/afuse/description + Automounting file system implemented in user-space using FUSE. It + implements the most basic functionality that can be expected by an + automounter; that is it manages a directory of virtual directories. If + one of these virtual directories is accessed and is not already + automounted, afuse will attempt to mount a filesystem onto that + directory. If the mount succeeds the requested access proceeds as + normal, otherwise it will fail with an error. +endef + +TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/fuse/ + +define Package/afuse/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/afuse $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,afuse))