From 716beec4820168d680eae7baa6949ae25160730d Mon Sep 17 00:00:00 2001 From: Cheng-Lung Sung Date: Sat, 8 Sep 2007 08:17:15 +0000 Subject: [PATCH] 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://search.cpan.org/dist/Gearman-Server/ PR: ports/116050 Submitted by: Tomoyuki Sakurai --- devel/Makefile | 1 + devel/p5-Gearman-Server/Makefile | 31 +++++++++++++++++++++++ devel/p5-Gearman-Server/distinfo | 3 +++ devel/p5-Gearman-Server/files/gearmand.in | 26 +++++++++++++++++++ devel/p5-Gearman-Server/pkg-descr | 10 ++++++++ devel/p5-Gearman-Server/pkg-plist | 10 ++++++++ 6 files changed, 81 insertions(+) create mode 100644 devel/p5-Gearman-Server/Makefile create mode 100644 devel/p5-Gearman-Server/distinfo create mode 100644 devel/p5-Gearman-Server/files/gearmand.in create mode 100644 devel/p5-Gearman-Server/pkg-descr create mode 100644 devel/p5-Gearman-Server/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index 9b9a135fb279..835c56469767 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1219,6 +1219,7 @@ SUBDIR += p5-Filter-Template SUBDIR += p5-FreezeThaw SUBDIR += p5-Gearman + SUBDIR += p5-Gearman-Server SUBDIR += p5-Geo-ShapeFile SUBDIR += p5-Getargs-Long SUBDIR += p5-Getopt-ArgvFile diff --git a/devel/p5-Gearman-Server/Makefile b/devel/p5-Gearman-Server/Makefile new file mode 100644 index 000000000000..dfbbd100d5b1 --- /dev/null +++ b/devel/p5-Gearman-Server/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: p5-Gearman-Server +# Date created: 2007-09-03 +# Whom: Tomoyuki Sakurai +# +# $FreeBSD$ +# + +PORTNAME= Gearman-Server +PORTVERSION= 1.09 +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 + +RUN_DEPENDS= p5-Gearman>=1.0:${PORTSDIR}/devel/p5-Gearman \ + p5-Danga-Socket>=1.52:${PORTSDIR}/devel/p5-Danga-Socket +BUILD_DEPENDS+= ${RUN_DEPENDS} + +PERL_CONFIGURE= yes + +MAN1= gearmand.1 +MAN3= Gearman::Server.3 Gearman::Server::Client.3 + +USE_RC_SUBR= gearmand +SUB_LIST+= NAME=gearmand + +.include +.include diff --git a/devel/p5-Gearman-Server/distinfo b/devel/p5-Gearman-Server/distinfo new file mode 100644 index 000000000000..35872a4471fe --- /dev/null +++ b/devel/p5-Gearman-Server/distinfo @@ -0,0 +1,3 @@ +MD5 (Gearman-Server-1.09.tar.gz) = 3d107089f7266ab91d66d9a7bd90430f +SHA256 (Gearman-Server-1.09.tar.gz) = 472c47d154a7168c627aad97fe04abdb3010275315e26382e13982ec4062a8cd +SIZE (Gearman-Server-1.09.tar.gz) = 11282 diff --git a/devel/p5-Gearman-Server/files/gearmand.in b/devel/p5-Gearman-Server/files/gearmand.in new file mode 100644 index 000000000000..034b0060a58b --- /dev/null +++ b/devel/p5-Gearman-Server/files/gearmand.in @@ -0,0 +1,26 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# 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-Gearman-Server/pkg-descr b/devel/p5-Gearman-Server/pkg-descr new file mode 100644 index 000000000000..ac6932c353c1 --- /dev/null +++ b/devel/p5-Gearman-Server/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://search.cpan.org/dist/Gearman-Server/ diff --git a/devel/p5-Gearman-Server/pkg-plist b/devel/p5-Gearman-Server/pkg-plist new file mode 100644 index 000000000000..7e4a847c1573 --- /dev/null +++ b/devel/p5-Gearman-Server/pkg-plist @@ -0,0 +1,10 @@ +@comment $FreeBSD$ +bin/gearmand +%%SITE_PERL%%/Gearman/Server/Job.pm +%%SITE_PERL%%/Gearman/Server/Client.pm +%%SITE_PERL%%/Gearman/Server.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Gearman/Server/.packlist +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Gearman/Server +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Gearman +@dirrmtry %%SITE_PERL%%/Gearman/Server +@dirrmtry %%SITE_PERL%%/Gearman