aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIlya Kulakov <kulakov.ilya@gmail.com>2023-09-22 01:32:29 -0400
committerIlya Kulakov <kulakov.ilya@gmail.com>2023-09-22 01:32:29 -0400
commit27d91be27c1bbfb9b55a7af60aca54c86818c12d (patch)
tree59c1ae733ea860a6cc948ee0a27e010dad7dd96b /src
parenta964587ee2c8609e3955d1a3e486893c0f6439c1 (diff)
downloadbindfs-27d91be27c1bbfb9b55a7af60aca54c86818c12d.tar.gz
Allow mount to use bindfs with configuration via /etc/fstab.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am11
1 files changed, 11 insertions, 0 deletions
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