Gentoo Archives: gentoo-commits

From: "Doug Goldstein (cardoe)" <cardoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/libvirt: metadata.xml ChangeLog libvirt-0.6.2.ebuild
Date: Fri, 17 Apr 2009 15:01:19
Message-Id: E1LupZ6-00034G-JX@stork.gentoo.org
1 cardoe 09/04/17 15:01:16
2
3 Modified: metadata.xml ChangeLog
4 Added: libvirt-0.6.2.ebuild
5 Log:
6 add missing USE flaG
7 (Portage version: 2.1.6.11/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.11 app-emulation/libvirt/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/metadata.xml?rev=1.11&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/metadata.xml?rev=1.11&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/metadata.xml?r1=1.10&r2=1.11
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-emulation/libvirt/metadata.xml,v
19 retrieving revision 1.10
20 retrieving revision 1.11
21 diff -u -r1.10 -r1.11
22 --- metadata.xml 31 Jan 2009 07:39:52 -0000 1.10
23 +++ metadata.xml 17 Apr 2009 15:01:16 -0000 1.11
24 @@ -28,5 +28,6 @@
25 virtual machines</flag>
26 <flag name='xen'>Add support for <pkg>app-emulation/xen</pkg> based
27 virtual machines</flag>
28 + <flag name='network'>Enable networking support for guests</flag>
29 </use>
30 </pkgmetadata>
31
32
33
34 1.22 app-emulation/libvirt/ChangeLog
35
36 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/ChangeLog?rev=1.22&view=markup
37 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/ChangeLog?rev=1.22&content-type=text/plain
38 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/ChangeLog?r1=1.21&r2=1.22
39
40 Index: ChangeLog
41 ===================================================================
42 RCS file: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v
43 retrieving revision 1.21
44 retrieving revision 1.22
45 diff -u -r1.21 -r1.22
46 --- ChangeLog 20 Feb 2009 17:47:32 -0000 1.21
47 +++ ChangeLog 17 Apr 2009 15:01:16 -0000 1.22
48 @@ -1,6 +1,13 @@
49 # ChangeLog for app-emulation/libvirt
50 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
51 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.21 2009/02/20 17:47:32 cardoe Exp $
52 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.22 2009/04/17 15:01:16 cardoe Exp $
53 +
54 +*libvirt-0.6.2 (17 Apr 2009)
55 +
56 + 17 Apr 2009; Doug Goldstein <cardoe@g.o>
57 + +files/libvirt-0.6.2-storage-fix.patch, +libvirt-0.6.2.ebuild:
58 + version bump. ebuild is masked for evaluation. fixes bugs #256904,
59 + #253961, #254568, and #249029.
60
61 20 Feb 2009; Doug Goldstein <cardoe@g.o> libvirt-0.4.6-r1.ebuild,
62 libvirt-0.5.1.ebuild:
63
64
65
66 1.1 app-emulation/libvirt/libvirt-0.6.2.ebuild
67
68 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/libvirt-0.6.2.ebuild?rev=1.1&view=markup
69 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/libvirt-0.6.2.ebuild?rev=1.1&content-type=text/plain
70
71 Index: libvirt-0.6.2.ebuild
72 ===================================================================
73 # Copyright 1999-2009 Gentoo Foundation
74 # Distributed under the terms of the GNU General Public License v2
75 # $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-0.6.2.ebuild,v 1.1 2009/04/17 15:01:16 cardoe Exp $
76
77 EAPI=1
78
79 inherit eutils autotools
80
81 DESCRIPTION="C toolkit to manipulate virtual machines"
82 HOMEPAGE="http://www.libvirt.org/"
83 SRC_URI="http://libvirt.org/sources/${P}.tar.gz"
84
85 LICENSE="LGPL-2.1"
86 SLOT="0"
87 KEYWORDS="~amd64 ~x86"
88 IUSE="avahi iscsi hal kvm lvm +lxc +network openvz parted qemu sasl selinux uml xen"
89 # policykit is in package.mask
90 # devicekit isn't in portage
91
92 DEPEND="sys-libs/readline
93 sys-libs/ncurses
94 >=dev-libs/libxml2-2.5
95 >=net-libs/gnutls-1.0.25
96 dev-lang/python
97 sys-fs/sysfsutils
98 net-analyzer/netcat
99 dev-util/pkgconfig
100 avahi? ( >=net-dns/avahi-0.6 )
101 iscsi? ( sys-block/open-iscsi )
102 kvm? ( app-emulation/kvm )
103 lvm? ( sys-fs/lvm2 )
104 network? ( net-misc/bridge-utils net-dns/dnsmasq net-firewall/iptables )
105 openvz? ( sys-kernel/openvz-sources )
106 parted? ( >=sys-apps/parted-1.8 )
107 qemu? ( app-emulation/qemu )
108 sasl? ( dev-libs/cyrus-sasl )
109 selinux? ( sys-libs/libselinux )
110 xen? ( app-emulation/xen-tools app-emulation/xen )
111 "
112 #policykit? ( >=sys-auth/policykit-0.6 )
113
114 src_unpack() {
115 unpack ${A}
116 cd "${S}"
117
118 epatch "${FILESDIR}"/"${PN}"-0.4.6-qemu-img-name.patch
119 epatch "${FILESDIR}"/"${P}"-storage-fix.patch
120 eautoreconf
121 }
122
123 pkg_setup() {
124 local hasbackend=0
125 local backends="lxc kvm openvz qemu uml xen"
126 local backend
127
128 for backend in $backends ; do
129 use $backend && hasbackend=1
130 done
131
132 if [ "$hasbackend" == 0 ]; then
133 local msg="You must enable one of these USE flags: $backends"
134 eerror "$msg"
135 die "$msg"
136 fi
137 }
138
139 src_compile() {
140 local my_conf=""
141 if use qemu || use kvm ; then
142 # fix path for kvm-img but use qemu-img if the useflag is set
143 my_conf="--with-qemu \
144 $(use_with !qemu qemu-img-name kvm-img)"
145 else
146 my_conf="--without-qemu"
147 fi
148
149 econf \
150 $(use_with avahi) \
151 $(use_with iscsi storage-iscsi) \
152 $(use_with lvm storage-lvm) \
153 $(use_with lxc) \
154 $(use_with hal) \
155 $(use_with openvz) \
156 $(use_with parted storage-disk) \
157 $(use_with sasl) \
158 $(use_with selinux) \
159 $(use_with uml) \
160 $(use_with xen) \
161 $(use_with network) \
162 ${my_conf} \
163 --without-devkit \
164 --without-polkit \
165 --with-remote \
166 --disable-iptables-lokkit \
167 --localstatedir=/var \
168 --with-remote-pid-file=/var/run/libvirtd.pid \
169 || die "econf failed"
170 #$(use_with policykit) \
171 emake || die "emake failed"
172 }
173
174 src_install() {
175 emake DESTDIR="${D}" install || die
176 mv "${D}"/usr/share/doc/{${PN}-python*,${P}/python}
177 newinitd "${FILESDIR}"/libvirtd.init libvirtd
178 newconfd "${FILESDIR}"/libvirtd.confd libvirtd
179 }
180
181 pkg_postinst() {
182 elog "To allow normal users to connect to libvirtd you must change the"
183 elog " unix sock group and/or perms in /etc/libvirt/libvirtd.conf"
184 }