dependencies: [zstddep],
install: true,
install_dir: get_option('sbindir'))
-executable('updatedb', ['updatedb.cpp', 'database-builder.cpp', 'conf.cpp', 'lib.cpp', 'bind-mount.cpp', 'complete_pread.cpp'],
+updatedb_progname = get_option('updatedb_progname')
+executable(updatedb_progname, ['updatedb.cpp', 'database-builder.cpp', 'conf.cpp', 'lib.cpp', 'bind-mount.cpp', 'complete_pread.cpp'],
dependencies: [zstddep, threaddep],
install: true,
install_dir: get_option('sbindir'))
conf_data.set('groupname', get_option('locategroup'))
conf_data.set('dbfile', dbfile)
conf_data.set('updatedb_conf', '/etc/updatedb.conf')
+conf_data.set('updatedb_progname', updatedb_progname)
update_script = configure_file(input: 'update-plocate.sh',
output: 'update-plocate.sh',
configuration: conf_data)
install_man('plocate-build.8')
updatedb_man = configure_file(input: 'updatedb.8.in',
- output: 'updatedb.8',
+ output: updatedb_progname + '.8',
configuration: conf_data)
install_man(updatedb_man)
option('install_cron', type: 'boolean', value: false, description: 'Install mlocate conversion script into /etc/cron.daily')
option('install_systemd', type: 'boolean', value: true, description: 'Install systemd service and timer for updatedb, if systemd is installed')
option('locategroup', type: 'string', value: 'plocate', description: 'Group that the install script will use for the .db file')
+option('updatedb_progname', type: 'string', value: 'updatedb', description: 'Binary name of updatedb')