head	1.9;
access;
symbols
	RELEASE_8_3_0:1.8
	RELEASE_9_0_0:1.8
	RELEASE_7_4_0:1.6
	RELEASE_8_2_0:1.6
	RELEASE_6_EOL:1.5
	RELEASE_8_1_0:1.4
	RELEASE_7_3_0:1.4
	RELEASE_8_0_0:1.3
	RELEASE_7_2_0:1.2
	RELEASE_7_1_0:1.2
	RELEASE_6_4_0:1.2
	RELEASE_5_EOL:1.1;
locks; strict;
comment	@# @;


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

1.8
date	2011.08.15.06.53.03;	author crees;	state Exp;
branches;
next	1.7;

1.7
date	2011.06.06.07.10.12;	author culot;	state Exp;
branches;
next	1.6;

1.6
date	2011.01.09.22.09.11;	author jpaetzel;	state Exp;
branches;
next	1.5;

1.5
date	2010.11.18.13.50.50;	author pav;	state Exp;
branches;
next	1.4;

1.4
date	2010.02.01.12.52.52;	author wen;	state Exp;
branches;
next	1.3;

1.3
date	2009.08.02.20.15.46;	author pav;	state Exp;
branches;
next	1.2;

1.2
date	2008.06.06.14.07.10;	author edwin;	state Exp;
branches;
next	1.1;

1.1
date	2008.03.20.10.00.37;	author gahr;	state Exp;
branches;
next	;


desc
@@


1.9
log
@Switch exporter over
@
text
@# New ports collection makefile for:    devel/red5
# Date created:         14 March 2008
# Whom:                 wenheping@@gmail.com
#
# $FreeBSD: head/www/red5/Makefile 300897 2012-07-14 14:29:18Z beat $
#

PORTNAME=	red5
PORTVERSION=	0.9.1
PORTREVISION=	1
CATEGORIES=	www java
MASTER_SITES=	http://trac.red5.org/downloads/0_9/ \
		http://red5.rmdir.fr/

MAINTAINER=	joris.dedieu@@gmail.com
COMMENT=	Red5 is an Open Source Flash Server

USE_JAVA=	yes
NO_BUILD=	yes
USE_RC_SUBR=	red5

RED5_USER?=	${WWWOWN}
RED5_GRP?=	${WWWGRP}
RED5_HOME?=	${PREFIX}/${PORTNAME}

SUB_LIST+=	RED5_USER=${RED5_USER} RED5_HOME=${RED5_HOME}

post-patch:
	@@${REINPLACE_CMD} -e 's/0.0.0.0/127.0.0.1/' ${WRKSRC}/conf/red5.properties
	(cd ${WRKSRC}/conf \
		&& for file in `find . -type f` ; \
		   do	${MV} $$file $$file.sample ; \
		done)
.for webappssubdir in installer root
	(cd ${WRKSRC}/webapps/${webappssubdir}/WEB-INF \
		&& for file in * ; \
		   do	${MV} $$file $$file.sample ; \
		done)
.endfor

do-install:
	${MKDIR} ${RED5_HOME}/conf ${RED5_HOME}/lib ${RED5_HOME}/webapps ${RED5_HOME}/log
	${INSTALL} ${WRKSRC}/boot.jar ${RED5_HOME}
	${INSTALL} ${WRKSRC}/red5.jar ${RED5_HOME}
	(cd ${WRKSRC}/conf && ${COPYTREE_SHARE} \* ${RED5_HOME}/conf)
	(cd ${WRKSRC}/lib && ${COPYTREE_SHARE} \* ${RED5_HOME}/lib)
	(cd ${WRKSRC}/webapps && ${COPYTREE_SHARE} \* ${RED5_HOME}/webapps)
	${CHOWN} -R  ${RED5_USER}:${RED5_GRP} ${RED5_HOME}

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${DOCSDIR})
.endif
	@@${ECHO_CMD} '@@exec ${CHOWN} -R ${RED5_USER}:${RED5_GRP} ${RED5_HOME}' \
		>> ${TMPPLIST}
	for file in `find ${RED5_HOME}/conf -type f -regex '.*\.sample$$'` ; \
	  do	[ -f $${file%.sample} ] || ${CP} -p $$file $${file%.sample} ; \
	  done
	for file in ${RED5_HOME}/webapps/root/WEB-INF/*.sample ${RED5_HOME}/webapps/installer/WEB-INF/*.sample ; \
	  do	[ -f $${file%.sample} ] || ${CP} -p $$file $${file%.sample} ; \
	  done

.include <bsd.port.mk>
@


1.8
log
@- Stop clobbering config files on deinstall.
- Use post-patch for sed rather than pre-install.

PR:		ports/157628
Submitted by:	Joris Dedieu <joris.dedieu@@gmail.com> (maintainer)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.7
log
@- Update MASTER_SITES

PR:		ports/157627
Submitted by:	Joris Dedieu <joris.dedieu@@gmail.com> (maintainer)
@
text
@d28 1
a28 1
pre-install:
d30 10
d57 6
@


1.6
log
@Add missing line to post-install target so port and package both perform
the same chown -R
@
text
@d12 1
a12 1
MASTER_SITES=	http://www.red5.org/downloads/0_9/ \
@


1.5
log
@- Update to 0.9.1
- Switch to standalone install
- Grant maintainership to submitter

PR:		ports/151578
Submitted by:	Joris Dedieu <joris@@rmdir.fr>
@
text
@d10 1
d45 2
@


1.4
log
@- Reset maintainer
@
text
@d9 1
a9 2
PORTVERSION=	0.7.0
PORTREVISION=	2
d11 5
a15 10
MASTER_SITES=	http://www.nielsenaa.com/red5-installers/   \
		http://www.red5.fr/release/0.7.0/war/
DISTNAME=	Red5War_${PORTVERSION}-java5

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	Red5 is an Open Source flash server

OPTIONS=	TOMCAT4	"Use Tomcat 4.1" OFF \
		TOMCAT5 "Use Tomcat 5.5" OFF \
		TOMCAT6 "Use Tomcat 6.0" ON
a16 2
WRKSRC=		${WRKDIR}
USE_ZIP=	yes
a17 1
JAVA_VERSION=	1.5
d19 1
d21 3
a23 1
.include <bsd.port.pre.mk>
d25 1
a25 5
.if	(defined(WITH_TOMCAT4) && defined(WITH_TOMCAT5)) || \
	(defined(WITH_TOMCAT4) && defined(WITH_TOMCAT6)) || \
	(defined(WITH_TOMCAT5) && defined(WITH_TOMCAT6))
IGNORE=	please select only one version of Tomcat
.endif
d27 2
a28 14
.if defined(WITH_TOMCAT4)
RUN_DEPENDS+=	${LOCALBASE}/apache-tomcat4.1:${PORTSDIR}/www/tomcat41
WEBAPPDIR=	${PREFIX}/apache-tomcat4.1/webapps
.elif defined(WITH_TOMCAT5)
RUN_DEPENDS+=	${LOCALBASE}/tomcat5.5:${PORTSDIR}/www/tomcat55
WEBAPPDIR=	${PREFIX}/tomcat5.5/webapps
.elif defined(WITH_TOMCAT6)
RUN_DEPENDS+=	${LOCALBASE}/apache-tomcat-6.0:${PORTSDIR}/www/tomcat6
WEBAPPDIR=	${PREFIX}/apache-tomcat-6.0/webapps
.else
IGNORE=	please select one version of Tomcat
.endif

PLIST_FILES=	${WEBAPPDIR:S|^${PREFIX}/||}/red5.war
d31 7
a37 3
	@@${MKDIR} ${WEBAPPDIR}
	@@${INSTALL_DATA} ${WRKSRC}/ROOT.war ${WEBAPPDIR}/red5.war
	@@${CHOWN} ${WWWOWN}:${WWWGRP} ${WEBAPPDIR}/red5.war
d40 4
a43 1
	@@${CAT} ${PKGMESSAGE}
d45 1
a45 1
.include <bsd.port.post.mk>
@


1.3
log
@- Chase tomcat6's change of installation prefix, bump portrevisions just in
  case (untested)

Reported by:	pointyhat
@
text
@d16 1
a16 1
MAINTAINER=	wenheping@@gmail.com
@


1.2
log
@Bump portrevision due to upgrade of devel/gettext.

The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@@
Approved by:    portmgr (pav)
@
text
@d10 1
a10 1
PORTREVISION=	1
d44 2
a45 2
RUN_DEPENDS+=	${LOCALBASE}/apache-tomcat6.0:${PORTSDIR}/www/tomcat6
WEBAPPDIR=	${PREFIX}/apache-tomcat6.0/webapps
@


1.1
log
@Red5 is an Open Source Flash Server written
in Java that supports streaming Audio/Video
(FLV and MP3),Recording Client Streams,
Live Stream Publishing, etc.

WWW: http://www.red5.fr/

PR:		121696
Submitted by:	Wen heping <wenheping@@gmail.com>
Approved by:	miwi (mentor)
@
text
@d10 1
@

