1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

- Update to 0.2.1

- Add rc.d script

PR:		ports/103599
Submitted by:	Rui Lopes <rgl(at)ruilopes.com> (maintainer)
This commit is contained in:
Martin Wilke 2006-09-25 09:10:42 +00:00
parent 5c4bfd8722
commit c1082d67f3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=173784
3 changed files with 44 additions and 6 deletions

View File

@ -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 \

View File

@ -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

View File

@ -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"