aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Bogorodskiy <novel@FreeBSD.org>2016-01-26 23:35:32 +0000
committerRoman Bogorodskiy <novel@FreeBSD.org>2016-01-26 23:35:32 +0000
commite3189e2bdd77e9ebda5967784a784b1db0e5565d (patch)
tree40c30ad2595024746d88d123d66da14bbf69c9f2
parent98e958d00357905650045fb8221bc48f2a48bf39 (diff)
Notes
-rw-r--r--devel/libvirt/Makefile9
-rw-r--r--devel/libvirt/files/libvirtd.in10
2 files changed, 15 insertions, 4 deletions
diff --git a/devel/libvirt/Makefile b/devel/libvirt/Makefile
index 15c8455d724c..8b3460f041f5 100644
--- a/devel/libvirt/Makefile
+++ b/devel/libvirt/Makefile
@@ -3,6 +3,7 @@
PORTNAME= libvirt
PORTVERSION= 1.3.1
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://libvirt.org/sources/ \
ftp://libvirt.org/libvirt/
@@ -15,14 +16,14 @@ LICENSE= LGPL3
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
libgcrypt.so:${PORTSDIR}/security/libgcrypt \
libxml2.so:${PORTSDIR}/textproc/libxml2 \
- libgnutls.so:${PORTSDIR}/security/gnutls \
libssh2.so:${PORTSDIR}/security/libssh2
BUILD_DEPENDS= dnsmasq:${PORTSDIR}/dns/dnsmasq \
xsltproc:${PORTSDIR}/textproc/libxslt
RUN_DEPENDS= dnsmasq:${PORTSDIR}/dns/dnsmasq \
dmidecode:${PORTSDIR}/sysutils/dmidecode
-OPTIONS_DEFINE= DOCS NLS QEMU SASL
+OPTIONS_DEFINE= DOCS GNUTLS NLS QEMU SASL
+OPTIONS_DEFAULT= GNUTLS
OPTIONS_DEFINE_amd64= XEN
.if exists(/usr/sbin/bhyve)
OPTIONS_DEFINE_amd64+= BHYVE
@@ -45,6 +46,10 @@ QEMU_LIB_DEPENDS= libyajl.so:${PORTSDIR}/devel/yajl
QEMU_RUN_DEPENDS= dmidecode:${PORTSDIR}/sysutils/dmidecode \
qemu-io:${PORTSDIR}/emulators/qemu-devel
+GNUTLS_CONFIGURE_ON= --with-gnutls=${LOCALBASE}
+GNUTLS_CONFIGURE_OFF= --without-gnutls
+GNUTLS_LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls
+
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
NLS_CONFIGURE_ON= --with-libintl-prefix=${LOCALBASE}
diff --git a/devel/libvirt/files/libvirtd.in b/devel/libvirt/files/libvirtd.in
index d275ec0ff999..b662d5eaaef8 100644
--- a/devel/libvirt/files/libvirtd.in
+++ b/devel/libvirt/files/libvirtd.in
@@ -11,6 +11,11 @@
# libvirtd_enable (bool): Set to 'YES' to enable
# Default: NO
#
+# libvirtd_flags (str): Custom additional arguments to be passed to libvirtd.
+# For example, to make it listen on TCP ports, set it
+# to "--listen".
+# Default: ""
+#
. /etc/rc.subr
@@ -19,13 +24,14 @@ rcvar=libvirtd_enable
load_rc_config $name
+: ${libvirtd_enable:="NO"}
+: ${libvirtd_flags:=""}
+
command=%%PREFIX%%/sbin/libvirtd
pidfile=/var/run/${name}.pid
command_args="--daemon --pid-file=${pidfile}"
-: ${libvirtd_enable:="NO"}
-
PATH="${PATH}:/usr/local/sbin:/usr/local/bin"
run_rc_command "$1"