diff options
author | Jose Alberto Suarez Lopez <bass@gentoo.org> | 2006-08-24 10:18:13 +0000 |
---|---|---|
committer | Jose Alberto Suarez Lopez <bass@gentoo.org> | 2006-08-24 10:18:13 +0000 |
commit | 8a27f46c8d16ccb79d8412e3f2dd74ca88b10bd4 (patch) | |
tree | a77c8b62eb12e0b7d8c4ff6a3abbda3fc3e7c64f /app-admin/recursos/recursos-2.0.ebuild | |
parent | Added ~ppc64 (diff) | |
download | historical-8a27f46c8d16ccb79d8412e3f2dd74ca88b10bd4.tar.gz historical-8a27f46c8d16ccb79d8412e3f2dd74ca88b10bd4.tar.bz2 historical-8a27f46c8d16ccb79d8412e3f2dd74ca88b10bd4.zip |
Firt release
Package-Manager: portage-2.1-r2
Diffstat (limited to 'app-admin/recursos/recursos-2.0.ebuild')
-rw-r--r-- | app-admin/recursos/recursos-2.0.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/app-admin/recursos/recursos-2.0.ebuild b/app-admin/recursos/recursos-2.0.ebuild new file mode 100644 index 000000000000..02cb03f9f604 --- /dev/null +++ b/app-admin/recursos/recursos-2.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/recursos/recursos-2.0.ebuild,v 1.4 2006/08/24 10:18:13 bass Exp $ + +DESCRIPTION="Script to create html and text report about your system." +HOMEPAGE="http://www.josealberto.org" +SRC_URI="mirror://gentoo/${P}.tbz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="" +RDEPEND="media-gfx/imagemagick +app-shells/bash +net-analyzer/rrdtool" + +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() { + einfo "Fist you must configure /etc/recursos2.conf" + einfo "Then follow these steps:" + echo + einfo "1. Run R2createrrd.sh" + echo + einfo "2. Add crontab jobs (this is an example):" + einfo "*/2 * * * * root /usr/bin/R2updaterrd.sh" + einfo "*/5 * * * * root /usr/bin/R2generarrd.sh" + einfo "*/10 * * * * root /usr/bin/Recursos2.sh \ " + einfo " title general system disks net \ " + einfo " > /var/www/localhost/htdocs/recursos.html" + echo + einfo "You can use Recursos2.sh to extract info about your system" + einfo "in html or plain text and mail the file or whatever." + echo +} + |