Skip to content

Commit

Permalink
Allow mount to use bindfs with configuration via /etc/fstab.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kentzo committed Sep 22, 2023
1 parent a964587 commit 27d91be
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if test x"$with_core_foundation" == "xyes" ; then
LDFLAGS="${LDFLAGS} -framework CoreFoundation"
fi

AM_CONDITIONAL(BUILD_OS_IS_DARWIN, [test x"$build_os" = darwin])
AM_CONDITIONAL([BUILD_OS_IS_DARWIN], [case $build_os in darwin* ) true ;; * ) false ;; esac])

# _XOPEN_SOURCE is >= 500 for pread/pwrite; >= 700 for utimensat.
# __BSD_VISIBLE is for flock() on FreeBSD. It otherwise gets hidden by _XOPEN_SOURCE.
Expand Down
11 changes: 11 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,14 @@ AM_CFLAGS = ${my_CFLAGS}
bindfs_LDADD = ${fuse_LIBS} ${fuse3_LIBS} ${fuse_t_LIBS} ${my_LDFLAGS}

man_MANS = bindfs.1

if BUILD_OS_IS_DARWIN
bindfs_BUNDLEDIR = /Library/Filesystems/bindfs.fs
bindfs_BUNDLEBINDIR = "${bindfs_BUNDLEDIR}/Contents/Resources"

install-exec-hook:
(mkdir -p "${bindfs_BUNDLEBINDIR}"; ln -s "${bindir}/bindfs" "${bindfs_BUNDLEBINDIR}/mount_bindfs")

uninstall-hook:
(rm -rf ${bindfs_BUNDLEDIR})
endif

0 comments on commit 27d91be

Please sign in to comment.