# $Header: /magellan-cvs/smage/vzquota/vzquota-3.0.9-r1.smage2,v 1.2 2007-07-21 12:09:17 niro Exp $ BRANCH="gentoo" PNAME="openvz-template-${BRANCH}" PVER="20060317" PBUILD="r1" PCATEGORIE="app-emulation" STATE="unstable" DESCRIPTION="OpenVZ precreated template for a ${BRANCH}-${PVER} virtual host." HOMEPAGE="http://openvz.org/" DEPEND="" # both files must be fetch or our md5-logic breaks SRCFILE_x86="${BRANCH}-${PVER}-i686-stage3.tar.gz" SRCFILE_x86_64="${BRANCH}-${PVER}-amd64-stage3.tar.gz" # decide between x86 and x86_64 arch SRCFILE="$(eval echo \$SRCFILE_${ARCH/i*86/x86})" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools SRC_URI=( http://download.openvz.org/template/precreated/${SRCFILE_x86} http://download.openvz.org/template/precreated/${SRCFILE_x86_64} mirror://${PNAME}/${SRCFILE_x86} mirror://${PNAME}/${SRCFILE_x86_64} ) src_install() { minstalldir /vz/template/cache || die minstallfile -s ${SRCFILE} /vz/template/cache || die }