aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2005-07-11 17:01:50 +0800
committersem <sem@FreeBSD.org>2005-07-11 17:01:50 +0800
commit0ccd207dc30dd04ad541356153ce7ed954c5bd42 (patch)
tree88ecfba64ae44adbfc2204b72f686d374627c2fd /databases
parent9ae7cd536565b6049ca0de64095fcc6e1fd56bc0 (diff)
downloadfreebsd-ports-gnome-0ccd207dc30dd04ad541356153ce7ed954c5bd42.tar.gz
freebsd-ports-gnome-0ccd207dc30dd04ad541356153ce7ed954c5bd42.tar.zst
freebsd-ports-gnome-0ccd207dc30dd04ad541356153ce7ed954c5bd42.zip
- Update to 1.1.12
- rcNGfy Submitted by: glebius Approved by: maintainer timeout (1 month)
Diffstat (limited to 'databases')
-rw-r--r--databases/memcached/Makefile12
-rw-r--r--databases/memcached/distinfo4
-rw-r--r--databases/memcached/files/memcached.sh21
-rw-r--r--databases/memcached/pkg-plist1
4 files changed, 34 insertions, 4 deletions
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%%