diff options
author | jgh <jgh@FreeBSD.org> | 2012-12-20 13:28:30 +0800 |
---|---|---|
committer | jgh <jgh@FreeBSD.org> | 2012-12-20 13:28:30 +0800 |
commit | ba4475bcae71cc75de8432a8399541babe1a64d3 (patch) | |
tree | 321f38768511e7d3018a0bfa939f1c9ced08cae3 /devel | |
parent | 9053ec247ee8740f7938fee5eea6be15165e8250 (diff) | |
download | freebsd-ports-gnome-ba4475bcae71cc75de8432a8399541babe1a64d3.tar.gz freebsd-ports-gnome-ba4475bcae71cc75de8432a8399541babe1a64d3.tar.zst freebsd-ports-gnome-ba4475bcae71cc75de8432a8399541babe1a64d3.zip |
- update to 1.0.1
- support qemu bindings
- drop dependency on autotools suite
- perl is now a build dependency
- fix configuration file installations
- remove property on pkg-plist
Changes: http://libvirt.org/news.html
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libvirt/Makefile | 45 | ||||
-rw-r--r-- | devel/libvirt/distinfo | 4 | ||||
-rw-r--r-- | devel/libvirt/pkg-plist | 18 |
3 files changed, 54 insertions, 13 deletions
diff --git a/devel/libvirt/Makefile b/devel/libvirt/Makefile index 76d22b7c1605..4f69574180ac 100644 --- a/devel/libvirt/Makefile +++ b/devel/libvirt/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= libvirt -PORTVERSION= 1.0.0 +PORTVERSION= 1.0.1 CATEGORIES= devel MASTER_SITES= http://libvirt.org/sources/ @@ -11,6 +11,9 @@ COMMENT= Toolkit to interact with virtualization capabilities LICENSE= LGPL3 +OPTIONS_DEFINE= QEMU +QEMU_DESC= QEMU bindings + LIB_DEPENDS= curl.6:${PORTSDIR}/ftp/curl \ gcrypt.18:${PORTSDIR}/security/libgcrypt \ xml2.5:${PORTSDIR}/textproc/libxml2 \ @@ -18,7 +21,7 @@ LIB_DEPENDS= curl.6:${PORTSDIR}/ftp/curl \ ssh2.1:${PORTSDIR}/security/libssh2 GNU_CONFIGURE= yes -USE_AUTOTOOLS= automake autoconf +USE_PERL5_BUILD= yes CONFIGURE_ARGS= --without-sasl \ --without-yajl \ --without-avahi \ @@ -38,14 +41,25 @@ CONFIGURE_ENV= LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}" USE_GMAKE= yes USE_GNOME= gnomehack -GNOME_MAKEFILEIN= Makefile.am +GNOME_MAKEFILEIN= Makefile.in USE_LDCONFIG= yes USE_PYTHON_BUILD= yes SHLIB_VER= 1000 PLIST_SUB= PORTVERSION="-${PORTVERSION}" \ SHLIB_VER=${SHLIB_VER} -.if empty(PORT_OPTIONS:MNLS) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MQEMU} +CONFIGURE_ARGS+= --with-qemu +PLIST_SUB+= QEMU="" +QEMU_CONFIG= qemu +.else +CONFIGURE_ARGS+= --without-qemu +PLIST_SUB+= QEMU="@comment " +.endif + +.if ${PORT_OPTIONS:MNLS} USE_GETTEXT= yes PLIST_SUB+= NLS="" CONFIGURE_ARGS+= --enable-nls \ @@ -58,19 +72,30 @@ PLIST_SUB+= NLS="@comment " MAN1= virsh.1 virt-pki-validate.1 virt-xml-validate.1 virt-host-validate.1 MAN8= libvirtd.8 -AUTOTOOLSFILES= aclocal.m4 - post-patch: - @${REINPLACE_CMD} -e 's|1.11.6|%%AUTOMAKE_APIVER%%|g' \ - ${WRKSRC}/aclocal.m4 @${MV} ${WRKSRC}/daemon/libvirtd.conf ${WRKSRC}/daemon/libvirtd.conf.sample @${REINPLACE_CMD} -e 's|libvirtd\.conf|libvirtd.conf.sample|' \ - ${WRKSRC}/daemon/Makefile.am \ ${WRKSRC}/daemon/Makefile.in @${MV} ${WRKSRC}/src/libvirt.conf ${WRKSRC}/src/libvirt.conf.sample @${REINPLACE_CMD} -e 's|conf_DATA = libvirt.conf|conf_DATA = libvirt.conf.sample|' \ - ${WRKSRC}/src/Makefile.am + ${WRKSRC}/src/Makefile.in + + @${MV} ${WRKSRC}/src/qemu/qemu.conf ${WRKSRC}/src/qemu/qemu.conf.sample + @${REINPLACE_CMD} -e 's|qemu.conf |qemu.conf.sample |' \ + ${WRKSRC}/src/Makefile.in + @${REINPLACE_CMD} -e 's|qemu.conf$$|qemu.conf.sample|' \ + ${WRKSRC}/src/Makefile.in + +post-install: + @for configuration in libvirt libvirtd ${QEMU_CONFIG}; do \ + if [ ! -e "${ETCDIR}/$${configuration}.conf" ]; then \ + ${ECHO_MSG} " Installing local configuration file: ${ETCDIR}/$${configuration}.conf"; \ + ${CP} ${ETCDIR}/$${configuration}.conf.sample ${ETCDIR}/$${configuration}.conf; \ + else \ + ${ECHO_MSG} " Preserving local configuration file: ${ETCDIR}/$${configuration}.conf"; \ + fi; \ + done regression-test: build @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} check diff --git a/devel/libvirt/distinfo b/devel/libvirt/distinfo index 45c54525570c..f739d7590f15 100644 --- a/devel/libvirt/distinfo +++ b/devel/libvirt/distinfo @@ -1,2 +1,2 @@ -SHA256 (libvirt-1.0.0.tar.gz) = 14c8a30ebfb939c82cab5f759a95d09646b43b4210e45490e92459ae65123076 -SIZE (libvirt-1.0.0.tar.gz) = 21868950 +SHA256 (libvirt-1.0.1.tar.gz) = 4a16c76c46ebc41a6514082b5d95b5d5a0868e7a8cc00ab2e6cc1a23ec6b5a3b +SIZE (libvirt-1.0.1.tar.gz) = 22512698 diff --git a/devel/libvirt/pkg-plist b/devel/libvirt/pkg-plist index 2b6574e57508..b0ce486f9e8b 100644 --- a/devel/libvirt/pkg-plist +++ b/devel/libvirt/pkg-plist @@ -1,4 +1,3 @@ -@comment $FreeBSD$ bin/virsh bin/virt-host-validate bin/virt-pki-validate @@ -9,6 +8,10 @@ bin/virt-xml-validate @unexec if cmp -s %D/%%ETCDIR%%/libvirt.conf.sample %D/%%ETCDIR%%/libvirt.conf; then rm -f %D/%%ETCDIR%%/libvirt.conf; fi %%ETCDIR%%/libvirt.conf.sample @exec if [ ! -f %D/%%ETCDIR%%/libvirt.conf ] ; then cp -p %D/%%ETCDIR%%/libvirt.conf.sample %D/%%ETCDIR%%/libvirt.conf; fi +%%QEMU%%@unexec if cmp -s %D/%%ETCDIR%%/qemu.conf.sample %D/%%ETCDIR%%/qemu.conf; then rm -f %D/%%ETCDIR%%/qemu.conf; fi +%%QEMU%%%%ETCDIR%%/qemu.conf.sample +%%QEMU%%@exec if [ ! -f %D/%%ETCDIR%%/qemu.conf ] ; then cp -p %D/%%ETCDIR%%/qemu.conf.sample %D/%%ETCDIR%%/qemu.conf; fi +%%QEMU%%%%ETCDIR%%/qemu-lockd.conf %%ETCDIR%%/nwfilter/allow-arp.xml %%ETCDIR%%/nwfilter/allow-dhcp-server.xml %%ETCDIR%%/nwfilter/allow-dhcp.xml @@ -33,6 +36,9 @@ etc/logrotate.d/libvirtd.uml include/libvirt/libvirt-qemu.h include/libvirt/libvirt.h include/libvirt/virterror.h +lib/libvirt/lock-driver/lockd.so +lib/libvirt/lock-driver/lockd.la +lib/libvirt/lock-driver/lockd.a lib/libvirt-qemu.a lib/libvirt-qemu.la lib/libvirt-qemu.so @@ -49,9 +55,15 @@ lib/libvirt.so.%%SHLIB_VER%% %%PYTHON_SITELIBDIR%%/libvirtmod_qemu.so libdata/pkgconfig/libvirt.pc libexec/libvirt_iohelper +libexec/libvirt-guests.sh sbin/libvirtd +sbin/virtlockd +share/augeas/lenses/libvirt_lockd.aug share/augeas/lenses/libvirtd.aug +%%QEMU%%share/augeas/lenses/libvirtd_qemu.aug +share/augeas/lenses/tests/test_libvirt_lockd.aug share/augeas/lenses/tests/test_libvirtd.aug +%%QEMU%%share/augeas/lenses/tests/test_libvirtd_qemu.aug %%DOCSDIR%%%%PORTVERSION%%/html/32favicon.png %%DOCSDIR%%%%PORTVERSION%%/html/404.html %%DOCSDIR%%%%PORTVERSION%%/html/api.html @@ -268,6 +280,9 @@ share/gtk-doc/html/libvirt/up.png @dirrmtry %%PYTHON_SITELIBDIR%% @dirrmtry %%PYTHON_LIBDIR%% @exec /bin/mkdir -p %%PREFIX%%/lib/libvirt/connection-driver +%%QEMU%%lib/libvirt/connection-driver/libvirt_driver_qemu.so +%%QEMU%%lib/libvirt/connection-driver/libvirt_driver_qemu.la +%%QEMU%%lib/libvirt/connection-driver/libvirt_driver_qemu.a lib/libvirt/connection-driver/libvirt_driver_secret.a lib/libvirt/connection-driver/libvirt_driver_secret.so lib/libvirt/connection-driver/libvirt_driver_secret.la @@ -275,6 +290,7 @@ lib/libvirt/connection-driver/libvirt_driver_storage.a lib/libvirt/connection-driver/libvirt_driver_storage.so lib/libvirt/connection-driver/libvirt_driver_storage.la @dirrm lib/libvirt/connection-driver +@dirrm lib/libvirt/lock-driver @dirrm lib/libvirt @dirrm %%DOCSDIR%%%%PORTVERSION%%/html/html @dirrm %%DOCSDIR%%%%PORTVERSION%%/html/internals |