summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-09-30 23:35:51 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-09-30 23:35:51 +0000
commit87bfd6db047935eef16bbeeb03666281f4d2994d (patch)
tree345170fff7fbf5fb8eea19928fa13c8b16988536
parentVersion bump. (diff)
downloadgentoo-2-87bfd6db047935eef16bbeeb03666281f4d2994d.tar.gz
gentoo-2-87bfd6db047935eef16bbeeb03666281f4d2994d.tar.bz2
gentoo-2-87bfd6db047935eef16bbeeb03666281f4d2994d.zip
Import check_glsa2 by Craig and Robin.
(Portage version: 2.2.0_alpha134/cvs/Linux x86_64)
-rw-r--r--net-analyzer/nagios-check_glsa2/ChangeLog10
-rw-r--r--net-analyzer/nagios-check_glsa2/metadata.xml5
-rw-r--r--net-analyzer/nagios-check_glsa2/nagios-check_glsa2-20120930.ebuild42
3 files changed, 57 insertions, 0 deletions
diff --git a/net-analyzer/nagios-check_glsa2/ChangeLog b/net-analyzer/nagios-check_glsa2/ChangeLog
new file mode 100644
index 000000000000..4d2ba2c07790
--- /dev/null
+++ b/net-analyzer/nagios-check_glsa2/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-analyzer/nagios-check_glsa2
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-check_glsa2/ChangeLog,v 1.1 2012/09/30 23:35:51 flameeyes Exp $
+
+*nagios-check_glsa2-20120930 (30 Sep 2012)
+
+ 30 Sep 2012; Diego E. Pettenò <flameeyes@gentoo.org>
+ +nagios-check_glsa2-20120930.ebuild, +metadata.xml:
+ Import check_glsa2 by Craig and Robin.
+
diff --git a/net-analyzer/nagios-check_glsa2/metadata.xml b/net-analyzer/nagios-check_glsa2/metadata.xml
new file mode 100644
index 000000000000..d7649f4b8eb2
--- /dev/null
+++ b/net-analyzer/nagios-check_glsa2/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sysadmin</herd>
+</pkgmetadata>
diff --git a/net-analyzer/nagios-check_glsa2/nagios-check_glsa2-20120930.ebuild b/net-analyzer/nagios-check_glsa2/nagios-check_glsa2-20120930.ebuild
new file mode 100644
index 000000000000..6ad9abfb1b8f
--- /dev/null
+++ b/net-analyzer/nagios-check_glsa2/nagios-check_glsa2-20120930.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-check_glsa2/nagios-check_glsa2-20120930.ebuild,v 1.1 2012/09/30 23:35:51 flameeyes Exp $
+
+EAPI=4
+
+inherit multilib user
+
+DESCRIPTION="Nagios check script for GLSAs (Gentoo Linux Security Advisories)"
+HOMEPAGE="https://github.com/craig/check_glsa2"
+
+MY_PN="${PN/nagios-/}"
+MY_P="${MY_PN}-${PV}"
+S="${WORKDIR}/${MY_P}"
+
+SRC_URI="http://dev.gentoo.org/~flameeyes/${MY_PN}/${MY_P}.tar.xz"
+LICENSE="GPL-2 BSD-2"
+SLOT="0"
+
+KEYWORDS="~amd64"
+
+RDEPEND="app-portage/gentoolkit"
+DEPEND=""
+
+pkg_setup() {
+ enewgroup nagios
+ enewuser nagios -1 /bin/bash /dev/null nagios
+}
+
+src_prepare() {
+ sed -i -e '/CACHEDIR=/s:=.*:=/var/cache/check_glsa2:' ${MY_PN}_cached.sh || die
+}
+
+src_install() {
+ local nagiosplugindir=/usr/$(get_libdir)/nagios/plugins
+ exeinto ${nagiosplugindir}
+
+ dodoc README
+
+ diropts -o nagios -g nagios
+ keepdir /var/cache/${MY_PN}
+}