APKBUILD 1.45 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.10.2
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
	lvm2-dev lxc-dev gnutls-dev libgcrypt-dev parted-dev perl pkgconfig 
14
	udev-dev xen-dev zlib-dev yajl-dev libpcap-dev curl-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
	return 0
26
}
Leonardo Arena's avatar
Leonardo Arena committed
27 28 29

build() {
	cd "$_builddir"
30
	export LDFLAGS="$LDFLAGS -lm"
Leonardo Arena's avatar
Leonardo Arena committed
31 32 33 34
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
35 36 37
		--libexec=/usr/lib/"$pkgname" \
		--without-libxl \
		|| return 1
38
	make || return 1
Leonardo Arena's avatar
Leonardo Arena committed
39 40 41 42
}

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

49
md5sums="a5e50860d9da238ba270b528411c4a0d  libvirt-0.10.2.tar.gz
Leonardo Arena's avatar
Leonardo Arena committed
50
1c84a7baeafe0a7f4e9d7ae5180311b7  libvirt.confd
51
7067215010da2d7282d878ba43070c5d  libvirt.initd"