aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/influxdb/influxdb-1.0.2.ebuild')
-rw-r--r--dev-db/influxdb/influxdb-1.0.2.ebuild38
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-db/influxdb/influxdb-1.0.2.ebuild b/dev-db/influxdb/influxdb-1.0.2.ebuild
new file mode 100644
index 0000000..2a6907b
--- /dev/null
+++ b/dev-db/influxdb/influxdb-1.0.2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+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"
+
+RESTRICT="mirror"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+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}"
+ newconfd "${FILESDIR}/${PN}.conf.d" "${PN}"
+ newinitd "${FILESDIR}/${PN}.init.d" "${PN}"
+}