www-apps/gitea: Version bump 1.12.3.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
0373b027b1
commit
f9a5c3fa94
|
@ -1,11 +1,15 @@
|
|||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA512
|
||||
|
||||
AUX 1.12-fix-vendoring.patch 430 BLAKE2B 897214736e27f49023c8de9da5e7caa3612947f381d10e1bfd9fca2a6f4cfdcefb7fd6a70fb972e9db1c8a84deb592f585d0c6beda66b551b6e65cdce33e73d6 SHA512 9b2678c373dfb18e53be53b99e2cebdb656f777f850c6f9b67e29d52011edc320fb7d14045fef08b0b3b70959784070264f1cdfae70937097977b2865c8c71b5
|
||||
AUX gitea.confd 243 BLAKE2B 87caa8371f53f52b0a85f720342f9f358dedec9240ab78998655a03df6bf3f301fe077afabdca1b1895dbcab2fa05748735d6f38f9b3ad53534fe8ae6e72db49 SHA512 485dc9d0b86d0a7b3ba958aac9de1129aa0ffbb47219419d38811f2accca2539e49dd93cc4a24b21f1c3802b024aa8449f54e320e8a16197f201532edeca6836
|
||||
AUX gitea.confd-r1 243 BLAKE2B 87caa8371f53f52b0a85f720342f9f358dedec9240ab78998655a03df6bf3f301fe077afabdca1b1895dbcab2fa05748735d6f38f9b3ad53534fe8ae6e72db49 SHA512 485dc9d0b86d0a7b3ba958aac9de1129aa0ffbb47219419d38811f2accca2539e49dd93cc4a24b21f1c3802b024aa8449f54e320e8a16197f201532edeca6836
|
||||
AUX gitea.initd 802 BLAKE2B 2e33e95f7d2762986184d45b0bbb250cc5e04fffc4e4b006233b28e5b57be69eef1d83441adebe2b94681585edaf77f9da4eb97930f91e75c1b1a5cd8d137633 SHA512 5ff2e653180a0601734fcd055dfffdfdc12363736ed2e56c8576c802398b90f4025b44002cbb9a3fd1e0c2d4c169f62d460381c6c549746d3390e55fc1c677d1
|
||||
AUX gitea.initd-r3 802 BLAKE2B 2e33e95f7d2762986184d45b0bbb250cc5e04fffc4e4b006233b28e5b57be69eef1d83441adebe2b94681585edaf77f9da4eb97930f91e75c1b1a5cd8d137633 SHA512 5ff2e653180a0601734fcd055dfffdfdc12363736ed2e56c8576c802398b90f4025b44002cbb9a3fd1e0c2d4c169f62d460381c6c549746d3390e55fc1c677d1
|
||||
AUX gitea.service 734 BLAKE2B 84825b8198e9495e2803ca3702e6a631fb269c5c8fb4ff4246465a5bd7f7d796b0c3eaea72d0a25cef4f5d38d27a6c99a1b6d41f489749bef322a4ac93cfdd12 SHA512 287670f196bf6353dbdeb6ac37b4ac73693e16a6a3a83f57e7179ccb64364d1d85950a2ddd0a77238a3d218afdaacc8ba849c2810a7ba1238c7277074d1ebe39
|
||||
DIST gitea-1.10.6.tar.gz 30147860 BLAKE2B e41e226be820eb0a436783f49bf90a1149eef4e0dde00edc09bc76bb086ea53ff2856563e31ab261e1529a03753785e04c1fe8a02f72eef01a6de173df82098d SHA512 be64f73eb0819c28e444b9dae8d4baecd910aad790efeb515a981542125679257f48a5f4ab1c8453b5372a0c8b1e9b84275e61c89dcd2137d7f7cfe8c71f917b
|
||||
DIST gitea-1.11.5.tar.gz 68923871 BLAKE2B 99e189b4a95e9ef6079a5e8455c05209da742499ff1b18e9f5edab2620ff8deb64ca3b7cb59d456b6fe25558602be8e1f8376ec234229c6af7baf24cc6d15023 SHA512 b12bfb2fc13bd0ca5799d52c37b5d2988879041892aa1e160546f7c80e2faef086f76cd753de90f2468fe9f87af6eca64ca21df394db160fc347137fc9a0fd52
|
||||
DIST gitea-1.12.3.tar.gz 135139930 BLAKE2B 254f8421412958639aa5a8044fb1a4b9e47fa7231e26d45fdbb3aa2b34b8b9b89ecbf0b4fbae437246ccf7798c61bf62fded945013164995180eed4aedfc00cf SHA512 cc9e9275100389dd12c7b57a1f587a0d75d85faf73291abd0f2cd4d6ea22e776b4d55eafef904b20fddd7333642a32de8464e8c14b2c108fb914bbd62080a62c
|
||||
DIST gitea_confused.png 592 BLAKE2B 3448c5adb83355328065d070c1ab29cd41dbe76b160a43ad7452ed45603e4ce2df199d91a8b638f68e92db74f7df16ea69d82a2840ab0b3db0c580c4c5907ae3 SHA512 45628ead58472cd799b3040c3e3a1fc0de1ac467e284589c24e1e946fe408250afccc69650f07647a0a03d67f620fbee2c5e93396b00e1f1a5c6ca08b038d7f4
|
||||
DIST gitea_heart.png 498 BLAKE2B 50b76b8303b2ab9a464c8cb5c4daf2027078bc34df7ba763634e6e7b19e566454596a0c70bdac0c5422a44fa9d43f0a6ff5ce8330c2c59169690e1f537ee0586 SHA512 fe79aed4dc86d534a4ccf8156a29616cdba025b5ac1dcd3f4e190ca31a391ed85f87646b1562d2e9f1774afb51531575b9e53c74b0f2b3c141e416424f887fcb
|
||||
DIST gitea_laughing.png 904 BLAKE2B 79ec681f5a302d7c679a0c2f3b7fec8657f08789a42d7bfd4d35edb744d471ceeb10436f784e664ae74de8dd8bdf1253b912bbecd68e667324a5b970ac2cba6c SHA512 dcd658a61c1ee63b752d343bb56cff23594fd57bdb340cfa3f8cc1cf761311a81e61ff015b7df91fe45294c75da2be58280f76e9258dd63920d8e3aa54945fd1
|
||||
|
@ -14,11 +18,12 @@ DIST gitea_thumbsdown.png 786 BLAKE2B 0ee2b9bd3d8e655cf3bc6ba7426f1c219c08716dcb
|
|||
DIST gitea_thumbsup.png 778 BLAKE2B 1457327be43b7d0dbcb10dfbb043c11c1ed02536c2215f3b3931402711fa97642d265dcafc5353c05c499459d3c0ee5aeafff50cec108b14932b10ea755db4c8 SHA512 e3ab812f9d4c0cccd05feb12958a93aec0dec90ae393f4bdb28cbc30d88d2daebb46534f2879f8a445bacb997cac01eb3193355835535f277a3cd34391449a0e
|
||||
EBUILD gitea-1.10.6.ebuild 4845 BLAKE2B 0b39911fec02db4831d587761ac4889ce2f13567d39ff0531032a3b656405738c0feb4fbd9df31b63b19ef3bf186f03cd1de067a2bc0205fac63b3faf7e28b48 SHA512 486e59f37f02b30ea65782dfde7a687fd8d0040afb8fba9602ab4fc9093cbc99e628a1619fbd5ce4f8fdd57f02c5c54a375f6d7c89b324c877371f47a8e9a7f0
|
||||
EBUILD gitea-1.11.5.ebuild 4114 BLAKE2B c84bbb90738989afb893315b53690ef473352ff847da7f45a5fd0ec704bc50f52e831d393013666aa964f5c0f9a4b51f948a38740400905c521be0e5ba2a294e SHA512 472d1177720e1907a00b5909b693cfa52d1ea709f08bbe274843ee425fcfd2cab9490e0909f7f928c8c6a58bb482ac62080f1f0b86cc5f0c3669e3a83c8469f7
|
||||
MISC metadata.xml 396 BLAKE2B 5c5f4be1243c0129dd8164e5d9a3c199fb4cf8261cbd6e5fa4b4b929c6571c3941603db11288dc7ad6bfd5ec328669b4b657ca2976f0d70ce8bf9b0179e29741 SHA512 6eed1e3e70a0cabeb6ca2969e603938d58cda7131007a14c965f13b868acca431d1b96b6e498fe5c0616db1558ef941ab565b80a9ee73dceca55293bab70cb44
|
||||
EBUILD gitea-1.12.3.ebuild 3594 BLAKE2B 2c595ea8135be022e2a7cd99f663a0635e4256227eacc489a2404a1d602dae7bcf7ed0e3f36e3fb9c33a84e9210091cc79f24e62bbcda159e68809c95729976d SHA512 406ccf4c3ed865b3680b5a1ea917b58981a511ccce6056e46d0fbb687a3d9ead158c819857dd6ceccb37cc8e7994d5a18fcc6d8918dea41d6a5b25de8f450f5b
|
||||
MISC metadata.xml 587 BLAKE2B df7ebd648e64b98bbb9d8b4301b90b072ce7fb3fa16a967931e9b25fed2a0ede1546bee34b3438e07134ccc23f4d122680bab21815e83f866025db05ad7af987 SHA512 3f2377cdd49bdfb175686c6b06d2c26dd2716a113fe225eb4bbf29dfb9e94610e608e4f6f3755c9db7405a8c2b827f5380b1808a99a47dfcd2bd43fd3615c6f7
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iHUEAREKAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXrdN4AAKCRDPw5SX8bJu
|
||||
B9VlAP9usM8X4ECjRxKqm8vZoZgBsiSpJpUzaSGhPXVaKC/EcQD7BNIdI1vmgbQ6
|
||||
bTxWUeLzIon+qowOReiOx1//suP2El8=
|
||||
=tExb
|
||||
iHUEAREKAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCX0RWLwAKCRDPw5SX8bJu
|
||||
BxEfAP0U5+6sZ/uvcBgsGV2MHJUMcItFIfQ0o4P9KfRXy6Y9GgD/Yzzdkm18dced
|
||||
r/qnT0CO8RaZ4gqISEUnvNHyWo3o4pk=
|
||||
=LACP
|
||||
-----END PGP SIGNATURE-----
|
||||
|
|
13
www-apps/gitea/files/1.12-fix-vendoring.patch
Normal file
13
www-apps/gitea/files/1.12-fix-vendoring.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/vendor/modules.txt b/vendor/modules.txt
|
||||
index efbc866..1c34104 100644
|
||||
--- a/vendor/modules.txt
|
||||
+++ b/vendor/modules.txt
|
||||
@@ -845,6 +845,8 @@ gopkg.in/yaml.v2
|
||||
# mvdan.cc/xurls/v2 v2.1.0
|
||||
## explicit
|
||||
mvdan.cc/xurls/v2
|
||||
+# src.techknowlogick.com/xgo v0.0.0-20200602060627-a09175ea9056
|
||||
+## explicit
|
||||
# strk.kbt.io/projects/go/libravatar v0.0.0-20191008002943-06d1c002b251
|
||||
## explicit
|
||||
strk.kbt.io/projects/go/libravatar
|
14
www-apps/gitea/files/gitea.confd-r1
Normal file
14
www-apps/gitea/files/gitea.confd-r1
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Gitea configuration
|
||||
GITEA_CONF="/etc/gitea/app.ini"
|
||||
|
||||
# Gitea user
|
||||
GITEA_USER="git"
|
||||
|
||||
# Gitea group
|
||||
GITEA_GROUP="git"
|
||||
|
||||
# Gitea working directory
|
||||
GITEA_WORK_DIR="/var/lib/gitea"
|
||||
|
||||
# Gitea custom directory
|
||||
GITEA_CUSTOM="${GITEA_WORK_DIR}/custom"
|
22
www-apps/gitea/files/gitea.initd-r3
Normal file
22
www-apps/gitea/files/gitea.initd-r3
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/sbin/openrc-run
|
||||
# Copyright 2016-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Gitea, a self-hosted Git service"
|
||||
|
||||
: ${GITEA_CONF:=/etc/gitea/app.ini}
|
||||
: ${GITEA_USER:=git}
|
||||
: ${GITEA_GROUP:=git}
|
||||
: ${GITEA_WORK_DIR:=/var/lib/gitea}
|
||||
: ${GITEA_CUSTOM:=${GITEA_WORK_DIR}/custom}
|
||||
|
||||
command="/usr/bin/gitea web"
|
||||
command_args="--config ${GITEA_CONF}"
|
||||
command_background="true"
|
||||
command_user="${GITEA_USER}:${GITEA_GROUP}"
|
||||
error_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.err"
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
required_files="${GITEA_CONF}"
|
||||
start_stop_daemon_args="-d ${GITEA_WORK_DIR}"
|
||||
start_stop_daemon_args="${start_stop_daemon_args} -e GITEA_WORK_DIR=${GITEA_WORK_DIR}"
|
||||
start_stop_daemon_args="${start_stop_daemon_args} -e GITEA_CUSTOM=${GITEA_CUSTOM}"
|
134
www-apps/gitea/gitea-1.12.3.ebuild
Normal file
134
www-apps/gitea/gitea-1.12.3.ebuild
Normal file
|
@ -0,0 +1,134 @@
|
|||
# Copyright 1999-2020 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} != 9999* ]] ; 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.ini.sample CONTRIBUTING.md README.md
|
||||
)
|
||||
FILECAPS=(
|
||||
cap_net_bind_service+ep usr/bin/gitea
|
||||
)
|
||||
PATCHES=(
|
||||
"${FILESDIR}/1.12-fix-vendoring.patch"
|
||||
)
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
local sedcmds=(
|
||||
-e "s#^RUN_MODE = dev#RUN_MODE = prod#"
|
||||
-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#"
|
||||
-e "s#^APP_ID =#;APP_ID =#"
|
||||
-e "s#^TRUSTED_FACETS =#;TRUSTED_FACETS =#"
|
||||
)
|
||||
|
||||
sed -i "${sedcmds[@]}" custom/conf/app.ini.sample || die
|
||||
if use sqlite ; then
|
||||
sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.ini.sample || 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} != 9999* ]] && 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
|
||||
else
|
||||
env "${makeenv[@]}" emake backend
|
||||
fi
|
||||
}
|
||||
|
||||
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-r2 gitea.service
|
||||
|
||||
insinto /etc/gitea
|
||||
newins custom/conf/app.ini.sample 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
|
||||
go-module_pkg_postinst
|
||||
tmpfiles_process gitea.conf
|
||||
}
|
|
@ -9,6 +9,14 @@
|
|||
<doc>https://docs.gitea.io/</doc>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="emoji-hotfix">Use reaction emojis with neutral skin tone</flag>
|
||||
<flag name="emoji-hotfix">
|
||||
Use reaction emojis with neutral skin tone
|
||||
</flag>
|
||||
<flag name="acct">
|
||||
User and group management via acct-*/git packages
|
||||
</flag>
|
||||
<flag name="build-client">
|
||||
Build the client code, instead of using a precompiled one
|
||||
</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
|
Reference in New Issue
Block a user