From f81dd03eeffeaaf183a529543fa265531268e07f Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 9 Oct 2018 18:47:15 +0200 Subject: [PATCH] www-apps/gitea: bump to 1.5.2 Package-Manager: Portage-2.3.49, Repoman-2.3.11 Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07 --- www-apps/gitea/Manifest | 12 +++--- www-apps/gitea/gitea-1.5.2.ebuild | 66 +++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+), 6 deletions(-) create mode 100644 www-apps/gitea/gitea-1.5.2.ebuild diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest index c3b9224f7..d8174be4b 100644 --- a/www-apps/gitea/Manifest +++ b/www-apps/gitea/Manifest @@ -10,16 +10,16 @@ AUX gitea.logrotated 87 BLAKE2B 373830ddd6eed0ce2f0f7b1dab14e4a253e5a56a73f477cf AUX gitea.service 472 BLAKE2B 4c728e2987d0c0a86e65d4b9c1a59f6193ff8a3f9b066991a06f495ad1c5586b3497c71fca1cce5b65f167af09343e7bf3215ee5e8fdefa539e384198d2d88d6 SHA512 6666fe3b4cdbb78a58db4a6bf47a15e6be9ab30b666c6eb77a9e8a002d8c0abd510fc75ef463a11ee6892ab12c98943774616072cb64fd9f2fa42ff8f676aa95 DIST gitea-1.5.0.tar.gz 18847969 BLAKE2B 59da59a3d08c64c066204f4764f14c4b257495aba7800e9d6ebfcab5ad12402ce6cd17f14ec2187f994b46d83cf587422d7b711ceea4a99cc366105bd374daa1 SHA512 06cbcadc138496abf500b8d219d0770c5f6b8af419f9c3733596ee7e20cb50235815433979b2b1daa0a6117e6eb84de9678667236549e018079c49b793f22d68 DIST gitea-1.5.1.tar.gz 18843260 BLAKE2B 0c9e0e82de91938c6c8e64a2b3ff56d16a5bdde105e934dd29923f99185e924493239c00dab5fb1af83e3973be23f2e53729831a77a509bd626d4796ba794e56 SHA512 16d10d98caf377d3bd5b4933316290e853a8fc46f5fdb3c206b9607750b5bdbdfd5c50bf8dd59906d7476d0e9211a67332eb4b780d8d37cdfb1c0bc3141ceed7 +DIST gitea-1.5.2.tar.gz 18866286 BLAKE2B a9a31fa6a310dcb6debd9399f234262214021d72adda52af959e6d9d692d5902ff6955a9802bf60212cecb2a0146c4905952d44643aa83e49c645d32541907c2 SHA512 ef91c881b3cb81d79d182b78c95624f24d63e21daa2d6e561fca79edba0ad588fae7c55503f900a8f05c566ed3bff92a9c4385fc7e5c701a80749d2a8c58b599 EBUILD gitea-1.5.0-r1.ebuild 2065 BLAKE2B 34663fba254d112ba773fdcf3ffcfb5e2fbe2950e448cb2126b436d376a0d86a68a214c8f3e7e1f02548b649b1415aa1abec93b0ca8b6d1ae44e88f8a903a51a SHA512 aa4d6fbc428ae753c1311254cc396d4298ef39b1cdc29445474874bca3479efb3e09917514615c430103eb13d947547eb44c0b7a30503c109fed335baec9107a EBUILD gitea-1.5.0.ebuild 1896 BLAKE2B 026de80a45a7c8460a337074552348a008168329a6004095e35b2ff61de4b10c77131f35b3b6c471975c8bd80826cd9aa261ad914130eb8133446a335bc2211d SHA512 79523a1d09df95268a462c3a210e71ee4a1c485aa290af5d4d38c163f95400681b207fe6c3bab7c9985c6371f73be4779f4ccaa52db2ec60a3a0c7ebc1ec3362 EBUILD gitea-1.5.1-r1.ebuild 2062 BLAKE2B 42bdae8b8adcfadb97d87c6674a8f58c1978af83c4dc2e5df47d355c4d9cac6bc25437b58238fac8644bf1dcf97442ddeebf623de43c7d0556b37280c4f1bd32 SHA512 e9160aa0e3aca093dd438d046885ac1583a80467f1ff3aaad733a9011417e38296cc15082ebdf3ff0bb56eb256d82deb2d69552f947cc72ad8ff188175c3652b +EBUILD gitea-1.5.2.ebuild 2062 BLAKE2B 42bdae8b8adcfadb97d87c6674a8f58c1978af83c4dc2e5df47d355c4d9cac6bc25437b58238fac8644bf1dcf97442ddeebf623de43c7d0556b37280c4f1bd32 SHA512 e9160aa0e3aca093dd438d046885ac1583a80467f1ff3aaad733a9011417e38296cc15082ebdf3ff0bb56eb256d82deb2d69552f947cc72ad8ff188175c3652b MISC metadata.xml 363 BLAKE2B ab235f6b884680f4d064cae732d35c801a22621f6198fa5ac602cd97a479c1799105605449f1f36319646db463daa1399d94c122e73ef2ebd6045efd0a94e990 SHA512 64ff18a1d82b7774385df7708b4bf6201e2508c961cb1fa2dc4de2a8a0fc477a0d388782dbbf50befa7f4787f5d5fb6a986a4631009cf8dcebe4c83f17405865 -----BEGIN PGP SIGNATURE----- -iNUEARYIAH0WIQQvlVSXh5uKIRtsOsBQEK1oSrKk7gUCW6zcqF8UgAAAAAAuAChp -c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MkY5 -NTU0OTc4NzlCOEEyMTFCNkMzQUMwNTAxMEFENjg0QUIyQTRFRQAKCRBQEK1oSrKk -7oZOAQD8pJrNoPlP/EdginwqhdV82zk2Emgug0/OCpSk3UcltQD/fKPDhmaag7Vu -J9l2QYzOViy+prkMPVHM3lb9tBTBfA4= -=8pP3 +iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCW7zbhQAKCRDPw5SX8bJu +B4gVAP4zhySzUGRfXSzlhbk3sY46jwxIhZ1r1oEJZibrdhicQAD/aP4UdflKTohG +yK2VKcfE05knSyPb9WUve2obnaaIRgo= +=61ay -----END PGP SIGNATURE----- diff --git a/www-apps/gitea/gitea-1.5.2.ebuild b/www-apps/gitea/gitea-1.5.2.ebuild new file mode 100644 index 000000000..703cfa686 --- /dev/null +++ b/www-apps/gitea/gitea-1.5.2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit user systemd golang-build golang-vcs-snapshot + +EGO_PN="code.gitea.io/gitea" +KEYWORDS="~amd64 ~arm" + +DESCRIPTION="A painless self-hosted Git service, written in Go" +HOMEPAGE="https://github.com/go-gitea/gitea" +SRC_URI="https://github.com/go-gitea/gitea/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +IUSE="-allow_privileged_ports" + +DEPEND="dev-go/go-bindata + allow_privileged_ports? ( sys-libs/libcap )" +RDEPEND="dev-vcs/git" + +pkg_setup() { + enewgroup git + enewuser git -1 /bin/bash /var/lib/gitea git +} + +src_prepare() { + default + sed -i -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\ + -e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN}/Makefile || die +} + +src_compile() { + GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} generate + TAGS="bindata pam sqlite" LDFLAGS="" CGO_LDFLAGS="-fno-PIC" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build +} + +src_install() { + pushd src/${EGO_PN} || die + dobin gitea + insinto /var/lib/gitea/conf + newins custom/conf/app.ini.sample app.ini.example + popd || die + newinitd "${FILESDIR}"/gitea.initd-r2 gitea + newconfd "${FILESDIR}"/gitea.confd gitea + keepdir /var/log/gitea /var/lib/gitea/data + fowners -R git:git /var/log/gitea /var/lib/gitea/ + systemd_dounit "${FILESDIR}/gitea.service" +} + +pkg_postinst() { + if [[ ! -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then + elog "No app.ini found, copying initial config over" + cp "${FILESDIR}"/app.ini "${EROOT}"/var/lib/gitea/conf/ || die + chown git:git /var/lib/gitea/conf/app.ini + else + elog "app.ini found, please check example file for possible changes" + ewarn "Please note that environment variables have been changed:" + ewarn "GITEA_WORK_DIR is set to /var/lib/gitea (previous value: unset)" + ewarn "GITEA_CUSTOM is set to '\$GITEA_WORK_DIR/custom' (previous: /var/lib/gitea)" + fi + + if use allow_privileged_ports; then + setcap CAP_NET_BIND_SERVICE=+ep "${EROOT}/usr/bin/gitea" + fi +}