Date: Wed, 22 Feb 2017 19:57:45 +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: r434636 - in head: . www/minio www/minio/files Message-ID: <201702221957.v1MJvj8R043656@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: swills Date: Wed Feb 22 19:57:45 2017 New Revision: 434636 URL: https://svnweb.freebsd.org/changeset/ports/434636 Log: www/minio: update to 2017.02.16.01.47.30 While here, add rc script and user PR: 217173 Submitted by: jhixson@gmail.com (with changes) Added: head/www/minio/files/minio.in (contents, props changed) Modified: head/GIDs head/UIDs head/www/minio/Makefile head/www/minio/distinfo head/www/minio/files/patch-buildscripts_gen-ldflags.go Modified: head/GIDs ============================================================================== --- head/GIDs Wed Feb 22 19:51:08 2017 (r434635) +++ head/GIDs Wed Feb 22 19:57:45 2017 (r434636) @@ -414,7 +414,7 @@ consul:*:469: serf:*:470: vault:*:471: nomad:*:472: -# free: 473 +minio:*:473: # free: 474 # free: 475 # free: 476 Modified: head/UIDs ============================================================================== --- head/UIDs Wed Feb 22 19:51:08 2017 (r434635) +++ head/UIDs Wed Feb 22 19:57:45 2017 (r434636) @@ -419,7 +419,7 @@ consul:*:469:469::0:0:Consul Daemon:/var serf:*:470:470::0:0:Serf Daemon:/nonexistent:/usr/sbin/nologin vault:*:471:471::0:0:Vault Daemon:/nonexistent:/usr/sbin/nologin nomad:*:472:472::0:0:Nomad Daemon:/var/tmp/nomad:/usr/sbin/nologin -# free: 473 +minio:*:473:473::0:0:Minio Daemon:/var/tmp/minio:/usr/sbin/nologin # free: 474 # free: 475 # free: 476 Modified: head/www/minio/Makefile ============================================================================== --- head/www/minio/Makefile Wed Feb 22 19:51:08 2017 (r434635) +++ head/www/minio/Makefile Wed Feb 22 19:57:45 2017 (r434636) @@ -1,26 +1,42 @@ # $FreeBSD$ PORTNAME= minio -PORTVERSION= 2016.12.13.17.19.42 +PORTVERSION= 2017.02.16.01.47.30 CATEGORIES= www MAINTAINER= swills@FreeBSD.org COMMENT= Amazon S3 compatible object storage server +LICENSE= APACHE20 + BUILD_DEPENDS= go>=1.7:lang/go \ bash:shells/bash -USES= gmake +USES= compiler gmake USE_GITHUB= yes -GH_TAGNAME= RELEASE.2016-12-13T17-19-42Z -GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME} +GH_TAGNAME= RELEASE.2017-02-16T01-47-30Z +GH_SUBDIR= src/github.com/minio/minio +GH_TUPLE= \ + minio:mc:RELEASE.2017-02-06T20-16-19Z:mc/src/github.com/minio/mc \ + hashicorp:go-version:03c5bf6:go_version/src/github.com/hashicorp/go-version MAKE_ENV= GOPATH=${WRKSRC} GOROOT=${LOCALBASE}/go STRIP= # stripping can break go binaries PLIST_FILES= bin/minio +USE_RC_SUBR= minio + +USERS= minio +GROUPS= minio + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${COMPILER_TYPE} == clang +BUILD_ENV= CC=clang +.endif + +.include <bsd.port.post.mk> Modified: head/www/minio/distinfo ============================================================================== --- head/www/minio/distinfo Wed Feb 22 19:51:08 2017 (r434635) +++ head/www/minio/distinfo Wed Feb 22 19:57:45 2017 (r434636) @@ -1,3 +1,7 @@ -TIMESTAMP = 1482379014 -SHA256 (minio-minio-2016.12.13.17.19.42-RELEASE.2016-12-13T17-19-42Z_GH0.tar.gz) = 1a67a85af1cf57627383e02ad339d0bbc61a4679cadf07f1179814a8725643f4 -SIZE (minio-minio-2016.12.13.17.19.42-RELEASE.2016-12-13T17-19-42Z_GH0.tar.gz) = 3132204 +TIMESTAMP = 1487789689 +SHA256 (minio-minio-2017.02.16.01.47.30-RELEASE.2017-02-16T01-47-30Z_GH0.tar.gz) = 683e4c10cb69e8fdacacc9f6ed8fde3642ea51b40cf35a3b1f44b9812d6fff5f +SIZE (minio-minio-2017.02.16.01.47.30-RELEASE.2017-02-16T01-47-30Z_GH0.tar.gz) = 3574842 +SHA256 (minio-mc-RELEASE.2017-02-06T20-16-19Z_GH0.tar.gz) = 2ee46a826ff961683d8ed25e18598576a68bdebe79dcce9adf3219d34f9ec64c +SIZE (minio-mc-RELEASE.2017-02-06T20-16-19Z_GH0.tar.gz) = 1009728 +SHA256 (hashicorp-go-version-03c5bf6_GH0.tar.gz) = be08ba50bf40d1039e850b79763383d5230a0cfc65c4689c4d404bf5a4f42451 +SIZE (hashicorp-go-version-03c5bf6_GH0.tar.gz) = 11619 Added: head/www/minio/files/minio.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/minio/files/minio.in Wed Feb 22 19:57:45 2017 (r434636) @@ -0,0 +1,44 @@ +#!/bin/sh + +# PROVIDE: minio +# KEYWORD: shutdown + +minio_enable="${minio_enable-NO}" +minio_config="${minio_config-%%PREFIX%%/etc/minio}" +minio_disks="${minio_disks-/var/db/minio}" +minio_address="${minio_address-:9000}" +minio_user="${minio_user-minio}" +minio_group="${minio_group-minio}" + +. /etc/rc.subr + +name=minio +procname="%%PREFIX%%/bin/minio" +rcvar=minio_enable + +load_rc_config ${name} + +pidfile="/var/run/${name}.pid" +command="/usr/sbin/daemon" +command_args="-c -p ${pidfile} /usr/bin/env ${minio_env} ${procname} -C \"${minio_config}\" server --address=\"${minio_address}\" --quiet ${minio_disks}" + +start_precmd="minio_startprecmd" + +minio_startprecmd() +{ + if [ ! -e "${pidfile}" ]; then + install -o "${minio_user}" -g "${minio_group}" "/dev/null" "${pidfile}" + fi + + if [ ! -d "${minio_config}" ]; then + install -d -o "${minio_user}" -g "${minio_group}" "${minio_config}" + fi + + for disk in "${minio_disks}"; do + if [ ! -d "${disk}" ]; then + install -d -o "${minio_user}" -g "${minio_group}" "${disk}" + fi + done +} + +run_rc_command "$1" Modified: head/www/minio/files/patch-buildscripts_gen-ldflags.go ============================================================================== --- head/www/minio/files/patch-buildscripts_gen-ldflags.go Wed Feb 22 19:51:08 2017 (r434635) +++ head/www/minio/files/patch-buildscripts_gen-ldflags.go Wed Feb 22 19:57:45 2017 (r434636) @@ -1,6 +1,6 @@ ---- buildscripts/gen-ldflags.go.orig 2016-10-24 20:34:01 UTC -+++ buildscripts/gen-ldflags.go -@@ -23,15 +23,13 @@ import ( +--- buildscripts/gen-ldflags.go.orig 2017-02-15 20:51:19.000000000 -0500 ++++ buildscripts/gen-ldflags.go 2017-02-22 14:17:45.209088000 -0500 +@@ -23,15 +23,14 @@ import ( "os" "os/exec" "strings" @@ -13,16 +13,17 @@ - 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-11-26T02:23:47Z" -+ ldflagsStr += " -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2016-12-13T17-19-42Z" -+ ldflagsStr += " -X github.com/minio/minio/cmd.CommitID=29d72b84c07f9555f83a6485fe8291e18d23811b" ++ ldflagsStr = "-X github.com/minio/minio/cmd.Version=2017-02-16T01:47:30Z" ++ ldflagsStr += " -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2017-02-16T01-47-30Z" ++ ldflagsStr += " -X github.com/minio/minio/cmd.CommitID=83abb310b4ce3a0dfc6d7faf78e33cb6f9132cfe" ++ ldflagsStr += " -X github.com/minio/minio/cmd.ShortCommitID=83abb310b4ce" ldflagsStr += " -X github.com/minio/minio/cmd.GOPATH=" + os.Getenv("GOPATH") return ldflagsStr } -@@ -67,5 +65,5 @@ func commitID() string { +@@ -67,5 +66,5 @@ func commitID() string { } func main() { - fmt.Println(genLDFlags(time.Now().UTC().Format(time.RFC3339))) -+ fmt.Println(genLDFlags("2016-12-13T17-19-42Z")) ++ fmt.Println(genLDFlags("2017-02-16T01-47-30Z")) }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702221957.v1MJvj8R043656>