import productivity/monica

Monica is a personal CRM designed to help remember everything about
friends, family and business relationships. It provides a web UI,
designed with simplicity and ease of use in mind, while allowing
users to organize and track of interactions and important events
with their contacts.

MAINTAINER =    Aisha Tammy <openbsd@aisha.cc>

ok sthen@
This commit is contained in:
lraab 2022-05-21 00:57:36 +00:00
parent f46651522b
commit 99d191b48a
5 changed files with 20448 additions and 0 deletions

View File

@ -0,0 +1,43 @@
COMMENT = self hosted personal CRM system
CATEGORIES = productivity
VERSION = 3.7.0
PKGNAME = monica-${VERSION}
MASTER_SITES = https://github.com/monicahq/monica/releases/download/v${VERSION}/
DISTNAME = monica-v${VERSION}
EXTRACT_SUFX = .tar.bz2
HOMEPAGE = https://www.monicahq.com/
MAINTAINER = Aisha Tammy <openbsd@aisha.cc>
# AGPL-3.0
PERMIT_PACKAGE = Yes
MODULES = lang/php
RUN_DEPENDS = lang/php/${MODPHP_VERSION},-curl \
lang/php/${MODPHP_VERSION},-gd \
lang/php/${MODPHP_VERSION},-gmp \
lang/php/${MODPHP_VERSION},-intl \
lang/php/${MODPHP_VERSION},-mysqli \
lang/php/${MODPHP_VERSION},-pdo_mysql \
lang/php/${MODPHP_VERSION},-soap \
lang/php/${MODPHP_VERSION},-zip \
graphics/pecl-imagick${MODPHP_FLAVOR}
NO_TEST = Yes
NO_BUILD = Yes
PREFIX = ${LOCALSTATEDIR}
INSTDIR = ${PREFIX}/www/monica
do-install:
${INSTALL_DATA_DIR} ${INSTDIR}
cp -a ${WRKSRC}/. ${INSTDIR}
rm ${INSTDIR}/vendor/sabre/dav/bin/googlecode_upload.py
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (monica-v3.7.0.tar.bz2) = YqGGMXRRqPnji9NoQTqX80lYaFxnANQ+WgIaYBedU+4=
SIZE (monica-v3.7.0.tar.bz2) = 27282164

View File

@ -0,0 +1,5 @@
Monica is a personal CRM designed to help remember everything about
friends, family and business relationships. It provides a web UI,
designed with simplicity and ease of use in mind, while allowing
users to organize and track of interactions and important events
with their contacts.

20337
productivity/monica/pkg/PLIST Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,61 @@
+-------------------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
+-------------------------------------------------------------------------------
Configuration file
==================
The configuration file for monica is ${LOCALSTATEDIR}/www/monica/.env .
Exposing a webserver
====================
An example nginx config is provided for reference:
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name <server-name>;
ssl_certificate /etc/ssl/monica.crt;
ssl_certificate_key /etc/ssl/private/monica.key;
rewrite .well-known/caldav /dav/ permanent;
rewrite .well-known/carddav /dav/ permanent;
rewrite .well-known/security.txt$ /security.txt permanent;
rewrite carddav/(.*) /dav/$1 permanent;
root /monica/public;
location / {
try_files $uri $uri/ /index.php$query_string;
}
location ~ ^(.*\.php)(.*)$ {
try_files $fastcgi_script_name =404;
include fastcgi_params;
fastcgi_split_path_info ^(.*\.php)(.*)$;
fastcgi_pass unix:run/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
}
}
PHP cron jobs
=============
Monica needs to run periodic book-keeping tasks. These need to be
scheduled using cron(8), via the crontab for the www user.
$ crontab -l -u www
#
SHELL=/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
HOME=/var/www
#
#minute hour mday month wday [flags] command
* * * * * -n cd ${LOCALSTATEDIR}/www/monica && ${MODPHP_BIN} artisan schedule:run