forked from tastytea/overlay
www-apps/gitea: Version bump 1.10.5
This commit is contained in:
parent
99eda80f44
commit
418b157f33
|
@ -1,3 +1,6 @@
|
|||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX app.ini 67 BLAKE2B 4ec7b8217486047b419202b3a8a7172ac21ae0e5ad9224cd4f010be730ac5cda9d05bf06dcba2d06f8809900094b3b007ef98dd4ea20a125fb7d3db279f53e4a SHA512 93f6f7cf49dd1ece56f7da711adbb58cc38a503527aeea140837d74456ee6f550a089e897d9cb94382e1eb3f5a5cbe4a61362534463eada08a91f314da0f2108
|
||||
AUX gitea-mod-vendor.patch 1273 BLAKE2B 3067b17a972b92d0c402af4336ee41daa2f09d389a6e8bf218d33b103230bf8bb4b7003977447cc00293f8941f5002676398d4d755548e114e59cbb3840af8cc SHA512 12d8e0d2cb0998d31f8077f1498205bfee07e0df74926251f1ca38b9824c11246c07e413fc20beaed9ae49cac3d329468432f3fd2d5b25292c5bd656a88c7cc8
|
||||
AUX gitea.confd 74 BLAKE2B 656800d35c8f0075005e7e9e5c804292f9884663f89f653426064a20cfbcb518f736bd94947a03bce5adad670fb6150d93026999d6d5395f37a85666b6663a2f SHA512 3e05bad19cd924c4375d9ca6fc57142ba4b5ec897a1c789c3fc9710dfcfee209a199c95040eece089ad93e0357486ab98fad0c448a61e318646b7a71845e9a25
|
||||
|
@ -9,6 +12,7 @@ AUX gitea.service 553 BLAKE2B d5081600bd7a9d8446029f7c40186b064ce6af29eb93e1e360
|
|||
AUX gitea.service-r1 734 BLAKE2B 84825b8198e9495e2803ca3702e6a631fb269c5c8fb4ff4246465a5bd7f7d796b0c3eaea72d0a25cef4f5d38d27a6c99a1b6d41f489749bef322a4ac93cfdd12 SHA512 287670f196bf6353dbdeb6ac37b4ac73693e16a6a3a83f57e7179ccb64364d1d85950a2ddd0a77238a3d218afdaacc8ba849c2810a7ba1238c7277074d1ebe39
|
||||
DIST gitea-1.10.3.tar.gz 30145162 BLAKE2B 4b851580a4e081148ee99d0b6daab52df3251711e309b05ba6ac590d2c5f7983b5d65040b474c09efdc0e999e6f011b14a6e8f8069e3bf7957c23dc118b82cf8 SHA512 2e3962069f2160ea536a7ab4322261c5063fffe0d291796cba61c9d0a3cf965d339441bc0b2259883695a6ce4b62de1f3e16e3fc78016ce303847b70f4f8ff34
|
||||
DIST gitea-1.10.4.tar.gz 30145224 BLAKE2B 3db7670b06f0c64ce0c796f1a2b5db7e3b968f37dfd63f0640f829237ccb253b5ef551c261fb747ddda115487482407e9ed66b86883969e6c5399a76ee9a2b13 SHA512 2e6ece45f83d22123b4d1687372f65c7eeca8d576d9e0f089b91e2c9faea132a3e588064a211e3df7893b149fdd63f46059b4d672ce6980ada3d132067edbbb4
|
||||
DIST gitea-1.10.5.tar.gz 30149018 BLAKE2B 7559c004c0d431c8bf540a2c90346cf7ee6632b7fd9dafdcf6b7a355ff1136f28495e55a39a1a4286194fb12a51f1d65b57ae4a7b1b9bfc7046e532a770fa86e SHA512 a50cfa2ba207713ae3b748dbae88a913a8a5e47bd1b2dd693e337bdb6fd57e634a065f02f1a7dd22da5ceece26045f5cbef6acf22097ee1674f819d807847f64
|
||||
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
|
||||
|
@ -17,4 +21,12 @@ DIST gitea_thumbsdown.png 786 BLAKE2B 0ee2b9bd3d8e655cf3bc6ba7426f1c219c08716dcb
|
|||
DIST gitea_thumbsup.png 778 BLAKE2B 1457327be43b7d0dbcb10dfbb043c11c1ed02536c2215f3b3931402711fa97642d265dcafc5353c05c499459d3c0ee5aeafff50cec108b14932b10ea755db4c8 SHA512 e3ab812f9d4c0cccd05feb12958a93aec0dec90ae393f4bdb28cbc30d88d2daebb46534f2879f8a445bacb997cac01eb3193355835535f277a3cd34391449a0e
|
||||
EBUILD gitea-1.10.3.ebuild 4949 BLAKE2B 5bff5e7573f5ea078a2158063500b5125971be1c8eb8c14636d142e616d15e9a403a40500c0d8d7654c336060bbc2f8c0044651ae89c5168abf08c4200822b2f SHA512 9149631fc43ace109e83d65c43c1f7e4a1639e47b1d78f45d9804e9ccf9a14896647e3cbfccae9cd7e454b09385f03e5c45427090c3b7254be08c6d55e6ecea5
|
||||
EBUILD gitea-1.10.4.ebuild 4949 BLAKE2B 5bff5e7573f5ea078a2158063500b5125971be1c8eb8c14636d142e616d15e9a403a40500c0d8d7654c336060bbc2f8c0044651ae89c5168abf08c4200822b2f SHA512 9149631fc43ace109e83d65c43c1f7e4a1639e47b1d78f45d9804e9ccf9a14896647e3cbfccae9cd7e454b09385f03e5c45427090c3b7254be08c6d55e6ecea5
|
||||
EBUILD gitea-1.10.5.ebuild 4949 BLAKE2B 5bff5e7573f5ea078a2158063500b5125971be1c8eb8c14636d142e616d15e9a403a40500c0d8d7654c336060bbc2f8c0044651ae89c5168abf08c4200822b2f SHA512 9149631fc43ace109e83d65c43c1f7e4a1639e47b1d78f45d9804e9ccf9a14896647e3cbfccae9cd7e454b09385f03e5c45427090c3b7254be08c6d55e6ecea5
|
||||
MISC metadata.xml 335 BLAKE2B 921ed4b1499e6b51bf11f3bad9a6a9e5049290ce11f769c428874f47389ccf847bf0a23d646f7433bd566343d397cfc1591a7b377d8cbbfb76421cd633bc4b9a SHA512 780c20386fac75f14e043030107dbefdca130e0b98cc6dd0d6b9a18e2f8793ed194488487dc2fd562b78cae00bc35cc1deddf446c7dec15464cdfa823559552a
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXmJUAQAKCRDPw5SX8bJu
|
||||
Bxs0APwItTO/g7UCOEPbxJs4FIEY1L0NMgKxDnt4FQBB66icqwD8DaHCEMVjMXkv
|
||||
m7MCkY9qZ0QPdywG/KmhI7+zAHGZpew=
|
||||
=OKq1
|
||||
-----END PGP SIGNATURE-----
|
||||
|
|
134
www-apps/gitea/gitea-1.10.5.ebuild
Normal file
134
www-apps/gitea/gitea-1.10.5.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 golang-vcs-snapshot systemd user
|
||||
|
||||
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="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64"
|
||||
IUSE="emoji-hotfix pam sqlite"
|
||||
|
||||
COMMON_DEPEND="pam? ( sys-libs/pam )"
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
dev-go/go-bindata
|
||||
"
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
dev-vcs/git[curl,threads]
|
||||
"
|
||||
|
||||
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}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup git
|
||||
enewuser git -1 /bin/bash /var/lib/gitea git
|
||||
}
|
||||
|
||||
gitea_make() {
|
||||
local my_tags=(
|
||||
bindata
|
||||
$(usev pam)
|
||||
$(usex sqlite 'sqlite sqlite_unlock_notify' '')
|
||||
)
|
||||
local my_makeopt=(
|
||||
DRONE_TAG=${PV}
|
||||
TAGS="${my_tags[@]}"
|
||||
)
|
||||
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" LDFLAGS="-X main.Version=${PV}" emake "${my_makeopt[@]}" "$@"
|
||||
}
|
||||
|
||||
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() {
|
||||
gitea_make build
|
||||
}
|
||||
|
||||
src_test() {
|
||||
gitea_make test
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user