Lines 2-12
Link Here
|
2 |
# Whom: Jean-Baptiste Quenot <jb.quenot@caraldi.com> |
2 |
# Whom: Jean-Baptiste Quenot <jb.quenot@caraldi.com> |
3 |
# Date Created: 2003-09-29 14:17:14 |
3 |
# Date Created: 2003-09-29 14:17:14 |
4 |
# |
4 |
# |
5 |
# $FreeBSD: ports/www/resin3/Makefile,v 1.7 2004/10/14 06:37:41 vanilla Exp $ |
5 |
# $FreeBSD: ports/www/resin3/Makefile,v 1.6 2004/06/24 07:43:26 vs Exp $ |
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= resin |
8 |
PORTNAME= resin |
9 |
PORTVERSION= 3.0.9 |
9 |
PORTVERSION= 3.0.11 |
10 |
CATEGORIES= www java |
10 |
CATEGORIES= www java |
11 |
MASTER_SITES= http://www.caucho.com/download/ |
11 |
MASTER_SITES= http://www.caucho.com/download/ |
12 |
|
12 |
|
Lines 15-22
Link Here
|
15 |
|
15 |
|
16 |
USE_JAVA= 1.2+ |
16 |
USE_JAVA= 1.2+ |
17 |
HAS_CONFIGURE= yes |
17 |
HAS_CONFIGURE= yes |
18 |
USE_GMAKE= yes |
18 |
USE_PYTHON= yes |
19 |
USE_PERL5_RUN= yes |
|
|
20 |
USE_REINPLACE= yes |
19 |
USE_REINPLACE= yes |
21 |
|
20 |
|
22 |
# Customizable settings |
21 |
# Customizable settings |
Lines 33-43
Link Here
|
33 |
APP_HOME?= ${PREFIX}/${APP_NAME} |
32 |
APP_HOME?= ${PREFIX}/${APP_NAME} |
34 |
WITH_APACHE?= NO |
33 |
WITH_APACHE?= NO |
35 |
WITH_APACHE2?= NO |
34 |
WITH_APACHE2?= NO |
36 |
PID_FILE?= /var/run/${APP_NAME}.pid |
35 |
PID_FILE?= ${APP_HOME}/${APP_NAME}.pid |
|
|
36 |
LOG_FILE?= ${APP_HOME}/${APP_NAME}.log |
37 |
|
37 |
|
38 |
# Other settings |
38 |
# Other settings |
39 |
APXS?= ${LOCALBASE}/sbin/apxs |
39 |
APXS?= ${LOCALBASE}/sbin/apxs |
40 |
MOD_DIR?= `${APXS} -q LIBEXECDIR` |
|
|
41 |
PKGINSTALL= ${WRKDIR}/pkg-install |
40 |
PKGINSTALL= ${WRKDIR}/pkg-install |
42 |
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall |
41 |
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall |
43 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
42 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
Lines 51-59
Link Here
|
51 |
${FILESDIR}/install.sh \ |
50 |
${FILESDIR}/install.sh \ |
52 |
${FILESDIR}/pkg-message.in \ |
51 |
${FILESDIR}/pkg-message.in \ |
53 |
${WRKSRC}/conf/resin.conf \ |
52 |
${WRKSRC}/conf/resin.conf \ |
54 |
${WRKSRC}/bin/wrapper.pl.in \ |
53 |
${FILESDIR}/resinctl \ |
55 |
${FILESDIR}/resin.sh.in |
54 |
${FILESDIR}/resin.sh.in |
56 |
COPYDIRS= lib webapps |
55 |
COPYDIRS= lib libexec webapps |
57 |
|
56 |
|
58 |
.include <bsd.port.pre.mk> |
57 |
.include <bsd.port.pre.mk> |
59 |
|
58 |
|
Lines 88-101
Link Here
|
88 |
PLIST_SUB+= APP_NAME=${APP_NAME} |
87 |
PLIST_SUB+= APP_NAME=${APP_NAME} |
89 |
PLIST_SUB+= APXS=${APXS} |
88 |
PLIST_SUB+= APXS=${APXS} |
90 |
|
89 |
|
91 |
.if ((defined(WITH_APACHE) && (${WITH_APACHE} == yes || ${WITH_APACHE} == YES)) \ |
|
|
92 |
|| (defined(WITH_APACHE2) && (${WITH_APACHE2} == yes || ${WITH_APACHE2} == YES))) |
93 |
LIBEXECDIR!= ${APXS} -q LIBEXECDIR |
94 |
SYSCONFDIR!= ${APXS} -q SYSCONFDIR |
95 |
CONFIGURE_ARGS+= --with-apache-libexec=${LIBEXECDIR} |
96 |
CONFIGURE_ARGS+= --with-apache-conf=${SYSCONFDIR} |
97 |
.endif |
98 |
|
99 |
SUBSTITUTIONS= -e "s|%%APP_HOME%%|${APP_HOME}|g" \ |
90 |
SUBSTITUTIONS= -e "s|%%APP_HOME%%|${APP_HOME}|g" \ |
100 |
-e "s|%%APP_NAME%%|${APP_NAME}|g" \ |
91 |
-e "s|%%APP_NAME%%|${APP_NAME}|g" \ |
101 |
-e "s|%%APXS%%|${APXS}|g" \ |
92 |
-e "s|%%APXS%%|${APXS}|g" \ |
Lines 104-110
Link Here
|
104 |
-e "s|%%GROUP%%|${GROUP}|g" \ |
95 |
-e "s|%%GROUP%%|${GROUP}|g" \ |
105 |
-e "s|%%GID%%|${GID}|g" \ |
96 |
-e "s|%%GID%%|${GID}|g" \ |
106 |
-e "s|%%JAVA_HOME%%|${JAVA_HOME}|g" \ |
97 |
-e "s|%%JAVA_HOME%%|${JAVA_HOME}|g" \ |
107 |
-e "s|%%PERL%%|${PERL}|g" \ |
98 |
-e "s|%%JAVA%%|${JAVA}|g" \ |
|
|
99 |
-e "s|%%LOG_FILE%%|${LOG_FILE}|g" \ |
100 |
-e "s|%%PYTHON_CMD%%|${PYTHON_CMD}|g" \ |
108 |
-e "s|%%PID_FILE%%|${PID_FILE}|g" \ |
101 |
-e "s|%%PID_FILE%%|${PID_FILE}|g" \ |
109 |
-e "s|%%PORT%%|${PORT}|g" \ |
102 |
-e "s|%%PORT%%|${PORT}|g" \ |
110 |
-e "s|%%PORTNAME%%|${PORTNAME}|g" \ |
103 |
-e "s|%%PORTNAME%%|${PORTNAME}|g" \ |
Lines 116-154
Link Here
|
116 |
|
109 |
|
117 |
post-patch: |
110 |
post-patch: |
118 |
.for FILE in ${REINPLACE_FILES} |
111 |
.for FILE in ${REINPLACE_FILES} |
119 |
@${REINPLACE_CMD} ${SUBSTITUTIONS} ${FILE} |
112 |
@${REINPLACE_CMD} ${SUBSTITUTIONS} ${FILE} |
120 |
.endfor |
113 |
.endfor |
121 |
.for FILE in ${REPLACE_FILES} |
114 |
.for FILE in ${REPLACE_FILES} |
122 |
@${SED} ${SUBSTITUTIONS} ${FILE} > ${WRKDIR}/`basename ${FILE}` |
115 |
@${SED} ${SUBSTITUTIONS} ${FILE} > ${WRKDIR}/`basename ${FILE}` |
123 |
.endfor |
116 |
.endfor |
124 |
@fmt -w 80 < ${WRKDIR}/pkg-message.in > ${PKGMESSAGE} |
117 |
@fmt -w 80 < ${WRKDIR}/pkg-message.in > ${PKGMESSAGE} |
125 |
.if (defined(WITH_APACHE2) && (${WITH_APACHE2} == yes || ${WITH_APACHE2} == YES) || \ |
118 |
.if (defined(WITH_APACHE2) && (${WITH_APACHE2} == yes || ${WITH_APACHE2} == YES) || \ |
126 |
defined(WITH_APACHE) && (${WITH_APACHE} == yes || ${WITH_APACHE} == YES)) |
119 |
defined(WITH_APACHE) && (${WITH_APACHE} == yes || ${WITH_APACHE} == YES)) |
127 |
@${ECHO_CMD} >> ${PKGMESSAGE} |
120 |
@${ECHO_CMD} >> ${PKGMESSAGE} |
128 |
@${ECHO_CMD} The Resin Apache module mod_caucho has been activated \ |
121 |
@${ECHO_CMD} The Resin Apache module mod_caucho has been activated \ |
129 |
in the Apache configuration file, where you should also \ |
122 |
in the Apache configuration file, where you should also \ |
130 |
add a line to specify the location of the Resin configuration \ |
123 |
add a line to specify the location of the Resin configuration \ |
131 |
server, for example: | fmt -w 80 >> ${PKGMESSAGE} |
124 |
server, for example: | fmt -w 80 >> ${PKGMESSAGE} |
132 |
@${ECHO_CMD} >> ${PKGMESSAGE} |
125 |
@${ECHO_CMD} >> ${PKGMESSAGE} |
133 |
@${ECHO_CMD} "<IfModule mod_caucho.c>" >> ${PKGMESSAGE} |
126 |
@${ECHO_CMD} "<IfModule mod_caucho.c>" >> ${PKGMESSAGE} |
134 |
.if (defined(WITH_APACHE2) && (${WITH_APACHE2} == yes || ${WITH_APACHE2} == YES)) |
127 |
.if (defined(WITH_APACHE2) && (${WITH_APACHE2} == yes || ${WITH_APACHE2} == YES)) |
135 |
@${ECHO_CMD} " ResinConfigServer localhost 6802" >> ${PKGMESSAGE} |
128 |
@${ECHO_CMD} " ResinConfigServer localhost 6802" >> ${PKGMESSAGE} |
136 |
.endif |
129 |
.endif |
137 |
.if (defined(WITH_APACHE) && (${WITH_APACHE} == yes || ${WITH_APACHE} == YES)) |
130 |
.if (defined(WITH_APACHE) && (${WITH_APACHE} == yes || ${WITH_APACHE} == YES)) |
138 |
@${ECHO_CMD} " CauchoConfigFile ${PREFIX}/etc/${APP_NAME}/resin.xml" >> ${PKGMESSAGE} |
131 |
@${ECHO_CMD} " CauchoConfigFile ${PREFIX}/etc/${APP_NAME}/resin.xml" >> ${PKGMESSAGE} |
139 |
.endif |
132 |
.endif |
140 |
@${ECHO_CMD} "</IfModule>" >> ${PKGMESSAGE} |
133 |
@${ECHO_CMD} "</IfModule>" >> ${PKGMESSAGE} |
141 |
.endif |
134 |
.endif |
142 |
@${MV} ${WRKDIR}/wrapper.pl.in ${WRKSRC}/bin/wrapper.pl.in |
|
|
143 |
|
135 |
|
144 |
# Resin does not handle installation, so proceed now |
136 |
# Resin does not handle installation, so proceed now |
145 |
post-install: |
137 |
post-install: |
146 |
@${SH} ${WRKDIR}/install.sh |
138 |
@${SETENV} RUNASUSER=${RUNASUSER} GROUP=${GROUP} ${SH} ${WRKDIR}/install.sh |
147 |
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
139 |
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
148 |
@${ECHO_CMD} |
140 |
@${ECHO_CMD} |
149 |
@${ECHO_CMD} "********************************************************************************" |
141 |
@${ECHO_CMD} "********************************************************************************" |
150 |
@${CAT} ${PKGMESSAGE} |
142 |
@${CAT} ${PKGMESSAGE} |
151 |
@${ECHO_CMD} "********************************************************************************" |
143 |
@${ECHO_CMD} "********************************************************************************" |
152 |
@${ECHO_CMD} |
144 |
@${ECHO_CMD} |
153 |
|
145 |
|
154 |
.include <bsd.port.post.mk> |
146 |
.include <bsd.port.post.mk> |