blob: 316e59cbd2d3ae4873f4ad66684c53d1a8af369a (
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
51
52
53
54
55
56
57
58
|
PORTNAME= cells
DISTVERSIONPREFIX= v
DISTVERSION= 4.4.0
PORTREVISION= 2
CATEGORIES= www
PKGNAMEPREFIX= pydio-
MAINTAINER= skozlov@FreeBSD.org
COMMENT= Nextgen file sharing platform for organizations
WWW= https://github.com/pydio/cells
LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
NOT_FOR_ARCHS= i386
NOT_FOR_ARCHS_REASON= Not supported on i386
USES= cpe go:1.21,modules gmake
CPE_VENDOR= pydio
USE_RC_SUBR= ${PORTNAME}
GO_MODULE= github.com/pydio/cells/v4
GO_BUILDFLAGS= -ldflags "-X github.com/pydio/cells/v4/common.version=${DISTVERSION}\
-X github.com/pydio/cells/v4/common.BuildStamp=1970-01-01T00:00:00"
USERS= pydio
GROUPS= pydio
PLIST_FILES= bin/cells
OPTIONS_DEFINE= BASH ZSH
OPTIONS_DEFAULT= BASH ZSH
BASH_PLIST_FILES= etc/bash_completion.d/${PORTNAME}
ZSH_PLIST_FILES= share/zsh/site-functions/_${PORTNAME}
post-build-BASH-on:
${SETENV} CELLS_WORKING_DIR=${WRKDIR}/wrkdir \
${GO_WRKDIR_BIN}/${PORTNAME} tools completion bash \
> ${WRKDIR}/bash_completions
@${REINPLACE_CMD} -e 's|${GO_WRKDIR_BIN}/||g' ${WRKDIR}/bash_completions
post-build-ZSH-on:
${SETENV} CELLS_WORKING_DIR=${WRKDIR}/wrkdir \
${GO_WRKDIR_BIN}/${PORTNAME} tools completion zsh \
> ${WRKDIR}/zsh_completions
@${REINPLACE_CMD} -e 's|${GO_WRKDIR_BIN}/||g' ${WRKDIR}/zsh_completions
post-install-BASH-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
${INSTALL_DATA} ${WRKDIR}/bash_completions \
${STAGEDIR}${PREFIX}/etc/bash_completion.d/${PORTNAME}
post-install-ZSH-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKDIR}/zsh_completions \
${STAGEDIR}${PREFIX}/share/zsh/site-functions/_${PORTNAME}
.include <bsd.port.mk>
|