APKBUILD 1.33 KB
Newer Older
Leonardo Arena's avatar
Leonardo Arena committed
1 2
# Maintainer: Leonardo Arena <rnalrd@gmail.com>
pkgname=libvirt
3
pkgver=0.9.2
4
pkgrel=1
Leonardo Arena's avatar
Leonardo Arena committed
5 6
pkgdesc="A virtualization API for several hypervisor and container systems"
url="http://libvirt.org/"
7
arch="all"
Leonardo Arena's avatar
Leonardo Arena committed
8
license="LGPL"
9
depends="netcat-openbsd python"
10 11 12 13
makedepends="augeas-dev bridge-utils-dev device-mapper e2fsprogs-dev gnutls-dev 
	libcap-ng-dev libgpg-error-dev libnetcf-dev libnl-dev libxml2-dev 
	libxslt-dev libtasn1-dev lvm2-dev gnutls-dev open-iscsi parted-dev perl 
	pkgconfig udev-dev zlib-dev"
Leonardo Arena's avatar
Leonardo Arena committed
14 15 16 17
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://libvirt.org/sources/$pkgname-$pkgver.tar.gz
	libvirt.confd
18
	libvirt.initd"
Leonardo Arena's avatar
Leonardo Arena committed
19 20 21

_builddir="$srcdir"/$pkgname-$pkgver

22 23
prepare() {
	cd "$_builddir"
24 25
#	patch -p1 < ../fix_undefined_symbol_error_when_macvtap_support_is_disabled.patch || return 1
	return 0
26
}
Leonardo Arena's avatar
Leonardo Arena committed
27 28 29 30 31 32 33 34

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--libexec=/usr/lib/"$pkgname"
35
	make || return 1
Leonardo Arena's avatar
Leonardo Arena committed
36 37 38 39 40 41 42 43 44
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	install -D -m755 $srcdir/$pkgname.initd $pkgdir/etc/init.d/libvirtd
	install -D -m755 $srcdir/$pkgname.confd $pkgdir/etc/conf.d/libvirtd
}

45
md5sums="a9f974e173471a9c9b381ad1e93642b0  libvirt-0.9.2.tar.gz
Leonardo Arena's avatar
Leonardo Arena committed
46
1c84a7baeafe0a7f4e9d7ae5180311b7  libvirt.confd
47
3d32c12642cb9a84baf019c7b0971755  libvirt.initd"