freebsd-ports/sysutils/ipfs-go/Makefile
John Hixson 713c35324e sysutils/ipfs-go: Add patch file and pkg-message
PR:	253590
Reported by: <swills@FreeBSD.org>
2021-04-09 21:27:57 -07:00

48 lines
1,005 B
Makefile

PORTNAME= ipfs
DISTVERSIONPREFIX= v
DISTVERSION= 0.8.0
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= https://github.com/ipfs/go-ipfs/releases/download/v${DISTVERSION}/
PKGNAMESUFFIX= -go
DISTNAME= go-ipfs-source
MAINTAINER= jhixson@FreeBSD.org
COMMENT= IPFS implementation in Go
LICENSE= MIT APACHE20
LICENSE_COMB= dual
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE
ONLY_FOR_ARCHS= aarch64 amd64 i386
USES= go:modules
GO_TARGET= ./cmd/ipfs:ipfs-go
NO_WRKSUBDIR= yes
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>