summaryrefslogtreecommitdiff
path: root/sysutils/skopeo/Makefile
blob: 610bfeb7221f31eced94dc3476637c312ac42840 (plain)
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
PORTNAME=	skopeo
DISTVERSIONPREFIX=	v
DISTVERSION=	1.10.0
PORTREVISION=	5
CATEGORIES=	sysutils

MAINTAINER=	dfr@FreeBSD.org
COMMENT=	Inspect container images and repositories on registries
WWW=		https://github.com/containers

LICENSE=	GPLv2

BUILD_DEPENDS=	bash:shells/bash \
		curl:ftp/curl \
		go-md2man:textproc/go-md2man
LIB_DEPENDS=	libgpgme.so:security/gpgme
RUN_DEPENDS=	${LOCALBASE}/etc/containers/containers.conf.sample:sysutils/containers-common

USES=		gmake go:modules,no_targets pkgconfig
USE_GITHUB=	yes
GH_ACCOUNT=	containers
GH_PROJECT=	skopeo

do-install:
	${SETENV} ${MAKE_ENV} ${GO_ENV} ${GMAKE} -C ${WRKSRC} \
		DESTDIR=${STAGEDIR} GOCACHE=${WRKDIR}.gocache \
		GO=${GO_CMD} install-binary install-docs install-completions
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/containers/registries.d
	${INSTALL_DATA} ${WRKSRC}/default.yaml ${STAGEDIR}${PREFIX}/etc/containers/registries.d/default.yaml

.include <bsd.port.mk>