diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2017-01-05 09:37:00 -0800 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2017-01-12 15:19:04 -0800 |
commit | 9f96db71252fc66b72c433e2ca0d49e031c6a5fd (patch) | |
tree | 494132dae14dba3de18a9013f2299cfc37cceda5 /util/install_helper.sh | |
parent | 3006686b536942f6f96675e3d12b793087e78e6a (diff) |
Added experimental support for building with Meson+Ninja
Diffstat (limited to 'util/install_helper.sh')
-rwxr-xr-x | util/install_helper.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/util/install_helper.sh b/util/install_helper.sh new file mode 100755 index 0000000..fe65c1c --- /dev/null +++ b/util/install_helper.sh @@ -0,0 +1,32 @@ +#!/bin/sh +# +# Don't call this script. It is used internally by the Meson +# build system. Thank you for your cooperation. +# + +set -e + +sysconfdir="$1" +bindir="$2" +prefix="${MESON_INSTALL_DESTDIR_PREFIX}" + +chown root:root "${prefix}/${bindir}/fusermount3" +chmod u+s "${prefix}/${bindir}/fusermount3" + +if test ! -e "${DESTDIR}/dev/fuse"; then + mkdir -p "${DESTDIR}/dev" + mknod "${DESTDIR}/dev/fuse" -m 0666 c 10 229 +fi + +install -D -m 644 "${MESON_SOURCE_ROOT}/util/udev.rules" \ + "${prefix}/lib/udev/rules.d/99-fuse3.rules" + +install -D -m 755 "${MESON_SOURCE_ROOT}/util/init_script" \ + "${prefix}/${sysconfdir}/init.d/fuse3" + +if test -x /usr/sbin/update-rc.d; then + # May fail for a DESTDIR installation + /usr/sbin/update-rc.d fuse3 start 34 S . start 41 0 6 . || /bin/true +fi + + |