Update to 3.0.4, and include a patch to fix compile from their svn. Fixes

PHP session storage and now does locking which helps some apps.

MAINTAINER change and diff ok alek@ jasper@
This commit is contained in:
william 2010-04-06 02:08:45 +00:00
parent a1dd4f4a71
commit c89828902e
3 changed files with 48 additions and 9 deletions

View File

@ -1,16 +1,16 @@
# $OpenBSD: Makefile,v 1.9 2008/09/18 13:37:41 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.10 2010/04/06 02:08:45 william Exp $
SHARED_ONLY= Yes
COMMENT= PHP interface to memcached
DISTNAME= memcache-1.5
PKGNAME= pecl-${DISTNAME}p1
DISTNAME= memcache-3.0.4
PKGNAME= pecl-${DISTNAME}
CATEGORIES= www
HOMEPAGE= http://pecl.php.net/package/memcache
MAINTAINER= Aleksander Piotrowski <alek@openbsd.org>
MAINTAINER= William Yodlowsky <william@openbsd.org>
# PHP License
PERMIT_PACKAGE_CDROM= Yes

View File

@ -1,5 +1,5 @@
MD5 (memcache-1.5.tgz) = 9SHdTTytTMsF2a3k4cwE1A==
RMD160 (memcache-1.5.tgz) = X/HTMDI77AZ1cigEyWWtTtlj2Wk=
SHA1 (memcache-1.5.tgz) = qSWrIksjvE0FuqNdmPKKhdTA+/g=
SHA256 (memcache-1.5.tgz) = 1QBof9JwMmZhmCF1j0+ArqG66jxeXINwp6gPUWyjPbk=
SIZE (memcache-1.5.tgz) = 14291
MD5 (memcache-3.0.4.tgz) = B5M84BkSdCAeppBc1QnFsA==
RMD160 (memcache-3.0.4.tgz) = /VxVCi/Dbk5Tikc943+6r51WhbA=
SHA1 (memcache-3.0.4.tgz) = lEDetI/Vmapl+WY5RqOfq3s+hvw=
SHA256 (memcache-3.0.4.tgz) = a5npLxuzI+6PdqAcLFTYEA+Vjiq4bMIqq0lsu478pqo=
SIZE (memcache-3.0.4.tgz) = 54283

View File

@ -0,0 +1,39 @@
$OpenBSD: patch-memcache_pool_h,v 1.1 2010/04/06 02:08:45 william Exp $
Fixed PECL bug #16059 (Build error: 'MSG_NOSIGNAL' undeclared)
svn revision 277039
--- memcache_pool.h.orig Sun Feb 22 11:01:43 2009
+++ memcache_pool.h Thu Mar 18 13:46:55 2010
@@ -25,6 +25,14 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
+
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
#include <stdint.h>
#include <string.h>
@@ -40,6 +48,15 @@
#else
#define ZSTR_VAL(v) (v).s
#endif
+
+/*
+ * Mac OS X has no MSG_NOSIGNAL but >= 10.2 comes with SO_NOSIGPIPE which is a setsockopt() option
+ * and not a send() parameter as MSG_NOSIGNAL. OpenBSD has none of the options so we need to ignore
+ * SIGPIPE events
+ */
+#ifndef MSG_NOSIGNAL
+#define MSG_NOSIGNAL 0
+#endif /*MSG_NOSIGNAL*/
/* use lowest byte for flags */
#define MMC_SERIALIZED 0x0001