APKBUILD 1.44 KB
Newer Older
Leonardo Arena's avatar
Leonardo Arena committed
1
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
Leonardo Arena's avatar
Leonardo Arena committed
2
pkgname=libvirt
3 4
pkgver=0.9.9
pkgrel=0
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="bridge-utils dmidecode iptables netcat-openbsd python"
10
makedepends="augeas-dev bridge-utils cyrus-sasl-dev device-mapper 
11 12
	e2fsprogs-dev gnutls-dev libcap-ng-dev libgpg-error-dev 
	libnetcf-dev libnl-dev libxml2-dev libxslt-dev libtasn1-dev 
13 14
	lvm2-dev lxc-dev gnutls-dev open-iscsi parted-dev perl pkgconfig 
	udev-dev xen zlib-dev"
Leonardo Arena's avatar
Leonardo Arena committed
15 16 17 18
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://libvirt.org/sources/$pkgname-$pkgver.tar.gz
	libvirt.confd
19
	libvirt.initd"
Leonardo Arena's avatar
Leonardo Arena committed
20 21 22

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

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

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

package() {
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
41
	make DESTDIR="$pkgdir" install || return 1
Natanael Copa's avatar
Natanael Copa committed
42
	find "$pkgdir" -name '*.la' -delete
Leonardo Arena's avatar
Leonardo Arena committed
43 44 45 46
	install -D -m755 $srcdir/$pkgname.initd $pkgdir/etc/init.d/libvirtd
	install -D -m755 $srcdir/$pkgname.confd $pkgdir/etc/conf.d/libvirtd
}

47
md5sums="37c4bf8cdd4c76150bc0c1d249945d27  libvirt-0.9.9.tar.gz
Leonardo Arena's avatar
Leonardo Arena committed
48
1c84a7baeafe0a7f4e9d7ae5180311b7  libvirt.confd
49
7067215010da2d7282d878ba43070c5d  libvirt.initd"