mirror of
https://github.com/openharmony/third_party_libfuse.git
synced 2026-07-19 21:43:34 -04:00
make udevrulesdir configurable
on nixos we install fuse in its own hierarchy independent from systemd.
This commit is contained in:
committed by
Nikolaus Rath
parent
d92bf83c15
commit
2a3929bbe0
@@ -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)')
|
||||
|
||||
+6
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user