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/beanstalkd/files | |
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/beanstalkd/files')
-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 |
3 files changed, 61 insertions, 0 deletions
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 $? +} |