-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zeek renaming: update executable names #239
Comments
I'm planing to do the following:
I'd ignore any concerns about the process name, that seems hard to anticipate and address. Does that all sound right? Anything missing from the list below?
|
Yes, the wrapper script approach was what I was thinking also, but a couple thoughts:
|
Would it make more sense to just make zeek look to see what it was called itself when it started and print the message itself when it starts? Then it's just a symlink from zeek -> bro.
.Seth
… On Apr 2, 2019, at 10:31 AM, Robin Sommer ***@***.***> wrote:
I'm planing to do the following:
Rename executables as proposed below.
For each, install a link under the old name pointing to a wrapper script that forwards to the new executable.
The wrapper script will also print a deprecation warning if (1) it's running from a tty, and (2) the environment variable ZEEK_IS_BRO remains unset.
I'd ignore any concerns about the process name, that seems hard to anticipate and address.
Does that all sound right? Anything missing from the list below?
bro -> zeek
bro-config -> zeek-config
broctl -> zeekctl
bro-cut -> zeek-cut
No change:
bifcl
binpac
btest
capstats
trace-summary
Anything Broker
Anything Broccoli (which we should remove for 3.0)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@jsiwek Yeah, BroControl will need some additional care. For its new name, I'd prefer to stick to a predictable renaming scheme for all executables, i.e., sed 's/^bro/zeek/'. And it will probably make sense to find a different name for any new tool anyways. @sethhall we'll need to do this for the other tools as well, and a single wrapper script seems easier. Any problem with "bro" being a wrapper? |
Not really. At least with the wrapper script, it won't be new code and can be easily removed once the "bro" name is completely deprecated. |
…ev to zeek-path-dev. This also installs symlinks from "zeek" and "bro-config" to a wrapper script that prints a deprecation warning. The btests pass, but this is still WIP. broctl renaming is still missing. #239
…ev to zeek-path-dev. This also installs symlinks from "zeek" and "bro-config" to a wrapper script that prints a deprecation warning. The btests pass, but this is still WIP. broctl renaming is still missing. #239
First stab of this is now in For BroControl I went with a pretty comprehensive search-and-replace as it turned out difficult to tease it apart otherwise. I put wrappers for legacy names in place, including for the plugin API. The tests all pass (one exception: |
@rsmmr nice (and thanks, this looks like maybe the most tedious rename yet). I did a quick interactive test of Also did a quick skimming review of the changes:
|
I found some typos in the changes made in the broctl repo. Should I just push a commit in branch Also, not sure if the change "Big Brother" --> "Big Zeekther" was intentional or not (in the MailFrom option). |
Yes, you can go ahead and push any fixes.
"Big Zeekther" was not intentional, and I thought I had fixed that
already. At at least one place I replaced it with just "Zeek",
sounds like I didn't catch them all.
Robin
…On Tue, May 07, 2019 at 23:06 -0700, Daniel Thayer wrote:
I found some typos in the changes made in the broctl repo. Should I just push a commit in branch topic/robin/gh-239 in the broctl repo to fix those typos?
Also, not sure if the change "Big Brother" --> "Big Zeekther" was intentional or not (in the MailFrom option).
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#239 (comment)
--
Robin Sommer * Corelight, Inc. * robin@corelight.com * www.corelight.com
|
Done, I believe this is ready to merge now. Going file PR. |
This is completed via #363, thanks Robin. |
Things like the
bro
binary and other tools/scripts likebro-config
orbro-cut
should be zeekified (I just listed those from memory, should search for others, too).Seems they can either be symlinks or else a separate script that first emits a deprecation warning before calling out to the actual executable. Depends on what plans are to support the old names... maybe something to consider is that there's may be external scripts/tools that are actually depending on a process name being 'bro'.
The text was updated successfully, but these errors were encountered: