mirror of
http://git.sesse.net/plocate
synced 2025-10-05 23:42:49 +02:00
Import the updatedb and updatedb.conf man pages from mlocate.
This commit is contained in:
13
meson.build
13
meson.build
@@ -47,8 +47,9 @@ executable('updatedb', ['updatedb.cpp', 'database-builder.cpp', 'conf.cpp', 'lib
|
||||
conf_data = configuration_data()
|
||||
conf_data.set('PROCESSED_BY_MESON', '1')
|
||||
conf_data.set('sbindir', join_paths(get_option('prefix'), get_option('sbindir')))
|
||||
conf_data.set('locategroup', get_option('locategroup'))
|
||||
conf_data.set('groupname', get_option('locategroup'))
|
||||
conf_data.set('dbfile', dbfile)
|
||||
conf_data.set('updatedb_conf', '/etc/updatedb.conf')
|
||||
update_script = configure_file(input: 'update-plocate.sh',
|
||||
output: 'update-plocate.sh',
|
||||
configuration: conf_data)
|
||||
@@ -63,6 +64,16 @@ endif
|
||||
install_man('plocate.1')
|
||||
install_man('plocate-build.8')
|
||||
|
||||
updatedb_man = configure_file(input: 'updatedb.8.in',
|
||||
output: 'updatedb.8',
|
||||
configuration: conf_data)
|
||||
install_man(updatedb_man)
|
||||
|
||||
updatedb_conf_man = configure_file(input: 'updatedb.conf.5.in',
|
||||
output: 'updatedb.conf.5',
|
||||
configuration: conf_data)
|
||||
install_man(updatedb_conf_man)
|
||||
|
||||
if get_option('install_systemd')
|
||||
systemd = dependency('systemd', required: false)
|
||||
if systemd.found()
|
||||
|
@@ -4,7 +4,7 @@ set -e
|
||||
|
||||
if [ @PROCESSED_BY_MESON@ = 1 ]; then
|
||||
SBINDIR=@sbindir@
|
||||
LOCATEGROUP=@locategroup@
|
||||
LOCATEGROUP=@groupname@
|
||||
DBFILE=@dbfile@
|
||||
else
|
||||
SBINDIR=/usr/local/sbin
|
||||
|
Reference in New Issue
Block a user