Commit 1b02e03f authored by Natanael Copa's avatar Natanael Copa

main/libvirt: upgrade to 1.1.0

parent c6534ca8
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=libvirt
pkgver=1.0.6
pkgver=1.1.0
_ver="${pkgver/_rc/-rc}"
pkgrel=2
pkgrel=0
pkgdesc="A virtualization API for several hypervisor and container systems"
url="http://libvirt.org/"
arch="all"
......@@ -14,8 +14,9 @@ makedepends="augeas-dev bridge-utils cyrus-sasl-dev device-mapper
lvm2-dev lxc-dev gnutls-dev libgcrypt-dev parted-dev perl pkgconfig
udev-dev zlib-dev yajl-dev libpcap-dev curl-dev libpciaccess-dev"
install="$pkgname.post-install"
subpackages="$pkgname-client $pkgname-daemon $pkgname-dev $pkgname-doc $pkgname-lang
$pkgname-lxc $pkgname-qemu $pkgname-uml"
subpackages="$pkgname-client $pkgname-daemon $pkgname-dev $pkgname-doc
$pkgname-lang
$pkgname-lxc $pkgname-qemu $pkgname-uml $pkgname-vbox"
source="http://libvirt.org/sources/$pkgname-$pkgver.tar.gz
libvirt.confd
libvirt.initd
......@@ -57,7 +58,7 @@ build() {
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--libexec=/usr/lib/"$pkgname" \
--without-libxl \
--with-libxl \
|| return 1
make || return 1
}
......@@ -73,7 +74,7 @@ package() {
daemon() {
cd "$_builddir"
pkgdesc="libvirt daemon package"
depends="libvirt-client logrotate"
depends="libvirt-client"
daemon="libvirtd"
replaces="libvirt"
mkdir -p "$subpkgdir"/etc/$pkgname \
......@@ -99,9 +100,9 @@ client() {
}
_mv_driver() {
local _name="$1" _driver="$2" _pkg="$3"
local _name="$1" _drivers="$2" _pkg="$3"
pkgdesc="$_name driver for libvirt"
depends="libvirt-daemon logrotate"
depends="libvirt-daemon"
replaces="libvirt"
if [ -n "$_pkg" ]; then
install_if="$pkgname-daemon=$pkgver-r$pkgrel $_pkg"
......@@ -112,9 +113,11 @@ _mv_driver() {
mkdir -p "$subpkgdir"/$_dir \
"$subpkgdir"/etc/libvirt \
"$subpkgdir"/etc/logrotate.d
mv "$pkgdir"/$_dir/libvirt_driver_$_driver.so "$subpkgdir"/$_dir/ \
|| return 1
local _d
for _d in $_drivers; do
mv "$pkgdir"/$_dir/libvirt_driver_$_d.so \
"$subpkgdir"/$_dir/ || return 1
done
if [ -e "$pkgdir"/etc/logrotate.d/libvirtd.$_driver ]; then
mv "$pkgdir"/etc/logrotate.d/libvirtd.$_driver \
......@@ -128,7 +131,7 @@ qemu() {
}
xen() {
_mv_driver "XEN" xen xen
_mv_driver "XEN" "libxl xen" xen
}
lxc() {
......@@ -139,15 +142,19 @@ uml() {
_mv_driver "UML" uml
}
md5sums="a4a09a981f902c4d6aa5138c753d64fd libvirt-1.0.6.tar.gz
vbox() {
_mv_driver "VirtualBox" vbox
}
md5sums="f980a84719033e9efca01048da505dfb libvirt-1.1.0.tar.gz
1c84a7baeafe0a7f4e9d7ae5180311b7 libvirt.confd
d897df38c7e7fa1a297aa551108633c9 libvirt.initd
df9cbfaf8a6e520a4822914a300add4d uclibc-physmem.patch"
sha256sums="a188eb2056d7936c4c9605f4d435b9097880ec359e10be6546f2c9fa665de67d libvirt-1.0.6.tar.gz
sha256sums="ce9e765697ecb595469489665043ce221d9b70babc16fec77ee938fe37676928 libvirt-1.1.0.tar.gz
851ab3f9678f0fa9c3ee03f7fc7bd00c4ee86d5f0777eecf9eb1ffe3243adfd1 libvirt.confd
e9fad203434ffaa6afe524e42a9fb6594edad61cb02b1ca60a68d1a7fe0c31ab libvirt.initd
807005a8669b7396c9af43ddb2534bb0f073f1e97a5c8b1d9eefc1949f3c2df8 uclibc-physmem.patch"
sha512sums="27948694d80df73de335ccd1dffaff4b4e14345f06d9e4043a7a2402dbede3db441da3ceffe3d54fcf6a34c37ea862b91198dd9b63a131b40aedab95a1646308 libvirt-1.0.6.tar.gz
sha512sums="0ac9c8b02a182ad4c66609bc949282455b362fc2aa576d1c2413366dfb1ce70d3737caad0101128f8629c34e0ca47295128bafe5608e3ac60e764c3f8178c7f0 libvirt-1.1.0.tar.gz
9aba6ab73219a635c64a340ee8887356e644445c9128734cbce73f5d54778378da2f10a190365ad88a7db8bc95b1fb17f0c6ca41fc41bb786c09e1afe84d65dc libvirt.confd
f48c97f93ef4509a86eda6200b3aae5b2c0c6263403bde933b770fd62240dca27bc439bd29b440ea6a47c8337f8b4511230ed915cb5ff54d9a1cf311863f6fa1 libvirt.initd
4c885e72dcb11f8523a267917315d4874812eee289fb00075334c1728d0da9bd0e5db6c52d6e3c39bd3fe66d5ccadf9e26ec9dcaa855397e211b9bd1173ac72d uclibc-physmem.patch"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment