Date: Mon, 13 Jan 2014 15:05:52 GMT From: David Shane Holden <dpejesh@yahoo.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/185745: [patch] devel/libvirt: add rc.d/libvirtd Message-ID: <201401131505.s0DF5q3g029231@oldred.freebsd.org> Resent-Message-ID: <201401131510.s0DFA0DN054084@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401131505.s0DF5q3g029231>