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

(-)ports/net-im/mu-conference/Makefile (-24 / +100 lines)
Lines 5-45 Link Here
5
# $FreeBSD: ports/net-im/mu-conference/Makefile,v 1.5 2006/05/16 14:45:21 itetcu Exp $
5
# $FreeBSD: ports/net-im/mu-conference/Makefile,v 1.5 2006/05/16 14:45:21 itetcu Exp $
6
6
7
PORTNAME=	mu-conference
7
PORTNAME=	mu-conference
8
PORTVERSION=	0.6.0
8
PORTVERSION=	0.7
9
PORTREVISION=	3
10
CATEGORIES=	net-im
9
CATEGORIES=	net-im
11
MASTER_SITES=	${MASTER_SITE_GENTOO} \
10
MASTER_SITES=	http://download.gna.org/mu-conference/
12
		http://jabber.terrapin.com/JCR/:jcr
11
DISTNAME=	${PORTNAME}_${PORTVERSION}
13
MASTER_SITE_SUBDIR=	distfiles
14
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} jcr-${JCR_VER}.tar.gz:jcr
15
12
16
MAINTAINER=	dsh@vlink.ru
13
MAINTAINER=	mm@FreeBSD.org
17
COMMENT=	Multi-User Conferencing component for Jabber
14
COMMENT=	Multi-User Conferencing component for Jabber
18
15
19
USE_GNOME=	glib20
16
LIB_DEPENDS=	expat.6:${PORTSDIR}/textproc/expat2 \
20
USE_RC_SUBR=	${PORTNAME}.sh
17
		idn.16:${PORTSDIR}/dns/libidn
21
18
22
WRKSRC=		${WRKDIR}/jcr-${JCR_VER}
19
USE_GNOME=	glib20 pkgconfig
20
USE_RC_SUBR=	${PORTNAME}
23
21
24
JCR_VER?=	0.2.4
22
OPTIONS=	MYSQL "Enable MySQL support" off \
23
		JABBER "Use with jabberd14 (net-im/jabber)" off \
24
		JABBERD "Use with jabberd 2.x (net-im/jabberd)" off \
25
		EJABBERD "Use with ejabberd (net-im/ejabberd)" off
25
26
26
post-extract:
27
SUB_FILES+=	pkg-message README.FreeBSD.jabberd14 \
27
	${MV} ${WRKDIR}/${DISTNAME} ${WRKSRC}
28
		README.FreeBSD.jabberd2 README.FreeBSD.external
28
29
29
post-build:
30
CFLAGS+=	-I${LOCALBASE}/include
30
.for i in jcomp.mk main.c
31
31
	${CP} ${WRKSRC}/src/${i} ${WRKSRC}/${DISTNAME}/src/
32
DOCFILES=	AUTHORS COPYING ChangeLog FAQ LICENSE README TODO \
32
.endfor
33
		XEP0045_SUPPORT muc-default.xml style.css
33
	(cd ${WRKSRC}/${DISTNAME}/src; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} jcomp.mk)
34
35
PORTDOCS=	*
36
37
.include <bsd.port.pre.mk>
38
39
.if defined(WITH_MYSQL)
40
USE_MYSQL=	yes
41
CFLAGS+=	-DHAVE_MYSQL
42
DOCFILES+=	README.sql mu-conference.sql
43
.endif
44
45
MUC_LOGDIR?=	/var/log/mu-conference
46
47
.if defined(WITH_JABBER)
48
JABBER_REQUIRE?=        jabber
49
JABBER_USER?=           jabber
50
JABBER_PIDDIR?=         /var/run/jabberd
51
JABBER_SPOOLDIR?=       /var/spool/jabberd
52
RUN_DEPENDS+=           jabberd14:${PORTSDIR}/net-im/jabber
53
.elif defined(WITH_JABBERD)
54
JABBER_REQUIRE?=        jabberd
55
JABBER_USER?=           jabber
56
JABBER_PIDDIR?=         /var/jabberd/pid
57
JABBER_SPOOLDIR?=       /var/spool/jabber
58
RUN_DEPENDS+=           jabberd:${PORTSDIR}/net-im/jabberd
59
.elif defined(WITH_EJABBERD)
60
JABBER_REQUIRE?=        ejabberd
61
JABBER_USER?=           ejabberd
62
JABBER_PIDDIR?=         /var/jabberd/pid
63
JABBER_SPOOLDIR?=       /var/spool/jabber
64
RUN_DEPENDS+=           ejabberd:${PORTSDIR}/net-im/ejabberd
65
.else
66
JABBER_REQUIRE?=        DAEMON
67
JABBER_USER?=           nobody
68
JABBER_PIDDIR?=         /var/run/mu-conference
69
JABBER_SPOOLDIR?=       /var/spool/mu-conference
70
.endif
71
72
SUB_LIST+=	JABBER_REQUIRE="${JABBER_REQUIRE}" \
73
		JABBER_PIDDIR="${JABBER_PIDDIR}" \
74
		JABBER_SPOOLDIR="${JABBER_SPOOLDIR}" \
75
		JABBER_USER=${JABBER_USER} \
76
		MUC_LOGDIR=${MUC_LOGDIR}
77
78
post-patch:
79
	@${REINPLACE_CMD} -e 's#=$$(CFLAGS)#=#g' \
80
		-e 's#CFLAGS[:]*=#CFLAGS+=#g' \
81
		-e 's#`pkg-config#`${LOCALBASE}/bin/pkg-config#g' \
82
		${WRKSRC}/Makefile ${WRKSRC}/*/Makefile \
83
		${WRKSRC}/*/*/Makefile
84
	@${REINPLACE_CMD} -e 's#<spool>\./spool/chat.localhost#<spool>${JABBER_SPOOLDIR}/conference.localhost#g' \
85
		-e 's#<logdir>\./syslogs#<logdir>${LOGDIR}#g' \
86
		-e 's#<logdir>\./logs#<logdir>${JABBER_SPOOLDIR}/conference.localhost/logs#g' \
87
		-e 's#<pidfile>\.#<pidfile>${JABBER_PIDDIR}#g' \
88
		${WRKSRC}/muc-default.xml
89
.if defined(WITH_MYSQL)
90
	@${REINPLACE_CMD} \
91
		-e 's#`mysql_config#`${LOCALBASE}/bin/mysql_config#g' \
92
		${WRKSRC}/src/Makefile
93
.else
94
	@${REINPLACE_CMD} -e 's#`mysql_config --libs`##g' \
95
		${WRKSRC}/src/Makefile
96
.endif
34
97
35
do-install:
98
do-install:
36
	${INSTALL_PROGRAM} ${WRKSRC}/${DISTNAME}/src/mu-conference ${PREFIX}/bin
99
	${INSTALL_PROGRAM} ${WRKSRC}/src/mu-conference ${PREFIX}/bin
37
	${INSTALL_DATA} ${WRKSRC}/${DISTNAME}/muc-jcr.xml ${PREFIX}/etc/muc.xml-dist
100
	${INSTALL_DATA} ${WRKSRC}/muc-default.xml ${PREFIX}/etc/muc.xml.sample
101
	@if ! [ -f ${PREFIX}/etc/muc.xml ]; then \
102
		${INSTALL_DATA} ${WRKSRC}/muc-default.xml ${PREFIX}/etc/muc.xml; \
103
	fi
38
.if !defined(NOPORTDOCS)
104
.if !defined(NOPORTDOCS)
39
	${MKDIR} ${DOCSDIR}
105
	@${MKDIR} ${DOCSDIR}/scripts
40
.for i in FAQ README
106
.for FILE in README.FreeBSD.jabberd14 README.FreeBSD.jabberd2 README.FreeBSD.external
41
	${INSTALL_DATA} ${WRKSRC}/${DISTNAME}/${i} ${DOCSDIR}
107
	@${INSTALL_DATA} ${WRKDIR}/${FILE} ${DOCSDIR}
108
.endfor
109
.for FILE in ${DOCFILES}
110
	@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
111
.endfor
112
	${INSTALL_DATA} ${WRKSRC}/scripts/README ${DOCSDIR}/scripts
113
.for FILE in roommaker.pl roomname.pl
114
	${INSTALL_SCRIPT} ${WRKSRC}/scripts/${FILE} ${DOCSDIR}/scripts
42
.endfor
115
.endfor
43
.endif
116
.endif
44
117
45
.include <bsd.port.mk>
118
post-install:
119
	@${CAT} ${PKGMESSAGE}
120
121
.include <bsd.port.post.mk>
(-)ports/net-im/mu-conference/distinfo (-6 / +3 lines)
Lines 1-6 Link Here
1
MD5 (mu-conference-0.6.0.tar.gz) = e97433bf4a978329d639ce872bee3223
1
MD5 (mu-conference_0.7.tar.gz) = 019e75d80a51da63ba7567341483b2e9
2
SHA256 (mu-conference-0.6.0.tar.gz) = 9cc4d95f9dd8f658f174a156b768c64e0b2f30646acdd1915e97e3d1ac8c1466
2
SHA256 (mu-conference_0.7.tar.gz) = 914d7e5cf45c50e3eaae77d03d895211d332f85469f4a70adaf7209917d27a35
3
SIZE (mu-conference-0.6.0.tar.gz) = 56272
3
SIZE (mu-conference_0.7.tar.gz) = 112381
4
MD5 (jcr-0.2.4.tar.gz) = f88bcc4a8347fd1dd8ca50dff50341f3
5
SHA256 (jcr-0.2.4.tar.gz) = 0899920f511495a9ada6b15bd6ad4aeaa8dcc680d6f46e0f07ab718dc5689f75
6
SIZE (jcr-0.2.4.tar.gz) = 128939
(-)ports/net-im/mu-conference/pkg-descr (-3 / +3 lines)
Lines 1-4 Link Here
1
An implemention of the conference server using the protocol defined in
1
MU-Conference is a Jabber/XMPP server component. It provides an implementation
2
JEP-0045.
2
of Multi-User Chat (XEP-0045) - Jabber chatrooms.
3
3
4
WWW: http://www.jabberstudio.org/projects/mu-conference
4
WWW: https://gna.org/projects/mu-conference/
(-)ports/net-im/mu-conference/pkg-plist (-4 / +6 lines)
Lines 1-5 Link Here
1
@unexec if cmp -s %D/etc/muc.xml.sample %D/etc/muc.xml; then rm -f %D/etc/muc.xml; fi
1
bin/mu-conference
2
bin/mu-conference
2
etc/muc.xml-dist
3
etc/muc.xml.sample
3
%%PORTDOCS%%%%DOCSDIR%%/FAQ
4
%%PORTDOCS%%%%DOCSDIR%%/scripts/README
4
%%PORTDOCS%%%%DOCSDIR%%/README
5
%%PORTDOCS%%%%DOCSDIR%%/scripts/roomname.pl
5
%%PORTDOCS%%@dirrm %%DOCSDIR%%
6
%%PORTDOCS%%%%DOCSDIR%%/scripts/roommaker.pl
7
%%PORTDOCS%%@dirrm %%DOCSDIR%%/scripts
(-)ports/net-im/mu-conference/files/README.FreeBSD.external.in (+14 lines)
Added Link Here
1
# MU-Conference and external jabber servers on FreeBSD
2
# README by Martin Matuska <mm_at_FreeBSD_dot_org>
3
4
If you did not select WITH_JABBER, WITH_JABBERD or WITH_EJABBERD, you may want
5
to use another or external jabber server. To run the transport locally, you may
6
need to create the pid and spool directories manually.
7
8
Default pahts of the current installation are:
9
%%JABBER_PIDDIR%%
10
%%JABBER_SPOOLDIR%%
11
12
You should make these paths writable for the service user.
13
Default service user for this installation:
14
%%JABBER_USER%%
(-)ports/net-im/mu-conference/files/README.FreeBSD.jabberd14.in (+38 lines)
Added Link Here
1
# MU-Conference and jabberd14 (net-im/jabber) on FreeBSD
2
# README by Martin Matuska <mm_at_FreeBSD_dot_org>
3
4
The sample configuration file for jabberd14 may be located in:
5
%%TARGETDIR%%/etc/jabber.xml.sample
6
7
Please make all necessary changes to your configuration file which may be:
8
%%TARGETDIR%%/etc/jabber.xml
9
10
NOTE: if you want this service to be accessible from other servers,
11
 change any 'conference.localhost' listed below to a fully qualified 
12
 domain name! Please make sure that your directives are _NOT_ in an XML 
13
 comment: there are many multi-line comments. 
14
15
To activate MU-Conference for your Jabber server, 
16
add the following to your configuration file and adjust to your settings
17
(around line 921 in the sample configuration file):
18
-------------------------------------------------------------------------------
19
20
  <service id="conference.localhost">
21
    <accept>
22
      <ip>127.0.0.1</ip>
23
      <port>7009</port>
24
      <secret>password</secret>
25
    </accept>
26
  </service>
27
28
-------------------------------------------------------------------------------
29
Add this section to the browse area of the jsm to advertise it to
30
your users (around line 382 of the sample config):
31
-------------------------------------------------------------------------------
32
33
	<item category="conference" type="public" jid="conference.localhost" name="Public Conferencing">
34
	  <ns>jabber:iq:conference</ns>
35
	</item>
36
37
-------------------------------------------------------------------------------
38
Be sure to restart your server after reconfiguring.
(-)ports/net-im/mu-conference/files/README.FreeBSD.jabberd2.in (+11 lines)
Added Link Here
1
# MU-Conference and jabberd2 (net-im/jabberd) on FreeBSD
2
# README by Martin Matuska <mm_at_FreeBSD_dot_org>
3
4
The configuration for jabberd2 is located in:
5
%%TARGETDIR%%/etc/jabberd
6
7
If you are using Jabberd2 then you shouldn't have to do much configuration.
8
Make sure the 'mainServer' setting is the IP or hostname of your Jabber server,
9
and set 'port' to 5347. Double-check that the secret for legacy components 
10
in router.xml (for Jabberd2) is the same as the secret setting in config.py. 
11
That should be all. You don't even need to restart Jabberd2.
(-)ports/net-im/mu-conference/files/mu-conference.in (+44 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
5
# PROVIDE: mu_conference
6
# REQUIRE: %%JABBER_REQUIRE%%
7
# KEYWORD: shutdown
8
9
# Define these mu_conference_* variables in one of these files:
10
#       /etc/rc.conf
11
#       /etc/rc.conf.local
12
#
13
# DO NOT CHANGE THESE DEFAULT VALUES HERE
14
#
15
# mu_conference_config : path
16
#   Path to the configuration file ("%%PREFIX%%/etc/muc.xml", the default).
17
#
18
# mu_conference_enable : bool
19
#   Enable ("YES") or disable ("NO", the default) this startup script.
20
#
21
22
. %%RC_SUBR%%
23
24
name="mu_conference"
25
rcvar=`set_rcvar`
26
27
command="%%PREFIX%%/bin/mu-conference"
28
pidfile=${mu_conference_pidfile:-"%%JABBER_PIDDIR%%/mu-conference.pid"}
29
30
stop_postcmd="mu_conference_stop_post"
31
32
mu_conference_stop_post () {
33
        rm -f ${pidfile}
34
}
35
36
load_rc_config $name
37
38
: ${mu_conference_config="%%PREFIX%%/etc/muc.xml"}
39
: ${mu_conference_enable="NO"}
40
: ${mu_conference_user="%%JABBER_USER%%"}
41
42
command_args="-c ${mu_conference_config} -B >/dev/null 2>&1"
43
44
run_rc_command "$1"
(-)ports/net-im/mu-conference/files/mu-conference.sh.in (-47 lines)
Removed Link Here
1
#!/bin/sh
2
3
# Start or stop jabber's mu-conference
4
# $FreeBSD: ports/net-im/mu-conference/files/mu-conference.sh.in,v 1.2 2006/07/10 18:32:32 dougb Exp $
5
6
# PROVIDE: mu_conference
7
# REQUIRE: DAEMON jabberd
8
# KEYWORD: shutdown
9
#
10
# Define these mu_conference_* variables in one of these files:
11
#       /etc/rc.conf
12
#       /etc/rc.conf.local
13
#       /etc/rc.conf.d/mu_conference
14
#
15
# DO NOT CHANGE THESE DEFAULT VALUES HERE
16
#
17
# mu_conference_config : path
18
#   Path to the configuration file ("%%PREFIX%%/etc/muc.xml", the default).
19
#
20
# mu_conference_enable : bool
21
#   Enable ("YES") or disable ("NO", the default) this startup script.
22
#
23
24
. %%RC_SUBR%%
25
26
name="mu_conference"
27
rcvar=`set_rcvar`
28
29
command="%%PREFIX%%/bin/mu-conference"
30
pidfile="/var/jabberd/pid/mu-conference.pid"
31
32
stop_postcmd="mu_conference_stop_post"
33
34
mu_conference_stop_post () {
35
        rm -f ${pidfile}
36
}
37
38
load_rc_config $name
39
40
: ${mu_conference_config="%%PREFIX%%/etc/muc.xml"}
41
: ${mu_conference_enable="NO"}
42
: ${mu_conference_user="jabber"}
43
44
command_args="-c $mu_conference_config -B"
45
46
run_rc_command "$1"
47
(-)ports/net-im/mu-conference/files/patch-src-jcomp.mk (-11 lines)
Removed Link Here
1
--- src/jcomp.mk.orig	Sun Oct 26 15:35:19 2003
2
+++ src/jcomp.mk	Mon Feb  9 16:03:18 2004
3
@@ -25,7 +25,7 @@
4
 #CFLAGS:=$(CFLAGS) -pipe -Os -I../../jabberd -I../include 
5
 #LIBS:=$(LIBS) /usr/local/lib/ccmalloc-gcc.o -lccmalloc 
6
 #LIBS:=$(LIBS) -lmemusage
7
-LIBS:=$(LIBS) -ljcomp -lm `pkg-config --libs glib-2.0` `pkg-config --libs gthread-2.0`
8
+LIBS:=-ljcomp -lm `pkg-config --libs glib-2.0` `pkg-config --libs gthread-2.0`
9
 LDFLAGS:=-L../../lib 
10
 
11
 conference_OBJECTS=conference.o conference_room.o conference_user.o utils.o xdata.o admin.o roles.o xdb.o hash.o main.o
(-)ports/net-im/mu-conference/files/pkg-message.in (+21 lines)
Added Link Here
1
******************************************************************************
2
Remember to edit %%PREFIX%%/etc/muc.xml to suit your needs.
3
4
If necessary, please create directories owned by user "%%JABBER_USER%%":
5
%%JABBER_SPOOLDIR%%/conference.localhost
6
%%JABBER_SPOOLDIR%%/conference.localhost/logs
7
%%MUC_LOGDIR%%
8
9
Please read instructions for different jabber daemons you desire to use:
10
- jabberd14 (net-im/jabber): 
11
	%%DOCSDIR%%/README.FreeBSD.jabberd14
12
- jabberd2 (net-im/jabberd): 
13
	%%DOCSDIR%%/README.FreeBSD.jabberd2
14
15
If you did not select WITH_JABBER, WITH_JABBERD or WITH_EJABBERD, you may want
16
to use another or an external jabber server. Please read instructions from:
17
%%DOCSDIR%%/README.FreeBSD.external
18
19
If you are using MySQL, sample database script can be found in:
20
%%DOCSDIR%%/mu-conference.sql
21
******************************************************************************

Return to bug 114901