[PATCH] Add the correct setup of the devfs.rules(5) file for FreeBSD

Hi,

Here is a patch that fixes devfs(8) rules on FreeBSD 5.x and later.

    Kevin

patch-scripts-bro-config.in (3.33 KB)

Kevin Lo wrote:

Hi,

Here is a patch that fixes devfs(8) rules on FreeBSD 5.x and later.

Since FreeBSD 4.x end of life, attached is a revised patch against
development branch that fixes devfs(8) rules on FreeBSD 5.x and later.

  Kevin

patch-scripts-bro-config.in (3.75 KB)

Hmmm... Not sure we should drop 4.x as long as it's easy to keep the
support for it. So I'd prefer to go with your first patch. However,
perhaps we can simplify that one a bit more by making one
BRO_SYS_TYPE for all of >= 6.0 ?

Robin

That's what I was thinking. And if the previous versions all use the same convention, perhaps a simple:

if [ BRO_SYS_TYPE == FREEBSD ]; then
  if [ FREEBSD_OS_VERS >= 6.0 ]; then
    blah
  else
    blah
  fi
fi

would suffice?

Robin Sommer wrote:

> Since FreeBSD 4.x end of life, attached is a revised patch against

Hmmm... Not sure we should drop 4.x as long as it's easy to keep the
support for it. So I'd prefer to go with your first patch. However,
perhaps we can simplify that one a bit more by making one
BRO_SYS_TYPE for all of >= 6.0 ?

I'm ok. Is there any reason to run bro on an unmaintained OS?
Note that FreeBSD 5.x will reached end of line soon, see:

http://lists.freebsd.org/pipermail/freebsd-stable/2008-April/041676.html

Robin

  Kevin

I'm ok. Is there any reason to run bro on an unmaintained OS?

Yep - we still run FreeBSD 4.x internally and sometimes for development.

    Vern