[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2024-04-16 Thread Yixun Lan
commit: 0120bc689668a1201d228af22802e74ebb654742
Author: Ryan Qian  bitbili  net>
AuthorDate: Tue Apr 16 18:28:17 2024 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Tue Apr 16 21:22:08 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0120bc68

www-apps/gitea: drop 1.21.5

Closes: https://github.com/gentoo/gentoo/pull/36282
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.5.ebuild | 147 -
 2 files changed, 148 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index b89270973f57..7aadba4baa40 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,4 +1,3 @@
 DIST gitea-1.21.10.tar.gz 53972181 BLAKE2B 
564e5ee1b7ddb737dc35a712810c3958788457a307db51ecf84fc65b2a69f6b21110e134172c64693cc4bd49c3c6243d328ae9a9724e81b06f09df7cd279
 SHA512 
3129a1b379308195725906fd3c12722099e51662e56e3f488e5114bd531c71f9319e6f170cd227660a1a7f4d30d4d88686b4fc74c28f040d4c9b1a4c6acfba9b
 DIST gitea-1.21.11.tar.gz 54029294 BLAKE2B 
93fb0ea4118baefeb36283b7168759d318fede528b56a9167961763267181bb283bf9849ce5f57a9950b16047f3b98998b4cd0e92443a23aef4cf15589cc8628
 SHA512 
ba35d1710bc03ff05bf2490e233bf3b4bd9e002113885b4d2a3193288773c16ad0f2426d4ed64d26b7c49112a02838e67da32167f51c4c08fa4f23738bd78285
-DIST gitea-1.21.5.tar.gz 53857165 BLAKE2B 
5b215df1b38d1b5808c6b29aad20f0c21bb4abeb5ee76e466c05534a7fac4b2e91b37a7154743c82c2e685427e6ceada08bd36652a0c9cb6fc321d836a018093
 SHA512 
663ab29a6d7c4677aa86e39af4c78af403e50b71be959b0bf4128ee8e6221be3fcffe4fbf67dff23b407b25cb5196ce518bf9b6879764952a170a2383709ef1a
 DIST gitea-1.21.8.tar.gz 53901461 BLAKE2B 
e20f509037e5bb674696fb9bdc9b3eb58443f0481f5db2936a69775adcd8c1b53ad7103bae6ba4de2e852ef50218b8bd89dae174d19e0879d04f169e890af71b
 SHA512 
e895d67ab0c086fdef6aab6548ed06696054bb0a8103818c14f5f038a6fc6310178473038fa76752341a50196916ce3845b785f25ab66383bdf44ce8eac87461

diff --git a/www-apps/gitea/gitea-1.21.5.ebuild 
b/www-apps/gitea/gitea-1.21.5.ebuild
deleted file mode 100644
index df7f876a0823..
--- a/www-apps/gitea/gitea-1.21.5.ebuild
+++ /dev/null
@@ -1,147 +0,0 @@
-# Copyright 2016-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit fcaps go-module tmpfiles systemd flag-o-matic user-info
-
-DESCRIPTION="A painless self-hosted Git service"
-HOMEPAGE="https://gitea.com https://github.com/go-gitea/gitea;
-
-if [[ ${PV} == * ]]; 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 ~loong ~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} != * ]]; 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 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2024-04-16 Thread Yixun Lan
commit: 0c4b6b4060bc3f8a10e5184b5bf22c42d1a877de
Author: Ryan Qian  bitbili  net>
AuthorDate: Tue Apr 16 18:27:43 2024 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Tue Apr 16 21:21:36 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c4b6b40

www-apps/gitea: add 1.21.11

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.11.ebuild | 147 
 2 files changed, 148 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 42207fe5cae4..b89270973f57 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +1,4 @@
 DIST gitea-1.21.10.tar.gz 53972181 BLAKE2B 
564e5ee1b7ddb737dc35a712810c3958788457a307db51ecf84fc65b2a69f6b21110e134172c64693cc4bd49c3c6243d328ae9a9724e81b06f09df7cd279
 SHA512 
3129a1b379308195725906fd3c12722099e51662e56e3f488e5114bd531c71f9319e6f170cd227660a1a7f4d30d4d88686b4fc74c28f040d4c9b1a4c6acfba9b
+DIST gitea-1.21.11.tar.gz 54029294 BLAKE2B 
93fb0ea4118baefeb36283b7168759d318fede528b56a9167961763267181bb283bf9849ce5f57a9950b16047f3b98998b4cd0e92443a23aef4cf15589cc8628
 SHA512 
ba35d1710bc03ff05bf2490e233bf3b4bd9e002113885b4d2a3193288773c16ad0f2426d4ed64d26b7c49112a02838e67da32167f51c4c08fa4f23738bd78285
 DIST gitea-1.21.5.tar.gz 53857165 BLAKE2B 
5b215df1b38d1b5808c6b29aad20f0c21bb4abeb5ee76e466c05534a7fac4b2e91b37a7154743c82c2e685427e6ceada08bd36652a0c9cb6fc321d836a018093
 SHA512 
663ab29a6d7c4677aa86e39af4c78af403e50b71be959b0bf4128ee8e6221be3fcffe4fbf67dff23b407b25cb5196ce518bf9b6879764952a170a2383709ef1a
 DIST gitea-1.21.8.tar.gz 53901461 BLAKE2B 
e20f509037e5bb674696fb9bdc9b3eb58443f0481f5db2936a69775adcd8c1b53ad7103bae6ba4de2e852ef50218b8bd89dae174d19e0879d04f169e890af71b
 SHA512 
e895d67ab0c086fdef6aab6548ed06696054bb0a8103818c14f5f038a6fc6310178473038fa76752341a50196916ce3845b785f25ab66383bdf44ce8eac87461

diff --git a/www-apps/gitea/gitea-1.21.11.ebuild 
b/www-apps/gitea/gitea-1.21.11.ebuild
new file mode 100644
index ..7a37bd3df1e3
--- /dev/null
+++ b/www-apps/gitea/gitea-1.21.11.ebuild
@@ -0,0 +1,147 @@
+# Copyright 2016-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fcaps go-module tmpfiles systemd flag-o-matic user-info
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.com https://github.com/go-gitea/gitea;
+
+if [[ ${PV} == * ]]; 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 ~loong ~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} != * ]]; 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 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2024-04-15 Thread Joonas Niilola
commit: 3b117f00e47198ad231d821c2d37b211b186a408
Author: Joonas Niilola  gentoo  org>
AuthorDate: Tue Apr 16 05:41:58 2024 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Tue Apr 16 05:41:58 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b117f00

www-apps/gitea: Stabilize 1.21.8 amd64, #930040

Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/gitea-1.21.8.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/gitea-1.21.8.ebuild 
b/www-apps/gitea/gitea-1.21.8.ebuild
index 7a37bd3df1e3..df7f876a0823 100644
--- a/www-apps/gitea/gitea-1.21.8.ebuild
+++ b/www-apps/gitea/gitea-1.21.8.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == * ]]; then
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 ~loong ~riscv ~x86"
+   KEYWORDS="amd64 ~arm ~arm64 ~loong ~riscv ~x86"
 fi
 
 S="${WORKDIR}/${PN}-src-${PV}"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2024-03-26 Thread Yixun Lan
commit: 9ee98d4ecb3ca42282c6144ee27d2f214a33450a
Author: Ryan Qian  bitbili  net>
AuthorDate: Tue Mar 26 05:31:11 2024 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Tue Mar 26 13:44:53 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ee98d4e

www-apps/gitea: add 1.21.10, drop 1.21.7

Closes: https://github.com/gentoo/gentoo/pull/35921
Signed-off-by: Ryan Qian  bitbili.net>
Signed-off-by: Yixun Lan  gentoo.org>

 www-apps/gitea/Manifest  | 2 +-
 www-apps/gitea/{gitea-1.21.7.ebuild => gitea-1.21.10.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 75a4c5ab010f..42207fe5cae4 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +1,3 @@
+DIST gitea-1.21.10.tar.gz 53972181 BLAKE2B 
564e5ee1b7ddb737dc35a712810c3958788457a307db51ecf84fc65b2a69f6b21110e134172c64693cc4bd49c3c6243d328ae9a9724e81b06f09df7cd279
 SHA512 
3129a1b379308195725906fd3c12722099e51662e56e3f488e5114bd531c71f9319e6f170cd227660a1a7f4d30d4d88686b4fc74c28f040d4c9b1a4c6acfba9b
 DIST gitea-1.21.5.tar.gz 53857165 BLAKE2B 
5b215df1b38d1b5808c6b29aad20f0c21bb4abeb5ee76e466c05534a7fac4b2e91b37a7154743c82c2e685427e6ceada08bd36652a0c9cb6fc321d836a018093
 SHA512 
663ab29a6d7c4677aa86e39af4c78af403e50b71be959b0bf4128ee8e6221be3fcffe4fbf67dff23b407b25cb5196ce518bf9b6879764952a170a2383709ef1a
-DIST gitea-1.21.7.tar.gz 53827752 BLAKE2B 
8c58504b7438062923bffdf926e0825bba0a9eb5f9fc10fa076a82e1887a09ddf9d8ae014c060b64fe7adc391d768513e6c80aaa0e3ef99cc4a59214c9e15a12
 SHA512 
f5b097fb992b6c72ca3f0cb12dc5cca84fbefbfc78ef80aeab957820b5df2f01fc87886855567e95875a23e6f0af9a6f5018ba9b38cff79d879ddcec7e2676eb
 DIST gitea-1.21.8.tar.gz 53901461 BLAKE2B 
e20f509037e5bb674696fb9bdc9b3eb58443f0481f5db2936a69775adcd8c1b53ad7103bae6ba4de2e852ef50218b8bd89dae174d19e0879d04f169e890af71b
 SHA512 
e895d67ab0c086fdef6aab6548ed06696054bb0a8103818c14f5f038a6fc6310178473038fa76752341a50196916ce3845b785f25ab66383bdf44ce8eac87461

diff --git a/www-apps/gitea/gitea-1.21.7.ebuild 
b/www-apps/gitea/gitea-1.21.10.ebuild
similarity index 100%
rename from www-apps/gitea/gitea-1.21.7.ebuild
rename to www-apps/gitea/gitea-1.21.10.ebuild



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2024-03-15 Thread Yixun Lan
commit: 96d5b7c8d9fc6f29f55392f093d8a7959de0f61a
Author: Ryan Qian  bitbili  net>
AuthorDate: Fri Mar 15 00:52:39 2024 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Fri Mar 15 09:14:19 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96d5b7c8

www-apps/gitea: add 1.21.8, drop 1.21.6

Closes:  https://github.com/gentoo/gentoo/pull/35763
Signed-off-by: Ryan Qian  bitbili.net>
Signed-off-by: Yixun Lan  gentoo.org>

 www-apps/gitea/Manifest | 2 +-
 www-apps/gitea/{gitea-1.21.6.ebuild => gitea-1.21.8.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index edfa51a4c670..75a4c5ab010f 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +1,3 @@
 DIST gitea-1.21.5.tar.gz 53857165 BLAKE2B 
5b215df1b38d1b5808c6b29aad20f0c21bb4abeb5ee76e466c05534a7fac4b2e91b37a7154743c82c2e685427e6ceada08bd36652a0c9cb6fc321d836a018093
 SHA512 
663ab29a6d7c4677aa86e39af4c78af403e50b71be959b0bf4128ee8e6221be3fcffe4fbf67dff23b407b25cb5196ce518bf9b6879764952a170a2383709ef1a
-DIST gitea-1.21.6.tar.gz 53877177 BLAKE2B 
52dd3819cbcbe17190ac8ef9f40df2f517710e3a5308ade0ba513b6e8d2ab517962d91ba1448a5be84dc648dedb875975805a4654ec94c6c65b8ea06345bfc46
 SHA512 
4a728b272d0849f21974a10de37cbde2de096cde203d305b24aa04a30c6fb70d1848856002df560faadcc9aef4d203f22053c7af5ffceaf65091a1696dc420c9
 DIST gitea-1.21.7.tar.gz 53827752 BLAKE2B 
8c58504b7438062923bffdf926e0825bba0a9eb5f9fc10fa076a82e1887a09ddf9d8ae014c060b64fe7adc391d768513e6c80aaa0e3ef99cc4a59214c9e15a12
 SHA512 
f5b097fb992b6c72ca3f0cb12dc5cca84fbefbfc78ef80aeab957820b5df2f01fc87886855567e95875a23e6f0af9a6f5018ba9b38cff79d879ddcec7e2676eb
+DIST gitea-1.21.8.tar.gz 53901461 BLAKE2B 
e20f509037e5bb674696fb9bdc9b3eb58443f0481f5db2936a69775adcd8c1b53ad7103bae6ba4de2e852ef50218b8bd89dae174d19e0879d04f169e890af71b
 SHA512 
e895d67ab0c086fdef6aab6548ed06696054bb0a8103818c14f5f038a6fc6310178473038fa76752341a50196916ce3845b785f25ab66383bdf44ce8eac87461

diff --git a/www-apps/gitea/gitea-1.21.6.ebuild 
b/www-apps/gitea/gitea-1.21.8.ebuild
similarity index 100%
rename from www-apps/gitea/gitea-1.21.6.ebuild
rename to www-apps/gitea/gitea-1.21.8.ebuild



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2024-02-26 Thread Yixun Lan
commit: b09d1d4a8af0e5e3ec27b3ed2b16554eb32c1d83
Author: Ryan Qian  bitbili  net>
AuthorDate: Mon Feb 26 10:16:28 2024 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Mon Feb 26 11:33:38 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b09d1d4a

www-apps/gitea: add 1.21.7

Closes: https://github.com/gentoo/gentoo/pull/35537
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.7.ebuild | 147 +
 2 files changed, 148 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index afbbc8f35fb1..edfa51a4c670 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1,3 @@
 DIST gitea-1.21.5.tar.gz 53857165 BLAKE2B 
5b215df1b38d1b5808c6b29aad20f0c21bb4abeb5ee76e466c05534a7fac4b2e91b37a7154743c82c2e685427e6ceada08bd36652a0c9cb6fc321d836a018093
 SHA512 
663ab29a6d7c4677aa86e39af4c78af403e50b71be959b0bf4128ee8e6221be3fcffe4fbf67dff23b407b25cb5196ce518bf9b6879764952a170a2383709ef1a
 DIST gitea-1.21.6.tar.gz 53877177 BLAKE2B 
52dd3819cbcbe17190ac8ef9f40df2f517710e3a5308ade0ba513b6e8d2ab517962d91ba1448a5be84dc648dedb875975805a4654ec94c6c65b8ea06345bfc46
 SHA512 
4a728b272d0849f21974a10de37cbde2de096cde203d305b24aa04a30c6fb70d1848856002df560faadcc9aef4d203f22053c7af5ffceaf65091a1696dc420c9
+DIST gitea-1.21.7.tar.gz 53827752 BLAKE2B 
8c58504b7438062923bffdf926e0825bba0a9eb5f9fc10fa076a82e1887a09ddf9d8ae014c060b64fe7adc391d768513e6c80aaa0e3ef99cc4a59214c9e15a12
 SHA512 
f5b097fb992b6c72ca3f0cb12dc5cca84fbefbfc78ef80aeab957820b5df2f01fc87886855567e95875a23e6f0af9a6f5018ba9b38cff79d879ddcec7e2676eb

diff --git a/www-apps/gitea/gitea-1.21.7.ebuild 
b/www-apps/gitea/gitea-1.21.7.ebuild
new file mode 100644
index ..7a37bd3df1e3
--- /dev/null
+++ b/www-apps/gitea/gitea-1.21.7.ebuild
@@ -0,0 +1,147 @@
+# Copyright 2016-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fcaps go-module tmpfiles systemd flag-o-matic user-info
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.com https://github.com/go-gitea/gitea;
+
+if [[ ${PV} == * ]]; 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 ~loong ~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} != * ]]; 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 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2024-02-23 Thread Yixun Lan
commit: 63be8853bb96b099b41e97f5403a95df4d01d91d
Author: Ryan Qian  bitbili  net>
AuthorDate: Fri Feb 23 13:09:02 2024 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Sat Feb 24 02:00:23 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63be8853

www-apps/gitea: add 1.21.6

Closes: https://github.com/gentoo/gentoo/pull/35505
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.6.ebuild | 147 +
 2 files changed, 148 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 85ee2b09f73a..afbbc8f35fb1 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1 +1,2 @@
 DIST gitea-1.21.5.tar.gz 53857165 BLAKE2B 
5b215df1b38d1b5808c6b29aad20f0c21bb4abeb5ee76e466c05534a7fac4b2e91b37a7154743c82c2e685427e6ceada08bd36652a0c9cb6fc321d836a018093
 SHA512 
663ab29a6d7c4677aa86e39af4c78af403e50b71be959b0bf4128ee8e6221be3fcffe4fbf67dff23b407b25cb5196ce518bf9b6879764952a170a2383709ef1a
+DIST gitea-1.21.6.tar.gz 53877177 BLAKE2B 
52dd3819cbcbe17190ac8ef9f40df2f517710e3a5308ade0ba513b6e8d2ab517962d91ba1448a5be84dc648dedb875975805a4654ec94c6c65b8ea06345bfc46
 SHA512 
4a728b272d0849f21974a10de37cbde2de096cde203d305b24aa04a30c6fb70d1848856002df560faadcc9aef4d203f22053c7af5ffceaf65091a1696dc420c9

diff --git a/www-apps/gitea/gitea-1.21.6.ebuild 
b/www-apps/gitea/gitea-1.21.6.ebuild
new file mode 100644
index ..7a37bd3df1e3
--- /dev/null
+++ b/www-apps/gitea/gitea-1.21.6.ebuild
@@ -0,0 +1,147 @@
+# Copyright 2016-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fcaps go-module tmpfiles systemd flag-o-matic user-info
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.com https://github.com/go-gitea/gitea;
+
+if [[ ${PV} == * ]]; 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 ~loong ~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} != * ]]; 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 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2024-02-19 Thread Yixun Lan
commit: 0ec048d1cd03a372dc47ad77910caf5b2a75046c
Author: Yixun Lan  gentoo  org>
AuthorDate: Tue Feb 20 02:49:29 2024 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Tue Feb 20 02:49:29 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ec048d1

www-apps/gitea: Stabilize 1.21.5 amd64, #925025

Signed-off-by: Yixun Lan  gentoo.org>

 www-apps/gitea/gitea-1.21.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/gitea-1.21.5.ebuild 
b/www-apps/gitea/gitea-1.21.5.ebuild
index 7a37bd3df1e3..df7f876a0823 100644
--- a/www-apps/gitea/gitea-1.21.5.ebuild
+++ b/www-apps/gitea/gitea-1.21.5.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == * ]]; then
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 ~loong ~riscv ~x86"
+   KEYWORDS="amd64 ~arm ~arm64 ~loong ~riscv ~x86"
 fi
 
 S="${WORKDIR}/${PN}-src-${PV}"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2024-02-19 Thread Yixun Lan
commit: daa685f289d8d96c94a31fb8f6ab7be067dc76ec
Author: Yixun Lan  gentoo  org>
AuthorDate: Tue Feb 20 02:51:08 2024 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Tue Feb 20 02:52:24 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=daa685f2

www-apps/gitea: drop vulnerable version 1.21.4

Bug: https://bugs.gentoo.org/925023
Signed-off-by: Yixun Lan  gentoo.org>

 www-apps/gitea/Manifest|   1 -
 www-apps/gitea/gitea-1.21.4.ebuild | 147 -
 2 files changed, 148 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 542c83dc15b5..85ee2b09f73a 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1 @@
-DIST gitea-1.21.4.tar.gz 53888236 BLAKE2B 
910147d13ba20c2b08e691142e9a7bb28cc98947d519cf27fcf98abceea4bf0736419906160dd72c3793bbcfbce75a67227134817a97f74bcca942b6818073ed
 SHA512 
b8d5756968dde969c15dd964ba017dcc5ce11eec6cd1704abb54862c39d592ab7bf163505c92d1abb436c174601468898803a01f0db677c9d7d946a79b664e01
 DIST gitea-1.21.5.tar.gz 53857165 BLAKE2B 
5b215df1b38d1b5808c6b29aad20f0c21bb4abeb5ee76e466c05534a7fac4b2e91b37a7154743c82c2e685427e6ceada08bd36652a0c9cb6fc321d836a018093
 SHA512 
663ab29a6d7c4677aa86e39af4c78af403e50b71be959b0bf4128ee8e6221be3fcffe4fbf67dff23b407b25cb5196ce518bf9b6879764952a170a2383709ef1a

diff --git a/www-apps/gitea/gitea-1.21.4.ebuild 
b/www-apps/gitea/gitea-1.21.4.ebuild
deleted file mode 100644
index ee8296e5ad7f..
--- a/www-apps/gitea/gitea-1.21.4.ebuild
+++ /dev/null
@@ -1,147 +0,0 @@
-# Copyright 2016-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit fcaps go-module tmpfiles systemd flag-o-matic user-info
-
-DESCRIPTION="A painless self-hosted Git service"
-HOMEPAGE="https://gitea.com https://github.com/go-gitea/gitea;
-
-if [[ ${PV} == * ]]; 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} != * ]]; 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-r4 gitea.service
-
-   insinto 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2024-02-18 Thread Yixun Lan
commit: a362941457612d5d99bd9fb74eda72d21bd97d6d
Author: Yixun Lan  gentoo  org>
AuthorDate: Mon Feb 19 06:48:39 2024 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Mon Feb 19 06:48:39 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3629414

www-apps/gitea: drop 1.21.3

Signed-off-by: Yixun Lan  gentoo.org>

 www-apps/gitea/Manifest|   1 -
 www-apps/gitea/gitea-1.21.3.ebuild | 145 -
 2 files changed, 146 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index b3c1d05d9e4c..542c83dc15b5 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +1,2 @@
-DIST gitea-1.21.3.tar.gz 53775315 BLAKE2B 
0baae678e3ad75129f753d0e1eadf83b06008da5041f6859f985facc78f223284f17cad0e8858c9c8a7d6ca34042c7cb19f69fa30a560170a60b3548bdef8f6b
 SHA512 
f55336d4067d9403c5556a8a641ca805c13e3c7dbc60a684329cb9f3a886c0ebb10a3318dc9c4c3251e1bd0bcc0821fe40575d9ada1779012a850d592acdabd1
 DIST gitea-1.21.4.tar.gz 53888236 BLAKE2B 
910147d13ba20c2b08e691142e9a7bb28cc98947d519cf27fcf98abceea4bf0736419906160dd72c3793bbcfbce75a67227134817a97f74bcca942b6818073ed
 SHA512 
b8d5756968dde969c15dd964ba017dcc5ce11eec6cd1704abb54862c39d592ab7bf163505c92d1abb436c174601468898803a01f0db677c9d7d946a79b664e01
 DIST gitea-1.21.5.tar.gz 53857165 BLAKE2B 
5b215df1b38d1b5808c6b29aad20f0c21bb4abeb5ee76e466c05534a7fac4b2e91b37a7154743c82c2e685427e6ceada08bd36652a0c9cb6fc321d836a018093
 SHA512 
663ab29a6d7c4677aa86e39af4c78af403e50b71be959b0bf4128ee8e6221be3fcffe4fbf67dff23b407b25cb5196ce518bf9b6879764952a170a2383709ef1a

diff --git a/www-apps/gitea/gitea-1.21.3.ebuild 
b/www-apps/gitea/gitea-1.21.3.ebuild
deleted file mode 100644
index 4f440f06a8fc..
--- a/www-apps/gitea/gitea-1.21.3.ebuild
+++ /dev/null
@@ -1,145 +0,0 @@
-# Copyright 2016-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit fcaps go-module tmpfiles systemd flag-o-matic user-info
-
-DESCRIPTION="A painless self-hosted Git service"
-HOMEPAGE="https://gitea.com https://github.com/go-gitea/gitea;
-
-if [[ ${PV} == * ]]; 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} != * ]]; 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 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2024-02-17 Thread Joonas Niilola
commit: a650264aa1add802a63dcbda4d64843c4902ae4c
Author: Joonas Niilola  gentoo  org>
AuthorDate: Sun Feb 18 07:26:55 2024 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sun Feb 18 07:27:23 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a650264a

www-apps/gitea: Stabilize 1.21.4 amd64, #924840

Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/gitea-1.21.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/gitea-1.21.4.ebuild 
b/www-apps/gitea/gitea-1.21.4.ebuild
index 76564afb3f18..ee8296e5ad7f 100644
--- a/www-apps/gitea/gitea-1.21.4.ebuild
+++ b/www-apps/gitea/gitea-1.21.4.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == * ]]; then
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"
+   KEYWORDS="amd64 ~arm ~arm64 ~riscv ~x86"
 fi
 
 S="${WORKDIR}/${PN}-src-${PV}"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2024-02-04 Thread WANG Xuerui
commit: fc0a6e4c895c9fe587d013fee88958877e6b09e2
Author: WANG Xuerui  gentoo  org>
AuthorDate: Fri Feb  2 07:51:16 2024 +
Commit: WANG Xuerui  gentoo  org>
CommitDate: Sun Feb  4 17:08:03 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc0a6e4c

www-apps/gitea: keyword 1.21.5 for ~loong

Signed-off-by: WANG Xuerui  gentoo.org>

 www-apps/gitea/gitea-1.21.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/gitea-1.21.5.ebuild 
b/www-apps/gitea/gitea-1.21.5.ebuild
index 76564afb3f18..7a37bd3df1e3 100644
--- a/www-apps/gitea/gitea-1.21.5.ebuild
+++ b/www-apps/gitea/gitea-1.21.5.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == * ]]; then
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"
+   KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86"
 fi
 
 S="${WORKDIR}/${PN}-src-${PV}"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2024-02-01 Thread Yixun Lan
commit: 9215c90a985ab8eb2b0885e965cfaeaf91394a0e
Author: Ryan Qian  bitbili  net>
AuthorDate: Thu Feb  1 18:14:55 2024 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Fri Feb  2 00:52:27 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9215c90a

www-apps/gitea: add 1.21.5

Closes: https://github.com/gentoo/gentoo/pull/35137
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.5.ebuild | 147 +
 2 files changed, 148 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index e13bc0e555b7..b3c1d05d9e4c 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1,3 @@
 DIST gitea-1.21.3.tar.gz 53775315 BLAKE2B 
0baae678e3ad75129f753d0e1eadf83b06008da5041f6859f985facc78f223284f17cad0e8858c9c8a7d6ca34042c7cb19f69fa30a560170a60b3548bdef8f6b
 SHA512 
f55336d4067d9403c5556a8a641ca805c13e3c7dbc60a684329cb9f3a886c0ebb10a3318dc9c4c3251e1bd0bcc0821fe40575d9ada1779012a850d592acdabd1
 DIST gitea-1.21.4.tar.gz 53888236 BLAKE2B 
910147d13ba20c2b08e691142e9a7bb28cc98947d519cf27fcf98abceea4bf0736419906160dd72c3793bbcfbce75a67227134817a97f74bcca942b6818073ed
 SHA512 
b8d5756968dde969c15dd964ba017dcc5ce11eec6cd1704abb54862c39d592ab7bf163505c92d1abb436c174601468898803a01f0db677c9d7d946a79b664e01
+DIST gitea-1.21.5.tar.gz 53857165 BLAKE2B 
5b215df1b38d1b5808c6b29aad20f0c21bb4abeb5ee76e466c05534a7fac4b2e91b37a7154743c82c2e685427e6ceada08bd36652a0c9cb6fc321d836a018093
 SHA512 
663ab29a6d7c4677aa86e39af4c78af403e50b71be959b0bf4128ee8e6221be3fcffe4fbf67dff23b407b25cb5196ce518bf9b6879764952a170a2383709ef1a

diff --git a/www-apps/gitea/gitea-1.21.5.ebuild 
b/www-apps/gitea/gitea-1.21.5.ebuild
new file mode 100644
index ..76564afb3f18
--- /dev/null
+++ b/www-apps/gitea/gitea-1.21.5.ebuild
@@ -0,0 +1,147 @@
+# Copyright 2016-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fcaps go-module tmpfiles systemd flag-o-matic user-info
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.com https://github.com/go-gitea/gitea;
+
+if [[ ${PV} == * ]]; 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} != * ]]; 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
+}
+

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2024-01-23 Thread Yixun Lan
commit: f9a7736f1d2fe597ad6e52252ac9f57821f4ec2f
Author: Yixun Lan  gentoo  org>
AuthorDate: Tue Jan 23 13:43:21 2024 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Tue Jan 23 13:44:01 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9a7736f

www-apps/gitea: drop 1.21.2

Signed-off-by: Yixun Lan  gentoo.org>

 www-apps/gitea/Manifest|   1 -
 www-apps/gitea/gitea-1.21.2.ebuild | 145 -
 2 files changed, 146 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 26daaaf42970..e13bc0e555b7 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +1,2 @@
-DIST gitea-1.21.2.tar.gz 53795805 BLAKE2B 
ee85aae28325df59aa7fefcda5e3ec4216f79e115972fcbea543b189c6f8fe2bb2f7d23f27cd2418c7f50e474177398e4cd925474ca5d68fe3bab64a2cf785b7
 SHA512 
809254dfe420fb97697855d2aa815344b56d316edaec140598526fc7728275ca9a10179093b8d036cce0947684234a0aa2fa7febdd1bbdf7f831a249cc16ba4a
 DIST gitea-1.21.3.tar.gz 53775315 BLAKE2B 
0baae678e3ad75129f753d0e1eadf83b06008da5041f6859f985facc78f223284f17cad0e8858c9c8a7d6ca34042c7cb19f69fa30a560170a60b3548bdef8f6b
 SHA512 
f55336d4067d9403c5556a8a641ca805c13e3c7dbc60a684329cb9f3a886c0ebb10a3318dc9c4c3251e1bd0bcc0821fe40575d9ada1779012a850d592acdabd1
 DIST gitea-1.21.4.tar.gz 53888236 BLAKE2B 
910147d13ba20c2b08e691142e9a7bb28cc98947d519cf27fcf98abceea4bf0736419906160dd72c3793bbcfbce75a67227134817a97f74bcca942b6818073ed
 SHA512 
b8d5756968dde969c15dd964ba017dcc5ce11eec6cd1704abb54862c39d592ab7bf163505c92d1abb436c174601468898803a01f0db677c9d7d946a79b664e01

diff --git a/www-apps/gitea/gitea-1.21.2.ebuild 
b/www-apps/gitea/gitea-1.21.2.ebuild
deleted file mode 100644
index 4f440f06a8fc..
--- a/www-apps/gitea/gitea-1.21.2.ebuild
+++ /dev/null
@@ -1,145 +0,0 @@
-# Copyright 2016-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit fcaps go-module tmpfiles systemd flag-o-matic user-info
-
-DESCRIPTION="A painless self-hosted Git service"
-HOMEPAGE="https://gitea.com https://github.com/go-gitea/gitea;
-
-if [[ ${PV} == * ]]; 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} != * ]]; 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 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2024-01-20 Thread Sam James
commit: 1dc775b57c3daa973d1b82f568ca1259585bfe5a
Author: Sam James  gentoo  org>
AuthorDate: Sat Jan 20 12:59:46 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jan 20 13:00:17 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1dc775b5

www-apps/gitea: Stabilize 1.21.3 amd64, #922536

Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/gitea-1.21.3.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www-apps/gitea/gitea-1.21.3.ebuild 
b/www-apps/gitea/gitea-1.21.3.ebuild
index 15ca9f045d07..4f440f06a8fc 100644
--- a/www-apps/gitea/gitea-1.21.3.ebuild
+++ b/www-apps/gitea/gitea-1.21.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2016-2023 Gentoo Authors
+# Copyright 2016-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -13,7 +13,7 @@ if [[ ${PV} == * ]]; then
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"
+   KEYWORDS="amd64 ~arm ~arm64 ~riscv ~x86"
 fi
 
 S="${WORKDIR}/${PN}-src-${PV}"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2024-01-20 Thread Yixun Lan
commit: 2be48a279d1988a48f719230650363cd27ac561d
Author: Ryan Qian  bitbili  net>
AuthorDate: Wed Jan 17 21:37:59 2024 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Sat Jan 20 11:03:46 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2be48a27

www-apps/gitea: add 1.21.4

Closes: https://github.com/gentoo/gentoo/pull/34874
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.4.ebuild | 147 +
 2 files changed, 148 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 5c096f065b7b..26daaaf42970 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1,3 @@
 DIST gitea-1.21.2.tar.gz 53795805 BLAKE2B 
ee85aae28325df59aa7fefcda5e3ec4216f79e115972fcbea543b189c6f8fe2bb2f7d23f27cd2418c7f50e474177398e4cd925474ca5d68fe3bab64a2cf785b7
 SHA512 
809254dfe420fb97697855d2aa815344b56d316edaec140598526fc7728275ca9a10179093b8d036cce0947684234a0aa2fa7febdd1bbdf7f831a249cc16ba4a
 DIST gitea-1.21.3.tar.gz 53775315 BLAKE2B 
0baae678e3ad75129f753d0e1eadf83b06008da5041f6859f985facc78f223284f17cad0e8858c9c8a7d6ca34042c7cb19f69fa30a560170a60b3548bdef8f6b
 SHA512 
f55336d4067d9403c5556a8a641ca805c13e3c7dbc60a684329cb9f3a886c0ebb10a3318dc9c4c3251e1bd0bcc0821fe40575d9ada1779012a850d592acdabd1
+DIST gitea-1.21.4.tar.gz 53888236 BLAKE2B 
910147d13ba20c2b08e691142e9a7bb28cc98947d519cf27fcf98abceea4bf0736419906160dd72c3793bbcfbce75a67227134817a97f74bcca942b6818073ed
 SHA512 
b8d5756968dde969c15dd964ba017dcc5ce11eec6cd1704abb54862c39d592ab7bf163505c92d1abb436c174601468898803a01f0db677c9d7d946a79b664e01

diff --git a/www-apps/gitea/gitea-1.21.4.ebuild 
b/www-apps/gitea/gitea-1.21.4.ebuild
new file mode 100644
index ..76564afb3f18
--- /dev/null
+++ b/www-apps/gitea/gitea-1.21.4.ebuild
@@ -0,0 +1,147 @@
+# Copyright 2016-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fcaps go-module tmpfiles systemd flag-o-matic user-info
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.com https://github.com/go-gitea/gitea;
+
+if [[ ${PV} == * ]]; 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} != * ]]; 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
+}
+

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/, www-apps/gitea/files/

2024-01-13 Thread Yixun Lan
commit: 9624621806fb75c1fe861720d27888ebd89b37bb
Author: Yixun Lan  gentoo  org>
AuthorDate: Sat Jan 13 11:08:42 2024 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Sat Jan 13 11:09:57 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96246218

www-apps/gitea: drop 1.20.6

Signed-off-by: Yixun Lan  gentoo.org>

 www-apps/gitea/Manifest   |   1 -
 www-apps/gitea/files/gitea.service-r3 |  34 -
 www-apps/gitea/gitea-1.20.6.ebuild| 131 --
 3 files changed, 166 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 3ebb0f9ea093..5c096f065b7b 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +1,2 @@
-DIST gitea-1.20.6.tar.gz 50473256 BLAKE2B 
0b26e38815dc1bf16c6f50c0b4cd7e6c3c3e0900056beda6177cb7fd1df1378e89a6ca47228f3fef2f6176eb5054d1bfb999ba1a1314a5915dbbff62f0f1365a
 SHA512 
fb0a979bdaaec25512f70cbcb1907d5e649eff2d0795a6bb5fe9e582ada1f132ca649dd594ccd24051fa6e2e0fd3b94effc66475ab2f9faeb03cebd4c657336a
 DIST gitea-1.21.2.tar.gz 53795805 BLAKE2B 
ee85aae28325df59aa7fefcda5e3ec4216f79e115972fcbea543b189c6f8fe2bb2f7d23f27cd2418c7f50e474177398e4cd925474ca5d68fe3bab64a2cf785b7
 SHA512 
809254dfe420fb97697855d2aa815344b56d316edaec140598526fc7728275ca9a10179093b8d036cce0947684234a0aa2fa7febdd1bbdf7f831a249cc16ba4a
 DIST gitea-1.21.3.tar.gz 53775315 BLAKE2B 
0baae678e3ad75129f753d0e1eadf83b06008da5041f6859f985facc78f223284f17cad0e8858c9c8a7d6ca34042c7cb19f69fa30a560170a60b3548bdef8f6b
 SHA512 
f55336d4067d9403c5556a8a641ca805c13e3c7dbc60a684329cb9f3a886c0ebb10a3318dc9c4c3251e1bd0bcc0821fe40575d9ada1779012a850d592acdabd1

diff --git a/www-apps/gitea/files/gitea.service-r3 
b/www-apps/gitea/files/gitea.service-r3
deleted file mode 100644
index 0867ba637824..
--- a/www-apps/gitea/files/gitea.service-r3
+++ /dev/null
@@ -1,34 +0,0 @@
-[Unit]
-Description=Gitea service
-Documentation=https://docs.gitea.io/
-
-AssertPathIsDirectory=/var/lib/gitea
-AssertPathIsReadWrite=/var/lib/gitea
-
-After=network.target
-Requires=network.target
-After=mysqld.service
-After=postgresql-9.5.service
-After=postgresql-9.6.service
-After=postgresql-10.service
-After=postgresql-11.service
-After=postgresql-12.service
-After=postgresql-13.service
-After=postgresql-14.service
-After=memcached.service
-After=redis.service
-
-[Service]
-User=git
-Group=git
-
-Environment="GITEA_WORK_DIR=/var/lib/gitea" 
"GITEA_CUSTOM=/var/lib/gitea/custom"
-WorkingDirectory=/var/lib/gitea
-ExecStart=/usr/bin/gitea web --config /etc/gitea/app.ini
-
-Restart=always
-PrivateTmp=true
-Nice=5
-
-[Install]
-WantedBy=multi-user.target

diff --git a/www-apps/gitea/gitea-1.20.6.ebuild 
b/www-apps/gitea/gitea-1.20.6.ebuild
deleted file mode 100644
index 528d3b3a10f7..
--- a/www-apps/gitea/gitea-1.20.6.ebuild
+++ /dev/null
@@ -1,131 +0,0 @@
-# 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 user-info
-
-DESCRIPTION="A painless self-hosted Git service"
-HOMEPAGE="https://gitea.com https://github.com/go-gitea/gitea;
-
-if [[ ${PV} == * ]]; 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 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"
-
-DOCS=(
-   custom/conf/app.example.ini 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
-   if use sqlite ; then
-   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
-   fi
-}
-
-src_configure() {
-   # bug 832756 - PIE build issues
-   filter-flags -fPIE
-   filter-ldflags -fPIE -pie
-}
-
-src_compile() {
-   local gitea_tags=(
-   bindata
-   $(usev pam)
-   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
-   )
-   local 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"
-   )
-   local makeenv=(
-   DRONE_TAG="${PV}"
-   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
-   

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2024-01-12 Thread Arthur Zamarin
commit: 0910e90fbfac6837673720b5c64b5bca5cd34a03
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Jan 12 11:29:09 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Jan 12 11:29:09 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0910e90f

www-apps/gitea: Stabilize 1.21.2 amd64, #921843

Signed-off-by: Arthur Zamarin  gentoo.org>

 www-apps/gitea/gitea-1.21.2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www-apps/gitea/gitea-1.21.2.ebuild 
b/www-apps/gitea/gitea-1.21.2.ebuild
index 15ca9f045d07..4f440f06a8fc 100644
--- a/www-apps/gitea/gitea-1.21.2.ebuild
+++ b/www-apps/gitea/gitea-1.21.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2016-2023 Gentoo Authors
+# Copyright 2016-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -13,7 +13,7 @@ if [[ ${PV} == * ]]; then
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"
+   KEYWORDS="amd64 ~arm ~arm64 ~riscv ~x86"
 fi
 
 S="${WORKDIR}/${PN}-src-${PV}"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-12-21 Thread Yixun Lan
commit: 270eab7139be654b8128c64526c06a287fe05915
Author: Ryan Qian  bitbili  net>
AuthorDate: Thu Dec 21 10:27:32 2023 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Thu Dec 21 15:03:01 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=270eab71

www-apps/gitea: add 1.21.3, drop 1.21.1

Closes: https://github.com/gentoo/gentoo/pull/34392
Signed-off-by: Ryan Qian  bitbili.net>
Signed-off-by: Yixun Lan  gentoo.org>

 www-apps/gitea/Manifest | 2 +-
 www-apps/gitea/{gitea-1.21.1.ebuild => gitea-1.21.3.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index c492a3236fee..3ebb0f9ea093 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +1,3 @@
 DIST gitea-1.20.6.tar.gz 50473256 BLAKE2B 
0b26e38815dc1bf16c6f50c0b4cd7e6c3c3e0900056beda6177cb7fd1df1378e89a6ca47228f3fef2f6176eb5054d1bfb999ba1a1314a5915dbbff62f0f1365a
 SHA512 
fb0a979bdaaec25512f70cbcb1907d5e649eff2d0795a6bb5fe9e582ada1f132ca649dd594ccd24051fa6e2e0fd3b94effc66475ab2f9faeb03cebd4c657336a
-DIST gitea-1.21.1.tar.gz 53759159 BLAKE2B 
46c9b1143681304268d6617a0b4eadbf3ff08c566256c3c73c2a334fc4f93a2d7ae1c33566af962b4e376dc3b7e44c0687640ce5f68db0e679ed2507f81e22c4
 SHA512 
8a05cfd83317b4bcdb99cac175517a3c2b39bef0d7f7321cf00fc83965d10818b2fa14396f341b7b0a7b3e9e38548333b2e1cbfbf6fe6ed486558160b2c75eb0
 DIST gitea-1.21.2.tar.gz 53795805 BLAKE2B 
ee85aae28325df59aa7fefcda5e3ec4216f79e115972fcbea543b189c6f8fe2bb2f7d23f27cd2418c7f50e474177398e4cd925474ca5d68fe3bab64a2cf785b7
 SHA512 
809254dfe420fb97697855d2aa815344b56d316edaec140598526fc7728275ca9a10179093b8d036cce0947684234a0aa2fa7febdd1bbdf7f831a249cc16ba4a
+DIST gitea-1.21.3.tar.gz 53775315 BLAKE2B 
0baae678e3ad75129f753d0e1eadf83b06008da5041f6859f985facc78f223284f17cad0e8858c9c8a7d6ca34042c7cb19f69fa30a560170a60b3548bdef8f6b
 SHA512 
f55336d4067d9403c5556a8a641ca805c13e3c7dbc60a684329cb9f3a886c0ebb10a3318dc9c4c3251e1bd0bcc0821fe40575d9ada1779012a850d592acdabd1

diff --git a/www-apps/gitea/gitea-1.21.1.ebuild 
b/www-apps/gitea/gitea-1.21.3.ebuild
similarity index 100%
rename from www-apps/gitea/gitea-1.21.1.ebuild
rename to www-apps/gitea/gitea-1.21.3.ebuild



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-12-12 Thread Yixun Lan
commit: 43c65cbdc49afd7c14a5c540e725421730f54cc6
Author: Ryan Qian  bitbili  net>
AuthorDate: Tue Dec 12 12:30:13 2023 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Tue Dec 12 23:30:57 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43c65cbd

www-apps/gitea: add 1.21.2

Closes: https://github.com/gentoo/gentoo/pull/34250
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.2.ebuild | 145 +
 2 files changed, 146 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index d42716bbd36c..c492a3236fee 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1,3 @@
 DIST gitea-1.20.6.tar.gz 50473256 BLAKE2B 
0b26e38815dc1bf16c6f50c0b4cd7e6c3c3e0900056beda6177cb7fd1df1378e89a6ca47228f3fef2f6176eb5054d1bfb999ba1a1314a5915dbbff62f0f1365a
 SHA512 
fb0a979bdaaec25512f70cbcb1907d5e649eff2d0795a6bb5fe9e582ada1f132ca649dd594ccd24051fa6e2e0fd3b94effc66475ab2f9faeb03cebd4c657336a
 DIST gitea-1.21.1.tar.gz 53759159 BLAKE2B 
46c9b1143681304268d6617a0b4eadbf3ff08c566256c3c73c2a334fc4f93a2d7ae1c33566af962b4e376dc3b7e44c0687640ce5f68db0e679ed2507f81e22c4
 SHA512 
8a05cfd83317b4bcdb99cac175517a3c2b39bef0d7f7321cf00fc83965d10818b2fa14396f341b7b0a7b3e9e38548333b2e1cbfbf6fe6ed486558160b2c75eb0
+DIST gitea-1.21.2.tar.gz 53795805 BLAKE2B 
ee85aae28325df59aa7fefcda5e3ec4216f79e115972fcbea543b189c6f8fe2bb2f7d23f27cd2418c7f50e474177398e4cd925474ca5d68fe3bab64a2cf785b7
 SHA512 
809254dfe420fb97697855d2aa815344b56d316edaec140598526fc7728275ca9a10179093b8d036cce0947684234a0aa2fa7febdd1bbdf7f831a249cc16ba4a

diff --git a/www-apps/gitea/gitea-1.21.2.ebuild 
b/www-apps/gitea/gitea-1.21.2.ebuild
new file mode 100644
index ..15ca9f045d07
--- /dev/null
+++ b/www-apps/gitea/gitea-1.21.2.ebuild
@@ -0,0 +1,145 @@
+# 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 user-info
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.com https://github.com/go-gitea/gitea;
+
+if [[ ${PV} == * ]]; 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} != * ]]; 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
+}
+

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-11-29 Thread Yixun Lan
commit: b1b2cdd2052d7dd35f144db548ce879fa041c99d
Author: Yixun Lan  gentoo  org>
AuthorDate: Wed Nov 29 23:44:17 2023 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Wed Nov 29 23:51:38 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1b2cdd2

www-apps/gitea: drop vulnerable version 1.20.4

Bug: https://bugs.gentoo.org/918674
Signed-off-by: Yixun Lan  gentoo.org>

 www-apps/gitea/Manifest|   1 -
 www-apps/gitea/gitea-1.20.4.ebuild | 131 -
 2 files changed, 132 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 3fbf0ac0b7a4..d42716bbd36c 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +1,2 @@
-DIST gitea-1.20.4.tar.gz 50489949 BLAKE2B 
1c14ec9f784cbbe3f67872b5344df209009bd32dc624b8e0351c2050ffa90657556ec6bd77b69acdb7a7506918aafbbb72a97839d92c2b39241c308ebeb4e565
 SHA512 
5e08959e0ff421898aebcb7640ab0869c1cabd82c84254c94024d2da16f91755e183b477a190a7b1987a5ab9ae7787c85d37fb9db990bddda937a4200777ed7c
 DIST gitea-1.20.6.tar.gz 50473256 BLAKE2B 
0b26e38815dc1bf16c6f50c0b4cd7e6c3c3e0900056beda6177cb7fd1df1378e89a6ca47228f3fef2f6176eb5054d1bfb999ba1a1314a5915dbbff62f0f1365a
 SHA512 
fb0a979bdaaec25512f70cbcb1907d5e649eff2d0795a6bb5fe9e582ada1f132ca649dd594ccd24051fa6e2e0fd3b94effc66475ab2f9faeb03cebd4c657336a
 DIST gitea-1.21.1.tar.gz 53759159 BLAKE2B 
46c9b1143681304268d6617a0b4eadbf3ff08c566256c3c73c2a334fc4f93a2d7ae1c33566af962b4e376dc3b7e44c0687640ce5f68db0e679ed2507f81e22c4
 SHA512 
8a05cfd83317b4bcdb99cac175517a3c2b39bef0d7f7321cf00fc83965d10818b2fa14396f341b7b0a7b3e9e38548333b2e1cbfbf6fe6ed486558160b2c75eb0

diff --git a/www-apps/gitea/gitea-1.20.4.ebuild 
b/www-apps/gitea/gitea-1.20.4.ebuild
deleted file mode 100644
index 528d3b3a10f7..
--- a/www-apps/gitea/gitea-1.20.4.ebuild
+++ /dev/null
@@ -1,131 +0,0 @@
-# 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 user-info
-
-DESCRIPTION="A painless self-hosted Git service"
-HOMEPAGE="https://gitea.com https://github.com/go-gitea/gitea;
-
-if [[ ${PV} == * ]]; 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 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"
-
-DOCS=(
-   custom/conf/app.example.ini 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
-   if use sqlite ; then
-   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
-   fi
-}
-
-src_configure() {
-   # bug 832756 - PIE build issues
-   filter-flags -fPIE
-   filter-ldflags -fPIE -pie
-}
-
-src_compile() {
-   local gitea_tags=(
-   bindata
-   $(usev pam)
-   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
-   )
-   local 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"
-   )
-   local makeenv=(
-   DRONE_TAG="${PV}"
-   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
-   TAGS="${gitea_tags[*]}"
-   )
-
-   GOFLAGS=""
-   if use pie ; then
-   GOFLAGS+="-buildmode=pie"
-   fi
-
-   env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" 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
-
-   # It is not 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-11-29 Thread Arthur Zamarin
commit: dc06ecf842ceca4d1ca2c6815d3842a3c9131db1
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Wed Nov 29 16:45:38 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Wed Nov 29 16:45:38 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc06ecf8

www-apps/gitea: Stabilize 1.20.6 amd64, #918854

Signed-off-by: Arthur Zamarin  gentoo.org>

 www-apps/gitea/gitea-1.20.6.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/gitea-1.20.6.ebuild 
b/www-apps/gitea/gitea-1.20.6.ebuild
index 907a990c4862..528d3b3a10f7 100644
--- a/www-apps/gitea/gitea-1.20.6.ebuild
+++ b/www-apps/gitea/gitea-1.20.6.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == * ]]; then
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"
+   KEYWORDS="amd64 ~arm ~arm64 ~riscv ~x86"
 fi
 
 S="${WORKDIR}/${PN}-src-${PV}"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-11-29 Thread Yixun Lan
commit: f6e4074bf9ae429394f3dd16290ed70ec582ac16
Author: Ryan Qian  bitbili  net>
AuthorDate: Tue Nov 28 09:12:28 2023 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Wed Nov 29 12:52:17 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6e4074b

www-apps/gitea: add 1.20.6, drop 1.20.5

Bug: https://bugs.gentoo.org/918603

Closes: https://github.com/gentoo/gentoo/pull/34015
Signed-off-by: Ryan Qian  bitbili.net>
Signed-off-by: Yixun Lan  gentoo.org>

 www-apps/gitea/Manifest | 2 +-
 www-apps/gitea/{gitea-1.20.5.ebuild => gitea-1.20.6.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index b0640a072c62..3fbf0ac0b7a4 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +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.20.6.tar.gz 50473256 BLAKE2B 
0b26e38815dc1bf16c6f50c0b4cd7e6c3c3e0900056beda6177cb7fd1df1378e89a6ca47228f3fef2f6176eb5054d1bfb999ba1a1314a5915dbbff62f0f1365a
 SHA512 
fb0a979bdaaec25512f70cbcb1907d5e649eff2d0795a6bb5fe9e582ada1f132ca649dd594ccd24051fa6e2e0fd3b94effc66475ab2f9faeb03cebd4c657336a
 DIST gitea-1.21.1.tar.gz 53759159 BLAKE2B 
46c9b1143681304268d6617a0b4eadbf3ff08c566256c3c73c2a334fc4f93a2d7ae1c33566af962b4e376dc3b7e44c0687640ce5f68db0e679ed2507f81e22c4
 SHA512 
8a05cfd83317b4bcdb99cac175517a3c2b39bef0d7f7321cf00fc83965d10818b2fa14396f341b7b0a7b3e9e38548333b2e1cbfbf6fe6ed486558160b2c75eb0

diff --git a/www-apps/gitea/gitea-1.20.5.ebuild 
b/www-apps/gitea/gitea-1.20.6.ebuild
similarity index 100%
rename from www-apps/gitea/gitea-1.20.5.ebuild
rename to www-apps/gitea/gitea-1.20.6.ebuild



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-11-29 Thread Yixun Lan
commit: a91336ed740f309ccabd88fa86b3fb1f2f157150
Author: Ryan Qian  bitbili  net>
AuthorDate: Mon Nov 27 03:55:50 2023 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Wed Nov 29 12:51:30 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a91336ed

www-apps/gitea: add 1.21.1, drop 1.21.0

Bug: https://bugs.gentoo.org/918603

Signed-off-by: Ryan Qian  bitbili.net>
Signed-off-by: Yixun Lan  gentoo.org>

 www-apps/gitea/Manifest | 2 +-
 www-apps/gitea/{gitea-1.21.0.ebuild => gitea-1.21.1.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index b7646cfab2ba..b0640a072c62 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +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
+DIST gitea-1.21.1.tar.gz 53759159 BLAKE2B 
46c9b1143681304268d6617a0b4eadbf3ff08c566256c3c73c2a334fc4f93a2d7ae1c33566af962b4e376dc3b7e44c0687640ce5f68db0e679ed2507f81e22c4
 SHA512 
8a05cfd83317b4bcdb99cac175517a3c2b39bef0d7f7321cf00fc83965d10818b2fa14396f341b7b0a7b3e9e38548333b2e1cbfbf6fe6ed486558160b2c75eb0

diff --git a/www-apps/gitea/gitea-1.21.0.ebuild 
b/www-apps/gitea/gitea-1.21.1.ebuild
similarity index 100%
rename from www-apps/gitea/gitea-1.21.0.ebuild
rename to www-apps/gitea/gitea-1.21.1.ebuild



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-11-21 Thread Yixun Lan
commit: 7fb39ef76095d92e575957a40533ef0ada3e68c7
Author: Ryan Qian  bitbili  net>
AuthorDate: Fri Nov 17 12:22:18 2023 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Tue Nov 21 14:27:00 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fb39ef7

www-apps/gitea: fix the execution logic of 'tmpfiles_process'

It is not guaranteed that the git user and group always exist (due
to the acct USE Flag), but for convenience, the tmpfile uses the git
user and group by default.

To avoid installation errors, a condition needs to be added here:
if there is no git user or group, the installation of tmpfile will be
skipped and the user will be notified to handle it by themselves.

This commit won't affect the already installed gitea, so no new revision.

Closes: https://bugs.gentoo.org/829761
Closes: https://bugs.gentoo.org/858668
Closes: https://github.com/gentoo/gentoo/pull/33867

Signed-off-by: Ryan Qian  bitbili.net>
Signed-off-by: Yixun Lan  gentoo.org>

 www-apps/gitea/gitea-1.20.4.ebuild | 21 +++--
 www-apps/gitea/gitea-1.20.5.ebuild | 21 +++--
 www-apps/gitea/gitea-1.21.0.ebuild | 21 +++--
 3 files changed, 57 insertions(+), 6 deletions(-)

diff --git a/www-apps/gitea/gitea-1.20.4.ebuild 
b/www-apps/gitea/gitea-1.20.4.ebuild
index d9f75b9674ad..528d3b3a10f7 100644
--- a/www-apps/gitea/gitea-1.20.4.ebuild
+++ b/www-apps/gitea/gitea-1.20.4.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit fcaps go-module tmpfiles systemd flag-o-matic
+inherit fcaps go-module tmpfiles systemd flag-o-matic user-info
 
 DESCRIPTION="A painless self-hosted Git service"
 HOMEPAGE="https://gitea.com https://github.com/go-gitea/gitea;
@@ -105,7 +105,24 @@ src_install() {
 
 pkg_postinst() {
fcaps_pkg_postinst
-   tmpfiles_process gitea.conf
+
+   # It is not guaranteed that the git user and group always exist (due to 
the acct USE Flag),
+   # but for convenience, the tmpfile uses the git user and group by 
default.
+   # To avoid installation errors, a condition needs to be added here:
+   #   if there is no git user or group, the installation of tmpfile will 
be skipped
+   #   and the user will be notified to handle it by themselves.
+   if egetent passwd git &>/dev/null && \
+   egetent group git &>/dev/null; then
+   tmpfiles_process gitea.conf
+   else
+   eerror "Unable to install the tmpfile for gitea due to the git 
user or group is missing,"
+   eerror "please install tmpfile manually or rebuild this package 
with USE flag 'acct'."
+   eerror "You can simply copy the default tmpfile from 
'/usr/lib/tmpfiles.d/gitea.conf'"
+   eerror "to higher priority path '/etc/tmpfiles.d/gitea.conf', 
and correct it with"
+   eerror "the right User and Group value (see tmpfiles.d(5) for 
details), then execute:"
+   eerror "  # systemd-tmpfiles --create 
/etc/tmpfiles.d/gitea.conf"
+   eerror "to install it."
+   fi
 
ewarn "The default JWT signing algorithm changed in 1.15.0 from HS256 
(symmetric) to"
ewarn "RS256 (asymmetric). Gitea OAuth2 tokens (and potentially client 
secrets) will"

diff --git a/www-apps/gitea/gitea-1.20.5.ebuild 
b/www-apps/gitea/gitea-1.20.5.ebuild
index 916258630180..907a990c4862 100644
--- a/www-apps/gitea/gitea-1.20.5.ebuild
+++ b/www-apps/gitea/gitea-1.20.5.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit fcaps go-module tmpfiles systemd flag-o-matic
+inherit fcaps go-module tmpfiles systemd flag-o-matic user-info
 
 DESCRIPTION="A painless self-hosted Git service"
 HOMEPAGE="https://gitea.com https://github.com/go-gitea/gitea;
@@ -105,7 +105,24 @@ src_install() {
 
 pkg_postinst() {
fcaps_pkg_postinst
-   tmpfiles_process gitea.conf
+
+   # It is not guaranteed that the git user and group always exist (due to 
the acct USE Flag),
+   # but for convenience, the tmpfile uses the git user and group by 
default.
+   # To avoid installation errors, a condition needs to be added here:
+   #   if there is no git user or group, the installation of tmpfile will 
be skipped
+   #   and the user will be notified to handle it by themselves.
+   if egetent passwd git &>/dev/null && \
+   egetent group git &>/dev/null; then
+   tmpfiles_process gitea.conf
+   else
+   eerror "Unable to install the tmpfile for gitea due to the git 
user or group is missing,"
+   eerror "please install tmpfile manually or rebuild this package 
with USE flag 'acct'."
+   eerror "You can simply copy the default tmpfile from 
'/usr/lib/tmpfiles.d/gitea.conf'"
+   eerror "to higher priority path '/etc/tmpfiles.d/gitea.conf', 
and correct it with"
+   eerror "the right User and Group value (see tmpfiles.d(5) for 
details), then execute:"
+   eerror "  # systemd-tmpfiles 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/, www-apps/gitea/files/

2023-11-16 Thread Yixun Lan
commit: 7bf41879db42ed6108bdcd9b08b4c5a10b90d22a
Author: Ryan Qian  bitbili  net>
AuthorDate: Tue Nov 14 21:14:05 2023 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Fri Nov 17 01:49:06 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7bf41879

www-apps/gitea: update the systemd service file for new postgresql versions

Closes: https://github.com/gentoo/gentoo/pull/33825
Signed-off-by: Ryan Qian  bitbili.net>
Signed-off-by: Yixun Lan  gentoo.org>

 www-apps/gitea/files/gitea.service-r4 | 34 ++
 www-apps/gitea/gitea-1.21.0.ebuild|  2 +-
 2 files changed, 35 insertions(+), 1 deletion(-)

diff --git a/www-apps/gitea/files/gitea.service-r4 
b/www-apps/gitea/files/gitea.service-r4
new file mode 100644
index ..3fa73aaf1db8
--- /dev/null
+++ b/www-apps/gitea/files/gitea.service-r4
@@ -0,0 +1,34 @@
+[Unit]
+Description=Gitea service
+Documentation=https://docs.gitea.io/
+
+AssertPathIsDirectory=/var/lib/gitea
+AssertPathIsReadWrite=/var/lib/gitea
+
+After=network.target
+Requires=network.target
+After=mysqld.service
+After=postgresql-10.service
+After=postgresql-11.service
+After=postgresql-12.service
+After=postgresql-13.service
+After=postgresql-14.service
+After=postgresql-15.service
+After=postgresql-16.service
+After=memcached.service
+After=redis.service
+
+[Service]
+User=git
+Group=git
+
+Environment="GITEA_WORK_DIR=/var/lib/gitea" 
"GITEA_CUSTOM=/var/lib/gitea/custom"
+WorkingDirectory=/var/lib/gitea
+ExecStart=/usr/bin/gitea --config /etc/gitea/app.ini web
+
+Restart=always
+PrivateTmp=true
+Nice=5
+
+[Install]
+WantedBy=multi-user.target

diff --git a/www-apps/gitea/gitea-1.21.0.ebuild 
b/www-apps/gitea/gitea-1.21.0.ebuild
index c3878c4ba16b..fce72a8ba35f 100644
--- a/www-apps/gitea/gitea-1.21.0.ebuild
+++ b/www-apps/gitea/gitea-1.21.0.ebuild
@@ -101,7 +101,7 @@ src_install() {
newtmpfiles - gitea.conf <<-EOF
d /run/gitea 0755 git git
EOF
-   systemd_newunit "${FILESDIR}"/gitea.service-r3 gitea.service
+   systemd_newunit "${FILESDIR}"/gitea.service-r4 gitea.service
 
insinto /etc/gitea
newins custom/conf/app.example.ini app.ini



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-11-16 Thread Yixun Lan
commit: 50d3ddba67b015d1ae1c3f8ebcb8305db80b85ee
Author: Yixun Lan  gentoo  org>
AuthorDate: Fri Nov 17 01:46:39 2023 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Fri Nov 17 01:49:10 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50d3ddba

www-apps/gitea: add Ryan Qian as maintainer

I will proxy for him to maintain this package

Bug: https://bugs.gentoo.org/917462
Signed-off-by: Yixun Lan  gentoo.org>

 www-apps/gitea/metadata.xml | 13 -
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/www-apps/gitea/metadata.xml b/www-apps/gitea/metadata.xml
index c5a8b29fd81a..1443204ea795 100644
--- a/www-apps/gitea/metadata.xml
+++ b/www-apps/gitea/metadata.xml
@@ -1,7 +1,18 @@
 
 https://www.gentoo.org/dtd/metadata.dtd;>
 
-   
+   
+   i...@bitbili.net
+   Ryan Qian
+   
+   
+   d...@gentoo.org
+   Yixun Lan
+   
+   
+   proxy-ma...@gentoo.org
+   Proxy Maintainers
+   

go-gitea/gitea




[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-11-16 Thread Yixun Lan
commit: 4e3dc8b7cc1603daa922727bbcdd660f1a7927ed
Author: Ryan Qian  bitbili  net>
AuthorDate: Tue Nov 14 18:01:25 2023 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Fri Nov 17 01:48:54 2023 +
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 ..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} == * ]]; 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} != * ]]; 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() {
+  

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-11-01 Thread Yixun Lan
commit: 4b3415f69ca7e05f6059e0e5ce149d96a9a61542
Author: Tomáš Mózes  gmail  com>
AuthorDate: Sat Oct 21 02:45:36 2023 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Wed Nov  1 06:35:37 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b3415f6

www-apps/gitea: add 1.20.5

Signed-off-by: Tomáš Mózes  gmail.com>
Signed-off-by: Yixun Lan  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.20.5.ebuild | 114 +
 2 files changed, 115 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 61f0dbcc37fe..b710feb0e943 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1,3 @@
 DIST gitea-1.19.3.tar.gz 55634848 BLAKE2B 
6d33b7d47039f0e34578d0c0e74d4ec77e485e9a1977ba81295fb1b8b10e103a4801530145d71aa97dba69ea115752f027c79c2f70022a65c35d4119a4553a77
 SHA512 
e77372f2354d433f7703d49c3d30238bad3ad6cd0722d4e0fa374692a8a0d6314bb8327807ec2b992ec84de420e09d48aaa3af16ad37b0ee0beb5540f395688f
 DIST gitea-1.20.4.tar.gz 50489949 BLAKE2B 
1c14ec9f784cbbe3f67872b5344df209009bd32dc624b8e0351c2050ffa90657556ec6bd77b69acdb7a7506918aafbbb72a97839d92c2b39241c308ebeb4e565
 SHA512 
5e08959e0ff421898aebcb7640ab0869c1cabd82c84254c94024d2da16f91755e183b477a190a7b1987a5ab9ae7787c85d37fb9db990bddda937a4200777ed7c
+DIST gitea-1.20.5.tar.gz 50448780 BLAKE2B 
d8a1dc6bc147a06adc9280ea5d75d8cf039d447d96b4cd4ca6b35b11af5ed71df73d36b4c102f5b8ded2ba85efaea6104b31a4f39ab66c8a0c98cd36e826b734
 SHA512 
360a7a7bf0a51ea6d1fbcdfb35c5c3492b4fc6e29a9b60d0e6c6d01257d4743c580cf907293df8a4244750c5afe9ba1b33b2a898a18dd9e13947c58116ba3021

diff --git a/www-apps/gitea/gitea-1.20.5.ebuild 
b/www-apps/gitea/gitea-1.20.5.ebuild
new file mode 100644
index ..916258630180
--- /dev/null
+++ b/www-apps/gitea/gitea-1.20.5.ebuild
@@ -0,0 +1,114 @@
+# 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} == * ]]; 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 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"
+
+DOCS=(
+   custom/conf/app.example.ini 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
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_configure() {
+   # bug 832756 - PIE build issues
+   filter-flags -fPIE
+   filter-ldflags -fPIE -pie
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   GOFLAGS=""
+   if use pie ; then
+   GOFLAGS+="-buildmode=pie"
+   fi
+
+   env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" 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
+
+   

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-11-01 Thread Yixun Lan
commit: 86dd6741739d52f7a849a496695b5dadbd4f94ba
Author: Tomáš Mózes  gmail  com>
AuthorDate: Sat Oct 21 02:45:58 2023 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Wed Nov  1 06:35:40 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86dd6741

www-apps/gitea: drop old

Closes: https://github.com/gentoo/gentoo/pull/33435
Signed-off-by: Tomáš Mózes  gmail.com>
Signed-off-by: Yixun Lan  gentoo.org>

 www-apps/gitea/Manifest|   1 -
 www-apps/gitea/gitea-1.19.3.ebuild | 114 -
 2 files changed, 115 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index b710feb0e943..137351b79864 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +1,2 @@
-DIST gitea-1.19.3.tar.gz 55634848 BLAKE2B 
6d33b7d47039f0e34578d0c0e74d4ec77e485e9a1977ba81295fb1b8b10e103a4801530145d71aa97dba69ea115752f027c79c2f70022a65c35d4119a4553a77
 SHA512 
e77372f2354d433f7703d49c3d30238bad3ad6cd0722d4e0fa374692a8a0d6314bb8327807ec2b992ec84de420e09d48aaa3af16ad37b0ee0beb5540f395688f
 DIST gitea-1.20.4.tar.gz 50489949 BLAKE2B 
1c14ec9f784cbbe3f67872b5344df209009bd32dc624b8e0351c2050ffa90657556ec6bd77b69acdb7a7506918aafbbb72a97839d92c2b39241c308ebeb4e565
 SHA512 
5e08959e0ff421898aebcb7640ab0869c1cabd82c84254c94024d2da16f91755e183b477a190a7b1987a5ab9ae7787c85d37fb9db990bddda937a4200777ed7c
 DIST gitea-1.20.5.tar.gz 50448780 BLAKE2B 
d8a1dc6bc147a06adc9280ea5d75d8cf039d447d96b4cd4ca6b35b11af5ed71df73d36b4c102f5b8ded2ba85efaea6104b31a4f39ab66c8a0c98cd36e826b734
 SHA512 
360a7a7bf0a51ea6d1fbcdfb35c5c3492b4fc6e29a9b60d0e6c6d01257d4743c580cf907293df8a4244750c5afe9ba1b33b2a898a18dd9e13947c58116ba3021

diff --git a/www-apps/gitea/gitea-1.19.3.ebuild 
b/www-apps/gitea/gitea-1.19.3.ebuild
deleted file mode 100644
index f0f8d4eb4e24..
--- a/www-apps/gitea/gitea-1.19.3.ebuild
+++ /dev/null
@@ -1,114 +0,0 @@
-# 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.io https://github.com/go-gitea/gitea;
-
-if [[ ${PV} == * ]]; 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 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"
-
-DOCS=(
-   custom/conf/app.example.ini 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
-   if use sqlite ; then
-   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
-   fi
-}
-
-src_configure() {
-   # bug 832756 - PIE build issues
-   filter-flags -fPIE
-   filter-ldflags -fPIE -pie
-}
-
-src_compile() {
-   local gitea_tags=(
-   bindata
-   $(usev pam)
-   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
-   )
-   local 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"
-   )
-   local makeenv=(
-   DRONE_TAG="${PV}"
-   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
-   TAGS="${gitea_tags[*]}"
-   )
-
-   GOFLAGS=""
-   if use pie ; then
-   GOFLAGS+="-buildmode=pie"
-   fi
-
-   env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" 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() {
-   

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-10-14 Thread Hans de Graaff
commit: 03cb0b5aaf305b7a854f337dd6f2aee989662dad
Author: Hans de Graaff  gentoo  org>
AuthorDate: Sat Oct 14 07:49:13 2023 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sat Oct 14 07:49:38 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03cb0b5a

www-apps/gitea: drop 1.19.1

Bug: https://bugs.gentoo.org/905886
Signed-off-by: Hans de Graaff  gentoo.org>

 www-apps/gitea/Manifest|   1 -
 www-apps/gitea/gitea-1.19.1.ebuild | 125 -
 2 files changed, 126 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 6defc16c199c..61f0dbcc37fe 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +1,2 @@
-DIST gitea-1.19.1.tar.gz 55618243 BLAKE2B 
f6ebaaad8eb78cc322b0e0d087e9bd8d881a74de1916db29219a21147b50adf50166a8304115ec41b8f84f5f6e7711144ab8cb427682827005ec0c73b2212494
 SHA512 
6c0328fb3edc09dee484d5a94eb636454003326131384b8fc1e4d495e08b55e155971121101f8eafcb1693c348153eb186bf9b3533d28afc9a6a5a4c3b0d857a
 DIST gitea-1.19.3.tar.gz 55634848 BLAKE2B 
6d33b7d47039f0e34578d0c0e74d4ec77e485e9a1977ba81295fb1b8b10e103a4801530145d71aa97dba69ea115752f027c79c2f70022a65c35d4119a4553a77
 SHA512 
e77372f2354d433f7703d49c3d30238bad3ad6cd0722d4e0fa374692a8a0d6314bb8327807ec2b992ec84de420e09d48aaa3af16ad37b0ee0beb5540f395688f
 DIST gitea-1.20.4.tar.gz 50489949 BLAKE2B 
1c14ec9f784cbbe3f67872b5344df209009bd32dc624b8e0351c2050ffa90657556ec6bd77b69acdb7a7506918aafbbb72a97839d92c2b39241c308ebeb4e565
 SHA512 
5e08959e0ff421898aebcb7640ab0869c1cabd82c84254c94024d2da16f91755e183b477a190a7b1987a5ab9ae7787c85d37fb9db990bddda937a4200777ed7c

diff --git a/www-apps/gitea/gitea-1.19.1.ebuild 
b/www-apps/gitea/gitea-1.19.1.ebuild
deleted file mode 100644
index c317c8a02e52..
--- a/www-apps/gitea/gitea-1.19.1.ebuild
+++ /dev/null
@@ -1,125 +0,0 @@
-# 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.io https://github.com/go-gitea/gitea;
-
-if [[ ${PV} == * ]]; 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 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"
-
-DOCS=(
-   custom/conf/app.example.ini CONTRIBUTING.md README.md
-)
-FILECAPS=(
-   -m 711 cap_net_bind_service+ep usr/bin/gitea
-)
-
-RESTRICT="test"
-
-src_prepare() {
-   default
-
-   local sedcmds=(
-   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
-   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
-   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
-   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
-   -e "s#^MODE = console#MODE = file#"
-   -e "s#^LEVEL = Trace#LEVEL = Info#"
-   -e "s#^LOG_SQL = true#LOG_SQL = false#"
-   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
-   )
-
-   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
-   if use sqlite ; then
-   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
-   fi
-}
-
-src_configure() {
-   # bug 832756 - PIE build issues
-   filter-flags -fPIE
-   filter-ldflags -fPIE -pie
-}
-
-src_compile() {
-   local gitea_tags=(
-   bindata
-   $(usev pam)
-   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
-   )
-   local 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"
-   )
-   local makeenv=(
-   DRONE_TAG="${PV}"
-   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
-   TAGS="${gitea_tags[*]}"
-   )
-
-   GOFLAGS=""
-   if use pie ; then
-   GOFLAGS+="-buildmode=pie"
-   fi
-
-   env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" 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 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-09-15 Thread Sam James
commit: fa3da2030b49deae191b9b08accc3d780f49125c
Author: Sam James  gentoo  org>
AuthorDate: Sat Sep 16 00:37:27 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Sep 16 00:37:27 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa3da203

www-apps/gitea: Stabilize 1.20.4 amd64, #914106

Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/gitea-1.20.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/gitea-1.20.4.ebuild 
b/www-apps/gitea/gitea-1.20.4.ebuild
index 916258630180..d9f75b9674ad 100644
--- a/www-apps/gitea/gitea-1.20.4.ebuild
+++ b/www-apps/gitea/gitea-1.20.4.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == * ]]; then
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"
+   KEYWORDS="amd64 ~arm ~arm64 ~riscv ~x86"
 fi
 
 S="${WORKDIR}/${PN}-src-${PV}"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-09-09 Thread Joonas Niilola
commit: ac8b21b92e155d229116905197532c011bcff1d5
Author: JonRB  gmail  com>
AuthorDate: Mon Jul 17 21:29:44 2023 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sat Sep  9 11:16:38 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac8b21b9

www-apps/gitea: add 1.20.4

Closes: https://bugs.gentoo.org/911419
Closes: https://github.com/gentoo/gentoo/pull/31938
Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.20.4.ebuild | 114 +
 2 files changed, 115 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index de474961e5bc..6defc16c199c 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1,3 @@
 DIST gitea-1.19.1.tar.gz 55618243 BLAKE2B 
f6ebaaad8eb78cc322b0e0d087e9bd8d881a74de1916db29219a21147b50adf50166a8304115ec41b8f84f5f6e7711144ab8cb427682827005ec0c73b2212494
 SHA512 
6c0328fb3edc09dee484d5a94eb636454003326131384b8fc1e4d495e08b55e155971121101f8eafcb1693c348153eb186bf9b3533d28afc9a6a5a4c3b0d857a
 DIST gitea-1.19.3.tar.gz 55634848 BLAKE2B 
6d33b7d47039f0e34578d0c0e74d4ec77e485e9a1977ba81295fb1b8b10e103a4801530145d71aa97dba69ea115752f027c79c2f70022a65c35d4119a4553a77
 SHA512 
e77372f2354d433f7703d49c3d30238bad3ad6cd0722d4e0fa374692a8a0d6314bb8327807ec2b992ec84de420e09d48aaa3af16ad37b0ee0beb5540f395688f
+DIST gitea-1.20.4.tar.gz 50489949 BLAKE2B 
1c14ec9f784cbbe3f67872b5344df209009bd32dc624b8e0351c2050ffa90657556ec6bd77b69acdb7a7506918aafbbb72a97839d92c2b39241c308ebeb4e565
 SHA512 
5e08959e0ff421898aebcb7640ab0869c1cabd82c84254c94024d2da16f91755e183b477a190a7b1987a5ab9ae7787c85d37fb9db990bddda937a4200777ed7c

diff --git a/www-apps/gitea/gitea-1.20.4.ebuild 
b/www-apps/gitea/gitea-1.20.4.ebuild
new file mode 100644
index ..916258630180
--- /dev/null
+++ b/www-apps/gitea/gitea-1.20.4.ebuild
@@ -0,0 +1,114 @@
+# 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} == * ]]; 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 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"
+
+DOCS=(
+   custom/conf/app.example.ini 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
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_configure() {
+   # bug 832756 - PIE build issues
+   filter-flags -fPIE
+   filter-ldflags -fPIE -pie
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   GOFLAGS=""
+   if use pie ; then
+   GOFLAGS+="-buildmode=pie"
+   fi
+
+   env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" 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() {
+   

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-05-29 Thread John Helmert III
commit: f55298f8655ad2dd026c783eec93a8bb758fcf80
Author: John Helmert III  gentoo  org>
AuthorDate: Mon May 29 23:35:07 2023 +
Commit: John Helmert III  gentoo  org>
CommitDate: Tue May 30 01:59:39 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f55298f8

www-apps/gitea: drop 1.18.3, 1.18.5

Bug: https://bugs.gentoo.org/891983
Signed-off-by: John Helmert III  gentoo.org>

 www-apps/gitea/Manifest|   2 -
 www-apps/gitea/gitea-1.18.3.ebuild | 125 -
 www-apps/gitea/gitea-1.18.5.ebuild | 125 -
 3 files changed, 252 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index ee8ed0c2468b..de474961e5bc 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,4 +1,2 @@
-DIST gitea-1.18.3.tar.gz 55493166 BLAKE2B 
6a0bb385244c212f577b99b54cd621bf4b9b4f7bdd77bf199e2667fcb5b77638136b2c26b0a46d755d5aea359f0eea251762f759b461377d459092c0017ed972
 SHA512 
4dabcafad5f4f9804f369cf248b351db68e80f193a4b2a5901f8c13b7cb6051b6b5ef1f283037376e545c3b76aabe703e947d1780ed4a4e630ec68adffa8afff
-DIST gitea-1.18.5.tar.gz 55521804 BLAKE2B 
fe413fce8bdba68a9ea1a75f66a69c899ca7fca367e9f3e2bbad7f506d3dd2019f634e708ff7079f31c98ccdab5605187dff20118e91675f33e2f28cee547aab
 SHA512 
20b502a11969691e5f331844453aedc5bd1708ff13e0615b7186b00f8fa6fe8de2b2c6ec1af052bfd6f87a07c92e1118e58aacf35f59bde32d587ba400adda8a
 DIST gitea-1.19.1.tar.gz 55618243 BLAKE2B 
f6ebaaad8eb78cc322b0e0d087e9bd8d881a74de1916db29219a21147b50adf50166a8304115ec41b8f84f5f6e7711144ab8cb427682827005ec0c73b2212494
 SHA512 
6c0328fb3edc09dee484d5a94eb636454003326131384b8fc1e4d495e08b55e155971121101f8eafcb1693c348153eb186bf9b3533d28afc9a6a5a4c3b0d857a
 DIST gitea-1.19.3.tar.gz 55634848 BLAKE2B 
6d33b7d47039f0e34578d0c0e74d4ec77e485e9a1977ba81295fb1b8b10e103a4801530145d71aa97dba69ea115752f027c79c2f70022a65c35d4119a4553a77
 SHA512 
e77372f2354d433f7703d49c3d30238bad3ad6cd0722d4e0fa374692a8a0d6314bb8327807ec2b992ec84de420e09d48aaa3af16ad37b0ee0beb5540f395688f

diff --git a/www-apps/gitea/gitea-1.18.3.ebuild 
b/www-apps/gitea/gitea-1.18.3.ebuild
deleted file mode 100644
index c317c8a02e52..
--- a/www-apps/gitea/gitea-1.18.3.ebuild
+++ /dev/null
@@ -1,125 +0,0 @@
-# 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.io https://github.com/go-gitea/gitea;
-
-if [[ ${PV} == * ]]; 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 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"
-
-DOCS=(
-   custom/conf/app.example.ini CONTRIBUTING.md README.md
-)
-FILECAPS=(
-   -m 711 cap_net_bind_service+ep usr/bin/gitea
-)
-
-RESTRICT="test"
-
-src_prepare() {
-   default
-
-   local sedcmds=(
-   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
-   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
-   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
-   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
-   -e "s#^MODE = console#MODE = file#"
-   -e "s#^LEVEL = Trace#LEVEL = Info#"
-   -e "s#^LOG_SQL = true#LOG_SQL = false#"
-   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
-   )
-
-   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
-   if use sqlite ; then
-   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
-   fi
-}
-
-src_configure() {
-   # bug 832756 - PIE build issues
-   filter-flags -fPIE
-   filter-ldflags -fPIE -pie
-}
-
-src_compile() {
-   local gitea_tags=(
-   bindata
-   $(usev pam)
-   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
-   )
-   local 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"
-   )
-   local makeenv=(
-   DRONE_TAG="${PV}"
-   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
-   TAGS="${gitea_tags[*]}"
-   )
-
-   

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-05-27 Thread Joonas Niilola
commit: d16a8ddb2c4915005a71fe50c6f48785cc712df9
Author: Joonas Niilola  gentoo  org>
AuthorDate: Sat May 27 08:12:24 2023 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sat May 27 08:24:44 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d16a8ddb

www-apps/gitea: DirectStableKeywords

Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/gitea-1.19.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/gitea-1.19.3.ebuild 
b/www-apps/gitea/gitea-1.19.3.ebuild
index 12114bd9abec..f0f8d4eb4e24 100644
--- a/www-apps/gitea/gitea-1.19.3.ebuild
+++ b/www-apps/gitea/gitea-1.19.3.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == * ]]; then
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"
+   KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
 fi
 
 S="${WORKDIR}/${PN}-src-${PV}"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-05-27 Thread Joonas Niilola
commit: 1c1b611cae19413da1e0428f3973ccbdd28a089b
Author: JonRB  gmail  com>
AuthorDate: Mon May 22 19:51:02 2023 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sat May 27 08:24:43 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c1b611c

www-apps/gitea: add 1.19.3

Closes: https://github.com/gentoo/gentoo/pull/31136
Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.19.3.ebuild | 123 +
 2 files changed, 124 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 4a0b62a9706d..ee8ed0c2468b 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +1,4 @@
 DIST gitea-1.18.3.tar.gz 55493166 BLAKE2B 
6a0bb385244c212f577b99b54cd621bf4b9b4f7bdd77bf199e2667fcb5b77638136b2c26b0a46d755d5aea359f0eea251762f759b461377d459092c0017ed972
 SHA512 
4dabcafad5f4f9804f369cf248b351db68e80f193a4b2a5901f8c13b7cb6051b6b5ef1f283037376e545c3b76aabe703e947d1780ed4a4e630ec68adffa8afff
 DIST gitea-1.18.5.tar.gz 55521804 BLAKE2B 
fe413fce8bdba68a9ea1a75f66a69c899ca7fca367e9f3e2bbad7f506d3dd2019f634e708ff7079f31c98ccdab5605187dff20118e91675f33e2f28cee547aab
 SHA512 
20b502a11969691e5f331844453aedc5bd1708ff13e0615b7186b00f8fa6fe8de2b2c6ec1af052bfd6f87a07c92e1118e58aacf35f59bde32d587ba400adda8a
 DIST gitea-1.19.1.tar.gz 55618243 BLAKE2B 
f6ebaaad8eb78cc322b0e0d087e9bd8d881a74de1916db29219a21147b50adf50166a8304115ec41b8f84f5f6e7711144ab8cb427682827005ec0c73b2212494
 SHA512 
6c0328fb3edc09dee484d5a94eb636454003326131384b8fc1e4d495e08b55e155971121101f8eafcb1693c348153eb186bf9b3533d28afc9a6a5a4c3b0d857a
+DIST gitea-1.19.3.tar.gz 55634848 BLAKE2B 
6d33b7d47039f0e34578d0c0e74d4ec77e485e9a1977ba81295fb1b8b10e103a4801530145d71aa97dba69ea115752f027c79c2f70022a65c35d4119a4553a77
 SHA512 
e77372f2354d433f7703d49c3d30238bad3ad6cd0722d4e0fa374692a8a0d6314bb8327807ec2b992ec84de420e09d48aaa3af16ad37b0ee0beb5540f395688f

diff --git a/www-apps/gitea/gitea-1.19.3.ebuild 
b/www-apps/gitea/gitea-1.19.3.ebuild
new file mode 100644
index ..cccfb5e71fda
--- /dev/null
+++ b/www-apps/gitea/gitea-1.19.3.ebuild
@@ -0,0 +1,123 @@
+# 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.io https://github.com/go-gitea/gitea;
+
+if [[ ${PV} == * ]]; 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 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"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_configure() {
+   # bug 832756 - PIE build issues
+   filter-flags -fPIE
+   filter-ldflags -fPIE -pie
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   GOFLAGS=""
+   if use pie ; then
+   GOFLAGS+="-buildmode=pie"
+   fi
+
+   env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" backend
+}
+
+src_install() {
+   dobin 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-05-27 Thread Joonas Niilola
commit: 77689176e2f3065ec4a73700a226eafb6c532922
Author: Joonas Niilola  gentoo  org>
AuthorDate: Sat May 27 08:02:14 2023 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sat May 27 08:24:43 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77689176

www-apps/gitea: clean tons of stale seds from 1.19.3

Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/gitea-1.19.3.ebuild | 11 +--
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/www-apps/gitea/gitea-1.19.3.ebuild 
b/www-apps/gitea/gitea-1.19.3.ebuild
index cccfb5e71fda..12114bd9abec 100644
--- a/www-apps/gitea/gitea-1.19.3.ebuild
+++ b/www-apps/gitea/gitea-1.19.3.ebuild
@@ -42,16 +42,7 @@ RESTRICT="test"
 src_prepare() {
default
 
-   local sedcmds=(
-   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
-   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
-   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
-   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
-   -e "s#^MODE = console#MODE = file#"
-   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
-   )
-
-   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   sed -i -e "s#^MODE = console#MODE = file#" custom/conf/app.example.ini 
|| die
if use sqlite ; then
sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
fi



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-04-17 Thread Sam James
commit: b20878cb7e92e6bbb1bc7cb0b2d0051cfa3c0b73
Author: Sam James  gentoo  org>
AuthorDate: Mon Apr 17 09:34:44 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Apr 17 09:34:44 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b20878cb

www-apps/gitea: Stabilize 1.19.1 amd64, #904434

Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/gitea-1.19.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/gitea-1.19.1.ebuild 
b/www-apps/gitea/gitea-1.19.1.ebuild
index 14e3dc8458e3..c317c8a02e52 100644
--- a/www-apps/gitea/gitea-1.19.1.ebuild
+++ b/www-apps/gitea/gitea-1.19.1.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == * ]]; then
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"
+   KEYWORDS="amd64 ~arm ~arm64 ~riscv ~x86"
 fi
 
 S="${WORKDIR}/${PN}-src-${PV}"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-04-16 Thread Sam James
commit: fb2c560c8d5be6483ba515d9a7bde2113d66b690
Author: Tomáš Mózes  gmail  com>
AuthorDate: Fri Apr 14 04:17:14 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Apr 16 06:54:54 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb2c560c

www-apps/gitea: add 1.19.1

Closes: https://bugs.gentoo.org/904130
Signed-off-by: Tomáš Mózes  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/30587
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.19.1.ebuild | 125 +
 2 files changed, 126 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index af08bd90cad0..4a0b62a9706d 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1,3 @@
 DIST gitea-1.18.3.tar.gz 55493166 BLAKE2B 
6a0bb385244c212f577b99b54cd621bf4b9b4f7bdd77bf199e2667fcb5b77638136b2c26b0a46d755d5aea359f0eea251762f759b461377d459092c0017ed972
 SHA512 
4dabcafad5f4f9804f369cf248b351db68e80f193a4b2a5901f8c13b7cb6051b6b5ef1f283037376e545c3b76aabe703e947d1780ed4a4e630ec68adffa8afff
 DIST gitea-1.18.5.tar.gz 55521804 BLAKE2B 
fe413fce8bdba68a9ea1a75f66a69c899ca7fca367e9f3e2bbad7f506d3dd2019f634e708ff7079f31c98ccdab5605187dff20118e91675f33e2f28cee547aab
 SHA512 
20b502a11969691e5f331844453aedc5bd1708ff13e0615b7186b00f8fa6fe8de2b2c6ec1af052bfd6f87a07c92e1118e58aacf35f59bde32d587ba400adda8a
+DIST gitea-1.19.1.tar.gz 55618243 BLAKE2B 
f6ebaaad8eb78cc322b0e0d087e9bd8d881a74de1916db29219a21147b50adf50166a8304115ec41b8f84f5f6e7711144ab8cb427682827005ec0c73b2212494
 SHA512 
6c0328fb3edc09dee484d5a94eb636454003326131384b8fc1e4d495e08b55e155971121101f8eafcb1693c348153eb186bf9b3533d28afc9a6a5a4c3b0d857a

diff --git a/www-apps/gitea/gitea-1.19.1.ebuild 
b/www-apps/gitea/gitea-1.19.1.ebuild
new file mode 100644
index ..14e3dc8458e3
--- /dev/null
+++ b/www-apps/gitea/gitea-1.19.1.ebuild
@@ -0,0 +1,125 @@
+# 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.io https://github.com/go-gitea/gitea;
+
+if [[ ${PV} == * ]]; 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 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"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_configure() {
+   # bug 832756 - PIE build issues
+   filter-flags -fPIE
+   filter-ldflags -fPIE -pie
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   GOFLAGS=""
+   if use pie ; then
+   GOFLAGS+="-buildmode=pie"
+   fi
+
+   env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" backend
+}
+
+src_install() {
+   dobin gitea
+
+   einstalldocs
+
+   newconfd "${FILESDIR}/gitea.confd-r1" gitea
+   newinitd "${FILESDIR}/gitea.initd-r3" 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-03-10 Thread Yixun Lan
commit: 08bbb69122d84d0e32d3f705faa8e3edcd062fe4
Author: Tomáš Mózes  gmail  com>
AuthorDate: Thu Mar  9 13:26:57 2023 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Sat Mar 11 07:41:30 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08bbb691

www-apps/gitea: add 1.18.5

Closes: https://github.com/gentoo/gentoo/pull/30018
Signed-off-by: Tomáš Mózes  gmail.com>
Signed-off-by: Yixun Lan  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.18.5.ebuild | 125 +
 2 files changed, 126 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 8f27ddfe0429..af08bd90cad0 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1 +1,2 @@
 DIST gitea-1.18.3.tar.gz 55493166 BLAKE2B 
6a0bb385244c212f577b99b54cd621bf4b9b4f7bdd77bf199e2667fcb5b77638136b2c26b0a46d755d5aea359f0eea251762f759b461377d459092c0017ed972
 SHA512 
4dabcafad5f4f9804f369cf248b351db68e80f193a4b2a5901f8c13b7cb6051b6b5ef1f283037376e545c3b76aabe703e947d1780ed4a4e630ec68adffa8afff
+DIST gitea-1.18.5.tar.gz 55521804 BLAKE2B 
fe413fce8bdba68a9ea1a75f66a69c899ca7fca367e9f3e2bbad7f506d3dd2019f634e708ff7079f31c98ccdab5605187dff20118e91675f33e2f28cee547aab
 SHA512 
20b502a11969691e5f331844453aedc5bd1708ff13e0615b7186b00f8fa6fe8de2b2c6ec1af052bfd6f87a07c92e1118e58aacf35f59bde32d587ba400adda8a

diff --git a/www-apps/gitea/gitea-1.18.5.ebuild 
b/www-apps/gitea/gitea-1.18.5.ebuild
new file mode 100644
index ..14e3dc8458e3
--- /dev/null
+++ b/www-apps/gitea/gitea-1.18.5.ebuild
@@ -0,0 +1,125 @@
+# 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.io https://github.com/go-gitea/gitea;
+
+if [[ ${PV} == * ]]; 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 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"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_configure() {
+   # bug 832756 - PIE build issues
+   filter-flags -fPIE
+   filter-ldflags -fPIE -pie
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   GOFLAGS=""
+   if use pie ; then
+   GOFLAGS+="-buildmode=pie"
+   fi
+
+   env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" 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 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-01-27 Thread John Helmert III
commit: 77065d781482e0e4638458bbf3d4dba686edf9f9
Author: John Helmert III  gentoo  org>
AuthorDate: Sat Jan 28 03:43:54 2023 +
Commit: John Helmert III  gentoo  org>
CommitDate: Sat Jan 28 05:46:51 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77065d78

www-apps/gitea: drop 1.17.4, 1.18.0

Bug: https://bugs.gentoo.org/891983
Signed-off-by: John Helmert III  gentoo.org>

 www-apps/gitea/Manifest|   2 -
 www-apps/gitea/gitea-1.17.4.ebuild | 125 -
 www-apps/gitea/gitea-1.18.0.ebuild | 125 -
 3 files changed, 252 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index aca60251ce85..8f27ddfe0429 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +1 @@
-DIST gitea-1.17.4.tar.gz 52844862 BLAKE2B 
fe5f52be1c9697032fb7b8e84d90be9b540b4cede67ff4dcc3392621eb206efa0f273589e5fcd0f9f7f56de9dbd42804c9117c21ef2538d7aaaf8cbf13b984f4
 SHA512 
1bae6e11d441f4efe0b92882a5c2c1f4ada9015d49e6140bac87be1a103e23fd622543bf2d988fe9e9d57c26545b53c5acca31aac13034e01f41d5731ac02809
-DIST gitea-1.18.0.tar.gz 55508056 BLAKE2B 
bb6a5e98a087bc12e5afafa9c9d95fb381fd96cdd2823e411ab079c3797053c56951bfab1353bcfcee9d58234bb9a63cb029fee03f157b8f00ecc38687f7bb8e
 SHA512 
b205d8d2d957b322e114621ca5c25500d5123d7df874d204e28e3a58c1e101e7849810f380b45957c6f504008d4632b75fc0adbc99ff13e0c8498640da3c42cd
 DIST gitea-1.18.3.tar.gz 55493166 BLAKE2B 
6a0bb385244c212f577b99b54cd621bf4b9b4f7bdd77bf199e2667fcb5b77638136b2c26b0a46d755d5aea359f0eea251762f759b461377d459092c0017ed972
 SHA512 
4dabcafad5f4f9804f369cf248b351db68e80f193a4b2a5901f8c13b7cb6051b6b5ef1f283037376e545c3b76aabe703e947d1780ed4a4e630ec68adffa8afff

diff --git a/www-apps/gitea/gitea-1.17.4.ebuild 
b/www-apps/gitea/gitea-1.17.4.ebuild
deleted file mode 100644
index 6a27a8ad7547..
--- a/www-apps/gitea/gitea-1.17.4.ebuild
+++ /dev/null
@@ -1,125 +0,0 @@
-# Copyright 2016-2022 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.io https://github.com/go-gitea/gitea;
-
-if [[ ${PV} == * ]]; 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 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"
-
-DOCS=(
-   custom/conf/app.example.ini CONTRIBUTING.md README.md
-)
-FILECAPS=(
-   -m 711 cap_net_bind_service+ep usr/bin/gitea
-)
-
-RESTRICT="test"
-
-src_prepare() {
-   default
-
-   local sedcmds=(
-   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
-   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
-   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
-   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
-   -e "s#^MODE = console#MODE = file#"
-   -e "s#^LEVEL = Trace#LEVEL = Info#"
-   -e "s#^LOG_SQL = true#LOG_SQL = false#"
-   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
-   )
-
-   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
-   if use sqlite ; then
-   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
-   fi
-}
-
-src_configure() {
-   # bug 832756 - PIE build issues
-   filter-flags -fPIE
-   filter-ldflags -fPIE -pie
-}
-
-src_compile() {
-   local gitea_tags=(
-   bindata
-   $(usev pam)
-   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
-   )
-   local 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"
-   )
-   local makeenv=(
-   DRONE_TAG="${PV}"
-   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
-   TAGS="${gitea_tags[*]}"
-   )
-
-   GOFLAGS=""
-   if use pie ; then
-   GOFLAGS+="-buildmode=pie"
-   fi
-
-   env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" backend
-}
-
-src_install() {
-   dobin gitea
-
-   einstalldocs
-
-   newconfd "${FILESDIR}/gitea.confd-r1" gitea
-   newinitd 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-01-26 Thread Joonas Niilola
commit: a432830ba017e07fb40c03cf209579be9f0b59dc
Author: Joonas Niilola  gentoo  org>
AuthorDate: Fri Jan 27 06:17:10 2023 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Fri Jan 27 06:17:34 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a432830b

www-apps/gitea: Stabilize 1.18.3 amd64, #892137

Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/gitea-1.18.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/gitea-1.18.3.ebuild 
b/www-apps/gitea/gitea-1.18.3.ebuild
index 14e3dc8458e3..c317c8a02e52 100644
--- a/www-apps/gitea/gitea-1.18.3.ebuild
+++ b/www-apps/gitea/gitea-1.18.3.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == * ]]; then
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"
+   KEYWORDS="amd64 ~arm ~arm64 ~riscv ~x86"
 fi
 
 S="${WORKDIR}/${PN}-src-${PV}"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2023-01-26 Thread John Helmert III
commit: fffbc707da6152d4a2949246c6594262f84431f0
Author: Tomáš Mózes  gmail  com>
AuthorDate: Wed Jan 25 14:14:00 2023 +
Commit: John Helmert III  gentoo  org>
CommitDate: Fri Jan 27 05:44:13 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fffbc707

www-apps/gitea: add 1.18.3

Bug: https://bugs.gentoo.org/891983
Signed-off-by: Tomáš Mózes  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/29262
Signed-off-by: John Helmert III  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.18.3.ebuild | 125 +
 2 files changed, 126 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 20a90097fb84..aca60251ce85 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1,3 @@
 DIST gitea-1.17.4.tar.gz 52844862 BLAKE2B 
fe5f52be1c9697032fb7b8e84d90be9b540b4cede67ff4dcc3392621eb206efa0f273589e5fcd0f9f7f56de9dbd42804c9117c21ef2538d7aaaf8cbf13b984f4
 SHA512 
1bae6e11d441f4efe0b92882a5c2c1f4ada9015d49e6140bac87be1a103e23fd622543bf2d988fe9e9d57c26545b53c5acca31aac13034e01f41d5731ac02809
 DIST gitea-1.18.0.tar.gz 55508056 BLAKE2B 
bb6a5e98a087bc12e5afafa9c9d95fb381fd96cdd2823e411ab079c3797053c56951bfab1353bcfcee9d58234bb9a63cb029fee03f157b8f00ecc38687f7bb8e
 SHA512 
b205d8d2d957b322e114621ca5c25500d5123d7df874d204e28e3a58c1e101e7849810f380b45957c6f504008d4632b75fc0adbc99ff13e0c8498640da3c42cd
+DIST gitea-1.18.3.tar.gz 55493166 BLAKE2B 
6a0bb385244c212f577b99b54cd621bf4b9b4f7bdd77bf199e2667fcb5b77638136b2c26b0a46d755d5aea359f0eea251762f759b461377d459092c0017ed972
 SHA512 
4dabcafad5f4f9804f369cf248b351db68e80f193a4b2a5901f8c13b7cb6051b6b5ef1f283037376e545c3b76aabe703e947d1780ed4a4e630ec68adffa8afff

diff --git a/www-apps/gitea/gitea-1.18.3.ebuild 
b/www-apps/gitea/gitea-1.18.3.ebuild
new file mode 100644
index ..14e3dc8458e3
--- /dev/null
+++ b/www-apps/gitea/gitea-1.18.3.ebuild
@@ -0,0 +1,125 @@
+# 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.io https://github.com/go-gitea/gitea;
+
+if [[ ${PV} == * ]]; 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 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"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_configure() {
+   # bug 832756 - PIE build issues
+   filter-flags -fPIE
+   filter-ldflags -fPIE -pie
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   GOFLAGS=""
+   if use pie ; then
+   GOFLAGS+="-buildmode=pie"
+   fi
+
+   env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" backend
+}
+
+src_install() {
+   dobin gitea
+
+   einstalldocs
+
+   newconfd "${FILESDIR}/gitea.confd-r1" gitea
+   newinitd 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-12-31 Thread Sam James
commit: ad1005791827a64477d8577281c409abcdbe479d
Author: JonRB  gmail  com>
AuthorDate: Fri Dec 30 22:53:59 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Dec 31 19:25:08 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad100579

www-apps/gitea: add 1.18.0

Bug: https://bugs.gentoo.org/889010
Signed-off-by: JonRB  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/28904
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.18.0.ebuild | 125 +
 2 files changed, 126 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index d22746197cc0..20a90097fb84 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1 +1,2 @@
 DIST gitea-1.17.4.tar.gz 52844862 BLAKE2B 
fe5f52be1c9697032fb7b8e84d90be9b540b4cede67ff4dcc3392621eb206efa0f273589e5fcd0f9f7f56de9dbd42804c9117c21ef2538d7aaaf8cbf13b984f4
 SHA512 
1bae6e11d441f4efe0b92882a5c2c1f4ada9015d49e6140bac87be1a103e23fd622543bf2d988fe9e9d57c26545b53c5acca31aac13034e01f41d5731ac02809
+DIST gitea-1.18.0.tar.gz 55508056 BLAKE2B 
bb6a5e98a087bc12e5afafa9c9d95fb381fd96cdd2823e411ab079c3797053c56951bfab1353bcfcee9d58234bb9a63cb029fee03f157b8f00ecc38687f7bb8e
 SHA512 
b205d8d2d957b322e114621ca5c25500d5123d7df874d204e28e3a58c1e101e7849810f380b45957c6f504008d4632b75fc0adbc99ff13e0c8498640da3c42cd

diff --git a/www-apps/gitea/gitea-1.18.0.ebuild 
b/www-apps/gitea/gitea-1.18.0.ebuild
new file mode 100644
index ..c3facdc15fbb
--- /dev/null
+++ b/www-apps/gitea/gitea-1.18.0.ebuild
@@ -0,0 +1,125 @@
+# Copyright 2016-2022 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.io https://github.com/go-gitea/gitea;
+
+if [[ ${PV} == * ]]; 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 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"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_configure() {
+   # bug 832756 - PIE build issues
+   filter-flags -fPIE
+   filter-ldflags -fPIE -pie
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   GOFLAGS=""
+   if use pie ; then
+   GOFLAGS+="-buildmode=pie"
+   fi
+
+   env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" 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}

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-12-26 Thread John Helmert III
commit: dfd24d02447979c78904f455195713317f662bde
Author: John Helmert III  gentoo  org>
AuthorDate: Mon Dec 26 20:31:12 2022 +
Commit: John Helmert III  gentoo  org>
CommitDate: Tue Dec 27 01:31:24 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfd24d02

www-apps/gitea: drop 1.17.3

Bug: https://bugs.gentoo.org/887825
Signed-off-by: John Helmert III  gentoo.org>

 www-apps/gitea/Manifest|   1 -
 www-apps/gitea/gitea-1.17.3.ebuild | 125 -
 2 files changed, 126 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index ed6d08f79961..d22746197cc0 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1 @@
-DIST gitea-1.17.3.tar.gz 52711597 BLAKE2B 
7562542870850e669c0bf19848f90d73a0e0d4beab43f489a24a5670edc4e87a436d9e81d9e6e55ab08fabad3dcdb58bae07a4564b15e5fb60eeb7eb76e44f32
 SHA512 
501c567679c87537e31c778f41a72ac25aaa5f61868857c1ca1f34fd0f9a4dbfe58c5ca97104edad32d6d6ba75eb4ef16a9009654d09da6b0ae2c71a1cfdfa2a
 DIST gitea-1.17.4.tar.gz 52844862 BLAKE2B 
fe5f52be1c9697032fb7b8e84d90be9b540b4cede67ff4dcc3392621eb206efa0f273589e5fcd0f9f7f56de9dbd42804c9117c21ef2538d7aaaf8cbf13b984f4
 SHA512 
1bae6e11d441f4efe0b92882a5c2c1f4ada9015d49e6140bac87be1a103e23fd622543bf2d988fe9e9d57c26545b53c5acca31aac13034e01f41d5731ac02809

diff --git a/www-apps/gitea/gitea-1.17.3.ebuild 
b/www-apps/gitea/gitea-1.17.3.ebuild
deleted file mode 100644
index 6a27a8ad7547..
--- a/www-apps/gitea/gitea-1.17.3.ebuild
+++ /dev/null
@@ -1,125 +0,0 @@
-# Copyright 2016-2022 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.io https://github.com/go-gitea/gitea;
-
-if [[ ${PV} == * ]]; 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 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"
-
-DOCS=(
-   custom/conf/app.example.ini CONTRIBUTING.md README.md
-)
-FILECAPS=(
-   -m 711 cap_net_bind_service+ep usr/bin/gitea
-)
-
-RESTRICT="test"
-
-src_prepare() {
-   default
-
-   local sedcmds=(
-   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
-   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
-   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
-   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
-   -e "s#^MODE = console#MODE = file#"
-   -e "s#^LEVEL = Trace#LEVEL = Info#"
-   -e "s#^LOG_SQL = true#LOG_SQL = false#"
-   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
-   )
-
-   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
-   if use sqlite ; then
-   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
-   fi
-}
-
-src_configure() {
-   # bug 832756 - PIE build issues
-   filter-flags -fPIE
-   filter-ldflags -fPIE -pie
-}
-
-src_compile() {
-   local gitea_tags=(
-   bindata
-   $(usev pam)
-   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
-   )
-   local 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"
-   )
-   local makeenv=(
-   DRONE_TAG="${PV}"
-   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
-   TAGS="${gitea_tags[*]}"
-   )
-
-   GOFLAGS=""
-   if use pie ; then
-   GOFLAGS+="-buildmode=pie"
-   fi
-
-   env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" 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}
-

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-12-26 Thread Sam James
commit: e4971a0173a60f089f6960c554f7968ab788ad08
Author: Sam James  gentoo  org>
AuthorDate: Mon Dec 26 09:47:47 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Dec 26 09:47:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4971a01

www-apps/gitea: Stabilize 1.17.4 amd64, #888491

Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/gitea-1.17.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/gitea-1.17.4.ebuild 
b/www-apps/gitea/gitea-1.17.4.ebuild
index c3facdc15fbb..6a27a8ad7547 100644
--- a/www-apps/gitea/gitea-1.17.4.ebuild
+++ b/www-apps/gitea/gitea-1.17.4.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == * ]]; then
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"
+   KEYWORDS="amd64 ~arm ~arm64 ~riscv ~x86"
 fi
 
 S="${WORKDIR}/${PN}-src-${PV}"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-12-23 Thread Sam James
commit: df52d7abfdff68ab13bc44c6cffaeb209fd79e0f
Author: Tomáš Mózes  gmail  com>
AuthorDate: Thu Dec 22 04:31:08 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Dec 24 07:17:06 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df52d7ab

www-apps/gitea: add 1.17.4

Bug: https://bugs.gentoo.org/887825
Signed-off-by: Tomáš Mózes  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/28753
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.17.4.ebuild | 125 +
 2 files changed, 126 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index ebb5ff17d8f1..ed6d08f79961 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1 +1,2 @@
 DIST gitea-1.17.3.tar.gz 52711597 BLAKE2B 
7562542870850e669c0bf19848f90d73a0e0d4beab43f489a24a5670edc4e87a436d9e81d9e6e55ab08fabad3dcdb58bae07a4564b15e5fb60eeb7eb76e44f32
 SHA512 
501c567679c87537e31c778f41a72ac25aaa5f61868857c1ca1f34fd0f9a4dbfe58c5ca97104edad32d6d6ba75eb4ef16a9009654d09da6b0ae2c71a1cfdfa2a
+DIST gitea-1.17.4.tar.gz 52844862 BLAKE2B 
fe5f52be1c9697032fb7b8e84d90be9b540b4cede67ff4dcc3392621eb206efa0f273589e5fcd0f9f7f56de9dbd42804c9117c21ef2538d7aaaf8cbf13b984f4
 SHA512 
1bae6e11d441f4efe0b92882a5c2c1f4ada9015d49e6140bac87be1a103e23fd622543bf2d988fe9e9d57c26545b53c5acca31aac13034e01f41d5731ac02809

diff --git a/www-apps/gitea/gitea-1.17.4.ebuild 
b/www-apps/gitea/gitea-1.17.4.ebuild
new file mode 100644
index ..c3facdc15fbb
--- /dev/null
+++ b/www-apps/gitea/gitea-1.17.4.ebuild
@@ -0,0 +1,125 @@
+# Copyright 2016-2022 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.io https://github.com/go-gitea/gitea;
+
+if [[ ${PV} == * ]]; 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 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"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_configure() {
+   # bug 832756 - PIE build issues
+   filter-flags -fPIE
+   filter-ldflags -fPIE -pie
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   GOFLAGS=""
+   if use pie ; then
+   GOFLAGS+="-buildmode=pie"
+   fi
+
+   env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" 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 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-10-20 Thread John Helmert III
commit: ad8a8d9d0e4116301239865429f04cc368c265d1
Author: John Helmert III  gentoo  org>
AuthorDate: Thu Oct 20 15:41:25 2022 +
Commit: John Helmert III  gentoo  org>
CommitDate: Thu Oct 20 15:41:25 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad8a8d9d

www-apps/gitea: drop 1.17.2

Bug: https://bugs.gentoo.org/877355
Signed-off-by: John Helmert III  gentoo.org>

 www-apps/gitea/Manifest|   1 -
 www-apps/gitea/gitea-1.17.2.ebuild | 125 -
 2 files changed, 126 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index e0ede3b239bc..ebb5ff17d8f1 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1 @@
-DIST gitea-1.17.2.tar.gz 52668293 BLAKE2B 
02f50ee5ef30887fb5daf5d3543bdb4b0fe2e4f3903c29beedc134d861fe23df92f4d379d6faacfd984ff203eefff6d6c7dca06e6b974538557e3694f1f2a03b
 SHA512 
fe0176cb4dee724ec91e5f44cb71851368d0e4234c20f17bcccbb422f90c6545184d1f620bbd5999ca24c477e0cf0de7c4a21ce93e3532f29e0b2bba7d03ffb9
 DIST gitea-1.17.3.tar.gz 52711597 BLAKE2B 
7562542870850e669c0bf19848f90d73a0e0d4beab43f489a24a5670edc4e87a436d9e81d9e6e55ab08fabad3dcdb58bae07a4564b15e5fb60eeb7eb76e44f32
 SHA512 
501c567679c87537e31c778f41a72ac25aaa5f61868857c1ca1f34fd0f9a4dbfe58c5ca97104edad32d6d6ba75eb4ef16a9009654d09da6b0ae2c71a1cfdfa2a

diff --git a/www-apps/gitea/gitea-1.17.2.ebuild 
b/www-apps/gitea/gitea-1.17.2.ebuild
deleted file mode 100644
index 6a27a8ad7547..
--- a/www-apps/gitea/gitea-1.17.2.ebuild
+++ /dev/null
@@ -1,125 +0,0 @@
-# Copyright 2016-2022 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.io https://github.com/go-gitea/gitea;
-
-if [[ ${PV} == * ]]; 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 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"
-
-DOCS=(
-   custom/conf/app.example.ini CONTRIBUTING.md README.md
-)
-FILECAPS=(
-   -m 711 cap_net_bind_service+ep usr/bin/gitea
-)
-
-RESTRICT="test"
-
-src_prepare() {
-   default
-
-   local sedcmds=(
-   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
-   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
-   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
-   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
-   -e "s#^MODE = console#MODE = file#"
-   -e "s#^LEVEL = Trace#LEVEL = Info#"
-   -e "s#^LOG_SQL = true#LOG_SQL = false#"
-   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
-   )
-
-   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
-   if use sqlite ; then
-   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
-   fi
-}
-
-src_configure() {
-   # bug 832756 - PIE build issues
-   filter-flags -fPIE
-   filter-ldflags -fPIE -pie
-}
-
-src_compile() {
-   local gitea_tags=(
-   bindata
-   $(usev pam)
-   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
-   )
-   local 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"
-   )
-   local makeenv=(
-   DRONE_TAG="${PV}"
-   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
-   TAGS="${gitea_tags[*]}"
-   )
-
-   GOFLAGS=""
-   if use pie ; then
-   GOFLAGS+="-buildmode=pie"
-   fi
-
-   env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" 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}
-

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-10-20 Thread Jakov Smolić
commit: 6a507feb33444659f4b57f47cc0b5649d363fdcd
Author: Jakov Smolić  gentoo  org>
AuthorDate: Thu Oct 20 10:52:22 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Thu Oct 20 10:52:22 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a507feb

www-apps/gitea: Stabilize 1.17.3 amd64, #877707

Signed-off-by: Jakov Smolić  gentoo.org>

 www-apps/gitea/gitea-1.17.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/gitea-1.17.3.ebuild 
b/www-apps/gitea/gitea-1.17.3.ebuild
index c3facdc15fbb..6a27a8ad7547 100644
--- a/www-apps/gitea/gitea-1.17.3.ebuild
+++ b/www-apps/gitea/gitea-1.17.3.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == * ]]; then
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"
+   KEYWORDS="amd64 ~arm ~arm64 ~riscv ~x86"
 fi
 
 S="${WORKDIR}/${PN}-src-${PV}"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-10-16 Thread Sam James
commit: 3e14361d484b8a44e6f399d8b7476373838f23cc
Author: Sam James  gentoo  org>
AuthorDate: Sun Oct 16 23:28:08 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Oct 16 23:28:08 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e14361d

www-apps/gitea: add 1.17.3

Bug: https://bugs.gentoo.org/877355
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.17.3.ebuild | 125 +
 2 files changed, 126 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 44add5f0cbde..e0ede3b239bc 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1 +1,2 @@
 DIST gitea-1.17.2.tar.gz 52668293 BLAKE2B 
02f50ee5ef30887fb5daf5d3543bdb4b0fe2e4f3903c29beedc134d861fe23df92f4d379d6faacfd984ff203eefff6d6c7dca06e6b974538557e3694f1f2a03b
 SHA512 
fe0176cb4dee724ec91e5f44cb71851368d0e4234c20f17bcccbb422f90c6545184d1f620bbd5999ca24c477e0cf0de7c4a21ce93e3532f29e0b2bba7d03ffb9
+DIST gitea-1.17.3.tar.gz 52711597 BLAKE2B 
7562542870850e669c0bf19848f90d73a0e0d4beab43f489a24a5670edc4e87a436d9e81d9e6e55ab08fabad3dcdb58bae07a4564b15e5fb60eeb7eb76e44f32
 SHA512 
501c567679c87537e31c778f41a72ac25aaa5f61868857c1ca1f34fd0f9a4dbfe58c5ca97104edad32d6d6ba75eb4ef16a9009654d09da6b0ae2c71a1cfdfa2a

diff --git a/www-apps/gitea/gitea-1.17.3.ebuild 
b/www-apps/gitea/gitea-1.17.3.ebuild
new file mode 100644
index ..c3facdc15fbb
--- /dev/null
+++ b/www-apps/gitea/gitea-1.17.3.ebuild
@@ -0,0 +1,125 @@
+# Copyright 2016-2022 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.io https://github.com/go-gitea/gitea;
+
+if [[ ${PV} == * ]]; 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 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"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_configure() {
+   # bug 832756 - PIE build issues
+   filter-flags -fPIE
+   filter-ldflags -fPIE -pie
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   GOFLAGS=""
+   if use pie ; then
+   GOFLAGS+="-buildmode=pie"
+   fi
+
+   env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" 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 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-09-29 Thread Joonas Niilola
commit: be1363f08f70bea68c6a6d0129b6097e70d2be40
Author: Tomáš Mózes  gmail  com>
AuthorDate: Thu Sep 29 09:23:53 2022 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Thu Sep 29 13:52:52 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be1363f0

www-apps/gitea: drop vulnerable

Bug: https://bugs.gentoo.org/868996
Signed-off-by: Tomáš Mózes  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/27524
Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/Manifest|   3 -
 www-apps/gitea/gitea-1.16.7.ebuild | 118 --
 www-apps/gitea/gitea-1.16.9.ebuild | 125 -
 www-apps/gitea/gitea-1.17.1.ebuild | 125 -
 4 files changed, 371 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 67c39f569b76..44add5f0cbde 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,4 +1 @@
-DIST gitea-1.16.7.tar.gz 53657579 BLAKE2B 
ae9d67fa633bcc5156036f033a4ed084b5b6ac0d71ec6a1ec0d0c88848233f3f0f0c22ca1c33289dc0e9950a8b299e26a88417e03643972f6721f94097b37d85
 SHA512 
7a31330e46078e215eecfbb2ec28373be1a176790720afbcf9674f3530d66f300d8ef9e47b9b9124cda9ce585d26d40c975e4897e5a3477dcec28b6f2b16735c
-DIST gitea-1.16.9.tar.gz 53660093 BLAKE2B 
f289a6525b046efa56b0250a997c1b1957c58447b87d7b0f5a65754ff3278da5dd37e1cf090b6d27c61d779fe2f19c4405aff9be526c5689935fba88c8488ad5
 SHA512 
b27da6b77ac33829ba3108e54c8fab59fe80f2ce88cc5eeb95ec38186da4b34508cdfb1a5fe0a68013001403a69080ebddb8d5116a73e1cf47e27ee4cc3095f1
-DIST gitea-1.17.1.tar.gz 52649181 BLAKE2B 
b8a444900a3efc9911cad17b32933ada7995dd3424bc92c034222fdf50ea7629fc0b190fad7563c4694228021784c66196ae2f5df533bbcc36e6e2eccd9e57c0
 SHA512 
9afa5e58e90fcda957f8f5eba76931d5a933554c47965180371c9b73c887810aa67e8e87fc619a1abcb954379de23750e9e93654d518c6ab77b2ca944eb186d6
 DIST gitea-1.17.2.tar.gz 52668293 BLAKE2B 
02f50ee5ef30887fb5daf5d3543bdb4b0fe2e4f3903c29beedc134d861fe23df92f4d379d6faacfd984ff203eefff6d6c7dca06e6b974538557e3694f1f2a03b
 SHA512 
fe0176cb4dee724ec91e5f44cb71851368d0e4234c20f17bcccbb422f90c6545184d1f620bbd5999ca24c477e0cf0de7c4a21ce93e3532f29e0b2bba7d03ffb9

diff --git a/www-apps/gitea/gitea-1.16.7.ebuild 
b/www-apps/gitea/gitea-1.16.7.ebuild
deleted file mode 100644
index eda894a4cb53..
--- a/www-apps/gitea/gitea-1.16.7.ebuild
+++ /dev/null
@@ -1,118 +0,0 @@
-# Copyright 2016-2022 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.io https://github.com/go-gitea/gitea;
-SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz
 -> ${P}.tar.gz"
-KEYWORDS="amd64 ~arm ~arm64 ~x86"
-S="${WORKDIR}"
-
-LICENSE="Apache-2.0 BSD BSD-2 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"
-
-DOCS=(
-   custom/conf/app.example.ini CONTRIBUTING.md README.md
-)
-FILECAPS=(
-   -m 711 cap_net_bind_service+ep usr/bin/gitea
-)
-
-RESTRICT="test"
-
-src_prepare() {
-   default
-
-   local sedcmds=(
-   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
-   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
-   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
-   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
-   -e "s#^MODE = console#MODE = file#"
-   -e "s#^LEVEL = Trace#LEVEL = Info#"
-   -e "s#^LOG_SQL = true#LOG_SQL = false#"
-   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
-   )
-
-   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
-   if use sqlite ; then
-   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
-   fi
-}
-
-src_configure() {
-   # bug 832756 - PIE build issues
-   filter-flags -fPIE
-   filter-ldflags -fPIE -pie
-}
-
-src_compile() {
-   local gitea_tags=(
-   bindata
-   $(usev pam)
-   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
-   )
-   local 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"
-   )
-   local makeenv=(
-   DRONE_TAG="${PV}"
-   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
-   TAGS="${gitea_tags[*]}"
-   )
-
-   GOFLAGS=""
- 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-09-29 Thread Jakov Smolić
commit: 61b6d5092655bf2c5ca8cae76cb8b00edd974d2a
Author: Chris Su  lesscrowds  org>
AuthorDate: Thu Sep 29 07:11:10 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Thu Sep 29 07:33:08 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61b6d509

www-apps/gitea: Keyword 1.17.2 riscv, #873193

Signed-off-by: Chris Su  lesscrowds.org>
Closes: https://github.com/gentoo/gentoo/pull/27496
Signed-off-by: Jakov Smolić  gentoo.org>

 www-apps/gitea/gitea-1.17.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/gitea-1.17.2.ebuild 
b/www-apps/gitea/gitea-1.17.2.ebuild
index 74bb5c10ec64..6a27a8ad7547 100644
--- a/www-apps/gitea/gitea-1.17.2.ebuild
+++ b/www-apps/gitea/gitea-1.17.2.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == * ]]; then
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 ~x86"
+   KEYWORDS="amd64 ~arm ~arm64 ~riscv ~x86"
 fi
 
 S="${WORKDIR}/${PN}-src-${PV}"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-09-28 Thread Joonas Niilola
commit: 7dcedfe611cc841c0c60d629078775dd334bf9d5
Author: Joonas Niilola  gentoo  org>
AuthorDate: Thu Sep 29 05:17:17 2022 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Thu Sep 29 05:17:17 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7dcedfe6

www-apps/gitea: Stabilize 1.17.2 amd64, #873373

Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/gitea-1.17.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/gitea-1.17.2.ebuild 
b/www-apps/gitea/gitea-1.17.2.ebuild
index c0f056208ec7..74bb5c10ec64 100644
--- a/www-apps/gitea/gitea-1.17.2.ebuild
+++ b/www-apps/gitea/gitea-1.17.2.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == * ]]; then
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 ~x86"
+   KEYWORDS="amd64 ~arm ~arm64 ~x86"
 fi
 
 S="${WORKDIR}/${PN}-src-${PV}"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-09-28 Thread Sam James
commit: e172bd677fe11bb073517ac058b154c80b3abecf
Author: Tomáš Mózes  gmail  com>
AuthorDate: Wed Sep 28 08:49:07 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 29 02:16:02 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e172bd67

www-apps/gitea: security bump to 1.17.2

Bug: https://bugs.gentoo.org/868996
Signed-off-by: Tomáš Mózes  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/27506
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.17.2.ebuild | 125 +
 2 files changed, 126 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 7fa6b63e737a..67c39f569b76 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +1,4 @@
 DIST gitea-1.16.7.tar.gz 53657579 BLAKE2B 
ae9d67fa633bcc5156036f033a4ed084b5b6ac0d71ec6a1ec0d0c88848233f3f0f0c22ca1c33289dc0e9950a8b299e26a88417e03643972f6721f94097b37d85
 SHA512 
7a31330e46078e215eecfbb2ec28373be1a176790720afbcf9674f3530d66f300d8ef9e47b9b9124cda9ce585d26d40c975e4897e5a3477dcec28b6f2b16735c
 DIST gitea-1.16.9.tar.gz 53660093 BLAKE2B 
f289a6525b046efa56b0250a997c1b1957c58447b87d7b0f5a65754ff3278da5dd37e1cf090b6d27c61d779fe2f19c4405aff9be526c5689935fba88c8488ad5
 SHA512 
b27da6b77ac33829ba3108e54c8fab59fe80f2ce88cc5eeb95ec38186da4b34508cdfb1a5fe0a68013001403a69080ebddb8d5116a73e1cf47e27ee4cc3095f1
 DIST gitea-1.17.1.tar.gz 52649181 BLAKE2B 
b8a444900a3efc9911cad17b32933ada7995dd3424bc92c034222fdf50ea7629fc0b190fad7563c4694228021784c66196ae2f5df533bbcc36e6e2eccd9e57c0
 SHA512 
9afa5e58e90fcda957f8f5eba76931d5a933554c47965180371c9b73c887810aa67e8e87fc619a1abcb954379de23750e9e93654d518c6ab77b2ca944eb186d6
+DIST gitea-1.17.2.tar.gz 52668293 BLAKE2B 
02f50ee5ef30887fb5daf5d3543bdb4b0fe2e4f3903c29beedc134d861fe23df92f4d379d6faacfd984ff203eefff6d6c7dca06e6b974538557e3694f1f2a03b
 SHA512 
fe0176cb4dee724ec91e5f44cb71851368d0e4234c20f17bcccbb422f90c6545184d1f620bbd5999ca24c477e0cf0de7c4a21ce93e3532f29e0b2bba7d03ffb9

diff --git a/www-apps/gitea/gitea-1.17.2.ebuild 
b/www-apps/gitea/gitea-1.17.2.ebuild
new file mode 100644
index ..c0f056208ec7
--- /dev/null
+++ b/www-apps/gitea/gitea-1.17.2.ebuild
@@ -0,0 +1,125 @@
+# Copyright 2016-2022 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.io https://github.com/go-gitea/gitea;
+
+if [[ ${PV} == * ]]; 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 ~x86"
+fi
+
+S="${WORKDIR}/${PN}-src-${PV}"
+
+LICENSE="Apache-2.0 BSD BSD-2 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"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_configure() {
+   # bug 832756 - PIE build issues
+   filter-flags -fPIE
+   filter-ldflags -fPIE -pie
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   GOFLAGS=""
+   

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-08-26 Thread Sam James
commit: 845a50319a838ad3268ab3c9c040ef8d2061db40
Author: JonRB  gmail  com>
AuthorDate: Sat Aug 20 19:58:20 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Aug 26 12:04:38 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=845a5031

www-apps/gitea: Version bump to 1.17.1

Signed-off-by: Jonathan Roadley-Battin  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/26935
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.17.1.ebuild | 125 +
 2 files changed, 126 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 8ebe013c..7fa6b63e737a 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1,3 @@
 DIST gitea-1.16.7.tar.gz 53657579 BLAKE2B 
ae9d67fa633bcc5156036f033a4ed084b5b6ac0d71ec6a1ec0d0c88848233f3f0f0c22ca1c33289dc0e9950a8b299e26a88417e03643972f6721f94097b37d85
 SHA512 
7a31330e46078e215eecfbb2ec28373be1a176790720afbcf9674f3530d66f300d8ef9e47b9b9124cda9ce585d26d40c975e4897e5a3477dcec28b6f2b16735c
 DIST gitea-1.16.9.tar.gz 53660093 BLAKE2B 
f289a6525b046efa56b0250a997c1b1957c58447b87d7b0f5a65754ff3278da5dd37e1cf090b6d27c61d779fe2f19c4405aff9be526c5689935fba88c8488ad5
 SHA512 
b27da6b77ac33829ba3108e54c8fab59fe80f2ce88cc5eeb95ec38186da4b34508cdfb1a5fe0a68013001403a69080ebddb8d5116a73e1cf47e27ee4cc3095f1
+DIST gitea-1.17.1.tar.gz 52649181 BLAKE2B 
b8a444900a3efc9911cad17b32933ada7995dd3424bc92c034222fdf50ea7629fc0b190fad7563c4694228021784c66196ae2f5df533bbcc36e6e2eccd9e57c0
 SHA512 
9afa5e58e90fcda957f8f5eba76931d5a933554c47965180371c9b73c887810aa67e8e87fc619a1abcb954379de23750e9e93654d518c6ab77b2ca944eb186d6

diff --git a/www-apps/gitea/gitea-1.17.1.ebuild 
b/www-apps/gitea/gitea-1.17.1.ebuild
new file mode 100644
index ..c0f056208ec7
--- /dev/null
+++ b/www-apps/gitea/gitea-1.17.1.ebuild
@@ -0,0 +1,125 @@
+# Copyright 2016-2022 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.io https://github.com/go-gitea/gitea;
+
+if [[ ${PV} == * ]]; 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 ~x86"
+fi
+
+S="${WORKDIR}/${PN}-src-${PV}"
+
+LICENSE="Apache-2.0 BSD BSD-2 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"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_configure() {
+   # bug 832756 - PIE build issues
+   filter-flags -fPIE
+   filter-ldflags -fPIE -pie
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   GOFLAGS=""
+   if use pie ; then
+   GOFLAGS+="-buildmode=pie"
+   fi
+
+   env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" backend
+}
+
+src_install() {
+   dobin gitea
+
+   einstalldocs
+
+   newconfd "${FILESDIR}/gitea.confd-r1" gitea
+   newinitd "${FILESDIR}/gitea.initd-r3" gitea
+   newtmpfiles - 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-08-26 Thread Sam James
commit: 72d60cc3b4d3e9b9f9b3a01cf56fad880c5d11c7
Author: Sam James  gentoo  org>
AuthorDate: Fri Aug 26 12:01:29 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Aug 26 12:04:39 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72d60cc3

www-apps/gitea: reassign inactive proxied maintainer's packages

Proxied maintainer is inactive and this is a popular package.

Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/metadata.xml | 21 +++--
 1 file changed, 7 insertions(+), 14 deletions(-)

diff --git a/www-apps/gitea/metadata.xml b/www-apps/gitea/metadata.xml
index 0dd2a021ac95..c5a8b29fd81a 100644
--- a/www-apps/gitea/metadata.xml
+++ b/www-apps/gitea/metadata.xml
@@ -1,18 +1,11 @@
 
 https://www.gentoo.org/dtd/metadata.dtd;>
 
-  
-Thamognya Kodi
-cont...@thamognya.com
-  
-  
-proxy-ma...@gentoo.org
-Proxy Maintainers
-  
-  
-go-gitea/gitea
-  
-  
-User and group management via acct-*/git packages
-  
+   
+   
+   go-gitea/gitea
+   
+   
+   User and group management via acct-*/git 
packages
+   
 



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-07-29 Thread Sam James
commit: 6487a993e47740f74e4c2def9a8912ae2ac30649
Author: Sam James  gentoo  org>
AuthorDate: Sat Jul 30 02:32:11 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jul 30 02:32:11 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6487a993

www-apps/gitea: Stabilize 1.16.9 amd64, #861944

Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/gitea-1.16.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/gitea-1.16.9.ebuild 
b/www-apps/gitea/gitea-1.16.9.ebuild
index a816c920b1b9..a78f96df3391 100644
--- a/www-apps/gitea/gitea-1.16.9.ebuild
+++ b/www-apps/gitea/gitea-1.16.9.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == * ]]; then
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 ~x86"
+   KEYWORDS="amd64 ~arm ~arm64 ~x86"
 fi
 
 S="${WORKDIR}"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-07-23 Thread Joonas Niilola
commit: 79c2317ae6ecfb838ebcaafc5783ad66aac32d3c
Author: Tomáš Mózes  gmail  com>
AuthorDate: Fri Jul 22 10:56:19 2022 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sat Jul 23 09:13:32 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79c2317a

www-apps/gitea: security bump to 1.16.9, drop vulnerable

Bug: https://bugs.gentoo.org/857819
Signed-off-by: Tomáš Mózes  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/26516
Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/Manifest | 2 +-
 www-apps/gitea/{gitea-1.16.8.ebuild => gitea-1.16.9.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 1313daf5d6d6..8ebe013c 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1,2 @@
 DIST gitea-1.16.7.tar.gz 53657579 BLAKE2B 
ae9d67fa633bcc5156036f033a4ed084b5b6ac0d71ec6a1ec0d0c88848233f3f0f0c22ca1c33289dc0e9950a8b299e26a88417e03643972f6721f94097b37d85
 SHA512 
7a31330e46078e215eecfbb2ec28373be1a176790720afbcf9674f3530d66f300d8ef9e47b9b9124cda9ce585d26d40c975e4897e5a3477dcec28b6f2b16735c
-DIST gitea-1.16.8.tar.gz 53659731 BLAKE2B 
ee35388d9fc5ba202d9b013e36b12771e55bc3d26256ec11ab1f1441b1db62e5b4e9972970b3f926d714edc40ac3b2e5daae47a16e2d76e4e49a1c367490cb02
 SHA512 
f502a07c886cc2f15615693a90eda128478d0de833cbe18993ed1f5a1a81f45591b2c00791f8024eda97d948991838b2dc95fab189695179631df47e4d587419
+DIST gitea-1.16.9.tar.gz 53660093 BLAKE2B 
f289a6525b046efa56b0250a997c1b1957c58447b87d7b0f5a65754ff3278da5dd37e1cf090b6d27c61d779fe2f19c4405aff9be526c5689935fba88c8488ad5
 SHA512 
b27da6b77ac33829ba3108e54c8fab59fe80f2ce88cc5eeb95ec38186da4b34508cdfb1a5fe0a68013001403a69080ebddb8d5116a73e1cf47e27ee4cc3095f1

diff --git a/www-apps/gitea/gitea-1.16.8.ebuild 
b/www-apps/gitea/gitea-1.16.9.ebuild
similarity index 100%
rename from www-apps/gitea/gitea-1.16.8.ebuild
rename to www-apps/gitea/gitea-1.16.9.ebuild



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-06-12 Thread Joonas Niilola
commit: 7c9ea5e58827f5286a0450ab156fe1e61143476a
Author: Joonas Niilola  gentoo  org>
AuthorDate: Sun Jun 12 07:31:10 2022 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sun Jun 12 07:31:10 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c9ea5e5

www-apps/gitea: restore keywords for 1.16.8

 - perhaps accidentally dropped with a version bump?

Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/gitea-1.16.8.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/gitea-1.16.8.ebuild 
b/www-apps/gitea/gitea-1.16.8.ebuild
index c4fad5faa314..a816c920b1b9 100644
--- a/www-apps/gitea/gitea-1.16.8.ebuild
+++ b/www-apps/gitea/gitea-1.16.8.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == * ]]; then
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"
+   KEYWORDS="~amd64 ~arm ~arm64 ~x86"
 fi
 
 S="${WORKDIR}"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-06-12 Thread Joonas Niilola
commit: 212806d5a45335d19b495d3a74e04b5d6326d805
Author: Thamognya Kodi  thamognya  com>
AuthorDate: Thu May 26 22:29:20 2022 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sun Jun 12 06:56:10 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=212806d5

www-apps/gitea: Bump to 1.16.8

Signed-off-by: Thamognya Kodi  thamognya.com>
Closes: https://github.com/gentoo/gentoo/pull/25654
Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.16.8.ebuild | 125 +
 www-apps/gitea/metadata.xml|  21 ---
 3 files changed, 140 insertions(+), 7 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index f6aed33a2f19..1313daf5d6d6 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1 +1,2 @@
 DIST gitea-1.16.7.tar.gz 53657579 BLAKE2B 
ae9d67fa633bcc5156036f033a4ed084b5b6ac0d71ec6a1ec0d0c88848233f3f0f0c22ca1c33289dc0e9950a8b299e26a88417e03643972f6721f94097b37d85
 SHA512 
7a31330e46078e215eecfbb2ec28373be1a176790720afbcf9674f3530d66f300d8ef9e47b9b9124cda9ce585d26d40c975e4897e5a3477dcec28b6f2b16735c
+DIST gitea-1.16.8.tar.gz 53659731 BLAKE2B 
ee35388d9fc5ba202d9b013e36b12771e55bc3d26256ec11ab1f1441b1db62e5b4e9972970b3f926d714edc40ac3b2e5daae47a16e2d76e4e49a1c367490cb02
 SHA512 
f502a07c886cc2f15615693a90eda128478d0de833cbe18993ed1f5a1a81f45591b2c00791f8024eda97d948991838b2dc95fab189695179631df47e4d587419

diff --git a/www-apps/gitea/gitea-1.16.8.ebuild 
b/www-apps/gitea/gitea-1.16.8.ebuild
new file mode 100644
index ..c4fad5faa314
--- /dev/null
+++ b/www-apps/gitea/gitea-1.16.8.ebuild
@@ -0,0 +1,125 @@
+# Copyright 2016-2022 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.io https://github.com/go-gitea/gitea;
+
+if [[ ${PV} == * ]]; 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"
+fi
+
+S="${WORKDIR}"
+
+LICENSE="Apache-2.0 BSD BSD-2 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"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_configure() {
+   # bug 832756 - PIE build issues
+   filter-flags -fPIE
+   filter-ldflags -fPIE -pie
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   GOFLAGS=""
+   if use pie ; then
+   GOFLAGS+="-buildmode=pie"
+   fi
+
+   env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" 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
+ 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-05-30 Thread Joonas Niilola
commit: d55d01ab72f3ef77999b2d9bd0f77e134cf87b17
Author: Joonas Niilola  gentoo  org>
AuthorDate: Mon May 30 06:05:02 2022 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Mon May 30 06:05:02 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d55d01ab

www-apps/gitea: Keyword 1.16.7 x86, #848438

Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/gitea-1.16.7.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/gitea-1.16.7.ebuild 
b/www-apps/gitea/gitea-1.16.7.ebuild
index f81eddf452ee..eda894a4cb53 100644
--- a/www-apps/gitea/gitea-1.16.7.ebuild
+++ b/www-apps/gitea/gitea-1.16.7.ebuild
@@ -8,7 +8,7 @@ inherit fcaps go-module tmpfiles systemd flag-o-matic
 DESCRIPTION="A painless self-hosted Git service"
 HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
 
SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz
 -> ${P}.tar.gz"
-KEYWORDS="amd64 ~arm ~arm64"
+KEYWORDS="amd64 ~arm ~arm64 ~x86"
 S="${WORKDIR}"
 
 LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-05-13 Thread Sam James
commit: b1829104394e877b31613ff03351ebe12073d4f0
Author: Tomáš Mózes  gmail  com>
AuthorDate: Thu May 12 20:06:38 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri May 13 20:12:40 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1829104

www-apps/gitea: drop vulnerable

Signed-off-by: Tomáš Mózes  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/25458
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest   |   2 -
 www-apps/gitea/gitea-1.16.5.ebuild| 107 --
 www-apps/gitea/gitea-1.16.6-r1.ebuild | 118 --
 www-apps/gitea/gitea-1.16.6.ebuild| 107 --
 4 files changed, 334 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 6c9fe93dcb11..f6aed33a2f19 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +1 @@
-DIST gitea-1.16.5.tar.gz 53178954 BLAKE2B 
67c378a46eab8e374b1a5b91d86e558c6ae06e24a23cb0d670f112573e0606c3ee7f700047f703a73b19f39b216597e3a05c3602e01ecfb09f146515545d3687
 SHA512 
3c367155a97809d587879b023979ad198106040c362e6d5e6df26cad384c614aaac1c47d84bcac0177a5b5546c4a76e95cfff9cf76b411226c0b1aa618d4d4b3
-DIST gitea-1.16.6.tar.gz 53649707 BLAKE2B 
118d77f82d2037d2d3f3a3fa9f8548af9af6fd9a8bf4797b005de9e98772899fcd73af91f135999db9136d850fc5e0283da9fc2868058e58c6f68d231e4affec
 SHA512 
3f14aaf9fdcd21180995717c7dfebe70966073e4228520963313379f124d383192f600690c276b0a9e1d6b442e8ad053f24ffac795c13fdc6321b9200d8223ea
 DIST gitea-1.16.7.tar.gz 53657579 BLAKE2B 
ae9d67fa633bcc5156036f033a4ed084b5b6ac0d71ec6a1ec0d0c88848233f3f0f0c22ca1c33289dc0e9950a8b299e26a88417e03643972f6721f94097b37d85
 SHA512 
7a31330e46078e215eecfbb2ec28373be1a176790720afbcf9674f3530d66f300d8ef9e47b9b9124cda9ce585d26d40c975e4897e5a3477dcec28b6f2b16735c

diff --git a/www-apps/gitea/gitea-1.16.5.ebuild 
b/www-apps/gitea/gitea-1.16.5.ebuild
deleted file mode 100644
index c213d90dc38d..
--- a/www-apps/gitea/gitea-1.16.5.ebuild
+++ /dev/null
@@ -1,107 +0,0 @@
-# Copyright 2016-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit fcaps go-module tmpfiles systemd
-
-DESCRIPTION="A painless self-hosted Git service"
-HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
-SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz
 -> ${P}.tar.gz"
-KEYWORDS="amd64 ~arm ~arm64"
-S="${WORKDIR}"
-
-LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
-SLOT="0"
-IUSE="+acct pam sqlite"
-
-DEPEND="
-   acct? (
-   acct-group/git
-   acct-user/git[gitea] )
-   pam? ( sys-libs/pam )"
-RDEPEND="${DEPEND}
-   dev-vcs/git"
-
-DOCS=(
-   custom/conf/app.example.ini CONTRIBUTING.md README.md
-)
-FILECAPS=(
-   -m 711 cap_net_bind_service+ep usr/bin/gitea
-)
-
-RESTRICT="test"
-
-src_prepare() {
-   default
-
-   local sedcmds=(
-   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
-   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
-   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
-   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
-   -e "s#^MODE = console#MODE = file#"
-   -e "s#^LEVEL = Trace#LEVEL = Info#"
-   -e "s#^LOG_SQL = true#LOG_SQL = false#"
-   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
-   )
-
-   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
-   if use sqlite ; then
-   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
-   fi
-}
-
-src_compile() {
-   local gitea_tags=(
-   bindata
-   $(usev pam)
-   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
-   )
-   local 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"
-   )
-   local makeenv=(
-   DRONE_TAG="${PV}"
-   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
-   TAGS="${gitea_tags[*]}"
-   )
-
-   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 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-05-06 Thread Agostino Sarubbo
commit: 4268c2227a16e47beb87838e8179eb0e61adba79
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Fri May  6 08:00:03 2022 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Fri May  6 08:00:04 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4268c222

www-apps/gitea: amd64 stable wrt bug #842837

Package-Manager: Portage-3.0.30, Repoman-3.0.3
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 www-apps/gitea/gitea-1.16.7.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/gitea-1.16.7.ebuild 
b/www-apps/gitea/gitea-1.16.7.ebuild
index 249baa6f0eb7..f81eddf452ee 100644
--- a/www-apps/gitea/gitea-1.16.7.ebuild
+++ b/www-apps/gitea/gitea-1.16.7.ebuild
@@ -8,7 +8,7 @@ inherit fcaps go-module tmpfiles systemd flag-o-matic
 DESCRIPTION="A painless self-hosted Git service"
 HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
 
SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz
 -> ${P}.tar.gz"
-KEYWORDS="~amd64 ~arm ~arm64"
+KEYWORDS="amd64 ~arm ~arm64"
 S="${WORKDIR}"
 
 LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-05-04 Thread Sam James
commit: 9dff681e3948e79f9b77b6fb4d6b14a5ef73a850
Author: Sam James  gentoo  org>
AuthorDate: Wed May  4 23:19:12 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed May  4 23:22:43 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dff681e

www-apps/gitea: fix PIE crash at runtime

Closes: https://bugs.gentoo.org/832756
Thanks-to: jon R-B  gmail.com>
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/gitea-1.16.6-r1.ebuild | 118 ++
 1 file changed, 118 insertions(+)

diff --git a/www-apps/gitea/gitea-1.16.6-r1.ebuild 
b/www-apps/gitea/gitea-1.16.6-r1.ebuild
new file mode 100644
index ..249baa6f0eb7
--- /dev/null
+++ b/www-apps/gitea/gitea-1.16.6-r1.ebuild
@@ -0,0 +1,118 @@
+# Copyright 2016-2022 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.io https://github.com/go-gitea/gitea;
+SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz
 -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~arm ~arm64"
+S="${WORKDIR}"
+
+LICENSE="Apache-2.0 BSD BSD-2 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"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_configure() {
+   # bug 832756 - PIE build issues
+   filter-flags -fPIE
+   filter-ldflags -fPIE -pie
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   GOFLAGS=""
+   if use pie ; then
+   GOFLAGS+="-buildmode=pie"
+   fi
+
+   env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" 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 "The default JWT signing algorithm changed in 1.15.0 from HS256 
(symmetric) to"
+   ewarn "RS256 (asymmetric). Gitea OAuth2 tokens (and potentially client 
secrets) will"
+   ewarn "need to be regenerated unless you change your 
JWT_SIGNING_ALGORITHM back to HS256."
+   ewarn "For other breaking changes, see 
."
+}



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-05-04 Thread Sam James
commit: 86b0c596f6d617d9241e6254da049e54bd4290e6
Author: Tomáš Mózes  gmail  com>
AuthorDate: Tue May  3 19:25:09 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed May  4 23:22:44 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86b0c596

www-apps/gitea: security bump to 1.16.7

Signed-off-by: Tomáš Mózes  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/25303
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.16.7.ebuild | 107 +
 2 files changed, 108 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 59554e0d2acd..6c9fe93dcb11 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1,3 @@
 DIST gitea-1.16.5.tar.gz 53178954 BLAKE2B 
67c378a46eab8e374b1a5b91d86e558c6ae06e24a23cb0d670f112573e0606c3ee7f700047f703a73b19f39b216597e3a05c3602e01ecfb09f146515545d3687
 SHA512 
3c367155a97809d587879b023979ad198106040c362e6d5e6df26cad384c614aaac1c47d84bcac0177a5b5546c4a76e95cfff9cf76b411226c0b1aa618d4d4b3
 DIST gitea-1.16.6.tar.gz 53649707 BLAKE2B 
118d77f82d2037d2d3f3a3fa9f8548af9af6fd9a8bf4797b005de9e98772899fcd73af91f135999db9136d850fc5e0283da9fc2868058e58c6f68d231e4affec
 SHA512 
3f14aaf9fdcd21180995717c7dfebe70966073e4228520963313379f124d383192f600690c276b0a9e1d6b442e8ad053f24ffac795c13fdc6321b9200d8223ea
+DIST gitea-1.16.7.tar.gz 53657579 BLAKE2B 
ae9d67fa633bcc5156036f033a4ed084b5b6ac0d71ec6a1ec0d0c88848233f3f0f0c22ca1c33289dc0e9950a8b299e26a88417e03643972f6721f94097b37d85
 SHA512 
7a31330e46078e215eecfbb2ec28373be1a176790720afbcf9674f3530d66f300d8ef9e47b9b9124cda9ce585d26d40c975e4897e5a3477dcec28b6f2b16735c

diff --git a/www-apps/gitea/gitea-1.16.7.ebuild 
b/www-apps/gitea/gitea-1.16.7.ebuild
new file mode 100644
index ..eaeda1a3f382
--- /dev/null
+++ b/www-apps/gitea/gitea-1.16.7.ebuild
@@ -0,0 +1,107 @@
+# Copyright 2016-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fcaps go-module tmpfiles systemd
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
+SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz
 -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~arm ~arm64"
+S="${WORKDIR}"
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+IUSE="+acct pam sqlite"
+
+DEPEND="
+   acct? (
+   acct-group/git
+   acct-user/git[gitea] )
+   pam? ( sys-libs/pam )"
+RDEPEND="${DEPEND}
+   dev-vcs/git"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   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 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-05-04 Thread Sam James
commit: 13fb5b0bd1ed64c3a5910ad2e29459f60c377547
Author: Sam James  gentoo  org>
AuthorDate: Wed May  4 23:22:34 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed May  4 23:22:45 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13fb5b0b

www-apps/gitea: rebase PIE changes onto 1.16.7

Bug: https://bugs.gentoo.org/832756
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/gitea-1.16.7.ebuild | 17 ++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/www-apps/gitea/gitea-1.16.7.ebuild 
b/www-apps/gitea/gitea-1.16.7.ebuild
index eaeda1a3f382..249baa6f0eb7 100644
--- a/www-apps/gitea/gitea-1.16.7.ebuild
+++ b/www-apps/gitea/gitea-1.16.7.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit fcaps go-module tmpfiles systemd
+inherit fcaps go-module tmpfiles systemd flag-o-matic
 
 DESCRIPTION="A painless self-hosted Git service"
 HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
@@ -13,7 +13,7 @@ S="${WORKDIR}"
 
 LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
 SLOT="0"
-IUSE="+acct pam sqlite"
+IUSE="+acct pam sqlite pie"
 
 DEPEND="
acct? (
@@ -52,6 +52,12 @@ src_prepare() {
fi
 }
 
+src_configure() {
+   # bug 832756 - PIE build issues
+   filter-flags -fPIE
+   filter-ldflags -fPIE -pie
+}
+
 src_compile() {
local gitea_tags=(
bindata
@@ -69,7 +75,12 @@ src_compile() {
TAGS="${gitea_tags[*]}"
)
 
-   env "${makeenv[@]}" emake backend
+   GOFLAGS=""
+   if use pie ; then
+   GOFLAGS+="-buildmode=pie"
+   fi
+
+   env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" backend
 }
 
 src_install() {



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-05-02 Thread Joonas Niilola
commit: 4680e63668e330de3f995969dc7b2c98c5bc795a
Author: Joonas Niilola  gentoo  org>
AuthorDate: Mon May  2 06:04:07 2022 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Mon May  2 06:04:29 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4680e636

www-apps/gitea: Stabilize 1.16.5 amd64, #841761

Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/gitea-1.16.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/gitea/gitea-1.16.5.ebuild 
b/www-apps/gitea/gitea-1.16.5.ebuild
index eaeda1a3f382..c213d90dc38d 100644
--- a/www-apps/gitea/gitea-1.16.5.ebuild
+++ b/www-apps/gitea/gitea-1.16.5.ebuild
@@ -8,7 +8,7 @@ inherit fcaps go-module tmpfiles systemd
 DESCRIPTION="A painless self-hosted Git service"
 HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
 
SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz
 -> ${P}.tar.gz"
-KEYWORDS="~amd64 ~arm ~arm64"
+KEYWORDS="amd64 ~arm ~arm64"
 S="${WORKDIR}"
 
 LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-05-01 Thread Joonas Niilola
commit: 19471b70f59566afe7e8966316277b41c62933e2
Author: Tomáš Mózes  gmail  com>
AuthorDate: Fri Apr 29 20:30:44 2022 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sun May  1 16:32:11 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19471b70

www-apps/gitea: bump to 1.16.6

Signed-off-by: Tomáš Mózes  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/25262
Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.16.6.ebuild | 107 +
 2 files changed, 108 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 5073ac723c94..59554e0d2acd 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1 +1,2 @@
 DIST gitea-1.16.5.tar.gz 53178954 BLAKE2B 
67c378a46eab8e374b1a5b91d86e558c6ae06e24a23cb0d670f112573e0606c3ee7f700047f703a73b19f39b216597e3a05c3602e01ecfb09f146515545d3687
 SHA512 
3c367155a97809d587879b023979ad198106040c362e6d5e6df26cad384c614aaac1c47d84bcac0177a5b5546c4a76e95cfff9cf76b411226c0b1aa618d4d4b3
+DIST gitea-1.16.6.tar.gz 53649707 BLAKE2B 
118d77f82d2037d2d3f3a3fa9f8548af9af6fd9a8bf4797b005de9e98772899fcd73af91f135999db9136d850fc5e0283da9fc2868058e58c6f68d231e4affec
 SHA512 
3f14aaf9fdcd21180995717c7dfebe70966073e4228520963313379f124d383192f600690c276b0a9e1d6b442e8ad053f24ffac795c13fdc6321b9200d8223ea

diff --git a/www-apps/gitea/gitea-1.16.6.ebuild 
b/www-apps/gitea/gitea-1.16.6.ebuild
new file mode 100644
index ..eaeda1a3f382
--- /dev/null
+++ b/www-apps/gitea/gitea-1.16.6.ebuild
@@ -0,0 +1,107 @@
+# Copyright 2016-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fcaps go-module tmpfiles systemd
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
+SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz
 -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~arm ~arm64"
+S="${WORKDIR}"
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+IUSE="+acct pam sqlite"
+
+DEPEND="
+   acct? (
+   acct-group/git
+   acct-user/git[gitea] )
+   pam? ( sys-libs/pam )"
+RDEPEND="${DEPEND}
+   dev-vcs/git"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   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 "The default JWT signing algorithm changed in 1.15.0 from HS256 
(symmetric) to"
+   ewarn "RS256 (asymmetric). 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-03-25 Thread Sam James
commit: 99b860baf770849dc16cb7e2b58d346144f129d7
Author: Tomáš Mózes  gmail  com>
AuthorDate: Fri Mar 25 07:23:58 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Mar 25 19:25:35 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99b860ba

www-apps/gitea: security bump to 1.16.5

Bug: https://bugs.gentoo.org/835932
Closes: https://bugs.gentoo.org/835376
Signed-off-by: Tomáš Mózes  gmail.com>
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.16.5.ebuild | 107 +
 2 files changed, 108 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index c7c4b0d52fb8..878c1f5000f2 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1 +1,2 @@
 DIST gitea-1.16.4.tar.gz 49747172 BLAKE2B 
cab622fd0014b7f9737674973d978055bc02b390c3bb522b3f462ac136eb2a51b335ae7223ed62cd0481bebb5bdbac442fa6c5d36f6b0a8f91f76e43cb44f2f7
 SHA512 
880a73cf161564e7dddb432a6ae3274896fd8825718f7bb84ec86aa1b36644789914d0fb390e7b5d7d8d0b47078ded3319e20149c677aeefadf8c79735383de0
+DIST gitea-1.16.5.tar.gz 53178954 BLAKE2B 
67c378a46eab8e374b1a5b91d86e558c6ae06e24a23cb0d670f112573e0606c3ee7f700047f703a73b19f39b216597e3a05c3602e01ecfb09f146515545d3687
 SHA512 
3c367155a97809d587879b023979ad198106040c362e6d5e6df26cad384c614aaac1c47d84bcac0177a5b5546c4a76e95cfff9cf76b411226c0b1aa618d4d4b3

diff --git a/www-apps/gitea/gitea-1.16.5.ebuild 
b/www-apps/gitea/gitea-1.16.5.ebuild
new file mode 100644
index ..eaeda1a3f382
--- /dev/null
+++ b/www-apps/gitea/gitea-1.16.5.ebuild
@@ -0,0 +1,107 @@
+# Copyright 2016-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fcaps go-module tmpfiles systemd
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
+SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz
 -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~arm ~arm64"
+S="${WORKDIR}"
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+IUSE="+acct pam sqlite"
+
+DEPEND="
+   acct? (
+   acct-group/git
+   acct-user/git[gitea] )
+   pam? ( sys-libs/pam )"
+RDEPEND="${DEPEND}
+   dev-vcs/git"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   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 "The default JWT signing algorithm changed in 1.15.0 from HS256 
(symmetric) to"
+   ewarn 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-03-25 Thread Sam James
commit: 16285c7de71d0281f3e7d26c7c545eff322a21fe
Author: Tomáš Mózes  gmail  com>
AuthorDate: Fri Mar 25 07:24:41 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Mar 25 19:25:37 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16285c7d

www-apps/gitea: drop vulnerable

Signed-off-by: Tomáš Mózes  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/24741
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   1 -
 www-apps/gitea/gitea-1.16.4.ebuild | 107 -
 2 files changed, 108 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 878c1f5000f2..5073ac723c94 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1 @@
-DIST gitea-1.16.4.tar.gz 49747172 BLAKE2B 
cab622fd0014b7f9737674973d978055bc02b390c3bb522b3f462ac136eb2a51b335ae7223ed62cd0481bebb5bdbac442fa6c5d36f6b0a8f91f76e43cb44f2f7
 SHA512 
880a73cf161564e7dddb432a6ae3274896fd8825718f7bb84ec86aa1b36644789914d0fb390e7b5d7d8d0b47078ded3319e20149c677aeefadf8c79735383de0
 DIST gitea-1.16.5.tar.gz 53178954 BLAKE2B 
67c378a46eab8e374b1a5b91d86e558c6ae06e24a23cb0d670f112573e0606c3ee7f700047f703a73b19f39b216597e3a05c3602e01ecfb09f146515545d3687
 SHA512 
3c367155a97809d587879b023979ad198106040c362e6d5e6df26cad384c614aaac1c47d84bcac0177a5b5546c4a76e95cfff9cf76b411226c0b1aa618d4d4b3

diff --git a/www-apps/gitea/gitea-1.16.4.ebuild 
b/www-apps/gitea/gitea-1.16.4.ebuild
deleted file mode 100644
index eaeda1a3f382..
--- a/www-apps/gitea/gitea-1.16.4.ebuild
+++ /dev/null
@@ -1,107 +0,0 @@
-# Copyright 2016-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit fcaps go-module tmpfiles systemd
-
-DESCRIPTION="A painless self-hosted Git service"
-HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
-SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz
 -> ${P}.tar.gz"
-KEYWORDS="~amd64 ~arm ~arm64"
-S="${WORKDIR}"
-
-LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
-SLOT="0"
-IUSE="+acct pam sqlite"
-
-DEPEND="
-   acct? (
-   acct-group/git
-   acct-user/git[gitea] )
-   pam? ( sys-libs/pam )"
-RDEPEND="${DEPEND}
-   dev-vcs/git"
-
-DOCS=(
-   custom/conf/app.example.ini CONTRIBUTING.md README.md
-)
-FILECAPS=(
-   -m 711 cap_net_bind_service+ep usr/bin/gitea
-)
-
-RESTRICT="test"
-
-src_prepare() {
-   default
-
-   local sedcmds=(
-   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
-   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
-   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
-   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
-   -e "s#^MODE = console#MODE = file#"
-   -e "s#^LEVEL = Trace#LEVEL = Info#"
-   -e "s#^LOG_SQL = true#LOG_SQL = false#"
-   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
-   )
-
-   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
-   if use sqlite ; then
-   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
-   fi
-}
-
-src_compile() {
-   local gitea_tags=(
-   bindata
-   $(usev pam)
-   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
-   )
-   local 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"
-   )
-   local makeenv=(
-   DRONE_TAG="${PV}"
-   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
-   TAGS="${gitea_tags[*]}"
-   )
-
-   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 "The default JWT signing algorithm changed in 1.15.0 from HS256 
(symmetric) to"
-   ewarn "RS256 (asymmetric). Gitea 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-03-16 Thread Sam James
commit: 3982d928f6a2e8301ca0b5d40f4e5e2e991088bd
Author: Tomáš Mózes  gmail  com>
AuthorDate: Tue Mar 15 18:40:28 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Mar 16 17:33:00 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3982d928

www-apps/gitea: security bump to 1.16.4

Bug: https://bugs.gentoo.org/834982
Signed-off-by: Tomáš Mózes  gmail.com>
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.16.4.ebuild | 107 +
 2 files changed, 108 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 4c89c992fba0..98a73db2a47c 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1 +1,2 @@
 DIST gitea-1.16.3.tar.gz 49769388 BLAKE2B 
e3b77d2d224088cd1ad61a180e8034b4f4e3d7849181067f4d4115c2a1a4e8587f7d928a18c8b11c58fddf138cd7346ada1a551784f1eb2b16b971718c41c6de
 SHA512 
444c7da04d725ce171653aea33210ce6240eeaf5d3e90cf46ddc908571710664a40f8189d19964387655a79fbead628a921260e9e8dfe3ccb121dd90d76be3f4
+DIST gitea-1.16.4.tar.gz 49747172 BLAKE2B 
cab622fd0014b7f9737674973d978055bc02b390c3bb522b3f462ac136eb2a51b335ae7223ed62cd0481bebb5bdbac442fa6c5d36f6b0a8f91f76e43cb44f2f7
 SHA512 
880a73cf161564e7dddb432a6ae3274896fd8825718f7bb84ec86aa1b36644789914d0fb390e7b5d7d8d0b47078ded3319e20149c677aeefadf8c79735383de0

diff --git a/www-apps/gitea/gitea-1.16.4.ebuild 
b/www-apps/gitea/gitea-1.16.4.ebuild
new file mode 100644
index ..eaeda1a3f382
--- /dev/null
+++ b/www-apps/gitea/gitea-1.16.4.ebuild
@@ -0,0 +1,107 @@
+# Copyright 2016-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fcaps go-module tmpfiles systemd
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
+SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz
 -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~arm ~arm64"
+S="${WORKDIR}"
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+IUSE="+acct pam sqlite"
+
+DEPEND="
+   acct? (
+   acct-group/git
+   acct-user/git[gitea] )
+   pam? ( sys-libs/pam )"
+RDEPEND="${DEPEND}
+   dev-vcs/git"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   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 "The default JWT signing algorithm changed in 1.15.0 from HS256 
(symmetric) to"
+   ewarn "RS256 (asymmetric). Gitea OAuth2 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-03-16 Thread Sam James
commit: c499dc2ad67cf12bdff144be03265c513fe4f344
Author: Tomáš Mózes  gmail  com>
AuthorDate: Tue Mar 15 18:40:52 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Mar 16 17:33:02 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c499dc2a

www-apps/gitea: drop vulnerable

Signed-off-by: Tomáš Mózes  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/24588
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   1 -
 www-apps/gitea/gitea-1.16.3.ebuild | 107 -
 2 files changed, 108 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 98a73db2a47c..c7c4b0d52fb8 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1 @@
-DIST gitea-1.16.3.tar.gz 49769388 BLAKE2B 
e3b77d2d224088cd1ad61a180e8034b4f4e3d7849181067f4d4115c2a1a4e8587f7d928a18c8b11c58fddf138cd7346ada1a551784f1eb2b16b971718c41c6de
 SHA512 
444c7da04d725ce171653aea33210ce6240eeaf5d3e90cf46ddc908571710664a40f8189d19964387655a79fbead628a921260e9e8dfe3ccb121dd90d76be3f4
 DIST gitea-1.16.4.tar.gz 49747172 BLAKE2B 
cab622fd0014b7f9737674973d978055bc02b390c3bb522b3f462ac136eb2a51b335ae7223ed62cd0481bebb5bdbac442fa6c5d36f6b0a8f91f76e43cb44f2f7
 SHA512 
880a73cf161564e7dddb432a6ae3274896fd8825718f7bb84ec86aa1b36644789914d0fb390e7b5d7d8d0b47078ded3319e20149c677aeefadf8c79735383de0

diff --git a/www-apps/gitea/gitea-1.16.3.ebuild 
b/www-apps/gitea/gitea-1.16.3.ebuild
deleted file mode 100644
index eaeda1a3f382..
--- a/www-apps/gitea/gitea-1.16.3.ebuild
+++ /dev/null
@@ -1,107 +0,0 @@
-# Copyright 2016-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit fcaps go-module tmpfiles systemd
-
-DESCRIPTION="A painless self-hosted Git service"
-HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
-SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz
 -> ${P}.tar.gz"
-KEYWORDS="~amd64 ~arm ~arm64"
-S="${WORKDIR}"
-
-LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
-SLOT="0"
-IUSE="+acct pam sqlite"
-
-DEPEND="
-   acct? (
-   acct-group/git
-   acct-user/git[gitea] )
-   pam? ( sys-libs/pam )"
-RDEPEND="${DEPEND}
-   dev-vcs/git"
-
-DOCS=(
-   custom/conf/app.example.ini CONTRIBUTING.md README.md
-)
-FILECAPS=(
-   -m 711 cap_net_bind_service+ep usr/bin/gitea
-)
-
-RESTRICT="test"
-
-src_prepare() {
-   default
-
-   local sedcmds=(
-   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
-   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
-   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
-   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
-   -e "s#^MODE = console#MODE = file#"
-   -e "s#^LEVEL = Trace#LEVEL = Info#"
-   -e "s#^LOG_SQL = true#LOG_SQL = false#"
-   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
-   )
-
-   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
-   if use sqlite ; then
-   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
-   fi
-}
-
-src_compile() {
-   local gitea_tags=(
-   bindata
-   $(usev pam)
-   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
-   )
-   local 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"
-   )
-   local makeenv=(
-   DRONE_TAG="${PV}"
-   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
-   TAGS="${gitea_tags[*]}"
-   )
-
-   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 "The default JWT signing algorithm changed in 1.15.0 from HS256 
(symmetric) to"
-   ewarn "RS256 (asymmetric). Gitea 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-03-12 Thread Matthew Smith
commit: 24f615c255e4c506150264ec23d7a596692c0d58
Author: Tomáš Mózes  gmail  com>
AuthorDate: Fri Mar 11 20:05:42 2022 +
Commit: Matthew Smith  gentoo  org>
CommitDate: Sat Mar 12 17:24:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24f615c2

www-apps/gitea: security bump to 1.16.3

Bug: https://bugs.gentoo.org/834982
Signed-off-by: Tomáš Mózes  gmail.com>
Signed-off-by: Matthew Smith  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.16.3.ebuild | 107 +
 2 files changed, 108 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 9443829fdeaa..3198d59edacf 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1 +1,2 @@
 DIST gitea-1.16.1.tar.gz 49719355 BLAKE2B 
a25f421079aa62311e1c607167904fa1daa8208d878fee3fb20cc2954a53ec171189c6d36da486636a725502a2d759534407b1e236e56f4947211c33176204b1
 SHA512 
c4ec0d1b3ec1898fa72fd62d98555e35898649d29e52eb5b9f9923f9703cd42b1c67f1a1e1a927c3de9b44cd65229c31330e534ad0117633b0320c1434614cab
+DIST gitea-1.16.3.tar.gz 49769388 BLAKE2B 
e3b77d2d224088cd1ad61a180e8034b4f4e3d7849181067f4d4115c2a1a4e8587f7d928a18c8b11c58fddf138cd7346ada1a551784f1eb2b16b971718c41c6de
 SHA512 
444c7da04d725ce171653aea33210ce6240eeaf5d3e90cf46ddc908571710664a40f8189d19964387655a79fbead628a921260e9e8dfe3ccb121dd90d76be3f4

diff --git a/www-apps/gitea/gitea-1.16.3.ebuild 
b/www-apps/gitea/gitea-1.16.3.ebuild
new file mode 100644
index ..eaeda1a3f382
--- /dev/null
+++ b/www-apps/gitea/gitea-1.16.3.ebuild
@@ -0,0 +1,107 @@
+# Copyright 2016-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fcaps go-module tmpfiles systemd
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
+SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz
 -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~arm ~arm64"
+S="${WORKDIR}"
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+IUSE="+acct pam sqlite"
+
+DEPEND="
+   acct? (
+   acct-group/git
+   acct-user/git[gitea] )
+   pam? ( sys-libs/pam )"
+RDEPEND="${DEPEND}
+   dev-vcs/git"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   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 "The default JWT signing algorithm changed in 1.15.0 from HS256 
(symmetric) to"
+   ewarn "RS256 (asymmetric). Gitea 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-03-12 Thread Matthew Smith
commit: 06b7723e8af08d9d0dd4922d4e83efcf3e69647e
Author: Tomáš Mózes  gmail  com>
AuthorDate: Fri Mar 11 20:06:00 2022 +
Commit: Matthew Smith  gentoo  org>
CommitDate: Sat Mar 12 17:24:51 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06b7723e

www-apps/gitea: drop vulnerable

Bug: https://bugs.gentoo.org/834982
Signed-off-by: Tomáš Mózes  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/24496
Signed-off-by: Matthew Smith  gentoo.org>

 www-apps/gitea/Manifest|   1 -
 www-apps/gitea/gitea-1.16.1.ebuild | 107 -
 2 files changed, 108 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 3198d59edacf..4c89c992fba0 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1 @@
-DIST gitea-1.16.1.tar.gz 49719355 BLAKE2B 
a25f421079aa62311e1c607167904fa1daa8208d878fee3fb20cc2954a53ec171189c6d36da486636a725502a2d759534407b1e236e56f4947211c33176204b1
 SHA512 
c4ec0d1b3ec1898fa72fd62d98555e35898649d29e52eb5b9f9923f9703cd42b1c67f1a1e1a927c3de9b44cd65229c31330e534ad0117633b0320c1434614cab
 DIST gitea-1.16.3.tar.gz 49769388 BLAKE2B 
e3b77d2d224088cd1ad61a180e8034b4f4e3d7849181067f4d4115c2a1a4e8587f7d928a18c8b11c58fddf138cd7346ada1a551784f1eb2b16b971718c41c6de
 SHA512 
444c7da04d725ce171653aea33210ce6240eeaf5d3e90cf46ddc908571710664a40f8189d19964387655a79fbead628a921260e9e8dfe3ccb121dd90d76be3f4

diff --git a/www-apps/gitea/gitea-1.16.1.ebuild 
b/www-apps/gitea/gitea-1.16.1.ebuild
deleted file mode 100644
index eaeda1a3f382..
--- a/www-apps/gitea/gitea-1.16.1.ebuild
+++ /dev/null
@@ -1,107 +0,0 @@
-# Copyright 2016-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit fcaps go-module tmpfiles systemd
-
-DESCRIPTION="A painless self-hosted Git service"
-HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
-SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz
 -> ${P}.tar.gz"
-KEYWORDS="~amd64 ~arm ~arm64"
-S="${WORKDIR}"
-
-LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
-SLOT="0"
-IUSE="+acct pam sqlite"
-
-DEPEND="
-   acct? (
-   acct-group/git
-   acct-user/git[gitea] )
-   pam? ( sys-libs/pam )"
-RDEPEND="${DEPEND}
-   dev-vcs/git"
-
-DOCS=(
-   custom/conf/app.example.ini CONTRIBUTING.md README.md
-)
-FILECAPS=(
-   -m 711 cap_net_bind_service+ep usr/bin/gitea
-)
-
-RESTRICT="test"
-
-src_prepare() {
-   default
-
-   local sedcmds=(
-   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
-   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
-   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
-   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
-   -e "s#^MODE = console#MODE = file#"
-   -e "s#^LEVEL = Trace#LEVEL = Info#"
-   -e "s#^LOG_SQL = true#LOG_SQL = false#"
-   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
-   )
-
-   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
-   if use sqlite ; then
-   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
-   fi
-}
-
-src_compile() {
-   local gitea_tags=(
-   bindata
-   $(usev pam)
-   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
-   )
-   local 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"
-   )
-   local makeenv=(
-   DRONE_TAG="${PV}"
-   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
-   TAGS="${gitea_tags[*]}"
-   )
-
-   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 "The default JWT signing algorithm changed in 1.15.0 from HS256 
(symmetric) 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-02-09 Thread Sam James
commit: 9b662725b7c5cd6216b1839f0b9c88ecefc6fb4b
Author: Tomáš Mózes  gmail  com>
AuthorDate: Tue Feb  8 15:49:24 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Feb  9 11:19:09 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b662725

www-apps/gitea: security bump to 1.16.1

Signed-off-by: Tomáš Mózes  gmail.com>
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.16.1.ebuild | 107 +
 2 files changed, 108 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 5c3a70285c4f..1a204d7744f6 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1,3 @@
 DIST gitea-1.15.11.tar.gz 48782819 BLAKE2B 
1f04314cef3ee1467ed0948e95dec89c75a45cc2c3de78f7fc998b9716c5859bd87ec51e6e2b79d048701ac82fc112b3239a6e27bccfe4b0eeb4cdfdc1fb99d6
 SHA512 
1f842b90997cb7463751a0e08d37f4823437094efadeb6a27a6bbdb502b2bf33ebb0eab1e8e6bf5b64790b4c513cc42b978ec54152f1a4bfe0b6b957cb179fde
 DIST gitea-1.16.0.tar.gz 49689929 BLAKE2B 
d6713dd6c72ee659335f263bcde2bbf25beba44fda7dc5e31d30c1a24bcf6a9155909f2e8e8039f462a2982ddef235a57cb08d77676c9a139fe5f7ef4379bfa8
 SHA512 
24cb3d7859bf57a0d78ed7820b1daffda3095fd6025e886d828d956fd1a75e179bd6c784cd54c7f174d63353f68d59c7a2a76cb0ce0a209f6d11b3c3181f9b5e
+DIST gitea-1.16.1.tar.gz 49719355 BLAKE2B 
a25f421079aa62311e1c607167904fa1daa8208d878fee3fb20cc2954a53ec171189c6d36da486636a725502a2d759534407b1e236e56f4947211c33176204b1
 SHA512 
c4ec0d1b3ec1898fa72fd62d98555e35898649d29e52eb5b9f9923f9703cd42b1c67f1a1e1a927c3de9b44cd65229c31330e534ad0117633b0320c1434614cab

diff --git a/www-apps/gitea/gitea-1.16.1.ebuild 
b/www-apps/gitea/gitea-1.16.1.ebuild
new file mode 100644
index ..eaeda1a3f382
--- /dev/null
+++ b/www-apps/gitea/gitea-1.16.1.ebuild
@@ -0,0 +1,107 @@
+# Copyright 2016-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fcaps go-module tmpfiles systemd
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
+SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz
 -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~arm ~arm64"
+S="${WORKDIR}"
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+IUSE="+acct pam sqlite"
+
+DEPEND="
+   acct? (
+   acct-group/git
+   acct-user/git[gitea] )
+   pam? ( sys-libs/pam )"
+RDEPEND="${DEPEND}
+   dev-vcs/git"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   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
+

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-02-09 Thread Sam James
commit: 6b7434361dca974cf613f2576b42f72c3e36c70c
Author: Tomáš Mózes  gmail  com>
AuthorDate: Tue Feb  8 15:49:46 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Feb  9 11:19:10 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b743436

www-apps/gitea: drop vulnerable

Signed-off-by: Tomáš Mózes  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/24127
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest |   2 -
 www-apps/gitea/gitea-1.15.11.ebuild | 107 
 www-apps/gitea/gitea-1.16.0.ebuild  | 107 
 3 files changed, 216 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 1a204d7744f6..9443829fdeaa 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +1 @@
-DIST gitea-1.15.11.tar.gz 48782819 BLAKE2B 
1f04314cef3ee1467ed0948e95dec89c75a45cc2c3de78f7fc998b9716c5859bd87ec51e6e2b79d048701ac82fc112b3239a6e27bccfe4b0eeb4cdfdc1fb99d6
 SHA512 
1f842b90997cb7463751a0e08d37f4823437094efadeb6a27a6bbdb502b2bf33ebb0eab1e8e6bf5b64790b4c513cc42b978ec54152f1a4bfe0b6b957cb179fde
-DIST gitea-1.16.0.tar.gz 49689929 BLAKE2B 
d6713dd6c72ee659335f263bcde2bbf25beba44fda7dc5e31d30c1a24bcf6a9155909f2e8e8039f462a2982ddef235a57cb08d77676c9a139fe5f7ef4379bfa8
 SHA512 
24cb3d7859bf57a0d78ed7820b1daffda3095fd6025e886d828d956fd1a75e179bd6c784cd54c7f174d63353f68d59c7a2a76cb0ce0a209f6d11b3c3181f9b5e
 DIST gitea-1.16.1.tar.gz 49719355 BLAKE2B 
a25f421079aa62311e1c607167904fa1daa8208d878fee3fb20cc2954a53ec171189c6d36da486636a725502a2d759534407b1e236e56f4947211c33176204b1
 SHA512 
c4ec0d1b3ec1898fa72fd62d98555e35898649d29e52eb5b9f9923f9703cd42b1c67f1a1e1a927c3de9b44cd65229c31330e534ad0117633b0320c1434614cab

diff --git a/www-apps/gitea/gitea-1.15.11.ebuild 
b/www-apps/gitea/gitea-1.15.11.ebuild
deleted file mode 100644
index eaeda1a3f382..
--- a/www-apps/gitea/gitea-1.15.11.ebuild
+++ /dev/null
@@ -1,107 +0,0 @@
-# Copyright 2016-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit fcaps go-module tmpfiles systemd
-
-DESCRIPTION="A painless self-hosted Git service"
-HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
-SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz
 -> ${P}.tar.gz"
-KEYWORDS="~amd64 ~arm ~arm64"
-S="${WORKDIR}"
-
-LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
-SLOT="0"
-IUSE="+acct pam sqlite"
-
-DEPEND="
-   acct? (
-   acct-group/git
-   acct-user/git[gitea] )
-   pam? ( sys-libs/pam )"
-RDEPEND="${DEPEND}
-   dev-vcs/git"
-
-DOCS=(
-   custom/conf/app.example.ini CONTRIBUTING.md README.md
-)
-FILECAPS=(
-   -m 711 cap_net_bind_service+ep usr/bin/gitea
-)
-
-RESTRICT="test"
-
-src_prepare() {
-   default
-
-   local sedcmds=(
-   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
-   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
-   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
-   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
-   -e "s#^MODE = console#MODE = file#"
-   -e "s#^LEVEL = Trace#LEVEL = Info#"
-   -e "s#^LOG_SQL = true#LOG_SQL = false#"
-   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
-   )
-
-   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
-   if use sqlite ; then
-   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
-   fi
-}
-
-src_compile() {
-   local gitea_tags=(
-   bindata
-   $(usev pam)
-   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
-   )
-   local 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"
-   )
-   local makeenv=(
-   DRONE_TAG="${PV}"
-   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
-   TAGS="${gitea_tags[*]}"
-   )
-
-   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}
-
- 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-02-02 Thread Sam James
commit: f76a31d84308789da99f701671b7a8ba699fce7f
Author: Tomáš Mózes  gmail  com>
AuthorDate: Wed Feb  2 19:08:01 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Feb  3 02:20:46 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f76a31d8

www-apps/gitea: drop vulnerable

Signed-off-by: Tomáš Mózes  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/24030
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest |   1 -
 www-apps/gitea/gitea-1.15.10.ebuild | 107 
 2 files changed, 108 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index c3c2fe314ebe..5c3a70285c4f 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +1,2 @@
-DIST gitea-1.15.10.tar.gz 48818877 BLAKE2B 
00e2fc8fb0ca5952d96de1b4ed53d0bd6d17b22fc0d7c2aacc313ed74d0a2d268ad714a363c5408daca9b57beaa0305b369d9400019f9c60e133a976f0731076
 SHA512 
6598e2b8cb84e03370b704f57783612bb4bb938527bbcfcaaf0607035e73e3b480e40ca6fa196ae641ec91483af54688c5acf8dcce59d4ee8c6de9f393a8f531
 DIST gitea-1.15.11.tar.gz 48782819 BLAKE2B 
1f04314cef3ee1467ed0948e95dec89c75a45cc2c3de78f7fc998b9716c5859bd87ec51e6e2b79d048701ac82fc112b3239a6e27bccfe4b0eeb4cdfdc1fb99d6
 SHA512 
1f842b90997cb7463751a0e08d37f4823437094efadeb6a27a6bbdb502b2bf33ebb0eab1e8e6bf5b64790b4c513cc42b978ec54152f1a4bfe0b6b957cb179fde
 DIST gitea-1.16.0.tar.gz 49689929 BLAKE2B 
d6713dd6c72ee659335f263bcde2bbf25beba44fda7dc5e31d30c1a24bcf6a9155909f2e8e8039f462a2982ddef235a57cb08d77676c9a139fe5f7ef4379bfa8
 SHA512 
24cb3d7859bf57a0d78ed7820b1daffda3095fd6025e886d828d956fd1a75e179bd6c784cd54c7f174d63353f68d59c7a2a76cb0ce0a209f6d11b3c3181f9b5e

diff --git a/www-apps/gitea/gitea-1.15.10.ebuild 
b/www-apps/gitea/gitea-1.15.10.ebuild
deleted file mode 100644
index eaeda1a3f382..
--- a/www-apps/gitea/gitea-1.15.10.ebuild
+++ /dev/null
@@ -1,107 +0,0 @@
-# Copyright 2016-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit fcaps go-module tmpfiles systemd
-
-DESCRIPTION="A painless self-hosted Git service"
-HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
-SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz
 -> ${P}.tar.gz"
-KEYWORDS="~amd64 ~arm ~arm64"
-S="${WORKDIR}"
-
-LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
-SLOT="0"
-IUSE="+acct pam sqlite"
-
-DEPEND="
-   acct? (
-   acct-group/git
-   acct-user/git[gitea] )
-   pam? ( sys-libs/pam )"
-RDEPEND="${DEPEND}
-   dev-vcs/git"
-
-DOCS=(
-   custom/conf/app.example.ini CONTRIBUTING.md README.md
-)
-FILECAPS=(
-   -m 711 cap_net_bind_service+ep usr/bin/gitea
-)
-
-RESTRICT="test"
-
-src_prepare() {
-   default
-
-   local sedcmds=(
-   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
-   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
-   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
-   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
-   -e "s#^MODE = console#MODE = file#"
-   -e "s#^LEVEL = Trace#LEVEL = Info#"
-   -e "s#^LOG_SQL = true#LOG_SQL = false#"
-   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
-   )
-
-   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
-   if use sqlite ; then
-   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
-   fi
-}
-
-src_compile() {
-   local gitea_tags=(
-   bindata
-   $(usev pam)
-   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
-   )
-   local 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"
-   )
-   local makeenv=(
-   DRONE_TAG="${PV}"
-   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
-   TAGS="${gitea_tags[*]}"
-   )
-
-   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 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-02-02 Thread Sam James
commit: e899bf18f012ddeb2effdbc619eaecf79ca41be7
Author: Tomáš Mózes  gmail  com>
AuthorDate: Wed Feb  2 19:07:34 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Feb  3 02:20:45 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e899bf18

www-apps/gitea: security bump to 1.15.11/1.16.0

Signed-off-by: Tomáš Mózes  gmail.com>
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest |   2 +
 www-apps/gitea/gitea-1.15.11.ebuild | 107 
 www-apps/gitea/gitea-1.16.0.ebuild  | 107 
 3 files changed, 216 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index f02ea9c4895a..c3c2fe314ebe 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1 +1,3 @@
 DIST gitea-1.15.10.tar.gz 48818877 BLAKE2B 
00e2fc8fb0ca5952d96de1b4ed53d0bd6d17b22fc0d7c2aacc313ed74d0a2d268ad714a363c5408daca9b57beaa0305b369d9400019f9c60e133a976f0731076
 SHA512 
6598e2b8cb84e03370b704f57783612bb4bb938527bbcfcaaf0607035e73e3b480e40ca6fa196ae641ec91483af54688c5acf8dcce59d4ee8c6de9f393a8f531
+DIST gitea-1.15.11.tar.gz 48782819 BLAKE2B 
1f04314cef3ee1467ed0948e95dec89c75a45cc2c3de78f7fc998b9716c5859bd87ec51e6e2b79d048701ac82fc112b3239a6e27bccfe4b0eeb4cdfdc1fb99d6
 SHA512 
1f842b90997cb7463751a0e08d37f4823437094efadeb6a27a6bbdb502b2bf33ebb0eab1e8e6bf5b64790b4c513cc42b978ec54152f1a4bfe0b6b957cb179fde
+DIST gitea-1.16.0.tar.gz 49689929 BLAKE2B 
d6713dd6c72ee659335f263bcde2bbf25beba44fda7dc5e31d30c1a24bcf6a9155909f2e8e8039f462a2982ddef235a57cb08d77676c9a139fe5f7ef4379bfa8
 SHA512 
24cb3d7859bf57a0d78ed7820b1daffda3095fd6025e886d828d956fd1a75e179bd6c784cd54c7f174d63353f68d59c7a2a76cb0ce0a209f6d11b3c3181f9b5e

diff --git a/www-apps/gitea/gitea-1.15.11.ebuild 
b/www-apps/gitea/gitea-1.15.11.ebuild
new file mode 100644
index ..eaeda1a3f382
--- /dev/null
+++ b/www-apps/gitea/gitea-1.15.11.ebuild
@@ -0,0 +1,107 @@
+# Copyright 2016-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fcaps go-module tmpfiles systemd
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
+SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz
 -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~arm ~arm64"
+S="${WORKDIR}"
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+IUSE="+acct pam sqlite"
+
+DEPEND="
+   acct? (
+   acct-group/git
+   acct-user/git[gitea] )
+   pam? ( sys-libs/pam )"
+RDEPEND="${DEPEND}
+   dev-vcs/git"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   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 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-01-28 Thread Sam James
commit: 94f76871b61a0733990dffb32796276dca7661f2
Author: Tomáš Mózes  gmail  com>
AuthorDate: Fri Jan 28 07:14:00 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jan 28 08:36:16 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94f76871

www-apps/gitea: security bump to 1.15.10

Signed-off-by: Tomáš Mózes  gmail.com>
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest |   1 +
 www-apps/gitea/gitea-1.15.10.ebuild | 107 
 2 files changed, 108 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 89fa2fa6367e..e483ad46c05f 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1,3 @@
+DIST gitea-1.15.10.tar.gz 48818877 BLAKE2B 
00e2fc8fb0ca5952d96de1b4ed53d0bd6d17b22fc0d7c2aacc313ed74d0a2d268ad714a363c5408daca9b57beaa0305b369d9400019f9c60e133a976f0731076
 SHA512 
6598e2b8cb84e03370b704f57783612bb4bb938527bbcfcaaf0607035e73e3b480e40ca6fa196ae641ec91483af54688c5acf8dcce59d4ee8c6de9f393a8f531
 DIST gitea-1.15.7.tar.gz 48716399 BLAKE2B 
4238dad8ce64f205bc18fb35a395b18f6da9f34e5bc0dd9d9bb33d5b8413895fb11f85e8514aca62485ce70f0af5091cb8dfeaccecd146fe5e37ca250227847d
 SHA512 
9488776bb39d15a7390e6734e05c6ee9e092a52055575bc784660d6815125f29498d16a7807dac71ecbabc3f08c407c2da1514c36cce72855a17a9ed7b52fbb9
 DIST gitea-1.15.8.tar.gz 48705540 BLAKE2B 
fe51af1ac573958e615e600925a3e2a8f1bdfe4404571198de58fa989e8f8c9ebc4f4714d7700c24f28cba60170a2e34c4416ed28ec201577af92d557a82
 SHA512 
026f8006fa5f51f6bd753228290f1f3714cd5b23c35e2041b309fc4d0d66be9f84fdaf4c7bd5759248fa26e3d3b9fe628fd5ee4c96e13ff6c99fa7facef4ab06

diff --git a/www-apps/gitea/gitea-1.15.10.ebuild 
b/www-apps/gitea/gitea-1.15.10.ebuild
new file mode 100644
index ..eaeda1a3f382
--- /dev/null
+++ b/www-apps/gitea/gitea-1.15.10.ebuild
@@ -0,0 +1,107 @@
+# Copyright 2016-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fcaps go-module tmpfiles systemd
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
+SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz
 -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~arm ~arm64"
+S="${WORKDIR}"
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+IUSE="+acct pam sqlite"
+
+DEPEND="
+   acct? (
+   acct-group/git
+   acct-user/git[gitea] )
+   pam? ( sys-libs/pam )"
+RDEPEND="${DEPEND}
+   dev-vcs/git"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   DRONE_TAG="${PV}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   TAGS="${gitea_tags[*]}"
+   )
+
+   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
+   

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2022-01-28 Thread Sam James
commit: 3ad6fd6c1f5e784344aa894887fafbfe42a9a472
Author: Tomáš Mózes  gmail  com>
AuthorDate: Fri Jan 28 07:14:22 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jan 28 08:36:16 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ad6fd6c

www-apps/gitea: drop vulnerable

Signed-off-by: Tomáš Mózes  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/23991
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   2 -
 www-apps/gitea/gitea-1.15.7.ebuild | 123 -
 www-apps/gitea/gitea-1.15.8.ebuild | 115 --
 3 files changed, 240 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index e483ad46c05f..f02ea9c4895a 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +1 @@
 DIST gitea-1.15.10.tar.gz 48818877 BLAKE2B 
00e2fc8fb0ca5952d96de1b4ed53d0bd6d17b22fc0d7c2aacc313ed74d0a2d268ad714a363c5408daca9b57beaa0305b369d9400019f9c60e133a976f0731076
 SHA512 
6598e2b8cb84e03370b704f57783612bb4bb938527bbcfcaaf0607035e73e3b480e40ca6fa196ae641ec91483af54688c5acf8dcce59d4ee8c6de9f393a8f531
-DIST gitea-1.15.7.tar.gz 48716399 BLAKE2B 
4238dad8ce64f205bc18fb35a395b18f6da9f34e5bc0dd9d9bb33d5b8413895fb11f85e8514aca62485ce70f0af5091cb8dfeaccecd146fe5e37ca250227847d
 SHA512 
9488776bb39d15a7390e6734e05c6ee9e092a52055575bc784660d6815125f29498d16a7807dac71ecbabc3f08c407c2da1514c36cce72855a17a9ed7b52fbb9
-DIST gitea-1.15.8.tar.gz 48705540 BLAKE2B 
fe51af1ac573958e615e600925a3e2a8f1bdfe4404571198de58fa989e8f8c9ebc4f4714d7700c24f28cba60170a2e34c4416ed28ec201577af92d557a82
 SHA512 
026f8006fa5f51f6bd753228290f1f3714cd5b23c35e2041b309fc4d0d66be9f84fdaf4c7bd5759248fa26e3d3b9fe628fd5ee4c96e13ff6c99fa7facef4ab06

diff --git a/www-apps/gitea/gitea-1.15.7.ebuild 
b/www-apps/gitea/gitea-1.15.7.ebuild
deleted file mode 100644
index e8b862eb67e5..
--- a/www-apps/gitea/gitea-1.15.7.ebuild
+++ /dev/null
@@ -1,123 +0,0 @@
-# Copyright 2016-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit fcaps go-module tmpfiles systemd
-MY_PV="${PV/_rc/-rc}"
-
-DESCRIPTION="A painless self-hosted Git service"
-HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
-
-if [[ ${PV} != * ]] ; then
-   
SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz
 -> ${P}.tar.gz"
-   KEYWORDS="~amd64 ~arm ~arm64"
-   S="${WORKDIR}"
-else
-   EGIT_REPO_URI="https://github.com/go-gitea/gitea;
-   inherit git-r3
-   S="${WORKDIR}/${P}"
-fi
-
-LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
-SLOT="0"
-IUSE="+acct pam sqlite"
-
-DEPEND="
-   acct? (
-   acct-group/git
-   acct-user/git[gitea] )
-   pam? ( sys-libs/pam )"
-RDEPEND="${DEPEND}
-   dev-vcs/git"
-
-DOCS=(
-   custom/conf/app.example.ini CONTRIBUTING.md README.md
-)
-FILECAPS=(
-   -m 711 cap_net_bind_service+ep usr/bin/gitea
-)
-
-RESTRICT="test"
-QA_PRESTRIPPED="usr/bin/gitea"
-
-src_prepare() {
-   default
-
-   local sedcmds=(
-   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
-   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
-   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
-   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
-   -e "s#^MODE = console#MODE = file#"
-   -e "s#^LEVEL = Trace#LEVEL = Info#"
-   -e "s#^LOG_SQL = true#LOG_SQL = false#"
-   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
-   )
-
-   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
-   if use sqlite ; then
-   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
-   fi
-
-   einfo "Remove tests which are known to fail with network-sandbox 
enabled."
-   rm ./modules/migrations/github_test.go || die
-
-   einfo "Remove tests which depend on gitea git-repo."
-   rm ./modules/git/blob_test.go || die
-   rm ./modules/git/repo_test.go || die
-}
-
-src_compile() {
-   local gitea_tags=(
-   bindata
-   $(usev pam)
-   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
-   )
-   local 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"
-   )
-   local makeenv=(
-   TAGS="${gitea_tags[*]}"
-   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
-   )
-   [[ ${PV} != * ]] && makeenv+=("DRONE_TAG=${MY_PV}")
-
-   env "${makeenv[@]}" emake backend
-}
-

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2021-12-25 Thread Sam James
commit: 40a824bb90d1beb52b0e1bf3d4699fedc78d331a
Author: Tomáš Mózes  gmail  com>
AuthorDate: Thu Dec 23 20:48:58 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Dec 25 23:20:03 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40a824bb

www-apps/gitea: bump to 1.15.8

Signed-off-by: Tomáš Mózes  gmail.com>
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.15.8.ebuild | 115 +
 2 files changed, 116 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 2895b7fa49ff..0632a8e636fa 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +1,4 @@
 DIST gitea-1.15.5.tar.gz 48677702 BLAKE2B 
fe46e16041861a477cd91e66e741d35cd43264f8e8c6bfeac5a858fd4aeac9e5e92e308608d6fe74a86a69f21a7c036c8e3409aacb8e5841cbf60ae67009574a
 SHA512 
85522113f389d0a26d4f4b78c05a5454095da5f9f9a030c7392143588f985dc7711368d40194bdc6ea286f3ec15b1f9db428f1401f29aa4c46800d0431696a85
 DIST gitea-1.15.6.tar.gz 48675768 BLAKE2B 
e7952cc981925ec36ab6576456266e3582ea88098a2ad83da161c875b3621be586ddbe63fe0d0ce7c62a0fa1e46663f20ce24ce998f3318645667bd92236ade1
 SHA512 
9492a3628c5b300a1322893ffdfffa42e904d1b94917c058ad339e0d9ca21155c834b11d55808cbc89e08533de5340fbf858b87487ad307713c4dc12f5e810c8
 DIST gitea-1.15.7.tar.gz 48716399 BLAKE2B 
4238dad8ce64f205bc18fb35a395b18f6da9f34e5bc0dd9d9bb33d5b8413895fb11f85e8514aca62485ce70f0af5091cb8dfeaccecd146fe5e37ca250227847d
 SHA512 
9488776bb39d15a7390e6734e05c6ee9e092a52055575bc784660d6815125f29498d16a7807dac71ecbabc3f08c407c2da1514c36cce72855a17a9ed7b52fbb9
+DIST gitea-1.15.8.tar.gz 48705540 BLAKE2B 
fe51af1ac573958e615e600925a3e2a8f1bdfe4404571198de58fa989e8f8c9ebc4f4714d7700c24f28cba60170a2e34c4416ed28ec201577af92d557a82
 SHA512 
026f8006fa5f51f6bd753228290f1f3714cd5b23c35e2041b309fc4d0d66be9f84fdaf4c7bd5759248fa26e3d3b9fe628fd5ee4c96e13ff6c99fa7facef4ab06

diff --git a/www-apps/gitea/gitea-1.15.8.ebuild 
b/www-apps/gitea/gitea-1.15.8.ebuild
new file mode 100644
index ..2bacf5e333f4
--- /dev/null
+++ b/www-apps/gitea/gitea-1.15.8.ebuild
@@ -0,0 +1,115 @@
+# Copyright 2016-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fcaps go-module tmpfiles systemd
+MY_PV="${PV/_rc/-rc}"
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
+
+if [[ ${PV} != * ]] ; then
+   
SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz
 -> ${P}.tar.gz"
+   KEYWORDS="~amd64 ~arm ~arm64"
+   S="${WORKDIR}"
+else
+   EGIT_REPO_URI="https://github.com/go-gitea/gitea;
+   inherit git-r3
+   S="${WORKDIR}/${P}"
+fi
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+IUSE="+acct pam sqlite"
+
+DEPEND="
+   acct? (
+   acct-group/git
+   acct-user/git[gitea] )
+   pam? ( sys-libs/pam )"
+RDEPEND="${DEPEND}
+   dev-vcs/git"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   TAGS="${gitea_tags[*]}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   )
+   [[ ${PV} != * ]] && makeenv+=("DRONE_TAG=${MY_PV}")
+
+   env "${makeenv[@]}" emake backend
+}
+
+src_install() {
+   dobin gitea
+
+   einstalldocs
+
+   newconfd "${FILESDIR}/gitea.confd-r1" gitea
+   newinitd 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2021-12-25 Thread Sam James
commit: ebe66b7f4f5dded19bc31d8a5f40aa84cb468477
Author: Tomáš Mózes  gmail  com>
AuthorDate: Thu Dec 23 20:50:24 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Dec 25 23:20:05 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebe66b7f

www-apps/gitea: drop old and live

Live ebuild does not work since the frontend part is not included as in
the releases.

Signed-off-by: Tomáš Mózes  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/23486
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   2 -
 www-apps/gitea/gitea-1.15.5.ebuild | 123 -
 www-apps/gitea/gitea-1.15.6.ebuild | 123 -
 www-apps/gitea/gitea-.ebuild   | 123 -
 4 files changed, 371 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 0632a8e636fa..89fa2fa6367e 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,4 +1,2 @@
-DIST gitea-1.15.5.tar.gz 48677702 BLAKE2B 
fe46e16041861a477cd91e66e741d35cd43264f8e8c6bfeac5a858fd4aeac9e5e92e308608d6fe74a86a69f21a7c036c8e3409aacb8e5841cbf60ae67009574a
 SHA512 
85522113f389d0a26d4f4b78c05a5454095da5f9f9a030c7392143588f985dc7711368d40194bdc6ea286f3ec15b1f9db428f1401f29aa4c46800d0431696a85
-DIST gitea-1.15.6.tar.gz 48675768 BLAKE2B 
e7952cc981925ec36ab6576456266e3582ea88098a2ad83da161c875b3621be586ddbe63fe0d0ce7c62a0fa1e46663f20ce24ce998f3318645667bd92236ade1
 SHA512 
9492a3628c5b300a1322893ffdfffa42e904d1b94917c058ad339e0d9ca21155c834b11d55808cbc89e08533de5340fbf858b87487ad307713c4dc12f5e810c8
 DIST gitea-1.15.7.tar.gz 48716399 BLAKE2B 
4238dad8ce64f205bc18fb35a395b18f6da9f34e5bc0dd9d9bb33d5b8413895fb11f85e8514aca62485ce70f0af5091cb8dfeaccecd146fe5e37ca250227847d
 SHA512 
9488776bb39d15a7390e6734e05c6ee9e092a52055575bc784660d6815125f29498d16a7807dac71ecbabc3f08c407c2da1514c36cce72855a17a9ed7b52fbb9
 DIST gitea-1.15.8.tar.gz 48705540 BLAKE2B 
fe51af1ac573958e615e600925a3e2a8f1bdfe4404571198de58fa989e8f8c9ebc4f4714d7700c24f28cba60170a2e34c4416ed28ec201577af92d557a82
 SHA512 
026f8006fa5f51f6bd753228290f1f3714cd5b23c35e2041b309fc4d0d66be9f84fdaf4c7bd5759248fa26e3d3b9fe628fd5ee4c96e13ff6c99fa7facef4ab06

diff --git a/www-apps/gitea/gitea-1.15.5.ebuild 
b/www-apps/gitea/gitea-1.15.5.ebuild
deleted file mode 100644
index a5eec77f6034..
--- a/www-apps/gitea/gitea-1.15.5.ebuild
+++ /dev/null
@@ -1,123 +0,0 @@
-# Copyright 2016-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-inherit fcaps go-module tmpfiles systemd
-MY_PV="${PV/_rc/-rc}"
-
-DESCRIPTION="A painless self-hosted Git service"
-HOMEPAGE="https://gitea.io;
-
-if [[ ${PV} != * ]] ; then
-   
SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz
 -> ${P}.tar.gz"
-   KEYWORDS="~amd64 ~arm ~arm64"
-   S="${WORKDIR}"
-else
-   EGIT_REPO_URI="https://github.com/go-gitea/gitea;
-   inherit git-r3
-   S="${WORKDIR}/${P}"
-fi
-
-LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
-SLOT="0"
-IUSE="+acct pam sqlite"
-
-COMMON_DEPEND="
-   acct? (
-   acct-group/git
-   acct-user/git[gitea] )
-   pam? ( sys-libs/pam )"
-DEPEND="${COMMON_DEPEND}"
-RDEPEND="${COMMON_DEPEND}
-   dev-vcs/git"
-
-DOCS=(
-   custom/conf/app.example.ini CONTRIBUTING.md README.md
-)
-FILECAPS=(
-   -m 711 cap_net_bind_service+ep usr/bin/gitea
-)
-
-RESTRICT="test"
-QA_PRESTRIPPED="usr/bin/gitea"
-
-src_prepare() {
-   default
-
-   local sedcmds=(
-   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
-   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
-   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
-   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
-   -e "s#^MODE = console#MODE = file#"
-   -e "s#^LEVEL = Trace#LEVEL = Info#"
-   -e "s#^LOG_SQL = true#LOG_SQL = false#"
-   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
-   )
-
-   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
-   if use sqlite ; then
-   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
-   fi
-
-   einfo "Remove tests which are known to fail with network-sandbox 
enabled."
-   rm ./modules/migrations/github_test.go || die
-
-   einfo "Remove tests which depend on gitea git-repo."
-   rm ./modules/git/blob_test.go || die
-   rm ./modules/git/repo_test.go || die
-}
-
-src_compile() {
-   local gitea_tags=(
-   bindata
-   $(usev pam)
-   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
-   )
-   local gitea_settings=(
-   "-X 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2021-12-20 Thread Sam James
commit: 579f2329f91c632d77298ea6e9bca3ee43da74a0
Author: Tomáš Mózes  gmail  com>
AuthorDate: Fri Dec 17 22:43:44 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Dec 21 01:48:01 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=579f2329

www-apps/gitea: bump to 1.15.7

Signed-off-by: Tomáš Mózes  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/23394
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.15.7.ebuild | 123 +
 2 files changed, 124 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 55d3c7ed0a2c..2895b7fa49ff 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1,3 @@
 DIST gitea-1.15.5.tar.gz 48677702 BLAKE2B 
fe46e16041861a477cd91e66e741d35cd43264f8e8c6bfeac5a858fd4aeac9e5e92e308608d6fe74a86a69f21a7c036c8e3409aacb8e5841cbf60ae67009574a
 SHA512 
85522113f389d0a26d4f4b78c05a5454095da5f9f9a030c7392143588f985dc7711368d40194bdc6ea286f3ec15b1f9db428f1401f29aa4c46800d0431696a85
 DIST gitea-1.15.6.tar.gz 48675768 BLAKE2B 
e7952cc981925ec36ab6576456266e3582ea88098a2ad83da161c875b3621be586ddbe63fe0d0ce7c62a0fa1e46663f20ce24ce998f3318645667bd92236ade1
 SHA512 
9492a3628c5b300a1322893ffdfffa42e904d1b94917c058ad339e0d9ca21155c834b11d55808cbc89e08533de5340fbf858b87487ad307713c4dc12f5e810c8
+DIST gitea-1.15.7.tar.gz 48716399 BLAKE2B 
4238dad8ce64f205bc18fb35a395b18f6da9f34e5bc0dd9d9bb33d5b8413895fb11f85e8514aca62485ce70f0af5091cb8dfeaccecd146fe5e37ca250227847d
 SHA512 
9488776bb39d15a7390e6734e05c6ee9e092a52055575bc784660d6815125f29498d16a7807dac71ecbabc3f08c407c2da1514c36cce72855a17a9ed7b52fbb9

diff --git a/www-apps/gitea/gitea-1.15.7.ebuild 
b/www-apps/gitea/gitea-1.15.7.ebuild
new file mode 100644
index ..e8b862eb67e5
--- /dev/null
+++ b/www-apps/gitea/gitea-1.15.7.ebuild
@@ -0,0 +1,123 @@
+# Copyright 2016-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fcaps go-module tmpfiles systemd
+MY_PV="${PV/_rc/-rc}"
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
+
+if [[ ${PV} != * ]] ; then
+   
SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz
 -> ${P}.tar.gz"
+   KEYWORDS="~amd64 ~arm ~arm64"
+   S="${WORKDIR}"
+else
+   EGIT_REPO_URI="https://github.com/go-gitea/gitea;
+   inherit git-r3
+   S="${WORKDIR}/${P}"
+fi
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+IUSE="+acct pam sqlite"
+
+DEPEND="
+   acct? (
+   acct-group/git
+   acct-user/git[gitea] )
+   pam? ( sys-libs/pam )"
+RDEPEND="${DEPEND}
+   dev-vcs/git"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+QA_PRESTRIPPED="usr/bin/gitea"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+
+   einfo "Remove tests which are known to fail with network-sandbox 
enabled."
+   rm ./modules/migrations/github_test.go || die
+
+   einfo "Remove tests which depend on gitea git-repo."
+   rm ./modules/git/blob_test.go || die
+   rm ./modules/git/repo_test.go || die
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   TAGS="${gitea_tags[*]}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   )
+   [[ ${PV} != * ]] && makeenv+=("DRONE_TAG=${MY_PV}")
+
+   env "${makeenv[@]}" emake backend
+}
+
+src_install() {
+   dobin gitea
+
+   einstalldocs
+
+   newconfd 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2021-12-01 Thread Joonas Niilola
commit: 63d70212888254daff66584c4fab5613bfaa2966
Author: Joonas Niilola  gentoo  org>
AuthorDate: Wed Dec  1 15:54:25 2021 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Wed Dec  1 15:54:52 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63d70212

www-apps/gitea: sync - ebuild

Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/gitea-.ebuild | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/www-apps/gitea/gitea-.ebuild b/www-apps/gitea/gitea-.ebuild
index a5eec77f6034..4da3155a2589 100644
--- a/www-apps/gitea/gitea-.ebuild
+++ b/www-apps/gitea/gitea-.ebuild
@@ -2,11 +2,12 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
+
 inherit fcaps go-module tmpfiles systemd
 MY_PV="${PV/_rc/-rc}"
 
 DESCRIPTION="A painless self-hosted Git service"
-HOMEPAGE="https://gitea.io;
+HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
 
 if [[ ${PV} != * ]] ; then

SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz
 -> ${P}.tar.gz"
@@ -22,13 +23,12 @@ LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
 SLOT="0"
 IUSE="+acct pam sqlite"
 
-COMMON_DEPEND="
+DEPEND="
acct? (
acct-group/git
acct-user/git[gitea] )
pam? ( sys-libs/pam )"
-DEPEND="${COMMON_DEPEND}"
-RDEPEND="${COMMON_DEPEND}
+RDEPEND="${DEPEND}
dev-vcs/git"
 
 DOCS=(



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2021-11-29 Thread Joonas Niilola
commit: bad3fd83670890991c47b80d0d0609749f75dcb4
Author: Stijn Tintel  linux-ipv6  be>
AuthorDate: Tue Nov 30 05:57:53 2021 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Tue Nov 30 07:54:22 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bad3fd83

www-apps/gitea: bump to 1.15.6

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Stijn Tintel  linux-ipv6.be>
Closes: https://github.com/gentoo/gentoo/pull/23120
Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.15.6.ebuild | 123 +
 2 files changed, 124 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 6af1748c2e91..55d3c7ed0a2c 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1 +1,2 @@
 DIST gitea-1.15.5.tar.gz 48677702 BLAKE2B 
fe46e16041861a477cd91e66e741d35cd43264f8e8c6bfeac5a858fd4aeac9e5e92e308608d6fe74a86a69f21a7c036c8e3409aacb8e5841cbf60ae67009574a
 SHA512 
85522113f389d0a26d4f4b78c05a5454095da5f9f9a030c7392143588f985dc7711368d40194bdc6ea286f3ec15b1f9db428f1401f29aa4c46800d0431696a85
+DIST gitea-1.15.6.tar.gz 48675768 BLAKE2B 
e7952cc981925ec36ab6576456266e3582ea88098a2ad83da161c875b3621be586ddbe63fe0d0ce7c62a0fa1e46663f20ce24ce998f3318645667bd92236ade1
 SHA512 
9492a3628c5b300a1322893ffdfffa42e904d1b94917c058ad339e0d9ca21155c834b11d55808cbc89e08533de5340fbf858b87487ad307713c4dc12f5e810c8

diff --git a/www-apps/gitea/gitea-1.15.6.ebuild 
b/www-apps/gitea/gitea-1.15.6.ebuild
new file mode 100644
index ..a5eec77f6034
--- /dev/null
+++ b/www-apps/gitea/gitea-1.15.6.ebuild
@@ -0,0 +1,123 @@
+# Copyright 2016-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit fcaps go-module tmpfiles systemd
+MY_PV="${PV/_rc/-rc}"
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.io;
+
+if [[ ${PV} != * ]] ; then
+   
SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz
 -> ${P}.tar.gz"
+   KEYWORDS="~amd64 ~arm ~arm64"
+   S="${WORKDIR}"
+else
+   EGIT_REPO_URI="https://github.com/go-gitea/gitea;
+   inherit git-r3
+   S="${WORKDIR}/${P}"
+fi
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+IUSE="+acct pam sqlite"
+
+COMMON_DEPEND="
+   acct? (
+   acct-group/git
+   acct-user/git[gitea] )
+   pam? ( sys-libs/pam )"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}
+   dev-vcs/git"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+QA_PRESTRIPPED="usr/bin/gitea"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+
+   einfo "Remove tests which are known to fail with network-sandbox 
enabled."
+   rm ./modules/migrations/github_test.go || die
+
+   einfo "Remove tests which depend on gitea git-repo."
+   rm ./modules/git/blob_test.go || die
+   rm ./modules/git/repo_test.go || die
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   TAGS="${gitea_tags[*]}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   )
+   [[ ${PV} != * ]] && makeenv+=("DRONE_TAG=${MY_PV}")
+
+   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 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2021-11-29 Thread Joonas Niilola
commit: cf69d21bf7eac90374f7ed0c58055dec8d853097
Author: Joonas Niilola  gentoo  org>
AuthorDate: Tue Nov 30 07:53:29 2021 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Tue Nov 30 07:54:22 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf69d21b

www-apps/gitea: update HOMEPAGE, update dep list on 1.15.6

Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/gitea-1.15.6.ebuild | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/www-apps/gitea/gitea-1.15.6.ebuild 
b/www-apps/gitea/gitea-1.15.6.ebuild
index a5eec77f6034..4da3155a2589 100644
--- a/www-apps/gitea/gitea-1.15.6.ebuild
+++ b/www-apps/gitea/gitea-1.15.6.ebuild
@@ -2,11 +2,12 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
+
 inherit fcaps go-module tmpfiles systemd
 MY_PV="${PV/_rc/-rc}"
 
 DESCRIPTION="A painless self-hosted Git service"
-HOMEPAGE="https://gitea.io;
+HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea;
 
 if [[ ${PV} != * ]] ; then

SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz
 -> ${P}.tar.gz"
@@ -22,13 +23,12 @@ LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
 SLOT="0"
 IUSE="+acct pam sqlite"
 
-COMMON_DEPEND="
+DEPEND="
acct? (
acct-group/git
acct-user/git[gitea] )
pam? ( sys-libs/pam )"
-DEPEND="${COMMON_DEPEND}"
-RDEPEND="${COMMON_DEPEND}
+RDEPEND="${DEPEND}
dev-vcs/git"
 
 DOCS=(



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2021-10-30 Thread Sam James
commit: 0c1d3c5f1591405fbef033d14749afa3a759214c
Author: Tomáš Mózes  gmail  com>
AuthorDate: Tue Oct 26 07:06:48 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Oct 31 02:52:19 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c1d3c5f

www-apps/gitea: bump to 1.15.5

Signed-off-by: Tomáš Mózes  gmail.com>
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.15.5.ebuild | 123 +
 2 files changed, 124 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 402794e64d0..4b82f4f45d2 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -2,3 +2,4 @@ DIST gitea-1.14.6.tar.gz 117871468 BLAKE2B 
f71ea5e6761e36bbb5d4304e606b995131967
 DIST gitea-1.14.7.tar.gz 117981989 BLAKE2B 
e3159f0a3c07511319491865ab75a4619e1c696e19e0dc6dc0ce56d0adf06f6be0658b96d65a8085694aac0fc0a5131e127b8181d789847708bc56691ad6a547
 SHA512 
023a6583f8352974df3138b8aa5e7729cef1769dff7a3a59b1a5efe66e4527296045ae10f69982592a9d932d390c60e749199e4d1fe1010b7507de5576c8abca
 DIST gitea-1.15.2.tar.gz 48648887 BLAKE2B 
5bd5800e4c967946dad918d57318831cc7a55cdeedd46e8efb74cd47940eefde1212b85f43b77f1ba443d2c09997a5dd1dd29fd9c7bbc404cf2943048e42225c
 SHA512 
47332f07882c2bef26f9417f0617801518c0448cbe84c2a70b140f38dbe18c17cfe9bb077da49536663066b8d09a566a423256430f954beafc53d746b5bfd578
 DIST gitea-1.15.3.tar.gz 48671233 BLAKE2B 
3440e02711f696fff8629e5049c44963a31375516ae8e335069970d8a9a65792c60a382444bea6d49f1048936862ff5e56b79eaa7bc1aefaafe0c080ce52cb02
 SHA512 
00bf48e8c30ee2c00465f7e29055149e68a1f2956860ca4314c7671d054e93c94024d8aed91770b1a0a50a21937bb51e42da5d9639462c21f9a56652fbfdf04e
+DIST gitea-1.15.5.tar.gz 48677702 BLAKE2B 
fe46e16041861a477cd91e66e741d35cd43264f8e8c6bfeac5a858fd4aeac9e5e92e308608d6fe74a86a69f21a7c036c8e3409aacb8e5841cbf60ae67009574a
 SHA512 
85522113f389d0a26d4f4b78c05a5454095da5f9f9a030c7392143588f985dc7711368d40194bdc6ea286f3ec15b1f9db428f1401f29aa4c46800d0431696a85

diff --git a/www-apps/gitea/gitea-1.15.5.ebuild 
b/www-apps/gitea/gitea-1.15.5.ebuild
new file mode 100644
index 000..a5eec77f603
--- /dev/null
+++ b/www-apps/gitea/gitea-1.15.5.ebuild
@@ -0,0 +1,123 @@
+# Copyright 2016-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit fcaps go-module tmpfiles systemd
+MY_PV="${PV/_rc/-rc}"
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.io;
+
+if [[ ${PV} != * ]] ; then
+   
SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz
 -> ${P}.tar.gz"
+   KEYWORDS="~amd64 ~arm ~arm64"
+   S="${WORKDIR}"
+else
+   EGIT_REPO_URI="https://github.com/go-gitea/gitea;
+   inherit git-r3
+   S="${WORKDIR}/${P}"
+fi
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+IUSE="+acct pam sqlite"
+
+COMMON_DEPEND="
+   acct? (
+   acct-group/git
+   acct-user/git[gitea] )
+   pam? ( sys-libs/pam )"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}
+   dev-vcs/git"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+QA_PRESTRIPPED="usr/bin/gitea"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+
+   einfo "Remove tests which are known to fail with network-sandbox 
enabled."
+   rm ./modules/migrations/github_test.go || die
+
+   einfo "Remove tests which depend on gitea git-repo."
+   rm ./modules/git/blob_test.go || die
+   rm ./modules/git/repo_test.go || die
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2021-10-30 Thread Sam James
commit: 9494ffb383d9681207a4e4bdc1ea27a66c337885
Author: Tomáš Mózes  gmail  com>
AuthorDate: Tue Oct 26 07:09:41 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Oct 31 02:52:20 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9494ffb3

www-apps/gitea: drop vulnerable

Signed-off-by: Tomáš Mózes  gmail.com>
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   4 --
 www-apps/gitea/gitea-1.14.6.ebuild | 128 -
 www-apps/gitea/gitea-1.14.7.ebuild | 128 -
 www-apps/gitea/gitea-1.15.2.ebuild | 123 ---
 www-apps/gitea/gitea-1.15.3.ebuild | 123 ---
 www-apps/gitea/metadata.xml|   1 -
 6 files changed, 507 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 4b82f4f45d2..6af1748c2e9 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,5 +1 @@
-DIST gitea-1.14.6.tar.gz 117871468 BLAKE2B 
f71ea5e6761e36bbb5d4304e606b99513196703773c4595fef85e1641cff179e2b58b3150de199636a504ec806fc17d8deb73cac903824502749cbcdd6f72aaa
 SHA512 
2e17994dbadc29d62f244d70550da59c1ab6818a1e5af20265405024b26fe6641bbeabb6b227f432170abd133fb3f11a2b5d9ac814ebd234729e4fcc0c4ed6d0
-DIST gitea-1.14.7.tar.gz 117981989 BLAKE2B 
e3159f0a3c07511319491865ab75a4619e1c696e19e0dc6dc0ce56d0adf06f6be0658b96d65a8085694aac0fc0a5131e127b8181d789847708bc56691ad6a547
 SHA512 
023a6583f8352974df3138b8aa5e7729cef1769dff7a3a59b1a5efe66e4527296045ae10f69982592a9d932d390c60e749199e4d1fe1010b7507de5576c8abca
-DIST gitea-1.15.2.tar.gz 48648887 BLAKE2B 
5bd5800e4c967946dad918d57318831cc7a55cdeedd46e8efb74cd47940eefde1212b85f43b77f1ba443d2c09997a5dd1dd29fd9c7bbc404cf2943048e42225c
 SHA512 
47332f07882c2bef26f9417f0617801518c0448cbe84c2a70b140f38dbe18c17cfe9bb077da49536663066b8d09a566a423256430f954beafc53d746b5bfd578
-DIST gitea-1.15.3.tar.gz 48671233 BLAKE2B 
3440e02711f696fff8629e5049c44963a31375516ae8e335069970d8a9a65792c60a382444bea6d49f1048936862ff5e56b79eaa7bc1aefaafe0c080ce52cb02
 SHA512 
00bf48e8c30ee2c00465f7e29055149e68a1f2956860ca4314c7671d054e93c94024d8aed91770b1a0a50a21937bb51e42da5d9639462c21f9a56652fbfdf04e
 DIST gitea-1.15.5.tar.gz 48677702 BLAKE2B 
fe46e16041861a477cd91e66e741d35cd43264f8e8c6bfeac5a858fd4aeac9e5e92e308608d6fe74a86a69f21a7c036c8e3409aacb8e5841cbf60ae67009574a
 SHA512 
85522113f389d0a26d4f4b78c05a5454095da5f9f9a030c7392143588f985dc7711368d40194bdc6ea286f3ec15b1f9db428f1401f29aa4c46800d0431696a85

diff --git a/www-apps/gitea/gitea-1.14.6.ebuild 
b/www-apps/gitea/gitea-1.14.6.ebuild
deleted file mode 100644
index 51099cd019a..000
--- a/www-apps/gitea/gitea-1.14.6.ebuild
+++ /dev/null
@@ -1,128 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-inherit fcaps go-module tmpfiles systemd
-MY_PV="${PV/_rc/-rc}"
-
-DESCRIPTION="A painless self-hosted Git service"
-HOMEPAGE="https://gitea.io;
-
-if [[ ${PV} != * ]] ; then
-   
SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz
 -> ${P}.tar.gz"
-   KEYWORDS="~amd64 ~arm ~arm64"
-   S="${WORKDIR}"
-else
-   EGIT_REPO_URI="https://github.com/go-gitea/gitea;
-   inherit git-r3
-   S="${WORKDIR}/${P}"
-fi
-
-LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
-SLOT="0"
-IUSE="+acct build-client pam sqlite"
-
-BDEPEND="build-client? ( >=net-libs/nodejs-10[npm] )"
-COMMON_DEPEND="
-   acct? (
-   acct-group/git
-   acct-user/git[gitea] )
-   pam? ( sys-libs/pam )"
-DEPEND="${COMMON_DEPEND}"
-RDEPEND="${COMMON_DEPEND}
-   dev-vcs/git"
-
-DOCS=(
-   custom/conf/app.example.ini CONTRIBUTING.md README.md
-)
-FILECAPS=(
-   -m 0755 cap_net_bind_service+ep usr/bin/gitea
-)
-
-RESTRICT="test"
-QA_PRESTRIPPED="usr/bin/gitea"
-
-src_prepare() {
-   default
-
-   local sedcmds=(
-   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
-   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
-   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
-   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
-   -e "s#^MODE = console#MODE = file#"
-   -e "s#^LEVEL = Trace#LEVEL = Info#"
-   -e "s#^LOG_SQL = true#LOG_SQL = false#"
-   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
-   )
-
-   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
-   if use sqlite ; then
-   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
-   fi
-
-   einfo "Remove tests which are known to fail with network-sandbox 
enabled."
-   rm ./modules/migrations/github_test.go || die
-
-   einfo "Remove tests which depend on gitea git-repo."
-   rm 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2021-10-30 Thread Sam James
commit: 5681f9cec90421b843e08f51cd8ffa127a36c669
Author: Tomáš Mózes  gmail  com>
AuthorDate: Tue Oct 26 07:10:13 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Oct 31 02:52:21 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5681f9ce

www-apps/gitea: sync live ebuild

Signed-off-by: Tomáš Mózes  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/22705
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/gitea-.ebuild | 14 --
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/www-apps/gitea/gitea-.ebuild b/www-apps/gitea/gitea-.ebuild
index 2aa2b3da3b0..a5eec77f603 100644
--- a/www-apps/gitea/gitea-.ebuild
+++ b/www-apps/gitea/gitea-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 2016-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -22,7 +22,6 @@ LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
 SLOT="0"
 IUSE="+acct pam sqlite"
 
-BDEPEND=">=net-libs/nodejs-10[npm]"
 COMMON_DEPEND="
acct? (
acct-group/git
@@ -36,7 +35,7 @@ DOCS=(
custom/conf/app.example.ini CONTRIBUTING.md README.md
 )
 FILECAPS=(
-   -m 0755 cap_net_bind_service+ep usr/bin/gitea
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
 )
 
 RESTRICT="test"
@@ -86,9 +85,7 @@ src_compile() {
)
[[ ${PV} != * ]] && makeenv+=("DRONE_TAG=${MY_PV}")
 
-   # -j1 as Makefile doesn't handle dependancy correctly, and is not
-   # useful as golang compiler don't use this info.
-   env "${makeenv[@]}" emake -j1 build
+   env "${makeenv[@]}" emake backend
 }
 
 src_install() {
@@ -118,4 +115,9 @@ src_install() {
 pkg_postinst() {
fcaps_pkg_postinst
tmpfiles_process gitea.conf
+
+   ewarn "The default JWT signing algorithm changed in 1.15.0 from HS256 
(symmetric) to"
+   ewarn "RS256 (asymmetric). Gitea OAuth2 tokens (and potentially client 
secrets) will"
+   ewarn "need to be regenerated unless you change your 
JWT_SIGNING_ALGORITHM back to HS256."
+   ewarn "For other breaking changes, see 
."
 }



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2021-09-24 Thread Sam James
commit: ccb3c36f835ad103b0fe06bd6a9ba71408425a87
Author: Tomáš Mózes  gmail  com>
AuthorDate: Fri Sep 24 09:35:36 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Sep 24 23:38:59 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccb3c36f

www-apps/gitea: bump to 1.15.3

Signed-off-by: Tomáš Mózes  gmail.com>
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.15.3.ebuild | 123 +
 2 files changed, 124 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 840cd161803..369f01dd0bb 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1,3 @@
 DIST gitea-1.14.6.tar.gz 117871468 BLAKE2B 
f71ea5e6761e36bbb5d4304e606b99513196703773c4595fef85e1641cff179e2b58b3150de199636a504ec806fc17d8deb73cac903824502749cbcdd6f72aaa
 SHA512 
2e17994dbadc29d62f244d70550da59c1ab6818a1e5af20265405024b26fe6641bbeabb6b227f432170abd133fb3f11a2b5d9ac814ebd234729e4fcc0c4ed6d0
 DIST gitea-1.15.2.tar.gz 48648887 BLAKE2B 
5bd5800e4c967946dad918d57318831cc7a55cdeedd46e8efb74cd47940eefde1212b85f43b77f1ba443d2c09997a5dd1dd29fd9c7bbc404cf2943048e42225c
 SHA512 
47332f07882c2bef26f9417f0617801518c0448cbe84c2a70b140f38dbe18c17cfe9bb077da49536663066b8d09a566a423256430f954beafc53d746b5bfd578
+DIST gitea-1.15.3.tar.gz 48671233 BLAKE2B 
3440e02711f696fff8629e5049c44963a31375516ae8e335069970d8a9a65792c60a382444bea6d49f1048936862ff5e56b79eaa7bc1aefaafe0c080ce52cb02
 SHA512 
00bf48e8c30ee2c00465f7e29055149e68a1f2956860ca4314c7671d054e93c94024d8aed91770b1a0a50a21937bb51e42da5d9639462c21f9a56652fbfdf04e

diff --git a/www-apps/gitea/gitea-1.15.3.ebuild 
b/www-apps/gitea/gitea-1.15.3.ebuild
new file mode 100644
index 000..a5eec77f603
--- /dev/null
+++ b/www-apps/gitea/gitea-1.15.3.ebuild
@@ -0,0 +1,123 @@
+# Copyright 2016-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit fcaps go-module tmpfiles systemd
+MY_PV="${PV/_rc/-rc}"
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.io;
+
+if [[ ${PV} != * ]] ; then
+   
SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz
 -> ${P}.tar.gz"
+   KEYWORDS="~amd64 ~arm ~arm64"
+   S="${WORKDIR}"
+else
+   EGIT_REPO_URI="https://github.com/go-gitea/gitea;
+   inherit git-r3
+   S="${WORKDIR}/${P}"
+fi
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+IUSE="+acct pam sqlite"
+
+COMMON_DEPEND="
+   acct? (
+   acct-group/git
+   acct-user/git[gitea] )
+   pam? ( sys-libs/pam )"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}
+   dev-vcs/git"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+QA_PRESTRIPPED="usr/bin/gitea"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+
+   einfo "Remove tests which are known to fail with network-sandbox 
enabled."
+   rm ./modules/migrations/github_test.go || die
+
+   einfo "Remove tests which depend on gitea git-repo."
+   rm ./modules/git/blob_test.go || die
+   rm ./modules/git/repo_test.go || die
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   TAGS="${gitea_tags[*]}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   )
+   [[ ${PV} != * ]] && makeenv+=("DRONE_TAG=${MY_PV}")
+
+   env "${makeenv[@]}" emake backend
+}
+
+src_install() {
+   dobin gitea
+
+   einstalldocs
+
+   newconfd "${FILESDIR}/gitea.confd-r1" gitea
+   newinitd 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2021-09-24 Thread Sam James
commit: d8eb1a2a34f3ef391302555965bdd02a014ff742
Author: Tomáš Mózes  gmail  com>
AuthorDate: Fri Sep 24 09:43:12 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Sep 24 23:39:17 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8eb1a2a

www-apps/gitea: bump to 1.14.7

Signed-off-by: Tomáš Mózes  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/22385
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.14.7.ebuild | 128 +
 2 files changed, 129 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 369f01dd0bb..402794e64d0 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,3 +1,4 @@
 DIST gitea-1.14.6.tar.gz 117871468 BLAKE2B 
f71ea5e6761e36bbb5d4304e606b99513196703773c4595fef85e1641cff179e2b58b3150de199636a504ec806fc17d8deb73cac903824502749cbcdd6f72aaa
 SHA512 
2e17994dbadc29d62f244d70550da59c1ab6818a1e5af20265405024b26fe6641bbeabb6b227f432170abd133fb3f11a2b5d9ac814ebd234729e4fcc0c4ed6d0
+DIST gitea-1.14.7.tar.gz 117981989 BLAKE2B 
e3159f0a3c07511319491865ab75a4619e1c696e19e0dc6dc0ce56d0adf06f6be0658b96d65a8085694aac0fc0a5131e127b8181d789847708bc56691ad6a547
 SHA512 
023a6583f8352974df3138b8aa5e7729cef1769dff7a3a59b1a5efe66e4527296045ae10f69982592a9d932d390c60e749199e4d1fe1010b7507de5576c8abca
 DIST gitea-1.15.2.tar.gz 48648887 BLAKE2B 
5bd5800e4c967946dad918d57318831cc7a55cdeedd46e8efb74cd47940eefde1212b85f43b77f1ba443d2c09997a5dd1dd29fd9c7bbc404cf2943048e42225c
 SHA512 
47332f07882c2bef26f9417f0617801518c0448cbe84c2a70b140f38dbe18c17cfe9bb077da49536663066b8d09a566a423256430f954beafc53d746b5bfd578
 DIST gitea-1.15.3.tar.gz 48671233 BLAKE2B 
3440e02711f696fff8629e5049c44963a31375516ae8e335069970d8a9a65792c60a382444bea6d49f1048936862ff5e56b79eaa7bc1aefaafe0c080ce52cb02
 SHA512 
00bf48e8c30ee2c00465f7e29055149e68a1f2956860ca4314c7671d054e93c94024d8aed91770b1a0a50a21937bb51e42da5d9639462c21f9a56652fbfdf04e

diff --git a/www-apps/gitea/gitea-1.14.7.ebuild 
b/www-apps/gitea/gitea-1.14.7.ebuild
new file mode 100644
index 000..51099cd019a
--- /dev/null
+++ b/www-apps/gitea/gitea-1.14.7.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit fcaps go-module tmpfiles systemd
+MY_PV="${PV/_rc/-rc}"
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.io;
+
+if [[ ${PV} != * ]] ; then
+   
SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz
 -> ${P}.tar.gz"
+   KEYWORDS="~amd64 ~arm ~arm64"
+   S="${WORKDIR}"
+else
+   EGIT_REPO_URI="https://github.com/go-gitea/gitea;
+   inherit git-r3
+   S="${WORKDIR}/${P}"
+fi
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+IUSE="+acct build-client pam sqlite"
+
+BDEPEND="build-client? ( >=net-libs/nodejs-10[npm] )"
+COMMON_DEPEND="
+   acct? (
+   acct-group/git
+   acct-user/git[gitea] )
+   pam? ( sys-libs/pam )"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}
+   dev-vcs/git"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 0755 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+QA_PRESTRIPPED="usr/bin/gitea"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+
+   einfo "Remove tests which are known to fail with network-sandbox 
enabled."
+   rm ./modules/migrations/github_test.go || die
+
+   einfo "Remove tests which depend on gitea git-repo."
+   rm ./modules/git/blob_test.go || die
+   rm ./modules/git/repo_test.go || die
+
+   # Remove already build assets (like frontend part)
+   use build-client && emake clean-all
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local gitea_settings=(
+   "-X 
code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini"
+   "-X 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2021-09-24 Thread Joonas Niilola
commit: db88b1580e3c7c19afc9b0045d860665736d30a0
Author: Ronny (tastytea) Gutbrod  tastytea  de>
AuthorDate: Sun Aug 22 12:03:26 2021 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Fri Sep 24 07:51:14 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db88b158

www-apps/gitea: Version bump 1.15.2.

Remove build-client useflag, because it does not work with sandbox.

Bug: https://bugs.gentoo.org/809581
Signed-off-by: Ronny (tastytea) Gutbrod  tastytea.de>
Closes: https://github.com/gentoo/gentoo/pull/22073
Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.15.2.ebuild | 123 +
 2 files changed, 124 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 8fba9fa6873..840cd161803 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1 +1,2 @@
 DIST gitea-1.14.6.tar.gz 117871468 BLAKE2B 
f71ea5e6761e36bbb5d4304e606b99513196703773c4595fef85e1641cff179e2b58b3150de199636a504ec806fc17d8deb73cac903824502749cbcdd6f72aaa
 SHA512 
2e17994dbadc29d62f244d70550da59c1ab6818a1e5af20265405024b26fe6641bbeabb6b227f432170abd133fb3f11a2b5d9ac814ebd234729e4fcc0c4ed6d0
+DIST gitea-1.15.2.tar.gz 48648887 BLAKE2B 
5bd5800e4c967946dad918d57318831cc7a55cdeedd46e8efb74cd47940eefde1212b85f43b77f1ba443d2c09997a5dd1dd29fd9c7bbc404cf2943048e42225c
 SHA512 
47332f07882c2bef26f9417f0617801518c0448cbe84c2a70b140f38dbe18c17cfe9bb077da49536663066b8d09a566a423256430f954beafc53d746b5bfd578

diff --git a/www-apps/gitea/gitea-1.15.2.ebuild 
b/www-apps/gitea/gitea-1.15.2.ebuild
new file mode 100644
index 000..a5eec77f603
--- /dev/null
+++ b/www-apps/gitea/gitea-1.15.2.ebuild
@@ -0,0 +1,123 @@
+# Copyright 2016-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit fcaps go-module tmpfiles systemd
+MY_PV="${PV/_rc/-rc}"
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.io;
+
+if [[ ${PV} != * ]] ; then
+   
SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz
 -> ${P}.tar.gz"
+   KEYWORDS="~amd64 ~arm ~arm64"
+   S="${WORKDIR}"
+else
+   EGIT_REPO_URI="https://github.com/go-gitea/gitea;
+   inherit git-r3
+   S="${WORKDIR}/${P}"
+fi
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+IUSE="+acct pam sqlite"
+
+COMMON_DEPEND="
+   acct? (
+   acct-group/git
+   acct-user/git[gitea] )
+   pam? ( sys-libs/pam )"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}
+   dev-vcs/git"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   -m 711 cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+QA_PRESTRIPPED="usr/bin/gitea"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+
+   einfo "Remove tests which are known to fail with network-sandbox 
enabled."
+   rm ./modules/migrations/github_test.go || die
+
+   einfo "Remove tests which depend on gitea git-repo."
+   rm ./modules/git/blob_test.go || die
+   rm ./modules/git/repo_test.go || die
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   TAGS="${gitea_tags[*]}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   )
+   [[ ${PV} != * ]] && makeenv+=("DRONE_TAG=${MY_PV}")
+
+   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 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2021-09-01 Thread William Hubbs
commit: 3826a6b790f1c329474ca3eb2da4a44a81dd43d9
Author: William Hubbs  gentoo  org>
AuthorDate: Wed Sep  1 16:12:21 2021 +
Commit: William Hubbs  gentoo  org>
CommitDate: Wed Sep  1 16:40:54 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3826a6b7

www-apps/gitea: drop calls to go-module_pkg_postinst

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: William Hubbs  gentoo.org>

 www-apps/gitea/gitea-1.14.6.ebuild | 1 -
 www-apps/gitea/gitea-.ebuild   | 1 -
 2 files changed, 2 deletions(-)

diff --git a/www-apps/gitea/gitea-1.14.6.ebuild 
b/www-apps/gitea/gitea-1.14.6.ebuild
index 1d1bb8c1ca9..51099cd019a 100644
--- a/www-apps/gitea/gitea-1.14.6.ebuild
+++ b/www-apps/gitea/gitea-1.14.6.ebuild
@@ -124,6 +124,5 @@ src_install() {
 
 pkg_postinst() {
fcaps_pkg_postinst
-   go-module_pkg_postinst
tmpfiles_process gitea.conf
 }

diff --git a/www-apps/gitea/gitea-.ebuild b/www-apps/gitea/gitea-.ebuild
index aaa0a559fed..2aa2b3da3b0 100644
--- a/www-apps/gitea/gitea-.ebuild
+++ b/www-apps/gitea/gitea-.ebuild
@@ -117,6 +117,5 @@ src_install() {
 
 pkg_postinst() {
fcaps_pkg_postinst
-   go-module_pkg_postinst
tmpfiles_process gitea.conf
 }



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2021-08-30 Thread Mike Gilbert
commit: e798e0e9c7a13b2004cb492901a8e2873388cbe9
Author: Mike Gilbert  gentoo  org>
AuthorDate: Mon Aug 30 15:05:55 2021 +
Commit: Mike Gilbert  gentoo  org>
CommitDate: Mon Aug 30 15:05:55 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e798e0e9

www-apps/gitea: set non-caps mode to 0755

Running a web application as root is insane.

Bug: https://bugs.gentoo.org/811105
Signed-off-by: Mike Gilbert  gentoo.org>

 www-apps/gitea/gitea-1.14.6.ebuild | 2 +-
 www-apps/gitea/gitea-.ebuild   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/www-apps/gitea/gitea-1.14.6.ebuild 
b/www-apps/gitea/gitea-1.14.6.ebuild
index c1bc0be80fa..1d1bb8c1ca9 100644
--- a/www-apps/gitea/gitea-1.14.6.ebuild
+++ b/www-apps/gitea/gitea-1.14.6.ebuild
@@ -36,7 +36,7 @@ DOCS=(
custom/conf/app.example.ini CONTRIBUTING.md README.md
 )
 FILECAPS=(
-   cap_net_bind_service+ep usr/bin/gitea
+   -m 0755 cap_net_bind_service+ep usr/bin/gitea
 )
 
 RESTRICT="test"

diff --git a/www-apps/gitea/gitea-.ebuild b/www-apps/gitea/gitea-.ebuild
index 6a4eaea9959..aaa0a559fed 100644
--- a/www-apps/gitea/gitea-.ebuild
+++ b/www-apps/gitea/gitea-.ebuild
@@ -36,7 +36,7 @@ DOCS=(
custom/conf/app.example.ini CONTRIBUTING.md README.md
 )
 FILECAPS=(
-   cap_net_bind_service+ep usr/bin/gitea
+   -m 0755 cap_net_bind_service+ep usr/bin/gitea
 )
 
 RESTRICT="test"



[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2021-08-10 Thread Joonas Niilola
commit: da55a929ec3d84976280c66ab83ce1124fa1dde3
Author: Pierre-Olivier Mercier  nemunai  re>
AuthorDate: Fri Aug  6 21:20:25 2021 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Tue Aug 10 13:37:38 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da55a929

www-apps/gitea: bump to 1.14.6

Closes: https://bugs.gentoo.org/799287
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Pierre-Olivier Mercier  nemunai.re>
Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.14.6.ebuild | 129 +
 2 files changed, 130 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 56b6dfcf5f4..94926271791 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1 +1,2 @@
 DIST gitea-1.14.2.tar.gz 117884130 BLAKE2B 
75ae36ade602bcbdcc59cd3f75f60ab5fbde713399b1d8b83f29b2bee044c9a5dc83fbae8f372f62c991edeef7237a5a96a9f6b4cda0ae1db93d6596377e1a98
 SHA512 
073ff6d718522c1b8d2746379d6d0051dd18db89331604c1cc252bcedbad04e75a1f402bdd37fea05d21e6b5d24f43ebf9e70748f8522996fdf8eb133d2a3e38
+DIST gitea-1.14.6.tar.gz 117871468 BLAKE2B 
f71ea5e6761e36bbb5d4304e606b99513196703773c4595fef85e1641cff179e2b58b3150de199636a504ec806fc17d8deb73cac903824502749cbcdd6f72aaa
 SHA512 
2e17994dbadc29d62f244d70550da59c1ab6818a1e5af20265405024b26fe6641bbeabb6b227f432170abd133fb3f11a2b5d9ac814ebd234729e4fcc0c4ed6d0

diff --git a/www-apps/gitea/gitea-1.14.6.ebuild 
b/www-apps/gitea/gitea-1.14.6.ebuild
new file mode 100644
index 000..c1bc0be80fa
--- /dev/null
+++ b/www-apps/gitea/gitea-1.14.6.ebuild
@@ -0,0 +1,129 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit fcaps go-module tmpfiles systemd
+MY_PV="${PV/_rc/-rc}"
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.io;
+
+if [[ ${PV} != * ]] ; then
+   
SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz
 -> ${P}.tar.gz"
+   KEYWORDS="~amd64 ~arm ~arm64"
+   S="${WORKDIR}"
+else
+   EGIT_REPO_URI="https://github.com/go-gitea/gitea;
+   inherit git-r3
+   S="${WORKDIR}/${P}"
+fi
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+IUSE="+acct build-client pam sqlite"
+
+BDEPEND="build-client? ( >=net-libs/nodejs-10[npm] )"
+COMMON_DEPEND="
+   acct? (
+   acct-group/git
+   acct-user/git[gitea] )
+   pam? ( sys-libs/pam )"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}
+   dev-vcs/git"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+QA_PRESTRIPPED="usr/bin/gitea"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+
+   einfo "Remove tests which are known to fail with network-sandbox 
enabled."
+   rm ./modules/migrations/github_test.go || die
+
+   einfo "Remove tests which depend on gitea git-repo."
+   rm ./modules/git/blob_test.go || die
+   rm ./modules/git/repo_test.go || die
+
+   # Remove already build assets (like frontend part)
+   use build-client && emake clean-all
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   TAGS="${gitea_tags[*]}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   )
+   [[ ${PV} != * ]] && makeenv+=("DRONE_TAG=${MY_PV}")
+
+   if use build-client; then
+   # -j1 as Makefile doesn't handle dependancy correctly, and is 
not
+   # useful as golang compiler don't use this info.
+   env 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2021-08-10 Thread Joonas Niilola
commit: dc2e02a69b65d1e83adef4bcb4c465975a088db1
Author: Pierre-Olivier Mercier  nemunai  re>
AuthorDate: Fri Aug  6 21:30:06 2021 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Tue Aug 10 13:37:39 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc2e02a6

www-apps/gitea: drop to maintainer-needed

Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Pierre-Olivier Mercier  nemunai.re>
Closes: https://github.com/gentoo/gentoo/pull/21484
Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/metadata.xml | 9 +
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/www-apps/gitea/metadata.xml b/www-apps/gitea/metadata.xml
index 5066856c1a4..06999cac233 100644
--- a/www-apps/gitea/metadata.xml
+++ b/www-apps/gitea/metadata.xml
@@ -1,14 +1,7 @@
 
 http://www.gentoo.org/dtd/metadata.dtd;>
 
-   
-   nemuna...@nemunai.re
-   Pierre-Olivier Mercier
-   
-   
-   proxy-ma...@gentoo.org
-   Proxy Maintainers
-   
+   

go-gitea/gitea




[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2021-08-10 Thread Joonas Niilola
commit: 790a6703701f9d735153da35b1d93570f0a36697
Author: Pierre-Olivier Mercier  nemunai  re>
AuthorDate: Fri Aug  6 21:23:21 2021 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Tue Aug 10 13:37:39 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=790a6703

www-apps/gitea: Drop old

Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Pierre-Olivier Mercier  nemunai.re>
Signed-off-by: Joonas Niilola  gentoo.org>

 www-apps/gitea/Manifest|   1 -
 www-apps/gitea/gitea-1.14.2.ebuild | 129 -
 2 files changed, 130 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 94926271791..8fba9fa6873 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1 @@
-DIST gitea-1.14.2.tar.gz 117884130 BLAKE2B 
75ae36ade602bcbdcc59cd3f75f60ab5fbde713399b1d8b83f29b2bee044c9a5dc83fbae8f372f62c991edeef7237a5a96a9f6b4cda0ae1db93d6596377e1a98
 SHA512 
073ff6d718522c1b8d2746379d6d0051dd18db89331604c1cc252bcedbad04e75a1f402bdd37fea05d21e6b5d24f43ebf9e70748f8522996fdf8eb133d2a3e38
 DIST gitea-1.14.6.tar.gz 117871468 BLAKE2B 
f71ea5e6761e36bbb5d4304e606b99513196703773c4595fef85e1641cff179e2b58b3150de199636a504ec806fc17d8deb73cac903824502749cbcdd6f72aaa
 SHA512 
2e17994dbadc29d62f244d70550da59c1ab6818a1e5af20265405024b26fe6641bbeabb6b227f432170abd133fb3f11a2b5d9ac814ebd234729e4fcc0c4ed6d0

diff --git a/www-apps/gitea/gitea-1.14.2.ebuild 
b/www-apps/gitea/gitea-1.14.2.ebuild
deleted file mode 100644
index c1bc0be80fa..000
--- a/www-apps/gitea/gitea-1.14.2.ebuild
+++ /dev/null
@@ -1,129 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-inherit fcaps go-module tmpfiles systemd
-MY_PV="${PV/_rc/-rc}"
-
-DESCRIPTION="A painless self-hosted Git service"
-HOMEPAGE="https://gitea.io;
-
-if [[ ${PV} != * ]] ; then
-   
SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz
 -> ${P}.tar.gz"
-   KEYWORDS="~amd64 ~arm ~arm64"
-   S="${WORKDIR}"
-else
-   EGIT_REPO_URI="https://github.com/go-gitea/gitea;
-   inherit git-r3
-   S="${WORKDIR}/${P}"
-fi
-
-LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
-SLOT="0"
-IUSE="+acct build-client pam sqlite"
-
-BDEPEND="build-client? ( >=net-libs/nodejs-10[npm] )"
-COMMON_DEPEND="
-   acct? (
-   acct-group/git
-   acct-user/git[gitea] )
-   pam? ( sys-libs/pam )"
-DEPEND="${COMMON_DEPEND}"
-RDEPEND="${COMMON_DEPEND}
-   dev-vcs/git"
-
-DOCS=(
-   custom/conf/app.example.ini CONTRIBUTING.md README.md
-)
-FILECAPS=(
-   cap_net_bind_service+ep usr/bin/gitea
-)
-
-RESTRICT="test"
-QA_PRESTRIPPED="usr/bin/gitea"
-
-src_prepare() {
-   default
-
-   local sedcmds=(
-   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
-   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
-   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
-   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
-   -e "s#^MODE = console#MODE = file#"
-   -e "s#^LEVEL = Trace#LEVEL = Info#"
-   -e "s#^LOG_SQL = true#LOG_SQL = false#"
-   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
-   )
-
-   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
-   if use sqlite ; then
-   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
-   fi
-
-   einfo "Remove tests which are known to fail with network-sandbox 
enabled."
-   rm ./modules/migrations/github_test.go || die
-
-   einfo "Remove tests which depend on gitea git-repo."
-   rm ./modules/git/blob_test.go || die
-   rm ./modules/git/repo_test.go || die
-
-   # Remove already build assets (like frontend part)
-   use build-client && emake clean-all
-}
-
-src_compile() {
-   local gitea_tags=(
-   bindata
-   $(usev pam)
-   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
-   )
-   local 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"
-   )
-   local makeenv=(
-   TAGS="${gitea_tags[*]}"
-   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
-   )
-   [[ ${PV} != * ]] && makeenv+=("DRONE_TAG=${MY_PV}")
-
-   if use build-client; then
-   # -j1 as Makefile doesn't handle dependancy correctly, and is 
not
-   # useful as golang compiler don't use this info.
-   env "${makeenv[@]}" emake -j1 build
-   

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/

2021-06-21 Thread Sam James
commit: 4fcd1fc9344836f9f0ec0a0ab622a7cf976c1c90
Author: Pierre-Olivier Mercier  nemunai  re>
AuthorDate: Thu Jun  3 07:00:05 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jun 21 22:30:01 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fcd1fc9

www-apps/gitea: bump to 1.14.2

Closes: https://bugs.gentoo.org/793980
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Pierre-Olivier Mercier  nemunai.re>
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest|   1 +
 www-apps/gitea/gitea-1.14.2.ebuild | 129 +
 2 files changed, 130 insertions(+)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 4252ea1af19..719f20e2bf5 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1 +1,2 @@
 DIST gitea-1.13.7.tar.gz 151035143 BLAKE2B 
349018a127337251d55e8681c6c509e195905b978711f60a031b5cb55c1cc6fe5c1312eaef6c3343c3a963b748adf3ef88b6b35176279f517c946f74532f2fcd
 SHA512 
018948d4d40f41c01bc8d9fd74b1d170a8cd7a82402913ee1d11dc283a4946971f76356640213d79877160c29b58b9c393a7d761da695545939db50a3f137f7e
+DIST gitea-1.14.2.tar.gz 117884130 BLAKE2B 
75ae36ade602bcbdcc59cd3f75f60ab5fbde713399b1d8b83f29b2bee044c9a5dc83fbae8f372f62c991edeef7237a5a96a9f6b4cda0ae1db93d6596377e1a98
 SHA512 
073ff6d718522c1b8d2746379d6d0051dd18db89331604c1cc252bcedbad04e75a1f402bdd37fea05d21e6b5d24f43ebf9e70748f8522996fdf8eb133d2a3e38

diff --git a/www-apps/gitea/gitea-1.14.2.ebuild 
b/www-apps/gitea/gitea-1.14.2.ebuild
new file mode 100644
index 000..c1bc0be80fa
--- /dev/null
+++ b/www-apps/gitea/gitea-1.14.2.ebuild
@@ -0,0 +1,129 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit fcaps go-module tmpfiles systemd
+MY_PV="${PV/_rc/-rc}"
+
+DESCRIPTION="A painless self-hosted Git service"
+HOMEPAGE="https://gitea.io;
+
+if [[ ${PV} != * ]] ; then
+   
SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz
 -> ${P}.tar.gz"
+   KEYWORDS="~amd64 ~arm ~arm64"
+   S="${WORKDIR}"
+else
+   EGIT_REPO_URI="https://github.com/go-gitea/gitea;
+   inherit git-r3
+   S="${WORKDIR}/${P}"
+fi
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+IUSE="+acct build-client pam sqlite"
+
+BDEPEND="build-client? ( >=net-libs/nodejs-10[npm] )"
+COMMON_DEPEND="
+   acct? (
+   acct-group/git
+   acct-user/git[gitea] )
+   pam? ( sys-libs/pam )"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}
+   dev-vcs/git"
+
+DOCS=(
+   custom/conf/app.example.ini CONTRIBUTING.md README.md
+)
+FILECAPS=(
+   cap_net_bind_service+ep usr/bin/gitea
+)
+
+RESTRICT="test"
+QA_PRESTRIPPED="usr/bin/gitea"
+
+src_prepare() {
+   default
+
+   local sedcmds=(
+   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
+   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
+   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
+   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
+   -e "s#^MODE = console#MODE = file#"
+   -e "s#^LEVEL = Trace#LEVEL = Info#"
+   -e "s#^LOG_SQL = true#LOG_SQL = false#"
+   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
+   )
+
+   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
+   if use sqlite ; then
+   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
+   fi
+
+   einfo "Remove tests which are known to fail with network-sandbox 
enabled."
+   rm ./modules/migrations/github_test.go || die
+
+   einfo "Remove tests which depend on gitea git-repo."
+   rm ./modules/git/blob_test.go || die
+   rm ./modules/git/repo_test.go || die
+
+   # Remove already build assets (like frontend part)
+   use build-client && emake clean-all
+}
+
+src_compile() {
+   local gitea_tags=(
+   bindata
+   $(usev pam)
+   $(usex sqlite 'sqlite sqlite_unlock_notify' '')
+   )
+   local 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"
+   )
+   local makeenv=(
+   TAGS="${gitea_tags[*]}"
+   LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
+   )
+   [[ ${PV} != * ]] && makeenv+=("DRONE_TAG=${MY_PV}")
+
+   if use build-client; then
+   # -j1 as Makefile doesn't handle dependancy correctly, and is 
not
+   # useful as golang compiler don't use this info.
+   env 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/, www-apps/gitea/files/

2021-06-21 Thread Sam James
commit: 0226cb38b5d333022568ee6db0ece783bce678f9
Author: Pierre-Olivier Mercier  nemunai  re>
AuthorDate: Thu Jun  3 07:11:55 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jun 21 22:30:02 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0226cb38

www-apps/gitea: drop old

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Pierre-Olivier Mercier  nemunai.re>
Closes: https://github.com/gentoo/gentoo/pull/21099
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/Manifest   |   1 -
 www-apps/gitea/files/gitea.service-r2 |  34 -
 www-apps/gitea/gitea-1.13.7.ebuild| 129 --
 3 files changed, 164 deletions(-)

diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index 719f20e2bf5..56b6dfcf5f4 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -1,2 +1 @@
-DIST gitea-1.13.7.tar.gz 151035143 BLAKE2B 
349018a127337251d55e8681c6c509e195905b978711f60a031b5cb55c1cc6fe5c1312eaef6c3343c3a963b748adf3ef88b6b35176279f517c946f74532f2fcd
 SHA512 
018948d4d40f41c01bc8d9fd74b1d170a8cd7a82402913ee1d11dc283a4946971f76356640213d79877160c29b58b9c393a7d761da695545939db50a3f137f7e
 DIST gitea-1.14.2.tar.gz 117884130 BLAKE2B 
75ae36ade602bcbdcc59cd3f75f60ab5fbde713399b1d8b83f29b2bee044c9a5dc83fbae8f372f62c991edeef7237a5a96a9f6b4cda0ae1db93d6596377e1a98
 SHA512 
073ff6d718522c1b8d2746379d6d0051dd18db89331604c1cc252bcedbad04e75a1f402bdd37fea05d21e6b5d24f43ebf9e70748f8522996fdf8eb133d2a3e38

diff --git a/www-apps/gitea/files/gitea.service-r2 
b/www-apps/gitea/files/gitea.service-r2
deleted file mode 100644
index 1931b46c73c..000
--- a/www-apps/gitea/files/gitea.service-r2
+++ /dev/null
@@ -1,34 +0,0 @@
-[Unit]
-Description=Gitea service
-Documentation=https://docs.gitea.io/
-
-AssertPathIsDirectory=/var/lib/gitea
-AssertPathIsReadWrite=/var/lib/gitea
-
-After=network.target
-Requires=network.target
-After=mysqld.service
-After=postgresql-9.3.service
-After=postgresql-9.4.service
-After=postgresql-9.5.service
-After=postgresql-9.6.service
-After=postgresql-10.service
-After=postgresql-11.service
-After=postgresql-12.service
-After=memcached.service
-After=redis.service
-
-[Service]
-User=git
-Group=git
-
-Environment="GITEA_WORK_DIR=/var/lib/gitea" 
"GITEA_CUSTOM=/var/lib/gitea/custom"
-WorkingDirectory=/var/lib/gitea
-ExecStart=/usr/bin/gitea web --config /etc/gitea/app.ini
-
-Restart=always
-PrivateTmp=true
-Nice=5
-
-[Install]
-WantedBy=multi-user.target

diff --git a/www-apps/gitea/gitea-1.13.7.ebuild 
b/www-apps/gitea/gitea-1.13.7.ebuild
deleted file mode 100644
index a68755728ea..000
--- a/www-apps/gitea/gitea-1.13.7.ebuild
+++ /dev/null
@@ -1,129 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-inherit fcaps go-module tmpfiles systemd
-MY_PV="${PV/_rc/-rc}"
-
-DESCRIPTION="A painless self-hosted Git service"
-HOMEPAGE="https://gitea.io;
-
-if [[ ${PV} != * ]] ; then
-   
SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz
 -> ${P}.tar.gz"
-   KEYWORDS="~amd64 ~arm ~arm64"
-   S="${WORKDIR}"
-else
-   EGIT_REPO_URI="https://github.com/go-gitea/gitea;
-   inherit git-r3
-   S="${WORKDIR}/${P}"
-fi
-
-LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
-SLOT="0"
-IUSE="+acct build-client pam sqlite"
-
-BDEPEND="build-client? ( >=net-libs/nodejs-10[npm] )"
-COMMON_DEPEND="
-   acct? (
-   acct-group/git
-   acct-user/git[gitea] )
-   pam? ( sys-libs/pam )"
-DEPEND="${COMMON_DEPEND}"
-RDEPEND="${COMMON_DEPEND}
-   dev-vcs/git"
-
-DOCS=(
-   custom/conf/app.example.ini CONTRIBUTING.md README.md
-)
-FILECAPS=(
-   cap_net_bind_service+ep usr/bin/gitea
-)
-
-RESTRICT="test"
-QA_PRESTRIPPED="usr/bin/gitea"
-
-src_prepare() {
-   default
-
-   local sedcmds=(
-   -e "s#^ROOT =#ROOT = 
${EPREFIX}/var/lib/gitea/gitea-repositories#"
-   -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"
-   -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = 
${EPREFIX}/var/lib/gitea/data#"
-   -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
-   -e "s#^MODE = console#MODE = file#"
-   -e "s#^LEVEL = Trace#LEVEL = Info#"
-   -e "s#^LOG_SQL = true#LOG_SQL = false#"
-   -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
-   )
-
-   sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
-   if use sqlite ; then
-   sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" 
custom/conf/app.example.ini || die
-   fi
-
-   einfo "Remove tests which are known to fail with network-sandbox 
enabled."
-   rm ./modules/migrations/github_test.go || die
-
-   einfo "Remove tests which depend on gitea git-repo."
-   rm ./modules/git/blob_test.go || die
-   rm 

[gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/, www-apps/gitea/files/

2021-06-21 Thread Sam James
commit: 414ae1cb1a4f9159bc0af30d9e106655f900c8ae
Author: Pierre-Olivier Mercier  nemunai  re>
AuthorDate: Thu Jun  3 06:55:35 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jun 21 22:30:01 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=414ae1cb

www-apps/gitea: update service file for newer postgresql

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Pierre-Olivier Mercier  nemunai.re>
Signed-off-by: Sam James  gentoo.org>

 www-apps/gitea/files/gitea.service-r3 | 34 ++
 www-apps/gitea/gitea-.ebuild  |  4 ++--
 2 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/www-apps/gitea/files/gitea.service-r3 
b/www-apps/gitea/files/gitea.service-r3
new file mode 100644
index 000..0867ba63782
--- /dev/null
+++ b/www-apps/gitea/files/gitea.service-r3
@@ -0,0 +1,34 @@
+[Unit]
+Description=Gitea service
+Documentation=https://docs.gitea.io/
+
+AssertPathIsDirectory=/var/lib/gitea
+AssertPathIsReadWrite=/var/lib/gitea
+
+After=network.target
+Requires=network.target
+After=mysqld.service
+After=postgresql-9.5.service
+After=postgresql-9.6.service
+After=postgresql-10.service
+After=postgresql-11.service
+After=postgresql-12.service
+After=postgresql-13.service
+After=postgresql-14.service
+After=memcached.service
+After=redis.service
+
+[Service]
+User=git
+Group=git
+
+Environment="GITEA_WORK_DIR=/var/lib/gitea" 
"GITEA_CUSTOM=/var/lib/gitea/custom"
+WorkingDirectory=/var/lib/gitea
+ExecStart=/usr/bin/gitea web --config /etc/gitea/app.ini
+
+Restart=always
+PrivateTmp=true
+Nice=5
+
+[Install]
+WantedBy=multi-user.target

diff --git a/www-apps/gitea/gitea-.ebuild b/www-apps/gitea/gitea-.ebuild
index b975338d0ff..6a4eaea9959 100644
--- a/www-apps/gitea/gitea-.ebuild
+++ b/www-apps/gitea/gitea-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -101,7 +101,7 @@ src_install() {
newtmpfiles - gitea.conf <<-EOF
d /run/gitea 0755 git git
EOF
-   systemd_newunit "${FILESDIR}"/gitea.service-r2 gitea.service
+   systemd_newunit "${FILESDIR}"/gitea.service-r3 gitea.service
 
insinto /etc/gitea
newins custom/conf/app.example.ini app.ini



  1   2   >