]> Frank Brehm's Git Trees - portage.git/commitdiff
Added dev-python/nagios-plugin/nagios-plugin-1.5.1.1-r1.ebuild
authorFrank Brehm <frank.brehm@profitbricks.com>
Sun, 9 Feb 2014 11:12:40 +0000 (12:12 +0100)
committerFrank Brehm <frank.brehm@profitbricks.com>
Sun, 9 Feb 2014 11:12:40 +0000 (12:12 +0100)
dev-python/nagios-plugin/Manifest
dev-python/nagios-plugin/nagios-plugin-1.5.1.1-r1.ebuild [new file with mode: 0644]

index a621d5825d7f067bbfc4f29762cbde43667e74f0..589b3c480e2d65cdf4f1141013b05c2bb2ddd1a6 100644 (file)
@@ -3,5 +3,5 @@ EBUILD nagios-plugin-0.4.5.1.ebuild 1472 SHA256 36a102d4ff1adfd5c685150a53455404
 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.ebuild 1575 SHA256 c0344f424d8fea69834887b1ade55121ab751f82b318d3e82a387fac212e1f1f SHA512 f52861a81bca57b256d7605ec2f66aeb6ed387ca7d0a1daa9249fa5ad601576c901b4f621d82b7211fcfa6e5c51689eed028b86113f527a6c74caeb61973c93f WHIRLPOOL 6940edc9d915508d7bf66cb02528770e5b6ee1cbecce1a2f60ed084c307d9d60472acee6e4f7737c1d6524a1e99cdce5e7d5b87c335b324fdca4e07b8cb5e92d
+EBUILD nagios-plugin-1.5.1.1-r1.ebuild 1575 SHA256 c0344f424d8fea69834887b1ade55121ab751f82b318d3e82a387fac212e1f1f SHA512 f52861a81bca57b256d7605ec2f66aeb6ed387ca7d0a1daa9249fa5ad601576c901b4f621d82b7211fcfa6e5c51689eed028b86113f527a6c74caeb61973c93f WHIRLPOOL 6940edc9d915508d7bf66cb02528770e5b6ee1cbecce1a2f60ed084c307d9d60472acee6e4f7737c1d6524a1e99cdce5e7d5b87c335b324fdca4e07b8cb5e92d
 EBUILD nagios-plugin-9999.ebuild 1372 SHA256 648bfef04e987ceb74b64d2188e5ca8aa0981f09deaffdf9550d00d4525a1493 SHA512 d247599e1c2cefefcd87af8888cd9f67c3571b941e61a857677990434709efa49e43ad05f0ab78e05a81e17c64d3c0b89bd834efa287b87621e9ce26f202d4af WHIRLPOOL 332a2a4dc87b4da17f22e76a2954efd9b3bb0fa785b3fee6fc38ddc69a8f8cd0e94c1ff76817175c08376e334d1569a5d34835dc667e2d3aef55048875d5adf9
diff --git a/dev-python/nagios-plugin/nagios-plugin-1.5.1.1-r1.ebuild b/dev-python/nagios-plugin/nagios-plugin-1.5.1.1-r1.ebuild
new file mode 100644 (file)
index 0000000..3c52972
--- /dev/null
@@ -0,0 +1,68 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 )
+
+DESCRIPTION="Python modules streamline writing Nagios plugins."
+HOMEPAGE="http://git.pb.local/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
+
+PB_CATEGORY="dev-python"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="amd64"
+IUSE="doc"
+
+EGIT_BRANCH="master"
+EGIT_COMMIT=$(replace_version_separator 3 '-')
+
+RDEPEND="
+       || (
+               virtual/python-argparse
+               dev-python/argparse
+       )
+"
+DEPEND="
+       ${RDEPEND}
+       doc? (  dev-python/epydoc 
+                       dev-python/docutils
+       )
+"
+
+pkg_setup() {
+       elog "Used GIT tag: '${EGIT_COMMIT}'."
+       distutils-r1_src_prepare
+}
+
+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