summaryrefslogtreecommitdiff
path: root/net/seaweedfs/Makefile
blob: 4d6f75d529653cba8cac8e946dfc2ce380c68e5f (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

PORTNAME=	seaweedfs
DISTVERSION=	2.35
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
USE_GITLAB=	nodefault
GH_ACCOUNT=	chrislusf

.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 master filer security replication notification
	${INSTALL_DATA} ${WRKDIR}/${cfg}.toml \
	    ${STAGEDIR}${ETCDIR}/${cfg}.toml.sample
.endfor

GO_TARGET=	./weed:${PREFIX}/sbin/weed
CGO_CFLAGS=	-I.

USE_RC_SUBR=	seaweedfs

USERS=		seaweedfs
GROUPS=		seaweedfs

SUB_FILES=	pkg-message

.include	<bsd.port.mk>