diff options
author | Caleb Tennis <caleb@gentoo.org> | 2008-08-15 21:24:35 +0000 |
---|---|---|
committer | Caleb Tennis <caleb@gentoo.org> | 2008-08-15 21:24:35 +0000 |
commit | 71223b3f63862d6858173aa38aab13bb5a6b8c4c (patch) | |
tree | fcba7243e7fbcc2a68b48aca347069b20dd3de7e /app-misc | |
parent | amd64/x86 stable, bug #234308 (diff) | |
download | gentoo-2-71223b3f63862d6858173aa38aab13bb5a6b8c4c.tar.gz gentoo-2-71223b3f63862d6858173aa38aab13bb5a6b8c4c.tar.bz2 gentoo-2-71223b3f63862d6858173aa38aab13bb5a6b8c4c.zip |
initial import, based on bug 208963
(Portage version: 2.2_rc8/cvs/Linux 2.6.21-gentoo-r1 i686)
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/beanstalkd/ChangeLog | 11 | ||||
-rw-r--r-- | app-misc/beanstalkd/Manifest | 7 | ||||
-rw-r--r-- | app-misc/beanstalkd/beanstalkd-1.0.ebuild | 42 | ||||
-rw-r--r-- | app-misc/beanstalkd/files/Makefile.install.patch | 21 | ||||
-rw-r--r-- | app-misc/beanstalkd/files/conf | 15 | ||||
-rw-r--r-- | app-misc/beanstalkd/files/init | 25 | ||||
-rw-r--r-- | app-misc/beanstalkd/metadata.xml | 13 |
7 files changed, 134 insertions, 0 deletions
diff --git a/app-misc/beanstalkd/ChangeLog b/app-misc/beanstalkd/ChangeLog new file mode 100644 index 000000000000..51156345e7d9 --- /dev/null +++ b/app-misc/beanstalkd/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-misc/beanstalkd +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/beanstalkd/ChangeLog,v 1.1 2008/08/15 21:24:34 caleb Exp $ + +*beanstalkd-1.0 (15 Aug 2008) + + 15 Aug 2008; Caleb Tennis <caleb@gentoo.org> + +files/Makefile.install.patch, +files/conf, +files/init, +metadata.xml, + +beanstalkd-1.0.ebuild: + Initial import, based on bug #208963 + diff --git a/app-misc/beanstalkd/Manifest b/app-misc/beanstalkd/Manifest new file mode 100644 index 000000000000..13c6f632f8e8 --- /dev/null +++ b/app-misc/beanstalkd/Manifest @@ -0,0 +1,7 @@ +AUX Makefile.install.patch 600 RMD160 ac150feaa272492da5acd88bb9b0e64eee7ef75a SHA1 e0b73617d230a5dae2ba9b6f19a4d0fb1b573052 SHA256 002bfa193c74093da313e4e2b3778fa5251a558e5ea1f4dc556db5f53ec5fc63 +AUX conf 305 RMD160 0e6af1bb3c6ed1ea73c1f7d0ed715cbe94cb4be4 SHA1 4196f0f3b7c9c90a6bc42f676fef6189bf082ed4 SHA256 ee4ef6be36152acd120f128aaad97519d2d6edca651c43977c1d6a9079a7aa27 +AUX init 489 RMD160 7a8ed8bf881d2556a35ba97ead79aece86453c91 SHA1 dd46dfebabe2137cb65789432c3e461684e2a56f SHA256 f58c9952151eaaf08d8dc5fcea98fa6a4771acbf5c7232d55b6237553d0a7761 +DIST beanstalkd-1.0.tar.gz 46063 RMD160 a5bbd6d9b7ae9da9ad42dd7fd2880b78424a815a SHA1 fb3d2c0d043ad7484b0ffd185498b1e604f7bd98 SHA256 5043f1d9271e6c9a35df945132356996a5ac7bc4640fb87fcbfa5cfe8e13a0c4 +EBUILD beanstalkd-1.0.ebuild 885 RMD160 4fe0f950b9574e6de8a81510cac9ba964e006bf5 SHA1 5fe76735b15163ca173d58acfbf78076070f12b6 SHA256 dcb5d303145ff4c617558d24d7d6ce0e562a1d121d43d2170cfff4805703f1ab +MISC ChangeLog 338 RMD160 947c8eccea50c5666bf15757b4d1d676f141f7cf SHA1 514a8f5bcffd80fc7202db32f392778c5555e848 SHA256 6eb59d360ff578dd13671db7d47efc338dd4699364028705d0bbdca7a3ef03a7 +MISC metadata.xml 345 RMD160 67d3546b27d6f35543cdf4b379c20b5fc7addb72 SHA1 730756ba047ac5c039e89c6294f7c9c479ffed78 SHA256 f8af89f96c1ae00692cb487dea57b503b49d1b1766a28334901bc9398022e198 diff --git a/app-misc/beanstalkd/beanstalkd-1.0.ebuild b/app-misc/beanstalkd/beanstalkd-1.0.ebuild new file mode 100644 index 000000000000..132a072f59d4 --- /dev/null +++ b/app-misc/beanstalkd/beanstalkd-1.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/beanstalkd/beanstalkd-1.0.ebuild,v 1.1 2008/08/15 21:24:34 caleb Exp $ + +inherit eutils + +DESCRIPTION="A fast, distributed, in-memory workqueue service" +HOMEPAGE="http://xph.us/software/beanstalkd/" +SRC_URI="http://xph.us/software/beanstalkd/rel/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" + +RDEPEND=">=dev-libs/libevent-1.3" +DEPEND="${RDEPEND}" + +IUSE="" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/Makefile.install.patch" +} + +src_compile() { + emake || die "emake failed." +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed." + + dodoc README TODO doc/*.txt + + newconfd "${FILESDIR}/conf" beanstalkd + newinitd "${FILESDIR}/init" beanstalkd +} + +pkg_postinst() { + enewuser beanstalk -1 -1 /dev/null daemon +} diff --git a/app-misc/beanstalkd/files/Makefile.install.patch b/app-misc/beanstalkd/files/Makefile.install.patch new file mode 100644 index 000000000000..c95112e1a619 --- /dev/null +++ b/app-misc/beanstalkd/files/Makefile.install.patch @@ -0,0 +1,21 @@ +--- Makefile 2008-02-05 17:02:37.000000000 +1300 ++++ Makefile.install 2008-02-05 17:03:27.000000000 +1300 +@@ -1,6 +1,7 @@ + program := beanstalkd + export CFLAGS := $(LDFLAGS) -Wall -Werror + export LDFLAGS := $(LDFLAGS) -levent ++export BINDIR := $(DESTDIR)/usr/bin + + sources := $(shell ls *.c | fgrep -v $(program)) + objects := $(sources:.c=.o) +@@ -9,6 +10,10 @@ + all: export CFLAGS := $(CFLAGS) -O2 + all: $(program) + ++install: all ++ mkdir -p "$(BINDIR)" ++ install $(program) "$(BINDIR)" ++ + debug: export CFLAGS := $(CFLAGS) -g -pg -DDEBUG + debug: export LDFLAGS := $(LDFLAGS) -pg + debug: $(program) diff --git a/app-misc/beanstalkd/files/conf b/app-misc/beanstalkd/files/conf new file mode 100644 index 000000000000..b5293abda33e --- /dev/null +++ b/app-misc/beanstalkd/files/conf @@ -0,0 +1,15 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/beanstalkd/files/conf,v 1.1 2008/08/15 21:24:35 caleb Exp $ + +BEANSTALKD_BINARY="/usr/bin/beanstalkd" +PIDFILE="/var/run/beanstalkd.pid" + +# User to run as +USER="beanstalk" + +# Port to listen on +PORT="11300" + +# Address to listen on +ADDR="127.0.0.1" diff --git a/app-misc/beanstalkd/files/init b/app-misc/beanstalkd/files/init new file mode 100644 index 000000000000..af1c5c36c387 --- /dev/null +++ b/app-misc/beanstalkd/files/init @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/beanstalkd/files/init,v 1.1 2008/08/15 21:24:35 caleb Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting beanstalkd" + /sbin/start-stop-daemon --start \ + --pidfile ${PIDFILE} \ + --exec ${BEANSTALKD_BINARY} \ + -- -d -p ${PORT} -l ${ADDR} -u ${USER} + eend $? +} + +stop() { + ebegin "Stopping beanstalkd" + start-stop-daemon --stop --quiet \ + --pidfile ${PIDFILE} \ + --exec ${BEANSTALKD_BINARY} + eend $? +} diff --git a/app-misc/beanstalkd/metadata.xml b/app-misc/beanstalkd/metadata.xml new file mode 100644 index 000000000000..69fab40b9e36 --- /dev/null +++ b/app-misc/beanstalkd/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> +<email>caleb@gentoo.org</email> +<name>Caleb Tennis</name> +</maintainer> +<longdescription lang="en"> +beanstalked is a fast distributed workqueue service +</longdescription> +</pkgmetadata> + |