summaryrefslogtreecommitdiff
path: root/sysutils/ipfs-go/Makefile
blob: 44886c52280045005dc78f7b914f26efb9dca5fc (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
PORTNAME=	ipfs
DISTVERSIONPREFIX=	v
DISTVERSION=	0.18.1
PORTREVISION=	3
CATEGORIES=	sysutils
PKGNAMESUFFIX=	-go

MAINTAINER=	jhixson@FreeBSD.org
COMMENT=	IPFS implementation in Go
WWW=		https://github.com/ipfs/kubo

LICENSE=	MIT APACHE20
LICENSE_COMB=	dual
LICENSE_FILE_MIT=	${WRKSRC}/LICENSE-MIT
LICENSE_FILE_APACHE20=	${WRKSRC}/LICENSE-APACHE

USES=		cpe go:1.19,modules

CPE_VENDOR=	protocol

GO_MODULE=	github.com/ipfs/kubo
GO_TARGET=	./cmd/ipfs:ipfs-go

USE_RC_SUBR=	${PORTNAME}${PKGNAMESUFFIX}

SUB_FILES=	${FULLNAME}
SUB_LIST=	IPFS_USER=${IPFS_USER} \
		IPFS_GROUP=${IPFS_GROUP} \
		IPFS_HOME=${IPFS_HOME}
PLIST_SUB=	IPFS_USER=${IPFS_USER} \
		IPFS_GROUP=${IPFS_GROUP} \
		IPFS_HOME=${IPFS_HOME}

IPFS_USER?=	${FULLNAME}
IPFS_GROUP?=	${FULLNAME}
IPFS_HOME?=	/var/db/${FULLNAME}

USERS=		${IPFS_USER}
GROUPS=		${IPFS_GROUP}

FULLNAME=	${PORTNAME}${PKGNAMESUFFIX}

post-install:
	@${MKDIR} ${STAGEDIR}${IPFS_HOME}

.include <bsd.port.mk>