blob: 99b0a93b0d85ad64ba326b37999700ae169f8f3a (
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
46
47
48
49
50
|
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>
|