From: Frank Brehm Date: Wed, 9 Jul 2014 21:44:45 +0000 (+0200) Subject: Cleanup of dev-python/nagios-plugin X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=dd33e79ebd4eba3e41479251bd6dd9a2372094bc;p=portage.git Cleanup of dev-python/nagios-plugin --- diff --git a/dev-python/nagios-plugin/Manifest b/dev-python/nagios-plugin/Manifest index 589b3c4..6beb0f9 100644 --- a/dev-python/nagios-plugin/Manifest +++ b/dev-python/nagios-plugin/Manifest @@ -1,7 +1,6 @@ -EBUILD nagios-plugin-0.4.4.2.ebuild 1472 SHA256 36a102d4ff1adfd5c685150a534554042f2e02ba3e3228e368d49fcf7ed7787d SHA512 37fd7acbb258988db7b766f5a90b2fb151504d43af13cf4096469a8bda5320541b5a1240acdc8710704bf9d81f84b6a6e14e2e5e249c52aba353cf0353e86ea9 WHIRLPOOL da67ee6647e1e0550ab8ff44148698fb27a4f8375c45d087f621fa5b8632268c0ed72b27161ff682fd7ad84575be0b5a3fcadff2c11e3b4a25fa5c12d3b723d2 EBUILD nagios-plugin-0.4.5.1.ebuild 1472 SHA256 36a102d4ff1adfd5c685150a534554042f2e02ba3e3228e368d49fcf7ed7787d SHA512 37fd7acbb258988db7b766f5a90b2fb151504d43af13cf4096469a8bda5320541b5a1240acdc8710704bf9d81f84b6a6e14e2e5e249c52aba353cf0353e86ea9 WHIRLPOOL da67ee6647e1e0550ab8ff44148698fb27a4f8375c45d087f621fa5b8632268c0ed72b27161ff682fd7ad84575be0b5a3fcadff2c11e3b4a25fa5c12d3b723d2 -EBUILD nagios-plugin-0.5.2.2.ebuild 1662 SHA256 fb52a603d681a8da813a6ec4bd5d2a25ac025fafa36a7cec0ab822cb788e5cba SHA512 4f4d3f9f48fd6b18552635f516b62deef64e9f87982989b47d9f2f70af9c45a5fd4880b47a35b3898eaba58a8284cee2a41b95f950de6e2c7c0b996800248647 WHIRLPOOL 202f901f56dd4bf598faf021b645cb044c0236745efbe16c826ffbd4dc0592ed5c862c39480f1a0f0e90f6e741861753670d9a1dee06979e714d7ab42c5f256c EBUILD nagios-plugin-0.5.4.1.ebuild 1662 SHA256 fb52a603d681a8da813a6ec4bd5d2a25ac025fafa36a7cec0ab822cb788e5cba SHA512 4f4d3f9f48fd6b18552635f516b62deef64e9f87982989b47d9f2f70af9c45a5fd4880b47a35b3898eaba58a8284cee2a41b95f950de6e2c7c0b996800248647 WHIRLPOOL 202f901f56dd4bf598faf021b645cb044c0236745efbe16c826ffbd4dc0592ed5c862c39480f1a0f0e90f6e741861753670d9a1dee06979e714d7ab42c5f256c EBUILD nagios-plugin-1.2.1.4.ebuild 1517 SHA256 ac84bda4ee2e4f945d6b5dc03ed1e5a3158797aff0905f479e8949c4499920ec SHA512 d1715ed4010c1ffd8ec135155501937fb6a436e85973b24696a9690e2c71a2e5a8b636946757fd160ed1c8ac6dc91da3bac141dc844208038547322c2621c143 WHIRLPOOL a6b11329f4880fca6989248f95103e50ab67c3543c67e890727fd33b14d571df7a65d3523db464347c4153fc7a19364c7feee4b299250cc07d4232c09a104ece EBUILD nagios-plugin-1.5.1.1-r1.ebuild 1575 SHA256 c0344f424d8fea69834887b1ade55121ab751f82b318d3e82a387fac212e1f1f SHA512 f52861a81bca57b256d7605ec2f66aeb6ed387ca7d0a1daa9249fa5ad601576c901b4f621d82b7211fcfa6e5c51689eed028b86113f527a6c74caeb61973c93f WHIRLPOOL 6940edc9d915508d7bf66cb02528770e5b6ee1cbecce1a2f60ed084c307d9d60472acee6e4f7737c1d6524a1e99cdce5e7d5b87c335b324fdca4e07b8cb5e92d +EBUILD nagios-plugin-1.6.11.2-r2.ebuild 1695 SHA256 839f51b7570a21707728aaa7c2ff2d521292b7d555ffc69c846c910eb2a3dcb9 SHA512 e86dd4b51293fb47e4fab3e1008679f1c18c032445a69281c7209f3dcf1df9a9bf0b9939af26de9a3f90620a1117fccb047d21290f19c2723b7d1210491aab76 WHIRLPOOL d2005f97225d7e11dbc0f3d42d6f029040676d5bbeec9a041938695751fbb5cc3de186915323acdb2a88ea64a0bc2fd94b8220a50c9a7fa19c9ab4f7f46f5b14 EBUILD nagios-plugin-9999.ebuild 1372 SHA256 648bfef04e987ceb74b64d2188e5ca8aa0981f09deaffdf9550d00d4525a1493 SHA512 d247599e1c2cefefcd87af8888cd9f67c3571b941e61a857677990434709efa49e43ad05f0ab78e05a81e17c64d3c0b89bd834efa287b87621e9ce26f202d4af WHIRLPOOL 332a2a4dc87b4da17f22e76a2954efd9b3bb0fa785b3fee6fc38ddc69a8f8cd0e94c1ff76817175c08376e334d1569a5d34835dc667e2d3aef55048875d5adf9 diff --git a/dev-python/nagios-plugin/nagios-plugin-0.4.4.2.ebuild b/dev-python/nagios-plugin/nagios-plugin-0.4.4.2.ebuild deleted file mode 100644 index 2b516f6..0000000 --- a/dev-python/nagios-plugin/nagios-plugin-0.4.4.2.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=4 - -DESCRIPTION="Python modules streamline writing Nagios plugins." -HOMEPAGE="http://git.profitbricks.localdomain/gitweb/?p=python/nagios-plugin;a=summary" -SRC_URI="" -EGIT_REPO_URI="https://github.com/fbrehm/nagios-plugin.git" - -inherit git-2 distutils user python versionator - -LICENSE="LGPL-3" -SLOT="0" -KEYWORDS="amd64" -IUSE="doc" -PYTHON_DEPEND="2::2.7" - -EGIT_BRANCH="master" -EGIT_COMMIT=$(replace_version_separator 3 '-') - -DOCS="debian/changelog README.txt" - -RDEPEND=" - virtual/python-argparse -" -DEPEND=" - ${RDEPEND} - doc? ( dev-python/epydoc - dev-python/docutils - ) -" - -pkg_setup() { - elog "Used GIT tag: '${EGIT_COMMIT}'." - python_set_active_version 2 - python_pkg_setup -} - -src_install() { - distutils_src_install - #python_clean_installation_image - - if use doc; then - einfo "Installing documentation ..." - dodir "/usr/share/doc/${PF}" - dodir "/usr/share/doc/${PF}/html" - dodir "/usr/share/doc/${PF}/pdf" - - einfo "Creating epydoc html documentation" - epydoc --html -v -o "${ED}/usr/share/doc/${PF}/html" "${S}/nagios" || ewarn "Could not create epydoc html documentation" - einfo "Creating epydoc pdf documentation" - epydoc --pdf -o "${ED}/usr/share/doc/${PF}/pdf" "${S}/nagios" || ewarn "Could not create epydoc pdf documentation" - - fi - -} - -pkg_postinst() { - python_mod_optimize nagios -} - -pkg_postrm () { - python_mod_cleanup nagios -} - diff --git a/dev-python/nagios-plugin/nagios-plugin-0.5.2.2.ebuild b/dev-python/nagios-plugin/nagios-plugin-0.5.2.2.ebuild deleted file mode 100644 index 67db079..0000000 --- a/dev-python/nagios-plugin/nagios-plugin-0.5.2.2.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=4 - -DESCRIPTION="Python modules streamline writing Nagios plugins." -HOMEPAGE="http://git.profitbricks.localdomain/gitweb/?p=python/nagios-plugin;a=summary" -SRC_URI="" -EGIT_REPO_URI="https://github.com/fbrehm/nagios-plugin.git" - -inherit git-2 distutils user python versionator - -LICENSE="LGPL-3" -SLOT="0" -KEYWORDS="amd64" -IUSE="doc megaraid smart" -PYTHON_DEPEND="2::2.7" - -EGIT_BRANCH="master" -EGIT_COMMIT=$(replace_version_separator 3 '-') - -DOCS="debian/changelog README.txt" - -RDEPEND=" - virtual/python-argparse - dev-python/setuptools - smart? ( sys-apps/smartmontools ) - megaraid? ( sys-block/megacli ) -" -DEPEND=" - ${RDEPEND} - doc? ( dev-python/epydoc - dev-python/docutils - ) -" - -REQUIRED_USE="megaraid? ( smart )" - -pkg_setup() { - elog "Used GIT tag: '${EGIT_COMMIT}'." - python_set_active_version 2 - python_pkg_setup -} - -src_install() { - distutils_src_install - #python_clean_installation_image - - use smart || rm ${D}/usr/bin/check_smart_state - - if use doc; then - einfo "Installing documentation ..." - dodir "/usr/share/doc/${PF}" - dodir "/usr/share/doc/${PF}/html" - dodir "/usr/share/doc/${PF}/pdf" - - einfo "Creating epydoc html documentation" - epydoc --html -v -o "${ED}/usr/share/doc/${PF}/html" "${S}/nagios" || ewarn "Could not create epydoc html documentation" - einfo "Creating epydoc pdf documentation" - epydoc --pdf -o "${ED}/usr/share/doc/${PF}/pdf" "${S}/nagios" || ewarn "Could not create epydoc pdf documentation" - - fi - -} - -pkg_postinst() { - python_mod_optimize nagios -} - -pkg_postrm () { - python_mod_cleanup nagios -} - diff --git a/dev-python/nagios-plugin/nagios-plugin-1.6.11.2-r2.ebuild b/dev-python/nagios-plugin/nagios-plugin-1.6.11.2-r2.ebuild new file mode 100644 index 0000000..2d753f4 --- /dev/null +++ b/dev-python/nagios-plugin/nagios-plugin-1.6.11.2-r2.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} pypy2_0 ) + +DESCRIPTION="Python modules streamline writing Nagios plugins." +HOMEPAGE="http://git.profitbricks.localdomain/gitweb/?p=python/nagios-plugin;a=summary" +SRC_URI="" +EGIT_REPO_URI="https://github.com/fbrehm/nagios-plugin.git" + +inherit git-2 distutils-r1 user versionator + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="amd64 ~x86" +IUSE="doc" + +EGIT_BRANCH="master" +EGIT_COMMIT=$(replace_version_separator 3 '-') + +DOCS="debian/changelog README.txt" + +RDEPEND="" +DEPEND=" + ${RDEPEND} + doc? ( dev-python/epydoc + dev-python/docutils + ) +" + +pkg_setup() { + elog "Used GIT tag: '${EGIT_COMMIT}'." + + einfo "Start setup package ..." + distutils-r1_src_prepare + +} + +src_compile() { + einfo "Start compiling package ..." + distutils-r1_src_compile +} + + +src_install() { + + distutils-r1_src_install + + rm -rfv ${ED}/usr/lib*/nagios/ + rm -rfv ${ED}/usr/lib*/python*/site-packages/nagios/plugins/ + + einfo "Installing debian/changelog and README.txt" + dodoc debian/changelog + dodoc README.txt + + + if use doc; then + einfo "Installing documentation ..." + dodir "/usr/share/doc/${PF}" + dodir "/usr/share/doc/${PF}/html" + dodir "/usr/share/doc/${PF}/pdf" + + einfo "Creating epydoc html documentation" + epydoc --html -v -o "${ED}/usr/share/doc/${PF}/html" "${S}/nagios" || ewarn "Could not create epydoc html documentation" + einfo "Creating epydoc pdf documentation" + epydoc --pdf -o "${ED}/usr/share/doc/${PF}/pdf" "${S}/nagios" || ewarn "Could not create epydoc pdf documentation" + + fi + +} + +# vim: filetype=ebuild ts=4 sw=4