diff options
Diffstat (limited to 'net-analyzer/nagios-check_glsa2')
3 files changed, 27 insertions, 22 deletions
diff --git a/net-analyzer/nagios-check_glsa2/Manifest b/net-analyzer/nagios-check_glsa2/Manifest index c745b4023b0f..3900ac9a4287 100644 --- a/net-analyzer/nagios-check_glsa2/Manifest +++ b/net-analyzer/nagios-check_glsa2/Manifest @@ -1,3 +1,4 @@ +AUX nagios-check_glsa2-20120930-CACHEDIR.patch 357 BLAKE2B b808848ea5c1b58f374d1f16d725226c6cb14bae757910f20a8b0eef7be5ba2d8b04f3fe2079b3910f99c795589d5c57108338327bc1f97aa06bf9a1bb8dd0e9 SHA512 a2046105e63661f83c2c800f60959c2092128e9e09cbf5b7ba7e1e758e990f167cb8e888d009030b8f88ed43058f1a5e99ce96d704af93590e325b6c1b632f4b DIST check_glsa2-20120930.tar.xz 1980 BLAKE2B 6a5e3541b23fe43daba37ccac085ca1079dc1fedbfa87a439a433d6445bd039090a336765bde0c1b2fc5fad464d0f4e175e4a7e90ca65d6bd56d082a3f1cac88 SHA512 ecf7f6f119c8a73bf672eddc64374ed07c03720ec97b51f7e0bd779b3ba2c4ceab87c1c3cbbe38b1f0224234a9fb2af7bd156f9073a8a0aa8da1458988a2bc65 -EBUILD nagios-check_glsa2-20120930-r1.ebuild 869 BLAKE2B 167ccffd0e6b93a78e78cb6872ca76c270c65731840de22aab0ee89b2bbacbe02f3404e535d135ae5646b6420b7ebe7d841afb4ccf16cd364830ef8b5d31c033 SHA512 5c3d23e1f5e5881c05e64efef7f3295568d65fa0bbf7d22cfe0aa1d2b58df1f7595d83f64fc9ea3e867a1a961789131325d73190e2f22339af09971173e7ca4d +EBUILD nagios-check_glsa2-20120930-r1.ebuild 725 BLAKE2B 0c55e0382efad38dd44cd5c09c779650217c1985e4402461c1527d28ac2f9cf84045df4bd08bd24e9385e35bf580a2e90f8305831d017c5ef00d04aa83d5a3e5 SHA512 ba9d2358c07f83479d4a0dd8943d568882effa2525423e7002648e2a01dd4766453a58b2f967237731e3c1e42cb0b9dde57e1cc796bd3f031c01c5a197149895 MISC metadata.xml 351 BLAKE2B 79a36729dc00b5651ab2d461efdf7254b19b3b65d5279381567abe68e18215a0fa998a65ae858f1d8ece9896fe54edb7430dd5952aab106140bb853d378044cd SHA512 651d2427fbe198beafadf6a75e664718c1367c118e3b9a1e637fe33abde8751e31b221873f3f9955f0af516ea8948085998eeda2ce64b1247291a4b5a8edffeb diff --git a/net-analyzer/nagios-check_glsa2/files/nagios-check_glsa2-20120930-CACHEDIR.patch b/net-analyzer/nagios-check_glsa2/files/nagios-check_glsa2-20120930-CACHEDIR.patch new file mode 100644 index 000000000000..3e02afe6e004 --- /dev/null +++ b/net-analyzer/nagios-check_glsa2/files/nagios-check_glsa2-20120930-CACHEDIR.patch @@ -0,0 +1,11 @@ +--- a/check_glsa2_cached.sh ++++ b/check_glsa2_cached.sh +@@ -8,7 +8,7 @@ + # Caches the result of check_glsa2.sh + # First line is the return code, rest of the file is the message + NAME=$(basename $0 .sh) +-CACHEDIR=/var/lib/gentoo/ ++CACHEDIR=/var/cache/check_glsa2 + CACHEFILE=${CACHEDIR}/check_glsa2.cache + SCRIPT=/usr/lib/nagios/plugins/check_glsa2.sh + ret=0 diff --git a/net-analyzer/nagios-check_glsa2/nagios-check_glsa2-20120930-r1.ebuild b/net-analyzer/nagios-check_glsa2/nagios-check_glsa2-20120930-r1.ebuild index 5b6ab2dd057a..aba3bf1143f7 100644 --- a/net-analyzer/nagios-check_glsa2/nagios-check_glsa2-20120930-r1.ebuild +++ b/net-analyzer/nagios-check_glsa2/nagios-check_glsa2-20120930-r1.ebuild @@ -1,38 +1,31 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=4 - -inherit multilib user - -DESCRIPTION="Nagios check script for GLSAs (Gentoo Linux Security Advisories)" -HOMEPAGE="https://github.com/craig/check_glsa2" +EAPI=7 MY_PN="${PN/nagios-/}" MY_P="${MY_PN}-${PV}" -S="${WORKDIR}/${MY_P}" +DESCRIPTION="Nagios check script for GLSAs (Gentoo Linux Security Advisories)" +HOMEPAGE="https://github.com/craig/check_glsa2" SRC_URI="https://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 -} +DEPEND=" + acct-group/nagios + acct-user/nagios" +RDEPEND=" + ${DEPEND} + app-portage/gentoolkit" -src_prepare() { - sed -i -e '/CACHEDIR=/s:=.*:=/var/cache/check_glsa2:' ${MY_PN}_cached.sh || die -} +S="${WORKDIR}/${MY_P}" +PATCHES=( "${FILESDIR}"/${PN}-20120930-CACHEDIR.patch ) src_install() { - local nagiosplugindir=/usr/$(get_libdir)/nagios/plugins - exeinto ${nagiosplugindir} + exeinto /usr/$(get_libdir)/nagios/plugins doexe *.sh dodoc README |