git: 15645cb00e89 - main - www/suitecrm: Add new port

From: Wen Heping <wen_at_FreeBSD.org>
Date: Thu, 07 Sep 2023 02:45:26 UTC
The branch main has been updated by wen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=15645cb00e8988d6988456b7a16303829edc8482

commit 15645cb00e8988d6988456b7a16303829edc8482
Author:     Wen Heping <wen@FreeBSD.org>
AuthorDate: 2023-09-07 02:44:02 +0000
Commit:     Wen Heping <wen@FreeBSD.org>
CommitDate: 2023-09-07 02:44:02 +0000

    www/suitecrm: Add new port
    
    SuiteCRM is an open source Customer Relationship Management (CRM)
    software solution that provides a 360-degree view of your customers
    and business.
---
 www/Makefile                      |  1 +
 www/suitecrm/Makefile             | 39 +++++++++++++++++++++++++++++++++++++++
 www/suitecrm/distinfo             |  3 +++
 www/suitecrm/files/pkg-message.in | 26 ++++++++++++++++++++++++++
 www/suitecrm/pkg-descr            |  3 +++
 5 files changed, 72 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 29f7b6b5e593..ce3546b17f83 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2298,6 +2298,7 @@
     SUBDIR += stagit
     SUBDIR += stork
     SUBDIR += subsonic-standalone
+    SUBDIR += suitecrm
     SUBDIR += suphp
     SUBDIR += surf
     SUBDIR += swiggle
diff --git a/www/suitecrm/Makefile b/www/suitecrm/Makefile
new file mode 100644
index 000000000000..ab9753f86c0c
--- /dev/null
+++ b/www/suitecrm/Makefile
@@ -0,0 +1,39 @@
+PORTNAME=	suitecrm
+PORTVERSION=	7.14.0
+CATEGORIES=	www
+MASTER_SITES=	https://suitecrm.com/download/141/suite84/562969/
+
+MAINTAINER=	wen@FreeBSD.org
+COMMENT=	Open source Customer Relationship Management (CRM) software solution
+WWW=		http://www.suitercrm.com/
+
+LICENSE=	AGPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+USES=		php zip
+USE_PHP=	curl ctype dom filter gd imap json mysqli pcre pdo posix \
+		session spl tokenizer xml mbstring zip zlib
+NO_BUILD=	yes
+
+WRKSRC=		${WRKDIR}/SuiteCRM-${PORTVERSION}
+
+PLIST=		${WRKDIR}/plist
+CRMDIR=		www/suitecrm
+
+SUB_FILES+=	pkg-message
+
+pre-install:
+	@${ECHO_CMD} "@owner ${WWWOWN}" >> ${PLIST}
+	@${ECHO_CMD} "@group ${WWWGRP}" >> ${PLIST}
+	@${ECHO_CMD} "@mode 755" >> ${PLIST}
+	@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${CRMDIR}?g" >>${PLIST}
+	@${FIND} -s -d ${WRKSRC} -type d  | ${SED} "s?${WRKSRC}?@dir ${CRMDIR}?g" >> ${PLIST}
+	@${ECHO_CMD} "@mode" >> ${PLIST}
+	@${ECHO_CMD} "@group" >> ${PLIST}
+	@${ECHO_CMD} "@owner" >> ${PLIST}
+
+do-install:
+	@${MKDIR} ${STAGEDIR}/${WWWDIR}
+	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}/${WWWDIR}/
+
+.include <bsd.port.mk>
diff --git a/www/suitecrm/distinfo b/www/suitecrm/distinfo
new file mode 100644
index 000000000000..7686957d52c8
--- /dev/null
+++ b/www/suitecrm/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1694045244
+SHA256 (suitecrm-7.14.0.zip) = 7772053677ebb3b06c9ecec86dd80e114f01fbfc30c6b440c4e5405bfa2ecc9d
+SIZE (suitecrm-7.14.0.zip) = 59845146
diff --git a/www/suitecrm/files/pkg-message.in b/www/suitecrm/files/pkg-message.in
new file mode 100644
index 000000000000..e436535deb86
--- /dev/null
+++ b/www/suitecrm/files/pkg-message.in
@@ -0,0 +1,26 @@
+[
+{ type: install
+  message: <<EOM
+Notes:
+
+1.  SuiteCRM requires that you increase the default PHP memory limit to 128M.
+    in the php.ini file.
+    memory_limit = 128M	; Maximum amount of memory a script may consume
+
+2.  In order to get Apache or your preferred web server to recognise Suite
+    Community Edition's location on your disk, you'll need to put the
+    following line (or the equivalent) into the web server configuration:
+
+Alias /suitecrm %%WWWDIR%%
+<Directory %%WWWDIR%%>
+	AllowOverride None
+	Require all granted
+</Directory>
+
+3.  For full information on how to get the best out of Sugar Community
+    Edition, please see the documentation on the web:
+
+    https://docs.suitecrm.com/admin/installation-guide/downloading-installing/
+EOM
+}
+]
diff --git a/www/suitecrm/pkg-descr b/www/suitecrm/pkg-descr
new file mode 100644
index 000000000000..52b6242edfa3
--- /dev/null
+++ b/www/suitecrm/pkg-descr
@@ -0,0 +1,3 @@
+SuiteCRM is an open source Customer Relationship Management (CRM)
+software solution that provides a 360-degree view of your customers
+and business.