diff --git a/devel/gitlab-shell/Makefile b/devel/gitlab-shell/Makefile index 2036528a009b..70d941942f4d 100644 --- a/devel/gitlab-shell/Makefile +++ b/devel/gitlab-shell/Makefile @@ -1,85 +1,83 @@ PORTNAME= gitlab-shell -PORTVERSION= 14.23.0 -PORTREVISION= 1 +PORTVERSION= 14.26.0 +DISTVERSIONPREFIX= v CATEGORIES= devel MAINTAINER= mfechner@FreeBSD.org COMMENT= GitLab Shell handles git commands for GitLab WWW= https://gitlab.com/gitlab-org/gitlab-shell LICENSE= MIT # GSSAPI support can maybe be removed by disable CGO: # https://gitlab.com/gitlab-org/gitlab-shell/-/merge_requests/720 #BUILD_DEPENDS= heimdal>=0:security/heimdal USES= gmake go:modules,no_targets pkgconfig CGO_ENABLED= 0 USE_GITLAB= yes GL_ACCOUNT= gitlab-org -# Find the commit hash here: https://gitlab.com/gitlab-org/gitlab-shell/-/tags -GL_TAGNAME= fa92c356b543dcf1f40cc890e52d7b13c2c0f78a USERS= git GROUPS= git #INSTALL_TARGET= install-strip ALL_TARGET= build MAKE_ENV= GOFLAGS="${GO_BUILDFLAGS}" # make sure to pass go build options into make process MAKE_ENV+= ${GO_ENV} # for go dependencies # Gitlab hosts there dependencies on their own platform and not on go-proxy # so we download the required go.mod file from gitlab # lines are taken from go.mk # --------------------------- FETCH_DEPENDS= ${GO_CMD}:${GO_PORT} \ ca_root_nss>0:security/ca_root_nss MASTER_SITES+= https://gitlab.com/gitlab-org/gitlab-shell/-/raw/v${DISTVERSION}/ DISTFILES+= go.mod DIST_SUBDIR= go/${PKGORIGIN:S,/,_,g}/${DISTNAME} EXTRACT_ONLY+= ${DISTFILES:N*.mod\:*:N*.mod:C/:.*//} _USES_fetch+= 800:go-post-fetch go-post-fetch: @${ECHO_MSG} "===> Fetching ${GO_MODNAME} dependencies"; @(cd ${DISTDIR}/${DIST_SUBDIR}; \ [ -e go.mod ] || ${RLN} ${GO_MODFILE} go.mod; \ ${SETENV} ${GO_ENV} GOPROXY=${GO_GOPROXY} ${GO_CMD} mod download -x all) # --------------------------- VARLOGDIR= /var/log/gitlab-shell PLIST_FILES+= "@dir(git,,755) ${VARLOGDIR}" post-patch: ${MV} ${WRKSRC}/config.yml.example ${WRKSRC}/config.yml.sample ${CP} ${WRKSRC}/config.yml.sample ${WRKSRC}/config.yml ${REINPLACE_CMD} -e 's|VERSION_STRING :=.*|VERSION_STRING := v${PORTVERSION}|g' ${WRKSRC}/Makefile pre-install: ${RM} -rf ${WRKSRC}/config.yml do-install: @${MKDIR} ${STAGEDIR}${DATADIR} ${MKDIR} ${STAGEDIR}${DATADIR}/bin ${FIND} ${WRKSRC} -name '*.orig' -delete (cd ${WRKSRC}/bin/ && ${COPYTREE_BIN} . ${STAGEDIR}${DATADIR}/bin) .for x in CHANGELOG LICENSE README.md VERSION config.yml.sample ${INSTALL_DATA} ${WRKSRC}/${x} ${STAGEDIR}${DATADIR}/ .endfor .for x in support @${MKDIR} ${STAGEDIR}${DATADIR}/${x} (cd ${WRKSRC}/${x} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/${x}) .endfor @${MKDIR} ${STAGEDIR}${VARLOGDIR} 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} .include diff --git a/devel/gitlab-shell/distinfo b/devel/gitlab-shell/distinfo index 7691d2e3f857..0b617d9297b5 100644 --- a/devel/gitlab-shell/distinfo +++ b/devel/gitlab-shell/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1687452880 -SHA256 (go/devel_gitlab-shell/gitlab-org-gitlab-shell-fa92c356b543dcf1f40cc890e52d7b13c2c0f78a_GL0/go.mod) = 1a2f6e3e2c1baf6766618e02321afca03c7a2312b11d4038946bed5aec3968a8 -SIZE (go/devel_gitlab-shell/gitlab-org-gitlab-shell-fa92c356b543dcf1f40cc890e52d7b13c2c0f78a_GL0/go.mod) = 4703 -SHA256 (go/devel_gitlab-shell/gitlab-org-gitlab-shell-fa92c356b543dcf1f40cc890e52d7b13c2c0f78a_GL0/gitlab-org-gitlab-shell-fa92c356b543dcf1f40cc890e52d7b13c2c0f78a_GL0.tar.gz) = 5ec003394f87f138911e0a2312d40dbe7e98c37b39c65717d496b82c4eb42e41 -SIZE (go/devel_gitlab-shell/gitlab-org-gitlab-shell-fa92c356b543dcf1f40cc890e52d7b13c2c0f78a_GL0/gitlab-org-gitlab-shell-fa92c356b543dcf1f40cc890e52d7b13c2c0f78a_GL0.tar.gz) = 145568 +TIMESTAMP = 1693643697 +SHA256 (go/devel_gitlab-shell/gitlab-shell-v14.26.0/go.mod) = 8ef118a7179202ed0a6f2fd52e53c29fef23b668421f086e19b7f965c884c317 +SIZE (go/devel_gitlab-shell/gitlab-shell-v14.26.0/go.mod) = 4705 +SHA256 (go/devel_gitlab-shell/gitlab-shell-v14.26.0/gitlab-shell-v14.26.0.tar.bz2) = a2e75107010f8ef90d6695c11a2cf2a726de6ecfbf4c69262a36f33f96028da1 +SIZE (go/devel_gitlab-shell/gitlab-shell-v14.26.0/gitlab-shell-v14.26.0.tar.bz2) = 132666