[meson.build,meson_options.txt] Add options to install the bgpscanner legacy wrapper script

pull/2/head
Lorenzo Cogotti 3 years ago
parent 81bfac05ae
commit 2923f955c3

@ -156,3 +156,29 @@ if get_option('build-peerindex')
install_man(peerindex_man) install_man(peerindex_man)
endif endif
if get_option('bgpscanner-legacy')
supported_systems = [
'cygwin', 'darwin', 'dragonfly',
'freebsd', 'gnu', 'linux',
'netbsd', 'openbsd', 'sunos',
]
if supported_systems.contains(host_machine.system())
cdata = configuration_data({
'UTILITY': 'bgpscanner',
'VERSION': '"' + meson.project_version() + '"',
})
bgpscanner_man = configure_file(input : 'tools/bgpscanner/bgpscanner.1.in',
output : 'bgpscanner.1',
configuration : cdata,
install : false)
install_data('tools/bgpscanner/bgpscanner',
install_dir : get_option('bindir'),
install_mode : 'rwxr-xr-x')
install_man(bgpscanner_man)
else
message('Skipping bgpscanner legacy wrapper installation on ' + host_machine.system())
endif
endif

@ -1,6 +1,7 @@
option('native', type : 'boolean', value : false, description : 'Optimize build for local CPU architecture (ties build artifacts to your local machine!)') option('native', type : 'boolean', value : false, description : 'Optimize build for local CPU architecture (ties build artifacts to your local machine!)')
option('build-doc', type : 'boolean', description : 'Build documentation using doxygen') option('build-doc', type : 'boolean', description : 'Build documentation using doxygen')
# TODO option('build-benchmarks', type : 'boolean', value : false, description : 'Build benchmarks') # TODO option('build-benchmarks', type : 'boolean', value : false, description : 'Build benchmarks')
# TODO option('build-tests', type : 'boolean', value : false, description : 'Build unit tests') option('build-tests', type : 'boolean', value : false, description : 'Build tests')
option('build-bgpgrep', type : 'boolean', description : 'Build bgpgrep MRT/BGP parsing and filting utility') option('build-bgpgrep', type : 'boolean', description : 'Build bgpgrep MRT/BGP parsing and filting utility')
option('build-peerindex', type : 'boolean', description : 'Build peerindex MRT TABLE_DUMPV2 Peer Index Table inspection tool') option('build-peerindex', type : 'boolean', description : 'Build peerindex MRT TABLE_DUMPV2 Peer Index Table inspection tool')
option('bgpscanner-legacy', type : 'boolean', value : false, description : 'Install a legacy wrapper script for backwards compatibility with Isolario bgpscanner')
Loading…
Cancel
Save