diff options
author | Ilya Kulakov <kulakov.ilya@gmail.com> | 2023-09-22 01:32:29 -0400 |
---|---|---|
committer | Ilya Kulakov <kulakov.ilya@gmail.com> | 2023-09-22 01:32:29 -0400 |
commit | 27d91be27c1bbfb9b55a7af60aca54c86818c12d (patch) | |
tree | 59c1ae733ea860a6cc948ee0a27e010dad7dd96b | |
parent | a964587ee2c8609e3955d1a3e486893c0f6439c1 (diff) | |
download | bindfs-27d91be27c1bbfb9b55a7af60aca54c86818c12d.tar.gz |
Allow mount to use bindfs with configuration via /etc/fstab.
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/Makefile.am | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index e8c1a2d..c8f7a52 100644 --- a/configure.ac +++ b/configure.ac @@ -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. diff --git a/src/Makefile.am b/src/Makefile.am index 383f791..da443a1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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 |