On a fresh FreeBSD system, created by ezjail (ezjail is my test environment), there is no /usr/local. Keep in mind I didn't have pkg installed and the ports tree, too, since I will replace them with ravensw and ravenports to create my own customized distro of FreeBSD. pkg installs into /usr/local but ravensw installs to /raven. I want ldconfig to include /raven/lib into it searth path, via the service /etc/rc.d/ldconfig that runs on every boot of the system, not by the environment variable LD_LIBRARY_PATH. My change will be global: removed /usr/local/sbin and /usr/local/bin from PATH completely but replace them with /raven/sbin and /raven/bin. So ask me to use a per user configuration like
kpedersen said is not a solution for me.