head	1.9;
access;
symbols
	RELEASE_8_3_0:1.5
	RELEASE_9_0_0:1.4
	RELEASE_7_4_0:1.2
	RELEASE_8_2_0:1.2;
locks; strict;
comment	@# @;


1.9
date	2013.03.22.15.52.26;	author svnexp;	state Exp;
branches;
next	1.8;

1.8
date	2012.11.17.06.02.28;	author svnexp;	state Exp;
branches;
next	1.7;

1.7
date	2012.08.21.23.29.37;	author flo;	state Exp;
branches;
next	1.6;

1.6
date	2012.06.01.05.24.48;	author dinoex;	state Exp;
branches;
next	1.5;

1.5
date	2012.01.21.17.37.04;	author eadler;	state Exp;
branches;
next	1.4;

1.4
date	2011.05.01.22.33.37;	author pav;	state Exp;
branches;
next	1.3;

1.3
date	2011.02.25.01.32.09;	author delphij;	state Exp;
branches;
next	1.2;

1.2
date	2011.01.15.12.10.57;	author wen;	state Exp;
branches;
next	1.1;

1.1
date	2011.01.09.22.10.39;	author jpaetzel;	state Exp;
branches;
next	;


desc
@@


1.9
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314915
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: alex.deiter@@gmail.com
# $FreeBSD: head/www/bigbluebutton/Makefile 314915 2013-03-22 11:53:34Z bapt $

PORTNAME=	bigbluebutton
PORTVERSION=	0.71
PORTREVISION=	4
CATEGORIES=	www java
MASTER_SITES=	http://bigbluebutton.org/downloads/${PORTVERSION}/ \
		http://bigbluebutton.org/downloads/0.70/:2 \
		http://bigbluebutton.org/downloads/0.64/blank/:3
DISTFILES=	bigbluebutton.tar.gz freeswitch-config.tar.gz \
		nginx-bigbluebutton.conf bbb_extensions.conf:2 \
		bbb_sip.conf:2 red5-0.9.1.tar.gz:2 \
		blank-slide.swf:3 blank-thumb.png:3
EXTRACT_ONLY=	bigbluebutton.tar.gz red5-0.9.1.tar.gz freeswitch-config.tar.gz

MAINTAINER=	alex.deiter@@gmail.com
COMMENT=	Web conferencing system for distance education

BUILD_DEPENDS=	${LOCALBASE}/bin/pdf2swf:${PORTSDIR}/graphics/swftools \
		${LOCALBASE}/bin/convert:${PORTSDIR}/graphics/ImageMagick \
		${LOCALBASE}/etc/rc.d/activemq:${PORTSDIR}/net/activemq \
		${LOCALBASE}/sbin/nginx:${PORTSDIR}/www/nginx \
		${LOCALBASE}/etc/rc.d/tomcat6:${PORTSDIR}/www/tomcat6 \
		${LOCALBASE}/etc/rc.d/red5:${PORTSDIR}/www/red5
RUN_DEPENDS:=	${BUILD_DEPENDS}

MANUAL_PACKAGE_BUILD=	requires non-default configuration of dependency

USE_DOS2UNIX=	yes
DOS2UNIX_REGEX=	.+\.(conf|jsp|properties|xml)$

USE_JAVA=	yes
JAVA_EXTRACT=	yes
NO_BUILD=	yes
NO_WRKSUBDIR=	yes
DIST_SUBDIR=	${PORTNAME}
USE_RC_SUBR=   	openoffice
SOFFICEBIN?=	${PREFIX}/openoffice.org-3.2.1/openoffice.org3/program/soffice.bin
RED5_HOME?=	${PREFIX}/red5
RED5_LOGS?=	${RED5_HOME}/log
RED5_USER?=	www
RED5_GROUP?=	${RED5_USER}
TOMCAT_HOME?=	${PREFIX}/apache-tomcat-6.0
TOMCAT_LOGS?=	${TOMCAT_HOME}/logs
TOMCAT_USER?=	www
TOMCAT_GROUP?=	${TOMCAT_USER}
FS_USER?=	freeswitch
FS_GROUP?=	${FS_USER}
WWWROOT?=	${WWWDIR:S|/${PORTNAME}$||}

OPTIONS_DEFINE=	MEETME KONFERENCE FREESWITCH OPENOFFICE
OPTIONS_DEFAULT=	KONFERENCE
MEETME_DESC=	meetme Asterisk module
KONFERENCE_DESC=	konference Asterisk module
FREESWITCH_DESC=	mod_conference FreeSWITCH module
OPENOFFICE_DESC=	Include OpenOffice support

PLIST_SUB+=	RED5_HOME=${RED5_HOME:S,^${PREFIX}/,,} \
		TOMCAT_HOME=${TOMCAT_HOME:S,^${PREFIX}/,,} \
		WWWROOT=${WWWROOT:S,^${PREFIX}/,,}

SUB_LIST+=	PORTNAME=${PORTNAME} \
		SOFFICEBIN=${SOFFICEBIN} \
		RED5_HOME=${RED5_HOME} \
		RED5_LOGS=${RED5_LOGS} \
		RED5_USER=${RED5_USER} \
		RED5_GROUP=${RED5_GROUP} \
		TOMCAT_HOME=${TOMCAT_HOME} \
		TOMCAT_LOGS=${TOMCAT_LOGS} \
		TOMCAT_USER=${TOMCAT_USER} \
		TOMCAT_GROUP=${TOMCAT_GROUP} \
		FREESWITCH_USER=${FS_USER} \
		FREESWITCH_GROUP=${FS_GROUP} \
		WWWROOT=${WWWROOT} \
		WWWDIR=${WWWDIR}

SUB_FILES=	pkg-message openoffice nginx.conf-dist bbb-conf

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMEETME} || ${PORT_OPTIONS:MKONFERENCE}
BUILD_DEPENDS+=${LOCALBASE}/sbin/asterisk:${PORTSDIR}/net/asterisk
.if  ${PORT_OPTIONS:MMEETME}
.if !exists(${LOCALBASE}/lib/asterisk/modules/app_meetme.so)
IGNORE=Option meetme requires app_meetme.so from asterisk port. Rebuild net/asterisk with WITH_DAHDI=yes
.endif
.endif
.if  ${PORT_OPTIONS:MKONFERENCE}
BUILD_DEPENDS+=${LOCALBASE}/lib/asterisk/modules/app_konference.so:${PORTSDIR}/net/appkonference
.endif
.endif

.if ${PORT_OPTIONS:MFREESWITCH}
BROKEN=freeswitch 1.0.6 does not work with BigBlueButton
BUILD_DEPENDS+=${LOCALBASE}/bin/freeswitch:${PORTSDIR}/net/freeswitch
.endif

.if ${PORT_OPTIONS:MOPENOFFICE}
BUILD_DEPENDS+=	${LOCALBASE}/bin/openoffice.org-3.2.1:${PORTSDIR}/editors/openoffice.org-3
.endif

post-extract:
.for f in bbb_extensions.conf bbb_sip.conf nginx-bigbluebutton.conf
	@@${INSTALL_DATA} ${_DISTDIR}/${f} ${WRKDIR}
.endfor
.for f in bbb-default bigbluebutton-webapps client deskshare sip video
	@@cd ${WRKDIR} && ${TAR} xf ${f}${EXTRACT_SUFX}
.endfor
	@@cd ${WRKDIR}/client && ${MV} client/* . && ${RMDIR} client
	@@${MKDIR} ${WRKDIR}/bigbluebutton-tomcat
	@@cd ${WRKDIR}/bigbluebutton-tomcat && ${JAR} xf \
		${WRKDIR}/bigbluebutton.war
	@@cd ${WRKDIR} && ${FIND} . -name .gitignore -delete

post-patch:
	@@${RM} ${WRKDIR}/deskshare/WEB-INF/deskshare.conf.orig
	@@${FIND} ${WRKDIR} -type f -name '*.orig' -execdir ${SH} -c \
		'f={} && ${MV} $${f%.orig} $${f%.orig}-dist && ${RM} $$f' ';'

pre-install:
.for d in RED5_HOME TOMCAT_HOME
	@@if [ ! -d "${${d}}/webapps" ]; then \
		${ECHO_MSG} ""; \
		${ECHO_MSG} "Path ${${d}}/webapps not found"; \
		${ECHO_MSG} "Please check and set correct ${d} variable in make env"; \
		${ECHO_MSG} ""; \
		${FALSE}; \
	fi
.endfor
	@@if ! ${GREP} -q 'Connector\ port=\"8080\"\ protocol=\"HTTP\/1\.1\"\ *$$' \
		${TOMCAT_HOME}/conf/server.xml; then \
		${ECHO_MSG} ""; \
		${ECHO_MSG} "Please reinstall www/tomcat6 port with HTTP_PORT=8080"; \
		${ECHO_MSG} ""; \
		${FALSE}; \
	fi

do-install:
	@@${MKDIR} ${DATADIR} ${WWWDIR}
	@@${INSTALL_SCRIPT} ${WRKDIR}/bbb-conf ${PREFIX}/bin
.for d in asterisk blank freeswitch nginx
	@@${MKDIR} ${DATADIR}/${d}
.endfor
	@@${INSTALL_DATA} ${FILESDIR}/nopdfmark.ps ${DATADIR}/blank
.for f in blank-slide.swf blank-thumb.png
	@@${INSTALL_DATA} ${_DISTDIR}/${f} ${DATADIR}/blank
.endfor
.for f in bbb_extensions.conf bbb_sip.conf
	@@${INSTALL_DATA} ${WRKDIR}/${f}-dist ${DATADIR}/asterisk
.endfor
.for f in nginx.conf nginx-bigbluebutton.conf
	@@${INSTALL_DATA} ${WRKDIR}/${f}-dist ${DATADIR}/nginx
.endfor
	@@cd ${WRKDIR} && ${COPYTREE_SHARE} conf ${DATADIR}/freeswitch
	@@${MKDIR} ${TOMCAT_HOME}/webapps/bigbluebutton
	@@cd ${WRKDIR}/bigbluebutton-tomcat && \
		${COPYTREE_SHARE} . ${TOMCAT_HOME}/webapps/bigbluebutton
	@@${CHOWN} ${TOMCAT_USER}:${TOMCAT_GROUP} \
		${TOMCAT_HOME}/webapps/bigbluebutton
	@@cd ${WRKDIR} && ${COPYTREE_SHARE} bigbluebutton-default ${WWWROOT}
	@@cd ${WRKDIR} && ${COPYTREE_SHARE} client ${WWWDIR}
	@@cd ${WRKDIR} && ${COPYTREE_SHARE} 'bigbluebutton deskshare sip video' \
		${RED5_HOME}/webapps
	@@cd ${RED5_HOME} && ${CHOWN} -R ${RED5_USER}:${RED5_GROUP} \
		webapps
.for f in aopalliance-1.0.jar spring-aop-3.0.0.jar
	@@${INSTALL_DATA} ${WRKDIR}/red5-0.9.1/lib/${f} ${RED5_HOME}/lib
.endfor

post-install:
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
@


1.8
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	www/bigbluebutton
# Date created:				23 October 2010
# Whom:					alex.deiter@@gmail.com
#
# $FreeBSD: head/www/bigbluebutton/Makefile 302910 2012-08-21 23:29:37Z flo $
#
d52 6
a57 4
OPTIONS=	MEETME "meetme Asterisk module" off \
		KONFERENCE "konference Asterisk module" on \
		FREESWITCH "mod_conference FreeSWITCH module" off \
		OPENOFFICE "Include OpenOffice support" off
d80 1
a80 1
.include <bsd.port.pre.mk>
d82 1
a82 1
.if defined(WITH_MEETME) || defined(WITH_KONFERENCE)
d84 1
a84 1
.if  defined(WITH_MEETME)
d89 1
a89 1
.if  defined(WITH_KONFERENCE)
d94 1
a94 1
.if defined(WITH_FREESWITCH)
d99 1
a99 1
.if defined(WITH_OPENOFFICE)
d174 1
a174 1
.include <bsd.port.post.mk>
@


1.7
log
@SVN rev 302910 on 2012-08-21 23:29:37Z by flo

- Remove net/asterisk16, net/asterisk16-addons, japanese/asterisk16-sounds
- Update net/appkonference to 2.1 to make it work with net/asterisk [1]
- Switch www/bigbluebutton to net/asterisk
- While here fix typo in www/xxxterm's MOVED entry

PR:		ports/169038 [1]
Approved by:	maintainer [1]
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.6
log
@- update png to 1.5.10
@
text
@d10 1
a10 1
PORTREVISION=	3
d85 1
a85 1
BUILD_DEPENDS+=${LOCALBASE}/sbin/asterisk:${PORTSDIR}/net/asterisk16
d88 1
a88 1
IGNORE=Option meetme requires app_meetme.so from asterisk port. Rebuild net/asterisk16 with WITH_ZAPTEL=yes
@


1.5
log
@At the moment 1385 ports use BUILD_DEPENDS= ${RUN_DEPENDS} and 450
ports use BUILD_DEPENDS:= ${RUN_DEPENDS}. This patch fixes ports that are
currently broken. This is a temporary measure until we organically stop using
:= or someone(s) spend a lot of time changing all the ports over.

Explicit duplication > := > = and this just moves ports one step to the left

Approved by:	portmgr
@
text
@d10 1
a10 1
PORTREVISION=	2
@


1.4
log
@- Disallow from pointyhat for

  Please reinstall www/tomcat6 port with HTTP_PORT=8080
  *** Error code 1

Reported by:	pointyhat
@
text
@d30 1
a30 1
RUN_DEPENDS=	${BUILD_DEPENDS}
@


1.3
log
@Chase after net/openldap24-server update.

Reminded by:	miwi
@
text
@d32 2
@


1.2
log
@1. Update Makefile:
- clean tabs
- use different master sites URL for different files
- remove unused options
- add freeswitch user option
- bump portrevision

2. Update bbb-conf script:
- add freeswitch user
- check installed packages
- add start / stop options
- verify host names with getent

3. Update rc script for openoffice:
- set and use HOME env

4. Update pkg-message:
- add note about hostname resolution
- add start note

5. Clean pkg-plist

PR:		ports/153923
Submitted by:	Alex Deiter <alex.deiter@@gmail.com> (maintainer)
Feature safe:	yes
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.1
log
@BigBlueButton enables universities and colleges to deliver
a high-quality learning experience to remote students.

WWW: http://www.bigbluebutton.org/
@
text
@d8 69
a76 70
PORTNAME=		bigbluebutton
PORTVERSION=		0.71
CATEGORIES=		www java
MASTER_SITES=		http://bigbluebutton.org/downloads/%SUBDIR%/
MASTER_SITE_SUBDIR=	${PORTVERSION} ${PORTVERSION}/packages 0.70 0.64/blank
DISTFILES=		bbb_extensions.conf bbb_sip.conf blank-slide.swf \
			blank-thumb.png nginx-bigbluebutton.conf \
			${EXTRACT_FILES}
EXTRACT_ONLY=		${EXTRACT_FILES}

MAINTAINER=		alex.deiter@@gmail.com
COMMENT=		Web conferencing system for distance education

BUILD_DEPENDS=		${LOCALBASE}/bin/pdf2swf:${PORTSDIR}/graphics/swftools \
			${LOCALBASE}/bin/convert:${PORTSDIR}/graphics/ImageMagick \
			${LOCALBASE}/etc/rc.d/activemq:${PORTSDIR}/net/activemq \
			${LOCALBASE}/sbin/nginx:${PORTSDIR}/www/nginx \
			${LOCALBASE}/etc/rc.d/tomcat6:${PORTSDIR}/www/tomcat6 \
			${LOCALBASE}/etc/rc.d/red5:${PORTSDIR}/www/red5
RUN_DEPENDS=		${BUILD_DEPENDS}

EXTRACT_FILES=		bigbluebutton.tar.gz freeswitch-config.tar.gz \
			red5-0.9.1.tar.gz

USE_DOS2UNIX=		yes
DOS2UNIX_REGEX=		.+\.(conf|jsp|properties|xml)$

USE_JAVA=		yes
JAVA_VERSION=		1.5+
JAVA_EXTRACT=		yes
USE_MYSQL=		yes
NO_BUILD=		yes
NO_WRKSUBDIR=		yes
DIST_SUBDIR=		${PORTNAME}
USE_RC_SUBR=    	openoffice
SOFFICEBIN?=		${PREFIX}/openoffice.org-3.2.1/openoffice.org3/program/soffice.bin
RED5_HOME?=		${PREFIX}/red5
RED5_HOME_REL=		${RED5_HOME:S,^${PREFIX}/,,}
RED5_LOGS?=		${RED5_HOME}/log
RED5_USER?=		www
RED5_GROUP?=		${RED5_USER}
TOMCAT_HOME?=		${PREFIX}/apache-tomcat-6.0
TOMCAT_HOME_REL=	${TOMCAT_HOME:S,^${PREFIX}/,,}
TOMCAT_LOGS?=		${TOMCAT_HOME}/logs
TOMCAT_USER?=		www
TOMCAT_GROUP?=		${TOMCAT_USER}
WWWROOT?=		${WWWDIR:S|/${PORTNAME}$||}
WWWROOT_REL=		${WWWROOT:S,^${PREFIX}/,,}

OPTIONS=		MEETME "meetme Asterisk module" off \
			KONFERENCE "konference Asterisk module" on \
			FREESWITCH "mod_conference FreeSWITCH module" off \
			OPENOFFICE "Include OpenOffice support" off

PLIST_SUB+=		RED5_HOME=${RED5_HOME_REL} \
			TOMCAT_HOME=${TOMCAT_HOME_REL} \
			WWWROOT=${WWWROOT_REL}

SUB_LIST+=		PORTNAME=${PORTNAME} \
			SOFFICEBIN=${SOFFICEBIN} \
			RED5_HOME=${RED5_HOME} \
			RED5_LOGS=${RED5_LOGS} \
			RED5_USER=${RED5_USER} \
			RED5_GROUP=${RED5_GROUP} \
			TOMCAT_HOME=${TOMCAT_HOME} \
			TOMCAT_LOGS=${TOMCAT_LOGS} \
			TOMCAT_USER=${TOMCAT_USER} \
			TOMCAT_GROUP=${TOMCAT_GROUP} \
			WWWROOT=${WWWROOT} \
			WWWDIR=${WWWDIR}
d78 1
a78 1
SUB_FILES=		pkg-message openoffice nginx.conf-dist bbb-conf
@

