View | Details | Raw Unified | Return to bug 246069
Collapse All | Expand All

(-)Makefile (-1 / +2 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=	jicofo
3
PORTNAME=	jicofo
4
DISTVERSION=	1.0-555
4
DISTVERSION=	1.0-555
5
PORTREVISION=	1
5
PORTREVISION=	2
6
CATEGORIES=	net-im java
6
CATEGORIES=	net-im java
7
7
8
MAINTAINER=	acm@FreeBSD.org
8
MAINTAINER=	acm@FreeBSD.org
Lines 22-27 Link Here
22
22
23
USE_RC_SUBR=	${PORTNAME}
23
USE_RC_SUBR=	${PORTNAME}
24
SUB_FILES+=	pkg-message
24
SUB_FILES+=	pkg-message
25
SUB_LIST+=	JAVA=${JAVA}
25
ETCDIR=		${PREFIX}/etc/jitsi/jicofo
26
ETCDIR=		${PREFIX}/etc/jitsi/jicofo
26
27
27
DEV_UPDATE_MODE=	no
28
DEV_UPDATE_MODE=	no
(-)files/jicofo.in (-8 / +12 lines)
Lines 7-14 Link Here
7
# KEYWORD: shutdown
7
# KEYWORD: shutdown
8
#
8
#
9
# Configuration settings for jicofo in /etc/rc.conf:
9
# Configuration settings for jicofo in /etc/rc.conf:
10
# jicofo_enable:	run jicofo server (default=NO)
11
# jicofo_flags:		additional flags for jicofo server (default="")
10
#
12
#
11
#
12
13
13
. /etc/rc.subr
14
. /etc/rc.subr
14
15
Lines 15-23 Link Here
15
name="jicofo"
16
name="jicofo"
16
rcvar=${name}_enable
17
rcvar=${name}_enable
17
18
18
jicofo_env_file="%%LOCALBASE%%/etc/jitsi/jicofo/jicofo.conf"
19
jicofo_env_file="%%ETCDIR%%/jicofo.conf"
19
jicofo_jar="%%JAVAJARDIR%%/jicofo.jar"
20
jicofo_jar="%%JAVAJARDIR%%/jicofo.jar"
20
jicofo_logging_config="%%DATADIR%%/lib/logging.properties"
21
jicofo_logging_config="%%DATADIR%%/lib/logging.properties"
22
jicofo_trust_store="%%ETCDIR%%/truststore.jks"
21
23
22
load_rc_config "${name}"
24
load_rc_config "${name}"
23
25
Lines 24-32 Link Here
24
: ${jicofo_enable="NO"}
26
: ${jicofo_enable="NO"}
25
: ${jicofo_flags=""}
27
: ${jicofo_flags=""}
26
28
27
command="%%LOCALBASE%%/bin/java"
29
command="%%JAVA%%"
28
pidfile="/var/run/jicofo.pid"
30
pidfile="/var/run/jicofo.pid"
29
required_files="${jicofo_env_file} %%LOCALBASE%%/etc/ssl/java.pem"
31
required_files="${jicofo_env_file} ${jicofo_trust_store}"
30
32
31
start_cmd=${name}_start
33
start_cmd=${name}_start
32
stop_cmd=${name}_stop
34
stop_cmd=${name}_stop
Lines 35-41 Link Here
35
37
36
jicofo_start()
38
jicofo_start()
37
{
39
{
38
	daemon -p ${pidfile} -o /var/log/${name}.log ${command} -Xmx${MAX_MEMORY} \
40
	daemon -p ${pidfile} -o /var/log/${name}.log \
41
		${command} -Xmx${MAX_MEMORY} \
39
                -XX:+HeapDumpOnOutOfMemoryError \
42
                -XX:+HeapDumpOnOutOfMemoryError \
40
                -XX:HeapDumpPath=/tmp \
43
                -XX:HeapDumpPath=/tmp \
41
                -Djava.util.logging.config.file=${jicofo_logging_config} \
44
                -Djava.util.logging.config.file=${jicofo_logging_config} \
Lines 42-57 Link Here
42
                -Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION=%%LOCALBASE%%/etc/jitsi \
45
                -Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION=%%LOCALBASE%%/etc/jitsi \
43
                -Dnet.java.sip.communicator.SC_HOME_DIR_NAME=jicofo \
46
                -Dnet.java.sip.communicator.SC_HOME_DIR_NAME=jicofo \
44
                -Dnet.java.sip.communicator.SC_LOG_DIR_LOCATION=/var/log/ \
47
                -Dnet.java.sip.communicator.SC_LOG_DIR_LOCATION=/var/log/ \
45
		-Djavax.net.ssl.trustStore=%%LOCALBASE%%/etc/ssl/java.pem \
48
		"-Djavax.net.ssl.trustStore=${jicofo_trust_store}" \
46
                -cp ${jicofo_jar} \
49
                -cp ${jicofo_jar} \
47
                org.jitsi.jicofo.Main \
50
                org.jitsi.jicofo.Main \
48
                --host=${JVB_XMPP_HOST} \
51
                --host=${JVB_XMPP_HOST} \
49
                --domain=${JVB_XMPP_DOMAIN} \
52
                --domain=${JVB_XMPP_DOMAIN} \
50
                --port=${JVB_XMPP_PORT} \
53
                --port=${JVB_XMPP_PORT} \
51
                --secret=${JVB_XMPP_SECRET} \
54
                "--secret=${JVB_XMPP_SECRET}" \
52
		--user_domain=${JVB_XMPP_USER_DOMAIN} \
55
		--user_domain=${JVB_XMPP_USER_DOMAIN} \
53
		--user_name=${JVB_XMPP_USER_NAME} \
56
		--user_name=${JVB_XMPP_USER_NAME} \
54
		--user_password=${JVB_XMPP_USER_SECRET} ${jicofo_flags}
57
		"--user_password=${JVB_XMPP_USER_SECRET}" \
58
		${jicofo_flags}
55
		echo "Started"
59
		echo "Started"
56
}
60
}
57
61
(-)files/pkg-message.in (-16 / +14 lines)
Lines 1-30 Link Here
1
[
1
[
2
{ type: install
2
{ type: install
3
  message: <<EOM
3
  message: <<EOM
4
Jitsi Conference Focus was installed
4
Jitsi Conference Focus was installed, and needs further configuration:
5
5
6
1) Configuration file is located at:
6
1) The configuration file is used by the startup rcfile and located at:
7
8
   %%ETCDIR%%/jicofo.conf
7
   %%ETCDIR%%/jicofo.conf
9
8
10
   Values defined there are used by startup script file
11
12
2) Add jicofo_enable="YES" to /etc/rc.conf.
9
2) Add jicofo_enable="YES" to /etc/rc.conf.
13
10
14
3) If you are using net-im/prosody with jicofo, do not forget import trusted 
11
3) For use of jicofo with net-im/prosody, you need to import prosody's
15
   certificate file
12
   auth.jitsi.example.com TLS certificate into a Java truststore.
13
   The startup rcfile will pass this filename to jicofo:
14
   %%ETCDIR%%/truststore.jks - for example:
16
15
17
  # keytool -noprompt -keystore %%LOCALBASE%%/etc/ssl/java.pem -importcert -alias prosody -file /path/to/prosody/auth.jitsi.example.com.crt
16
  # openssl x509 -in /path/to/prosody/auth.jitsi.example.com.crt \
17
     -outform der -out /path/to/prosody/auth.jitsi.example.com.der
18
  # keytool -noprompt -keystore %%ETCDIR%%/truststore.jks -importcert \
19
     -alias prosody -file /path/to/prosody/auth.jitsi.example.com.der
18
20
19
4) If you want use jicofo on FreeBSD 11.x, please look for apply the
21
4) If you want use jicofo on FreeBSD 11.x, please apply the
20
   following patch file:
22
   following patch file: https://reviews.freebsd.org/D14453
21
23
22
   https://reviews.freebsd.org/D14453
24
   jicofo's rc script uses ${name}_env_file functionality,
23
25
   which is only available on FreeBSD >= 12.x.
24
   jicofo rc script use ${name}_env_file functionality. It is
25
   available on FreeBSD >= 12.x
26
27
5) Enjoy it
28
EOM
26
EOM
29
}
27
}
30
]
28
]

Return to bug 246069