You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.3 KiB
58 lines
1.3 KiB
8 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
13 years ago
|
|
||
|
EAPI=4
|
||
13 years ago
|
|
||
10 years ago
|
DESCRIPTION="Script to create html and text report about your system"
|
||
13 years ago
|
HOMEPAGE="http://www.josealberto.org"
|
||
|
SRC_URI="mirror://gentoo/${P}.tbz2"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
12 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
13 years ago
|
IUSE=""
|
||
|
|
||
|
DEPEND=""
|
||
8 years ago
|
RDEPEND="app-shells/bash
|
||
|
net-analyzer/rrdtool[graph]
|
||
|
virtual/imagemagick-tools"
|
||
13 years ago
|
|
||
|
S=${WORKDIR}/r2
|
||
|
|
||
|
src_install() {
|
||
|
WWWDIR="/var/www/localhost/htdocs/R2"
|
||
|
|
||
|
insinto /etc
|
||
|
doins recursos2.conf
|
||
|
|
||
|
dobin R2createrrd.sh R2generarrd.sh R2updaterrd.sh Recursos2.sh
|
||
|
|
||
|
dodir ${WWWDIR}
|
||
|
insinto ${WWWDIR}
|
||
|
doins R2/*.html
|
||
|
|
||
|
dodir ${WWWDIR}/common
|
||
|
insinto ${WWWDIR}/common
|
||
|
doins R2/common/*
|
||
|
|
||
|
dodir ${WWWDIR}/rrd/mini
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
elog "Fist you must configure /etc/recursos2.conf"
|
||
|
elog "Then follow these steps:"
|
||
|
elog
|
||
|
elog "1. Run R2createrrd.sh"
|
||
|
elog
|
||
|
elog "2. Add crontab jobs (this is an example):"
|
||
|
elog "*/2 * * * * root /usr/bin/R2updaterrd.sh"
|
||
|
elog "*/5 * * * * root /usr/bin/R2generarrd.sh"
|
||
|
elog "*/10 * * * * root /usr/bin/Recursos2.sh \ "
|
||
|
elog " title general system disks net \ "
|
||
|
elog " > /var/www/localhost/htdocs/recursos.html"
|
||
|
elog
|
||
|
elog "You can use Recursos2.sh to extract info about your system"
|
||
|
elog "in html or plain text and mail the file or whatever."
|
||
|
elog
|
||
|
}
|