diff options
author | Pedro Arizmendi <dwosky@pm.me> | 2021-01-23 20:06:32 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-02-03 12:33:05 +0200 |
commit | 083f01e9d24e6f053499c0cd49fc59785d767791 (patch) | |
tree | 287c9436f5a3fb9eb42c516c5157762a39ce27e2 /www-misc/monitorix | |
parent | app-misc/radeontop: bump to 1.3 (diff) | |
download | gentoo-083f01e9d24e6f053499c0cd49fc59785d767791.tar.gz gentoo-083f01e9d24e6f053499c0cd49fc59785d767791.tar.bz2 gentoo-083f01e9d24e6f053499c0cd49fc59785d767791.zip |
www-misc/monitorix: Version bump to 3.13.1
Signed-off-by: Pedro Arizmendi <dwosky@pm.me>
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Closes: https://github.com/gentoo/gentoo/pull/19183
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'www-misc/monitorix')
-rw-r--r-- | www-misc/monitorix/Manifest | 1 | ||||
-rw-r--r-- | www-misc/monitorix/monitorix-3.13.1.ebuild | 91 |
2 files changed, 92 insertions, 0 deletions
diff --git a/www-misc/monitorix/Manifest b/www-misc/monitorix/Manifest index 8813b2945668..4d6fde28788e 100644 --- a/www-misc/monitorix/Manifest +++ b/www-misc/monitorix/Manifest @@ -1 +1,2 @@ DIST monitorix-3.12.0.tar.gz 348117 BLAKE2B 65f6e5a8ef4acba2e5dd015e3acab1c927a8964de6cf0bb56a426e6e2dc5843083177591f26db639ed36df798db9659cd6345ca38df4f25fc9a4759e84f0d553 SHA512 7cbdb27df1d84e87f0b99d310d3b3a7c27e369adc82c88e297966e36de82c2f800474447dd628041f2feb89817ee496cbae65a4b0e4942a2f75c900f16ccfcf1 +DIST monitorix-3.13.1.tar.gz 364091 BLAKE2B 0e11d1df2d5cbc4a7ec7b448b24409411903370b5fc0f35f7395439b017d0ce27e3d86fe19db70939942165a9e4bf72583030fdcd1b9c0b5be484c1c71af021e SHA512 224ccedd608cda609ea161f62e11266c13f26536d7e3c50a3690ace693ed52c71422f2ef0acabb4e8d69551458a6af2c33e6b776b1dec73cbf621a7f40339573 diff --git a/www-misc/monitorix/monitorix-3.13.1.ebuild b/www-misc/monitorix/monitorix-3.13.1.ebuild new file mode 100644 index 000000000000..61230025cd86 --- /dev/null +++ b/www-misc/monitorix/monitorix-3.13.1.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit systemd optfeature + +DESCRIPTION="A lightweight system monitoring tool" +HOMEPAGE="https://www.monitorix.org/" +SRC_URI="https://www.monitorix.org/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + acct-user/monitorix + acct-group/monitorix + dev-perl/Config-General + dev-perl/DBI + dev-perl/HTTP-Server-Simple + dev-perl/IO-Socket-SSL + dev-perl/libwww-perl + dev-perl/MIME-Lite + dev-perl/XML-Simple + net-analyzer/rrdtool[graph,perl] + dev-perl/CGI" + +src_prepare() { + # Put better Gentoo defaults in the configuration file. + sed -e "s|\(base_dir.*\)/usr/share/${PN}|\1/usr/share/${PN}/htdocs|" \ + -e "s|\(secure_log.*\)/var/log/secure|\1/var/log/auth.log|" \ + -e "s|nobody|${PN}|g" -i ${PN}.conf || die + # Update systemd binary location + sed -e "s|/usr/bin|/usr/sbin|g" -i docs/${PN}.service || die + eapply_user +} + +# Override compile phase +src_compile() { :; } + +src_install() { + dosbin ${PN} + + newinitd "${FILESDIR}/monitorix" ${PN} + + insinto /etc/monitorix + doins ${PN}.conf + + keepdir /etc/${PN}/conf.d + + insinto /etc/logrotate.d + newins docs/${PN}.logrotate ${PN} + + dodoc Changes README{,.nginx} docs/${PN}-{alert.sh,apache.conf,lighttpd.conf} + doman man/man5/${PN}.conf.5 + doman man/man8/${PN}.8 + + insinto /var/lib/${PN}/www + doins logo_bot.png logo_top.png ${PN}ico.png + + keepdir /var/lib/${PN}/www/imgs + fowners monitorix:monitorix /var/lib/${PN}/www/imgs + + exeinto /var/lib/${PN}/www/cgi + doexe ${PN}.cgi + + exeinto /usr/lib/${PN} + doexe lib/*.pm + + keepdir /var/lib/${PN}/usage + insinto /var/lib/${PN}/reports + doins -r reports + + systemd_dounit docs/${PN}.service +} + +pkg_postinst() { + elog "Optional dependencies:" + optfeature "disk drive temperatures and health" app-admin/hddtemp + optfeature "email reports/statics" mail-mta/postfix mail-mta/sendmail + optfeature "lm-sensors and GPU temperatures" sys-apps/lm-sensors + optfeature "APC UPS statistics" sys-power/apcupsd + optfeature "Network UPS Tools statistics" sys-power/nut + elog + elog "If you wish to use your own web server:" + elog " Web data can be found at: ${EROOT}/var/lib/${PN}/www/" + elog " Also please check the correct user and group ownership" + elog " of ${EROOT}/var/lib/${PN}/www/imgs/" +} |