www-apps/gitea: Version bump 1.11.5.

Masked for now because I'm not 100% sure the changes to the ebuild
work.
This commit is contained in:
tastytea 2020-05-09 22:29:36 +02:00
parent 8a1dff4797
commit 6e2783f894
Signed by untrusted user: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 164 additions and 4 deletions

View File

@ -11,6 +11,7 @@ AUX gitea.logrotated 87 BLAKE2B 373830ddd6eed0ce2f0f7b1dab14e4a253e5a56a73f477cf
AUX gitea.service 553 BLAKE2B d5081600bd7a9d8446029f7c40186b064ce6af29eb93e1e360e1523c460d8a8d3b409a54383434cf5b55fa77a0706b8e30f137fe734c6345ce59b996e8b2c195 SHA512 e2535cefaef4e890dc2a99ef204e6fb375f59c849df64f1be18d4dbf29abd7679c8cfc197c1124c9094f8b866d029b778f73a8d27554a0ab1870600f5d6420a5
AUX gitea.service-r1 734 BLAKE2B 84825b8198e9495e2803ca3702e6a631fb269c5c8fb4ff4246465a5bd7f7d796b0c3eaea72d0a25cef4f5d38d27a6c99a1b6d41f489749bef322a4ac93cfdd12 SHA512 287670f196bf6353dbdeb6ac37b4ac73693e16a6a3a83f57e7179ccb64364d1d85950a2ddd0a77238a3d218afdaacc8ba849c2810a7ba1238c7277074d1ebe39
DIST gitea-1.10.6.tar.gz 30147860 BLAKE2B e41e226be820eb0a436783f49bf90a1149eef4e0dde00edc09bc76bb086ea53ff2856563e31ab261e1529a03753785e04c1fe8a02f72eef01a6de173df82098d SHA512 be64f73eb0819c28e444b9dae8d4baecd910aad790efeb515a981542125679257f48a5f4ab1c8453b5372a0c8b1e9b84275e61c89dcd2137d7f7cfe8c71f917b
DIST gitea-1.11.5.tar.gz 28249501 BLAKE2B 98e870bfbc4437fd41278721694624310fbeea3652b1b461ee0798091c0611af45736821beb88f986e14dfe88107932ee999230ed652392ff2f35c17e6e0211a SHA512 ba80ba77f6f761a03d062d5ceaacf0d2f9a7c5ad3c414f3d34ff31ee37ac00c4af562ecba0f14c6dca3ad2012e6cbfd8aea105dd87cfb06aedc80cf22a9ff12b
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
@ -18,11 +19,12 @@ DIST gitea_tada.png 1376 BLAKE2B a838ff5dfa1f03f8b274a708efd8f1d351934b05b3b7266
DIST gitea_thumbsdown.png 786 BLAKE2B 0ee2b9bd3d8e655cf3bc6ba7426f1c219c08716dcba9281845e03ee5f2f24b70e035b051a9b67c8dd95dcffff7b28261a97090f906c4e1159dfdc1285115356d SHA512 689710a3f18933b919c8eef7ec855244cd1d9fc43005b246de7961c38702cbd9d937364ee11d67024439b2de3156aa41bf870279a5d0afd3cc1111492edcaa6e
DIST gitea_thumbsup.png 778 BLAKE2B 1457327be43b7d0dbcb10dfbb043c11c1ed02536c2215f3b3931402711fa97642d265dcafc5353c05c499459d3c0ee5aeafff50cec108b14932b10ea755db4c8 SHA512 e3ab812f9d4c0cccd05feb12958a93aec0dec90ae393f4bdb28cbc30d88d2daebb46534f2879f8a445bacb997cac01eb3193355835535f277a3cd34391449a0e
EBUILD gitea-1.10.6.ebuild 4854 BLAKE2B 66e71163717bee09adce3331803b85cdee0f740a0eb6cfbbfb8e62dc84bfaa40f5b2eed98acadf06f24ac39d63b8922a924d327d62a189a2f12d5c1d186e1fc0 SHA512 b2e71467e145472c2f43fec78a44c33c05934d2e67116a8b3f8a0f078fb6f45650b6913a0964eb9bd2babb2d6c1f7da5acf2991f8f496af7112c0f269edf7072
EBUILD gitea-1.11.5.ebuild 5749 BLAKE2B ca3fe0eef88f26e95484b3c355779a84db43f862862937234dcf63e3768c877c8ac2472d61bc3eb4563bc1e9ea44db93ff91b264ef973571ea9b00d04d7cd9d9 SHA512 edbedb17294f3f26dfdcdf941126cb246fc125b0d6da75f3ce7cd14b75fcfe167fc287c61ed3d6941b4215e3c7f24d9a91ded2437bbd43ea9a574bcf37daaa30
MISC metadata.xml 335 BLAKE2B 921ed4b1499e6b51bf11f3bad9a6a9e5049290ce11f769c428874f47389ccf847bf0a23d646f7433bd566343d397cfc1591a7b377d8cbbfb76421cd633bc4b9a SHA512 780c20386fac75f14e043030107dbefdca130e0b98cc6dd0d6b9a18e2f8793ed194488487dc2fd562b78cae00bc35cc1deddf446c7dec15464cdfa823559552a
-----BEGIN PGP SIGNATURE-----
iHUEAREKAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXpz5hgAKCRDPw5SX8bJu
B//BAP9zL0B4kbvYJfVdFntdZKFiT3bcu60uD/EFHj19ctH3dAD9Hh5D+/vk2X/S
IazZ2PdriCZj6/EqmxRNnC6VRN+BXtI=
=Dbxk
iHUEAREKAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXrcSsQAKCRDPw5SX8bJu
B7ekAPsF9oyPT977SfMxijiDsNejn2khglBTIauBdA17hK/QZAD9FoL0nPLkIV4h
cJyvXh7iEf9lQ7Sza9S7l3FckR5mCKw=
=Cb+4
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,158 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit fcaps golang-vcs-snapshot systemd tmpfiles
EGO_PN="code.gitea.io/gitea"
DESCRIPTION="A painless self-hosted Git service"
HOMEPAGE="https://gitea.io/"
SRC_URI="https://github.com/go-gitea/gitea/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz
emoji-hotfix? (
https://raw.githubusercontent.com/twitter/twemoji/54df6a1/assets/72x72/1f44d.png -> gitea_thumbsup.png
https://raw.githubusercontent.com/twitter/twemoji/54df6a1/assets/72x72/1f44e.png -> gitea_thumbsdown.png
https://raw.githubusercontent.com/twitter/twemoji/54df6a1/assets/72x72/1f606.png -> gitea_laughing.png
https://raw.githubusercontent.com/twitter/twemoji/54df6a1/assets/72x72/1f615.png -> gitea_confused.png
https://raw.githubusercontent.com/twitter/twemoji/54df6a1/assets/72x72/2764.png -> gitea_heart.png
https://raw.githubusercontent.com/twitter/twemoji/54df6a1/assets/72x72/1f389.png -> gitea_tada.png
)"
LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
SLOT="0"
# KEYWORDS="~amd64 ~arm ~arm64"
KEYWORDS=""
IUSE="emoji-hotfix pam sqlite"
COMMON_DEPEND="pam? ( sys-libs/pam )"
BDEPEND="
dev-lang/go
"
DEPEND="
${COMMON_DEPEND}
dev-go/go-bindata
"
RDEPEND="
${COMMON_DEPEND}
dev-vcs/git[curl,threads]
acct-user/git[gitea]
"
FILECAPS=( cap_net_bind_service+ep usr/bin/gitea )
DOCS=( custom/conf/app.ini.sample CONTRIBUTING.md README.md )
S="${WORKDIR}/${P}/src/${EGO_PN}"
gitea_make() {
local my_tags=(
bindata
$(usev pam)
$(usex sqlite 'sqlite sqlite_unlock_notify' '')
)
local my_flags=(
"-X main.Version=${PV}"
"-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 my_makeopts=(
DRONE_TAG="${PV}"
TAGS="${my_tags[@]}"
LDFLAGS="-extldflags \"${LDFLAGS}\" ${my_flags[@]}"
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)"
)
emake "${my_makeopts[@]}" "$@"
}
src_prepare() {
default
sed -i \
-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 =#" \
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
if use emoji-hotfix; then
cp "${DISTDIR}/gitea_thumbsup.png" "public/vendor/plugins/emojify/images/thumbsup.png" || die
cp "${DISTDIR}/gitea_thumbsup.png" "public/vendor/plugins/emojify/images/+1.png" || die
cp "${DISTDIR}/gitea_thumbsdown.png" "public/vendor/plugins/emojify/images/thumbsdown.png" || die
cp "${DISTDIR}/gitea_thumbsdown.png" "public/vendor/plugins/emojify/images/-1.png" || die
cp "${DISTDIR}/gitea_laughing.png" "public/vendor/plugins/emojify/images/laughing.png" || die
cp "${DISTDIR}/gitea_confused.png" "public/vendor/plugins/emojify/images/confused.png" || die
cp "${DISTDIR}/gitea_heart.png" "public/vendor/plugins/emojify/images/heart.png" || die
cp "${DISTDIR}/gitea_tada.png" "public/vendor/plugins/emojify/images/tada.png" || die
fi
gitea_make generate
}
src_compile() {
# Avoid nodejs dep. See upstream bug
# <https://github.com/go-gitea/gitea/issues/10253>.
gitea_make backend
}
src_test() {
if has network-sandbox ${FEATURES}; then
einfo "Remove tests which are known to fail with network-sandbox enabled."
rm ./modules/migrations/github_test.go || die
fi
einfo "Remove tests which depend on gitea git-repo."
rm ./modules/git/blob_test.go || die
rm ./modules/git/repo_test.go || die
default
}
src_install() {
dobin gitea
einstalldocs
newconfd "${FILESDIR}"/gitea.confd-r1 gitea
newinitd "${FILESDIR}"/gitea.initd-r1 gitea
systemd_newunit "${FILESDIR}"/gitea.service-r1 gitea.service
newtmpfiles - gitea.conf <<-EOF
d /run/gitea 0755 git git
EOF
insinto /etc/gitea
newins custom/conf/app.ini.sample app.ini
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
}
pkg_postinst() {
fcaps_pkg_postinst
if [[ -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then
ewarn "The configuration path has been changed to ${EROOT}/etc/gitea/app.ini."
ewarn "Please move your configuration from ${EROOT}/var/lib/gitea/conf/app.ini"
ewarn "and adapt the gitea-repositories hooks and ssh authorized_keys."
ewarn "Depending on your configuration you should run something like:"
ewarn "sed -i -e 's#${EROOT}/var/lib/gitea/conf/app.ini#${EROOT}/etc/gitea/app.ini#' \\"
ewarn " /var/lib/gitea/gitea-repositories/*/*/hooks/*/* \\"
ewarn " /var/lib/gitea/.ssh/authorized_keys"
fi
if use emoji-hotfix; then
elog "You have to credit Twitter for the emojis if your instance is publicly accessible."
elog "See https://github.com/twitter/twemoji#attribution-requirements"
fi
}