productivity/monica: install and tweak the README

Install the README and add instructions on how to configure it if using
a web server chrooted into /var/www.  While here also fix the PLIST: use
@mode 750 for monica/boostrap/cache/ and don't mark package.php and
services.php as executables.

diff from Aisha (maintainer) with input from sthen@ and me.
This commit is contained in:
op 2022-06-07 18:59:10 +00:00
parent 5f4d472f4e
commit f42653625b
3 changed files with 22 additions and 6 deletions

View File

@ -3,6 +3,7 @@ COMMENT = self hosted personal CRM system
CATEGORIES = productivity
VERSION = 3.7.0
REVISION = 0
PKGNAME = monica-${VERSION}
MASTER_SITES = https://github.com/monicahq/monica/releases/download/v${VERSION}/

View File

@ -717,15 +717,15 @@ www/monica/app/ViewHelpers/ContactHelper.php
www/monica/artisan
www/monica/bootstrap/
www/monica/bootstrap/app.php
@mode 775
@mode 770
@owner www
@group www
www/monica/bootstrap/cache/
www/monica/bootstrap/cache/packages.php
www/monica/bootstrap/cache/services.php
@mode
@owner
@group
www/monica/bootstrap/cache/packages.php
www/monica/bootstrap/cache/services.php
www/monica/composer.json
www/monica/composer.lock
www/monica/config/
@ -20335,3 +20335,5 @@ www/monica/vendor/xantios/mimey/tests/src/MimeMappingGeneratorTest.php
www/monica/vendor/xantios/mimey/tests/src/MimeTypesTest.php
www/monica/webpack.mix.js
www/monica/yarn.lock
@cwd ${LOCALBASE}
share/doc/pkg-readmes/${PKGSTEM}

View File

@ -2,10 +2,23 @@
| Running ${PKGSTEM} on OpenBSD
+-------------------------------------------------------------------------------
Configuration file
==================
Configuration and setup
=======================
The configuration file for monica is ${LOCALSTATEDIR}/www/monica/.env .
The configuration file for monica is ${LOCALSTATEDIR}/www/monica/.env which
should be configure according to the upstream documentation at
https://github.com/monicahq/monica/blob/main/docs/installation/providers/generic.md
The initial setup should be done as follows:
# cd ${LOCALSTATEDIR}/www/monica && \
su -s /bin/ksh www -c "${MODPHP_BIN} artisan setup:production -v"
Monica sets up absolute paths during the above setup, which can cause issues
when using a web server, such as httpd(8) or nginx, which run in a chroot
inside /var/www/. To work around this issue, create a relative symlink such as:
# ln -s .. /var/www/var/www
Exposing a webserver
====================