aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorjgh <jgh@FreeBSD.org>2012-04-03 07:51:25 +0800
committerjgh <jgh@FreeBSD.org>2012-04-03 07:51:25 +0800
commitb2e5047617db7741f8c3a5dacbadd39fa4b6fbc7 (patch)
tree121f5314a7089acc7c4bc8e184ae520d8863c037 /www
parentb440e323917b90ecd85a17d5228bb1278490898f (diff)
downloadfreebsd-ports-gnome-b2e5047617db7741f8c3a5dacbadd39fa4b6fbc7.tar.gz
freebsd-ports-gnome-b2e5047617db7741f8c3a5dacbadd39fa4b6fbc7.tar.zst
freebsd-ports-gnome-b2e5047617db7741f8c3a5dacbadd39fa4b6fbc7.zip
- 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
Diffstat (limited to 'www')
-rw-r--r--www/resin3/Makefile3
-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)