Improve default file permissions
Ensure unifi cannot write to itself in the event of an exploit
Unifi only needs write access to: data, log, run, and work directories
Upgrade snappy to 1.1.1, and bump all related PORTREVISION to chase shared
library version.
PR: ports/190409
Submitted by: ports at robakdesign.com
Approved by: portmgr@ (for NO_STAGE)
Permit control of the flags passed to java through a new variable
called unifi_javaflags
Users have requested an easy way to make this change. Ubiquiti
recommends 1024M by default, but the actual memory requirement depends
on the size of your environment. It is safe to run at much lower levels
with only a few APs.
Fix problematic package upgrade
Unifi comes with a WAR file that it unpacks if the webroot does not exist.
This was causing the webroot to be untracked. Upon an upgrade Unifi
would not clean up the old webroot or unpack the new WAR file leaving
the web interface non-functional. This is solved by unpacking the WAR
file before creating the package so we track these files.
- Move net-mgmt/unifi to net-mgmt/unifi3
- Update port to 3.1.9
Unifi 3.x is still considered "beta". There has been a request to see
Unifi 2.x in the ports tree. They will live as separate ports,
net-mgmt/unifi2 and net-mgmt/unifi3.
PR: ports/185000
Approved by: swills (mentor)