about [UPDATING] [MOVED] [vuxml]summaryrefslograw-logtreecommitdiffstats
path: root/ftp/sftpgo/Makefile [up]
Last 15 commits to file "ftp/sftpgo/Makefile" in the last year: [ Last 15 commits to this file | All commits to this file ]
 
Commit messageAuthorDateFilesLines
* [ file ]various: Bump Go ports for Go 1.26.11 / 1.27.4Dag-Erling Smørgrav2026-11-11 10:35:19 +00001-1/+1
* [ file ]various: Bump Go ports for Go 1.26.10 / 1.27.3Dag-Erling Smørgrav2026-10-20 12:19:24 +01001-1/+1
* [ file ]various: Bump Go portsDag-Erling Smørgrav2026-10-08 21:47:19 +01001-0/+1
* [ file ]various: Drop Go 1.26+ version pinDag-Erling Smørgrav2026-10-01 08:52:42 +01001-1/+1
* [ file ]ftp/sftpgo: update to 2.7.6Serhii (Sergey) Kozlov2026-09-19 12:36:24 +01001-2/+1
* [ file ]many: Bump go ports for 1.26.8 and 1.27.1Adam Weinberger2026-09-03 05:50:55 +01001-1/+1
* [ file ]various: Bump go ports for go-1.25.14 / 1.26.7Dag-Erling Smørgrav2026-08-19 18:39:04 +01001-1/+1
* [ file ]various: Bump go ports for go-1.25.13 / 1.26.6Dag-Erling Smørgrav2026-08-14 01:38:09 +01001-1/+1
* [ file ]various: Bump go ports for go-1.25.12 / 1.26.5Dag-Erling Smørgrav2026-07-10 08:54:15 +01001-0/+1
* [ file ]ftp/sftpgo: update to 2.7.4Serhii (Sergey) Kozlov2026-06-27 23:20:46 +01001-3/+2
* [ file ]various: Bump go ports for go-1.25.11 / go-1.26.4Dag-Erling Smørgrav2026-06-03 18:54:22 +01001-0/+1
* [ file ]ftp/sftpgo: update to 2.7.3Serhii (Sergey) Kozlov2026-05-30 23:53:29 +01001-2/+1
* [ file ]various: Bump ports for Go 1.25.10Adam Weinberger2026-05-09 18:25:51 +01001-1/+1
* [ file ]various: Bump go ports for go-1.25.9 / 1.26.2Dag-Erling Smørgrav2026-04-10 16:57:27 +01001-1/+1
* [ file ]various: Bump ports for Go 1.25.8Adam Weinberger2026-03-06 03:33:23 +00001-1/+1
[...]


commit: (<title> <author> <date> etc.)
blob: e8ae75698680c8871a10775aa62cb482b33bd252 (plain) (blame)
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
59
60
61
62
63
64
65
66
67
68
69
70
PORTNAME=	sftpgo
PORTVERSION=	2.7.6
PORTREVISION=	3
CATEGORIES=	ftp www
MASTER_SITES=	https://github.com/drakkan/${PORTNAME}/releases/download/v${DISTVERSION}/
DISTNAME=	${PORTNAME}_v${PORTVERSION}_src_with_deps

MAINTAINER=	skozlov@FreeBSD.org
COMMENT=	Fully featured and highly configurable SFTP, FTP/S, and WebDAV server
WWW=		https://github.com/drakkan/sftpgo

LICENSE=	AGPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cpe go:modules tar:xz
USE_RC_SUBR=	${PORTNAME}

CPE_VENDOR=	sftpgo_project

NO_WRKSUBDIR=	yes

OPTIONS_DEFINE=		BASH FISH ZSH MANPAGES
OPTIONS_DEFAULT=	BASH FISH ZSH MANPAGES
OPTIONS_SUB=		yes

USERS=		sftpgo
GROUPS=		sftpgo

post-patch:
	${REINPLACE_CMD} -e 's|"templates"|"${DATADIR}/templates"|; \
		s|"static"|"${DATADIR}/static"|; \
		s|"sftpgo.db"|"/var/db/${PORTNAME}/${PORTNAME}.db"|' \
		${WRKSRC}/${PORTNAME}.json

post-build-BASH-on:
	${GO_WRKDIR_BIN}/${PORTNAME} gen completion bash > ${WRKDIR}/bash_completions

post-build-FISH-on:
	${GO_WRKDIR_BIN}/${PORTNAME} gen completion fish > ${WRKDIR}/fish_completions

post-build-ZSH-on:
	${GO_WRKDIR_BIN}/${PORTNAME} gen completion zsh > ${WRKDIR}/zsh_completions

post-build-MANPAGES-on:
	${MKDIR} ${WRKDIR}/manpages
	${GO_WRKDIR_BIN}/${PORTNAME} gen man --dir ${WRKDIR}/manpages

post-install:
	@${MKDIR} ${STAGEDIR}${DATADIR}
	cd ${WRKSRC} && \
		${COPYTREE_SHARE} templates ${STAGEDIR}${DATADIR} && \
		${COPYTREE_SHARE} static ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.json ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.json.sample

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-FISH-on:
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions
	${INSTALL_DATA} ${WRKDIR}/fish_completions ${STAGEDIR}${PREFIX}/share/fish/completions/${PORTNAME}.fish

post-install-ZSH-on:
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
	${INSTALL_DATA} ${WRKDIR}/zsh_completions ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_${PORTNAME}

post-install-MANPAGES-on:
	${FIND} ${WRKDIR}/manpages -type f -execdir ${INSTALL_MAN} {} ${STAGEDIR}${PREFIX}/share/man/man1 \;

.include <bsd.port.mk>
This site is maintained by Jamie Landeg-Jones <jamie@catflap.org>, and is not an official FreeBSD project, nor is it endorsed by the FreeBSD team.