bindfs: update to 1.18.4

This commit is contained in:
trustbyte
2026-03-28 10:09:52 +01:00
committed by Zhenfu Shi
parent 08fdccd0f4
commit 5d9de85121
2 changed files with 4 additions and 71 deletions
+4 -6
View File
@@ -4,7 +4,7 @@ PortSystem 1.0
PortGroup fuse 1.0
name bindfs
version 1.18.1
version 1.18.4
revision 0
categories fuse
@@ -19,11 +19,9 @@ long_description bindfs is a FUSE filesystem for mirroring a directory to ano
homepage https://bindfs.org/
master_sites ${homepage}downloads/
checksums rmd160 4fac375071e5c89cbbae99df4be2e4f7a051ee53 \
sha256 2a7064d993a5f255c52d72385ef14e349c131bc44195766e2173428e06d279fd \
size 431995
patchfiles-append patch-revert-3293dc98e37eed0fb0cbfcbd40434d3c37c69480.patch
checksums rmd160 0204b5630894b86715e72bc2e0ba4250452bedac \
sha256 3266d0aab787a9328bbb0ed561a371e19f1ff077273e6684ca92a90fedb2fe24 \
size 432774
configure.cflags-append \
-D_DARWIN_C_SOURCE
@@ -1,65 +0,0 @@
--- src/bindfs.c
+++ src/bindfs.c
@@ -326,7 +326,7 @@
void *data);
#endif
static int bindfs_statfs(const char *path, struct statvfs *stbuf);
+#if __APPLE__
-#ifdef HAVE_FUSE_T
static int bindfs_statfs_x(const char *path, struct statfs *stbuf);
#endif
static int bindfs_release(const char *path, struct fuse_file_info *fi);
@@ -1528,7 +1528,7 @@
return 0;
}
+#if __APPLE__
-#ifdef HAVE_FUSE_T
static int bindfs_statfs_x(const char *path, struct statfs *stbuf)
{
int res;
@@ -1581,7 +1581,7 @@
understanding from the osxfuse example file:
https://github.com/osxfuse/fuse/blob/master/example/fusexmp_fh.c */
+#ifdef __APPLE__
-#ifdef HAVE_FUSE_T
static int bindfs_setxattr(const char *path, const char *name, const char *value,
size_t size, int flags, uint32_t position)
#else
@@ -1601,7 +1601,7 @@
if (real_path == NULL)
return -errno;
+#if defined(__APPLE__)
-#if HAVE_FUSE_T
if (!strncmp(name, XATTR_APPLE_PREFIX, sizeof(XATTR_APPLE_PREFIX) - 1)) {
flags &= ~(XATTR_NOSECURITY);
}
@@ -1626,7 +1626,7 @@
return 0;
}
+#ifdef __APPLE__
-#ifdef HAVE_FUSE_T
static int bindfs_getxattr(const char *path, const char *name, char *value,
size_t size, uint32_t position)
#else
@@ -1643,7 +1643,7 @@
if (real_path == NULL)
return -errno;
+#if defined(__APPLE__)
-#if HAVE_FUSE_T
if (strcmp(name, A_KAUTH_FILESEC_XATTR) == 0) {
char new_name[MAXPATHLEN];
memcpy(new_name, A_KAUTH_FILESEC_XATTR, sizeof(A_KAUTH_FILESEC_XATTR));
@@ -1785,7 +1785,7 @@
.ioctl = bindfs_ioctl,
#endif
.statfs = bindfs_statfs,
+#ifdef __APPLE__
-#ifdef HAVE_FUSE_T
.statfs_x = bindfs_statfs_x,
#endif
.release = bindfs_release,