Closes: https://bugs.gentoo.org/694676
Signed-off-by: Pedro Arizmendi <dwosky@pm.me>
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Closes: https://github.com/gentoo/gentoo/pull/14739
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
EAPI="7"
-inherit systemd user
+inherit systemd
DESCRIPTION="A lightweight system monitoring tool"
HOMEPAGE="https://www.monitorix.org/"
KEYWORDS="amd64 x86"
IUSE=""
-RDEPEND="dev-perl/Config-General
+RDEPEND="
+ acct-user/monitorix
+ acct-group/monitorix
+ dev-perl/Config-General
dev-perl/DBI
dev-perl/HTTP-Server-Simple
dev-perl/IO-Socket-SSL
net-analyzer/rrdtool[graph,perl]
dev-perl/CGI"
-pkg_setup() {
- enewgroup ${PN}
- enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
-}
-
src_prepare() {
# Put better Gentoo defaults in the configuration file.
sed -e "s|\(base_dir.*\)/usr/share/${PN}|\1/usr/share/${PN}/htdocs|" \
src_install() {
dosbin ${PN}
- newinitd ${FILESDIR}/monitorix ${PN}
+ newinitd "${FILESDIR}/monitorix" ${PN}
insinto /etc/monitorix
doins ${PN}.conf