# Template file for 'lxc'
pkgname=lxc
version=0.8.0
revision=2
build_style=gnu-configure
configure_args="--disable-apparmor"
makedepends="libcap-devel"
short_desc="LinuX Containers"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://lxc.sourceforge.net"
license="LGPL-2.1"
distfiles="http://lxc.sourceforge.net/download/lxc/lxc-${version}.tar.gz"
checksum=eac833730b94e423d4bef6834bc4a716437d2abd6ab8b24334c506aaaa08692c
long_desc="
 The  container technology is actively being pushed into the mainstream linux
 kernel. It provides the resource management through the control groups aka
 process containers and resource isolation through the namespaces.

 The linux containers, lxc, aims to use these new functionalities to provide
 an userspace container object which provides full resource isolation and
 resource control for an application or a system."

liblxc_package() {
	short_desc="${short_desc} - shared library"
	pkg_install() {
		vmove "usr/lib/*.so*"
	}
}

lxc-devel_package() {
	depends="libcap-devel liblxc-${version}_${revision}"
	short_desc="${short_desc} - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
	}
}

lxc_package() {
	pkg_install() {
		vmove usr
	}
}
