From root@undeliverable.renatasystems.org  Sun Nov 22 04:38:46 2009
Return-Path: <root@undeliverable.renatasystems.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id F2AA4106566C
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 22 Nov 2009 04:38:46 +0000 (UTC)
	(envelope-from root@undeliverable.renatasystems.org)
Received: from hs-9.renatasystems.org (hs-9.renatasystems.org [83.222.5.149])
	by mx1.freebsd.org (Postfix) with SMTP id 3B0B28FC0A
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 22 Nov 2009 04:38:45 +0000 (UTC)
Received: (qmail 55985 invoked by uid 0); 22 Nov 2009 07:38:43 +0300
Message-Id: <20091122043843.55984.qmail@hs-9.renatasystems.org>
Date: 22 Nov 2009 07:38:43 +0300
From: Alexey V.Degtyarev <alexey@renatasystems.org>
Reply-To: Alexey V.Degtyarev <alexey@renatasystems.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: arved@FreeBSD.org
Subject: net-mgmt/nagios-spamd-plugin - fix RUN_DEPENDS
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         140763
>Category:       ports
>Synopsis:       net-mgmt/nagios-spamd-plugin - fix RUN_DEPENDS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    arved
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 22 04:40:01 UTC 2009
>Closed-Date:    Fri Nov 27 18:43:30 UTC 2009
>Last-Modified:  Fri Nov 27 18:50:01 UTC 2009
>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@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@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:
Responsible-Changed-From-To: freebsd-ports-bugs->arved 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Nov 22 04:40:13 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=140763 
State-Changed-From-To: open->closed 
State-Changed-By: arved 
State-Changed-When: Fri Nov 27 18:43:20 UTC 2009 
State-Changed-Why:  
Committed, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=140763 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/140763: commit references a PR
Date: Fri, 27 Nov 2009 18:42:58 +0000 (UTC)

 arved       2009-11-27 18:42:48 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net-mgmt/nagios-spamd-plugin Makefile 
   Log:
   Add missing RUN_DEPEND on nagios-plugins
   
   PR:             140763
   Submitted by:   Alexey V.Degtyarev <alexey@renatasystems.org>
   
   Drop maintainership, as i currently don't use nagios
   
   Revision  Changes    Path
   1.7       +4 -2      ports/net-mgmt/nagios-spamd-plugin/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
