[Bug 264200] net-mgmt/unifi7: use a more unix-friendly layout
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 May 2022 11:24:44 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264200 Bug ID: 264200 Summary: net-mgmt/unifi7: use a more unix-friendly layout Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: otis@FreeBSD.org Reporter: dch@freebsd.org Assignee: otis@FreeBSD.org Flags: maintainer-feedback?(otis@FreeBSD.org) Unifi's generic UNIX java packaging insists on dropping its turds under its source code. We don't do that round here, thanks. The steps below assume you have no existing unifi data, if you do, copy `/usr/local/share/java/unifi/ somewhere and move the appropriate bits back again. ``` # pkg install -r FreeBSD unifi7 # mkdir -p -m 0770 /var/{run,log}/unifi /var/db/unifi/{dl,data} # chown -R unifi:wheel /var/run/unifi /var/log/unifi /var/db/unifi # rm /usr/local/share/java/unifi/{data,dlwork,logs,run} # ln -s /var/db/unifi/data /usr/local/share/java/unifi/data # ln -s /var/db/unifi/dl /usr/local/share/java/unifi/dl # ln -s /var/log/unifi /usr/local/share/java/unifi/logs # ln -s /var/run/unifi /usr/local/share/java/unifi/run # ln -s /var/run/unifi /usr/local/share/java/unifi/work ``` It might be possible to give people either migration instructions, for the next version, or maybe even automate it. Not sure if that's considered appropriate or not. hard to cater for all possibilities. -- You are receiving this mail because: You are the assignee for the bug.