Lines 1-8
Link Here
|
1 |
PORTNAME= gitlab-pages |
1 |
PORTNAME= gitlab-pages |
2 |
PORTVERSION= 15.8.1 |
2 |
PORTVERSION= 15.8.1 |
3 |
PORTREVISION= 1 |
|
|
4 |
DISTVERSIONPREFIX= v |
3 |
DISTVERSIONPREFIX= v |
|
|
4 |
PORTREVISION= 2 |
5 |
CATEGORIES= www |
5 |
CATEGORIES= www |
|
|
6 |
MASTER_SITES+= https://gitlab.com/gitlab-org/gitlab-pages/-/raw/v${DISTVERSION}/ |
7 |
DISTFILES+= go.mod |
6 |
|
8 |
|
7 |
MAINTAINER= swills@FreeBSD.org |
9 |
MAINTAINER= swills@FreeBSD.org |
8 |
COMMENT= Official GitLab Pages daemon |
10 |
COMMENT= Official GitLab Pages daemon |
Lines 19-43
GL_ACCOUNT= gitlab-org
Link Here
|
19 |
# Find this here: https://gitlab.com/gitlab-org/gitlab-pages/-/tags/ |
21 |
# Find this here: https://gitlab.com/gitlab-org/gitlab-pages/-/tags/ |
20 |
GL_COMMIT= 345ed7982842b70a17aed0b08dcee21af78b30df |
22 |
GL_COMMIT= 345ed7982842b70a17aed0b08dcee21af78b30df |
21 |
|
23 |
|
22 |
# for go dependencies |
|
|
23 |
# Gitlab hosts there dependencies on their own platform and not on go-proxy |
24 |
# so we download the required go.mod file from gitlab |
25 |
# lines are taken from go.mk |
26 |
# --------------------------- |
27 |
FETCH_DEPENDS= ${GO_CMD}:${GO_PORT} \ |
28 |
ca_root_nss>0:security/ca_root_nss |
29 |
MASTER_SITES+= https://gitlab.com/gitlab-org/gitlab-pages/-/raw/v${DISTVERSION}/ |
30 |
DISTFILES+= go.mod |
31 |
DIST_SUBDIR= go/${PKGORIGIN:S,/,_,g}/${DISTNAME} |
32 |
EXTRACT_ONLY+= ${DISTFILES:N*.mod\:*:N*.mod:C/:.*//} |
33 |
_USES_fetch+= 900:go-post-fetch-gitlab |
34 |
go-post-fetch-gitlab: |
35 |
@${ECHO_MSG} "===> Fetching ${PORTNAME} dependencies"; |
36 |
@(cd ${DISTDIR}/${DIST_SUBDIR}; \ |
37 |
[ -e go.mod ] || ${RLN} ${GO_MODFILE} go.mod; \ |
38 |
${SETENV} ${GO_ENV} GOPROXY=${GO_GOPROXY} ${GO_CMD} mod download -x all) |
39 |
# --------------------------- |
40 |
|
41 |
GO_BUILDFLAGS= -ldflags="-X 'main.VERSION=${PORTVERSION}' -X 'main.REVISION=${GL_COMMIT}'" |
24 |
GO_BUILDFLAGS= -ldflags="-X 'main.VERSION=${PORTVERSION}' -X 'main.REVISION=${GL_COMMIT}'" |
42 |
|
25 |
|
43 |
PLIST_FILES= bin/gitlab-pages |
26 |
PLIST_FILES= bin/gitlab-pages |
Lines 47-53
USE_RC_SUBR= gitlab_pages
Link Here
|
47 |
USERS= gitlab-pages |
30 |
USERS= gitlab-pages |
48 |
GROUPS= gitlab-pages |
31 |
GROUPS= gitlab-pages |
49 |
|
32 |
|
50 |
do-install: |
|
|
51 |
${INSTALL_PROGRAM} ${WRKDIR}/bin/gitlab-pages ${STAGEDIR}${PREFIX}/bin/gitlab-pages |
52 |
|
53 |
.include <bsd.port.mk> |
33 |
.include <bsd.port.mk> |