From 6e8a5cf1d407305d0db6b91fc7f66fb1277d9878 Mon Sep 17 00:00:00 2001 From: Sergey Matveychuk Date: Mon, 11 Jul 2005 09:01:50 +0000 Subject: - Update to 1.1.12 - rcNGfy Submitted by: glebius Approved by: maintainer timeout (1 month) --- databases/memcached/Makefile | 12 ++++++++++-- databases/memcached/distinfo | 4 ++-- databases/memcached/files/memcached.sh | 21 +++++++++++++++++++++ databases/memcached/pkg-plist | 1 + 4 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 databases/memcached/files/memcached.sh (limited to 'databases/memcached') diff --git a/databases/memcached/Makefile b/databases/memcached/Makefile index 6ef085aa1f89..1ebaca4e4b5d 100644 --- a/databases/memcached/Makefile +++ b/databases/memcached/Makefile @@ -6,8 +6,7 @@ # PORTNAME= memcached -PORTVERSION= 1.1.11 -PORTREVISION= 1 +PORTVERSION= 1.1.12 CATEGORIES= databases MASTER_SITES= http://www.danga.com/memcached/dist/ @@ -25,11 +24,20 @@ MAN1= memcached.1 DOCS_LIST= memory_management.txt protocol.txt +USE_RC_SUBR= yes + +SED_SCRIPT= -e 's,%%PREFIX%%,${PREFIX},g' \ + -e 's,%%RC_SUBR%%,${RC_SUBR},g' + post-configure: @${REINPLACE_CMD} -e 's#doc/memcached.1##' ${WRKSRC}/Makefile +post-build: + @${SED} ${SED_SCRIPT} ${FILESDIR}/memcached.sh > ${WRKDIR}/memcached.sh + post-install: ${INSTALL_MAN} ${MAN1:S!^!${WRKSRC}/doc/!} ${MAN1PREFIX}/man/man1 + ${INSTALL_SCRIPT} ${WRKDIR}/memcached.sh ${PREFIX}/etc/rc.d/memcached.sh .ifndef(NOPORTDOCS) @${ECHO_MSG} "===> Installing documentation for ${PKGNAME}" ${MKDIR} ${DOCSDIR} diff --git a/databases/memcached/distinfo b/databases/memcached/distinfo index 10c7724de093..d0fc6b8384bf 100644 --- a/databases/memcached/distinfo +++ b/databases/memcached/distinfo @@ -1,2 +1,2 @@ -MD5 (memcached-1.1.11.tar.gz) = f42301c02e4223a1f2298dd3d3c30d90 -SIZE (memcached-1.1.11.tar.gz) = 112954 +MD5 (memcached-1.1.12.tar.gz) = a1236dad33e9ac6c36d53faa8da61780 +SIZE (memcached-1.1.12.tar.gz) = 114103 diff --git a/databases/memcached/files/memcached.sh b/databases/memcached/files/memcached.sh new file mode 100644 index 000000000000..f0082cdeb4a1 --- /dev/null +++ b/databases/memcached/files/memcached.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# + +# PROVIDE: memcached +# REQUIRE: NETWORKING + +# +# Add the following lines to /etc/rc.conf to run memcached: +# +#memcached_enable="YES" +#memcached_flags="" +# +. %%RC_SUBR%% + +name="memcached" +rcvar=`set_rcvar` +command=%%PREFIX%%/bin/memcached +command_args="-du nobody ${memcached_flags}" + +load_rc_config $name +run_rc_command "$1" diff --git a/databases/memcached/pkg-plist b/databases/memcached/pkg-plist index bd06b67299d6..67330ebe4cdd 100644 --- a/databases/memcached/pkg-plist +++ b/databases/memcached/pkg-plist @@ -1,4 +1,5 @@ bin/memcached +etc/rc.d/memcached.sh %%PORTDOCS%%%%DOCSDIR%%/memory_management.txt %%PORTDOCS%%%%DOCSDIR%%/protocol.txt %%PORTDOCS%%@dirrm %%DOCSDIR%% -- cgit v1.2.3