forked from tastytea/overlay
www-apps/gitea: Version bump 1.9.0.
Package-Manager: Portage-2.3.69, Repoman-2.3.16 Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07
This commit is contained in:
parent
fdf446e1de
commit
b2fda44be9
|
@ -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.8.3.tar.gz 24320679 BLAKE2B 9ef901ef7e1cb6ffa9a2aa082798b7a18ac2a6fdb4379082df3f942d767a27fd3915c7a4d2cb1af6f502a8cde3c1c98557c42d4c0ef60be7bdad78d8931035e0 SHA512 f6019fbfc056e4c7176222ccaca1cf638bd1f52323de54fcddc618129aeb778674f6e305de60e7d17b69505ad65439445ee6b5e368afdf0a6fbace7407acb495
|
||||
DIST gitea-1.9.0.tar.gz 24057144 BLAKE2B 53db87b8172acad968b522d08e84be2e81d4ad8238c690b6c7746f3ba31506a21621c71d420928bc3d71b6e50f09c73c1806f76d11d34e80998fba2d6de6fd4c SHA512 3cc7fb5162c89d3f068b5909b9a86cbb6802c35009c64baae5428e3b406fcd1dba146ad964168557db174333efecc101a85b00f37dce4e016337ef1bb29149c6
|
||||
EBUILD gitea-1.8.3.ebuild 2111 BLAKE2B 0b276a4b0902a398b5ac3c34a744ac2464e796cf73682b88eac603db49032fd3ff0dc989d1710a99b240616628c6739b06e8e92222c939edc8d61a331ed96e6d SHA512 665ff73ea3a26d9274dfeb95c98c58876782ae5a99491f591ed4cb6b93de3312dad411e0775c0d3e988dadaa9d76164495268e114c4e0b1c944443afa161c1bd
|
||||
EBUILD gitea-1.9.0.ebuild 2111 BLAKE2B 0b276a4b0902a398b5ac3c34a744ac2464e796cf73682b88eac603db49032fd3ff0dc989d1710a99b240616628c6739b06e8e92222c939edc8d61a331ed96e6d SHA512 665ff73ea3a26d9274dfeb95c98c58876782ae5a99491f591ed4cb6b93de3312dad411e0775c0d3e988dadaa9d76164495268e114c4e0b1c944443afa161c1bd
|
||||
MISC metadata.xml 248 BLAKE2B 0f4a45d414249f9410a61d8545ba052db41e3d74516e34bff0ca5547cae55db7eefffb2c23d840c979bdea0b927da36f7a56441cbc6053291d65bd39af2421bd SHA512 0f6384333cf38e52e6a67db43f3a78723d2a0d3446da27e7972f15244d96ae41f0e428d937538d4fa52aa70dc9c92920672d4e237b481dbbdff1d9d8c325b33d
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXQfPlgAKCRDPw5SX8bJu
|
||||
By0lAQCADqw85gj9rwhBQKwZ5t4rrz4TE7MBYQDO5NeTTq1GIAD/ahb+6ORqhKEK
|
||||
FyTiF92TN29ugRNY4dkJwgXErtEi/HM=
|
||||
=cqmD
|
||||
iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXUGjkQAKCRDPw5SX8bJu
|
||||
Bzo6AP9Yo14SNX9HHT/YoZ8yxt3bKgJp7zTRIxSgkneNrVWUAQD/TxO5NMZkkqSl
|
||||
Uwz9dDE/pp9SFZZw5Zl2sstev3rwnY4=
|
||||
=WBId
|
||||
-----END PGP SIGNATURE-----
|
||||
|
|
71
www-apps/gitea/gitea-1.9.0.ebuild
Normal file
71
www-apps/gitea/gitea-1.9.0.ebuild
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user