diff options
author | Paul Healy <lmiphay@gmail.com> | 2019-05-10 18:39:47 +0100 |
---|---|---|
committer | Paul Healy <lmiphay@gmail.com> | 2019-05-10 18:39:47 +0100 |
commit | 3776203c7d02f457c7a5a2ebc0d31e100f6b911d (patch) | |
tree | c2d5d2c6a1c3a00f1c620191af4693f52e3be942 /www-apps | |
parent | remove old ebuilds (diff) | |
download | lmiphay-3776203c7d02f457c7a5a2ebc0d31e100f6b911d.tar.gz lmiphay-3776203c7d02f457c7a5a2ebc0d31e100f6b911d.tar.bz2 lmiphay-3776203c7d02f457c7a5a2ebc0d31e100f6b911d.zip |
revbump gitea
Signed-off-by: Paul Healy <lmiphay@gmail.com>
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/gitea/Manifest | 2 | ||||
-rw-r--r-- | www-apps/gitea/gitea-1.8.1.ebuild | 64 |
2 files changed, 66 insertions, 0 deletions
diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest index 8823707..5f7f500 100644 --- a/www-apps/gitea/Manifest +++ b/www-apps/gitea/Manifest @@ -4,4 +4,6 @@ AUX gitea.initd-r1 688 BLAKE2B eb2341dee53f3fd92c49137855615d9ae7ca77efc396e2d2e AUX gitea.logrotated 87 BLAKE2B 373830ddd6eed0ce2f0f7b1dab14e4a253e5a56a73f477cfadbc6deec373846d4df2d697735391581771699d5a6513acb0e14a446873de01eba10d19e3a6bd88 SHA512 798f3fc33026f19dd31ffa78b9b1ed313d7b82b19c047f509e896c1798b2925a1bb7c4998d98a6b47e728979bf7132fb1c2a80eb7fda096a763d6791631cb6d4 AUX gitea.service 472 BLAKE2B 4c728e2987d0c0a86e65d4b9c1a59f6193ff8a3f9b066991a06f495ad1c5586b3497c71fca1cce5b65f167af09343e7bf3215ee5e8fdefa539e384198d2d88d6 SHA512 6666fe3b4cdbb78a58db4a6bf47a15e6be9ab30b666c6eb77a9e8a002d8c0abd510fc75ef463a11ee6892ab12c98943774616072cb64fd9f2fa42ff8f676aa95 DIST gitea-1.8.0.tar.gz 24268907 BLAKE2B b46a17733fc7bd0f228620bdfadf0d596ea56fca6e685afab7734e794c1f87c5e004529ca3d69e907d516bcb83563565b1d8c32501f1c2c0f9295ca028d96ad0 SHA512 eebbe2f77ed2e4c3562f48a6fa647e6f2a0492c5b6ea4f13542a5ef82e94a357a8d53897aa013107b5f735d2aff9d719893b5724de44831c43998c2e9c6e78d7 +DIST gitea-1.8.1.tar.gz 24304805 BLAKE2B 4300125da2116218c0609bb8974b2abea22593161dd60e12390eea7e60865df40a089126748b3f5c9e856b2c59fdb6a4b9997c6d0bb9743ceb0c413c41caa903 SHA512 b583ba21ae9c896d527d299d5a14f7b99e40b474da7ca40521487f0459c877da9c21825b40dc0f981af7813bcabca11f62d8076cc1e401adda57d0e0505b96ce EBUILD gitea-1.8.0.ebuild 1937 BLAKE2B 62966ac3fb1df33057720084d66e5ff7ca07e72e8c14fec6ca3c3c128bd782804ddb614c605e83dd5dd4606a252d5d010997f07cc685473096d0cc086e5bbb3d SHA512 4184590b31bbe750d08ea20ef7c6099f8c61e69d41bc458f9dca0de20cbe125283cd489ddca4bf2802a2fa7caa626709eb17f02c4608a656904d082dd7e3fea5 +EBUILD gitea-1.8.1.ebuild 1937 BLAKE2B 62966ac3fb1df33057720084d66e5ff7ca07e72e8c14fec6ca3c3c128bd782804ddb614c605e83dd5dd4606a252d5d010997f07cc685473096d0cc086e5bbb3d SHA512 4184590b31bbe750d08ea20ef7c6099f8c61e69d41bc458f9dca0de20cbe125283cd489ddca4bf2802a2fa7caa626709eb17f02c4608a656904d082dd7e3fea5 diff --git a/www-apps/gitea/gitea-1.8.1.ebuild b/www-apps/gitea/gitea-1.8.1.ebuild new file mode 100644 index 0000000..b2ba2af --- /dev/null +++ b/www-apps/gitea/gitea-1.8.1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2019 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="" + +DEPEND="dev-go/go-bindata" +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 '/" \ + -e "s/GOFLAGS := -i -v/GOFLAGS := -v/" \ + 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-r1 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 +} |