* Fix the rc script when default ipfs_go_path is used * Fix the logging by switching to uses the syslog logging in daemon * Switch the init to using the --init flag to the ipfs daemon command * Fixes the version string since the tarball provided by upstream doesn't match the tag for this release (has version string wrong) * Allow overriding IPFS_USER/GROUP/HOME at build time * Remove unnecessary BEFORE: LOGIN from rc script PR: 235222 Approved by: jhixson (maintainer)
51 lines
1.0 KiB
Makefile
51 lines
1.0 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= ipfs
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.4.18
|
|
PORTREVISION= 2
|
|
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_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}
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${IPFS_HOME}
|
|
${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/ipfs ${STAGEDIR}${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
.include <bsd.port.mk>
|