diff options
author | Jason Helfman <jgh@FreeBSD.org> | 2012-04-02 23:51:25 +0000 |
---|---|---|
committer | Jason Helfman <jgh@FreeBSD.org> | 2012-04-02 23:51:25 +0000 |
commit | dce9b3eb9b2fc2b4539945852c7bf15171503f1e (patch) | |
tree | 1e0edbccfac983a372ff46f914164a6874d6eb4a | |
parent | Update to tzdata2012c: (diff) |
- reorg of rc script based on standards and move from .sh => .in
- bump PORTREVISION
PR: ports/166445
Submitted by: jgh (me)
Approved by: maintainer, 5u623l20@gmail.com
Feature safe: yes
Notes
Notes:
svn path=/head/; revision=294137
-rw-r--r-- | www/resin3/Makefile | 3 | ||||
-rw-r--r-- | www/resin3/files/resin3.in (renamed from www/resin3/files/resin3.sh.in) | 20 |
2 files changed, 12 insertions, 11 deletions
diff --git a/www/resin3/Makefile b/www/resin3/Makefile index 14e3bc1fd78f..de26fa86d6d9 100644 --- a/www/resin3/Makefile +++ b/www/resin3/Makefile @@ -7,6 +7,7 @@ PORTNAME= resin PORTVERSION= 3.1.12 +PORTREVISION= 1 CATEGORIES= www java MASTER_SITES= http://www.caucho.com/download/ @@ -44,7 +45,7 @@ LOG_FILE?= ${APP_HOME}/${APP_NAME}.log # Other settings APXS?= ${LOCALBASE}/sbin/apxs SUB_FILES= pkg-message resin3ctl -USE_RC_SUBR= resin3.sh +USE_RC_SUBR= resin3 .include <bsd.port.pre.mk> diff --git a/www/resin3/files/resin3.sh.in b/www/resin3/files/resin3.in index fe04d7d11fa0..bececbd5ff52 100644 --- a/www/resin3/files/resin3.sh.in +++ b/www/resin3/files/resin3.in @@ -1,10 +1,11 @@ #!/bin/sh # -# $FreeBSD: /tmp/pcvs/ports/www/resin3/files/Attic/resin3.sh.in,v 1.1 2012-03-13 16:29:23 jgh Exp $ +# $FreeBSD: /tmp/pcvs/ports/www/resin3/files/resin3.in,v 1.1 2012-04-02 23:51:25 jgh Exp $ # # PROVIDE: %%APP_NAME%% -# REQUIRE: LOGIN +# REQUIRE: LOGIN NETWORKING SERVERS +# BEFORE: DAEMON # KEYWORD: shutdown # @@ -13,23 +14,22 @@ # %%APP_NAME%%_enable="YES" # + +%%APP_NAME%%_enable=${%%APP_NAME%%_enable:-"NO"} +%%APP_NAME%%_user=${%%APP_NAME%%_user:"www"} +%%APP_NAME%%_group=${%%APP_NAME%%_group:"www"} + . /etc/rc.subr name=%%APP_NAME%% rcvar=%%APP_NAME%%_enable +load_rc_config ${name} + command="%%PREFIX%%/sbin/%%APP_NAME%%ctl" command_args="start" pidfile=%%PID_FILE%% -# set defaults - -%%APP_NAME%%_enable=${%%APP_NAME%%_enable:-"NO"} -%%APP_NAME%%_user=${%%APP_NAME%%_user:-"%%USERS%%"} -%%APP_NAME%%_group=${%%APP_NAME%%_group:-"%%GROUPS%%"} - -load_rc_config ${name} - if test -n "${%%APP_NAME%%_java_version}" ; then JAVA_HOME=$(JAVA_VERSION="${%%APP_NAME%%_java_version}" JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVA_HOME | cut -d= -f2) procname=$(JAVA_VERSION="${%%APP_NAME%%_java_version}" JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVAVM_PROG | cut -d= -f2) |