Gentoo Archives: gentoo-commits

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