From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jan 13 15:10:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 90348AEA for ; Mon, 13 Jan 2014 15:10:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6A8B117A1 for ; Mon, 13 Jan 2014 15:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0DFA0pQ054085 for ; Mon, 13 Jan 2014 15:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0DFA0DN054084; Mon, 13 Jan 2014 15:10:00 GMT (envelope-from gnats) Resent-Date: Mon, 13 Jan 2014 15:10:00 GMT Resent-Message-Id: <201401131510.s0DFA0DN054084@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, David Shane Holden Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F35788A0 for ; Mon, 13 Jan 2014 15:05:52 +0000 (UTC) Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C4775177E for ; Mon, 13 Jan 2014 15:05:52 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id s0DF5qZ1029240 for ; Mon, 13 Jan 2014 15:05:52 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id s0DF5q3g029231; Mon, 13 Jan 2014 15:05:52 GMT (envelope-from nobody) Message-Id: <201401131505.s0DF5q3g029231@oldred.freebsd.org> Date: Mon, 13 Jan 2014 15:05:52 GMT From: David Shane Holden To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/185745: [patch] devel/libvirt: add rc.d/libvirtd X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jan 2014 15:10:00 -0000 >Number: 185745 >Category: ports >Synopsis: [patch] devel/libvirt: add rc.d/libvirtd >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: Mon Jan 13 15:10:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: David Shane Holden >Release: >Organization: >Environment: >Description: Add libvirtd rc script and add yajl to LIB_DEPENDS because libvirt requires it when managing qemu VMs. >How-To-Repeat: >Fix: Patch attached with submission follows: diff --git a/devel/libvirt/Makefile b/devel/libvirt/Makefile index 2ed3922..cdc6068 100644 --- a/devel/libvirt/Makefile +++ b/devel/libvirt/Makefile @@ -3,6 +3,7 @@ PORTNAME= libvirt PORTVERSION= 1.2.0 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://libvirt.org/sources/ \ ftp://libvirt.org/libvirt/ @@ -14,6 +15,7 @@ LICENSE= LGPL3 LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \ libgcrypt.so:${PORTSDIR}/security/libgcrypt \ + libyajl.so:${PORTSDIR}/devel/yajl \ libxml2.so:${PORTSDIR}/textproc/libxml2 \ libgnutls.so:${PORTSDIR}/security/gnutls \ libssh2.so:${PORTSDIR}/security/libssh2 @@ -23,6 +25,8 @@ QEMU_DESC= QEMU bindings OPTIONS_SUB= yes +USE_RC_SUBR= libvirtd + QEMU_CONFIGURE_WITH= qemu NLS_USES= gettext @@ -31,7 +35,6 @@ NLS_CONFIGURE_ON= --with-libintl-prefix=${LOCALBASE} GNU_CONFIGURE= yes CONFIGURE_ARGS= --without-sasl \ - --without-yajl \ --without-avahi \ --without-polkit \ --without-hal \ diff --git a/devel/libvirt/files/libvirtd.in b/devel/libvirt/files/libvirtd.in new file mode 100644 index 0000000..0f359ef --- /dev/null +++ b/devel/libvirt/files/libvirtd.in @@ -0,0 +1,27 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: libvirtd +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add the following line to /etc/rc.conf[.local] to enable libvirtd(8) +# +# libvirtd_enable (bool): Set to "NO" by default. +# Set to "YES" to enable libvirtd. +# + +. /etc/rc.subr + +name="libvirtd" +rcvar=libvirtd_enable + +command="%%PREFIX%%/sbin/libvirtd" +command_args="--daemon" + +load_rc_config $name + +: ${libvirtd_enable="NO"} + +run_rc_command "$1" >Release-Note: >Audit-Trail: >Unformatted: