Install this version:
emerge -a =app-metrics/queuemetrics-26.01.6.83
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-metrics/queuemetrics-26.01.6.83
Or alternatively:
emerge --autounmask-write -a =app-metrics/queuemetrics-26.01.6.83
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 26.01.6.83 | 8 | ~amd64 | 0 |
# Copyright 1999-2022 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=8
inherit systemd
TOMCAT_VERSION="9.0.121"
DESCRIPTION="A monitoring and reporting suite for asterisk based PBX"
HOMEPAGE="https://www.queuemetrics.com"
SRC_URI="https://archive.apache.org/dist/tomcat/tomcat-9/v${TOMCAT_VERSION}/bin/apache-tomcat-${TOMCAT_VERSION}.tar.gz \
https://downloads.loway.ch/software/${PN}/QueueMetrics-${PV}.tar.gz"
S="${WORKDIR}"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+mysql uniloader"
RESTRICT="mirror"
RDEPEND="acct-group/queuemetrics
acct-user/queuemetrics
virtual/jdk:1.8"
PDEPEND="mysql? ( virtual/mysql[server] )
uniloader? ( app-metrics/uniloader )"
pkg_setup() {
if [ "$( cat /opt/queuemetrics/tomcat/VERSION )" != "${TOMCAT_VERSION}" ]
then
ewarn
ewarn
ewarn "This ebuild will install a newer version of apache tomcat."
ewarn "You need to restart ${PN} as soon as possible to make the upgrade go into effect."
ewarn "For sys-apps/openrc users it is:"
ewarn "# /etc/init.d/${PN} restart"
ewarn
ewarn "For sys-apps/systemd users it is:"
ewarn "# systemctl restart ${PN}"
ewarn
ewarn
fi
}
src_install() {
keepdir /opt/${PN}/tomcat/{logs,temp,webapps,work}
insinto /opt/${PN}/tomcat
doins -r apache-tomcat-${TOMCAT_VERSION}/{bin,conf,lib}
cp "${FILESDIR}/server.xml" "${D}"/opt/${PN}/tomcat/conf/
fowners -R ${PN}:${PN} /opt/${PN}
fperms 0750 /opt/${PN}
cp -r ${P} "${D}"/opt/${PN}/tomcat/webapps/${PN}
newconfd "${FILESDIR}/${PN}.confd" ${PN}
newinitd "${FILESDIR}/${PN}.initd" ${PN}
systemd_dounit "${FILESDIR}/${PN}.service"
systemd_dounit "${FILESDIR}/${PN}.socket"
systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
doenvd "${FILESDIR}/25${PN}"
echo "${TOMCAT_VERSION}" > "${D}"/opt/${PN}/tomcat/VERSION
}
Manage flags for this package:
euse -i <flag> -p app-metrics/queuemetrics |
euse -E <flag> -p app-metrics/queuemetrics |
euse -D <flag> -p app-metrics/queuemetrics
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | QueueMetrics-26.01.6.83.tar.gz | 26646546 bytes | https://downloads.loway.ch/software/queuemetrics/QueueMetrics-26.01.6.83.tar.gz |
| DIST | apache-tomcat-9.0.121.tar.gz | 3143884 bytes | https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.121/bin/apache-tomcat-9.0.121.tar.gz |