Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Oct 2016 14:21:19 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r424767 - in head/www: . minio minio/files
Message-ID:  <201610271421.u9RELJt4013762@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Thu Oct 27 14:21:19 2016
New Revision: 424767
URL: https://svnweb.freebsd.org/changeset/ports/424767

Log:
  www/minio: create port
  
  Minio is an object storage server built for cloud application developers and
  devops.
  
  WWW: https://minio.io/

Added:
  head/www/minio/
  head/www/minio/Makefile   (contents, props changed)
  head/www/minio/distinfo   (contents, props changed)
  head/www/minio/files/
  head/www/minio/files/patch-Makefile   (contents, props changed)
  head/www/minio/files/patch-buildscripts_gen-ldflags.go   (contents, props changed)
  head/www/minio/pkg-descr   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Thu Oct 27 14:12:23 2016	(r424766)
+++ head/www/Makefile	Thu Oct 27 14:21:19 2016	(r424767)
@@ -403,6 +403,7 @@
     SUBDIR += midori
     SUBDIR += mimetex
     SUBDIR += mini_httpd
+    SUBDIR += minio
     SUBDIR += mitmproxy
     SUBDIR += mkapachepw
     SUBDIR += mknmz-wwwoffle

Added: head/www/minio/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/minio/Makefile	Thu Oct 27 14:21:19 2016	(r424767)
@@ -0,0 +1,26 @@
+# $FreeBSD$
+
+PORTNAME=	minio
+PORTVERSION=	2016.10.24.21.23.47
+CATEGORIES=	www
+
+MAINTAINER=	swills@FreeBSD.org
+COMMENT=	Amazon S3 compatible object storage server
+
+BUILD_DEPENDS=	go>=1.6:lang/go \
+		bash:shells/bash
+
+USES=		gmake
+
+USE_GITHUB=	yes
+GH_TAGNAME=	RELEASE.2016-10-24T21-23-47Z
+GH_SUBDIR=	src/github.com/${GH_ACCOUNT}/${PORTNAME}
+MAKE_ENV=	GOPATH=${WRKSRC} GOROOT=${LOCALBASE}/go
+
+STRIP=		# stripping can break go binaries
+PLIST_FILES=	bin/minio
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
+.include <bsd.port.mk>

Added: head/www/minio/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/minio/distinfo	Thu Oct 27 14:21:19 2016	(r424767)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1477484969
+SHA256 (minio-minio-2016.10.24.21.23.47-RELEASE.2016-10-24T21-23-47Z_GH0.tar.gz) = 1c70f7c9964cc7e67dee479ca6e24952a1756b30182e8ad012e8f32dd4d3c547
+SIZE (minio-minio-2016.10.24.21.23.47-RELEASE.2016-10-24T21-23-47Z_GH0.tar.gz) = 1441818

Added: head/www/minio/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/minio/files/patch-Makefile	Thu Oct 27 14:21:19 2016	(r424767)
@@ -0,0 +1,24 @@
+--- Makefile.orig	2016-10-24 20:34:01 UTC
++++ Makefile
+@@ -95,7 +95,7 @@ cyclo:
+ 	@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/gocyclo -over 65 cmd
+ 	@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/gocyclo -over 65 pkg
+ 
+-build: getdeps verifiers $(UI_ASSETS)
++build: $(UI_ASSETS)
+ 
+ deadcode:
+ 	@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/deadcode
+@@ -131,10 +131,10 @@ pkg-list:
+ 
+ install: gomake-all
+ 
+-release: verifiers
++release:
+ 	@MINIO_RELEASE=RELEASE ./buildscripts/build.sh
+ 
+-experimental: verifiers
++experimental:
+ 	@MINIO_RELEASE=EXPERIMENTAL ./buildscripts/build.sh
+ 
+ clean:

Added: head/www/minio/files/patch-buildscripts_gen-ldflags.go
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/minio/files/patch-buildscripts_gen-ldflags.go	Thu Oct 27 14:21:19 2016	(r424767)
@@ -0,0 +1,28 @@
+--- buildscripts/gen-ldflags.go.orig	2016-10-24 20:34:01 UTC
++++ buildscripts/gen-ldflags.go
+@@ -23,15 +23,13 @@ import (
+ 	"os"
+ 	"os/exec"
+ 	"strings"
+-	"time"
+ )
+ 
+ func genLDFlags(version string) string {
+ 	var ldflagsStr string
+-	ldflagsStr = "-X github.com/minio/minio/cmd.Version=" + version
+-	ldflagsStr += " -X github.com/minio/minio/cmd.ReleaseTag=" + releaseTag(version)
+-	ldflagsStr += " -X github.com/minio/minio/cmd.CommitID=" + commitID()
+-	ldflagsStr += " -X github.com/minio/minio/cmd.ShortCommitID=" + commitID()[:12]
++	ldflagsStr = "-X github.com/minio/minio/cmd.Version=2016-10-24T21:23:47Z"
++	ldflagsStr += " -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2016-10-24T21-23-47Z"
++        ldflagsStr += " -X github.com/minio/minio/cmd.CommitID=048af5e5cdc1344e83231c09079828a3d289e6df"
+ 	ldflagsStr += " -X github.com/minio/minio/cmd.GOPATH=" + os.Getenv("GOPATH")
+ 	return ldflagsStr
+ }
+@@ -67,5 +65,5 @@ func commitID() string {
+ }
+ 
+ func main() {
+-	fmt.Println(genLDFlags(time.Now().UTC().Format(time.RFC3339)))
++	fmt.Println(genLDFlags("2016-10-24T21:23:47Z"))
+ }

Added: head/www/minio/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/minio/pkg-descr	Thu Oct 27 14:21:19 2016	(r424767)
@@ -0,0 +1,4 @@
+Minio is an object storage server built for cloud application developers and
+devops.
+
+WWW: https://minio.io/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610271421.u9RELJt4013762>