summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2006-06-05 14:24:41 +0000
committerPav Lucistnik <pav@FreeBSD.org>2006-06-05 14:24:41 +0000
commitd7ea4e4c41c102a4ff58459a24db573f595b4d96 (patch)
tree0824e5eeb36465294b5163b88590a23e6a4c453d /devel
parentAdd port www/xpi-delicious: (diff)
Daemons provides an easy way to wrap existing ruby scripts (for example
a self-written server) to be run as a daemon and to be controlled by simple start/stop/restart commands. If you want, you can also use daemons to run blocks of ruby code in a daemon process and to control these processes from the main application. Besides this basic functionality, daemons offers many advanced features like exception backtracing and logging (in case your ruby script crashes) and monitoring and automatic restarting of your processes if they crash. WWW: http://daemons.rubyforge.org/ PR: ports/97531 Submitted by: Rui Lopes <rgl@ruilopes.com>
Notes
Notes: svn path=/head/; revision=164459
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/rubygem-daemons/Makefile30
-rw-r--r--devel/rubygem-daemons/distinfo3
-rw-r--r--devel/rubygem-daemons/pkg-descr13
-rw-r--r--devel/rubygem-daemons/pkg-plist162
5 files changed, 209 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index ce182af7bfe9..9b726ae2bb5a 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1653,6 +1653,7 @@
SUBDIR += ruby-tzfile
SUBDIR += ruby-zoom
SUBDIR += rubygem-activesupport
+ SUBDIR += rubygem-daemons
SUBDIR += rubygem-event-loop
SUBDIR += rubygem-gem_plugin
SUBDIR += rubygem-needle
diff --git a/devel/rubygem-daemons/Makefile b/devel/rubygem-daemons/Makefile
new file mode 100644
index 000000000000..bd056911dbd4
--- /dev/null
+++ b/devel/rubygem-daemons/Makefile
@@ -0,0 +1,30 @@
+# Ports collection makefile for: daemons
+# Date created: 20 May 2006
+# Whom: Rui Lopes (<rgl ruilopes com>)
+#
+# $FreeBSD$
+
+PORTNAME= daemons
+PORTVERSION= 0.4.4
+CATEGORIES= devel rubygems
+MASTER_SITES= http://rubyforge.org/frs/download.php/9598/
+
+MAINTAINER= rgl@ruilopes.com
+COMMENT= A toolkit to convert your script to a controllable daemon
+
+# 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,^${CACHE_DIR}(/.+)$$,%%CACHE_DIR%%\1,g \
+ ;s,${GEM_DOC_DIR}(/.+)?$$,%%GEM_DOC_DIR%%\1,g \
+ ;s,${GEM_LIB_DIR}(/.+)?$$,%%GEM_LIB_DIR%%\1,g \
+ ;s,^${SPEC_DIR}(/.+)$$,%%SPEC_DIR%%\1,g \
+ ;s,^${GEMS_BASE_DIR}/(.+)$$,\1,g \
+ ;s,^@dirrm (${SPEC_DIR}|${GEMS_DIR}|lib/ruby).*$$,,g \
+ ' | ${TR} -s '\n') > temp-pkg-plist
+
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/devel/ruby-gems/Makefile.common"
+.include <bsd.port.post.mk>
diff --git a/devel/rubygem-daemons/distinfo b/devel/rubygem-daemons/distinfo
new file mode 100644
index 000000000000..63851cc58294
--- /dev/null
+++ b/devel/rubygem-daemons/distinfo
@@ -0,0 +1,3 @@
+MD5 (rubygem/daemons-0.4.4.gem) = 18fad0aca392668a2356e1abebf7cf4f
+SHA256 (rubygem/daemons-0.4.4.gem) = 4da25883f4b7d2fde38c68727dd9b8172f217ff9515b51587cdf02022318eef2
+SIZE (rubygem/daemons-0.4.4.gem) = 27648
diff --git a/devel/rubygem-daemons/pkg-descr b/devel/rubygem-daemons/pkg-descr
new file mode 100644
index 000000000000..df5b6a343fdc
--- /dev/null
+++ b/devel/rubygem-daemons/pkg-descr
@@ -0,0 +1,13 @@
+Daemons provides an easy way to wrap existing ruby scripts (for example
+a self-written server) to be run as a daemon and to be controlled by
+simple start/stop/restart commands.
+
+If you want, you can also use daemons to run blocks of ruby code in a
+daemon process and to control these processes from the main application.
+
+Besides this basic functionality, daemons offers many advanced features
+like exception backtracing and logging (in case your ruby script
+crashes) and monitoring and automatic restarting of your processes if
+they crash.
+
+WWW: http://daemons.rubyforge.org/
diff --git a/devel/rubygem-daemons/pkg-plist b/devel/rubygem-daemons/pkg-plist
new file mode 100644
index 000000000000..b0ca73772c09
--- /dev/null
+++ b/devel/rubygem-daemons/pkg-plist
@@ -0,0 +1,162 @@
+%%CACHE_DIR%%/daemons-0.4.4.gem
+%%GEM_DOC_DIR%%/rdoc/classes/Daemonize.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemonize.src/M000060.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemonize.src/M000061.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemonize.src/M000062.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemonize.src/M000063.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons.src/M000001.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons.src/M000002.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons.src/M000003.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons.src/M000004.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons.src/M000005.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons.src/M000006.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Application.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Application.src/M000016.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Application.src/M000017.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Application.src/M000018.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Application.src/M000019.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Application.src/M000020.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Application.src/M000021.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Application.src/M000022.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Application.src/M000023.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Application.src/M000024.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Application.src/M000025.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Application.src/M000026.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Application.src/M000027.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Application.src/M000028.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Application.src/M000029.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Application.src/M000030.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/ApplicationGroup.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/ApplicationGroup.src/M000046.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/ApplicationGroup.src/M000047.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/ApplicationGroup.src/M000048.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/ApplicationGroup.src/M000049.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/ApplicationGroup.src/M000050.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/ApplicationGroup.src/M000051.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/ApplicationGroup.src/M000052.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/ApplicationGroup.src/M000053.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/ApplicationGroup.src/M000054.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/ApplicationGroup.src/M000055.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/CmdException.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Controller.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Controller.src/M000031.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Controller.src/M000032.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Controller.src/M000033.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Controller.src/M000034.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Controller.src/M000035.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Controller.src/M000036.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Error.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Exception.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Monitor.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Monitor.src/M000056.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Monitor.src/M000057.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Monitor.src/M000058.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Monitor.src/M000059.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Optparse.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Optparse.src/M000014.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Optparse.src/M000015.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Pid.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Pid.src/M000007.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Pid.src/M000008.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Pid.src/M000009.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Pid.src/M000010.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Pid.src/M000011.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Pid.src/M000012.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/Pid.src/M000013.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/PidFile.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/PidFile.src/M000037.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/PidFile.src/M000038.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/PidFile.src/M000039.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/PidFile.src/M000040.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/PidFile.src/M000041.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/PidFile.src/M000042.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/PidFile.src/M000043.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/PidFile.src/M000044.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/PidMem.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/RuntimeException.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/SystemError.html
+%%GEM_DOC_DIR%%/rdoc/classes/Daemons/SystemError.src/M000045.html
+%%GEM_DOC_DIR%%/rdoc/created.rid
+%%GEM_DOC_DIR%%/rdoc/files/README.html
+%%GEM_DOC_DIR%%/rdoc/files/Releases.html
+%%GEM_DOC_DIR%%/rdoc/files/TODO.html
+%%GEM_DOC_DIR%%/rdoc/files/lib/daemons/application_group_rb.html
+%%GEM_DOC_DIR%%/rdoc/files/lib/daemons/application_rb.html
+%%GEM_DOC_DIR%%/rdoc/files/lib/daemons/cmdline_rb.html
+%%GEM_DOC_DIR%%/rdoc/files/lib/daemons/controller_rb.html
+%%GEM_DOC_DIR%%/rdoc/files/lib/daemons/daemonize_rb.html
+%%GEM_DOC_DIR%%/rdoc/files/lib/daemons/exceptions_rb.html
+%%GEM_DOC_DIR%%/rdoc/files/lib/daemons/monitor_rb.html
+%%GEM_DOC_DIR%%/rdoc/files/lib/daemons/pid_rb.html
+%%GEM_DOC_DIR%%/rdoc/files/lib/daemons/pidfile_rb.html
+%%GEM_DOC_DIR%%/rdoc/files/lib/daemons/pidmem_rb.html
+%%GEM_DOC_DIR%%/rdoc/files/lib/daemons_rb.html
+%%GEM_DOC_DIR%%/rdoc/fr_class_index.html
+%%GEM_DOC_DIR%%/rdoc/fr_file_index.html
+%%GEM_DOC_DIR%%/rdoc/fr_method_index.html
+%%GEM_DOC_DIR%%/rdoc/index.html
+%%GEM_DOC_DIR%%/rdoc/rdoc-style.css
+%%GEM_LIB_DIR%%/README
+%%GEM_LIB_DIR%%/Rakefile
+%%GEM_LIB_DIR%%/Releases
+%%GEM_LIB_DIR%%/TODO
+%%GEM_LIB_DIR%%/examples/call/call.rb
+%%GEM_LIB_DIR%%/examples/call/call_monitor.rb
+%%GEM_LIB_DIR%%/examples/daemonize/daemonize.rb
+%%GEM_LIB_DIR%%/examples/run/ctrl_crash.rb
+%%GEM_LIB_DIR%%/examples/run/ctrl_exec.rb
+%%GEM_LIB_DIR%%/examples/run/ctrl_exit.rb
+%%GEM_LIB_DIR%%/examples/run/ctrl_monitor.rb
+%%GEM_LIB_DIR%%/examples/run/ctrl_multiple.rb
+%%GEM_LIB_DIR%%/examples/run/ctrl_normal.rb
+%%GEM_LIB_DIR%%/examples/run/ctrl_ontop.rb
+%%GEM_LIB_DIR%%/examples/run/ctrl_proc.output
+%%GEM_LIB_DIR%%/examples/run/ctrl_proc.rb
+%%GEM_LIB_DIR%%/examples/run/ctrl_proc.rb.output
+%%GEM_LIB_DIR%%/examples/run/myserver.rb
+%%GEM_LIB_DIR%%/examples/run/myserver_crashing.rb
+%%GEM_LIB_DIR%%/examples/run/myserver_crashing.rb.output
+%%GEM_LIB_DIR%%/examples/run/myserver_exiting.rb
+%%GEM_LIB_DIR%%/lib/daemons.rb
+%%GEM_LIB_DIR%%/lib/daemons/application.rb
+%%GEM_LIB_DIR%%/lib/daemons/application_group.rb
+%%GEM_LIB_DIR%%/lib/daemons/cmdline.rb
+%%GEM_LIB_DIR%%/lib/daemons/controller.rb
+%%GEM_LIB_DIR%%/lib/daemons/daemonize.rb
+%%GEM_LIB_DIR%%/lib/daemons/exceptions.rb
+%%GEM_LIB_DIR%%/lib/daemons/monitor.rb
+%%GEM_LIB_DIR%%/lib/daemons/pid.rb
+%%GEM_LIB_DIR%%/lib/daemons/pidfile.rb
+%%GEM_LIB_DIR%%/lib/daemons/pidmem.rb
+%%GEM_LIB_DIR%%/setup.rb
+%%GEM_LIB_DIR%%/test/call_as_daemon.rb
+%%GEM_LIB_DIR%%/test/tc_main.rb
+%%GEM_LIB_DIR%%/test/test1.rb
+%%GEM_LIB_DIR%%/test/testapp.rb
+%%SPEC_DIR%%/daemons-0.4.4.gemspec
+@dirrm %%GEM_LIB_DIR%%/test
+@dirrm %%GEM_LIB_DIR%%/lib/daemons
+@dirrm %%GEM_LIB_DIR%%/lib
+@dirrm %%GEM_LIB_DIR%%/examples/run
+@dirrm %%GEM_LIB_DIR%%/examples/daemonize
+@dirrm %%GEM_LIB_DIR%%/examples/call
+@dirrm %%GEM_LIB_DIR%%/examples
+@dirrm %%GEM_LIB_DIR%%
+@dirrm %%GEM_DOC_DIR%%/rdoc/files/lib/daemons
+@dirrm %%GEM_DOC_DIR%%/rdoc/files/lib
+@dirrm %%GEM_DOC_DIR%%/rdoc/files
+@dirrm %%GEM_DOC_DIR%%/rdoc/classes/Daemons/SystemError.src
+@dirrm %%GEM_DOC_DIR%%/rdoc/classes/Daemons/PidFile.src
+@dirrm %%GEM_DOC_DIR%%/rdoc/classes/Daemons/Pid.src
+@dirrm %%GEM_DOC_DIR%%/rdoc/classes/Daemons/Optparse.src
+@dirrm %%GEM_DOC_DIR%%/rdoc/classes/Daemons/Monitor.src
+@dirrm %%GEM_DOC_DIR%%/rdoc/classes/Daemons/Controller.src
+@dirrm %%GEM_DOC_DIR%%/rdoc/classes/Daemons/ApplicationGroup.src
+@dirrm %%GEM_DOC_DIR%%/rdoc/classes/Daemons/Application.src
+@dirrm %%GEM_DOC_DIR%%/rdoc/classes/Daemons.src
+@dirrm %%GEM_DOC_DIR%%/rdoc/classes/Daemons
+@dirrm %%GEM_DOC_DIR%%/rdoc/classes/Daemonize.src
+@dirrm %%GEM_DOC_DIR%%/rdoc/classes
+@dirrm %%GEM_DOC_DIR%%/rdoc
+@dirrm %%GEM_DOC_DIR%%