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

(-)Makefile (-1 / +2 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=		resin
8
PORTNAME=		resin
9
PORTVERSION=		3.1.12
9
PORTVERSION=		3.1.12
10
PORTREVISION=	1
10
CATEGORIES=		www java
11
CATEGORIES=		www java
11
MASTER_SITES=		http://www.caucho.com/download/
12
MASTER_SITES=		http://www.caucho.com/download/
12
13
Lines 44-50 Link Here
44
# Other settings
45
# Other settings
45
APXS?=			${LOCALBASE}/sbin/apxs
46
APXS?=			${LOCALBASE}/sbin/apxs
46
SUB_FILES=		pkg-message resin3ctl
47
SUB_FILES=		pkg-message resin3ctl
47
USE_RC_SUBR=	resin3.sh
48
USE_RC_SUBR=	resin3
48
49
49
.include <bsd.port.pre.mk>
50
.include <bsd.port.pre.mk>
50
51
(-)files/resin3.in (+43 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/www/resin3/files/resin3.sh.in,v 1.1 2012/03/13 16:29:23 jgh Exp $
4
#
5
6
# PROVIDE: %%APP_NAME%%
7
# REQUIRE: LOGIN NETWORKING SERVERS
8
# BEFORE: DAEMON
9
# KEYWORD: shutdown
10
11
#
12
# Add the following line to /etc/rc.conf to enable %%APP_NAME%%:
13
#
14
# %%APP_NAME%%_enable="YES"
15
#
16
17
18
%%APP_NAME%%_enable=${%%APP_NAME%%_enable:-"NO"}
19
%%APP_NAME%%_user=${%%APP_NAME%%_user:-"%%USERS%%"}
20
%%APP_NAME%%_group=${%%APP_NAME%%_group:-"%%GROUPS%%"}
21
22
. /etc/rc.subr
23
24
name=%%APP_NAME%%
25
rcvar=%%APP_NAME%%_enable
26
27
load_rc_config ${name}
28
29
command="%%PREFIX%%/sbin/%%APP_NAME%%ctl"
30
command_args="start"
31
pidfile=%%PID_FILE%%
32
33
if test -n "${%%APP_NAME%%_java_version}" ; then
34
    JAVA_HOME=$(JAVA_VERSION="${%%APP_NAME%%_java_version}" JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVA_HOME | cut -d= -f2)
35
    procname=$(JAVA_VERSION="${%%APP_NAME%%_java_version}" JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVAVM_PROG | cut -d= -f2)
36
else
37
    JAVA_HOME=$(JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVA_HOME | cut -d= -f2)
38
    procname=$(JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVAVM_PROG | cut -d= -f2)
39
fi
40
41
export JAVA_HOME
42
43
run_rc_command "$1"
(-)files/resin3.sh.in (-43 lines)
Removed Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/www/resin3/files/resin3.sh.in,v 1.1 2012/03/13 16:29:23 jgh Exp $
4
#
5
6
# PROVIDE: %%APP_NAME%%
7
# REQUIRE: LOGIN
8
# KEYWORD: shutdown
9
10
#
11
# Add the following line to /etc/rc.conf to enable %%APP_NAME%%:
12
#
13
# %%APP_NAME%%_enable="YES"
14
#
15
16
. /etc/rc.subr
17
18
name=%%APP_NAME%%
19
rcvar=%%APP_NAME%%_enable
20
21
command="%%PREFIX%%/sbin/%%APP_NAME%%ctl"
22
command_args="start"
23
pidfile=%%PID_FILE%%
24
25
# set defaults
26
27
%%APP_NAME%%_enable=${%%APP_NAME%%_enable:-"NO"}
28
%%APP_NAME%%_user=${%%APP_NAME%%_user:-"%%USERS%%"}
29
%%APP_NAME%%_group=${%%APP_NAME%%_group:-"%%GROUPS%%"}
30
31
load_rc_config ${name}
32
33
if test -n "${%%APP_NAME%%_java_version}" ; then
34
    JAVA_HOME=$(JAVA_VERSION="${%%APP_NAME%%_java_version}" JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVA_HOME | cut -d= -f2)
35
    procname=$(JAVA_VERSION="${%%APP_NAME%%_java_version}" JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVAVM_PROG | cut -d= -f2)
36
else
37
    JAVA_HOME=$(JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVA_HOME | cut -d= -f2)
38
    procname=$(JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVAVM_PROG | cut -d= -f2)
39
fi
40
41
export JAVA_HOME
42
43
run_rc_command "$1"

Return to bug 166445