openbsd-ports/net/prosody/pkg
ajacoutot c4096e6659 Stop using the daemon class in @newuser.
If we need to make an exception we can do it and properly document the
reason but by default we should just use the default login class.
rc.d uses daemon or the login class provided in login.conf.d so this has
no impact there.

discussed with sthen@, tb@ and robert@

praying that my grep/sed skills did not break anything and still
believing in portbump :-)
2022-11-08 11:16:56 +00:00
..
DESCR
PLIST Stop using the daemon class in @newuser. 2022-11-08 11:16:56 +00:00
prosody.rc No need for return, higher error codes are considered an error by the 2022-05-21 15:44:56 +00:00
README drop RCS Ids 2022-03-11 19:45:43 +00:00

+-----------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
+-----------------------------------------------------------------------

Using Prosody in an OpenBSD environment

1) Prosody documentation is available online at:

   http://prosody.im/doc/configure

   Use this information to edit:

   ${SYSCONFDIR}/prosody/prosody.cfg.lua

   to your liking.

2) In order to allow for secured connections, SSL certificates need to
   be generated. A Makefile is located in ${SYSCONFDIR}/prosody/certs/.
   Please note that if you wish to use this file, the 'gmake' package
   needs to be installed.

3) Prosody includes an rc script for starting and stopping. You can
   start it by running:

   # ${RCDIR}/prosody start

   You can have it start automatically on boot by adding 'prosody' to your
   pkg_scripts line in /etc/rc.conf.local

4) Prosody comes with prosodyctl script for controlling the daemon. Run
   it without parameters to get list of commands:

   # ${TRUEPREFIX}/sbin/prosodyctl

   For example, to add users you would use something like:

   # ${TRUEPREFIX}/sbin/prosodyctl adduser username@domain.tld

5) In case you decide to enable 'mod_storage_sql', the default SQLite3
   driver has already been installed. If you like to use MySQL/MariaDB or
   PostgreSQL for the database, please install luadbi-mysql or luadbi-pgsql
   respectively.

   For MySQL/MariaDB, also add the following to /etc/login.conf:

   prosody:setenv=LD_PRELOAD=/usr/lib/libpthread.so:tc=daemon: