summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLisa M. Seelye <lisa@gentoo.org>2003-07-26 22:52:23 +0000
committerLisa M. Seelye <lisa@gentoo.org>2003-07-26 22:52:23 +0000
commitf37d5bdd7aa51c2456805ea08edd3dfcf6f1f797 (patch)
tree1a2e0c10b02b04c3d3d31696b54bd7759f12b6c2 /net-www/memcached
parentinitial commit for memcached (diff)
downloadhistorical-f37d5bdd7aa51c2456805ea08edd3dfcf6f1f797.tar.gz
historical-f37d5bdd7aa51c2456805ea08edd3dfcf6f1f797.tar.bz2
historical-f37d5bdd7aa51c2456805ea08edd3dfcf6f1f797.zip
initial commit for memcached
Diffstat (limited to 'net-www/memcached')
-rw-r--r--net-www/memcached/Manifest5
-rw-r--r--net-www/memcached/files/conf15
-rw-r--r--net-www/memcached/files/digest-memcached-1.1.61
-rw-r--r--net-www/memcached/files/init23
-rw-r--r--net-www/memcached/memcached-1.1.6.ebuild63
5 files changed, 106 insertions, 1 deletions
diff --git a/net-www/memcached/Manifest b/net-www/memcached/Manifest
index 56c4fd9bff24..cd3b84110bb0 100644
--- a/net-www/memcached/Manifest
+++ b/net-www/memcached/Manifest
@@ -1,2 +1,5 @@
-MD5 45ea23f42ab8421bb94f91369f089b36 memcached-1.1.6.ebuild 1144
+MD5 3c9c5e4121d5c133b57c9d9745bc4712 memcached-1.1.6.ebuild 1588
+MD5 412d7a535256c86c739eed880b0f5e67 ChangeLog 335
+MD5 199047405d8616de8c3488f685c1e93a files/conf 398
+MD5 d6661df2b2dfe3a560007b72755d94d4 files/init 502
MD5 167f7184d41c13a713a3210c0a99447a files/digest-memcached-1.1.6 66
diff --git a/net-www/memcached/files/conf b/net-www/memcached/files/conf
new file mode 100644
index 000000000000..dd42e690f875
--- /dev/null
+++ b/net-www/memcached/files/conf
@@ -0,0 +1,15 @@
+# Copyright 2003 Gentoo Technologies, Inc
+# $Header: /var/cvsroot/gentoo-x86/net-www/memcached/files/conf,v 1.1 2003/07/26 22:52:16 lisa Exp $
+# memcached config file
+
+MEMCACHED_BINARY="/usr/bin/memcached"
+
+#Specify memory usage in megabytes (do not use letters)
+MEMUSAGE="2048"
+
+
+#Listen for connections on what address?
+LISTENON="192.168.0.3"
+
+#Listen for connections on what port?
+PORT="11211"
diff --git a/net-www/memcached/files/digest-memcached-1.1.6 b/net-www/memcached/files/digest-memcached-1.1.6
new file mode 100644
index 000000000000..a3f34779d00e
--- /dev/null
+++ b/net-www/memcached/files/digest-memcached-1.1.6
@@ -0,0 +1 @@
+MD5 e175c78e66b9120aa2c007f2bbacc2b4 memcached-1.1.6.tar.gz 87833
diff --git a/net-www/memcached/files/init b/net-www/memcached/files/init
new file mode 100644
index 000000000000..963c1cd95b93
--- /dev/null
+++ b/net-www/memcached/files/init
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# $Header: /var/cvsroot/gentoo-x86/net-www/memcached/files/init,v 1.1 2003/07/26 22:52:16 lisa Exp $
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting memcached"
+ /sbin/start-stop-daemon --start \
+ --exec ${MEMCACHED_BINARY} \
+ --pidfile /var/run/memcached.pid \
+ -- -d -p ${PORT} -l ${LISTENON} -m ${MEMUSAGE}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping memcached"
+ start-stop-daemon --stop --quiet --pidfile /var/run/memcached.pid
+ rm -f /var/run/memcached.pid
+ eend $?
+}
+
diff --git a/net-www/memcached/memcached-1.1.6.ebuild b/net-www/memcached/memcached-1.1.6.ebuild
new file mode 100644
index 000000000000..ad10b74e8c96
--- /dev/null
+++ b/net-www/memcached/memcached-1.1.6.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/memcached/memcached-1.1.6.ebuild,v 1.1 2003/07/26 22:52:16 lisa Exp $
+
+DESCRIPTION="memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load."
+
+HOMEPAGE="http://www.danga.com/memcached/"
+
+SRC_URI="http://www.danga.com/memcached/${P}.tar.gz"
+
+LICENSE="BSD GPL-2"
+
+SLOT="0"
+
+KEYWORDS="~x86"
+
+IUSE="static perl"
+
+DEPEND=">=dev-libs/libevent-0.6
+ >=dev-libs/judy-20020627
+ perl? ( dev-lang/perl )
+"
+
+#RDEPEND=""
+
+S=${WORKDIR}/${P}
+
+src_compile() {
+ local myconf=""
+ use static || myconf="--disable-static ${myconf} "
+ econf ${myconf}
+ emake || die
+}
+
+src_install() {
+ dobin ${S}/memcached
+ dodoc ${S}/{AUTHORS,COPYING,ChangeLog,INSTALL,NEWS,README}
+
+ dodir /usr/lib/php/memcached
+ insinto /usr/lib/php/memcached
+ doins ${S}/api/php/MemCachedClient.inc.php
+
+ if use perl; then
+ insinto /usr/lib/perl5/vendor_perl
+ doins ${S}/api/perl/MemCachedClient.pm
+ fi
+
+ insinto /etc/conf.d
+ newins "${FILESDIR}/conf" memcached
+
+ exeinto /etc/init.d
+ newexe "${FILESDIR}/init" memcached
+}
+
+
+pkg_postinst() {
+ einfo "This package installs two APIs for usage"
+ einfo "/usr/lib/perl5/vendor_perl/MemCachedClient.pm for perl"
+ einfo "/usr/lib/php/memcached/MemCachedClient.inc.php"
+ echo ""
+ ewarn "To use the PHP one you may have to modify your php.ini"
+ ewarn "to include that directory"
+}