diff --git a/devel/gitlab-shell/Makefile b/devel/gitlab-shell/Makefile index 637b2a421b3d..971e9c805f76 100644 --- a/devel/gitlab-shell/Makefile +++ b/devel/gitlab-shell/Makefile @@ -1,85 +1,84 @@ PORTNAME= gitlab-shell -PORTVERSION= 14.18.0 -PORTREVISION= 1 +PORTVERSION= 14.20.0 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_COMMIT= f76503aeb40e6e4702d9697a29ff38fad4a0352f +# Find the commit hash here: https://gitlab.com/gitlab-org/gitlab-shell/-/tags +GL_COMMIT= 68d860f64eb02b46d9d8f861770b4edee77e1aa5 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 7c5f32c01472..3fc987d61a26 100644 --- a/devel/gitlab-shell/distinfo +++ b/devel/gitlab-shell/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1681105424 -SHA256 (go/devel_gitlab-shell/gitlab-org-gitlab-shell-f76503aeb40e6e4702d9697a29ff38fad4a0352f_GL0/go.mod) = 4b85b773dab7c239d16d7a0ca5a4087fee478bea88cbd31ee77a69ffb50facae -SIZE (go/devel_gitlab-shell/gitlab-org-gitlab-shell-f76503aeb40e6e4702d9697a29ff38fad4a0352f_GL0/go.mod) = 4621 -SHA256 (go/devel_gitlab-shell/gitlab-org-gitlab-shell-f76503aeb40e6e4702d9697a29ff38fad4a0352f_GL0/gitlab-org-gitlab-shell-f76503aeb40e6e4702d9697a29ff38fad4a0352f_GL0.tar.gz) = 42c53b4244bfe718b0f13bad63034bdee6a751b22caf3ff7ebd402c6db1fd47e -SIZE (go/devel_gitlab-shell/gitlab-org-gitlab-shell-f76503aeb40e6e4702d9697a29ff38fad4a0352f_GL0/gitlab-org-gitlab-shell-f76503aeb40e6e4702d9697a29ff38fad4a0352f_GL0.tar.gz) = 143964 +TIMESTAMP = 1684522125 +SHA256 (go/devel_gitlab-shell/gitlab-org-gitlab-shell-68d860f64eb02b46d9d8f861770b4edee77e1aa5_GL0/go.mod) = bc56b0838df5476629386ac6016f141fda7b114a4f373abaf59bbb50bcdd1f74 +SIZE (go/devel_gitlab-shell/gitlab-org-gitlab-shell-68d860f64eb02b46d9d8f861770b4edee77e1aa5_GL0/go.mod) = 4621 +SHA256 (go/devel_gitlab-shell/gitlab-org-gitlab-shell-68d860f64eb02b46d9d8f861770b4edee77e1aa5_GL0/gitlab-org-gitlab-shell-68d860f64eb02b46d9d8f861770b4edee77e1aa5_GL0.tar.gz) = 8c5caabe3b22ee1283891fa8a860a8e5e2cf5ecc3e9eaa0f24eb192b610a0c6a +SIZE (go/devel_gitlab-shell/gitlab-org-gitlab-shell-68d860f64eb02b46d9d8f861770b4edee77e1aa5_GL0/gitlab-org-gitlab-shell-68d860f64eb02b46d9d8f861770b4edee77e1aa5_GL0.tar.gz) = 145690