[Bro-Dev] #993: The "--scriptdir" configure option is ignored by broctl

Bro Tracker bro at tracker.bro.org
Fri May 3 12:55:56 PDT 2013


#993: The "--scriptdir" configure option is ignored by broctl
------------------------+------------------------
 Reporter:  dnthayer    |      Owner:
     Type:  Problem     |     Status:  new
 Priority:  Medium      |  Milestone:  Bro2.2
Component:  BroControl  |    Version:  git/master
 Keywords:              |
------------------------+------------------------
 If the "--scriptdir" configure option is specified when building Bro,
 then broctl ignores it.  In this situation, the first user-visible
 problem is that Bro fails to start.

 The "scripts/broctl" directory always gets installed in
 <prefix>/share/bro (instead of the directory specified with
 the "--scriptdir" configure option).  Also, the "policydir"
 broctl option is hard-coded to <prefix>/share/bro instead of
 taking the value specified in the "--scriptdir" configure option.

 As a result of "policydir" having the wrong path:

 1) "broctl install" cannot install any files into
 "policydirsiteinstall" because the source directory, "sitepolicypath",
 does not exist (it's actually installed according to the "--scriptdir"
 configure option, but the "sitepolicypath" broctl option is
 defined relative to the value of "policydir"), and
 2) the "set-bro-path" script uses "policydir" to set BROPATH, and
 therefore
 sets BROPATH to directories that don't exist.

-- 
Ticket URL: <http://tracker.bro.org/bro/ticket/993>
Bro Tracker <http://tracker.bro.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list