From cherry@spica.trombik.org  Thu Apr  9 08:10:10 2009
Return-Path: <cherry@spica.trombik.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 68D981065686
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  9 Apr 2009 08:10:10 +0000 (UTC)
	(envelope-from cherry@spica.trombik.org)
Received: from spica.trombik.org (spica.trombik.org [211.19.48.12])
	by mx1.freebsd.org (Postfix) with ESMTP id 3D0448FC16
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  9 Apr 2009 08:10:10 +0000 (UTC)
	(envelope-from cherry@spica.trombik.org)
Received: by spica.trombik.org (Postfix, from userid 999)
	id 34F731CEA2; Thu,  9 Apr 2009 16:52:12 +0900 (JST)
Message-Id: <20090409075212.34F731CEA2@spica.trombik.org>
Date: Thu,  9 Apr 2009 16:52:12 +0900 (JST)
From: Tomoyuki Sakurai <cherry@trombik.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: martinp@tildeslash.com
Subject: [PATCH] sysutils/monit: add an OPTION to enable/disable kvm
X-Send-Pr-Version: 3.113
X-GNATS-Notify: martinp@tildeslash.com

>Number:         133536
>Category:       ports
>Synopsis:       [PATCH] sysutils/monit: add an OPTION to enable/disable kvm
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    amdmi3
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 09 08:20:02 UTC 2009
>Closed-Date:    Thu Apr 09 23:54:19 UTC 2009
>Last-Modified:  Fri Apr 10 00:00:15 UTC 2009
>Originator:     Tomoyuki Sakurai
>Release:        FreeBSD 7.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD spica.trombik.org 7.0-STABLE FreeBSD 7.0-STABLE #5: Thu Jul 10 22:29:26 JST 2008
>Description:
kvm is not available inside jail.

Port maintainer (martinp@tildeslash.com) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:

install and run monit on a jail

# monit 
system statistic error -- cannot initialize kvm interface

>Fix:

--- monit-4.10.1_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/sysutils/monit/Makefile /usr/home/cherry/svk/ports/sysutils/monit/Makefile
--- /usr/ports/sysutils/monit/Makefile	2007-12-13 03:42:10.000000000 +0900
+++ /usr/home/cherry/svk/ports/sysutils/monit/Makefile	2009-04-09 16:48:38.000000000 +0900
@@ -7,6 +7,7 @@
 
 PORTNAME=	monit
 PORTVERSION=	4.10.1
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	http://www.tildeslash.com/monit/dist/
 
@@ -25,7 +26,8 @@
 		LDFLAGS="${LDFLAGS}" CONFIG_SHELL="${SH}" \
 		LOCALBASE="${LOCALBASE}"
 
-OPTIONS=	SSL "Enable SSL support" on
+OPTIONS=	SSL "Enable SSL support" on \
+		RESOURCE "Enable resource support (not for jail)" on
 
 PLIST_FILES=	bin/monit \
 		etc/monitrc.sample
@@ -44,6 +46,12 @@
 CONFIGURE_ARGS+=	--without-ssl
 .endif
 
+.if defined(WITH_RESOURCE)
+CONFIGURE_ARGS+=	--with-resource
+.else
+CONFIGURE_ARGS+=	--without-resource
+.endif
+
 post-install:
 	${INSTALL_SCRIPT} -m 600 ${WRKDIR}/${DISTNAME}/monitrc ${PREFIX}/etc/monitrc.sample
 .if !defined(NOPORTDOCS)
--- monit-4.10.1_1.patch ends here ---

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Thu Apr 9 08:20:14 UTC 2009 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

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

From: Edwin Groothuis <edwin@FreeBSD.org>
To: martinp@tildeslash.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/133536: [PATCH] sysutils/monit: add an OPTION to enable/disable kvm
Date: Thu, 9 Apr 2009 08:20:11 UT

 Maintainer of sysutils/monit,
 
 Please note that PR ports/133536 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/133536
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org
Responsible-Changed-From-To: freebsd-ports-bugs->amdmi3 
Responsible-Changed-By: amdmi3 
Responsible-Changed-When: Thu Apr 9 13:15:00 UTC 2009 
Responsible-Changed-Why:  
I'll take it. 

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

From: Martin Pala <martinp@tildeslash.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/133536: [PATCH] sysutils/monit: add an OPTION to enable/disable
 kvm
Date: Thu, 09 Apr 2009 19:10:19 +0200

 Patch is OK,
 
 Thanks,
 Martin
 
 
 Edwin Groothuis wrote:
 > Maintainer of sysutils/monit,
 > 
 > Please note that PR ports/133536 has just been submitted.
 > 
 > If it contains a patch for an upgrade, an enhancement or a bug fix
 > you agree on, reply to this email stating that you approve the patch
 > and a committer will take care of it.
 > 
 > The full text of the PR can be found at:
 >     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/133536
 > 
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Thu Apr 9 21:40:18 UTC 2009 
State-Changed-Why:  
Maintainer approved. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=133536 
State-Changed-From-To: open->closed 
State-Changed-By: amdmi3 
State-Changed-When: Thu Apr 9 23:54:18 UTC 2009 
State-Changed-Why:  
Committed. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/133536: commit references a PR
Date: Thu,  9 Apr 2009 23:54:30 +0000 (UTC)

 amdmi3      2009-04-09 23:54:00 UTC
 
   FreeBSD ports repository
 
   Modified files:
     sysutils/monit       Makefile 
   Log:
   - add an OPTION to enable/disable kvm
   
   PR:             133536
   Submitted by:   Tomoyuki Sakurai <cherry at trombik dot org>
   Approved by:    Martin Pala <martinp at tildeslash dot com> (maintainer)
   
   Revision  Changes    Path
   1.10      +9 -1      ports/sysutils/monit/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:
