On 2022-04-01, Eric Thomas <e...@ericthomas.net> wrote: > @Crystal > >> If you want to work with the ports tree, it's _much_ better to set up >> DPB than just running 'make' in the various directories: > > Very cool blog! I def spent some time reading. The dpb method feels > like a litttttle too advanced for me at this moment. I'm struggling to > get this UniFi port built using the standard setup.
The only places I use dpb are 1) for bulk builds, i.e. building the whole set of ports in one go, and 2) if I want to download all the distfiles (source code to all the ports) if I want to run a search over it all. It's useful but I would not describe it as useful for what most people need to do with the ports tree. > @Stuart > > 1. I was able to restore a previous checkpoint (I'm in a virtual > machine) where the port tree was freshly installed. > 2. I ran `make install` in the correct directory ( thank you: > `/usr/ports/net/unifi/6.2`) and piped the results to a log.txt file. I really recommend using FETCH_PACKAGES so you aren't spending hours building difficult-to-build ports needlessly, unifi itself cannot be distributed as packages, but the other software which it requires aren't a problem. i.e. this bit from my mail: >> memory limits, you probably want to install those from packages instead >> ("make FETCH_PACKAGES= install" should do that - the unifi port would >> have displayed a hint about this when you ran "make"). > 3. I wish I could figure out how to get the dang log.txt file out of > the OpenBSD VM (email?, USB thumbdrive?, other?) and into your hands! the easiest options are based around connecting to the machine by ssh e.g. - ssh in, copy and paste from the terminal - scp or sftp the file to another machine > - Seems like an act of congress to setup external email. At least > I can't find a simple example on the web either use a mail client that can connect to your mail server directly, or use something like this https://blog.joelg.net/post/2020-09-20-setting-up-opensmtpd-with-an-external-relay/ if you need to use a From address that is something other than <login_username>@<machine hostname> then it gets more complicated > - It'll probably be easier for me to determine how to add USB > drives to the VM (working on it) > 4. I can't tell whether the `make install` worked or not "pkg_info | grep unifi" will show some output if it is installed