blob: fc4beda44345a03857a0b6219a6de82d5f98933c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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}
}
|