# $Id$ PNAME="lxc" PVER="0.9.0" PBUILD="r1" PCAT="app-emulation" DESCRIPTION="LXC Linux Containers control utility." HOMEPAGE="http://lxc.sourceforge.net/" DEPEND=">= sys-libs/libcap-2.22" SDEPEND=">= virtual/kernel-headers" SRCFILE="${PNAME}-${PVER/_/-}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/-}" sminclude mbuild mtools SRC_URI=( http://lxc.sourceforge.net/download/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd_sourceforge ${PNAME}" src_compile() { cd ${SRCDIR} mconfigure \ --localstatedir=/var \ --libexecdir=/usr/$(mlibdir) \ --docdir=/usr/share/doc/${PNAME}-${PVER} \ --with-config-path=/etc/lxc \ --with-rootfs-path=/var/lib/lxc/rootfs \ --disable-doc \ --enable-examples \ --disable-rpath \ --disable-apparmor \ || die mmake || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die mkeepdir /etc/lxc || die mkeepdir /var/lib/lxc/rootfs || die mkeepdir /var/log/lxc || die }