Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-misc/monitorix/
Date: Sun, 06 Feb 2022 19:47:51
Message-Id: 1644176026.6a34360938ddf88e594cfb59792363c0d4501f52.ionen@gentoo
1 commit: 6a34360938ddf88e594cfb59792363c0d4501f52
2 Author: Pedro Arizmendi <dwosky <AT> pm <DOT> me>
3 AuthorDate: Wed Jan 19 17:31:58 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 6 19:33:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a343609
7
8 www-misc/monitorix: Version bump to 3.14.0
9
10 Signed-off-by: Pedro Arizmendi <dwosky <AT> pm.me>
11 Package-Manager: Portage-3.0.28, Repoman-3.0.3
12 Closes: https://github.com/gentoo/gentoo/pull/23872
13 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
14
15 www-misc/monitorix/Manifest | 1 +
16 www-misc/monitorix/monitorix-3.14.0.ebuild | 93 ++++++++++++++++++++++++++++++
17 2 files changed, 94 insertions(+)
18
19 diff --git a/www-misc/monitorix/Manifest b/www-misc/monitorix/Manifest
20 index 4d6fde28788e..6a6493638623 100644
21 --- a/www-misc/monitorix/Manifest
22 +++ b/www-misc/monitorix/Manifest
23 @@ -1,2 +1,3 @@
24 DIST monitorix-3.12.0.tar.gz 348117 BLAKE2B 65f6e5a8ef4acba2e5dd015e3acab1c927a8964de6cf0bb56a426e6e2dc5843083177591f26db639ed36df798db9659cd6345ca38df4f25fc9a4759e84f0d553 SHA512 7cbdb27df1d84e87f0b99d310d3b3a7c27e369adc82c88e297966e36de82c2f800474447dd628041f2feb89817ee496cbae65a4b0e4942a2f75c900f16ccfcf1
25 DIST monitorix-3.13.1.tar.gz 364091 BLAKE2B 0e11d1df2d5cbc4a7ec7b448b24409411903370b5fc0f35f7395439b017d0ce27e3d86fe19db70939942165a9e4bf72583030fdcd1b9c0b5be484c1c71af021e SHA512 224ccedd608cda609ea161f62e11266c13f26536d7e3c50a3690ace693ed52c71422f2ef0acabb4e8d69551458a6af2c33e6b776b1dec73cbf621a7f40339573
26 +DIST monitorix-3.14.0.tar.gz 393803 BLAKE2B 84a2b0a8417a405757e43c752b8e4aa0faf4c750895e5425801c3682f25671b8b4858ee4fdf94e4da181250c0ddbdc9237624af0d1dcbec4a29a8076f35a9fc6 SHA512 c7b11b2144b9cdcc5fdb33cfe208d5d5c7c8e27dfdacd51148a4077748632e592cf07dbecd5992c34ff4aea982e62a03a20d1920fe142da7f6ed5367729bfd2e
27
28 diff --git a/www-misc/monitorix/monitorix-3.14.0.ebuild b/www-misc/monitorix/monitorix-3.14.0.ebuild
29 new file mode 100644
30 index 000000000000..4201f609ca45
31 --- /dev/null
32 +++ b/www-misc/monitorix/monitorix-3.14.0.ebuild
33 @@ -0,0 +1,93 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI="7"
38 +
39 +inherit systemd optfeature
40 +
41 +DESCRIPTION="A lightweight system monitoring tool"
42 +HOMEPAGE="https://www.monitorix.org/"
43 +SRC_URI="https://www.monitorix.org/${P}.tar.gz"
44 +
45 +LICENSE="GPL-2+"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE=""
49 +
50 +RDEPEND="
51 + acct-user/monitorix
52 + acct-group/monitorix
53 + dev-perl/Config-General
54 + dev-perl/DBI
55 + dev-perl/HTTP-Server-Simple
56 + dev-perl/IO-Socket-SSL
57 + dev-perl/libwww-perl
58 + dev-perl/MIME-Lite
59 + dev-perl/XML-Simple
60 + net-analyzer/rrdtool[graph,perl]
61 + dev-perl/CGI"
62 +
63 +src_prepare() {
64 + # Put better Gentoo defaults in the configuration file.
65 + sed -e "s|\(base_dir.*\)/usr/share/${PN}|\1/usr/share/${PN}/htdocs|" \
66 + -e "s|\(secure_log.*\)/var/log/secure|\1/var/log/auth.log|" \
67 + -e "s|nobody|${PN}|g" -i ${PN}.conf || die
68 + # Update systemd binary location
69 + sed -e "s|/usr/bin|/usr/sbin|g" -i docs/${PN}.service || die
70 + eapply_user
71 +}
72 +
73 +# Override compile phase
74 +src_compile() { :; }
75 +
76 +src_install() {
77 + dosbin ${PN}
78 +
79 + newinitd "${FILESDIR}/monitorix" ${PN}
80 +
81 + insinto /etc/monitorix
82 + doins ${PN}.conf
83 +
84 + keepdir /etc/${PN}/conf.d
85 +
86 + insinto /etc/logrotate.d
87 + newins docs/${PN}.logrotate ${PN}
88 +
89 + dodoc Changes README{,.nginx} docs/${PN}-{alert.sh,apache.conf,lighttpd.conf}
90 + doman man/man5/${PN}.conf.5
91 + doman man/man8/${PN}.8
92 +
93 + insinto /var/lib/${PN}/www
94 + doins logo_bot.png logo_top.png ${PN}ico.png
95 +
96 + insinto /var/lib/${PN}/www/css
97 + doins css/*.css
98 +
99 + keepdir /var/lib/${PN}/www/imgs
100 + fowners monitorix:monitorix /var/lib/${PN}/www/imgs
101 +
102 + exeinto /var/lib/${PN}/www/cgi
103 + doexe ${PN}.cgi
104 +
105 + exeinto /usr/lib/${PN}
106 + doexe lib/*.pm
107 +
108 + keepdir /var/lib/${PN}/usage
109 + insinto /var/lib/${PN}/reports
110 + doins -r reports
111 +
112 + systemd_dounit docs/${PN}.service
113 +}
114 +
115 +pkg_postinst() {
116 + optfeature "disk drive temperatures and health" app-admin/hddtemp
117 + optfeature "email reports/statics" mail-mta/postfix mail-mta/sendmail
118 + optfeature "lm-sensors and GPU temperatures" sys-apps/lm-sensors
119 + optfeature "APC UPS statistics" sys-power/apcupsd
120 + optfeature "Network UPS Tools statistics" sys-power/nut
121 + elog
122 + elog "If you wish to use your own web server:"
123 + elog " Web data can be found at: ${EROOT}/var/lib/${PN}/www/"
124 + elog " Also please check the correct user and group ownership"
125 + elog " of ${EROOT}/var/lib/${PN}/www/imgs/"
126 +}