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

**URL:** <https://community.zeek.org/t/patch-add-the-correct-setup-of-the-devfs-rules-5-file-for-freebsd/1318>\
**Category:** Zeek\
**Created:** [April 16, 2008, 9:21am UTC](https://community.zeek.org/t/patch-add-the-correct-setup-of-the-devfs-rules-5-file-for-freebsd/1318 "2008-04-16T09:21:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Lo](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@Kevin\_Lo](https://community.zeek.org/u/Kevin_Lo)\
**Post date:** [April 16, 2008, 9:21am UTC](https://community.zeek.org/t/patch-add-the-correct-setup-of-the-devfs-rules-5-file-for-freebsd/1318/1 "2008-04-16T09:21:40Z")

</div>

Hi,

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

&nbsp;&nbsp;&nbsp;&nbsp;Kevin

[patch-scripts-bro-config.in](https://community.zeek.org/uploads/short-url/sgNpQEpkex9xVGJQ5BRwhpaLBu5.in) (3.33 KB)

---

<div class="post-metadata">

**Author:** ![Kevin\_Lo](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@Kevin\_Lo](https://community.zeek.org/u/Kevin_Lo)\
**Post date:** [April 17, 2008, 4:55am UTC](https://community.zeek.org/t/patch-add-the-correct-setup-of-the-devfs-rules-5-file-for-freebsd/1318/2 "2008-04-17T04:55:10Z")

</div>

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.

&nbsp;&nbsp;Kevin

[patch-scripts-bro-config.in](https://community.zeek.org/uploads/short-url/mnfumcYtuqSRFpzH0bAqBtVam4l.in) (3.75 KB)

---

<div class="post-metadata">

**Author:** ![robin](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.zeek.org/robin/32/599_2.png) [@robin](https://community.zeek.org/u/robin)\
**Post date:** [April 17, 2008, 5:17pm UTC](https://community.zeek.org/t/patch-add-the-correct-setup-of-the-devfs-rules-5-file-for-freebsd/1318/3 "2008-04-17T17:17:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Paul\_Schmehl](https://avatars.discourse-cdn.com/v4/letter/p/dbc845/32.png) [@Paul\_Schmehl](https://community.zeek.org/u/Paul_Schmehl)\
**Post date:** [April 17, 2008, 5:37pm UTC](https://community.zeek.org/t/patch-add-the-correct-setup-of-the-devfs-rules-5-file-for-freebsd/1318/4 "2008-04-17T17:37:37Z")

</div>

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  
&nbsp;&nbsp;if [FREEBSD\_OS\_VERS \>= 6.0]; then  
&nbsp;&nbsp;&nbsp;&nbsp;blah  
&nbsp;&nbsp;else  
&nbsp;&nbsp;&nbsp;&nbsp;blah  
&nbsp;&nbsp;fi  
fi

would suffice?

---

<div class="post-metadata">

**Author:** ![Kevin\_Lo](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@Kevin\_Lo](https://community.zeek.org/u/Kevin_Lo)\
**Post date:** [April 18, 2008, 1:38am UTC](https://community.zeek.org/t/patch-add-the-correct-setup-of-the-devfs-rules-5-file-for-freebsd/1318/5 "2008-04-18T01:38:43Z")

</div>

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](http://lists.freebsd.org/pipermail/freebsd-stable/2008-April/041676.html)

> Robin

&nbsp;&nbsp;Kevin

---

<div class="post-metadata">

**Author:** ![Vern](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.zeek.org/vern/32/630_2.png) [@Vern](https://community.zeek.org/u/Vern)\
**Post date:** [April 18, 2008, 2:18am UTC](https://community.zeek.org/t/patch-add-the-correct-setup-of-the-devfs-rules-5-file-for-freebsd/1318/6 "2008-04-18T02:18:43Z")

</div>

> 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.

&nbsp;&nbsp;&nbsp;&nbsp;Vern

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:38pm UTC](https://community.zeek.org/t/patch-add-the-correct-setup-of-the-devfs-rules-5-file-for-freebsd/1318/7 "2022-05-06T15:38:31Z")

</div>

Closed on May 6, 2022, 3:38pm UTC


