aboutsummaryrefslogtreecommitdiff
path: root/www/rubygem-mongrel_cluster
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2006-09-25 09:10:42 +0000
committerMartin Wilke <miwi@FreeBSD.org>2006-09-25 09:10:42 +0000
commitc1082d67f33474f09c8ccd2dc51db47c5c3787e6 (patch)
tree07140758463d069e77b1977b16634aa208d555d5 /www/rubygem-mongrel_cluster
parent5c4bfd8722c372f23deeb678af18d29a1b2652f0 (diff)
downloadports-c1082d67f33474f09c8ccd2dc51db47c5c3787e6.tar.gz
ports-c1082d67f33474f09c8ccd2dc51db47c5c3787e6.zip
Notes
Diffstat (limited to 'www/rubygem-mongrel_cluster')
-rw-r--r--www/rubygem-mongrel_cluster/Makefile9
-rw-r--r--www/rubygem-mongrel_cluster/distinfo6
-rw-r--r--www/rubygem-mongrel_cluster/files/mongrel_cluster.in35
3 files changed, 44 insertions, 6 deletions
diff --git a/www/rubygem-mongrel_cluster/Makefile b/www/rubygem-mongrel_cluster/Makefile
index d658bddc34a5..071d9d290a6f 100644
--- a/www/rubygem-mongrel_cluster/Makefile
+++ b/www/rubygem-mongrel_cluster/Makefile
@@ -5,22 +5,25 @@
# $FreeBSD$
PORTNAME= mongrel_cluster
-PORTVERSION= 0.2.0
+PORTVERSION= 0.2.1
CATEGORIES= www rubygems
MASTER_SITES= ${MASTER_SITE_RUBYFORGE}
-MASTER_SITE_SUBDIR= railsmachine
+MASTER_SITE_SUBDIR= mongrel
MAINTAINER= rgl@ruilopes.com
COMMENT= Manages multiple Mongrel processes
-BUILD_DEPENDS= rubygem-mongrel>=0.3.13:${PORTSDIR}/www/rubygem-mongrel
+BUILD_DEPENDS= rubygem-mongrel>=0.3.13.4:${PORTSDIR}/www/rubygem-mongrel
RUN_DEPENDS= ${BUILD_DEPENDS}
+USE_RC_SUBR= mongrel_cluster
+
# This target is only meant to be used by the port maintainer.
x-generate-plist:
(${PORTSDIR}/Tools/scripts/plist -d -m ${MTREE_FILE} ${PREFIX} \
| ${SED} -E \
's,.*share/nls/.+$$,,g \
+ ;s,.*etc/rc.d/.+$$,,g \
;s,^${GEM_CACHE}$$,%%GEM_CACHE%%,g \
;s,${GEM_DOC_DIR}(/.+)?$$,%%GEM_DOC_DIR%%\1,g \
;s,${GEM_LIB_DIR}(/.+)?$$,%%GEM_LIB_DIR%%\1,g \
diff --git a/www/rubygem-mongrel_cluster/distinfo b/www/rubygem-mongrel_cluster/distinfo
index d52e9c89834a..f3c0db38bd0d 100644
--- a/www/rubygem-mongrel_cluster/distinfo
+++ b/www/rubygem-mongrel_cluster/distinfo
@@ -1,3 +1,3 @@
-MD5 (rubygem/mongrel_cluster-0.2.0.gem) = 9342e3972b50db92636dca2f2a5ffd25
-SHA256 (rubygem/mongrel_cluster-0.2.0.gem) = 0cfac40fb8ad58f99469ae4bb97308e0e73a6ea888aec6b3f17e00b35eae3182
-SIZE (rubygem/mongrel_cluster-0.2.0.gem) = 18432
+MD5 (rubygem/mongrel_cluster-0.2.1.gem) = 4f497c3823cadf527b7dab12a05dda7b
+SHA256 (rubygem/mongrel_cluster-0.2.1.gem) = a5489c017a5f035a46341f043de43845c2f5e982b563a525cee0e11554a46db1
+SIZE (rubygem/mongrel_cluster-0.2.1.gem) = 18432
diff --git a/www/rubygem-mongrel_cluster/files/mongrel_cluster.in b/www/rubygem-mongrel_cluster/files/mongrel_cluster.in
new file mode 100644
index 000000000000..53fd903c5c2f
--- /dev/null
+++ b/www/rubygem-mongrel_cluster/files/mongrel_cluster.in
@@ -0,0 +1,35 @@
+#!/bin/sh
+# PROVIDE: mongrel_cluster
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# This script is modified by placing the following variables inside
+# /etc/rc.conf.local, /etc/rc.conf, or /etc/rc.conf.d/mongrel_cluster:
+#
+# mongrel_cluster_enable (bool):
+# Set it to YES to enable this service.
+# Default: NO
+# mongrel_cluster_conf_dir (path):
+# The directory containing the configuration file (*.yml) for each
+# application you want to control.
+# Default: %%PREFIX%%/etc/mongrel_cluster
+
+. %%RC_SUBR%%
+
+name=mongrel_cluster
+rcvar=${name}_enable
+
+command="%%PREFIX%%/bin/mongrel_cluster_ctl"
+required_dirs="%%PREFIX%%/etc/${name}"
+
+load_rc_config $name
+
+: ${mongrel_cluster_enable="NO"}
+: ${mongrel_cluster_conf_dir="%%PREFIX%%/etc/mongrel_cluster"}
+
+command_args="-c ${mongrel_cluster_conf_dir}"
+start_cmd="${command} start ${command_args}"
+stop_cmd="${command} stop ${command_args}"
+restart_cmd="${command} restart ${command_args}"
+
+run_rc_command "$1"