Install

0. Dependencies

We need curl

$ doas pkg_add curl

We also need gmake

$ doas pkg_add gmake

1. Extra

Ok so if you own a vm or doing this on coconut or something then I recommend makeing a new user for unrealircd ONLY (letter on also a user ONLY for services)

$ doas useradd -m irc

Now we have a user called "irc" now lets switch to it

$ doas su irc

You can do `$ whoami` to verify you're the "irc" user now go home `$ cd`

2. Download & install

Download the latest source code tar, at the time of writeing this is 5.0.9.1 you can find the latest here https://www.unrealircd.org/download but this guide will be useing 5.0.9.1, should be the exact same for newer versions

$ curl -LO https://www.unrealircd.org/downloads/unrealircd-5.0.9.1.tar.gz

Now untar it

$ tar xzf unrealircd-5.0.9.1.tar.gz

Now go inside that dir

$ cd unrealircd-5.0.9.1

Now lets build from sauce

$ ./Config && make && make install

It will ask a bunch of questions but you can just click enter on all of them to get default settings witch are fine for most people

2.1. Knowen errors

If you get this error "gmake[4]: *** [Makefile:1084: libcares_la-ares_process.lo] Error 1" then you will have to also install cares, this is sadly an issue that acures on openbsd on recent versions, hope it gets fixed soon

$ exit

$ doas pkg_add libcares

$ doas su irc

$ cd ~/unrealircd-5.0.9.1

Then rerun the build command

$ ./Config && make && make install

2.2. Clean up

Just delete the tar file, you might want to delete source code folder too if low on storage

3. Basic config

go to the config folder

$ cd ~/unrealircd/conf

copy example over

$ cp examples/example.conf unrealircd.conf

You will want to edit the example config, when done just start it up

$ ~/unrealircd/unrealircd start