pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

nagios-plugin-printer: remove, imported to pkgsrc/net



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <tk%giga.or.at@localhost>
Pushed By:	wiz
Date:		Wed Feb 10 16:27:36 2021 +0100
Changeset:	fb60bc3a9d573c09223575a79735b159b761de87

Modified Files:
	Makefile
Removed Files:
	nagios-plugin-printer/DESCR
	nagios-plugin-printer/Makefile
	nagios-plugin-printer/PLIST
	nagios-plugin-printer/distinfo
	nagios-plugin-printer/patches/patch-aa

Log Message:
nagios-plugin-printer: remove, imported to pkgsrc/net

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=fb60bc3a9d573c09223575a79735b159b761de87

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                               |  1 -
 nagios-plugin-printer/DESCR            |  2 --
 nagios-plugin-printer/Makefile         | 46 ----------------------------------
 nagios-plugin-printer/PLIST            |  2 --
 nagios-plugin-printer/distinfo         |  7 ------
 nagios-plugin-printer/patches/patch-aa | 36 --------------------------
 6 files changed, 94 deletions(-)

diffs:
diff --git a/Makefile b/Makefile
index 0a26a1bff4..63897a3d5d 100644
--- a/Makefile
+++ b/Makefile
@@ -2434,7 +2434,6 @@ SUBDIR+=	n2n
 SUBDIR+=	naev
 SUBDIR+=	nag
 SUBDIR+=	nagios-plugin-mysql_health
-SUBDIR+=	nagios-plugin-printer
 SUBDIR+=	naqsh-ttf
 SUBDIR+=	nary
 SUBDIR+=	natali
diff --git a/nagios-plugin-printer/DESCR b/nagios-plugin-printer/DESCR
deleted file mode 100644
index 6d321b74f7..0000000000
--- a/nagios-plugin-printer/DESCR
+++ /dev/null
@@ -1,2 +0,0 @@
-Perl script that retrieves supply metrics from printers using the snmpwalk
-command.
diff --git a/nagios-plugin-printer/Makefile b/nagios-plugin-printer/Makefile
deleted file mode 100644
index 50bae8b3ca..0000000000
--- a/nagios-plugin-printer/Makefile
+++ /dev/null
@@ -1,46 +0,0 @@
-# $NetBSD: Makefile $
-
-DISTNAME=	check_printer
-REVISION=	363
-PKGREVISION=	1
-PKGNAME=	nagios-plugin-printer-0.0.${REVISION}
-CATEGORIES=	sysutils net
-# Can this be converted to GITHUB_*?
-MASTER_SITES=	${MASTER_SITE_GITHUB:=bzed/pkg-nagios-plugins-contrib/raw/debian/25.20191015+1/check_printer/}
-EXTRACT_SUFX=	# empty
-DIST_SUBDIR=	check_printer-${REVISION}
-
-COMMENT=	Gather supply metrics from a printer via SNMP query
-LICENSE=	2-clause-bsd
-
-USE_LANGUAGES=	# empty
-USE_TOOLS+=	perl:run
-
-DEPENDS+=	net-snmp-[0-9]*:../../net/net-snmp
-
-WRKSRC=		${WRKDIR}
-
-PLUGINDIR=		libexec/nagios
-PLIST_SUBST+=		PLUGINDIR=${PLUGINDIR}
-
-INSTALLATION_DIRS+=	${PLUGINDIR}
-
-REPLACE_PERL+=		check_printer
-
-SUBST_CLASSES+=		paths
-SUBST_STAGE.paths=	pre-configure
-SUBST_MESSAGE.paths=	Fixing paths
-SUBST_FILES.paths=	check_printer
-SUBST_SED.paths=	-e 's;@LIBDIR@;${PREFIX}/${PLUGINDIR};'
-SUBST_VARS.paths=	PREFIX
-
-NO_BUILD=	yes
-
-do-extract:
-	${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} ${WRKSRC}
-
-do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/check_printer ${DESTDIR}${PREFIX}/${PLUGINDIR}
-
-.include "../../mk/bsd.prefs.mk"
-.include "../../mk/bsd.pkg.mk"
diff --git a/nagios-plugin-printer/PLIST b/nagios-plugin-printer/PLIST
deleted file mode 100644
index c919eca6ed..0000000000
--- a/nagios-plugin-printer/PLIST
+++ /dev/null
@@ -1,2 +0,0 @@
-@comment $NetBSD: PLIST$
-${PLUGINDIR}/check_printer
diff --git a/nagios-plugin-printer/distinfo b/nagios-plugin-printer/distinfo
deleted file mode 100644
index f3141dfeb1..0000000000
--- a/nagios-plugin-printer/distinfo
+++ /dev/null
@@ -1,7 +0,0 @@
-$NetBSD$
-
-SHA1 (check_printer-363/check_printer) = d2b7d0f7ca09d2813aca9d0904f069337bb6fe53
-RMD160 (check_printer-363/check_printer) = 203afd4e7dab9dc76075ee8d75dcd3b50c21637e
-SHA512 (check_printer-363/check_printer) = 6f041eb8fdc24eb37fdeed731faa5f65d12abb6e420fb32eb428249eb40462a1ac31d72523315af4e16f1381d7fce647c2c973f737631aed9afd6de0cbd02ee3
-Size (check_printer-363/check_printer) = 10325 bytes
-SHA1 (patch-aa) = 53e44cdc5f4ad8b7815a7ca6188c0b0b34b237f4
diff --git a/nagios-plugin-printer/patches/patch-aa b/nagios-plugin-printer/patches/patch-aa
deleted file mode 100644
index e648eff4d4..0000000000
--- a/nagios-plugin-printer/patches/patch-aa
+++ /dev/null
@@ -1,36 +0,0 @@
-$NetBSD: patch-aa$
-
-Replace 'use lib' logic by something that can be SUBST'd
-Make snmpwalk paths absolute
-
---- check_printer.orig	2016-10-12 15:53:09.000000000 +0200
-+++ check_printer	2016-10-12 16:00:37.000000000 +0200
-@@ -33,12 +33,7 @@
- use strict;
- use warnings;
- 
--my $OS = `uname`;
--if ($OS =~ m/^\wBSD/){
--	use lib "/usr/local/libexec/nagios";
--} elsif ($OS =~ m/Linux/){
--	use lib "/usr/local/nagios/libexec";
--}
-+use lib "@LIBDIR@";
- 
- use Data::Dumper;
- use Getopt::Long;
-@@ -80,10 +75,10 @@
- 
- my $comm = $ARGV[1];
- 
--my @vars = ("snmpwalk -On -v 1 -c $community $host $base_oid.$name_oid",
--	   "snmpwalk -On -v 1 -c $community $host $base_oid.$uom_oid",
--	   "snmpwalk -On -v 1 -c $community $host $base_oid.$max_oid",
--	   "snmpwalk -On -v 1 -c $community $host $base_oid.$curr_oid");
-+my @vars = ("@PREFIX@/bin/snmpwalk -On -v 1 -c $community $host $base_oid.$name_oid",
-+	   "@PREFIX@/bin/snmpwalk -On -v 1 -c $community $host $base_oid.$uom_oid",
-+	   "@PREFIX@/bin/snmpwalk -On -v 1 -c $community $host $base_oid.$max_oid",
-+	   "@PREFIX@/bin/snmpwalk -On -v 1 -c $community $host $base_oid.$curr_oid");
- 
- my(@values, @names, @max, @min);
- 


Home | Main Index | Thread Index | Old Index