Update beanstalkd version to 1.10

This commit is contained in:
Keke Pierre 2015-11-18 18:13:47 -04:00
parent 34e2c8b350
commit 272eab453a
4 changed files with 27 additions and 19 deletions

View file

@ -1,11 +1,13 @@
# $NetBSD: Makefile,v 1.3 2014/06/01 12:49:34 thomasklausner Exp $
#
DISTNAME= v1.9
PKGNAME= beanstalkd${DISTNAME:S/v/-/1}
PKGREVISION= 1
GITHUB_TAG= v1.10
GITHUB_PROJECT= beanstalkd
DISTNAME= ${GITHUB_TAG}
PKGNAME= ${GITHUB_PROJECT}${DISTNAME:S/v/-/1}
CATEGORIES= net
MASTER_SITES= https://github.com/kr/beanstalkd/archive/
MASTER_SITES= ${MASTER_SITE_GITHUB:=kr/}
DIST_SUBDIR= ${PKGBASE}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://kr.github.io/beanstalkd/

View file

@ -1,8 +1,7 @@
$NetBSD: distinfo,v 1.1 2014/01/03 05:31:52 othyro Exp $
SHA1 (v1.9.tar.gz) = a3cdb93d9c7465491c58c8e7a99d63d779067845
RMD160 (v1.9.tar.gz) = f6bee5e32abdaabad1b3211e782c4ca91f9f5888
Size (v1.9.tar.gz) = 63794 bytes
SHA1 (patch-Makefile) = b1a9bf20b52711868bcf07947d18557f140c2956
SHA1 (patch-darwin.c) = f2040f4a8ab84213c9c69d6c78962900cab37774
SHA1 (patch-dat.h) = ba5ff30986e077f33bb53804c86f2c655372d577
SHA1 (beanstalkd/v1.10.tar.gz) = bfc0ccf99e15b15eac03ec1d8a57a3aaff143237
RMD160 (beanstalkd/v1.10.tar.gz) = bcd40208a48499cb3662f44b99484b5c992223a0
Size (beanstalkd/v1.10.tar.gz) = 66243 bytes
SHA1 (patch-Makefile) = 30c5095705d93a9ed11958d1c78bc481d2c45163
SHA1 (patch-darwin.c) = 83db9922d20d12cff4f99c5214a45ffdc17285c2

View file

@ -2,17 +2,16 @@ $NetBSD: patch-Makefile,v 1.1 2014/01/03 05:31:52 othyro Exp $
Add NetBSD support. Don't hardcode ${PREFIX}.
--- Makefile.orig 2013-04-14 17:19:41.000000000 +0000
--- Makefile.orig 2014-08-05 03:39:54.000000000 +0000
+++ Makefile
@@ -1,5 +1,5 @@
DESTDIR=
-PREFIX=/usr/local
-BINDIR=$(PREFIX)/bin
+#PREFIX=/usr/local
+BINDIR=${DESTDIR}${PREFIX}/bin
+PREFIX?=/usr/local
BINDIR=$(DESTDIR)$(PREFIX)/bin
CFLAGS=-Wall -Werror\
-Wformat=2\
-g\
@@ -91,3 +91,5 @@ doc/beanstalkd.1 doc/beanstalkd.1.html:
@@ -96,3 +96,5 @@ doc/beanstalkd.1 doc/beanstalkd.1.html:
ronn $<
freebsd.o: darwin.c

View file

@ -2,23 +2,31 @@ $NetBSD: patch-darwin.c,v 1.1 2014/01/03 05:31:52 othyro Exp $
Fix casting errors.
--- darwin.c.orig 2013-04-14 17:19:41.000000000 +0000
--- darwin.c.orig 2014-08-05 03:39:54.000000000 +0000
+++ darwin.c
@@ -79,7 +79,7 @@ sockwant(Socket *s, int rw)
@@ -79,7 +79,11 @@ sockwant(Socket *s, int rw)
ev->data = Infinity;
}
ev->flags = EV_ADD;
- ev->udata = s;
+#if defined(__NetBSD__)
+ ev->udata = (intptr_t) s;
+#else
+ ev->udata = s;
+#endif
s->added = ev->filter;
ev++;
n++;
@@ -105,7 +105,7 @@ socknext(Socket **s, int64 timeout)
@@ -105,7 +109,11 @@ socknext(Socket **s, int64 timeout)
}
if (r > 0) {
- *s = ev.udata;
+#if defined(__NetBSD__)
+ *s = (Socket *) ev.udata;
+#else
+ *s = ev.udata;
+#endif
if (ev.flags & EV_EOF) {
return 'h';
}