[Midnightbsd-cvs] mports: databases/memcached: add memcached.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Aug 1 07:47:33 EDT 2008
Log Message:
-----------
add memcached.
Added Files:
-----------
mports/databases/memcached:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
mports/databases/memcached/files:
memcached.in (r1.1)
-------------- next part --------------
--- /dev/null
+++ databases/memcached/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/
--- /dev/null
+++ databases/memcached/Makefile
@@ -0,0 +1,62 @@
+# New ports collection makefile for: memcached
+# Date created: July 31, 2008
+# Whom: Lucas Holt <Luke at MidnightBSD.org>
+#
+# $MidnightBSD: mports/databases/memcached/Makefile,v 1.1 2008/08/01 11:47:31 laffer1 Exp $
+#
+
+PORTNAME= memcached
+PORTVERSION= 1.2.5
+CATEGORIES= databases
+MASTER_SITES= http://www.danga.com/memcached/dist/ \
+ ${MASTER_SITE_GENTOO}
+MASTER_SITE_SUBDIR= distfiles
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= High-performance distributed memory object cache system
+
+LIB_DEPENDS= event-1.3e:${PORTSDIR}/devel/libevent
+
+USE_RC_SUBR= memcached
+GNU_CONFIGURE= YES
+CONFIGURE_ARGS= --with-libevent=${LOCALBASE} --program-prefix=
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+
+OPTIONS= REPCACHED "Enable data replication feature" off
+
+MAN1= memcached.1
+
+PLIST_FILES= bin/memcached \
+ bin/memcached-debug
+
+PORTDOCS= memory_management.txt protocol.txt
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_REPCACHED)
+# WWW: http://repcached.lab.klab.org/
+PATCH_SITES+= ${MASTER_SITE_SOURCEFORGE}
+PATCH_SITE_SUBDIR= repcached
+PATCH_DIST_STRIP+= -p1
+REPCACHED_VERSION= 2.0
+PATCHFILES+= repcached-${REPCACHED_VERSION}-${PORTVERSION}.patch.gz
+CONFIGURE_ARGS+= --enable-replication --disable-threads
+.endif
+
+post-configure:
+ @${REINPLACE_CMD} -e 's#doc/memcached.1##' ${WRKSRC}/Makefile
+
+post-install:
+ ${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>
--- /dev/null
+++ databases/memcached/distinfo
@@ -0,0 +1,6 @@
+MD5 (memcached-1.2.5.tar.gz) = 8ac0d1749ded88044f0f850fad979e4d
+SHA256 (memcached-1.2.5.tar.gz) = f5c763229a4a2a83d6b14d193795f64ef961b81c48f5e194f740aea6be6ffb0b
+SIZE (memcached-1.2.5.tar.gz) = 208801
+MD5 (repcached-2.0-1.2.5.patch.gz) = 2fe954ee4ca0e3a04ca60b4fe7b1d125
+SHA256 (repcached-2.0-1.2.5.patch.gz) = f60561371fee84b10bd54c993f590ffaf72a8dfb43b8f989460a50a818d934f4
+SIZE (repcached-2.0-1.2.5.patch.gz) = 16981
--- /dev/null
+++ databases/memcached/files/memcached.in
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# $MidnightBSD: mports/databases/memcached/files/memcached.in,v 1.1 2008/08/01 11:47:31 laffer1 Exp $
+#
+# 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"
More information about the Midnightbsd-cvs
mailing list