add dev-db/influxdb

This commit is contained in:
Joerg Deckert 2017-05-18 11:26:03 +02:00
parent f715f4bdf5
commit 31faa73ce8
3 changed files with 71 additions and 0 deletions

3
dev-db/influxdb/Manifest Normal file
View File

@ -0,0 +1,3 @@
AUX influxdb.init.d 654 SHA256 5da3c6b67586d6617b140ada0ef5ef682971d1b4bcb4e4fb46c0724a5fb386cd SHA512 094d8eaea66406c25db985729006bcec511a7f8588fe8a89c60cc3ad6b2417c0df0320b687fcd81c42eb407fbaee7873af8b7d814b09c43188280f8146815978 WHIRLPOOL 01dd8d8225df31e0496d4f8ef962edb3c2f00de0874c4bc7960eb2dea6b8546cf3797f463ae977fc3536629fa68a21b8f511f7448e219ea529072cb86faea915
DIST influxdb_1.1.4_amd64.deb 15547018 SHA256 260d5c39b5849098e85524dafdc54ff552107799e33c8e8b3f9ad4fc32926816 SHA512 41833240b6a5acdd73581692015bd15b3b3fc48442c671311568c6bcbe555cb13b2ba182ab71559a61d9a5cc215945ec3d5165f5fa90c99d79c77716b6843db1 WHIRLPOOL 468809d052d4b36f03c8541294817becf77cd49536b07b8f1e4a50508f87e6e0cf5c26f9a92841c2905b218958263a57375f771591b8828901ec21ea172cb58c
EBUILD influxdb-1.1.4.ebuild 707 SHA256 5f5e2e3ae5c0cbcb5bf8eae495a5463fd81f4b1294d10520dcceed5068e16d97 SHA512 f274117b528c11644345d1bec8558ab9e38779cbb3751b654210a98b1c22eff3cd5cc40a682b963af5da7e82ef9bd67383a65ff0269594d93bc0f2dd592b2285 WHIRLPOOL e612178ee3873c6573a4c5419386ccd7fe08377bdb2ee56982958d44b00c3e5b96705c64aa8879e2fceed798380dfddf0a306d7adf57e66c3b976f97864a1856

View File

@ -0,0 +1,31 @@
#!/sbin/openrc-run
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
depend() {
need net
after bootmisc
}
start() {
ebegin "Starting influxdb server"
start-stop-daemon --start -b \
--user influxdb:influxdb \
--pidfile /run/influxdb.pid \
--make-pidfile \
--stdout /var/log/influxdb/influxd.log \
--stderr /var/log/influxdb/influxd.log \
--exec /usr/bin/influxd -- -config /etc/influxdb/influxdb.conf
eend $?
}
stop() {
ebegin "Stopping influxdb server"
start-stop-daemon --stop \
--pidfile /run/influxdb.pid \
--exec /usr/bin/influxd
eend $?
}

View File

@ -0,0 +1,37 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit user unpacker
DESCRIPTION="Scalable datastore for metrics, events, and real-time analytics"
HOMEPAGE="http://influxdb.com"
SRC_URI="https://dl.influxdata.com/influxdb/releases/${PN}_${PV}_amd64.deb"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
RESTRICT="mirror"
DEPEND=""
RDEPEND="${DEPEND}"
pkg_setup() {
enewgroup ${PN}
enewuser ${PN} -1 -1 "/var/lib/${PN}" ${PN}
}
src_unpack() {
mkdir -p ${WORKDIR}/${P}
cd ${WORKDIR}/${P}
unpack_deb ${A}
}
src_install() {
cp -Rp * "${D}"
newinitd "${FILESDIR}/${PN}.init.d" "${PN}"
fowners ${PN}:${PN} /var/log/${PN}
}