APKBUILD 1.42 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
pkgver=0.10.1
4
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 35
	./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="5f628e53437b0b0e78477904ba3310af  libvirt-0.10.1.tar.gz
Leonardo Arena's avatar
Leonardo Arena committed
48
1c84a7baeafe0a7f4e9d7ae5180311b7  libvirt.confd
49
7067215010da2d7282d878ba43070c5d  libvirt.initd"