Updated flexget and dependencies / repaired vzlogger

This commit is contained in:
layman
2021-11-30 16:14:32 +01:00
parent e7281f8446
commit af0830e3ef
28 changed files with 273 additions and 344 deletions
+5
View File
@@ -0,0 +1,5 @@
AUX gitea.confd-r1 243 BLAKE2B 87caa8371f53f52b0a85f720342f9f358dedec9240ab78998655a03df6bf3f301fe077afabdca1b1895dbcab2fa05748735d6f38f9b3ad53534fe8ae6e72db49 SHA512 485dc9d0b86d0a7b3ba958aac9de1129aa0ffbb47219419d38811f2accca2539e49dd93cc4a24b21f1c3802b024aa8449f54e320e8a16197f201532edeca6836
AUX gitea.initd-r3 802 BLAKE2B 2e33e95f7d2762986184d45b0bbb250cc5e04fffc4e4b006233b28e5b57be69eef1d83441adebe2b94681585edaf77f9da4eb97930f91e75c1b1a5cd8d137633 SHA512 5ff2e653180a0601734fcd055dfffdfdc12363736ed2e56c8576c802398b90f4025b44002cbb9a3fd1e0c2d4c169f62d460381c6c549746d3390e55fc1c677d1
AUX gravo.default 137 BLAKE2B c73221584bc53eef8bf43f5ee1595605b0d2cd3b2e5b400d9a8798ab1d05e7b38350adbd7d619671d9b15d90ef85e216743c521fe676390daf53a17a70c8f9ae SHA512 f6a19198e6ae9c6036d308dce8e14466950150bf2bf1d4a30bf9aa4e4106fd7022a72b9c5705929d9cdc3161e7852eb90ebfa7a939f542b9f76d8028f5dc9fd5
AUX gravo.service 319 BLAKE2B dd71c6a336d566036a2c514949c1824925fa9f5f2e3aa13d6e4f7b00583459382b6962247bb244f98392d2e92e77f1b8143429a319a335d4510a3faa71fc954b SHA512 d2f5b0b63e2d7375752a69df0add5495580a05bfe0525e321ad755c6b720cd9ffc0e243109aef18c3b079bca47c9a1a49d01bc47782d5ec484f3c61cba89dc2d
EBUILD gravo-9999.ebuild 927 BLAKE2B d63751d5bdec8cd01676ea8118d460770ce5a5e4f316aa27780d6edc9d04184abb4684500e0a6d5eb2e3eb51f35a75be7c00967ad13a894c7b50621f5c21f82b SHA512 5fe992efca24d459afdec04f3decf64600288997b9f917add644a66c24b451dd6a182b68f829b8c41532e71989420bfc317708c5b58f77ada4eaa1df439dc5c9
+14
View 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
View 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"
pidfile="/run/${RC_SVCNAME}.pid"
required_files="${GITEA_CONF}"
start_stop_daemon_args="-d ${GITEA_WORK_DIR}"
start_stop_daemon_args="${start_stop_daemon_args} -e GITEA_WORK_DIR=${GITEA_WORK_DIR}"
start_stop_daemon_args="${start_stop_daemon_args} -e GITEA_CUSTOM=${GITEA_CUSTOM}"
+5
View File
@@ -0,0 +1,5 @@
# Middleware API gravo connects to
GRAVO_API=https://demo.volkszaehler.org/middleware.php
# URL gravo listens on
GRAVO_URL=0.0.0.0:8000
+18
View File
@@ -0,0 +1,18 @@
[Unit]
Description=Gravo
Documentation=https://github.com/andig/gravo
After=network.target
Requires=network.target
After=grafana.service
[Service]
EnvironmentFile=-/etc/default/gravo
ExecStart=/usr/bin/gravo -api $GRAVO_API -url $GRAVO_URL
Restart=always
PrivateTmp=true
Nice=5
[Install]
WantedBy=multi-user.target
+49
View File
@@ -0,0 +1,49 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit go-module systemd
DESCRIPTION="Grafana for Volkszaehler"
HOMEPAGE="https://github.com/andig/gravo"
if [[ ${PV} != 9999* ]] ; then
SRC_URI="https://github.com/andig/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}"
else
EGIT_REPO_URI="https://github.com/andig/${PN}.git"
inherit git-r3
S="${WORKDIR}/${P}"
fi
LICENSE="MIT"
SLOT="0"
IUSE=""
BDEPEND=">=dev-lang/go-1.13
dev-go/golint"
DEPEND=""
RDEPEND="www-apps/grafana-bin"
DOCS=(
doc/dashboard.{json,png} doc/datasource.png doc/panel.png README.md
)
RESTRICT="test"
src_prepare() {
sed -i "s/golangci-lint/golint/" ${S}/Makefile || die
default
}
src_install() {
dobin gravo
einstalldocs
systemd_dounit "${FILESDIR}"/gravo.service
insinto /etc/default
newins "${FILESDIR}"/gravo.default gravo
}