Added ebuilds for volkszaehler | updated flexget and dependencies

This commit is contained in:
layman
2018-11-20 11:16:33 +01:00
parent 1b8701b121
commit 24d117186a
19 changed files with 678 additions and 20 deletions
+2
View File
@@ -0,0 +1,2 @@
AUX vzlogger.logrotate 71 BLAKE2B ac41e0c56cd3ddc1432635ce2ef9c6e383dab49422215b6610ebbff8890916308caf22cc6d10c86e126190dfb8d18f2c6b13f2078c7febcab7a48ca52878f6e5 SHA512 cbb813856a949bd4e11a552def0ce18e55f7127e8a03c7e5d42302f49e79bba004a9f80789f554899c7f5304b555bcc2d85ad837b00e8201550c1a642b64c17a
EBUILD vzlogger-9999.ebuild 1508 BLAKE2B 9ec428e28b64da419961d7c86ea01d55cfe6cee914b60bbf09245927316f4d3c24128f5fcc2324b4493e28b168715a6986412845efc12ba7cda637ed8a659604 SHA512 70f677052c8f0f38e442ac641d250bd9faef0d692cf6690b646a42701359a2dc8b479c503b851211e8dc09380ad3dd797f65acbfcd731e0003502d54c9e6bc47
@@ -0,0 +1,6 @@
/var/log/vzlogger.log {
rotate 3
missingok
compress
copytruncate
}
@@ -0,0 +1,68 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit cmake-utils systemd
if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="https://github.com/volkszaehler/${PN}"
inherit git-r3
KEYWORDS=""
else
SRC_URI=""
KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="A tool to read and log measurements of a wide variety of smart meters and sensors to the volkszaehler.org middleware"
HOMEPAGE="https://github.com/volkszaehler/vzlogger"
LICENSE="GPL-3"
SLOT="0"
IUSE="+logrotate +microhttpd ocr oms +sml systemd"
RDEPEND="dev-libs/json-c
logrotate? ( app-admin/logrotate )
microhttpd? ( net-libs/libmicrohttpd )
ocr? ( media-libs/leptonica app-text/tesseract )
oms? ( sci-libs/libmbus )
sml? ( sci-libs/libsml )
"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare() {
default
cmake-utils_src_prepare
sed -e "s@ExecStart=/usr/local/bin/vzlogger@ExecStart=/usr/bin/vzlogger@" \
-i ${S}/etc/vzlogger.service \
|| die "sed failed"
}
src_configure() {
local mycmakeargs=(
-DBUILD_TEST=off
-DENABLE_LOCAL=$(usex microhttpd)
-DENABLE_OCR=$(usex ocr)
-DENABLE_OCR_TESSERACT=$(usex ocr)
-DENABLE_OMS=$(usex oms)
-DENABLE_SML=$(usex sml)
)
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
insinto /etc
doins ${S}/etc/vzlogger.conf
if use logrotate; then
insinto /etc/logrotate.d
newins ${FILESDIR}/vzlogger.logrotate vzlogger
fi
use systemd && systemd_dounit ${S}/etc/vzlogger.service
}