From 19a3cdde63a03155016576d39faf65e627f24662 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Thu, 14 Sep 2023 17:52:46 +0200 Subject: [PATCH] sys-fs/fuse-common: Add from Gentoo It's from Gentoo commit 86f1cf927f6a27a19482e1eb25430e47d5f58ff7. --- .../sys-fs/fuse-common/Manifest | 1 + .../sys-fs/fuse-common/files/fuse.init | 35 +++++++++++++++++++ .../fuse-common/fuse-common-3.10.4.ebuild | 32 +++++++++++++++++ .../sys-fs/fuse-common/metadata.xml | 10 ++++++ 4 files changed, 78 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/files/fuse.init create mode 100644 sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/fuse-common-3.10.4.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/metadata.xml diff --git a/sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/Manifest b/sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/Manifest new file mode 100644 index 0000000000..c63c77bce9 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/Manifest @@ -0,0 +1 @@ +DIST fuse-3.10.4.tar.xz 2787472 BLAKE2B 174b51bf55544bbc08e04089a4d8685b371d3f584e337ed0d8d82c62e10c14b6ef14a964d6627e8a121036db1ab4c6c1ccd413c08f8685d3d91893874427e46f SHA512 1cb7600dc04f148b15ec3183d0348320dd946cf15d4077798e7e34fe7e8202837718c8b8bd1f190b7dddda2453ee2b0433d77e18f142ecb7affec1cae29520f6 diff --git a/sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/files/fuse.init b/sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/files/fuse.init new file mode 100644 index 0000000000..6c99929c22 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/files/fuse.init @@ -0,0 +1,35 @@ +#!/sbin/openrc-run +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +MOUNTPOINT=/sys/fs/fuse/connections + +depend() { + need localmount +} + +start() { + + ebegin "Starting fuse" + if ! grep -qw fuse /proc/filesystems; then + modprobe fuse >/dev/null 2>&1 || eerror $? "Error loading fuse module" + fi + if grep -qw fusectl /proc/filesystems && \ + ! grep -qw $MOUNTPOINT /proc/mounts; then + mount -t fusectl none $MOUNTPOINT >/dev/null 2>&1 || \ + eerror $? "Error mounting control filesystem" + fi + eend ${?} + +} + +stop() { + + ebegin "Stopping fuse" + if grep -qw $MOUNTPOINT /proc/mounts; then + umount $MOUNTPOINT >/dev/null 2>&1 || \ + eerror $? "Error unmounting control filesystem" + fi + eend ${?} + +} diff --git a/sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/fuse-common-3.10.4.ebuild b/sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/fuse-common-3.10.4.ebuild new file mode 100644 index 0000000000..8fd9d127f5 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/fuse-common-3.10.4.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit udev + +DESCRIPTION="Common files for multiple slots of sys-fs/fuse" +HOMEPAGE="https://github.com/libfuse/libfuse" +SRC_URI="https://github.com/libfuse/libfuse/releases/download/fuse-${PV}/fuse-${PV}.tar.xz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" + +BDEPEND="virtual/pkgconfig" +RDEPEND="! + + + + base-system@gentoo.org + + + libfuse/libfuse + +