# $FreeBSD$ PORTNAME= ipfs DISTVERSIONPREFIX= v DISTVERSION= 0.4.17 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 LICENSE_FILE= ${WRKSRC}/LICENSE ONLY_FOR_ARCHS= amd64 i386 USES= go GO_PKGNAME= github.com/ipfs/go-ipfs GO_TARGET= ./cmd/ipfs NO_WRKSUBDIR= yes USE_RC_SUBR= ${PORTNAME}${PKGNAMESUFFIX} SUB_FILES= ${FULLNAME} SUB_LIST= IPFS_USER=${IPFS_USER} \ IPFS_GROUP=${IPFS_GROUP} \ IPFS_LOGDIR=${IPFS_LOGDIR} PLIST_SUB= IPFS_USER=${IPFS_USER} \ IPFS_GROUP=${IPFS_GROUP} \ IPFS_HOME=${IPFS_HOME} \ IPFS_LOGDIR=${IPFS_LOGDIR} IPFS_USER= ${FULLNAME} IPFS_GROUP= ${FULLNAME} IPFS_HOME= /var/db/${PORTNAME}${PKGNAMESUFFIX} IPFS_LOGDIR= /var/log/${PORTNAME}${PKGNAMESUFFIX} USERS= ${IPFS_USER} GROUPS= ${IPFS_GROUP} FULLNAME= ${PORTNAME}${PKGNAMESUFFIX} do-install: @${MKDIR} ${STAGEDIR}${IPFS_HOME} @${MKDIR} ${STAGEDIR}${IPFS_LOGDIR} ${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/ipfs ${STAGEDIR}${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX} .include