Skip to content
Snippets Groups Projects
Commit f6af1fad authored by Sean's avatar Sean Committed by alice
Browse files

testing/bindfs: new aport

FUSE filesystem for mounting a directory to another directory with different permissions/ownership
parent ccd8c29a
1 merge request!32274testing/bindfs: new aport
Pipeline #115581 canceled
# Contributor: Daniel Gerber <dg@atufi.org>
# Maintainer: Sean McAvoy <seanmcavoy@gmail.com>
pkgname=bindfs
pkgver=1.15.1
pkgrel=0
pkgdesc="FUSE filesystem for mirroring a directory to another directory"
url="https://bindfs.org"
arch="all"
license="GPL-2.0-or-later"
makedepends="linux-headers fuse3-dev" # or fuse-dev
checkdepends="ruby ruby-etc"
subpackages="$pkgname-doc"
options="!check"
source="https://bindfs.org/downloads/bindfs-$pkgver.tar.gz
musl-getmntent-issue.patch"
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var
make
}
check() {
# NOTE: this requires the fuse kernel module to be loaded
make check
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="
da9003f141b7aa2c23651b3b836b1d979bf1b19915f307c05e40ae6906aab738036cc8b5df6caeec158e4fa6b7bca71489ea7884ff1607c6fea72a603a048d59 bindfs-1.15.1.tar.gz
1c6491241393974923ed512ac2621c864f6f5e9f7e6faca83154cb785332049b49e18dda31ce297a4531bb0abf42d5039c996d0223eac105b0b7af377fd8c2ec musl-getmntent-issue.patch
"
# workaroung for musl getmntent: avoid using fusermount in test setup
--- a/tests/common.rb
+++ b/tests/common.rb
@@ -213,11 +213,5 @@ def nonroot_testenv(bindfs_args, options = {}, &block)
end
def umount_cmd
- if !`which fusermount3`.strip.empty?
- 'fusermount3 -uz'
- elsif !`which fusermount`.strip.empty?
- 'fusermount -uz'
- else
- 'umount'
- end
+ 'umount'
end
def assert
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment