blob: 59035f1b8dbf5db18fdfcf3c42a9f90e41062b7e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
PORTNAME= minio-client
PORTVERSION= ${GH_TAGNAME:S/RELEASE.//:S/Z//:S/T/-/:S/-/./g}
CATEGORIES= www
MAINTAINER= jhixson@FreeBSD.org
COMMENT= Replacement for ls, cp, mkdir, diff and rsync commands for filesystems
WWW= https://minio.io/downloads/ #minio-client
LICENSE= APACHE20
USES= go:modules
GH_TAGNAME= RELEASE.2025-05-21T01-59-54Z
COMMIT_ID= f71ad84bcf0fd4369691952af5d925347837dcec
GO_MODULE= github.com/minio/mc@v0.0.0-20250521015954-f71ad84bcf0f
OPTIONS_DEFINE= MC
MC_DESC= Install as mc
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMC}
MC= mc
.else
MC= ${PORTNAME}
.endif
PLIST_FILES= bin/${MC}
GO_BUILDFLAGS= -ldflags=" \
-X github.com/minio/mc/cmd.Version=${GH_TAGNAME:C/RELEASE\.//:C|(..)-(..)-(..)Z|\1:\2:\3Z|} \
-X github.com/minio/mc/cmd.ReleaseTag=${GH_TAGNAME} \
-X github.com/minio/mc/cmd.CommitID=${COMMIT_ID} \
-X github.com/minio/mc/cmd.GOPATH=${WRKSRC} -s -w"
GO_TARGET= :${MC}
# Bring DISTINFO_FILE into scope so we can get the timestamp.
.include <bsd.port.pre.mk>
SOURCE_DATE_EPOCH_CMD= date -ur \
$$(${GREP} -m1 TIMESTAMP ${DISTINFO_FILE} | ${SED} -e 's/[^0-9]//g') \
'+%Y-%m-%dT%H:%M:%SZ'
.include <bsd.port.post.mk>
|