diff options
author | 2017-03-05 16:38:12 +0100 | |
---|---|---|
committer | 2017-03-05 16:38:12 +0100 | |
commit | 63747aa8223c11a8b5a72cfb7ea5628d99c09397 (patch) | |
tree | 7945fd4d36589019ca73712b1f075a645394fd3b | |
parent | add license (diff) | |
download | nico-63747aa8223c11a8b5a72cfb7ea5628d99c09397.tar.gz nico-63747aa8223c11a8b5a72cfb7ea5628d99c09397.tar.bz2 nico-63747aa8223c11a8b5a72cfb7ea5628d99c09397.zip |
add influxdb 1.1.4
-rw-r--r-- | dev-db/influxdb/Manifest | 1 | ||||
-rwxr-xr-x | dev-db/influxdb/files/influxdb.init.d | 31 | ||||
-rw-r--r-- | dev-db/influxdb/influxdb-1.1.4.ebuild | 37 | ||||
-rw-r--r-- | dev-db/influxdb/metadata.xml | 12 |
4 files changed, 81 insertions, 0 deletions
diff --git a/dev-db/influxdb/Manifest b/dev-db/influxdb/Manifest new file mode 100644 index 0000000..b8ad549 --- /dev/null +++ b/dev-db/influxdb/Manifest @@ -0,0 +1 @@ +DIST influxdb_1.1.4_amd64.deb 15547018 SHA256 260d5c39b5849098e85524dafdc54ff552107799e33c8e8b3f9ad4fc32926816 SHA512 41833240b6a5acdd73581692015bd15b3b3fc48442c671311568c6bcbe555cb13b2ba182ab71559a61d9a5cc215945ec3d5165f5fa90c99d79c77716b6843db1 WHIRLPOOL 468809d052d4b36f03c8541294817becf77cd49536b07b8f1e4a50508f87e6e0cf5c26f9a92841c2905b218958263a57375f771591b8828901ec21ea172cb58c diff --git a/dev-db/influxdb/files/influxdb.init.d b/dev-db/influxdb/files/influxdb.init.d new file mode 100755 index 0000000..c98c7b0 --- /dev/null +++ b/dev-db/influxdb/files/influxdb.init.d @@ -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 $? +} diff --git a/dev-db/influxdb/influxdb-1.1.4.ebuild b/dev-db/influxdb/influxdb-1.1.4.ebuild new file mode 100644 index 0000000..fc4beda --- /dev/null +++ b/dev-db/influxdb/influxdb-1.1.4.ebuild @@ -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} +} diff --git a/dev-db/influxdb/metadata.xml b/dev-db/influxdb/metadata.xml new file mode 100644 index 0000000..3572ce9 --- /dev/null +++ b/dev-db/influxdb/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>nico@overninethousand.de</email> + </maintainer> + <longdescription lang="en"> + InfluxDB is an open-source distributed time series database with no + external dependencies. It's useful for recording metrics, events, and + performing analytics. + </longdescription> +</pkgmetadata> |