From nobody Sat Nov 02 08:36:20 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XgWKc5RF9z5c49f; Sat, 02 Nov 2024 08:36:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XgWKc3tMPz4gxg; Sat, 2 Nov 2024 08:36:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730536580; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YWtCk7tez02WCp3UPbmCk9sPbs1EJTbUSLlGcA+BIb8=; b=NfEPJoVii0g2ZWd8hdZWmqBX2uVNmzTpOP8w+7cihCoHfc4ewu8fMNEhsybrTo1WWGWCsk FejuENLT05xkcgYseHKTc+KPF00JLTUhPz8MFHo8htHs3qY6Wm3EgWlwq3qI86bnQUBQcD bFawYFjk19vBaagVV9GtbHBJ8a1qYQ7iramMcxM8Xh8haqsDJVXB+WlzEiECTsabHzo6W2 n5SjrayuZxoIgv9AqP9bo3jjUhN5ykR9/HmWklbMhIp8EBU7ZNGTpdL7xDrpcd9NQbwGtY sFLqlBm7n7yJ27SA2NQyrdt6hktA5MzCVtx29ZJkFzmHCdHj/dLI0Za8IcfCqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730536580; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YWtCk7tez02WCp3UPbmCk9sPbs1EJTbUSLlGcA+BIb8=; b=nU930xSLjI1HGoMvoGq8VBF0zYIYYV65UrlBWDQUwJ8lAGuqP22swTbLBi32azl0j4Te0A Z3+sNKhD0S+vaqzv/aRnkul/N4Q1INdVgEJkJSsuUPMJbJBClG1HeqbngIzTipOvdW8e+p 7qBOTyGFkWmOIdRbhuDrP6k2LVOuW/l9i1bBwW3Kjm7UWx6g6EjTanS3QyeFQhJeTSNRT7 A+rOhTbJX/PJdJeM6gXHxb+SeQms218f+Ix6+/Fjkvm9CyBxsvAHYXp+LQxjD8pPghaEEn rFfuFJ2kcu62+Gzl/nMXRIRtcb1GIz+N0B2YJ9fnSHUCxh28u+yrcIVq17MxGA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730536580; a=rsa-sha256; cv=none; b=yHXtEIiJUvyrJV5CbFfcwSOBcwgmhALH6z0Z6l8pmAMQ1jBNpBFpuqBO75J3xutY1hgk/S TJbwOVNnEp8w1KDSvcESiQtPfy95CL4KEd6VSquGnDYfjLbNGJBhIN+lcVcDb0k3FokYMy dFkJdwAyYhEZp5R7NmNxIxczCUJUq+O1S8gLRIA8VCcP5ySCkyWX2ip/ISszYKVzkJZ+xa RI20k3Ht8RC2bJ7Xdpv0tjXV0excFSh1GkDLuTt+fvTPChrSQ0NATqreKIWJiUJvB6MFJj NDqRW6hyQ4eic3Ggtcif0MovqtlfzMw38MONPRInmzB8Z/dJnK92Eq5Ctu6iBA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XgWKc2sH6zxWQ; Sat, 2 Nov 2024 08:36:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A28aKRE006562; Sat, 2 Nov 2024 08:36:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A28aKXr006559; Sat, 2 Nov 2024 08:36:20 GMT (envelope-from git) Date: Sat, 2 Nov 2024 08:36:20 GMT Message-Id: <202411020836.4A28aKXr006559@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Matthias Fechner Subject: git: 55133873e62f - main - www/gitlab: use LOCALBASE instead of PREFIX for dirs/files not part of gitlab package List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mfechner X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 55133873e62f2a8c6ecb33ac1c1f36e64059140b Auto-Submitted: auto-generated The branch main has been updated by mfechner: URL: https://cgit.FreeBSD.org/ports/commit/?id=55133873e62f2a8c6ecb33ac1c1f36e64059140b commit 55133873e62f2a8c6ecb33ac1c1f36e64059140b Author: Matthias Fechner AuthorDate: 2024-11-02 08:08:42 +0000 Commit: Matthias Fechner CommitDate: 2024-11-02 08:35:45 +0000 www/gitlab: use LOCALBASE instead of PREFIX for dirs/files not part of gitlab package Reported by: arrowd --- www/gitlab/Makefile | 2 +- www/gitlab/files/gitlab.in | 4 ++-- www/gitlab/files/patch-config_gitlab.yml.example | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/www/gitlab/Makefile b/www/gitlab/Makefile index ad9f4b7bfb87..0f2eae8a1f53 100644 --- a/www/gitlab/Makefile +++ b/www/gitlab/Makefile @@ -376,7 +376,7 @@ KERBEROS_RUN_DEPENDS= rubygem-timfel-krb5-auth>=0.8<1:security/rubygem-timfel-k KERBEROS_EXTRA_PATCHES_OFF= ${FILESDIR}/extra-patch-Gemfile-kerberos-off post-patch: - ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" -e "s|%%WWWDIR%%|${WWWDIR}|" ${WRKSRC}/config/gitlab.yml.example \ + ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" -e "s|%%LOCALBASE%%|${LOCALBASE}|" -e "s|%%WWWDIR%%|${WWWDIR}|" ${WRKSRC}/config/gitlab.yml.example \ ${WRKSRC}/config/puma.rb.example \ ${WRKSRC}/lib/support/nginx/gitlab \ ${WRKSRC}/lib/support/nginx/gitlab-ssl diff --git a/www/gitlab/files/gitlab.in b/www/gitlab/files/gitlab.in index 3087d86fb25a..a386086fb70c 100644 --- a/www/gitlab/files/gitlab.in +++ b/www/gitlab/files/gitlab.in @@ -94,9 +94,9 @@ gitlab_pages_dir=$(cd $app_root/../gitlab-pages 2> /dev/null && pwd) gitlab_pages_pid_path="$pid_path/gitlab-pages.pid" gitlab_pages_options="-pages-domain example.com -pages-root $app_root/shared/pages -listen-proxy 127.0.0.1:8090" gitlab_pages_log="$app_root/log/gitlab-pages.log" -shell_path="%%PREFIX%%/bin/bash" +shell_path="%%LOCALBASE%%/bin/bash" gitaly_enabled=true -gitaly_dir="%%PREFIX%%/share/gitaly" +gitaly_dir="%%LOCALBASE%%/share/gitaly" gitaly_pid_path="$pid_path/gitaly.pid" gitaly_log="$app_root/log/gitaly.log" sidekiq_pid_path="$pid_path/sidekiq-cluster.pid" diff --git a/www/gitlab/files/patch-config_gitlab.yml.example b/www/gitlab/files/patch-config_gitlab.yml.example index de2730916655..872bcceb51d3 100644 --- a/www/gitlab/files/patch-config_gitlab.yml.example +++ b/www/gitlab/files/patch-config_gitlab.yml.example @@ -34,7 +34,7 @@ backup: path: "tmp/backups" # Relative paths are relative to Rails.root (default: tmp/backups/) - # gitaly_backup_path: /home/git/gitaly/_build/bin/gitaly-backup # Path of the gitaly-backup binary (default: searches $PATH) -+ gitaly_backup_path: %%PREFIX%%/share/gitaly/bin/gitaly-backup # Path of the gitaly-backup binary (default: searches $PATH) ++ gitaly_backup_path: %%LOCALBASE%%/share/gitaly/bin/gitaly-backup # Path of the gitaly-backup binary (default: searches $PATH) # archive_permissions: 0640 # Permissions for the resulting backup.tar file (default: 0600) # keep_time: 604800 # default: 0 (forever) (in seconds) # pg_schema: public # default: nil, it means that all schemas will be backed up @@ -44,8 +44,8 @@ gitlab_shell: - path: /home/git/gitlab-shell/ - authorized_keys_file: /home/git/.ssh/authorized_keys -+ path: %%PREFIX%%/share/gitlab-shell/ -+ authorized_keys_file: %%PREFIX%%/git/.ssh/authorized_keys ++ path: %%LOCALBASE%%/share/gitlab-shell/ ++ authorized_keys_file: %%LOCALBASE%%/git/.ssh/authorized_keys # File that contains the secret key for verifying access for gitlab-shell. # Default is '.gitlab_shell_secret' relative to Rails.root (i.e. root of the GitLab app). @@ -77,14 +77,14 @@ ## GitLab Elasticsearch settings elasticsearch: - indexer_path: /home/git/gitlab-elasticsearch-indexer/ -+ indexer_path: %%PREFIX%%/bin/ ++ indexer_path: %%LOCALBASE%%/bin/ ## Git settings # CAUTION! # Use the default values unless you really know what you are doing git: - bin_path: /usr/bin/git -+ bin_path: %%PREFIX%%/bin/git ++ bin_path: %%LOCALBASE%%/bin/git ## Webpack settings # If enabled, this will tell rails to serve frontend assets from the webpack-dev-server running @@ -119,14 +119,14 @@ gitaly: - client_path: tmp/tests/gitaly/_build/bin -+ client_path: %%PREFIX%%/share/gitaly/bin ++ client_path: %%LOCALBASE%%/share/gitaly/bin token: secret workhorse: secret_file: tmp/gitlab_workhorse_test_secret backup: path: tmp/tests/backups - gitaly_backup_path: tmp/tests/gitaly/_build/bin/gitaly-backup -+ gitaly_backup_path: %%PREFIX%%/share/gitaly/bin/gitaly-backup ++ gitaly_backup_path: %%LOCALBASE%%/share/gitaly/bin/gitaly-backup gitlab_shell: path: tmp/tests/gitlab-shell/ authorized_keys_file: tmp/tests/authorized_keys