summaryrefslogtreecommitdiff
path: root/sysutils/docker-credential-pass/Makefile
blob: f3cc332da3c66933debca8cf3a170e1d260cd101 (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=	docker-credential-pass
DISTVERSIONPREFIX=	v
DISTVERSION=	0.6.3
PORTREVISION=	1
CATEGORIES=	sysutils

MAINTAINER=	dmgk@FreeBSD.org
COMMENT=	Helper to use sysutils/password-store as Docker credentials store

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

RUN_DEPENDS=	${LOCALBASE}/bin/pass:sysutils/password-store

USES=		go

GO_PKGNAME=	github.com/docker/docker-credential-helpers
GO_TARGET=	./pass/cmd:${PORTNAME}

USE_GITHUB=	yes
GH_ACCOUNT=	docker
GH_PROJECT=	docker-credential-helpers

PLIST_FILES=	bin/docker-credential-pass

pre-build:
	${LN} -s ${GO_WRKSRC}/pass/cmd/main_linux.go ${GO_WRKSRC}/pass/cmd/main_freebsd.go
	${LN} -s ${GO_WRKSRC}/pass/pass_linux.go ${GO_WRKSRC}/pass/pass_freebsd.go

.include <bsd.port.mk>