mirror of
https://git.freebsd.org/ports.git
synced 2025-05-04 15:37:40 -04:00
Changes: https://about.gitlab.com/releases/2024/02/21/security-release-gitlab-16-9-1-released/ MFH: 2024Q1 Security: 03bf5157-d145-11ee-acee-001b217b3468
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
PORTNAME= gitlab-pages
|
|
PORTVERSION= 16.9.1
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= www
|
|
MASTER_SITES+= https://gitlab.com/gitlab-org/gitlab-pages/-/raw/v${DISTVERSION}/
|
|
DISTFILES+= go.mod
|
|
|
|
MAINTAINER= mfechner@FreeBSD.org
|
|
COMMENT= Official GitLab Pages daemon
|
|
WWW= https://gitlab.com/gitlab-org/gitlab-pages
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= go:modules,1.21
|
|
GO_MODULE= gitlab.com/gitlab-org/gitlab-pages
|
|
|
|
USE_GITLAB= yes
|
|
GL_ACCOUNT= gitlab-org
|
|
|
|
GO_BUILDFLAGS= -ldflags="-X 'main.VERSION=${PORTVERSION}' -X 'main.REVISION=${GL_TAGNAME}'"
|
|
|
|
USE_RC_SUBR= gitlab_pages
|
|
|
|
USERS= gitlab-pages
|
|
GROUPS= gitlab-pages
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/gitlab-pages.conf.sample
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/bin
|
|
(cd ${WRKDIR}/bin/ && ${COPYTREE_BIN} . ${STAGEDIR}${DATADIR}/bin)
|
|
.for x in gitlab-pages.conf.sample
|
|
${INSTALL_DATA} ${WRKSRC}/${x} ${STAGEDIR}${DATADIR}/
|
|
.endfor
|
|
|
|
post-install:
|
|
${FIND} -s ${STAGEDIR}${DATADIR} -not -type d | ${SORT} | \
|
|
${SED} -e 's#^${STAGEDIR}${PREFIX}/##' | \
|
|
${SED} -E -e '/sample$$/ s#^#@sample #; \
|
|
s#${DATADIR_REL}/bin#@(,,555) ${DATADIR_REL}/bin#; ' >> ${TMPPLIST}
|
|
cat ${TMPPLIST}
|
|
|
|
.include <bsd.port.mk>
|