From acfedaf0e3b7e4f4942e474330a065dbaf811ebd Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sat, 11 Feb 2017 20:21:50 +0100 Subject: app-admin/recursos: Depend on virtual/imagemagick-tools Package-Manager: Portage-2.3.3, Repoman-2.3.1 Closes: https://github.com/gentoo/gentoo/pull/3907 --- app-admin/recursos/recursos-2.0-r1.ebuild | 58 +++++++++++++++++++++++++++++++ app-admin/recursos/recursos-2.0.ebuild | 58 ------------------------------- 2 files changed, 58 insertions(+), 58 deletions(-) create mode 100644 app-admin/recursos/recursos-2.0-r1.ebuild delete mode 100644 app-admin/recursos/recursos-2.0.ebuild (limited to 'app-admin') diff --git a/app-admin/recursos/recursos-2.0-r1.ebuild b/app-admin/recursos/recursos-2.0-r1.ebuild new file mode 100644 index 000000000000..150cf1be89c2 --- /dev/null +++ b/app-admin/recursos/recursos-2.0-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +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="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="app-shells/bash + net-analyzer/rrdtool[graph] + virtual/imagemagick-tools" + +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 +} diff --git a/app-admin/recursos/recursos-2.0.ebuild b/app-admin/recursos/recursos-2.0.ebuild deleted file mode 100644 index b22333e174d2..000000000000 --- a/app-admin/recursos/recursos-2.0.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=4 - -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="~amd64 ~x86" -IUSE="" - -DEPEND="" -RDEPEND="|| ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] ) - app-shells/bash - net-analyzer/rrdtool[graph]" - -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 -} -- cgit v1.2.3-65-gdbad