diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/recursos |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/recursos')
-rw-r--r-- | app-admin/recursos/Manifest | 5 | ||||
-rw-r--r-- | app-admin/recursos/metadata.xml | 9 | ||||
-rw-r--r-- | app-admin/recursos/recursos-2.0-r1.ebuild | 57 |
3 files changed, 71 insertions, 0 deletions
diff --git a/app-admin/recursos/Manifest b/app-admin/recursos/Manifest new file mode 100644 index 000000000000..9c4e5eb593ba --- /dev/null +++ b/app-admin/recursos/Manifest @@ -0,0 +1,5 @@ +DIST recursos-2.0.tbz2 29480 SHA256 031e2b2cae9c86ce828b609c30ca24d32ddcfa13c53b15f35388ad9da6ec1520 SHA512 391bd253b62cbc2afbf054baa368bef5f7847624889188829557244f132bf484d4d4652a8c524da95ae3b39909fbdc37796eb325839bcd5e8982f7dcb6cd89e4 WHIRLPOOL 696de8f5c5d205d21630aa5ee95818d12c313d53b65e63d6b69defa41c38d0e5b63f72c067b4535690f41ead9cd4e74b12b7c89605d9b25fd487041a7fb03cf2 +EBUILD recursos-2.0-r1.ebuild 1345 SHA256 6236d5d5e32ec9fb06b958636741761e88a0f1f7ad5c5e0126915fc564d47822 SHA512 e888a9380a30d0233e5462409e150e5ef6e8ffe82f08c3c0bd5e1ae87dfabf44a32fa9171d7d5b80e524d4a2237f0587864a82ac5d68094cfc4376503e01788e WHIRLPOOL 7f47c08c310ed98179ab047c3cd9ca491f622d0497deef8970efc9bd0f535710395bbe04ccba27a89d11bfd2c0ce3abf210e6df376a049cfea5c89b9fc590cc9 +MISC ChangeLog 2522 SHA256 66fa4e863a1d2be8ca58d4821ba95d005a5e9f596afe3b372fd99ef7a9d09240 SHA512 374a5ad78a016a255530fe6e4643434fa267bc0e771054a5869cd9326cfd5026f1065fca7cfb8d6f2c993bfc516ecb76a2f827d3af1e7b8929b0aa9f2568cc2b WHIRLPOOL 3d72ed28c7de6d839a0804de216c60ea0171b2965825252b4dd243889479fb326e75e3abc85a74105217801eff1455a9a8a3c043ae81b73d6ddc6de045835a78 +MISC ChangeLog-2015 1105 SHA256 58511e5591bb044ffd540e30f9388e4090f7c9faf1c338a91b4c721a602e7031 SHA512 2c96b32f8fc7bd2396f5c94699a529a0d9ece41e9735b0fdb758a1e5da821489208ac6445d4f7429710a525d8fc4f47ed6ea5966fda884e37b222b0e0179f1ab WHIRLPOOL 505cac764b51f3d56e6350e5a4188b7987445217c4ce4e5d10915b658dbe76c808e68a0e934e59f41a8fb0cf2932c032bd5ff623ebe4743dfc57dfff8f10bd3d +MISC metadata.xml 343 SHA256 f2257bb5f0913de9ddda3b21e4999ef057c2a4aed50dc8917dd22978c0a02e04 SHA512 c22fa6dbdbf662e83e78a9aba6a66c72e4649cb11bf0261aaef8f068e14db18b96546a7271fbab3e5ed7caf3fbde6eba2a91affa44141e26e4c7546ba37d1635 WHIRLPOOL b5cfca72ef18f42f941e5c0e61814508c7106a857ea3bc7271d90321f727a7614b0c08e8a5d0f5b1b28c44ca2b44c687e804198c83c9433dd9b4cfe005a73315 diff --git a/app-admin/recursos/metadata.xml b/app-admin/recursos/metadata.xml new file mode 100644 index 000000000000..06396fb885b9 --- /dev/null +++ b/app-admin/recursos/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription> + A set of script to extrac usefull info about your system and report it + in plain text or html. It can generate Grpahs using rrdtools. + </longdescription> +</pkgmetadata> 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..7da26bdf3a76 --- /dev/null +++ b/app-admin/recursos/recursos-2.0-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} |