From 9d779315cfe1c9a2cd128db308bad04b412c5fad Mon Sep 17 00:00:00 2001 From: Julien Laffaye Date: Mon, 14 May 2012 22:01:25 +0000 Subject: - Update to 20120405 PR: ports/167342 Submitted by: jlaffaye, Grzegorz Blach (maintainer) Approved by: Grzegorz Blach (maintainer) --- databases/godis/Makefile | 16 ++++++++++++---- databases/godis/distinfo | 4 ++-- databases/godis/files/patch-conn.go | 24 ------------------------ databases/godis/pkg-plist | 9 +++++++++ 4 files changed, 23 insertions(+), 30 deletions(-) delete mode 100644 databases/godis/files/patch-conn.go create mode 100644 databases/godis/pkg-plist (limited to 'databases/godis') diff --git a/databases/godis/Makefile b/databases/godis/Makefile index 30c5296cffa6..27df8eb7fcf3 100644 --- a/databases/godis/Makefile +++ b/databases/godis/Makefile @@ -6,17 +6,25 @@ # PORTNAME= godis -PORTVERSION= 20110803 -PORTREVISION= 3 +PORTVERSION= 20120405 CATEGORIES= databases MASTER_SITES= LOCAL/jlaffaye MAINTAINER= magik@roorback.net COMMENT= A Redis client library written in Go -PLIST_FILES= ${GO_LIBDIR}/godis.a - USE_GO= yes +GO_PKGNAME= ${SUBLIBDIR}/${PORTNAME} + +SUBLIBDIR= github.com/simonz05 + +do-install: + ${MKDIR} ${GO_LOCAL_LIBDIR}/${SUBLIBDIR} + ${INSTALL_DATA} ${GO_WRKDIR_PKG}/${SUBLIBDIR}/godis.a ${GO_LOCAL_LIBDIR}/${SUBLIBDIR} + ${MKDIR} ${GO_LOCAL_SRCDIR}/${GO_PKGNAME} +.for f in godis.go commands.go conn.go + ${INSTALL_DATA} ${GO_WRKSRC}/${f} ${GO_LOCAL_SRCDIR}/${GO_PKGNAME} +.endfor .include .include "${PORTSDIR}/lang/go/files/bsd.go.mk" diff --git a/databases/godis/distinfo b/databases/godis/distinfo index 7e2b52ff416f..3a16816c0db6 100644 --- a/databases/godis/distinfo +++ b/databases/godis/distinfo @@ -1,2 +1,2 @@ -SHA256 (godis-20110803.tar.gz) = 24a3fb5e90983caa23163b33ed2d18d997747d5683f92fc1cbf335ad5bfed917 -SIZE (godis-20110803.tar.gz) = 15584 +SHA256 (godis-20120405.tar.gz) = 5be02502b07386085ac4ba6d92b749a7829fd694ad8bfee0d15b0960074b44b2 +SIZE (godis-20120405.tar.gz) = 17712 diff --git a/databases/godis/files/patch-conn.go b/databases/godis/files/patch-conn.go deleted file mode 100644 index 2ebb27bcd9d1..000000000000 --- a/databases/godis/files/patch-conn.go +++ /dev/null @@ -1,24 +0,0 @@ ---- conn.go.orig 2011-09-04 22:00:03.000000000 +0200 -+++ conn.go 2012-01-18 21:31:25.000000000 +0100 -@@ -342,8 +342,8 @@ - } - - func (cc *conn) configConn(db int, password string) os.Error { -- if db != 0 { -- buf := [][]byte{[]byte("SELECT"), []byte(strconv.Itoa(db))} -+ if password != "" { -+ buf := [][]byte{[]byte("AUTH"), []byte(password)} - _, err := cc.rwc.Write(buildCmd(buf)) - - if err != nil { -@@ -356,8 +356,8 @@ - } - } - -- if password != "" { -- buf := [][]byte{[]byte("AUTH"), []byte(password)} -+ if db != 0 { -+ buf := [][]byte{[]byte("SELECT"), []byte(strconv.Itoa(db))} - _, err := cc.rwc.Write(buildCmd(buf)) - - if err != nil { \ No newline at end of file diff --git a/databases/godis/pkg-plist b/databases/godis/pkg-plist new file mode 100644 index 000000000000..467936bf8bf3 --- /dev/null +++ b/databases/godis/pkg-plist @@ -0,0 +1,9 @@ +%%GO_LIBDIR%%/github.com/simonz05/godis.a +%%GO_SRCDIR%%/%%GO_PKGNAME%%/godis.go +%%GO_SRCDIR%%/%%GO_PKGNAME%%/commands.go +%%GO_SRCDIR%%/%%GO_PKGNAME%%/conn.go +@dirrmtry %%GO_LIBDIR%%/github.com/simonz05 +@dirrmtry %%GO_LIBDIR%%/github.com +@dirrm %%GO_SRCDIR%%/%%GO_PKGNAME%% +@dirrmtry %%GO_SRCDIR%%/github.com/simonz05 +@dirrmtry %%GO_SRCDIR%%/github.com -- cgit v1.2.3