I tried your script on versions 2.4.5, 2.5.2, 2.6.0. They were all clean installs and it failed with java not being installed and a few other issues. I made some changes to your script and believe I fixed it. The reason I had to upload snappyjava-1.1.7.5.txz was it was failing on an openjdk specific version dependency, so I removed that dependency and altered the package. fontconfig-2.13.94_1.1.txz was also having some issues fetching from pkg.freebsd.org so I uploaded that as well.
I have tested my script on clean installs of all 3 versions and it works so far, I even adopted and configured an access point and everything looks good so far.
Also on your rc.d script I had to add the keyword SHUTDOWN because the drive was becoming de-fragmented on poweroff.
I tried your script on versions 2.4.5, 2.5.2, 2.6.0. They were all clean installs and it failed with java not being installed and a few other issues. I made some changes to your script and believe I fixed it. The reason I had to upload snappyjava-1.1.7.5.txz was it was failing on an openjdk specific version dependency, so I removed that dependency and altered the package. fontconfig-2.13.94_1.1.txz was also having some issues fetching from pkg.freebsd.org so I uploaded that as well.
I have tested my script on clean installs of all 3 versions and it works so far, I even adopted and configured an access point and everything looks good so far.
Also on your rc.d script I had to add the keyword SHUTDOWN because the drive was becoming de-fragmented on poweroff.
Here is my version: https://github.com/indoes/unifi-pfsense