Skip to content

Instantly share code, notes, and snippets.

@dbalan
Created April 24, 2017 15:51
Show Gist options
  • Save dbalan/85c9d94dd060856873e92fffef5fa5e6 to your computer and use it in GitHub Desktop.
Save dbalan/85c9d94dd060856873e92fffef5fa5e6 to your computer and use it in GitHub Desktop.
diff -ruN minio-client.bak/distinfo minio-client/distinfo
--- minio-client.bak/distinfo 2017-02-18 10:30:52.000000000 +0000
+++ minio-client/distinfo 2017-04-24 15:16:37.975411000 +0000
@@ -1,3 +1,3 @@
-TIMESTAMP = 1487205021
-SHA256 (minio-mc-2017.02.06.20.16.19-RELEASE.2017-02-06T20-16-19Z_GH0.tar.gz) = 2ee46a826ff961683d8ed25e18598576a68bdebe79dcce9adf3219d34f9ec64c
-SIZE (minio-mc-2017.02.06.20.16.19-RELEASE.2017-02-06T20-16-19Z_GH0.tar.gz) = 1009728
+TIMESTAMP = 1493046997
+SHA256 (minio-mc-2017.04.03.18.35.01-RELEASE.2017-04-03T18-35-01Z_GH0.tar.gz) = 0c3625057e48ba79de90425f67b435f12c6f51555ad6c4202c3c3f20e4ea2bf8
+SIZE (minio-mc-2017.04.03.18.35.01-RELEASE.2017-04-03T18-35-01Z_GH0.tar.gz) = 1025277
diff -ruN minio-client.bak/Makefile minio-client/Makefile
--- minio-client.bak/Makefile 2017-03-22 12:10:26.000000000 +0000
+++ minio-client/Makefile 2017-04-24 15:38:04.747088000 +0000
@@ -28,9 +28,10 @@
USE_GITHUB= yes
GH_ACCOUNT= minio
GH_PROJECT= mc
-GH_TAGNAME= RELEASE.2017-02-06T20-16-19Z
+GH_TAGNAME= RELEASE.2017-04-03T18-35-01Z
GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${GH_PROJECT}
MAKE_ENV= GOPATH=${WRKSRC} GOROOT=${LOCALBASE}/go
+GO_LDFLAGS= "-X github.com/minio/mc/cmd.Version=${PORTVERSION} -X github.com/minio/mc/cmd.ReleaseTag=${GH_TAGNAME}"
STRIP= # stripping can break go binaries
PLIST_FILES= bin/${MC}
@@ -38,7 +39,7 @@
do-build:
@cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}; \
${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -v -x \
- -ldflags "-X main.GitDescribe=v${PORTVERSION}" -o bin/${MC}
+ -ldflags ${GO_LDFLAGS} -o bin/${MC}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/bin/${MC} \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment