diff options
author | swills <swills@FreeBSD.org> | 2016-10-27 22:21:19 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2016-10-27 22:21:19 +0800 |
commit | 76eebcc1b2250ea81d5c84f01484d9a8d67f0330 (patch) | |
tree | 92460a658eaee39a6c4aea96f7097f142d4d2b35 /www | |
parent | 1e200598d8d1c437cd9ce070282216e5c5bfb93d (diff) | |
download | freebsd-ports-gnome-76eebcc1b2250ea81d5c84f01484d9a8d67f0330.tar.gz freebsd-ports-gnome-76eebcc1b2250ea81d5c84f01484d9a8d67f0330.tar.zst freebsd-ports-gnome-76eebcc1b2250ea81d5c84f01484d9a8d67f0330.zip |
www/minio: create port
Minio is an object storage server built for cloud application developers and
devops.
WWW: https://minio.io/
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/minio/Makefile | 26 | ||||
-rw-r--r-- | www/minio/distinfo | 3 | ||||
-rw-r--r-- | www/minio/files/patch-Makefile | 24 | ||||
-rw-r--r-- | www/minio/files/patch-buildscripts_gen-ldflags.go | 28 | ||||
-rw-r--r-- | www/minio/pkg-descr | 4 |
6 files changed, 86 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 660d33682fe4..7d550648fcce 100644 --- a/www/Makefile +++ b/www/Makefile @@ -403,6 +403,7 @@ SUBDIR += midori SUBDIR += mimetex SUBDIR += mini_httpd + SUBDIR += minio SUBDIR += mitmproxy SUBDIR += mkapachepw SUBDIR += mknmz-wwwoffle diff --git a/www/minio/Makefile b/www/minio/Makefile new file mode 100644 index 000000000000..af98366433d0 --- /dev/null +++ b/www/minio/Makefile @@ -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> diff --git a/www/minio/distinfo b/www/minio/distinfo new file mode 100644 index 000000000000..35870be896b9 --- /dev/null +++ b/www/minio/distinfo @@ -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 diff --git a/www/minio/files/patch-Makefile b/www/minio/files/patch-Makefile new file mode 100644 index 000000000000..2411494ceebb --- /dev/null +++ b/www/minio/files/patch-Makefile @@ -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: diff --git a/www/minio/files/patch-buildscripts_gen-ldflags.go b/www/minio/files/patch-buildscripts_gen-ldflags.go new file mode 100644 index 000000000000..94053c9a448e --- /dev/null +++ b/www/minio/files/patch-buildscripts_gen-ldflags.go @@ -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")) + } diff --git a/www/minio/pkg-descr b/www/minio/pkg-descr new file mode 100644 index 000000000000..f81efdd75aa7 --- /dev/null +++ b/www/minio/pkg-descr @@ -0,0 +1,4 @@ +Minio is an object storage server built for cloud application developers and +devops. + +WWW: https://minio.io/ |