set version and release-tag in 'version' output

This commit is contained in:
jasper 2018-03-06 18:38:02 +00:00
parent 8288bad114
commit 06590f0199
3 changed files with 17 additions and 8 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile.inc,v 1.2 2018/03/04 12:56:14 jasper Exp $
# $OpenBSD: Makefile.inc,v 1.3 2018/03/06 18:38:02 jasper Exp $
GH_ACCOUNT ?= minio
@ -6,10 +6,13 @@ CATEGORIES = net sysutils
HOMEPAGE = https://minio.io
MAINTAINER = Jasper Lievisse Adriaanse <jasper@openbsd.org>
# APACHEv2
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c pthread
MODULES = lang/go
MAINTAINER = Jasper Lievisse Adriaanse <jasper@openbsd.org>
MODGO_LDFLAGS += -X "github.com/minio/${GH_PROJECT}/cmd.Version=${V:C/T([0-9]+)-([0-9]+)-([0-9]+)/T\1:\2:\3/}" \
-X "github.com/minio/${GH_PROJECT}/cmd.ReleaseTag=${GH_TAGNAME}"

View File

@ -1,10 +1,12 @@
# $OpenBSD: Makefile,v 1.2 2018/03/04 12:56:51 jasper Exp $
# $OpenBSD: Makefile,v 1.3 2018/03/06 18:38:02 jasper Exp $
COMMENT = cli for minio
V = 2018-02-09T23-07-36Z
GH_PROJECT = mc
GH_TAGNAME = RELEASE.2018-02-09T23-07-36Z
PKGNAME = minioc-0.20180209
GH_TAGNAME = RELEASE.${V}
PKGNAME = minioc-0.${V:C/T.*//:S/-//g}
REVISION = 0
post-install:
mv ${PREFIX}/bin/{mc,minioc}

View File

@ -1,9 +1,13 @@
# $OpenBSD: Makefile,v 1.4 2018/03/04 12:56:14 jasper Exp $
# $OpenBSD: Makefile,v 1.5 2018/03/06 18:38:02 jasper Exp $
COMMENT = object storage server compatible with Amazon S3 APIs
V = 2018-01-18T20-33-21Z
GH_PROJECT = minio
GH_TAGNAME = RELEASE.2018-01-18T20-33-21Z
PKGNAME = minio-0.20180118
GH_TAGNAME = RELEASE.${V}
PKGNAME = minio-0.${V:C/T.*//:S/-//g}
REVISION = 0
SUBST_VARS = VARBASE
.include <bsd.port.mk>