diff options
Diffstat (limited to 'sysutils/zot/Makefile')
-rw-r--r-- | sysutils/zot/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sysutils/zot/Makefile b/sysutils/zot/Makefile new file mode 100644 index 000000000000..f4ef6d5714cc --- /dev/null +++ b/sysutils/zot/Makefile @@ -0,0 +1,35 @@ +PORTNAME= zot +DISTVERSIONPREFIX=v +DISTVERSION= 2.1.8 +PORTREVISION= 1 +CATEGORIES= sysutils + +MAINTAINER= decke@FreeBSD.org +COMMENT= Production ready and vendor neutral OCI image registry +WWW= https://zotregistry.dev/ + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:modules +USE_GITHUB= yes +GH_ACCOUNT= project-zot + +GO_MODULE= zotproject.dev/zot +GO_MOD_DIST= https://raw.githubusercontent.com/project-zot/zot/refs/tags/v${DISTVERSION}/ +GO_TARGET= ./cmd/zot +GO_BUILDFLAGS= -ldflags " \ + -X zotregistry.dev/zot/pkg/api/config.ReleaseTag=${DISTVERSION} \ + -X zotregistry.dev/zot/pkg/api/config.BinaryType=minimal \ + -X zotregistry.dev/zot/pkg/api/config.GoVersion=${GO_VERSION}" + +USE_RC_SUBR= zot + +PLIST_FILES= bin/zot \ + etc/zot/config-minimal.json.sample + +post-install: + ${MKDIR} ${STAGEDIR}${ETCDIR} + ${INSTALL_DATA} ${PATCHDIR}/config-minimal.json ${STAGEDIR}${ETCDIR}/config-minimal.json.sample + +.include <bsd.port.mk> |