Permalink
Browse files

make udevrulesdir configurable

on nixos we install fuse in its own hierarchy independent from systemd.
  • Loading branch information...
Mic92 authored and Nikratio committed Oct 19, 2017
1 parent d92bf83 commit 2a3929bbe01e82e84b68fbace06b6eebbc7b6062
Showing with 9 additions and 2 deletions.
  1. +3 −0 meson_options.txt
  2. +6 −2 util/meson.build
View
@@ -1,2 +1,5 @@
option('disable-mtab', type : 'boolean', value : false,
description: 'Disable and ignore usage of /etc/mtab')
option('udevrulesdir', type : 'string', value : '',
description: 'Path where udev rules are installed to (Defaults to udevdir specified in udev.pc)')
View
@@ -18,8 +18,12 @@ executable('mount.fuse3', ['mount.fuse.c'],
install: true,
install_dir: get_option('sbindir'))
udev = dependency('udev')
udevrulesdir = join_paths(udev.get_pkgconfig_variable('udevdir'), 'rules.d')
udevrulesdir = get_option('udevrulesdir')
if udevrulesdir == ''
udev = dependency('udev')
udevrulesdir = join_paths(udev.get_pkgconfig_variable('udevdir'), 'rules.d')
endif
meson.add_install_script('install_helper.sh', get_option('sysconfdir'),
get_option('bindir'), udevrulesdir)

0 comments on commit 2a3929b

Please sign in to comment.