/usr/bin/bro-config is in bro 2.5.3-1build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | #!/bin/sh
version=2.5.3
prefix=/usr
script_dir=/usr/share/bro
site_dir=/usr/share/bro/site
plugin_dir=/usr/lib/bro/plugins
config_dir=
python_dir=
bropath=.:/usr/share/bro:/usr/share/bro/policy:/usr/share/bro/site
bro_dist=
usage="\
Usage: bro-config [--version] [--prefix] [--script_dir] [--site_dir] [--plugin_dir] [--config_dir] [--python_dir] [--bropath] [--bro_dist]"
if [ $# -eq 0 ] ; then
echo "${usage}" 1>&2
exit 1
fi
while [ $# -ne 0 ]; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--version)
echo $version
;;
--prefix)
echo $prefix
;;
--script_dir)
echo $script_dir
;;
--site_dir)
echo $site_dir
;;
--plugin_dir)
echo $plugin_dir
;;
--config_dir)
echo $config_dir
;;
--python_dir)
echo $python_dir
;;
--bropath)
echo $bropath
;;
--bro_dist)
echo $bro_dist
;;
*)
echo "${usage}" 1>&2
exit 1
;;
esac
shift
done
exit 0
|