diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2007-05-13 02:18:42 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2007-05-13 02:18:42 +0000 |
commit | 1f661c15e6597b78832d7a8151795b516e12beaf (patch) | |
tree | df44f108fe3c3264c01262a3b9e8280d7910c6de /dev-perl/Gearman-Server | |
parent | Mask new net-fs/sfs for testing. (diff) | |
download | gentoo-2-1f661c15e6597b78832d7a8151795b516e12beaf.tar.gz gentoo-2-1f661c15e6597b78832d7a8151795b516e12beaf.tar.bz2 gentoo-2-1f661c15e6597b78832d7a8151795b516e12beaf.zip |
Version bump, add init script now.
(Portage version: 2.1.2.7)
Diffstat (limited to 'dev-perl/Gearman-Server')
-rw-r--r-- | dev-perl/Gearman-Server/ChangeLog | 9 | ||||
-rw-r--r-- | dev-perl/Gearman-Server/Gearman-Server-1.09.ebuild | 27 | ||||
-rw-r--r-- | dev-perl/Gearman-Server/files/digest-Gearman-Server-1.09 | 3 | ||||
-rw-r--r-- | dev-perl/Gearman-Server/files/gearmand-conf.d-1.09 | 4 | ||||
-rw-r--r-- | dev-perl/Gearman-Server/files/gearmand-init.d-1.09 | 34 |
5 files changed, 76 insertions, 1 deletions
diff --git a/dev-perl/Gearman-Server/ChangeLog b/dev-perl/Gearman-Server/ChangeLog index a193082a0406..17bf4d8089e5 100644 --- a/dev-perl/Gearman-Server/ChangeLog +++ b/dev-perl/Gearman-Server/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-perl/Gearman-Server # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-perl/Gearman-Server/ChangeLog,v 1.1 2007/05/09 08:13:47 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Gearman-Server/ChangeLog,v 1.2 2007/05/13 02:18:42 robbat2 Exp $ + +*Gearman-Server-1.09 (13 May 2007) + + 13 May 2007; Robin H. Johnson <robbat2@gentoo.org> + +files/gearmand-conf.d-1.09, +files/gearmand-init.d-1.09, + +Gearman-Server-1.09.ebuild: + Version bump, add init script now. *Gearman-Server-1.08 (09 May 2007) diff --git a/dev-perl/Gearman-Server/Gearman-Server-1.09.ebuild b/dev-perl/Gearman-Server/Gearman-Server-1.09.ebuild new file mode 100644 index 000000000000..b6a723639063 --- /dev/null +++ b/dev-perl/Gearman-Server/Gearman-Server-1.09.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Gearman-Server/Gearman-Server-1.09.ebuild,v 1.1 2007/05/13 02:18:42 robbat2 Exp $ + +inherit perl-module + +DESCRIPTION="Gearman distributed job system - worker/client connector" +HOMEPAGE="http://search.cpan.org/search?query=Gearman-Server&mode=dist" +SRC_URI="mirror://cpan/authors/id/B/BR/BRADFITZ/${P}.tar.gz" + +IUSE="" + +SLOT="0" +LICENSE="|| ( Artistic GPL-2 )" +KEYWORDS="~amd64 ~ppc ~x86" + +DEPEND=">=dev-perl/Danga-Socket-1.57 + >=dev-perl/Gearman-1.07 + dev-lang/perl" + +mydoc="CHANGES" + +src_install() { + perl-module_src_install + newinitd ${FILESDIR}/gearmand-init.d-1.09 gearmand + newconfd ${FILESDIR}/gearmand-conf.d-1.09 gearmand +} diff --git a/dev-perl/Gearman-Server/files/digest-Gearman-Server-1.09 b/dev-perl/Gearman-Server/files/digest-Gearman-Server-1.09 new file mode 100644 index 000000000000..3ad5ab6b1b3b --- /dev/null +++ b/dev-perl/Gearman-Server/files/digest-Gearman-Server-1.09 @@ -0,0 +1,3 @@ +MD5 3d107089f7266ab91d66d9a7bd90430f Gearman-Server-1.09.tar.gz 11282 +RMD160 aab3786eec7a550f08ae4e521b207c555a9fa671 Gearman-Server-1.09.tar.gz 11282 +SHA256 472c47d154a7168c627aad97fe04abdb3010275315e26382e13982ec4062a8cd Gearman-Server-1.09.tar.gz 11282 diff --git a/dev-perl/Gearman-Server/files/gearmand-conf.d-1.09 b/dev-perl/Gearman-Server/files/gearmand-conf.d-1.09 new file mode 100644 index 000000000000..69efd9003fc1 --- /dev/null +++ b/dev-perl/Gearman-Server/files/gearmand-conf.d-1.09 @@ -0,0 +1,4 @@ +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Gearman-Server/files/gearmand-conf.d-1.09,v 1.1 2007/05/13 02:18:42 robbat2 Exp $ +PIDFILE="/var/run/gearmand.pid" +GEARMAND_OPTS="--daemonize --port=7003 --pidfile=${PIDFILE}" +# vim: ft=gentoo-conf-d: diff --git a/dev-perl/Gearman-Server/files/gearmand-init.d-1.09 b/dev-perl/Gearman-Server/files/gearmand-init.d-1.09 new file mode 100644 index 000000000000..ef445e5dbd9d --- /dev/null +++ b/dev-perl/Gearman-Server/files/gearmand-init.d-1.09 @@ -0,0 +1,34 @@ +#!/sbin/runscript +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Gearman-Server/files/gearmand-init.d-1.09,v 1.1 2007/05/13 02:18:42 robbat2 Exp $ + +NAME="gearmand" +BINARY="/usr/bin/gearmand" + +depend() { + use net +} + +start() { + # start-stop-daemon does not work properly in certain cases + # this hack should go away when bug #178274 is resolved. + ebegin "Starting $NAME" + ${BINARY} ${GEARMAND_OPTS} + rc=$? + [ $rc -ne 0 ] && eend $rc + local i=0 + # wait 4*500ms + while [ $i -lt 4 ] && ! [ -s $PIDFILE ]; do + sleep 0.5 + i=$(($i+1)) + done + # final check + start-stop-daemon --oknodo --start --pidfile="${PIDFILE}" \ + --exec ${BINARY} -- ${GEARMAND_OPTS} + eend $? +} +stop() { + ebegin "Stopping $NAME" + start-stop-daemon --stop --pidfile="${PIDFILE}" + eend $? +} +# vim: ft=gentoo-init-d: |