ports/140763: net-mgmt/nagios-spamd-plugin - fix RUN_DEPENDS
Alexey V.Degtyarev
alexey at renatasystems.org
Sun Nov 22 04:40:03 UTC 2009
>Number: 140763
>Category: ports
>Synopsis: net-mgmt/nagios-spamd-plugin - fix RUN_DEPENDS
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Nov 22 04:40:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Alexey V. Degtyarev
>Release: FreeBSD 8.0-RC1 amd64
>Organization:
>Environment:
System: FreeBSD renatasystems.org 8.0-RC1 FreeBSD 8.0-RC1 #0: Thu Sep 17 18:50:57 UTC 2009 root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
net-mgmt/nagios-spamd-plugin does not have net-mgmt/nagios-plugins as run
requirement but use it actually. So it fails to run after beeing installed from
packages:
Can't locate utils.pm in @INC (@INC contains: /usr/local/libexec/nagios
/usr/local/lib/perl5/5.10.1/BSDPAN /usr/local/lib/perl5/site_perl/5.10.1/mach
/usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/5.10.1/mach
/usr/local/lib/perl5/5.10.1 .) at ./work/check_spamd.pl line 42.
BEGIN failed--compilation aborted at ./work/check_spamd.pl line 42.
>How-To-Repeat:
Install plugin on vanilla system and try to use.
>Fix:
See attachment.
--- nagios-spamd-plugin.patch begins here ---
diff -u nagios-spamd-plugin.orig/Makefile nagios-spamd-plugin/Makefile
--- nagios-spamd-plugin.orig/Makefile 2007-06-14 00:12:27.000000000 +0400
+++ nagios-spamd-plugin/Makefile 2009-11-22 04:00:44.000000000 +0300
@@ -14,7 +14,8 @@
MAINTAINER= arved at FreeBSD.org
COMMENT= Nagios plugin for checking SpamAssassins spamd
-RUN_DEPENDS+= ${SITE_PERL}/Getopt/Long.pm:${PORTSDIR}/devel/p5-Getopt-Long
+RUN_DEPENDS+= ${SITE_PERL}/Getopt/Long.pm:${PORTSDIR}/devel/p5-Getopt-Long \
+ ${LOCALBASE}/${NAGIOS_PLUGIN_DIR}/utils.pm:${PORTSDIR}/net-mgmt/nagios-plugins
USE_PERL5= yes
NO_WRKSUBDIR= yes
--- nagios-spamd-plugin.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list