update dev-lang/go, www-apps/gitea ebuilds
This commit is contained in:
7
www-apps/gitea/Manifest
Normal file
7
www-apps/gitea/Manifest
Normal file
@@ -0,0 +1,7 @@
|
||||
AUX app.ini 67 BLAKE2B 4ec7b8217486047b419202b3a8a7172ac21ae0e5ad9224cd4f010be730ac5cda9d05bf06dcba2d06f8809900094b3b007ef98dd4ea20a125fb7d3db279f53e4a SHA512 93f6f7cf49dd1ece56f7da711adbb58cc38a503527aeea140837d74456ee6f550a089e897d9cb94382e1eb3f5a5cbe4a61362534463eada08a91f314da0f2108
|
||||
AUX gitea.confd-r1 243 BLAKE2B 87caa8371f53f52b0a85f720342f9f358dedec9240ab78998655a03df6bf3f301fe077afabdca1b1895dbcab2fa05748735d6f38f9b3ad53534fe8ae6e72db49 SHA512 485dc9d0b86d0a7b3ba958aac9de1129aa0ffbb47219419d38811f2accca2539e49dd93cc4a24b21f1c3802b024aa8449f54e320e8a16197f201532edeca6836
|
||||
AUX gitea.initd-r2 736 BLAKE2B abb2733808783b3654b51493451950c07237c005897c630f8ce095f0bacb7f1e59c61f0f1663c5daddcab08121c54eaba4de953d6e03ce1c7b405d0e7de597b6 SHA512 42321bbfaa844ef246b825d36bc1b8227b34d4cb7a5c4ced706203c40dd345e4c163e18bfdaa4899154d6c405f8e42b9b7ea0657e048c496ede1976d958d2228
|
||||
AUX gitea.service-r1 557 BLAKE2B 0d255654da33fb9155a6bc29896ab164597667c252b680e2b945109163c09feaa88c28776277a9c7f00d6b5b66cb24bda50e99dde354a5d18ed61597fb1ce917 SHA512 cabe0a1b5a5f435f4fa5b3c20fb76ad1b248463fa681e55a4ae66b027f00574c1fcb65f1841c0bc52b7188a02c0fc05bfa9b11931d26c5efce6b988d4b7a8f57
|
||||
DIST gitea-1.8.1.tar.gz 24304805 BLAKE2B 4300125da2116218c0609bb8974b2abea22593161dd60e12390eea7e60865df40a089126748b3f5c9e856b2c59fdb6a4b9997c6d0bb9743ceb0c413c41caa903 SHA512 b583ba21ae9c896d527d299d5a14f7b99e40b474da7ca40521487f0459c877da9c21825b40dc0f981af7813bcabca11f62d8076cc1e401adda57d0e0505b96ce
|
||||
EBUILD gitea-1.8.1.ebuild 2441 BLAKE2B 017544ba40e11c49b62ac5657c59c836cacbe8c57164c0549bc34609072d3bd3aae5834c0166f600d38cfebc7805a0ad63bac57b66daa7df1dfde5c74d047f9c SHA512 32792428fe7f93f597c22134a9d946b31eed9424c065c8fc0f74896a6c6c3283df0c7d29da93e23c70f841498f6d9dc5cf1740aeae247c6c5583aedcd128150e
|
||||
MISC metadata.xml 563 BLAKE2B 00090c9965433ee21c5ebb4cd7ff83f3c16a870acd9da92842a53349a4bf38dc1239be17ec7545e5b0a44c07e2c93d3dbff599b37fcd4366a2ff41952cb513cb SHA512 fbf0fca0af8b73494e20a965f99f101e7ed08927b8b303189f69586e59b57bdc07781353b9bbd9ba904a53efa85fa91e4a76341ca2083cf9f6769448de700222
|
||||
4
www-apps/gitea/files/app.ini
Normal file
4
www-apps/gitea/files/app.ini
Normal file
@@ -0,0 +1,4 @@
|
||||
[log]
|
||||
MODE = file
|
||||
LEVEL = Info
|
||||
ROOT_PATH = /var/log/gitea
|
||||
14
www-apps/gitea/files/gitea.confd-r1
Normal file
14
www-apps/gitea/files/gitea.confd-r1
Normal file
@@ -0,0 +1,14 @@
|
||||
# Gitea configuration
|
||||
GITEA_CONF="/etc/gitea/app.ini"
|
||||
|
||||
# Gitea user
|
||||
GITEA_USER="git"
|
||||
|
||||
# Gitea group
|
||||
GITEA_GROUP="git"
|
||||
|
||||
# Gitea working directory
|
||||
GITEA_WORK_DIR="/var/lib/gitea"
|
||||
|
||||
# Gitea custom directory
|
||||
GITEA_CUSTOM="${GITEA_WORK_DIR}/custom"
|
||||
22
www-apps/gitea/files/gitea.initd-r2
Normal file
22
www-apps/gitea/files/gitea.initd-r2
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/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"
|
||||
|
||||
: ${GITEA_CONF:=/etc/gitea/app.ini}
|
||||
: ${GITEA_USER:=git}
|
||||
: ${GITEA_GROUP:=git}
|
||||
: ${GITEA_WORK_DIR:=/var/lib/gitea}
|
||||
: ${GITEA_CUSTOM:=${GITEA_WORK_DIR}/custom}
|
||||
|
||||
command="/usr/bin/gitea web"
|
||||
command_args="--config ${GITEA_CONF}"
|
||||
command_background="true"
|
||||
command_user="${GITEA_USER}:${GITEA_GROUP}"
|
||||
error_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.err"
|
||||
output_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
required_files="${GITEA_CONF}"
|
||||
start_stop_daemon_args="-e GITEA_WORK_DIR=${GITEA_WORK_DIR} \
|
||||
-e GITEA_CUSTOM=${GITEA_CUSTOM}"
|
||||
28
www-apps/gitea/files/gitea.service-r1
Normal file
28
www-apps/gitea/files/gitea.service-r1
Normal file
@@ -0,0 +1,28 @@
|
||||
[Unit]
|
||||
Description=Gitea service
|
||||
Documentation=https://docs.gitea.io/
|
||||
|
||||
AssertPathIsDirectory=/var/lib/gitea
|
||||
AssertPathIsReadWrite=/var/lib/gitea
|
||||
|
||||
After=network.target
|
||||
Requires=network.target
|
||||
After=mysqld.service
|
||||
After=postgresql.service
|
||||
After=memcached.service
|
||||
After=redis.service
|
||||
|
||||
[Service]
|
||||
User=git
|
||||
Group=git
|
||||
|
||||
Environment="GITEA_WORK_DIR=/var/lib/gitea GITEA_CUSTOM=/var/lib/gitea/custom"
|
||||
WorkingDirectory=/var/lib/gitea
|
||||
ExecStart=/usr/bin/gitea web --config /etc/gitea/app.ini
|
||||
|
||||
Restart=always
|
||||
PrivateTmp=true
|
||||
Nice=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
85
www-apps/gitea/gitea-1.8.1.ebuild
Normal file
85
www-apps/gitea/gitea-1.8.1.ebuild
Normal file
@@ -0,0 +1,85 @@
|
||||
# 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 ~arm64"
|
||||
|
||||
DESCRIPTION="A painless self-hosted Git service"
|
||||
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"
|
||||
|
||||
COMMON_DEPEND="pam? ( sys-libs/pam )"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
dev-go/go-bindata"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
dev-vcs/git"
|
||||
|
||||
DOCS=( custom/conf/app.ini.sample CONTRIBUTING.md README.md )
|
||||
S="${WORKDIR}/${P}/src/${EGO_PN}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup git
|
||||
enewuser git -1 /bin/bash /var/lib/gitea git
|
||||
}
|
||||
|
||||
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"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
gitea_make generate
|
||||
gitea_make build
|
||||
}
|
||||
|
||||
src_test() {
|
||||
gitea_make test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
dobin gitea
|
||||
newconfd "${FILESDIR}"/gitea.confd-r1 gitea
|
||||
newinitd "${FILESDIR}"/gitea.initd-r2 gitea
|
||||
systemd_newunit "${FILESDIR}"/gitea.service-r1 gitea.service
|
||||
diropts -m0750 -o git -g git
|
||||
keepdir /etc/gitea
|
||||
keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data
|
||||
keepdir /var/log/gitea
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "The configuration path has been changed to ${EROOT}/etc/gitea/app.ini."
|
||||
ewarn "Please adapt the gitea-repositories hooks and ssh authorized_keys."
|
||||
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#' \\"
|
||||
ewarn " /var/lib/gitea/gitea-repositories/*/*/hooks/*/* \\"
|
||||
ewarn " /var/lib/gitea/.ssh/authorized_keys"
|
||||
|
||||
if [[ ! -e "${EROOT}/etc/gitea/app.ini" ]]; then
|
||||
elog "No app.ini found, copying initial config over"
|
||||
cp "${FILESDIR}"/app.ini "${EROOT}"/etc/gitea/ || die
|
||||
chown git:git "${EROOT}"/etc/gitea/app.ini || die
|
||||
elog "Please make sure that your 'git' user has the correct homedir (/var/lib/gitea)."
|
||||
else
|
||||
elog "app.ini found, please check the sample 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
|
||||
}
|
||||
19
www-apps/gitea/metadata.xml
Normal file
19
www-apps/gitea/metadata.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>xdch47@posteo.de</email>
|
||||
<name>Felix Neumärker</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>nemunaire@nemunai.re</email>
|
||||
<name>Pierre-Olivier Mercier</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">go-gitea/gitea</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user