Update net/websocketd to the latest release.  Also, websocketd --version
was broken, so this patches in the correct version to make that work as
expected.

Ok?

Index: net/websocketd/Makefile
===================================================================
RCS file: /work/cvsroot/ports/net/websocketd/Makefile,v
retrieving revision 1.4
diff -p -u -r1.4 Makefile
--- net/websocketd/Makefile     8 Jun 2015 09:17:04 -0000       1.4
+++ net/websocketd/Makefile     15 Jul 2015 19:10:58 -0000
@@ -2,13 +2,12 @@
 
 COMMENT =              access any command-line tool via a WebSocket
 
-V =                    0.2.10
+V =                    0.2.11
 VERSION =              $V
 DISTNAME =             websocketd-$V
 GH_ACCOUNT =           joewalnes
 GH_PROJECT =           websocketd
 GH_TAGNAME =           v$V
-REVISION =             1
 
 CATEGORIES =           net www
 
@@ -26,6 +25,10 @@ MODULES +=           lang/go
 BUILD_DEPENDS =                net/go-websocket
 
 NO_TEST =              Yes
+SUBST_VARS =           VERSION
+
+pre-build:
+       @${SUBST_CMD} ${WRKSRC}/version.go
 
 post-install:
        ${INSTALL_MAN} ${WRKSRC}/release/websocketd.man                 \
Index: net/websocketd/distinfo
===================================================================
RCS file: /work/cvsroot/ports/net/websocketd/distinfo,v
retrieving revision 1.1.1.1
diff -p -u -r1.1.1.1 distinfo
--- net/websocketd/distinfo     31 Mar 2015 15:38:37 -0000      1.1.1.1
+++ net/websocketd/distinfo     15 Jul 2015 15:21:28 -0000
@@ -1,2 +1,2 @@
-SHA256 (websocketd-0.2.10.tar.gz) = 
3IRBfsx9dVFc8efVaoZ2dCPcfgGWqcj9d3i09RnvqXk=
-SIZE (websocketd-0.2.10.tar.gz) = 37196
+SHA256 (websocketd-0.2.11.tar.gz) = 
tnoHJIzYZ1NE5KhVOx6mQ01niaOZCq/l7LmNUhD4UHE=
+SIZE (websocketd-0.2.11.tar.gz) = 39373
Index: net/websocketd/patches/patch-version_go
===================================================================
RCS file: net/websocketd/patches/patch-version_go
diff -N net/websocketd/patches/patch-version_go
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ net/websocketd/patches/patch-version_go     15 Jul 2015 19:03:00 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+
+Patch version string so websocketd --version works as expected.
+--- version.go.orig    Wed Jul 15 14:01:22 2015
++++ version.go Wed Jul 15 14:01:54 2015
+@@ -13,7 +13,7 @@ import (
+ // This value can be set for releases at build time using:
+ //   go {build|run} -ldflags "-X main.version 1.2.3 -X main.buildinfo 
timestamp-@githubuser-platform".
+ // If unset, Version() shall return "DEVBUILD".
+-var version string = "DEVBUILD"
++var version string = "${VERSION}"
+ var buildinfo string = "--"
+ 
+ func Version() string {

Reply via email to