mirror of
https://github.com/flatcar/scripts.git
synced 2026-01-20 16:01:57 +01:00
sys-fs/fuse-common: Sync with Gentoo
It's from Gentoo commit 547090cf1b1ccb491396154624d268aad568e73d. Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
parent
1ef753b953
commit
2712c2afa7
50
sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/fuse-common-3.10.4-r2.ebuild
vendored
Normal file
50
sdk_container/src/third_party/portage-stable/sys-fs/fuse-common/fuse-common-3.10.4-r2.ebuild
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit tmpfiles udev
|
||||
|
||||
MY_P=fuse-${PV}
|
||||
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/${MY_P}/${MY_P}.tar.xz"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="GPL-2 LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
|
||||
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
RDEPEND="
|
||||
acct-group/cuse
|
||||
!<sys-fs/fuse-2.9.7-r1:0
|
||||
"
|
||||
|
||||
src_install() {
|
||||
udev_newrules util/udev.rules 99-fuse.rules
|
||||
udev_newrules - 99-cuse.rules <<-EOF
|
||||
KERNEL=="cuse", GROUP="cuse"
|
||||
EOF
|
||||
newtmpfiles - static-nodes-permissions-cuse.conf <<-EOF
|
||||
z /dev/cuse 0660 root cuse - -
|
||||
EOF
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process static-nodes-permissions-cuse.conf
|
||||
udev_reload
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
udev_reload
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user