d7ea4e4c41
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>
30 lines
972 B
Makefile
30 lines
972 B
Makefile
# 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>
|