|o||Perl (if not already installed)|
|o||p5-DBD-Pg (will also pull in postgresqlXX-client)|
|o||net-snmp (should install the Perl binding SNMP.pm)|
pw useradd netdisco -N -m -s /bin/sh -w no
/usr/local/etc/rc.d/postgresql initdb /usr/local/etc/rc.d/postgresql start
Make sure PostgreSQL starts at boot by adding the following to "/etc/rc.conf":
When installing postgresqlXX-server port, it creates the pgsql user with "nologin" shell. As root, do vipw and change the shell to /bin/sh or whichever shell you want, so that you can do the createuser step from the main instructions.
pgtune doesnt seem to work on NetBSD. This needs looking into. Nothing will break, but it just means the server probably isnt tuned to your systems hardware (RAM, etc).
# PROVIDE: netdiscoweb # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: shutdown rcvar="netdisco_enable"
See also <https://www.freebsd.org/doc/en/books/porters-handbook/rc-scripts.html>
|perl v5.20.3||APP::NETDISCO::MANUAL::BSDINSTALL (3)||2015-01-01|