From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 131A1158089 for ; Fri, 17 Nov 2023 01:51:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AA4672BC018; Fri, 17 Nov 2023 01:51:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 74FF42BC01E for ; Fri, 17 Nov 2023 01:51:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 83B03335D79 for ; Fri, 17 Nov 2023 01:51:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AA637AAB for ; Fri, 17 Nov 2023 01:51:07 +0000 (UTC) From: "Yixun Lan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yixun Lan" Message-ID: <1700185734.4e3dc8b7cc1603daa922727bbcdd660f1a7927ed.dlan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-apps/gitea/Manifest www-apps/gitea/gitea-1.21.0.ebuild X-VCS-Directories: www-apps/gitea/ X-VCS-Committer: dlan X-VCS-Committer-Name: Yixun Lan X-VCS-Revision: 4e3dc8b7cc1603daa922727bbcdd660f1a7927ed X-VCS-Branch: master Date: Fri, 17 Nov 2023 01:51:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1bcc1a2a-6cb4-41f3-adab-9098aa18171a X-Archives-Hash: 06e75da0c253dbd2d587f1259a55d314 commit: 4e3dc8b7cc1603daa922727bbcdd660f1a7927ed Author: Ryan Qian bitbili net> AuthorDate: Tue Nov 14 18:01:25 2023 +0000 Commit: Yixun Lan gentoo org> CommitDate: Fri Nov 17 01:48:54 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e3dc8b7 www-apps/gitea: add 1.21.0 Closes: https://bugs.gentoo.org/917351 Signed-off-by: Ryan Qian bitbili.net> Signed-off-by: Yixun Lan gentoo.org> www-apps/gitea/Manifest | 1 + www-apps/gitea/gitea-1.21.0.ebuild | 128 +++++++++++++++++++++++++++++++++++++ 2 files changed, 129 insertions(+) diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest index 137351b79864..b7646cfab2ba 100644 --- a/www-apps/gitea/Manifest +++ b/www-apps/gitea/Manifest @@ -1,2 +1,3 @@ DIST gitea-1.20.4.tar.gz 50489949 BLAKE2B 1c14ec9f784cbbe3f67872b5344df209009bd32dc624b8e0351c2050ffa90657556ec6bd77b69acdb7a7506918aafbbb72a97839d92c2b39241c308ebeb4e565 SHA512 5e08959e0ff421898aebcb7640ab0869c1cabd82c84254c94024d2da16f91755e183b477a190a7b1987a5ab9ae7787c85d37fb9db990bddda937a4200777ed7c DIST gitea-1.20.5.tar.gz 50448780 BLAKE2B d8a1dc6bc147a06adc9280ea5d75d8cf039d447d96b4cd4ca6b35b11af5ed71df73d36b4c102f5b8ded2ba85efaea6104b31a4f39ab66c8a0c98cd36e826b734 SHA512 360a7a7bf0a51ea6d1fbcdfb35c5c3492b4fc6e29a9b60d0e6c6d01257d4743c580cf907293df8a4244750c5afe9ba1b33b2a898a18dd9e13947c58116ba3021 +DIST gitea-1.21.0.tar.gz 53744981 BLAKE2B 45c6172260fe616927ae03795245db7d15fc0a09f93d2fe974bb040d940e495bbed10710c643a8f9e85f156ccff9a2e34c905a26d4dcdf6317654ed5cda9ce2f SHA512 b3b5a72d7ebe119c975f0e7fcb4b4174582b866bdf4775181975a0b10904b5b54f8b6a1d865c75554e6d6998fe9f6d7846c3ebf5552926f1919f8cf986e798e6 diff --git a/www-apps/gitea/gitea-1.21.0.ebuild b/www-apps/gitea/gitea-1.21.0.ebuild new file mode 100644 index 000000000000..c3878c4ba16b --- /dev/null +++ b/www-apps/gitea/gitea-1.21.0.ebuild @@ -0,0 +1,128 @@ +# Copyright 2016-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit fcaps go-module tmpfiles systemd flag-o-matic + +DESCRIPTION="A painless self-hosted Git service" +HOMEPAGE="https://gitea.com https://github.com/go-gitea/gitea" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/go-gitea/gitea.git" +else + SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" +fi + +S="${WORKDIR}/${PN}-src-${PV}" + +LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT MPL-2.0" +SLOT="0" +IUSE="+acct pam sqlite pie" + +DEPEND=" + acct? ( + acct-group/git + acct-user/git[gitea] ) + pam? ( sys-libs/pam )" +RDEPEND="${DEPEND} + dev-vcs/git" +BDEPEND=">=dev-lang/go-1.21:=" + +DOCS=( + custom/conf/app.example.ini CHANGELOG.md CONTRIBUTING.md README.md +) +FILECAPS=( + -m 711 cap_net_bind_service+ep usr/bin/gitea +) + +RESTRICT="test" + +src_prepare() { + default + + sed -i -e "s#^MODE = console#MODE = file#" custom/conf/app.example.ini || die +} + +src_configure() { + # bug 832756 - PIE build issues + filter-flags -fPIE + filter-ldflags -fPIE -pie +} + +src_compile() { + local gitea_tags + local -a gitea_settings makeenv + + # The space-separated list of the -tags flag is deprecated, please + # always use the comma-separated list in the future. + gitea_tags="bindata" + gitea_tags+="$(usex pam ',pam' '')" + gitea_tags+="$(usex sqlite ',sqlite,sqlite_unlock_notify' '')" + + gitea_settings=( + "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini" + "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom" + "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea" + ) + + makeenv=( + LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}" + TAGS="${gitea_tags}" + ) + + if [[ ${PV} != *9999 ]]; then + # Use variable STORED_VERSION_FILE (the "${S}/VERSION" file) to set version, + # and prevent executing git command when it's not a live version. + makeenv+=( GITHUB_REF_NAME="" ) + fi + + if use pie ; then + # Please check the supported platforms when a new keyword request opened, + # refer to file: 'go/src/internal/platform/supported.go'. + # When PIE buildmode is not supported by internal linker, the external + # linker will be used automatically, refer to: + # https://github.com/golang/go/blob/ed817f1c4055a559a94afffecbb91c78e4f39942/src/cmd/link/internal/ld/config.go#L149 + makeenv+=( EXTRA_GOFLAGS="-buildmode=pie" ) + fi + + env "${makeenv[@]}" emake backend +} + +src_install() { + dobin gitea + + einstalldocs + + newconfd "${FILESDIR}/gitea.confd-r1" gitea + newinitd "${FILESDIR}/gitea.initd-r3" gitea + newtmpfiles - gitea.conf <<-EOF + d /run/gitea 0755 git git + EOF + systemd_newunit "${FILESDIR}"/gitea.service-r3 gitea.service + + insinto /etc/gitea + newins custom/conf/app.example.ini app.ini + if use acct; then + fowners root:git /etc/gitea/{,app.ini} + fperms g+w,o-rwx /etc/gitea/{,app.ini} + + diropts -m0750 -o git -g git + keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data + keepdir /var/log/gitea + fi +} + +pkg_postinst() { + fcaps_pkg_postinst + tmpfiles_process gitea.conf + + ewarn "Since 1.21.0:" + ewarn " 1. The built-in SSH server will now only accept SSH user" + ewarn " certificates, not server certificates. This behaviour matches OpenSSH." + ewarn " 2. The options of the subcommand must follow the subcommand now." + ewarn " 3. Remove 'CHARSET' config option for MySQL, always use 'utf8mb4'." + ewarn "For other breaking changes, see ." +}