mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-27 16:41:11 +02:00
sys-fs/fuse-common: Add from Gentoo
It's from Gentoo commit 86f1cf927f6a27a19482e1eb25430e47d5f58ff7.
This commit is contained in:
parent
64dbcc6092
commit
19a3cdde63
1
sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
DIST fuse-3.10.4.tar.xz 2787472 BLAKE2B 174b51bf55544bbc08e04089a4d8685b371d3f584e337ed0d8d82c62e10c14b6ef14a964d6627e8a121036db1ab4c6c1ccd413c08f8685d3d91893874427e46f SHA512 1cb7600dc04f148b15ec3183d0348320dd946cf15d4077798e7e34fe7e8202837718c8b8bd1f190b7dddda2453ee2b0433d77e18f142ecb7affec1cae29520f6
|
35
sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/files/fuse.init
vendored
Normal file
35
sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/files/fuse.init
vendored
Normal file
@ -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 ${?}
|
||||||
|
|
||||||
|
}
|
32
sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/fuse-common-3.10.4.ebuild
vendored
Normal file
32
sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/fuse-common-3.10.4.ebuild
vendored
Normal file
@ -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="!<sys-fs/fuse-2.9.7-r1:0"
|
||||||
|
|
||||||
|
S=${WORKDIR}/fuse-${PV}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
udev_newrules util/udev.rules 99-fuse.rules
|
||||||
|
|
||||||
|
if use kernel_linux ; then
|
||||||
|
newinitd "${FILESDIR}"/fuse.init fuse
|
||||||
|
else
|
||||||
|
die "We don't know what init code install for your kernel, please file a bug."
|
||||||
|
fi
|
||||||
|
|
||||||
|
insinto /etc
|
||||||
|
doins util/fuse.conf
|
||||||
|
}
|
10
sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/metadata.xml
vendored
Normal file
10
sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/metadata.xml
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="project">
|
||||||
|
<email>base-system@gentoo.org</email>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">libfuse/libfuse</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user