blob: e2aa7bff8778a3db129d43b7001b7079d3456805 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# New ports collection makefile for: devel/red5
# Date created: 14 March 2008
# Whom: wenheping@gmail.com
#
# $FreeBSD$
#
PORTNAME= red5
PORTVERSION= 0.7.0
CATEGORIES= www java
MASTER_SITES= http://www.nielsenaa.com/red5-installers/ \
http://www.red5.fr/release/0.7.0/war/
DISTNAME= Red5War_${PORTVERSION}-java5
MAINTAINER= wenheping@gmail.com
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
WRKSRC= ${WRKDIR}
USE_ZIP= yes
USE_JAVA= yes
JAVA_VERSION= 1.5
NO_BUILD= yes
.include <bsd.port.pre.mk>
.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
.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-tomcat6.0:${PORTSDIR}/www/tomcat6
WEBAPPDIR= ${PREFIX}/apache-tomcat6.0/webapps
.else
IGNORE= please select one version of Tomcat
.endif
PLIST_FILES= ${WEBAPPDIR:S|^${PREFIX}/||}/red5.war
do-install:
@${MKDIR} ${WEBAPPDIR}
@${INSTALL_DATA} ${WRKSRC}/ROOT.war ${WEBAPPDIR}/red5.war
@${CHOWN} ${WWWOWN}:${WWWGRP} ${WEBAPPDIR}/red5.war
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|