[Bro-Dev] New proposal (Re: CBAN naming)

Johanna Amann johanna at icir.org
Mon Jun 6 12:22:04 PDT 2016


On Mon, Jun 06, 2016 at 02:14:50PM -0500, Daniel Thayer wrote:
> On 06/06/2016 01:50 PM, Robin Sommer wrote:
> > - For shipping binary plugins:
> >
> >      - Through meta information, we let the author specify a build
> >        command to build all their binary stuff, such as "./configure &&
> >        make && make test". The command line client runs that command
> >        inside <repo>.
> >
> >      - Per default, we expect that build command to create a directory
> >        <repo>/build that contains a binary plugin. We add
> >        <install-base>/<name>/build to BRO_PLUGIN_PATH.
> >
> >      - If one wants to locate the plugin elsewhere, optional meta
> >        information can set a different BRO_PLUGIN_PATH.  For example,
> >        to put it into "<repo>/compiled/cool_plugin", one would specify
> >        as meta information "pluginpath=compiled/cool_plugin".
> >
> 
> 
> Could you clarify what you mean by BRO_PLUGIN_PATH here?  Are you saying
> that after I do a "cban install cool-plugin", I'd need to manually
> set an environment variable in order for Bro to find the new plugin?
> Or are we still planning to default to <PREFIX>/lib/bro/plugins/ ?

No, you do not, that happens automatically. Users also have the ability to
specify a subdirectory inside of their repository that is then used as the
BRO_PLUGIN_PATH. That would be done by the plugin authors if they want to
change the directory structure. For the installing user, everything
remains automatic.

Johanna


More information about the bro-dev mailing list