fuse
This commit is contained in:
1 parent
a4d47dffdf
commit
e7797131ce
3 files changed
+112
No files matched your search
@@ -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 ${?}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
name='fuse'
|
||||||
|
release='1'
|
||||||
|
version='3.14.1'
|
||||||
|
url='https://github.com/libfuse/libfuse'
|
||||||
|
description='Filesystem in Userspace'
|
||||||
|
email='akarsu@protonmail.com'
|
||||||
|
maintainer='akarsu'
|
||||||
|
license=('GPLv3')
|
||||||
|
source=("https://github.com/libfuse/libfuse/archive/refs/tags/fuse-${version}.tar.gz"
|
||||||
|
"fuse.initd")
|
||||||
|
depends=()
|
||||||
|
makedepends=()
|
||||||
|
md5sums=('a5fd7866571a5fc08cc8d6dd20ba5e79'
|
||||||
|
'SKIP')
|
||||||
|
group=(sys.fs)
|
||||||
|
uses=()
|
||||||
|
arch=('x86_64')
|
||||||
|
|
||||||
|
cd "libfuse"-$name-$version
|
||||||
|
|
||||||
|
setup(){
|
||||||
|
meson setup build --prefix=/usr \
|
||||||
|
--libdir=/usr/lib64/ \
|
||||||
|
-Ddefault_library=both \
|
||||||
|
-Duseroot=false \
|
||||||
|
-Ddisable-mtab=true
|
||||||
|
}
|
||||||
|
|
||||||
|
build(){
|
||||||
|
ninja -C build $jobs
|
||||||
|
}
|
||||||
|
|
||||||
|
package(){
|
||||||
|
ninja -C build install $jobs
|
||||||
|
ln -s fusermount3 $DESTDIR/usr/bin/fusermount
|
||||||
|
rm -rf $DESTDIR/dev $DESTDIR/etc/init.d
|
||||||
|
mkdir -p $DESTDIR/etc/init.d
|
||||||
|
install ../fuse.initd $DESTDIR/etc/init.d/fuse
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
name='fuse2'
|
||||||
|
release='1'
|
||||||
|
version='2.9.9'
|
||||||
|
url='https://github.com/libfuse/libfuse'
|
||||||
|
description='Filesystem in Userspace'
|
||||||
|
email='akarsu@protonmail.com'
|
||||||
|
maintainer='akarsu'
|
||||||
|
license=('GPLv3')
|
||||||
|
source=("https://github.com/libfuse/libfuse/releases/download/fuse-$version/fuse-$version.tar.gz")
|
||||||
|
depends=(fuse)
|
||||||
|
makedepends=()
|
||||||
|
md5sums=('8000410aadc9231fd48495f7642f3312')
|
||||||
|
group=(sys.fs)
|
||||||
|
uses=()
|
||||||
|
arch=('x86_64')
|
||||||
|
|
||||||
|
cd "fuse"-$version
|
||||||
|
|
||||||
|
setup(){
|
||||||
|
autoreconf -fvi
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--libdir=/usr/lib64/ \
|
||||||
|
--enable-static \
|
||||||
|
--enable-shared \
|
||||||
|
--disable-example \
|
||||||
|
--enable-lib \
|
||||||
|
--disable-util
|
||||||
|
}
|
||||||
|
|
||||||
|
build(){
|
||||||
|
make $jobs
|
||||||
|
}
|
||||||
|
|
||||||
|
package(){
|
||||||
|
make install $jobs
|
||||||
|
}
|
||||||
Reference in new issue
Block a user