diff options
author | miwi <miwi@FreeBSD.org> | 2006-09-25 17:10:42 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2006-09-25 17:10:42 +0800 |
commit | 590733d58e055b77d94f0e2ec246fe80463195d5 (patch) | |
tree | d21a127afbd8629f35cb2c8957d57c72a51dafd5 /www/rubygem-mongrel_cluster | |
parent | 9513aaad485f660ec60410cc52d716de0fafd0a1 (diff) | |
download | freebsd-ports-gnome-590733d58e055b77d94f0e2ec246fe80463195d5.tar.gz freebsd-ports-gnome-590733d58e055b77d94f0e2ec246fe80463195d5.tar.zst freebsd-ports-gnome-590733d58e055b77d94f0e2ec246fe80463195d5.zip |
- Update to 0.2.1
- Add rc.d script
PR: ports/103599
Submitted by: Rui Lopes <rgl(at)ruilopes.com> (maintainer)
Diffstat (limited to 'www/rubygem-mongrel_cluster')
-rw-r--r-- | www/rubygem-mongrel_cluster/Makefile | 9 | ||||
-rw-r--r-- | www/rubygem-mongrel_cluster/distinfo | 6 | ||||
-rw-r--r-- | www/rubygem-mongrel_cluster/files/mongrel_cluster.in | 35 |
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" |