Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 May 2022 11:24:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 264200] net-mgmt/unifi7: use a more unix-friendly layout
Message-ID:  <bug-264200-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264200

            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 appropria=
te
or not. hard to cater for all possibilities.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264200-7788>