www-apps/gitea: bump to 1.7.4
Closes: #1 Package-Manager: Portage-2.3.62, Repoman-2.3.11 Manifest-Sign-Key: 0DEDF1A904568BAD1FC45C283DCC44782ED07E1C
This commit is contained in:
parent
0a46cd6647
commit
30bbd9a7f7
@ -1,8 +1,25 @@
|
|||||||
AUX app.ini 67 BLAKE2B 4ec7b8217486047b419202b3a8a7172ac21ae0e5ad9224cd4f010be730ac5cda9d05bf06dcba2d06f8809900094b3b007ef98dd4ea20a125fb7d3db279f53e4a SHA512 93f6f7cf49dd1ece56f7da711adbb58cc38a503527aeea140837d74456ee6f550a089e897d9cb94382e1eb3f5a5cbe4a61362534463eada08a91f314da0f2108
|
-----BEGIN PGP SIGNED MESSAGE-----
|
||||||
|
Hash: SHA256
|
||||||
|
|
||||||
AUX gitea.confd 74 BLAKE2B 656800d35c8f0075005e7e9e5c804292f9884663f89f653426064a20cfbcb518f736bd94947a03bce5adad670fb6150d93026999d6d5395f37a85666b6663a2f SHA512 3e05bad19cd924c4375d9ca6fc57142ba4b5ec897a1c789c3fc9710dfcfee209a199c95040eece089ad93e0357486ab98fad0c448a61e318646b7a71845e9a25
|
AUX gitea.confd 74 BLAKE2B 656800d35c8f0075005e7e9e5c804292f9884663f89f653426064a20cfbcb518f736bd94947a03bce5adad670fb6150d93026999d6d5395f37a85666b6663a2f SHA512 3e05bad19cd924c4375d9ca6fc57142ba4b5ec897a1c789c3fc9710dfcfee209a199c95040eece089ad93e0357486ab98fad0c448a61e318646b7a71845e9a25
|
||||||
|
AUX gitea.confd-r2 168 BLAKE2B ce8af102f8f8a22429a780d7cac5336fd0cce7508948faab5871903ec7ac10d4de6da3c76d565c38233595803c669f941e41975899c6a04d3f081aa78efe2836 SHA512 ec0a9761eb13fcf82bb3aab48e22fb0a28ba0775b2469427f805ea8fae0f23003edfa0bf695b5228f638a738a908935a3094446b70a04d102b75c3a3a3ec921f
|
||||||
AUX gitea.initd-r1 764 BLAKE2B 5162535625a926d9d94ea50fd892bc423170913d38cb00a2782a04e5dc2b096689ee4b5bce8ced48fd5ecd0e7b5900c4346aeb3ec93e6405ebd17416f9d5f316 SHA512 9acfcc7fbb63feac97d5e9da0d629ef82473bc840097fd1d496f716e49746c14d999915a124d99defb6c4b62c108251fad78e5ff738d8119f2d9f4bbb1cd311f
|
AUX gitea.initd-r1 764 BLAKE2B 5162535625a926d9d94ea50fd892bc423170913d38cb00a2782a04e5dc2b096689ee4b5bce8ced48fd5ecd0e7b5900c4346aeb3ec93e6405ebd17416f9d5f316 SHA512 9acfcc7fbb63feac97d5e9da0d629ef82473bc840097fd1d496f716e49746c14d999915a124d99defb6c4b62c108251fad78e5ff738d8119f2d9f4bbb1cd311f
|
||||||
|
AUX gitea.initd-r2 676 BLAKE2B db270a63834340c88557888b1275f27fc57e1ddb27f9dce6aa12641191d44e270d0f15a01ca42c881d2e43e284a3617fc8312593579df9a94177dd16c5ccf0b0 SHA512 56219ee242d73ef79ceb7bd1b826c9b5d2385a62e04e85ee7ca93abadffd5e54197ce93888499a5bc20d22d0fba7d02640de42283ce578e8e5bec05d5877b92f
|
||||||
AUX gitea.logrotated 87 BLAKE2B 373830ddd6eed0ce2f0f7b1dab14e4a253e5a56a73f477cfadbc6deec373846d4df2d697735391581771699d5a6513acb0e14a446873de01eba10d19e3a6bd88 SHA512 798f3fc33026f19dd31ffa78b9b1ed313d7b82b19c047f509e896c1798b2925a1bb7c4998d98a6b47e728979bf7132fb1c2a80eb7fda096a763d6791631cb6d4
|
AUX gitea.logrotated 87 BLAKE2B 373830ddd6eed0ce2f0f7b1dab14e4a253e5a56a73f477cfadbc6deec373846d4df2d697735391581771699d5a6513acb0e14a446873de01eba10d19e3a6bd88 SHA512 798f3fc33026f19dd31ffa78b9b1ed313d7b82b19c047f509e896c1798b2925a1bb7c4998d98a6b47e728979bf7132fb1c2a80eb7fda096a763d6791631cb6d4
|
||||||
AUX gitea.service 525 BLAKE2B c6c7e9b0dc5822182757e6071c75821242da3435e31385dc5154dc674d38e9a026909011c6edee2fa78e2f6c31ddc0ba494a0230610b3a6da3d716230cb54c6b SHA512 a407dbef960e251bb012194b4019d6e29b1473cd989f2c4706b5ab3a7cea1645a7e68eae8a64cc7d77e8ca08280e2ac1f7df47498c6a4c9e685e3741dc9d56a9
|
AUX gitea.service 525 BLAKE2B c6c7e9b0dc5822182757e6071c75821242da3435e31385dc5154dc674d38e9a026909011c6edee2fa78e2f6c31ddc0ba494a0230610b3a6da3d716230cb54c6b SHA512 a407dbef960e251bb012194b4019d6e29b1473cd989f2c4706b5ab3a7cea1645a7e68eae8a64cc7d77e8ca08280e2ac1f7df47498c6a4c9e685e3741dc9d56a9
|
||||||
DIST gitea-1.7.2.tar.gz 20841049 BLAKE2B 1f39cf039dec3a76d3df8cf75905ab03bcde83b74bdd1f3c2249065633bd8b3de52ae8adb543b68d65dca35dfb16659120d04b0472ed11798551889851df1dab SHA512 8472effb58cc0c416b229ae3724c4e914afd81f058b06ce0c6ea68667a77eaa122a78b928fd5d4cb2e1b00eac15ec76825cd800c769fdc88796a535206a4dff6
|
DIST gitea-1.7.2.tar.gz 20841049 BLAKE2B 1f39cf039dec3a76d3df8cf75905ab03bcde83b74bdd1f3c2249065633bd8b3de52ae8adb543b68d65dca35dfb16659120d04b0472ed11798551889851df1dab SHA512 8472effb58cc0c416b229ae3724c4e914afd81f058b06ce0c6ea68667a77eaa122a78b928fd5d4cb2e1b00eac15ec76825cd800c769fdc88796a535206a4dff6
|
||||||
|
DIST gitea-1.7.4.tar.gz 20858340 BLAKE2B 81d896d313abe25bc1a5becd16249c2ce39ab45d9f40ccf3a565b6777847c7256d5b131f597be237df57513a207978e23480ad3c6087bbc588afe8bbcd46d5c9 SHA512 eede6d410529b1facf65061256e48fee7d459aa12d8c55346d3ad78004a45b7bf667536979fe92270a85901102fd9cddb8183490e16f912b742e799ca912e370
|
||||||
EBUILD gitea-1.7.2.ebuild 2489 BLAKE2B f70b77afa52c325001bb17a3611f5abc62e65fb3a2767db979643fce0ac624c9bec479b6d9ac0ac63449b96025bfea7513cd6212f05a9e762ff659367b735f4b SHA512 20fac1c03557493cf0865b5c085dd55a4e4649f3716a49ed090486efd13595019099d628c447ac5671b62c33f94c844f6e68498a3ebae4313c0467b590de6151
|
EBUILD gitea-1.7.2.ebuild 2489 BLAKE2B f70b77afa52c325001bb17a3611f5abc62e65fb3a2767db979643fce0ac624c9bec479b6d9ac0ac63449b96025bfea7513cd6212f05a9e762ff659367b735f4b SHA512 20fac1c03557493cf0865b5c085dd55a4e4649f3716a49ed090486efd13595019099d628c447ac5671b62c33f94c844f6e68498a3ebae4313c0467b590de6151
|
||||||
|
EBUILD gitea-1.7.4.ebuild 3427 BLAKE2B 9de91b0309989ffc6d896b8a5d94e0ad5b092060bd9c1d3078ce0ba97205114cb2abdfd2ef225cb7bebb0c26b3698833b725d226e1d44a202aa84ecb19b45412 SHA512 72fcda3ee85950d2ebc251361786f7c63e4eddd068a8b47276f448a6d94cd6d44938a12a7d615a0deb7425b72e3eda9f19e31b328681b89701bdb98d06193fe5
|
||||||
MISC metadata.xml 258 BLAKE2B 56a930f47b1b24a142aa53c18ff04027c0d01a123c41953c1138c773d8aac67e9a193787bbd980fd2d16482f04e99365bd8538550dd3df3d1959935a7cc378e5 SHA512 bae5e9eb659f7355c95800c2231976b3f91dd6a1c9215d8c5865f3e710109c9442477d374a4e70f70ac73f52fd8ce357dfa937f7b7aababaeaea310677dc143d
|
MISC metadata.xml 258 BLAKE2B 56a930f47b1b24a142aa53c18ff04027c0d01a123c41953c1138c773d8aac67e9a193787bbd980fd2d16482f04e99365bd8538550dd3df3d1959935a7cc378e5 SHA512 bae5e9eb659f7355c95800c2231976b3f91dd6a1c9215d8c5865f3e710109c9442477d374a4e70f70ac73f52fd8ce357dfa937f7b7aababaeaea310677dc143d
|
||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
|
iQEzBAEBCAAdFiEEDe3xqQRWi60fxFwoPcxEeC7QfhwFAlyMwacACgkQPcxEeC7Q
|
||||||
|
fhykMQgAsAWsPuHEquoqvmyisViFKY5M6fErZR18eHj3uOl/9hpRpCQTdd+Pqc0e
|
||||||
|
FQghGwlavWhSEdrqhIflQDqdI9fsI2+aPrGsT8T+M/CwaFD02LJilbvDJM4JZaU2
|
||||||
|
YQ2hi42b2n3BTZ/Le21U3zjBWlWp+UT+psO639u12aS7sV+4hZUeLhkNvPh8IhM2
|
||||||
|
TFp5uEaVjmZ/7xhgIYlTtRbimbINVY0tE4i4Iu3MbAdrlVtTA8EIi2k4PkvhNfRA
|
||||||
|
1ptmBin02GVHIxMZcHlvrq8kY3EqtALHVyavbklgti19l9pIQdyEpJK9RjW5xpiz
|
||||||
|
GrKDYeGMawcizOBXqU4rkFz1AUNgzw==
|
||||||
|
=OqIc
|
||||||
|
-----END PGP SIGNATURE-----
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
[log]
|
|
||||||
MODE = file
|
|
||||||
LEVEL = Info
|
|
||||||
ROOT_PATH = /var/log/gitea
|
|
9
www-apps/gitea/files/gitea.confd-r2
Normal file
9
www-apps/gitea/files/gitea.confd-r2
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# config file path
|
||||||
|
GITEA_CONFIG="/etc/gitea/app.ini"
|
||||||
|
|
||||||
|
# git paths
|
||||||
|
GITEA_WORK_DIR="/var/lib/gitea"
|
||||||
|
GITEA_CUSTOM="${GITEA_WORK_DIR}/custom"
|
||||||
|
|
||||||
|
#GITEA_OPTS = "--port 3000"
|
24
www-apps/gitea/files/gitea.initd-r2
Normal file
24
www-apps/gitea/files/gitea.initd-r2
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#!/sbin/openrc-run
|
||||||
|
# Copyright 2016-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
description="Gitea, a self-hosted Git service"
|
||||||
|
pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
|
||||||
|
user=${user:-git}
|
||||||
|
group=${group:-git}
|
||||||
|
|
||||||
|
command="/usr/bin/gitea web"
|
||||||
|
command_args="--config ${GITEA_CONFIG:-/etc/gitea/app.ini} ${GITEA_OPTS}"
|
||||||
|
command_background="true"
|
||||||
|
start_stop_daemon_args="--user ${user} --group ${group} \
|
||||||
|
-e GITEA_WORK_DIR=${GITEA_WORK_DIR:-/var/lib/gitea} \
|
||||||
|
-e GITEA_CUSTOM=${GITEA_CUSTOM:-/var/lib/gitea/custom}"
|
||||||
|
|
||||||
|
depend() {
|
||||||
|
need net
|
||||||
|
after net
|
||||||
|
}
|
||||||
|
|
||||||
|
start_pre() {
|
||||||
|
checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}"
|
||||||
|
}
|
109
www-apps/gitea/gitea-1.7.4.ebuild
Normal file
109
www-apps/gitea/gitea-1.7.4.ebuild
Normal file
@ -0,0 +1,109 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
inherit 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"
|
||||||
|
IUSE="pam sqlite"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${P}/src/${EGO_PN}"
|
||||||
|
|
||||||
|
COMMON_DEPEND="pam? ( sys-libs/pam )"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
dev-go/go-bindata
|
||||||
|
"
|
||||||
|
RDEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
dev-vcs/git
|
||||||
|
"
|
||||||
|
|
||||||
|
GITEA_USER=git
|
||||||
|
GITEA_GROUP=git
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup ${GITEA_GROUP}
|
||||||
|
enewuser ${GITEA_USER} -1 /bin/bash /var/lib/gitea ${GITEA_GROUP}
|
||||||
|
}
|
||||||
|
|
||||||
|
gitea_make() {
|
||||||
|
local my_tags=(
|
||||||
|
bindata
|
||||||
|
$(usev pam)
|
||||||
|
$(usex sqlite 'sqlite sqlite_unlock_notify' '')
|
||||||
|
)
|
||||||
|
local my_makeopt=(
|
||||||
|
DRONE_TAG=${PV}
|
||||||
|
TAGS="${my_tags[@]}"
|
||||||
|
)
|
||||||
|
GOPATH=${WORKDIR}/${P}:$(get_golibdir_gopath) emake "${my_makeopt[@]}" $1 || die "make $1 failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
sed -i \
|
||||||
|
-e "s/-ldflags '-s/-ldflags '/" \
|
||||||
|
-e "s/GOFLAGS := -i -v/GOFLAGS := -v/" \
|
||||||
|
Makefile || die
|
||||||
|
sed -i \
|
||||||
|
-e "s#^RUN_MODE = dev#RUN_MODE = prod#" \
|
||||||
|
-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#" \
|
||||||
|
-e "s#^APP_ID =#;APP_ID =#" \
|
||||||
|
-e "s#^TRUSTED_FACETS =#;TRUSTED_FACETS =#" \
|
||||||
|
custom/conf/app.ini.sample || die
|
||||||
|
if use sqlite ; then
|
||||||
|
sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.ini.sample || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
gitea_make generate
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
gitea_make build
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
gitea_make test
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin gitea
|
||||||
|
|
||||||
|
diropts -m0750 -o ${GITEA_USER} -g ${GITEA_GROUP}
|
||||||
|
keepdir /var/log/gitea /var/lib/gitea /var/lib/gitea/data
|
||||||
|
newinitd "${FILESDIR}/gitea.initd-r2" gitea
|
||||||
|
newconfd "${FILESDIR}/gitea.confd-r2" gitea
|
||||||
|
systemd_dounit "${FILESDIR}/gitea.service"
|
||||||
|
|
||||||
|
insinto /etc/gitea
|
||||||
|
newins custom/conf/app.ini.sample app.ini
|
||||||
|
fowners root:${GITEA_GROUP} /etc/gitea/{,app.ini}
|
||||||
|
fperms o-rwx /etc/gitea/{,app.ini}
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if [[ -e "${EROOT}var/lib/gitea/conf/app.ini" ]] ; then
|
||||||
|
ewarn "The default path for the gitea configuration has been changed to ${EROOT}var/lib/gitea/conf/app.ini."
|
||||||
|
ewarn "In order to migrate the path in the gitea-repositories hooks and ssh authorized_keys have to be adapted."
|
||||||
|
ewarn "Depending on your configuration you should run something like:"
|
||||||
|
ewarn " sed -i -e 's#/var/lib/gitea/conf/app.ini#/etc/gitea/app.ini#' /var/lib/gitea/gitea-repositories/**/**/hooks/**/*"
|
||||||
|
ewarn " sed -i -e 's#/var/lib/gitea/conf/app.ini#/etc/gitea/app.ini#' /var/lib/gitea/.ssh/authorized_keys"
|
||||||
|
fi
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user