summaryrefslogtreecommitdiff
blob: 892d4e6f005aaa2ac2d62d3b1d0e9a5248aa9bbb (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
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# DISCLAIMER:
# This ebuild does NOT follow the Gentoo QA Rules, instead it follows the upstream way to install and run the application

EAPI=7

inherit user

DESCRIPTION="A go-based program that uploads data to a local or remote QueueMetrics"
HOMEPAGE="https://www.queuemetrics-live.com/uniloader.jsp"
LICENSE="all-rights-reserved"
SRC_URI="https://downloads.loway.ch/qm/${P}.tar.gz"
RESTRICT="mirror"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

pkg_setup() {
	enewgroup queuemetrics
	enewuser queuemetrics -1 -1 -1 queuemetrics
}

src_install() {
	dodir /opt/${PN}/bin
	exeinto /opt/${PN}/bin
	newexe bin/${PN}_amd64 ${PN}

	keepdir /var/log/${PN}
	fowners queuemetrics:queuemetrics /var/log/${PN}
	fperms 0750 /var/log/${PN}

	newconfd "${FILESDIR}/${PN}.confd" ${PN}
	newinitd "${FILESDIR}/${PN}.initd" ${PN}
}