From 7218e1b46bceac05841e90472501742d905fb3fc Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 12 Mar 2021 21:55:15 +0000 Subject: gentoo resync : 12.03.2021 --- www-apps/gitea/Manifest | 4 +- www-apps/gitea/gitea-1.13.2.ebuild | 129 ------------------------------------- www-apps/gitea/gitea-1.13.4.ebuild | 129 +++++++++++++++++++++++++++++++++++++ 3 files changed, 131 insertions(+), 131 deletions(-) delete mode 100644 www-apps/gitea/gitea-1.13.2.ebuild create mode 100644 www-apps/gitea/gitea-1.13.4.ebuild (limited to 'www-apps/gitea') diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest index 76d42b1f7659..4dc1fc23bc38 100644 --- a/www-apps/gitea/Manifest +++ b/www-apps/gitea/Manifest @@ -1,7 +1,7 @@ AUX gitea.confd-r1 243 BLAKE2B 87caa8371f53f52b0a85f720342f9f358dedec9240ab78998655a03df6bf3f301fe077afabdca1b1895dbcab2fa05748735d6f38f9b3ad53534fe8ae6e72db49 SHA512 485dc9d0b86d0a7b3ba958aac9de1129aa0ffbb47219419d38811f2accca2539e49dd93cc4a24b21f1c3802b024aa8449f54e320e8a16197f201532edeca6836 AUX gitea.initd-r3 802 BLAKE2B 2e33e95f7d2762986184d45b0bbb250cc5e04fffc4e4b006233b28e5b57be69eef1d83441adebe2b94681585edaf77f9da4eb97930f91e75c1b1a5cd8d137633 SHA512 5ff2e653180a0601734fcd055dfffdfdc12363736ed2e56c8576c802398b90f4025b44002cbb9a3fd1e0c2d4c169f62d460381c6c549746d3390e55fc1c677d1 AUX gitea.service-r2 734 BLAKE2B 84825b8198e9495e2803ca3702e6a631fb269c5c8fb4ff4246465a5bd7f7d796b0c3eaea72d0a25cef4f5d38d27a6c99a1b6d41f489749bef322a4ac93cfdd12 SHA512 287670f196bf6353dbdeb6ac37b4ac73693e16a6a3a83f57e7179ccb64364d1d85950a2ddd0a77238a3d218afdaacc8ba849c2810a7ba1238c7277074d1ebe39 -DIST gitea-1.13.2.tar.gz 150862119 BLAKE2B ef0b77c868214ca1c11c868ca2200d79198966e13cbbe515a195706927da6560efcfde875393882bf1637731b2812138ab61bb405cc93467e8701a35edb3bc4a SHA512 33724cd68259b22bbe1f7f2e9e10d2b9fe4cf21b5c6d9bfaa05277b3775e1b31ebd50740713ed448da276a2c41ba66469fc724c72b44f082b0d458b7f00deea1 -EBUILD gitea-1.13.2.ebuild 3459 BLAKE2B 4f0552782f2a6917127e9d0279dd01a586ae93edef050bd218fa9f71b5bf5259d3d60fc5b924b279add899aff3c722efb5a5f765367bf3439314663af2135600 SHA512 addc33481ada8a104d4f87926c4b7a0c4988f08370ce90b673b8827abb112acdbfc37c7c43bf42693101343f458f02bd23d82a1c2c05a6116846747c98a803c0 +DIST gitea-1.13.4.tar.gz 150805886 BLAKE2B c639043cc5afe6f35015b8c5d44f3b46222cf6c418d80f27257bd697d12f1315f126d9406c953047e4d595284649fac0c057fc6e96a210906e839aa76da05b3b SHA512 bfa740214f22fd4e74a236510a8ccafc6369c293e409260ccc598df835c8a7ef552713c6760f4bf4f1b8ba2321ff1e5c7686b010d7bb307da3ff9901147cbea5 +EBUILD gitea-1.13.4.ebuild 3459 BLAKE2B 4f0552782f2a6917127e9d0279dd01a586ae93edef050bd218fa9f71b5bf5259d3d60fc5b924b279add899aff3c722efb5a5f765367bf3439314663af2135600 SHA512 addc33481ada8a104d4f87926c4b7a0c4988f08370ce90b673b8827abb112acdbfc37c7c43bf42693101343f458f02bd23d82a1c2c05a6116846747c98a803c0 EBUILD gitea-9999.ebuild 3262 BLAKE2B 05a9dd4cc6edbce16bdfc736a5c2cc6b945e8203accf4312a4c3512dc2df035c572388cdb83f4be865a932cfd0edc0e834242a96494757fce598c2360fd8b0bc SHA512 813be6bb8754cb882314aa813d10151a1dfef5d08e30e2b5316818f90192a1427804a1dbdc1e1b4e617353ffaa1d44db4bb3b1dad86b2293334861dcfe23213f MISC metadata.xml 639 BLAKE2B ded4337596780b55640ce8db682ac7fcd8b6624147d6f9cf6190d41212b98f77d752b98eb4f6af7e6bbc5472bff5f3eb6ab016325e68e3f2b2284c5b4294d5a3 SHA512 5e6a76f08e5d2161192c35371caeb38f8dc972f478aca0f3f1025852c482f54be9b7ca30dbb1365ac5c7a9902534d74b05d7dc0f21109a752f0446ff5b4191e1 diff --git a/www-apps/gitea/gitea-1.13.2.ebuild b/www-apps/gitea/gitea-1.13.2.ebuild deleted file mode 100644 index a68755728ea8..000000000000 --- a/www-apps/gitea/gitea-1.13.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} != 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.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} != 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.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 - go-module_pkg_postinst - tmpfiles_process gitea.conf -} diff --git a/www-apps/gitea/gitea-1.13.4.ebuild b/www-apps/gitea/gitea-1.13.4.ebuild new file mode 100644 index 000000000000..a68755728ea8 --- /dev/null +++ b/www-apps/gitea/gitea-1.13.4.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} != 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.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} != 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.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 + go-module_pkg_postinst + tmpfiles_process gitea.conf +} -- cgit v1.2.3