Skip site navigation (1)Skip section navigation (2)
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:   ports/133536: [PATCH] sysutils/monit: add an OPTION to enable/disable kvm
Message-ID:  <20090409075212.34F731CEA2@spica.trombik.org>
Resent-Message-ID: <200904090820.n398K3NX009207@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         133536
>Category:       ports
>Synopsis:       [PATCH] sysutils/monit: add an OPTION to enable/disable kvm
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 09 08:20:02 UTC 2009
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090409075212.34F731CEA2>