diff options
author | mm <mm@FreeBSD.org> | 2010-04-19 21:38:34 +0800 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2010-04-19 21:38:34 +0800 |
commit | 4f283cb4a1e82b24c012f039192210d34e0718f9 (patch) | |
tree | a6e27801cfc0f0b27cc447d9bb9f6ba69e83fda2 /databases | |
parent | 6f4781b5644493303b29a54e71e97a354a719d64 (diff) | |
download | freebsd-ports-gnome-4f283cb4a1e82b24c012f039192210d34e0718f9.tar.gz freebsd-ports-gnome-4f283cb4a1e82b24c012f039192210d34e0718f9.tar.zst freebsd-ports-gnome-4f283cb4a1e82b24c012f039192210d34e0718f9.zip |
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.
WWW: http://www.danga.com/memcached/
New memcached versions (1.4.x) have broken several site installations
so this port will provide compatibility for sites that still rely on
memcached 1.2.x.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/memcached12/Makefile | 78 | ||||
-rw-r--r-- | databases/memcached12/distinfo | 6 | ||||
-rw-r--r-- | databases/memcached12/files/memcached.in | 33 | ||||
-rw-r--r-- | databases/memcached12/pkg-descr | 5 |
5 files changed, 123 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index 2d538f95b584..b45fe5e8e411 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -172,6 +172,7 @@ SUBDIR += mantis SUBDIR += mdbtools SUBDIR += memcached + SUBDIR += memcached12 SUBDIR += memcachedb SUBDIR += mergeant SUBDIR += metakit diff --git a/databases/memcached12/Makefile b/databases/memcached12/Makefile new file mode 100644 index 000000000000..da7f9536c182 --- /dev/null +++ b/databases/memcached12/Makefile @@ -0,0 +1,78 @@ +# New ports collection makefile for: memcached +# Date created: July 21, 2003 +# Whom: Sean Chittenden <seanc@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= memcached +PORTVERSION= 1.2.8 +CATEGORIES= databases +MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} \ + ${MASTER_SITE_GENTOO} +MASTER_SITE_SUBDIR= distfiles + +MAINTAINER= mm@FreeBSD.org +COMMENT= High-performance distributed memory object cache system + +LIB_DEPENDS= event-1.4:${PORTSDIR}/devel/libevent + +CONFLICTS= memcached-1.4* + +USE_RC_SUBR= memcached +GNU_CONFIGURE= YES +CONFIGURE_ARGS= --with-libevent=${LOCALBASE} --program-prefix= + +OPTIONS= REPCACHED "Enable data replication feature" off \ + SASL "Enable SASL support" off + +MAN1= memcached.1 + +PLIST_FILES= bin/memcached \ + bin/memcached-tool + +PORTDOCS= protocol.txt threads.txt + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 800000 +CFLAGS+= -fstack-protector +.endif + +.if defined(WITH_REPCACHED) +# WWW: http://repcached.lab.klab.org/ +PATCH_SITES+= ${MASTER_SITE_SOURCEFORGE:C/%SUBDIR%/repcached\/repcached\/2.2-${PORTVERSION}/} +PATCH_DIST_STRIP+= -p1 +PATCHFILES+= repcached-2.2-${PORTVERSION}.patch.gz +CONFIGURE_ARGS+= --enable-replication --disable-threads +.endif + +.if defined(WITH_SASL) && !defined(WITHOUT_SASL) +LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2 +CONFIGURE_ARGS+= --enable-sasl +CFLAGS+= -I${LOCALBASE}/include +CPPFLAGS= ${CFLAGS} +LDFLAGS+= -L${LOCALBASE}/lib +CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" +.else +CONFIGURE_ARGS+= --disable-sasl +.endif + +post-configure: + @${REINPLACE_CMD} -e 's#doc/memcached.1##' ${WRKSRC}/Makefile + +post-install: + ${INSTALL_SCRIPT} ${WRKSRC}/scripts/memcached-tool ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/doc/${MAN1} ${MAN1PREFIX}/man/man1 +.if !defined(NOPORTDOCS) + @${ECHO_MSG} "===> Installing documentation for ${PKGNAME}" + @${MKDIR} ${DOCSDIR} +.for i in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR} +.endfor +.endif + +test: + ${MAKE} -C ${WRKSRC} test + +.include <bsd.port.post.mk> diff --git a/databases/memcached12/distinfo b/databases/memcached12/distinfo new file mode 100644 index 000000000000..9ef0b88b3444 --- /dev/null +++ b/databases/memcached12/distinfo @@ -0,0 +1,6 @@ +MD5 (memcached-1.2.8.tar.gz) = e5a4ee04e517a5cad110f29e4490e4ab +SHA256 (memcached-1.2.8.tar.gz) = 9e36702833a9213d607801a44325d108e6b86abc7af82fe265cce4b96eb2269e +SIZE (memcached-1.2.8.tar.gz) = 221285 +MD5 (repcached-2.2-1.2.8.patch.gz) = c39a75e508379ffa41488d7f032f96be +SHA256 (repcached-2.2-1.2.8.patch.gz) = 4e08ffa533cb825d6e26305891bbdd51bd92daf9e42243e082959852afdbd990 +SIZE (repcached-2.2-1.2.8.patch.gz) = 52898 diff --git a/databases/memcached12/files/memcached.in b/databases/memcached12/files/memcached.in new file mode 100644 index 000000000000..f06fdf17aeda --- /dev/null +++ b/databases/memcached12/files/memcached.in @@ -0,0 +1,33 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: memcached +# REQUIRE: DAEMON +# +# Add the following lines to /etc/rc.conf to run memcached: +# +# memcached_enable (bool): Set it to "YES" to enable memcached. +# Default is "NO". +# memcached_flags (flags): Set extra flags here. More options in memcached(1) +# Default is empty "". +# memcached_user (user): Set user to run memcached. +# Default is "nobody". +# + +. %%RC_SUBR%% + +name="memcached" +rcvar=${name}_enable + +load_rc_config ${name} + +: ${memcached_enable="NO"} +: ${memcached_user="nobody"} + +command=%%PREFIX%%/bin/memcached +command_args="-d -u ${memcached_user}" + +unset memcached_user + +run_rc_command "$1" diff --git a/databases/memcached12/pkg-descr b/databases/memcached12/pkg-descr new file mode 100644 index 000000000000..13b7e1bf31d1 --- /dev/null +++ b/databases/memcached12/pkg-descr @@ -0,0 +1,5 @@ +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. + +WWW: http://www.danga.com/memcached/ |