Skip to content

Commit

Permalink
www/gitlab-ce: reorder lines to much as possible to make portclippy h…
Browse files Browse the repository at this point in the history
…appy
  • Loading branch information
mfechner committed Apr 3, 2024
1 parent e286456 commit 0ab48d1
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 46 deletions.
8 changes: 4 additions & 4 deletions devel/gitaly/Makefile
@@ -1,6 +1,6 @@
PORTNAME= gitaly
DISTVERSION= 16.10.1
DISTVERSIONPREFIX= v
DISTVERSION= 16.10.1
CATEGORIES= devel

MAINTAINER= mfechner@FreeBSD.org
Expand All @@ -23,13 +23,13 @@ USES= cpe gmake go:modules,no_targets,1.22 iconv pkgconfig ssl

CPE_VENDOR= gitlab

USE_GITLAB= yes
GL_ACCOUNT= gitlab-org

MAKE_ENV= GOFLAGS="${GO_BUILDFLAGS}"
# make sure to pass go build options into make process
MAKE_ENV+= ${GO_ENV}

USE_GITLAB= yes
GL_ACCOUNT= gitlab-org

# 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
Expand Down
16 changes: 8 additions & 8 deletions devel/gitlab-runner/Makefile
@@ -1,6 +1,6 @@
PORTNAME= gitlab-runner
DISTVERSION= 16.10.0
DISTVERSIONPREFIX= v
DISTVERSION= 16.10.0
CATEGORIES= devel
MASTER_SITES= https://gitlab-runner-downloads.s3.amazonaws.com/master/docker/:dockerx64 \
https://gitlab-runner-downloads.s3.amazonaws.com/master/docker/:dockerarm
Expand All @@ -23,6 +23,11 @@ RUN_DEPENDS= bash:shells/bash \
git:devel/git

USES= go:modules,1.22
USE_GITLAB= yes
GL_ACCOUNT= gitlab-org
USE_RC_SUBR= gitlab_runner

GITBRANCH= 16-10-stable
GO_MODULE= gitlab.com/gitlab-org/gitlab-runner

_BUILD_DATE= $$(date -u +%Y-%m-%dT%H:%M:%S%z)
Expand All @@ -33,9 +38,6 @@ GO_BUILDFLAGS= -ldflags=" \
-X gitlab.com/gitlab-org/gitlab-runner/common.BUILT=${_BUILD_DATE} \
-X gitlab.com/gitlab-org/gitlab-runner/common.BRANCH=${GITBRANCH} \
-s -w"
USE_GITLAB= yes
GL_ACCOUNT= gitlab-org
GITBRANCH= 16-10-stable

# for go dependencies
# Gitlab hosts there dependencies on their own platform and not on go-proxy
Expand All @@ -47,13 +49,11 @@ DISTFILES+= go.mod
EXTRACT_ONLY+= ${DISTFILES:N*.mod\:*:N*.mod:C/:.*//:Nprebuilt*:}
# ---------------------------

PLIST_FILES= bin/gitlab-runner

USE_RC_SUBR= gitlab_runner

USERS= gitlab-runner
GROUPS= gitlab-runner

PLIST_FILES= bin/gitlab-runner

post-patch:
@${MKDIR} ${WRKSRC}/out/docker/
@${CP} ${DISTDIR}/${DIST_SUBDIR}/prebuilt-x86_64.tar.xz ${WRKSRC}/out/docker/
Expand Down
10 changes: 4 additions & 6 deletions devel/gitlab-shell/Makefile
Expand Up @@ -18,15 +18,13 @@ USES= gmake go:modules,no_targets,1.22 pkgconfig
USE_GITLAB= yes
GL_ACCOUNT= gitlab-org

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}
ALL_TARGET= build

USERS= git
GROUPS= git

# for go dependencies
# Gitlab hosts there dependencies on their own platform and not on go-proxy
Expand Down
41 changes: 20 additions & 21 deletions www/gitlab-ce/Makefile
Expand Up @@ -286,32 +286,12 @@ BUILD_DEPENDS= gem:devel/ruby-gems \

RUN_DEPENDS= ${MY_DEPENDS}

CONFLICTS_INSTALL= gitolite \
gitolite2 \
gogs \
gitea \
gitosis

USES= go:modules nodejs:env ruby shebangfix

USE_RC_SUBR= gitlab
USE_GITLAB= yes
GL_ACCOUNT= gitlab-org
GL_PROJECT= gitlab-foss

USERS= git
GROUPS= git

NO_BUILD= yes

NO_ARCH= yes

OPTIONS_DEFINE= KERBEROS
OPTIONS_DEFAULT= KERBEROS

KERBEROS_BUILD_DEPENDS= rubygem-timfel-krb5-auth>=0.8<1:security/rubygem-timfel-krb5
KERBEROS_RUN_DEPENDS= rubygem-timfel-krb5-auth>=0.8<1:security/rubygem-timfel-krb5
KERBEROS_EXTRA_PATCHES_OFF= ${FILESDIR}/extra-patch-Gemfile-kerberos-off
USE_RC_SUBR= gitlab

SHEBANG_FILES= scripts/build_qa_image \
scripts/build_gdk_image \
Expand All @@ -326,6 +306,25 @@ SHEBANG_FILES= scripts/build_qa_image \
qa/gdk/entrypoint \
qa/bin/test

CONFLICTS_INSTALL= gitolite \
gitolite2 \
gogs \
gitea \
gitosis

NO_ARCH= yes
NO_BUILD= yes

USERS= git
GROUPS= git

OPTIONS_DEFINE= KERBEROS
OPTIONS_DEFAULT= KERBEROS

KERBEROS_BUILD_DEPENDS= rubygem-timfel-krb5-auth>=0.8<1:security/rubygem-timfel-krb5
KERBEROS_RUN_DEPENDS= rubygem-timfel-krb5-auth>=0.8<1:security/rubygem-timfel-krb5
KERBEROS_EXTRA_PATCHES_OFF= ${FILESDIR}/extra-patch-Gemfile-kerberos-off

post-patch:
${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/config/gitlab.yml.example \
${WRKSRC}/config/puma.rb.example \
Expand Down
5 changes: 2 additions & 3 deletions www/gitlab-pages/Makefile
Expand Up @@ -13,15 +13,14 @@ LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

USES= go:modules,1.22
GO_MODULE= gitlab.com/gitlab-org/gitlab-pages

USE_GITLAB= yes
GL_ACCOUNT= gitlab-org
USE_RC_SUBR= gitlab_pages

GO_MODULE= gitlab.com/gitlab-org/gitlab-pages
GO_BUILDFLAGS= -ldflags="-X 'main.VERSION=${PORTVERSION}' -X 'main.REVISION=${GL_TAGNAME}'"

USE_RC_SUBR= gitlab_pages

USERS= gitlab-pages
GROUPS= gitlab-pages

Expand Down
8 changes: 4 additions & 4 deletions www/gitlab-workhorse/Makefile
Expand Up @@ -14,15 +14,15 @@ BUILD_DEPENDS= git>=2.42.0:devel/git
RUN_DEPENDS= p5-Image-ExifTool>=0:graphics/p5-Image-ExifTool

USES= gmake go:modules,no_targets,1.22
USE_GITLAB= yes
GL_ACCOUNT= gitlab-org
GL_PROJECT= gitlab-foss
MAKE_ENV= GOFLAGS="${GO_BUILDFLAGS}"
MAKE_ENV+= ${GO_ENV}
WRKSRC_SUBDIR= workhorse
# found in work/gitlab-foss*/workhorse/go.mod
#GO_MODULE= gitlab.com/gitlab-org/gitlab/workhorse

USE_GITLAB= yes
GL_ACCOUNT= gitlab-org
GL_PROJECT= gitlab-foss

# for go dependencies
# Gitlab hosts there dependencies on their own platform and not on go-proxy
Expand All @@ -42,11 +42,11 @@ go-post-fetch:
${SETENV} ${GO_ENV} GOPROXY=${GO_GOPROXY} ${GO_CMD} mod download -x all)
# ---------------------------

PLIST_DIRS= ${WWWDIR}
PLIST_FILES= bin/gitlab-resize-image \
bin/gitlab-workhorse \
bin/gitlab-zip-cat \
bin/gitlab-zip-metadata
PLIST_DIRS= ${WWWDIR}

post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/www/${PORTNAME}
Expand Down

0 comments on commit 0ab48d1

Please sign in to comment.