summaryrefslogtreecommitdiff
path: root/dev-perl/Gearman-Server
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-perl/Gearman-Server
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-perl/Gearman-Server')
-rw-r--r--dev-perl/Gearman-Server/Gearman-Server-1.130.1-r1.ebuild34
-rw-r--r--dev-perl/Gearman-Server/Manifest6
-rw-r--r--dev-perl/Gearman-Server/files/Gearman-Server-1.130.1-Use-saner-name-in-process-listing.patch33
-rw-r--r--dev-perl/Gearman-Server/files/gearmand-conf.d-1.093
-rw-r--r--dev-perl/Gearman-Server/files/gearmand-init.d-1.0925
-rw-r--r--dev-perl/Gearman-Server/metadata.xml18
6 files changed, 119 insertions, 0 deletions
diff --git a/dev-perl/Gearman-Server/Gearman-Server-1.130.1-r1.ebuild b/dev-perl/Gearman-Server/Gearman-Server-1.130.1-r1.ebuild
new file mode 100644
index 000000000000..8e86814b9727
--- /dev/null
+++ b/dev-perl/Gearman-Server/Gearman-Server-1.130.1-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=PALIK
+DIST_VERSION=v1.130.1
+inherit perl-module
+
+DESCRIPTION="Gearman distributed job system - worker/client connector"
+
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="test"
+
+RDEPEND="
+ >=dev-perl/Danga-Socket-1.520.0
+ >=dev-perl/Gearman-1.07
+ !!sys-cluster/gearmand
+"
+DEPEND="${RDEPEND}
+ virtual/perl-ExtUtils-MakeMaker
+ test? (
+ dev-perl/Test-Script
+ )
+"
+
+PATCHES=( "${FILESDIR}/${P}-Use-saner-name-in-process-listing.patch" )
+
+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/Manifest b/dev-perl/Gearman-Server/Manifest
new file mode 100644
index 000000000000..428d8bef4493
--- /dev/null
+++ b/dev-perl/Gearman-Server/Manifest
@@ -0,0 +1,6 @@
+AUX Gearman-Server-1.130.1-Use-saner-name-in-process-listing.patch 973 BLAKE2B 3e6275b2cf09ee607a5fd0d5759e52aafd954907880349f95c3bf591177b79331ac0db8ff2c965f368f85623d33b026fe0d31141f05b57294880af7ceeb03fa5 SHA512 fc3a62255c9483ca507e82b185673f90e68ee549d137872cfe5b06ca3d97c3445fbea1c95e02fc3ded3769469becd1b095922580c9c45316cd95a2cbedd909e0
+AUX gearmand-conf.d-1.09 118 BLAKE2B 160839ba97ed635321ced76efb51dceca84cde51b644ef63c949f66397e4205e8b558d83032322871679074d0fe85af25f32ca49bd73833e26bbc627f9e67344 SHA512 7edfb51212727b933cf5ca46a8ac72db2fe3f49e04bc856a69eeb77874e35b160ba85844b794f944d3b308624d6c51126bbb721a53b64b1d017a57ed43f9423b
+AUX gearmand-init.d-1.09 464 BLAKE2B 73abdc2db53c8b37f1fc879f2c8711baf6cab3411bfa2b641a8a5fd8c9219efe7b1969329c2fe4c9f3bf1fa78197648aa5d5e39245ea067618ec3d5837e6de2a SHA512 336eabd6018459f6dff5d9e9fab0d4122ffde4f8d9f65d60c0eabf4dfd431fb8417fde0be58db900ad25137719dd5766e086e69247b17bc0d55e110cea9ce823
+DIST Gearman-Server-v1.130.1.tar.gz 17585 BLAKE2B 9160639b9ffa12f88c37b07894b77b99085bfdb29902533f2f9dd175458a63c5e01ab7cdcb26af87494461fc853860b5dcf6bb33d7b6adbea0cc3a962f4400d8 SHA512 e8ed734ab7b2afb7e173397f91c58d990bdd223518234ebed77ba46dfd475afdf5aa90f805e26f7642aa7ec1429cf8766145344777e2af8912c2e02add57d033
+EBUILD Gearman-Server-1.130.1-r1.ebuild 706 BLAKE2B 596e09061f19b290972122473bc6e9bfe762f907a23433a0edc195a4a16a47dba944c4b551bdfb34cb102e2bf4111b83c32f0aa7f7f1dc147a125c7762ce8fa9 SHA512 76a6781aa2b136a42b2a0d1347b9b5b3427230d6944a61f4c2ce790a7601a0f9bd94f7a103237daa506fe9714c51c8d19ede21d3c0b48b8061cf915731919d01
+MISC metadata.xml 692 BLAKE2B 46dedec6d48f8102ffa335d4aeb5055ec09099cbe56dc8debe952f37d7694fd77488e3a8dc60cd7d7246f98715d571d0e449a4499c8b413cc721b8b332785278 SHA512 0db622f106e94d641c7c49021f738c5e570fcad9cb5e82f91bc254157251afcd5ce6e3de6f28297b9680a73ff9916034005362d453a821a62f5554021aee6f9b
diff --git a/dev-perl/Gearman-Server/files/Gearman-Server-1.130.1-Use-saner-name-in-process-listing.patch b/dev-perl/Gearman-Server/files/Gearman-Server-1.130.1-Use-saner-name-in-process-listing.patch
new file mode 100644
index 000000000000..c46ac0ecef59
--- /dev/null
+++ b/dev-perl/Gearman-Server/files/Gearman-Server-1.130.1-Use-saner-name-in-process-listing.patch
@@ -0,0 +1,33 @@
+From acd6722c16e17ddbdf6c73c99c693b7674f0fea7 Mon Sep 17 00:00:00 2001
+From: "Robin H. Johnson" <robbat2@gentoo.org>
+Date: Sat, 12 May 2007 22:16:37 -0700
+Subject: Use saner name in process listing.
+
+Normally the binary will turn up in the process list as:
+/usr/bin/perl $SCRIPTNAME
+
+By adding a single line, we can make it be simply '$SCRIPTNAME'.
+This makes writing init.d scripts signficently easier.
+
+Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
+---
+ bin/gearmand | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/bin/gearmand b/bin/gearmand
+index 6046a99..68d1bcf 100755
+--- a/bin/gearmand
++++ b/bin/gearmand
+@@ -130,6 +130,9 @@ my ($daemonize, $nokeepalive, $notify_pid, $opt_pidfile, $accept, $wakeup,
+ $wakeup_delay, $conf_host,);
+ my $conf_port = 4730;
+
++# Rename binary in process list to make init scripts saner
++$0 = $_ = $0;
++
+ Getopt::Long::GetOptions(
+ 'd|daemonize' => \$daemonize,
+ 'p|port=i' => \$conf_port,
+--
+2.14.2
+
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..590915d7cb98
--- /dev/null
+++ b/dev-perl/Gearman-Server/files/gearmand-conf.d-1.09
@@ -0,0 +1,3 @@
+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..88b635b8f870
--- /dev/null
+++ b/dev-perl/Gearman-Server/files/gearmand-init.d-1.09
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+
+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"
+ start-stop-daemon --start --pidfile="${PIDFILE}" \
+ --exec ${BINARY} -- ${GEARMAND_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping $NAME"
+ start-stop-daemon --stop --pidfile="${PIDFILE}"
+ eend $?
+}
+
+# vim: ft=gentoo-init-d:
diff --git a/dev-perl/Gearman-Server/metadata.xml b/dev-perl/Gearman-Server/metadata.xml
new file mode 100644
index 000000000000..043823d91f0d
--- /dev/null
+++ b/dev-perl/Gearman-Server/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>perl@gentoo.org</email>
+ <name>Gentoo Perl Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="cpan">Gearman-Server</remote-id>
+ <remote-id type="cpan-module">Gearman::Server</remote-id>
+ <remote-id type="cpan-module">Gearman::Server::Client</remote-id>
+ <remote-id type="cpan-module">Gearman::Server::Job</remote-id>
+ <remote-id type="cpan-module">Gearman::Server::Listener</remote-id>
+ </upstream>
+</pkgmetadata>