freebsd-ports/net-mgmt/semaphore/files/patch-util_config.go
Vinícius Zavam 22d108cb5f net-mgmt/semaphore: update 2.4.1 to 2.5.1
- Makefile

    adopt the port; pet portlint;
    add LICENSE;
    use USES=go (introducing GO_ENV and GO_BUILDFLAGS);
    push vendor tree to 'public/vendor' (upstream change);
    offer MYSQL support (defined by upstream).

  - files/*

    patch-util_config.go -> patch failing 'printVersion' (undef var).

Approved by:	rene (mentor)
Differential Revision:	https://reviews.freebsd.org/D19045
2019-02-26 09:05:30 +00:00

12 lines
351 B
Go

--- util/config.go.orig 2019-01-31 14:41:03 UTC
+++ util/config.go
@@ -26,6 +26,8 @@
var Upgrade bool
// WebHostURL is the public route to the semaphore server
var WebHostURL *url.URL
+// FreeBSD's Semaphore Version Information (patched with REINPLACE_CMD call at the do-build stage)
+var Version = "%%PORTVERSION%%"
const (
longPos = "yes"