Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: [new] net/neighbot 0.3.0
To:
Renaud Allard <renaud@allard.it>
Cc:
ports <ports@openbsd.org>
Date:
Tue, 24 Feb 2026 10:07:53 +0000

Download raw body.

Thread
  • Stuart Henderson:

    [new] net/neighbot 0.3.0

  • On 2026/02/24 09:00, Renaud Allard wrote:
    > The OUI file is deliberately fetched at make time because it
    > could change and build would break because of a change with
    > older distinfo. But if you have another idea, I am open.
    
    That's not allowed. Firstly bulk builds are done on systems with no net
    access for the build user (and it's recommended that you do that too,
    with PORTS_PRIVSEP=Yes in mk.conf and the default pf rules to block
    _pbuild), and secondly PKGNAME needs updating if the contents change.
    
    arp-scan uses vendor listings so in order to update them I've arranged
    a subpackage there and occasionally update them. You can depend on
    net/arp-scan,-mac which gives various files:
    
    /usr/local/share/arp-scan/ieee-oui.txt - full list, includes MA-L MA-M MA-S vendors
    as well as the usual IAB (up to 48 bits of vendor id), simple MAC<tab>vendor
    format
    
    /var/arpwatch/ethercodes.dat - only IAB (24 bit), in the old arpwatch
    format
    
    /usr/local/share/mac-vendor/aircrack-oui.txt - only IAB (24-bit), in aircrack format
    
    /usr/local/share/mac-vendor/iab.csv
    /usr/local/share/mac-vendor/ma-l.csv
    /usr/local/share/mac-vendor/ma-m.csv
    /usr/local/share/mac-vendor/ma-s.csv - original files from upstream,
    including addresses
    
    /usr/local/share/mac-vendor/unofficial.csv - a few specials (qenu, carp,
    etc)
    
    
    Ideally if you can handle the variable 24-48 bit IDs please have it use
    /usr/local/share/arp-scan/ieee-oui.txt directly.
    
    
    : daemon="${TRUEPREFIX}/sbin/neighbot"
    : daemon_flags="-d -u _neighbot"
    
    -d is "daemonize", right? you want
    
    daemon="${TRUEPREFIX}/sbin/neighbot -d"
    daemon_flags="-u _neighbot"
    
    and don't use rc_bg.
    
    : rc_pre() {
    : 	mkdir -p ${LOCALSTATEDIR}/neighbot
    : 	chown _neighbot:_neighbot ${LOCALSTATEDIR}/neighbot
    : }
    
    other ports use install here
    
    
    
  • Stuart Henderson:

    [new] net/neighbot 0.3.0