freebsd-ports/net/seaweedfs/Makefile
Boris Korzun 5baa6d516f net/seaweedfs: update to 2.81
PR:		259527
Sponsored by:	SkunkWerks, GmbH
2021-12-21 23:02:31 +00:00

50 lines
1 KiB
Makefile

PORTNAME= seaweedfs
DISTVERSION= 2.81
CATEGORIES= net sysutils
MAINTAINER= dch@FreeBSD.org
COMMENT= Distributed Object Store and Filesystem
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
USE_GITHUB= yes
GH_ACCOUNT= chrislusf
USE_GITLAB= nodefault
USE_RC_SUBR= seaweedfs
GO_TARGET= ./weed
CGO_CFLAGS= -I.
SEAWEEDFS_DIR?= /var/db/${PORTNAME}
SEAWEEDFS_USER?= seaweedfs
SEAWEEDFS_GROUP?= seaweedfs
SUB_FILES= pkg-message
SUB_LIST= GROUP=${SEAWEEDFS_GROUP} \
SEAWEEDFS_DIR=${SEAWEEDFS_DIR} \
USER=${SEAWEEDFS_USER}
USERS= ${SEAWEEDFS_USER}
GROUPS= ${SEAWEEDFS_GROUP}
.include "Makefile.deps"
post-build:
.for cfg in master filer security replication notification
${WRKDIR}/bin/weed scaffold -config ${cfg} -output ${WRKDIR}/
.endfor
post-install:
${MKDIR} \
${STAGEDIR}/var/db/${PORTNAME} \
${STAGEDIR}/var/log/${PORTNAME} \
${STAGEDIR}${ETCDIR}
.for cfg in filer master notification replication security
${INSTALL_DATA} ${WRKDIR}/${cfg}.toml \
${STAGEDIR}${ETCDIR}/${cfg}.toml.sample
.endfor
.include <bsd.port.mk>