From 27d91be27c1bbfb9b55a7af60aca54c86818c12d Mon Sep 17 00:00:00 2001 From: Ilya Kulakov Date: Fri, 22 Sep 2023 01:32:29 -0400 Subject: Allow mount to use bindfs with configuration via /etc/fstab. --- src/Makefile.am | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') 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 -- cgit v1.2.3