pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/ruby-daemons Update ruby-daemons to version 1.0.1...
details: https://anonhg.NetBSD.org/pkgsrc/rev/38bd26dd7ea4
branches: trunk
changeset: 540501:38bd26dd7ea4
user: jlam <jlam%pkgsrc.org@localhost>
date: Fri Apr 04 15:19:57 2008 +0000
description:
Update ruby-daemons to version 1.0.10. Changes from version 1.0.8 include:
+ Install as a Ruby gem.
- Fixed a severe bug in the new Pid.running? function: function returned
true if the process did not exist.
- By default, we now delete stray pid-files (i.e. pid-files which result for
example from a killed daemon) automatically. This function can be
deactivated by passing :keep_pid_files => true as an option.
- All pid files of :multiple daemons new get deleted correctly upon
exit of the daemons.
- Use the signal 'KILL' instead of 'TERM' on Windows platforms.
- Use exit! in trap('TERM') instead of exit when option :hard_exit is given.
- Did some clarification on the exception log.
diffstat:
misc/ruby-daemons/DESCR | 11 +++++---
misc/ruby-daemons/Makefile | 12 +++------
misc/ruby-daemons/PLIST | 61 ++++++++++++++++++++++++++++++++++++---------
misc/ruby-daemons/distinfo | 8 +++---
4 files changed, 63 insertions(+), 29 deletions(-)
diffs (117 lines):
diff -r 90c373fa4190 -r 38bd26dd7ea4 misc/ruby-daemons/DESCR
--- a/misc/ruby-daemons/DESCR Fri Apr 04 15:19:51 2008 +0000
+++ b/misc/ruby-daemons/DESCR Fri Apr 04 15:19:57 2008 +0000
@@ -1,4 +1,7 @@
-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. daemons can also
-run and control blocks of Ruby code in a daemon process.
+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. You can also call blocks as daemons
+and control them from the parent or just daemonize the current process.
+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.
diff -r 90c373fa4190 -r 38bd26dd7ea4 misc/ruby-daemons/Makefile
--- a/misc/ruby-daemons/Makefile Fri Apr 04 15:19:51 2008 +0000
+++ b/misc/ruby-daemons/Makefile Fri Apr 04 15:19:57 2008 +0000
@@ -1,16 +1,12 @@
-# $NetBSD: Makefile,v 1.5 2007/10/16 04:09:04 minskim Exp $
+# $NetBSD: Makefile,v 1.6 2008/04/04 15:19:57 jlam Exp $
-DISTNAME= daemons-1.0.8
+DISTNAME= daemons-1.0.10
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME}
-CATEGORIES= misc ruby
-MASTER_SITES= http://rubyforge.org/frs/download.php/25776/
-EXTRACT_SUFX= .tgz
+CATEGORIES= misc
MAINTAINER= minskim%NetBSD.org@localhost
HOMEPAGE= http://daemons.rubyforge.org/
COMMENT= Toolkit to convert Ruby scripts to a daemon
-USE_RUBY_SETUP= yes
-
-.include "../../lang/ruby/modules.mk"
+.include "../../misc/rubygems/rubygem.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 90c373fa4190 -r 38bd26dd7ea4 misc/ruby-daemons/PLIST
--- a/misc/ruby-daemons/PLIST Fri Apr 04 15:19:51 2008 +0000
+++ b/misc/ruby-daemons/PLIST Fri Apr 04 15:19:57 2008 +0000
@@ -1,13 +1,48 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2006/10/14 05:51:18 minskim Exp $
-${RUBY_SITELIBDIR}/daemons.rb
-${RUBY_SITELIBDIR}/daemons/application.rb
-${RUBY_SITELIBDIR}/daemons/application_group.rb
-${RUBY_SITELIBDIR}/daemons/cmdline.rb
-${RUBY_SITELIBDIR}/daemons/controller.rb
-${RUBY_SITELIBDIR}/daemons/daemonize.rb
-${RUBY_SITELIBDIR}/daemons/exceptions.rb
-${RUBY_SITELIBDIR}/daemons/monitor.rb
-${RUBY_SITELIBDIR}/daemons/pid.rb
-${RUBY_SITELIBDIR}/daemons/pidfile.rb
-${RUBY_SITELIBDIR}/daemons/pidmem.rb
-@dirrm ${RUBY_SITELIBDIR}/daemons
+@comment $NetBSD: PLIST,v 1.2 2008/04/04 15:19:57 jlam Exp $
+${GEM_HOME}/cache/daemons-${PKGVERSION}.gem
+${GEM_LIBDIR}/LICENSE
+${GEM_LIBDIR}/README
+${GEM_LIBDIR}/Rakefile
+${GEM_LIBDIR}/Releases
+${GEM_LIBDIR}/TODO
+${GEM_LIBDIR}/examples/call/call.rb
+${GEM_LIBDIR}/examples/call/call_monitor.rb
+${GEM_LIBDIR}/examples/daemonize/daemonize.rb
+${GEM_LIBDIR}/examples/run/ctrl_crash.rb
+${GEM_LIBDIR}/examples/run/ctrl_exec.rb
+${GEM_LIBDIR}/examples/run/ctrl_exit.rb
+${GEM_LIBDIR}/examples/run/ctrl_keep_pid_files.rb
+${GEM_LIBDIR}/examples/run/ctrl_monitor.rb
+${GEM_LIBDIR}/examples/run/ctrl_multiple.rb
+${GEM_LIBDIR}/examples/run/ctrl_normal.rb
+${GEM_LIBDIR}/examples/run/ctrl_ontop.rb
+${GEM_LIBDIR}/examples/run/ctrl_optionparser.rb
+${GEM_LIBDIR}/examples/run/ctrl_proc.rb
+${GEM_LIBDIR}/examples/run/ctrl_proc.rb.output
+${GEM_LIBDIR}/examples/run/ctrl_proc_multiple.rb
+${GEM_LIBDIR}/examples/run/ctrl_proc_multiple.rb.output
+${GEM_LIBDIR}/examples/run/ctrl_proc_simple.rb
+${GEM_LIBDIR}/examples/run/myserver.rb
+${GEM_LIBDIR}/examples/run/myserver_crashing.rb
+${GEM_LIBDIR}/examples/run/myserver_crashing.rb.output
+${GEM_LIBDIR}/examples/run/myserver_exiting.rb
+${GEM_LIBDIR}/lib/daemons.rb
+${GEM_LIBDIR}/lib/daemons/application.rb
+${GEM_LIBDIR}/lib/daemons/application_group.rb
+${GEM_LIBDIR}/lib/daemons/cmdline.rb
+${GEM_LIBDIR}/lib/daemons/controller.rb
+${GEM_LIBDIR}/lib/daemons/daemonize.rb
+${GEM_LIBDIR}/lib/daemons/exceptions.rb
+${GEM_LIBDIR}/lib/daemons/monitor.rb
+${GEM_LIBDIR}/lib/daemons/pid.rb
+${GEM_LIBDIR}/lib/daemons/pidfile.rb
+${GEM_LIBDIR}/lib/daemons/pidmem.rb
+${GEM_LIBDIR}/setup.rb
+${GEM_HOME}/specifications/daemons-${PKGVERSION}.gemspec
+@dirrm ${GEM_LIBDIR}/lib/daemons
+@dirrm ${GEM_LIBDIR}/lib
+@dirrm ${GEM_LIBDIR}/examples/run
+@dirrm ${GEM_LIBDIR}/examples/daemonize
+@dirrm ${GEM_LIBDIR}/examples/call
+@dirrm ${GEM_LIBDIR}/examples
+@dirrm ${GEM_LIBDIR}
diff -r 90c373fa4190 -r 38bd26dd7ea4 misc/ruby-daemons/distinfo
--- a/misc/ruby-daemons/distinfo Fri Apr 04 15:19:51 2008 +0000
+++ b/misc/ruby-daemons/distinfo Fri Apr 04 15:19:57 2008 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.5 2007/10/16 04:09:04 minskim Exp $
+$NetBSD: distinfo,v 1.6 2008/04/04 15:19:57 jlam Exp $
-SHA1 (daemons-1.0.8.tgz) = abd9e2b503db62120ad7702f0444ba422aa66b3a
-RMD160 (daemons-1.0.8.tgz) = 8754ad810033053d4144a9a01fa58aff06752714
-Size (daemons-1.0.8.tgz) = 27662 bytes
+SHA1 (daemons-1.0.10.gem) = 61ad4530249aab8c87c833757127cb593815b88c
+RMD160 (daemons-1.0.10.gem) = cee32913a4be62e308e1ae0f61edf869f45a0566
+Size (daemons-1.0.10.gem) = 31232 bytes
Home |
Main Index |
Thread Index |
Old Index