From owner-svn-ports-head@FreeBSD.ORG Wed Jan 22 00:45:06 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org 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 59D81803 for ; Wed, 22 Jan 2014 00:45:06 +0000 (UTC) Received: from mail-pb0-f43.google.com (mail-pb0-f43.google.com [209.85.160.43]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2A66B1A51 for ; Wed, 22 Jan 2014 00:45:05 +0000 (UTC) Received: by mail-pb0-f43.google.com with SMTP id md12so9117387pbc.2 for ; Tue, 21 Jan 2014 16:45:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=OMCYqZKCiizVv4jHdkqBK0+MCEwK54aEzm3+Uw8OwxM=; b=GPweuOdmWGjc2aPAHSNM+QwGuVjMftuh0nSr6SJ4f3TG15H3J/Q9a5E7+Y/taCcK9+ 2wdMbhxngTugqWZXE82GJNgSsoQFTqSi6nRbIWNKcXJ5t0kjOv2STpmtIc4P2kmPQyUF 9d87z+jcpZ6CiAGkh4RhYty/w1YM/i+31M4as9corH9GrSlDkku94CZaPtbRL0/NGL8Z pFsrcFvha+oTQvS869vStmr4hMVVxfljL0OzaFFSyarasEUC56mxaXztVDI1wUDb49Iq nlTCyOn+HGFcjfUdjT4RFXu1i6dneH6kSht7PqNpKEIP8bGo8gAEDcveIJJi3hnzGnJS 6EGA== X-Gm-Message-State: ALoCoQmbidek0z/mN7dcN7pwxpbn1e6KiGNxuZNk06UK8qF4+8jUa4aTqN7sPMiUL/pAqY7ko3Bt MIME-Version: 1.0 X-Received: by 10.68.223.9 with SMTP id qq9mr28097658pbc.58.1390351504370; Tue, 21 Jan 2014 16:45:04 -0800 (PST) Sender: bsd-src@helfman.org Received: by 10.70.78.130 with HTTP; Tue, 21 Jan 2014 16:45:04 -0800 (PST) In-Reply-To: <201401220016.s0M0GjDl047239@svn.freebsd.org> References: <201401220016.s0M0GjDl047239@svn.freebsd.org> Date: Tue, 21 Jan 2014 16:45:04 -0800 X-Google-Sender-Auth: cKrGVSKCrSYQOS1h_Rsx5rLV3ms Message-ID: Subject: Re: svn commit: r340676 - in head/devel/libvirt: . files From: Jason Helfman To: bug-followup Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: "svn-ports-head@freebsd.org" , "svn-ports-all@freebsd.org" , "ports-committers@freebsd.org" X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jan 2014 00:45:06 -0000 Wrong PR was noted (forwarding contents to GNATS): Correct pr is 185745 On Tue, Jan 21, 2014 at 4:16 PM, Jason Helfman wrote: > Author: jgh > Date: Wed Jan 22 00:16:44 2014 > New Revision: 340676 > URL: http://svnweb.freebsd.org/changeset/ports/340676 > QAT: https://qat.redports.org/buildarchive/r340676/ > > Log: > - add rc.d script for libvirtd daemon control [1] > - rename option description for qemu > - fix qemu dependencies for libvirtd operations > - strip libraries > - add pkg-message > > Many thanks to roman@ for testing! > > PR: 168656 [1] > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=168656 > Submitted by: dpejesh@yahoo.com > > Added: > head/devel/libvirt/files/ > head/devel/libvirt/files/libvirtd.in (contents, props changed) > head/devel/libvirt/pkg-message (contents, props changed) > Modified: > head/devel/libvirt/Makefile > > Modified: head/devel/libvirt/Makefile > > ============================================================================== > --- head/devel/libvirt/Makefile Tue Jan 21 23:47:07 2014 (r340675) > +++ head/devel/libvirt/Makefile Wed Jan 22 00:16:44 2014 (r340676) > @@ -3,6 +3,7 @@ > > PORTNAME= libvirt > PORTVERSION= 1.2.1 > +PORTREVISION= 1 > CATEGORIES= devel > MASTER_SITES= http://libvirt.org/sources/ \ > ftp://libvirt.org/libvirt/ > @@ -19,19 +20,24 @@ LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/ > libssh2.so:${PORTSDIR}/security/libssh2 > > OPTIONS_DEFINE= QEMU DOCS NLS > -QEMU_DESC= QEMU bindings > +QEMU_DESC= QEMU driver > > OPTIONS_SUB= yes > > -QEMU_CONFIGURE_WITH= qemu > +QEMU_CONFIGURE_WITH= qemu yajl > +QEMU_CFLAGS= -I${LOCALBASE}/include > +QEMU_LIB_DEPENDS= libyajl.so:${PORTSDIR}/devel/yajl > +QEMU_RUN_DEPENDS= dmidecode:${PORTSDIR}/sysutils/dmidecode \ > + qemu-io:${PORTSDIR}/emulators/qemu-devel > > NLS_USES= gettext > NLS_CONFIGURE_ENABLE= nls > NLS_CONFIGURE_ON= --with-libintl-prefix=${LOCALBASE} > > +USE_RC_SUBR= libvirtd > + > GNU_CONFIGURE= yes > CONFIGURE_ARGS= --without-sasl \ > - --without-yajl \ > --without-avahi \ > --without-polkit \ > --without-hal \ > @@ -59,6 +65,13 @@ SHLIB_VER= 1002 > PLIST_SUB= PORTVERSION="-${PORTVERSION}" \ > SHLIB_VER=${SHLIB_VER} > PORTDOCS= * > +STRIP_FILES= libvirt.so.${SHLIB_VER} \ > + libvirt-qemu.so.${SHLIB_VER} \ > + libvirt-lxc.so.${SHLIB_VER} \ > + libvirt/lock-driver/lockd.so \ > + libvirt/connection-driver/libvirt_driver_vbox.so \ > + libvirt/connection-driver/libvirt_driver_secret.so \ > + libvirt/connection-driver/libvirt_driver_storage.so > > .include > > @@ -90,12 +103,14 @@ post-install: > ${ECHO_MSG} " Preserving local configuration > file: ${STAGEDIR}${ETCDIR}/$${configuration}.conf"; \ > fi; \ > done > -.if ${PORT_OPTIONS:MDOCS} > @${MKDIR} ${STAGEDIR}${DOCSDIR} > .for doc in AUTHORS ChangeLog INSTALL NEWS README TODO > ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR} > .endfor > -.endif > + > +.for lib in ${STRIP_FILES} > + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${lib} > +.endfor > > regression-test: build > @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} check > > Added: head/devel/libvirt/files/libvirtd.in > > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/devel/libvirt/files/libvirtd.in Wed Jan 22 00:16:44 2014 > (r340676) > @@ -0,0 +1,31 @@ > +#!/bin/sh > + > +# $FreeBSD$ > +# > +# PROVIDE: libvirtd > +# REQUIRE: LOGIN > +# KEYWORD: shutdown > +# > +# Add the following line to /etc/rc.conf[.local] to enable libvirtd. > +# > +# libvirtd_enable (bool): Set to 'YES' to enable > +# Default: NO > +# > + > +. /etc/rc.subr > + > +name=libvirtd > +rcvar=libvirtd_enable > + > +load_rc_config $name > + > +command=%%PREFIX%%/sbin/libvirtd > +pidfile=%%LOCALBASE%%/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" > > Added: head/devel/libvirt/pkg-message > > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/devel/libvirt/pkg-message Wed Jan 22 00:16:44 2014 > (r340676) > @@ -0,0 +1,3 @@ > + > +To enable libvirtd please add libvirtd_enable="YES" to > +/etc/rc.conf. > > -- Jason Helfman | FreeBSD Committer jgh@FreeBSD.org | http://people.freebsd.org/~jgh | The Power to Serve