aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorvsevolod <vsevolod@FreeBSD.org>2008-04-11 20:55:52 +0800
committervsevolod <vsevolod@FreeBSD.org>2008-04-11 20:55:52 +0800
commit77a0fd3fce05794dfdd9b948c09a828054a3c362 (patch)
treec66649176606732bb7d84eef277e7f9f14690783 /net
parenta3c7f6fb81856b590dccdce6bb71b9fc9481bd2f (diff)
downloadfreebsd-ports-gnome-77a0fd3fce05794dfdd9b948c09a828054a3c362.tar.gz
freebsd-ports-gnome-77a0fd3fce05794dfdd9b948c09a828054a3c362.tar.zst
freebsd-ports-gnome-77a0fd3fce05794dfdd9b948c09a828054a3c362.zip
Add port net/beanstalkd - fast workqueue service.
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/beanstalkd/Makefile36
-rw-r--r--net/beanstalkd/distinfo3
-rw-r--r--net/beanstalkd/files/beanstalkd.in33
-rw-r--r--net/beanstalkd/files/patch-Makefile11
-rw-r--r--net/beanstalkd/pkg-descr6
6 files changed, 90 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 95dd93bec4b6..394d4c97e436 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -52,6 +52,7 @@
SUBDIR += bbsnet
SUBDIR += bcusdk-eibd
SUBDIR += beacon
+ SUBDIR += beanstalkd
SUBDIR += bfilter
SUBDIR += bindtest
SUBDIR += bing
diff --git a/net/beanstalkd/Makefile b/net/beanstalkd/Makefile
new file mode 100644
index 000000000000..fcedb602e007
--- /dev/null
+++ b/net/beanstalkd/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: beanstalkd
+# Date created: Apr 11, 2008
+# Whom: Vsevolod Stakhov <vsevolod@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= beanstalkd
+PORTVERSION= 0.10
+CATEGORIES= net
+MASTER_SITES= http://xph.us/software/beanstalkd/rel/
+
+MAINTAINER= vsevolod@FreeBSD.org
+COMMENT= Fast, distributed, in-memory workqueue service
+
+LIB_DEPENDS= event-1.3e:${PORTSDIR}/devel/libevent
+
+USE_RC_SUBR= beanstalkd
+USE_GMAKE= yes
+MAKE_ENV+= EVENT_CFLAGS=-I${LOCALBASE}/include EVENT_LDFLAGS=-L${LOCALBASE}/lib
+
+PLIST_FILES= bin/beanstalkd
+
+PORTDOCS= protocol.txt
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/beanstalkd ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+ @${ECHO_MSG} "===> Installing documentation for ${PKGNAME}"
+ @${MKDIR} ${DOCSDIR}
+.for i in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/net/beanstalkd/distinfo b/net/beanstalkd/distinfo
new file mode 100644
index 000000000000..c63cefee92ec
--- /dev/null
+++ b/net/beanstalkd/distinfo
@@ -0,0 +1,3 @@
+MD5 (beanstalkd-0.10.tar.gz) = 939a28454eba43a12c22811f5c47dbc4
+SHA256 (beanstalkd-0.10.tar.gz) = 4ab79363ff5c180ac7231bba74c77dff72983f60a479b15f2b70aac72d36c036
+SIZE (beanstalkd-0.10.tar.gz) = 39755
diff --git a/net/beanstalkd/files/beanstalkd.in b/net/beanstalkd/files/beanstalkd.in
new file mode 100644
index 000000000000..059cbdd68714
--- /dev/null
+++ b/net/beanstalkd/files/beanstalkd.in
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: beanstalkd
+# REQUIRE: DAEMON
+#
+# Add the following lines to /etc/rc.conf to run beanstalkd:
+#
+# beanstalkd_enable (bool): Set it to "YES" to enable beanstalkd.
+# Default is "NO".
+# beanstalkd_flags (flags): Set extra flags here. More options in beanstalkd(1)
+# Default is empty "".
+# beanstalkd_user (user): Set user to run beanstalkd.
+# Default is "nobody".
+#
+
+. %%RC_SUBR%%
+
+name="beanstalkd"
+rcvar=${name}_enable
+
+load_rc_config ${name}
+
+: ${beanstalkd_enable="NO"}
+: ${beanstalkd_user="nobody"}
+
+command=%%PREFIX%%/bin/beanstalkd
+command_args="-d -u ${beanstalkd_user}"
+
+unset beanstalkd_user
+
+run_rc_command "$1"
diff --git a/net/beanstalkd/files/patch-Makefile b/net/beanstalkd/files/patch-Makefile
new file mode 100644
index 000000000000..42d78351afae
--- /dev/null
+++ b/net/beanstalkd/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig 2008-04-11 16:41:58.835397096 +0400
++++ Makefile 2008-04-11 16:42:36.908051673 +0400
+@@ -1,6 +1,6 @@
+ program := beanstalkd
+-export CFLAGS := $(CFLAGS) -Wall -Werror
+-export LDFLAGS := $(LDFLAGS) -levent
++export CFLAGS := $(CFLAGS) -Wall -Werror $(EVENT_CFLAGS)
++export LDFLAGS := $(LDFLAGS) $(EVENT_LDFLAGS) -levent
+
+ sources := $(shell ls *.c | fgrep -v $(program))
+ objects := $(sources:.c=.o)
diff --git a/net/beanstalkd/pkg-descr b/net/beanstalkd/pkg-descr
new file mode 100644
index 000000000000..0367f3d3544d
--- /dev/null
+++ b/net/beanstalkd/pkg-descr
@@ -0,0 +1,6 @@
+Beanstalkd is a fast, distributed, in-memory workqueue service. Its interface
+is generic, but is intended for use in reducing the latency of page views in
+high-volume web applications by running most time-consuming tasks
+asynchronously.
+
+WWW: http://xph.us/software/beanstalkd/