This is an old revision of the document!
pkg install snort apache22 mysql56-server mod_php5 phpMyAdmin base wget
Barnyard2 needs to be built from port to have mysql support
cd /usr/ports/security/barnyard2 make config (enable mysql) make install
cd /tmp wget --no-check-certificate https://www.snort.org/downloads/community/community-rules.tar.gz tar xvzf community-rules.tar.gz -C /usr/local/etc/snort/rules/