www-apps/gitea: Version bump 1.8.0
the build was successful Details

Package-Manager: Portage-2.3.62, Repoman-2.3.11
Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07
This commit is contained in:
tastytea 2019-04-21 06:40:05 +02:00
parent 9ca5699174
commit 69feada97a
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 77 additions and 4 deletions

View File

@ -7,12 +7,14 @@ AUX gitea.initd 764 BLAKE2B 5162535625a926d9d94ea50fd892bc423170913d38cb00a2782a
AUX gitea.logrotated 87 BLAKE2B 373830ddd6eed0ce2f0f7b1dab14e4a253e5a56a73f477cfadbc6deec373846d4df2d697735391581771699d5a6513acb0e14a446873de01eba10d19e3a6bd88 SHA512 798f3fc33026f19dd31ffa78b9b1ed313d7b82b19c047f509e896c1798b2925a1bb7c4998d98a6b47e728979bf7132fb1c2a80eb7fda096a763d6791631cb6d4
AUX gitea.service 553 BLAKE2B d5081600bd7a9d8446029f7c40186b064ce6af29eb93e1e360e1523c460d8a8d3b409a54383434cf5b55fa77a0706b8e30f137fe734c6345ce59b996e8b2c195 SHA512 e2535cefaef4e890dc2a99ef204e6fb375f59c849df64f1be18d4dbf29abd7679c8cfc197c1124c9094f8b866d029b778f73a8d27554a0ab1870600f5d6420a5
DIST gitea-1.7.6.tar.gz 20868421 BLAKE2B bdd623c09f628a56df9e2c36958d94582707ffeaeb45960fd1ea0d50a8083458683f28ab2c398ac1e939ba6b011ba6a83cc02abd98e9b9ff131bda8fd224c66c SHA512 ad39969b5f1246875c006c72f2ea711772f29bfb9c687510efbd2089c9f88e9d218d14b03111715179b2e0f72f85731f22dd46fc022e224be73b7e73e798236b
DIST gitea-1.8.0.tar.gz 24268907 BLAKE2B b46a17733fc7bd0f228620bdfadf0d596ea56fca6e685afab7734e794c1f87c5e004529ca3d69e907d516bcb83563565b1d8c32501f1c2c0f9295ca028d96ad0 SHA512 eebbe2f77ed2e4c3562f48a6fa647e6f2a0492c5b6ea4f13542a5ef82e94a357a8d53897aa013107b5f735d2aff9d719893b5724de44831c43998c2e9c6e78d7
EBUILD gitea-1.7.6-r1.ebuild 2111 BLAKE2B 0b276a4b0902a398b5ac3c34a744ac2464e796cf73682b88eac603db49032fd3ff0dc989d1710a99b240616628c6739b06e8e92222c939edc8d61a331ed96e6d SHA512 665ff73ea3a26d9274dfeb95c98c58876782ae5a99491f591ed4cb6b93de3312dad411e0775c0d3e988dadaa9d76164495268e114c4e0b1c944443afa161c1bd
EBUILD gitea-1.8.0.ebuild 2111 BLAKE2B 0b276a4b0902a398b5ac3c34a744ac2464e796cf73682b88eac603db49032fd3ff0dc989d1710a99b240616628c6739b06e8e92222c939edc8d61a331ed96e6d SHA512 665ff73ea3a26d9274dfeb95c98c58876782ae5a99491f591ed4cb6b93de3312dad411e0775c0d3e988dadaa9d76164495268e114c4e0b1c944443afa161c1bd
MISC metadata.xml 248 BLAKE2B 0f4a45d414249f9410a61d8545ba052db41e3d74516e34bff0ca5547cae55db7eefffb2c23d840c979bdea0b927da36f7a56441cbc6053291d65bd39af2421bd SHA512 0f6384333cf38e52e6a67db43f3a78723d2a0d3446da27e7972f15244d96ae41f0e428d937538d4fa52aa70dc9c92920672d4e237b481dbbdff1d9d8c325b33d
-----BEGIN PGP SIGNATURE-----
iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXLaWDgAKCRDPw5SX8bJu
B5QHAP9t+sr72iRepZ154kwuYO9cg1SkJV06ZrQ1Gg2evPb9fgD+IFzmEKWJPUVa
paxi88QD7y3wO6XCaxnDTU10Fh77ZR0=
=9E6P
iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXLv0JQAKCRDPw5SX8bJu
B+OTAQCAKT6aNiDYZZ0MhtoQ0zIB+m8DDNalTY+UGgO0eOZ7EgD+N2rigTwz00xp
+UbSMFiaIIi0SHCihvlGyZ1oV6WN2AI=
=FN6D
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,71 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit fcaps golang-build golang-vcs-snapshot systemd user
EGO_PN="code.gitea.io/gitea"
KEYWORDS="~amd64 ~arm"
DESCRIPTION="A painless self-hosted Git service, written in Go"
HOMEPAGE="https://gitea.io/"
SRC_URI="https://github.com/go-gitea/gitea/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
DEPEND="
dev-go/go-bindata
sys-libs/pam
"
RDEPEND="
dev-vcs/git[curl,threads]
sys-libs/pam
"
FILECAPS=( cap_net_bind_service+ep usr/bin/gitea )
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="" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build
}
src_install() {
diropts -m0750 -o git -g git
keepdir /var/log/gitea /var/lib/gitea /var/lib/gitea/data
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 gitea
newconfd "${FILESDIR}"/gitea.confd gitea
keepdir /var/log/gitea /var/lib/gitea/data
systemd_dounit "${FILESDIR}/gitea.service"
}
pkg_postinst() {
fcaps_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
elog "Please make sure that your 'git' user has the correct homedir (/var/lib/gitea)."
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
}