mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
mail/openemm2015: Unbreak by switching to tomcat85
PR: 238430 Submitted by: maintainer
This commit is contained in:
parent
35fc8458d9
commit
2e011be834
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=506232
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= openemm2015
|
||||
PORTVERSION= 0
|
||||
PORTVERSION= 0.1
|
||||
CATEGORIES= mail java www
|
||||
MASTER_SITES= SF/openemm/OpenEMM%20software/OpenEMM%202015/ \
|
||||
http://central.maven.org/maven2/com/lowagie/itext/2.1.7/:MAVEN2
|
||||
@ -16,14 +16,13 @@ COMMENT= OpenEMM a email marketing enterprise app
|
||||
LICENSE= CPAL-1.0
|
||||
LICENSE_FILE= ${WRKSRC}/other/LICENSE.txt
|
||||
|
||||
BROKEN= depends on expired www/tomcat8
|
||||
BROKEN_powerpc64= fails to build: gmake[1]: clang: Command not found
|
||||
|
||||
LIB_DEPENDS= libslang.so:devel/libslang2 \
|
||||
libsa.so:net/ossp-sa
|
||||
#BUILD_DEPENDS= ${TOMCATHOME}/bin/bootstrap.jar:www/tomcat8 \
|
||||
BUILD_DEPENDS= ${TOMCATHOME}/bin/bootstrap.jar:www/tomcat85 \
|
||||
${ANT_CMD}:devel/apache-ant
|
||||
#RUN_DEPENDS= ${TOMCATHOME}/bin/bootstrap.jar:www/tomcat8 \
|
||||
RUN_DEPENDS= ${TOMCATHOME}/bin/bootstrap.jar:www/tomcat85 \
|
||||
py27-MySQLdb>=1.2.3:databases/py-MySQLdb
|
||||
|
||||
USES= dos2unix gmake python:2.7,run
|
||||
@ -35,7 +34,7 @@ DOS2UNIX_GLOB= *.c *.cpp *.h *.java *.xml *.properties
|
||||
CC= clang
|
||||
CXX= clang++
|
||||
|
||||
TOMCATVER= apache-tomcat-8.0
|
||||
TOMCATVER= apache-tomcat-8.5
|
||||
TOMCATDIR= ${PREFIX}/${TOMCATVER}
|
||||
TOMCATHOME= ${LOCALBASE}/${TOMCATVER}
|
||||
#WEBAPPDIR= ${TOMCATDIR}/webapps
|
||||
@ -228,6 +227,8 @@ do-install:
|
||||
|
||||
# create log files
|
||||
${MKDIR} ${STAGEDIR}/var/log/${PORTNAME}
|
||||
${TOUCH} ${STAGEDIR}/var/log/${PORTNAME}/openemm.log
|
||||
${TOUCH} ${STAGEDIR}/var/log/${PORTNAME}/openemm-ws.log
|
||||
${TOUCH} ${STAGEDIR}/var/log/${PORTNAME}/openemm_core.log
|
||||
${TOUCH} ${STAGEDIR}/var/log/${PORTNAME}/userlogs.log
|
||||
${TOUCH} ${STAGEDIR}/var/log/${PORTNAME}/openemm_axis.log
|
||||
|
@ -6,7 +6,7 @@ $> mysqldump -aCceQx --hex-blob --routines --triggers -u root -p -r /tmp/openemm
|
||||
|
||||
To integrate the OpenEMM 2015 to the installed Tomcat add this
|
||||
chunk to the server.xml of Tomcat:
|
||||
TOMCAT_HOME= %%PREFIX%%/apache-tomcat-8.0/lib/
|
||||
TOMCAT_HOME= %%PREFIX%%/apache-tomcat-8.5/lib/
|
||||
|
||||
vi TOMCAT_HOME/conf/server.xml
|
||||
|
||||
@ -28,6 +28,7 @@ vi TOMCAT_HOME/conf/server.xml
|
||||
<!-- add this part END -->
|
||||
</Engine>
|
||||
|
||||
Change the Engine name="Catalina" to point to defaultHost="OpenEMM"
|
||||
Don't forget securing tomcat, or add a httpd in front secured
|
||||
|
||||
additional for the jndi database connect:
|
||||
@ -38,30 +39,24 @@ vi TOMCAT_HOME/conf/context.xml
|
||||
....
|
||||
<Resource
|
||||
name="jdbc/openemm_db"
|
||||
driverClassName="com.mysql.jdbc.Driver"
|
||||
driverClassName="com.mysql.cj.jdbc.Driver"
|
||||
type="javax.sql.DataSource"
|
||||
maxCount="30"
|
||||
maxActive="50"
|
||||
maxWait="10000"
|
||||
maxTotal="30"
|
||||
auth="Container"
|
||||
username="agnitas"
|
||||
password="openemm"
|
||||
url="jdbc:mysql://localhost/openemm?useUnicode=yes&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&zeroDateTimeBehavior
|
||||
=convertToNull"
|
||||
url="jdbc:mysql://localhost/openemm?useUnicode=yes&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&zeroDateTimeBehavior=convertToNull"
|
||||
/>
|
||||
|
||||
<Resource
|
||||
name="jdbc/openemm_cms_db"
|
||||
driverClassName="com.mysql.jdbc.Driver"
|
||||
driverClassName="com.mysql.cj.jdbc.Driver"
|
||||
type="javax.sql.DataSource"
|
||||
maxCount="30"
|
||||
maxActive="50"
|
||||
maxWait="10000"
|
||||
maxTotal="30"
|
||||
auth="Container"
|
||||
username="agnitas"
|
||||
password="openemm"
|
||||
url="jdbc:mysql://localhost/openemm_cms?useUnicode=yes&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&zeroDateTimeBeha
|
||||
vior=convertToNull"
|
||||
url="jdbc:mysql://localhost/openemm_cms?useUnicode=yes&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&zeroDateTimeBehavior=convertToNull
|
||||
/>
|
||||
</Context>
|
||||
|
||||
@ -81,20 +76,20 @@ chmod 644 /var/log/maillog
|
||||
# to keep this change permanent change cron info in /etc/newsyslog.conf
|
||||
# change line /var/log/maillog 644 7 * @T00 JC
|
||||
|
||||
if not change tracking of mail sending / bounces is not working correct
|
||||
#if not change tracking of mail sending / bounces is not working correct
|
||||
|
||||
# don't forget to add the link for mysql driver jar to tomcat
|
||||
# if not already installed add: pkg install mysql-connector-java
|
||||
ln -s %%PREFIX%%/share/java/classes/mysql-connector-java.jar TOMCAT_HOME/lib
|
||||
chown -h www TOMCAT_HOME/lib/mysql-connector-java.jar
|
||||
|
||||
# setup the database scripts
|
||||
|
||||
in the installed mysql add 2 databases
|
||||
#in the installed mysql add 2 databases
|
||||
|
||||
create database openemm;
|
||||
create database openemm_cms;
|
||||
|
||||
grant the privileges for the 2 db's from where you want to access
|
||||
#grant the privileges for the 2 db's from where you want to access
|
||||
grant all privileges on openemm.* to agnitas@'X.Y.%' identified by 'openemm';
|
||||
grant all privileges on openemm_cms.* to agnitas@'X.Y.%' identified by 'openemm';
|
||||
|
||||
@ -111,16 +106,16 @@ or
|
||||
|
||||
# startup config for tomcat and OpenEMM
|
||||
add to /etc/rc.conf
|
||||
# Tomcat8 Server startup with initial config params for OpenEMM
|
||||
tomcat8_enable="YES"
|
||||
tomcat8_java_opts="-server -Djava.awt.headless=true -Xms256m -Xmx512m -XX:MaxPermSize=256m -Xss256k"
|
||||
# Tomcat85 Server startup with initial config params for OpenEMM
|
||||
tomcat85_enable="YES"
|
||||
tomcat85_java_opts="-server -Djava.awt.headless=true -Xms256m -Xmx512m -Xss256k"
|
||||
|
||||
# Openemm 2015
|
||||
openemm2015_enable="YES"
|
||||
|
||||
#NOW you are ready to start the tomcat and OpenEMM
|
||||
|
||||
service tomcat8 start
|
||||
service tomcat85 start
|
||||
service openemm2015 start
|
||||
or
|
||||
%%PREFIX%%/etc/rc.d/openemm2015 start
|
||||
|
@ -6023,10 +6023,19 @@
|
||||
%%PORTDOCS%%%%DOCSDIR%%/update_openemm-6.RC2-6.0.sql
|
||||
@mode 555
|
||||
%%PORTDOCS%%%%DOCSDIR%%/upgrade-postproc.sh
|
||||
@mode 755
|
||||
@(www,www,) /var/log/%%APP_HOME%%/daily.log
|
||||
@mode 755
|
||||
@(www,www,) /var/log/%%APP_HOME%%/openemm.log
|
||||
@mode 755
|
||||
@(www,www,) /var/log/%%APP_HOME%%/openemm-ws.log
|
||||
@mode 755
|
||||
@(www,www,) /var/log/%%APP_HOME%%/openemm_axis.log
|
||||
@mode 755
|
||||
@(www,www,) /var/log/%%APP_HOME%%/openemm_core.log
|
||||
@mode 755
|
||||
@(www,www,) /var/log/%%APP_HOME%%/userlogs.log
|
||||
@mode 755
|
||||
@dir(www,www,) /var/log/%%APP_HOME%%
|
||||
@dir %%DOCSDIR%%/ThirdPartyLicences
|
||||
@dir %%DOCSDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user