# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
set version 2019-09-11T19-53-16Z
set commit 53e4887e02b94ed37dea8c5173330f17548fe122
set relversion [regsub {(T..)-(..)-(..Z)} $version {\1:\2:\3}]
# This is not used for fetching, but is compiled into the executable
github.setup minio minio $version RELEASE.
homepage https://minio.io
maintainers {eborisch @eborisch} openmaintainer
description Open source Amazon S3-compatible object storage server.
${description} It is best suited for storing unstructured data such as \
photos, videos, log files, backups and container / VM images. Size of an \
object can range from a few KBs to a maximum of 5TB. See also minio-mc \
rmd160 538b2615c7e043562b74d619e28e608adbafbdf2 \
sha256 abfc96e02d1fed4fc0b3dd3e12885bf79e9bc3b33b42bd2fa0ae1023d58fc714 \
set goproj github.com/${github.author}/${github.project}
xinstall -d ${workpath}/src/github.com/${github.author}
move ${workpath}/${name}-${github.version} \
system -W ${worksrcpath} "GOPATH=${workpath} \
CGO_ENABLED=0 GO111MODULE=on ${prefix}/bin/go build -tags kqueue -v \
-o ${workpath}/${github.project} \
-ldflags '-X ${goproj}/cmd.Version=${relversion} \
-X ${goproj}/cmd.ReleaseTag=RELEASE.${version} \
-X ${goproj}/cmd.CommitID=${commit} \
-X ${goproj}/cmd.ShortCommitId=[string range ${commit} 0 11]'"
xinstall ${workpath}/${github.project} ${destroot}${prefix}/bin
set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}
xinstall -m 644 -W ${worksrcpath} README.md LICENSE NOTICE \
# Config / log / storage directories
set logPath ${destroot}${prefix}/var/log/${name}
set varPath ${destroot}${prefix}/var/${name}
set confPath ${destroot}${prefix}/etc/${name}
xinstall -m 700 -d ${logPath} ${confPath} ${varPath}
destroot.keepdirs ${logPath} ${varPath} ${confPath}
startupitem.executable ${prefix}/bin/${name} server \
--config-dir=${prefix}/etc/minio \
startupitem.logfile ${prefix}/var/log/minio/server.log
startupitem.logevents yes
If you use 'port load minio':
* after loading, view ${prefix}/var/log/minio/server.log for server info.
* Object storage in ${prefix}/var/minio. To relocate:
1) Copy with all (* and .*) contents to desired location.
2) Replace ${prefix}/var/minio with symlink to new storage.
Or use 'minio server <dir>' to run a server manually / roll your own
startup system. Note './.minio/' will be created by default.
See also minio-mc port for command-line interaction.