summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-03-27 07:15:30 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-03-27 07:15:30 +0000
commit370067c2245ec24ab09b35cc3bb30c49593da559 (patch)
treeddbabfeadebaf0323739af3b0f4783aa97682060
parentGearman is a system to farm out work to other machines, dispatching function (diff)
Gearman is a system to farm out work to other machines, dispatching function
calls to machines that are better suited to do work, to do work in parallel, to load balance lots of function calls, or to call functions between languages. This is the server daemon component. The bridge between workers (clients who can do work) and callers (clients who want work done). You should run several of these, at least two, for both load balancing and high availability. WWW: http://www.danga.com/gearman/ PR: ports/110878 Submitted by: Vivek Khera <vivek at khera.org>
Notes
Notes: svn path=/head/; revision=188452
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-gearmand/Makefile33
-rw-r--r--devel/p5-gearmand/distinfo3
-rw-r--r--devel/p5-gearmand/files/gearmand.sh.in26
-rw-r--r--devel/p5-gearmand/pkg-descr10
5 files changed, 73 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 25c516e6cc2f..4812d6a98a82 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1596,6 +1596,7 @@
SUBDIR += p5-capitalization
SUBDIR += p5-enum
SUBDIR += p5-forks
+ SUBDIR += p5-gearmand
SUBDIR += p5-iCal-Parser
SUBDIR += p5-mixin
SUBDIR += p5-orz
diff --git a/devel/p5-gearmand/Makefile b/devel/p5-gearmand/Makefile
new file mode 100644
index 000000000000..9214a13a8cef
--- /dev/null
+++ b/devel/p5-gearmand/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: p5-gearmand
+# Date created: Mon Mar 26 11:45:06 EDT 2007
+# Whom: Vivek Khera <vivek@khera.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gearmand
+PORTVERSION= 1.03
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= ../by-authors/id/B/BR/BRADFITZ
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= vivek@khera.org
+COMMENT= Gearman server daemon
+
+USE_RC_SUBR= gearmand.sh
+SUB_LIST+= NAME=gearmand
+
+MODULE_DEPENDS= p5-Gearman>=1.0:${PORTSDIR}/devel/p5-Gearman \
+ p5-Danga-Socket>=1.52:${PORTSDIR}/devel/p5-Danga-Socket
+RUN_DEPENDS+= ${MODULE_DEPENDS}
+BUILD_DEPENDS+= ${MODULE_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN1= gearmand.1
+PLIST_FILES= bin/gearmand \
+ %%SITE_PERL%%/%%PERL_ARCH%%/auto/gearmand/.packlist
+PLIST_DIRS= %%SITE_PERL%%/%%PERL_ARCH%%/auto/gearmand
+
+.include <bsd.port.mk>
diff --git a/devel/p5-gearmand/distinfo b/devel/p5-gearmand/distinfo
new file mode 100644
index 000000000000..6c1dd9ac5a24
--- /dev/null
+++ b/devel/p5-gearmand/distinfo
@@ -0,0 +1,3 @@
+MD5 (gearmand-1.03.tar.gz) = e964cb9a8251c741a55683d3d0c5d4ef
+SHA256 (gearmand-1.03.tar.gz) = 87bceb9e095334f74e70a02a506d1b901f3fdb2246998df3a21ee6e6eb50ce88
+SIZE (gearmand-1.03.tar.gz) = 7978
diff --git a/devel/p5-gearmand/files/gearmand.sh.in b/devel/p5-gearmand/files/gearmand.sh.in
new file mode 100644
index 000000000000..5cb96a82f827
--- /dev/null
+++ b/devel/p5-gearmand/files/gearmand.sh.in
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# $FreeBSD: /tmp/pcvs/ports/devel/p5-gearmand/files/Attic/gearmand.sh.in,v 1.1 2007-03-27 07:15:30 miwi Exp $
+#
+
+# PROVIDE: %%NAME%%
+# REQUIRE: DAEMON
+
+# Add the following line to /etc/rc.conf to enable `%%NAME%%':
+#
+#%%NAME%%_enable="YES"
+
+. "%%RC_SUBR%%"
+
+name="%%NAME%%"
+rcvar=`set_rcvar`
+
+command="%%PREFIX%%/bin/gearmand"
+command_interpreter="%%PREFIX%%/bin/perl"
+command_args="--daemon"
+
+# read configuration and set defaults
+load_rc_config "$name"
+: ${%%NAME%%_enable="NO"}
+
+run_rc_command "$1"
diff --git a/devel/p5-gearmand/pkg-descr b/devel/p5-gearmand/pkg-descr
new file mode 100644
index 000000000000..28f20064d34b
--- /dev/null
+++ b/devel/p5-gearmand/pkg-descr
@@ -0,0 +1,10 @@
+Gearman is a system to farm out work to other machines, dispatching function
+calls to machines that are better suited to do work, to do work in parallel,
+to load balance lots of function calls, or to call functions between
+languages.
+
+This is the server daemon component. The bridge between workers (clients who
+can do work) and callers (clients who want work done). You should run several
+of these, at least two, for both load balancing and high availability.
+
+WWW: http://www.danga.com/gearman/