From: Frank Brehm Date: Tue, 22 Jan 2013 21:37:00 +0000 (+0100) Subject: new package dev-python/nagios-plugin X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=2f7454a687e7ddd57ff07ff2803c51d0e7992e0a;p=portage.git new package dev-python/nagios-plugin --- diff --git a/dev-python/nagios-plugin/Manifest b/dev-python/nagios-plugin/Manifest new file mode 100644 index 0000000..e92eefd --- /dev/null +++ b/dev-python/nagios-plugin/Manifest @@ -0,0 +1,2 @@ +EBUILD nagios-plugin-0.4.2.2.ebuild 1469 SHA256 18c6fd1dabcfe8bf517b4da5d1876425fd4603e50f27d20d07b9407a798937f5 SHA512 3e964e60ad9fcdb0072ccca11299b1617279dd542243413438ecd132c2a21de11b30324cf39d684bb530b71e7bdb3453644cb8c33f774b8241c2862e364fc067 WHIRLPOOL 9945a389b8dab7c4f1f76d0501d63694904204f96f54e5f87d0aa721a2a4c67ee6f5180eea2383cdbe1b84c476582e91f920b42564694c71bdc1d0255b1a7a0d +EBUILD nagios-plugin-9999.ebuild 1372 SHA256 648bfef04e987ceb74b64d2188e5ca8aa0981f09deaffdf9550d00d4525a1493 SHA512 d247599e1c2cefefcd87af8888cd9f67c3571b941e61a857677990434709efa49e43ad05f0ab78e05a81e17c64d3c0b89bd834efa287b87621e9ce26f202d4af WHIRLPOOL 332a2a4dc87b4da17f22e76a2954efd9b3bb0fa785b3fee6fc38ddc69a8f8cd0e94c1ff76817175c08376e334d1569a5d34835dc667e2d3aef55048875d5adf9 diff --git a/dev-python/nagios-plugin/nagios-plugin-0.4.2.2.ebuild b/dev-python/nagios-plugin/nagios-plugin-0.4.2.2.ebuild new file mode 100644 index 0000000..187a5f9 --- /dev/null +++ b/dev-python/nagios-plugin/nagios-plugin-0.4.2.2.ebuild @@ -0,0 +1,67 @@ +# 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="develop" +EGIT_COMMIT=$(replace_version_separator 3 '-') + +DOCS="debian/changelog README.txt" + +RDEPEND=" + dev-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-9999.ebuild b/dev-python/nagios-plugin/nagios-plugin-9999.ebuild new file mode 100644 index 0000000..30e488c --- /dev/null +++ b/dev-python/nagios-plugin/nagios-plugin-9999.ebuild @@ -0,0 +1,65 @@ +# 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 + +LICENSE="LGPL-3" +SLOT="0" +#KEYWORDS="~amd64" +IUSE="doc" +PYTHON_DEPEND="2::2.7" + +EGIT_BRANCH="develop" + +DOCS="debian/changelog README.txt" + +RDEPEND=" + dev-python/argparse +" +DEPEND=" + ${RDEPEND} + doc? ( dev-python/epydoc + dev-python/docutils + ) +" + +pkg_setup() { + 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 +} +